OSDN Git Service

8c72a938e6e593b80f19a42360dce939513a0c55
[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 enable_lto
675 MAINT
676 zlibinc
677 zlibdir
678 HOST_LIBS
679 GGC
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 CXXCPP
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 STRIP
699 OBJDUMP
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LD
703 FGREP
704 SED
705 LIBTOOL
706 collect2
707 STMP_FIXINC
708 BUILD_LDFLAGS
709 BUILD_CFLAGS
710 CC_FOR_BUILD
711 inhibit_libc
712 SYSTEM_HEADER_DIR
713 ALL
714 CROSS
715 CATOBJEXT
716 GENCAT
717 INSTOBJEXT
718 DATADIRNAME
719 CATALOGS
720 POSUB
721 GMSGFMT
722 XGETTEXT
723 INCINTL
724 LIBINTL_DEP
725 LIBINTL
726 USE_NLS
727 extra_opt_files
728 extra_modes_file
729 gthread_flags
730 objext
731 manext
732 LIBICONV_DEP
733 LTLIBICONV
734 LIBICONV
735 LDEXP_LIB
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 AR
739 NM
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
752 LN
753 LN_S
754 AWK
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 onestep
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 enable_shared
764 enable_fixed_point
765 enable_decimal_float
766 enable_multilib
767 ENABLE_BUILD_WITH_CXX
768 coverage_flags
769 valgrind_command
770 valgrind_path_defines
771 valgrind_path
772 TREEBROWSER
773 nocommon_flag
774 warn_cxxflags
775 warn_cflags
776 c_strict_warn
777 strict_warn
778 c_loose_warn
779 loose_warn
780 EGREP
781 GREP
782 CPP
783 OUTPUT_OPTION
784 NO_MINUS_C_MINUS_O
785 GNATMAKE
786 GNATBIND
787 ac_ct_CXX
788 CXXFLAGS
789 CXX
790 OBJEXT
791 EXEEXT
792 ac_ct_CC
793 CPPFLAGS
794 LDFLAGS
795 CFLAGS
796 CC
797 GENINSRC
798 target_subdir
799 host_subdir
800 build_subdir
801 build_libsubdir
802 target_noncanonical
803 target_os
804 target_vendor
805 target_cpu
806 target
807 host_os
808 host_vendor
809 host_cpu
810 host
811 build_os
812 build_vendor
813 build_cpu
814 build
815 target_alias
816 host_alias
817 build_alias
818 LIBS
819 ECHO_T
820 ECHO_N
821 ECHO_C
822 DEFS
823 mandir
824 localedir
825 libdir
826 psdir
827 pdfdir
828 dvidir
829 htmldir
830 infodir
831 docdir
832 oldincludedir
833 includedir
834 localstatedir
835 sharedstatedir
836 sysconfdir
837 datadir
838 datarootdir
839 libexecdir
840 sbindir
841 bindir
842 program_transform_name
843 prefix
844 exec_prefix
845 PACKAGE_URL
846 PACKAGE_BUGREPORT
847 PACKAGE_STRING
848 PACKAGE_VERSION
849 PACKAGE_TARNAME
850 PACKAGE_NAME
851 PATH_SEPARATOR
852 SHELL'
853 ac_subst_files='language_hooks'
854 ac_user_opts='
855 enable_option_checking
856 with_build_libsubdir
857 with_local_prefix
858 with_gxx_include_dir
859 with_cpp_install_dir
860 enable_generated_files_in_srcdir
861 with_gnu_ld
862 with_ld
863 with_demangler_in_ld
864 with_gnu_as
865 with_as
866 enable_werror_always
867 enable_checking
868 enable_coverage
869 enable_gather_detailed_mem_stats
870 enable_build_with_cxx
871 with_stabs
872 enable_multilib
873 enable___cxa_atexit
874 enable_decimal_float
875 enable_fixed_point
876 enable_threads
877 enable_tls
878 enable_objc_gc
879 with_dwarf2
880 enable_shared
881 with_build_sysroot
882 with_sysroot
883 enable_intermodule
884 with_pkgversion
885 with_bugurl
886 enable_languages
887 with_multilib_list
888 enable_rpath
889 with_libiconv_prefix
890 enable_initfini_array
891 enable_sjlj_exceptions
892 with_system_libunwind
893 enable_secureplt
894 enable_cld
895 enable_win32_registry
896 enable_static
897 with_pic
898 enable_fast_install
899 enable_libtool_lock
900 with_plugin_ld
901 enable_gnu_unique_object
902 enable_linker_build_id
903 with_long_double_128
904 with_gc
905 with_system_zlib
906 enable_maintainer_mode
907 enable_version_specific_runtime_libs
908 with_slibdir
909 enable_plugin
910 '
911       ac_precious_vars='build_alias
912 host_alias
913 target_alias
914 CC
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CXX
920 CXXFLAGS
921 CCC
922 CPP
923 CXXCPP
924 GMPLIBS
925 GMPINC
926 PPLLIBS
927 PPLINC
928 CLOOGLIBS
929 CLOOGINC
930 LIBELFLIBS
931 LIBELFINC'
932
933
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 ac_unrecognized_opts=
938 ac_unrecognized_sep=
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
941 cache_file=/dev/null
942 exec_prefix=NONE
943 no_create=
944 no_recursion=
945 prefix=NONE
946 program_prefix=NONE
947 program_suffix=NONE
948 program_transform_name=s,x,x,
949 silent=
950 site=
951 srcdir=
952 verbose=
953 x_includes=NONE
954 x_libraries=NONE
955
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
981
982 ac_prev=
983 ac_dashdash=
984 for ac_option
985 do
986   # If the previous option needs an argument, assign it.
987   if test -n "$ac_prev"; then
988     eval $ac_prev=\$ac_option
989     ac_prev=
990     continue
991   fi
992
993   case $ac_option in
994   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995   *)    ac_optarg=yes ;;
996   esac
997
998   # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000   case $ac_dashdash$ac_option in
1001   --)
1002     ac_dashdash=yes ;;
1003
1004   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005     ac_prev=bindir ;;
1006   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007     bindir=$ac_optarg ;;
1008
1009   -build | --build | --buil | --bui | --bu)
1010     ac_prev=build_alias ;;
1011   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012     build_alias=$ac_optarg ;;
1013
1014   -cache-file | --cache-file | --cache-fil | --cache-fi \
1015   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016     ac_prev=cache_file ;;
1017   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019     cache_file=$ac_optarg ;;
1020
1021   --config-cache | -C)
1022     cache_file=config.cache ;;
1023
1024   -datadir | --datadir | --datadi | --datad)
1025     ac_prev=datadir ;;
1026   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027     datadir=$ac_optarg ;;
1028
1029   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030   | --dataroo | --dataro | --datar)
1031     ac_prev=datarootdir ;;
1032   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034     datarootdir=$ac_optarg ;;
1035
1036   -disable-* | --disable-*)
1037     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040       as_fn_error "invalid feature name: $ac_useropt"
1041     ac_useropt_orig=$ac_useropt
1042     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043     case $ac_user_opts in
1044       *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048          ac_unrecognized_sep=', ';;
1049     esac
1050     eval enable_$ac_useropt=no ;;
1051
1052   -docdir | --docdir | --docdi | --doc | --do)
1053     ac_prev=docdir ;;
1054   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055     docdir=$ac_optarg ;;
1056
1057   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058     ac_prev=dvidir ;;
1059   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060     dvidir=$ac_optarg ;;
1061
1062   -enable-* | --enable-*)
1063     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066       as_fn_error "invalid feature name: $ac_useropt"
1067     ac_useropt_orig=$ac_useropt
1068     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069     case $ac_user_opts in
1070       *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074          ac_unrecognized_sep=', ';;
1075     esac
1076     eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080   | --exec | --exe | --ex)
1081     ac_prev=exec_prefix ;;
1082   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084   | --exec=* | --exe=* | --ex=*)
1085     exec_prefix=$ac_optarg ;;
1086
1087   -gas | --gas | --ga | --g)
1088     # Obsolete; use --with-gas.
1089     with_gas=yes ;;
1090
1091   -help | --help | --hel | --he | -h)
1092     ac_init_help=long ;;
1093   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094     ac_init_help=recursive ;;
1095   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096     ac_init_help=short ;;
1097
1098   -host | --host | --hos | --ho)
1099     ac_prev=host_alias ;;
1100   -host=* | --host=* | --hos=* | --ho=*)
1101     host_alias=$ac_optarg ;;
1102
1103   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104     ac_prev=htmldir ;;
1105   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106   | --ht=*)
1107     htmldir=$ac_optarg ;;
1108
1109   -includedir | --includedir | --includedi | --included | --include \
1110   | --includ | --inclu | --incl | --inc)
1111     ac_prev=includedir ;;
1112   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113   | --includ=* | --inclu=* | --incl=* | --inc=*)
1114     includedir=$ac_optarg ;;
1115
1116   -infodir | --infodir | --infodi | --infod | --info | --inf)
1117     ac_prev=infodir ;;
1118   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119     infodir=$ac_optarg ;;
1120
1121   -libdir | --libdir | --libdi | --libd)
1122     ac_prev=libdir ;;
1123   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124     libdir=$ac_optarg ;;
1125
1126   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127   | --libexe | --libex | --libe)
1128     ac_prev=libexecdir ;;
1129   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130   | --libexe=* | --libex=* | --libe=*)
1131     libexecdir=$ac_optarg ;;
1132
1133   -localedir | --localedir | --localedi | --localed | --locale)
1134     ac_prev=localedir ;;
1135   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136     localedir=$ac_optarg ;;
1137
1138   -localstatedir | --localstatedir | --localstatedi | --localstated \
1139   | --localstate | --localstat | --localsta | --localst | --locals)
1140     ac_prev=localstatedir ;;
1141   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143     localstatedir=$ac_optarg ;;
1144
1145   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146     ac_prev=mandir ;;
1147   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148     mandir=$ac_optarg ;;
1149
1150   -nfp | --nfp | --nf)
1151     # Obsolete; use --without-fp.
1152     with_fp=no ;;
1153
1154   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155   | --no-cr | --no-c | -n)
1156     no_create=yes ;;
1157
1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160     no_recursion=yes ;;
1161
1162   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164   | --oldin | --oldi | --old | --ol | --o)
1165     ac_prev=oldincludedir ;;
1166   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169     oldincludedir=$ac_optarg ;;
1170
1171   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172     ac_prev=prefix ;;
1173   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174     prefix=$ac_optarg ;;
1175
1176   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177   | --program-pre | --program-pr | --program-p)
1178     ac_prev=program_prefix ;;
1179   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181     program_prefix=$ac_optarg ;;
1182
1183   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184   | --program-suf | --program-su | --program-s)
1185     ac_prev=program_suffix ;;
1186   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188     program_suffix=$ac_optarg ;;
1189
1190   -program-transform-name | --program-transform-name \
1191   | --program-transform-nam | --program-transform-na \
1192   | --program-transform-n | --program-transform- \
1193   | --program-transform | --program-transfor \
1194   | --program-transfo | --program-transf \
1195   | --program-trans | --program-tran \
1196   | --progr-tra | --program-tr | --program-t)
1197     ac_prev=program_transform_name ;;
1198   -program-transform-name=* | --program-transform-name=* \
1199   | --program-transform-nam=* | --program-transform-na=* \
1200   | --program-transform-n=* | --program-transform-=* \
1201   | --program-transform=* | --program-transfor=* \
1202   | --program-transfo=* | --program-transf=* \
1203   | --program-trans=* | --program-tran=* \
1204   | --progr-tra=* | --program-tr=* | --program-t=*)
1205     program_transform_name=$ac_optarg ;;
1206
1207   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208     ac_prev=pdfdir ;;
1209   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210     pdfdir=$ac_optarg ;;
1211
1212   -psdir | --psdir | --psdi | --psd | --ps)
1213     ac_prev=psdir ;;
1214   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215     psdir=$ac_optarg ;;
1216
1217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218   | -silent | --silent | --silen | --sile | --sil)
1219     silent=yes ;;
1220
1221   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222     ac_prev=sbindir ;;
1223   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224   | --sbi=* | --sb=*)
1225     sbindir=$ac_optarg ;;
1226
1227   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229   | --sharedst | --shareds | --shared | --share | --shar \
1230   | --sha | --sh)
1231     ac_prev=sharedstatedir ;;
1232   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235   | --sha=* | --sh=*)
1236     sharedstatedir=$ac_optarg ;;
1237
1238   -site | --site | --sit)
1239     ac_prev=site ;;
1240   -site=* | --site=* | --sit=*)
1241     site=$ac_optarg ;;
1242
1243   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244     ac_prev=srcdir ;;
1245   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246     srcdir=$ac_optarg ;;
1247
1248   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249   | --syscon | --sysco | --sysc | --sys | --sy)
1250     ac_prev=sysconfdir ;;
1251   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253     sysconfdir=$ac_optarg ;;
1254
1255   -target | --target | --targe | --targ | --tar | --ta | --t)
1256     ac_prev=target_alias ;;
1257   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258     target_alias=$ac_optarg ;;
1259
1260   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261     verbose=yes ;;
1262
1263   -version | --version | --versio | --versi | --vers | -V)
1264     ac_init_version=: ;;
1265
1266   -with-* | --with-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error "invalid package name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval with_$ac_useropt=\$ac_optarg ;;
1281
1282   -without-* | --without-*)
1283     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286       as_fn_error "invalid package name: $ac_useropt"
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval with_$ac_useropt=no ;;
1297
1298   --x)
1299     # Obsolete; use --with-x.
1300     with_x=yes ;;
1301
1302   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303   | --x-incl | --x-inc | --x-in | --x-i)
1304     ac_prev=x_includes ;;
1305   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307     x_includes=$ac_optarg ;;
1308
1309   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311     ac_prev=x_libraries ;;
1312   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314     x_libraries=$ac_optarg ;;
1315
1316   -*) as_fn_error "unrecognized option: \`$ac_option'
1317 Try \`$0 --help' for more information."
1318     ;;
1319
1320   *=*)
1321     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322     # Reject names that are not valid shell variable names.
1323     case $ac_envvar in #(
1324       '' | [0-9]* | *[!_$as_cr_alnum]* )
1325       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1326     esac
1327     eval $ac_envvar=\$ac_optarg
1328     export $ac_envvar ;;
1329
1330   *)
1331     # FIXME: should be removed in autoconf 3.0.
1332     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336     ;;
1337
1338   esac
1339 done
1340
1341 if test -n "$ac_prev"; then
1342   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343   as_fn_error "missing argument to $ac_option"
1344 fi
1345
1346 if test -n "$ac_unrecognized_opts"; then
1347   case $enable_option_checking in
1348     no) ;;
1349     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1350     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351   esac
1352 fi
1353
1354 # Check all directory arguments for consistency.
1355 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356                 datadir sysconfdir sharedstatedir localstatedir includedir \
1357                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358                 libdir localedir mandir
1359 do
1360   eval ac_val=\$$ac_var
1361   # Remove trailing slashes.
1362   case $ac_val in
1363     */ )
1364       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365       eval $ac_var=\$ac_val;;
1366   esac
1367   # Be sure to have absolute directory names.
1368   case $ac_val in
1369     [\\/$]* | ?:[\\/]* )  continue;;
1370     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371   esac
1372   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1373 done
1374
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1381
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384   if test "x$build_alias" = x; then
1385     cross_compiling=maybe
1386     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387     If a cross compiler is detected then cross compile mode will be used." >&2
1388   elif test "x$build_alias" != "x$host_alias"; then
1389     cross_compiling=yes
1390   fi
1391 fi
1392
1393 ac_tool_prefix=
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396 test "$silent" = yes && exec 6>/dev/null
1397
1398
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402   as_fn_error "working directory cannot be determined"
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404   as_fn_error "pwd does not report name of working directory"
1405
1406
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409   ac_srcdir_defaulted=yes
1410   # Try the directory containing this script, then the parent directory.
1411   ac_confdir=`$as_dirname -- "$as_myself" ||
1412 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413          X"$as_myself" : 'X\(//\)[^/]' \| \
1414          X"$as_myself" : 'X\(//\)$' \| \
1415          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416 $as_echo X"$as_myself" |
1417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\/\)[^/].*/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)$/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\).*/{
1430             s//\1/
1431             q
1432           }
1433           s/.*/./; q'`
1434   srcdir=$ac_confdir
1435   if test ! -r "$srcdir/$ac_unique_file"; then
1436     srcdir=..
1437   fi
1438 else
1439   ac_srcdir_defaulted=no
1440 fi
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1444 fi
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1448         pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451   srcdir=.
1452 fi
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_env_${ac_var}_value=\$${ac_var}
1462   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1465
1466 #
1467 # Report the --help message.
1468 #
1469 if test "$ac_init_help" = "long"; then
1470   # Omit some internal or obsolete options to make the list less imposing.
1471   # This message is too long to be a string in the A/UX 3.1 sh.
1472   cat <<_ACEOF
1473 \`configure' configures this package to adapt to many kinds of systems.
1474
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE.  See below for descriptions of some of the useful variables.
1479
1480 Defaults for the options are specified in brackets.
1481
1482 Configuration:
1483   -h, --help              display this help and exit
1484       --help=short        display options specific to this package
1485       --help=recursive    display the short help of all the included packages
1486   -V, --version           display version information and exit
1487   -q, --quiet, --silent   do not print \`checking...' messages
1488       --cache-file=FILE   cache test results in FILE [disabled]
1489   -C, --config-cache      alias for \`--cache-file=config.cache'
1490   -n, --no-create         do not create output files
1491       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1492
1493 Installation directories:
1494   --prefix=PREFIX         install architecture-independent files in PREFIX
1495                           [$ac_default_prefix]
1496   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1497                           [PREFIX]
1498
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1503
1504 For better control, use the options below.
1505
1506 Fine tuning of the installation directories:
1507   --bindir=DIR            user executables [EPREFIX/bin]
1508   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1509   --libexecdir=DIR        program executables [EPREFIX/libexec]
1510   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1511   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1512   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1513   --libdir=DIR            object code libraries [EPREFIX/lib]
1514   --includedir=DIR        C header files [PREFIX/include]
1515   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1516   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1517   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1518   --infodir=DIR           info documentation [DATAROOTDIR/info]
1519   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1520   --mandir=DIR            man documentation [DATAROOTDIR/man]
1521   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1522   --htmldir=DIR           html documentation [DOCDIR]
1523   --dvidir=DIR            dvi documentation [DOCDIR]
1524   --pdfdir=DIR            pdf documentation [DOCDIR]
1525   --psdir=DIR             ps documentation [DOCDIR]
1526 _ACEOF
1527
1528   cat <<\_ACEOF
1529
1530 Program names:
1531   --program-prefix=PREFIX            prepend PREFIX to installed program names
1532   --program-suffix=SUFFIX            append SUFFIX to installed program names
1533   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1534
1535 System types:
1536   --build=BUILD     configure for building on BUILD [guessed]
1537   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538   --target=TARGET   configure for building compilers for TARGET [HOST]
1539 _ACEOF
1540 fi
1541
1542 if test -n "$ac_init_help"; then
1543
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-option-checking  ignore unrecognized --enable/--with options
1548   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1549   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1550   --enable-generated-files-in-srcdir
1551                           put copies of generated files in source dir
1552                           intended for creating source tarballs for users
1553                           without texinfo bison or flex.
1554   --enable-werror-always  enable -Werror despite compiler version
1555   --enable-checking=LIST
1556                           enable expensive run-time checks.  With LIST,
1557                           enable only specific categories of checks.
1558                           Categories are: yes,no,all,none,release.
1559                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1560                           rtlflag,rtl,runtime,tree,valgrind,types.
1561   --enable-coverage=LEVEL
1562                           enable compiler's code coverage collection.
1563                           Use to measure compiler performance and locate
1564                           unused parts of the compiler. With LEVEL, specify
1565                           optimization. Values are opt, noopt,
1566                           default is noopt
1567   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1568   --enable-build-with-cxx build with C++ compiler instead of C compiler
1569   --enable-multilib       enable library support for multiple ABIs
1570   --enable-__cxa_atexit   enable __cxa_atexit for C++
1571   --enable-decimal-float={no,yes,bid,dpd}
1572                         enable decimal float extension to C.  Selecting 'bid'
1573                         or 'dpd' choses which decimal floating point format
1574                         to use
1575   --enable-fixed-point    enable fixed-point arithmetic extension to C
1576   --enable-threads        enable thread usage for target GCC
1577   --enable-threads=LIB    use LIB thread package for target GCC
1578   --enable-tls            enable or disable generation of tls code
1579                           overriding the assembler check for tls support
1580   --enable-objc-gc        enable the use of Boehm's garbage collector with
1581                           the GNU Objective-C runtime
1582   --disable-shared        don't provide a shared libgcc
1583   --enable-intermodule    build the compiler in one step
1584   --enable-languages=LIST specify which front-ends to build
1585   --disable-rpath         do not hardcode runtime library paths
1586   --enable-initfini-array       use .init_array/.fini_array sections
1587   --enable-sjlj-exceptions
1588                           arrange to use setjmp/longjmp exception handling
1589   --enable-secureplt      enable -msecure-plt by default for PowerPC
1590   --enable-cld            enable -mcld by default for 32bit x86
1591   --disable-win32-registry
1592                           disable lookup of installation paths in the
1593                           Registry on Windows hosts
1594   --enable-win32-registry enable registry lookup (default)
1595   --enable-win32-registry=KEY
1596                           use KEY instead of GCC version as the last portion
1597                           of the registry key
1598   --enable-shared[=PKGS]  build shared libraries [default=yes]
1599   --enable-static[=PKGS]  build static libraries [default=yes]
1600   --enable-fast-install[=PKGS]
1601                           optimize for fast installation [default=yes]
1602   --disable-libtool-lock  avoid locking (might break parallel builds)
1603   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1604                                 glibc systems
1605   --enable-linker-build-id
1606                           compiler will always pass --build-id to linker
1607   --enable-maintainer-mode
1608                           enable make rules and dependencies not useful
1609                           (and sometimes confusing) to the casual installer
1610   --enable-version-specific-runtime-libs
1611                           specify that runtime libraries should be
1612                           installed in a compiler-specific directory
1613   --enable-plugin         enable plugin support
1614
1615 Optional Packages:
1616   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1617   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1618   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1619   --with-local-prefix=DIR specifies directory to put local include
1620   --with-gxx-include-dir=DIR
1621                           specifies directory to put g++ header files
1622   --with-cpp-install-dir=DIR
1623                           install the user visible C preprocessor in DIR
1624                           (relative to PREFIX) as well as PREFIX/bin
1625   --with-gnu-ld           arrange to work with GNU ld.
1626   --with-ld               arrange to use the specified ld (full pathname)
1627   --with-demangler-in-ld  try to use demangler in GNU ld.
1628   --with-gnu-as           arrange to work with GNU as
1629   --with-as               arrange to use the specified as (full pathname)
1630   --with-stabs            arrange to use stabs instead of host debug format
1631   --with-dwarf2           force the default debug format to be DWARF 2
1632   --with-build-sysroot=sysroot
1633                           use sysroot as the system root during the build
1634   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1635   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1636   --with-bugurl=URL       Direct users to URL to report a bug
1637   --with-multilib-list    Select multilibs (SH only)
1638   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1639   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1640   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1641   --with-system-libunwind use installed libunwind
1642   --with-pic              try to use only PIC/non-PIC objects [default=use
1643                           both]
1644   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1645   --with-plugin-ld=[ARG]  specify the plugin linker
1646   --with-long-double-128  Use 128-bit long double by default.
1647   --with-gc={page,zone}   choose the garbage collection mechanism to use
1648                           with the compiler
1649   --with-system-zlib      use installed libz
1650   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1651
1652 Some influential environment variables:
1653   CC          C compiler command
1654   CFLAGS      C compiler flags
1655   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1656               nonstandard directory <lib dir>
1657   LIBS        libraries to pass to the linker, e.g. -l<library>
1658   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1659               you have headers in a nonstandard directory <include dir>
1660   CXX         C++ compiler command
1661   CXXFLAGS    C++ compiler flags
1662   CPP         C preprocessor
1663   CXXCPP      C++ preprocessor
1664   GMPLIBS     How to link GMP
1665   GMPINC      How to find GMP include files
1666   PPLLIBS     How to link PPL
1667   PPLINC      How to find PPL include files
1668   CLOOGLIBS   How to link CLOOG
1669   CLOOGINC    How to find CLOOG include files
1670   LIBELFLIBS  How to link libelf
1671   LIBELFINC   How to find libelf include files
1672
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1675
1676 Report bugs to the package provider.
1677 _ACEOF
1678 ac_status=$?
1679 fi
1680
1681 if test "$ac_init_help" = "recursive"; then
1682   # If there are subdirs, report their specific --help.
1683   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684     test -d "$ac_dir" ||
1685       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686       continue
1687     ac_builddir=.
1688
1689 case "$ac_dir" in
1690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *)
1692   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693   # A ".." for each directory in $ac_dir_suffix.
1694   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695   case $ac_top_builddir_sub in
1696   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698   esac ;;
1699 esac
1700 ac_abs_top_builddir=$ac_pwd
1701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702 # for backward compatibility:
1703 ac_top_builddir=$ac_top_build_prefix
1704
1705 case $srcdir in
1706   .)  # We are building in place.
1707     ac_srcdir=.
1708     ac_top_srcdir=$ac_top_builddir_sub
1709     ac_abs_top_srcdir=$ac_pwd ;;
1710   [\\/]* | ?:[\\/]* )  # Absolute name.
1711     ac_srcdir=$srcdir$ac_dir_suffix;
1712     ac_top_srcdir=$srcdir
1713     ac_abs_top_srcdir=$srcdir ;;
1714   *) # Relative name.
1715     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716     ac_top_srcdir=$ac_top_build_prefix$srcdir
1717     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1718 esac
1719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1720
1721     cd "$ac_dir" || { ac_status=$?; continue; }
1722     # Check for guested configure.
1723     if test -f "$ac_srcdir/configure.gnu"; then
1724       echo &&
1725       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726     elif test -f "$ac_srcdir/configure"; then
1727       echo &&
1728       $SHELL "$ac_srcdir/configure" --help=recursive
1729     else
1730       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731     fi || ac_status=$?
1732     cd "$ac_pwd" || { ac_status=$?; break; }
1733   done
1734 fi
1735
1736 test -n "$ac_init_help" && exit $ac_status
1737 if $ac_init_version; then
1738   cat <<\_ACEOF
1739 configure
1740 generated by GNU Autoconf 2.64
1741
1742 Copyright (C) 2009 Free Software Foundation, Inc.
1743 This configure script is free software; the Free Software Foundation
1744 gives unlimited permission to copy, distribute and modify it.
1745 _ACEOF
1746   exit
1747 fi
1748
1749 ## ------------------------ ##
1750 ## Autoconf initialization. ##
1751 ## ------------------------ ##
1752
1753 # ac_fn_c_try_compile LINENO
1754 # --------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_compile ()
1757 {
1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759   rm -f conftest.$ac_objext
1760   if { { ac_try="$ac_compile"
1761 case "(($ac_try" in
1762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763   *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767   (eval "$ac_compile") 2>conftest.err
1768   ac_status=$?
1769   if test -s conftest.err; then
1770     grep -v '^ *+' conftest.err >conftest.er1
1771     cat conftest.er1 >&5
1772     mv -f conftest.er1 conftest.err
1773   fi
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; } && {
1776          test -z "$ac_c_werror_flag" ||
1777          test ! -s conftest.err
1778        } && test -s conftest.$ac_objext; then :
1779   ac_retval=0
1780 else
1781   $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784         ac_retval=1
1785 fi
1786   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787   return $ac_retval
1788
1789 } # ac_fn_c_try_compile
1790
1791 # ac_fn_cxx_try_compile LINENO
1792 # ----------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_compile ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   rm -f conftest.$ac_objext
1798   if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805   (eval "$ac_compile") 2>conftest.err
1806   ac_status=$?
1807   if test -s conftest.err; then
1808     grep -v '^ *+' conftest.err >conftest.er1
1809     cat conftest.er1 >&5
1810     mv -f conftest.er1 conftest.err
1811   fi
1812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813   test $ac_status = 0; } && {
1814          test -z "$ac_cxx_werror_flag" ||
1815          test ! -s conftest.err
1816        } && test -s conftest.$ac_objext; then :
1817   ac_retval=0
1818 else
1819   $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822         ac_retval=1
1823 fi
1824   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825   return $ac_retval
1826
1827 } # ac_fn_cxx_try_compile
1828
1829 # ac_fn_c_try_cpp LINENO
1830 # ----------------------
1831 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_cpp ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   if { { ac_try="$ac_cpp conftest.$ac_ext"
1836 case "(($ac_try" in
1837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838   *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843   ac_status=$?
1844   if test -s conftest.err; then
1845     grep -v '^ *+' conftest.err >conftest.er1
1846     cat conftest.er1 >&5
1847     mv -f conftest.er1 conftest.err
1848   fi
1849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850   test $ac_status = 0; } >/dev/null && {
1851          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1852          test ! -s conftest.err
1853        }; then :
1854   ac_retval=0
1855 else
1856   $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859     ac_retval=1
1860 fi
1861   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862   return $ac_retval
1863
1864 } # ac_fn_c_try_cpp
1865
1866 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869 # the include files in INCLUDES and setting the cache variable VAR
1870 # accordingly.
1871 ac_fn_c_check_header_mongrel ()
1872 {
1873   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878   $as_echo_n "(cached) " >&6
1879 fi
1880 eval ac_res=\$$3
1881                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 else
1884   # Is the header compilable?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886 $as_echo_n "checking $2 usability... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h.  */
1889 $4
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893   ac_header_compiler=yes
1894 else
1895   ac_header_compiler=no
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899 $as_echo "$ac_header_compiler" >&6; }
1900
1901 # Is the header present?
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903 $as_echo_n "checking $2 presence... " >&6; }
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h.  */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_cpp "$LINENO"; then :
1909   ac_header_preproc=yes
1910 else
1911   ac_header_preproc=no
1912 fi
1913 rm -f conftest.err conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915 $as_echo "$ac_header_preproc" >&6; }
1916
1917 # So?  What about this header?
1918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1919   yes:no: )
1920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924     ;;
1925   no:yes:* )
1926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1929 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1933 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1934     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936     ;;
1937 esac
1938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941   $as_echo_n "(cached) " >&6
1942 else
1943   eval "$3=\$ac_header_compiler"
1944 fi
1945 eval ac_res=\$$3
1946                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 fi
1949   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950
1951 } # ac_fn_c_check_header_mongrel
1952
1953 # ac_fn_c_try_run LINENO
1954 # ----------------------
1955 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1956 # that executables *can* be run.
1957 ac_fn_c_try_run ()
1958 {
1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960   if { { ac_try="$ac_link"
1961 case "(($ac_try" in
1962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963   *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967   (eval "$ac_link") 2>&5
1968   ac_status=$?
1969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1971   { { case "(($ac_try" in
1972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973   *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977   (eval "$ac_try") 2>&5
1978   ac_status=$?
1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980   test $ac_status = 0; }; }; then :
1981   ac_retval=0
1982 else
1983   $as_echo "$as_me: program exited with status $ac_status" >&5
1984        $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1986
1987        ac_retval=$ac_status
1988 fi
1989   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991   return $ac_retval
1992
1993 } # ac_fn_c_try_run
1994
1995 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1996 # -------------------------------------------------------
1997 # Tests whether HEADER exists and can be compiled using the include files in
1998 # INCLUDES, setting the cache variable VAR accordingly.
1999 ac_fn_c_check_header_compile ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005   $as_echo_n "(cached) " >&6
2006 else
2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $4
2010 #include <$2>
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013   eval "$3=yes"
2014 else
2015   eval "$3=no"
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 fi
2019 eval ac_res=\$$3
2020                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023
2024 } # ac_fn_c_check_header_compile
2025
2026 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2027 # --------------------------------------------
2028 # Tries to find the compile-time value of EXPR in a program that includes
2029 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2030 # computed
2031 ac_fn_c_compute_int ()
2032 {
2033   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034   if test "$cross_compiling" = yes; then
2035     # Depending upon the size, compute the lo and hi bounds.
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h.  */
2038 $4
2039 int
2040 main ()
2041 {
2042 static int test_array [1 - 2 * !(($2) >= 0)];
2043 test_array [0] = 0
2044
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050   ac_lo=0 ac_mid=0
2051   while :; do
2052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2059 test_array [0] = 0
2060
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066   ac_hi=$ac_mid; break
2067 else
2068   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2069                         if test $ac_lo -le $ac_mid; then
2070                           ac_lo= ac_hi=
2071                           break
2072                         fi
2073                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076   done
2077 else
2078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 int
2082 main ()
2083 {
2084 static int test_array [1 - 2 * !(($2) < 0)];
2085 test_array [0] = 0
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092   ac_hi=-1 ac_mid=-1
2093   while :; do
2094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 int
2098 main ()
2099 {
2100 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2101 test_array [0] = 0
2102
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108   ac_lo=$ac_mid; break
2109 else
2110   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2111                         if test $ac_mid -le $ac_hi; then
2112                           ac_lo= ac_hi=
2113                           break
2114                         fi
2115                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118   done
2119 else
2120   ac_lo= ac_hi=
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 # Binary search between lo and hi bounds.
2126 while test "x$ac_lo" != "x$ac_hi"; do
2127   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h.  */
2130 $4
2131 int
2132 main ()
2133 {
2134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2135 test_array [0] = 0
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142   ac_hi=$ac_mid
2143 else
2144   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148 case $ac_lo in #((
2149 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2150 '') ac_retval=1 ;;
2151 esac
2152   else
2153     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h.  */
2155 $4
2156 static long int longval () { return $2; }
2157 static unsigned long int ulongval () { return $2; }
2158 #include <stdio.h>
2159 #include <stdlib.h>
2160 int
2161 main ()
2162 {
2163
2164   FILE *f = fopen ("conftest.val", "w");
2165   if (! f)
2166     return 1;
2167   if (($2) < 0)
2168     {
2169       long int i = longval ();
2170       if (i != ($2))
2171         return 1;
2172       fprintf (f, "%ld", i);
2173     }
2174   else
2175     {
2176       unsigned long int i = ulongval ();
2177       if (i != ($2))
2178         return 1;
2179       fprintf (f, "%lu", i);
2180     }
2181   /* Do not output a trailing newline, as this causes \r\n confusion
2182      on some platforms.  */
2183   return ferror (f) || fclose (f) != 0;
2184
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_run "$LINENO"; then :
2190   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2191 else
2192   ac_retval=1
2193 fi
2194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2195   conftest.$ac_objext conftest.beam conftest.$ac_ext
2196 rm -f conftest.val
2197
2198   fi
2199   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2200   return $ac_retval
2201
2202 } # ac_fn_c_compute_int
2203
2204 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2205 # -------------------------------------------
2206 # Tests whether TYPE exists after having included INCLUDES, setting cache
2207 # variable VAR accordingly.
2208 ac_fn_c_check_type ()
2209 {
2210   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2214   $as_echo_n "(cached) " >&6
2215 else
2216   eval "$3=no"
2217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $4
2220 int
2221 main ()
2222 {
2223 if (sizeof ($2))
2224          return 0;
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 if (sizeof (($2)))
2237             return 0;
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243
2244 else
2245   eval "$3=yes"
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 eval ac_res=\$$3
2252                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255
2256 } # ac_fn_c_check_type
2257
2258 # ac_fn_c_find_intX_t LINENO BITS VAR
2259 # -----------------------------------
2260 # Finds a signed integer type with width BITS, setting cache variable VAR
2261 # accordingly.
2262 ac_fn_c_find_intX_t ()
2263 {
2264   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2266 $as_echo_n "checking for int$2_t... " >&6; }
2267 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268   $as_echo_n "(cached) " >&6
2269 else
2270   eval "$3=no"
2271      for ac_type in int$2_t 'int' 'long int' \
2272          'long long int' 'short int' 'signed char'; do
2273        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275 $ac_includes_default
2276 int
2277 main ()
2278 {
2279 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2280 test_array [0] = 0
2281
2282   ;
2283   return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $ac_includes_default
2290 int
2291 main ()
2292 {
2293 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2294                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2295 test_array [0] = 0
2296
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302
2303 else
2304   case $ac_type in #(
2305   int$2_t) :
2306     eval "$3=yes" ;; #(
2307   *) :
2308     eval "$3=\$ac_type" ;;
2309 esac
2310 fi
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 fi
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314        eval as_val=\$$3
2315    if test "x$as_val" = x""no; then :
2316
2317 else
2318   break
2319 fi
2320      done
2321 fi
2322 eval ac_res=\$$3
2323                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2326
2327 } # ac_fn_c_find_intX_t
2328
2329 # ac_fn_c_try_link LINENO
2330 # -----------------------
2331 # Try to link conftest.$ac_ext, and return whether this succeeded.
2332 ac_fn_c_try_link ()
2333 {
2334   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335   rm -f conftest.$ac_objext conftest$ac_exeext
2336   if { { ac_try="$ac_link"
2337 case "(($ac_try" in
2338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339   *) ac_try_echo=$ac_try;;
2340 esac
2341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2342 $as_echo "$ac_try_echo"; } >&5
2343   (eval "$ac_link") 2>conftest.err
2344   ac_status=$?
2345   if test -s conftest.err; then
2346     grep -v '^ *+' conftest.err >conftest.er1
2347     cat conftest.er1 >&5
2348     mv -f conftest.er1 conftest.err
2349   fi
2350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351   test $ac_status = 0; } && {
2352          test -z "$ac_c_werror_flag" ||
2353          test ! -s conftest.err
2354        } && test -s conftest$ac_exeext && {
2355          test "$cross_compiling" = yes ||
2356          $as_test_x conftest$ac_exeext
2357        }; then :
2358   ac_retval=0
2359 else
2360   $as_echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363         ac_retval=1
2364 fi
2365   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2366   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2367   # interfere with the next link command; also delete a directory that is
2368   # left behind by Apple's compiler.  We do this before executing the actions.
2369   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2370   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2371   return $ac_retval
2372
2373 } # ac_fn_c_try_link
2374
2375 # ac_fn_c_find_uintX_t LINENO BITS VAR
2376 # ------------------------------------
2377 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2378 # accordingly.
2379 ac_fn_c_find_uintX_t ()
2380 {
2381   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2383 $as_echo_n "checking for uint$2_t... " >&6; }
2384 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2385   $as_echo_n "(cached) " >&6
2386 else
2387   eval "$3=no"
2388      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2389          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2390        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h.  */
2392 $ac_includes_default
2393 int
2394 main ()
2395 {
2396 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2397 test_array [0] = 0
2398
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 if ac_fn_c_try_compile "$LINENO"; then :
2404   case $ac_type in #(
2405   uint$2_t) :
2406     eval "$3=yes" ;; #(
2407   *) :
2408     eval "$3=\$ac_type" ;;
2409 esac
2410 fi
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412        eval as_val=\$$3
2413    if test "x$as_val" = x""no; then :
2414
2415 else
2416   break
2417 fi
2418      done
2419 fi
2420 eval ac_res=\$$3
2421                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2424
2425 } # ac_fn_c_find_uintX_t
2426
2427 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2428 # ----------------------------------------------
2429 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2430 ac_fn_c_check_header_preproc ()
2431 {
2432   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2436   $as_echo_n "(cached) " >&6
2437 else
2438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h.  */
2440 #include <$2>
2441 _ACEOF
2442 if ac_fn_c_try_cpp "$LINENO"; then :
2443   eval "$3=yes"
2444 else
2445   eval "$3=no"
2446 fi
2447 rm -f conftest.err conftest.$ac_ext
2448 fi
2449 eval ac_res=\$$3
2450                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453
2454 } # ac_fn_c_check_header_preproc
2455
2456 # ac_fn_c_check_func LINENO FUNC VAR
2457 # ----------------------------------
2458 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2459 ac_fn_c_check_func ()
2460 {
2461   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h.  */
2469 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2471 #define $2 innocuous_$2
2472
2473 /* System header to define __stub macros and hopefully few prototypes,
2474     which can conflict with char $2 (); below.
2475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2476     <limits.h> exists even on freestanding compilers.  */
2477
2478 #ifdef __STDC__
2479 # include <limits.h>
2480 #else
2481 # include <assert.h>
2482 #endif
2483
2484 #undef $2
2485
2486 /* Override any GCC internal prototype to avoid an error.
2487    Use char because int might match the return type of a GCC
2488    builtin and then its argument prototype would still apply.  */
2489 #ifdef __cplusplus
2490 extern "C"
2491 #endif
2492 char $2 ();
2493 /* The GNU C library defines this for functions which it implements
2494     to always fail with ENOSYS.  Some functions are actually named
2495     something starting with __ and the normal name is an alias.  */
2496 #if defined __stub_$2 || defined __stub___$2
2497 choke me
2498 #endif
2499
2500 int
2501 main ()
2502 {
2503 return $2 ();
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 if ac_fn_c_try_link "$LINENO"; then :
2509   eval "$3=yes"
2510 else
2511   eval "$3=no"
2512 fi
2513 rm -f core conftest.err conftest.$ac_objext \
2514     conftest$ac_exeext conftest.$ac_ext
2515 fi
2516 eval ac_res=\$$3
2517                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518 $as_echo "$ac_res" >&6; }
2519   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2520
2521 } # ac_fn_c_check_func
2522
2523 # ac_fn_cxx_try_cpp LINENO
2524 # ------------------------
2525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2526 ac_fn_cxx_try_cpp ()
2527 {
2528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529   if { { ac_try="$ac_cpp conftest.$ac_ext"
2530 case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2537   ac_status=$?
2538   if test -s conftest.err; then
2539     grep -v '^ *+' conftest.err >conftest.er1
2540     cat conftest.er1 >&5
2541     mv -f conftest.er1 conftest.err
2542   fi
2543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544   test $ac_status = 0; } >/dev/null && {
2545          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2546          test ! -s conftest.err
2547        }; then :
2548   ac_retval=0
2549 else
2550   $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553     ac_retval=1
2554 fi
2555   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2556   return $ac_retval
2557
2558 } # ac_fn_cxx_try_cpp
2559
2560 # ac_fn_cxx_try_link LINENO
2561 # -------------------------
2562 # Try to link conftest.$ac_ext, and return whether this succeeded.
2563 ac_fn_cxx_try_link ()
2564 {
2565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566   rm -f conftest.$ac_objext conftest$ac_exeext
2567   if { { ac_try="$ac_link"
2568 case "(($ac_try" in
2569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570   *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574   (eval "$ac_link") 2>conftest.err
2575   ac_status=$?
2576   if test -s conftest.err; then
2577     grep -v '^ *+' conftest.err >conftest.er1
2578     cat conftest.er1 >&5
2579     mv -f conftest.er1 conftest.err
2580   fi
2581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582   test $ac_status = 0; } && {
2583          test -z "$ac_cxx_werror_flag" ||
2584          test ! -s conftest.err
2585        } && test -s conftest$ac_exeext && {
2586          test "$cross_compiling" = yes ||
2587          $as_test_x conftest$ac_exeext
2588        }; then :
2589   ac_retval=0
2590 else
2591   $as_echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594         ac_retval=1
2595 fi
2596   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2597   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2598   # interfere with the next link command; also delete a directory that is
2599   # left behind by Apple's compiler.  We do this before executing the actions.
2600   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2601   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2602   return $ac_retval
2603
2604 } # ac_fn_cxx_try_link
2605 cat >config.log <<_ACEOF
2606 This file contains any messages produced by compilers while
2607 running configure, to aid debugging if configure makes a mistake.
2608
2609 It was created by $as_me, which was
2610 generated by GNU Autoconf 2.64.  Invocation command line was
2611
2612   $ $0 $@
2613
2614 _ACEOF
2615 exec 5>>config.log
2616 {
2617 cat <<_ASUNAME
2618 ## --------- ##
2619 ## Platform. ##
2620 ## --------- ##
2621
2622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2627
2628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2629 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2630
2631 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2632 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2634 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2635 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2636 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2637 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2638
2639 _ASUNAME
2640
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646     $as_echo "PATH: $as_dir"
2647   done
2648 IFS=$as_save_IFS
2649
2650 } >&5
2651
2652 cat >&5 <<_ACEOF
2653
2654
2655 ## ----------- ##
2656 ## Core tests. ##
2657 ## ----------- ##
2658
2659 _ACEOF
2660
2661
2662 # Keep a trace of the command line.
2663 # Strip out --no-create and --no-recursion so they do not pile up.
2664 # Strip out --silent because we don't want to record it for future runs.
2665 # Also quote any args containing shell meta-characters.
2666 # Make two passes to allow for proper duplicate-argument suppression.
2667 ac_configure_args=
2668 ac_configure_args0=
2669 ac_configure_args1=
2670 ac_must_keep_next=false
2671 for ac_pass in 1 2
2672 do
2673   for ac_arg
2674   do
2675     case $ac_arg in
2676     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2677     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2678     | -silent | --silent | --silen | --sile | --sil)
2679       continue ;;
2680     *\'*)
2681       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2682     esac
2683     case $ac_pass in
2684     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2685     2)
2686       as_fn_append ac_configure_args1 " '$ac_arg'"
2687       if test $ac_must_keep_next = true; then
2688         ac_must_keep_next=false # Got value, back to normal.
2689       else
2690         case $ac_arg in
2691           *=* | --config-cache | -C | -disable-* | --disable-* \
2692           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2693           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2694           | -with-* | --with-* | -without-* | --without-* | --x)
2695             case "$ac_configure_args0 " in
2696               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2697             esac
2698             ;;
2699           -* ) ac_must_keep_next=true ;;
2700         esac
2701       fi
2702       as_fn_append ac_configure_args " '$ac_arg'"
2703       ;;
2704     esac
2705   done
2706 done
2707 { ac_configure_args0=; unset ac_configure_args0;}
2708 { ac_configure_args1=; unset ac_configure_args1;}
2709
2710 # When interrupted or exit'd, cleanup temporary files, and complete
2711 # config.log.  We remove comments because anyway the quotes in there
2712 # would cause problems or look ugly.
2713 # WARNING: Use '\'' to represent an apostrophe within the trap.
2714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2715 trap 'exit_status=$?
2716   # Save into config.log some information that might help in debugging.
2717   {
2718     echo
2719
2720     cat <<\_ASBOX
2721 ## ---------------- ##
2722 ## Cache variables. ##
2723 ## ---------------- ##
2724 _ASBOX
2725     echo
2726     # The following way of writing the cache mishandles newlines in values,
2727 (
2728   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2729     eval ac_val=\$$ac_var
2730     case $ac_val in #(
2731     *${as_nl}*)
2732       case $ac_var in #(
2733       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2734 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2735       esac
2736       case $ac_var in #(
2737       _ | IFS | as_nl) ;; #(
2738       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2739       *) { eval $ac_var=; unset $ac_var;} ;;
2740       esac ;;
2741     esac
2742   done
2743   (set) 2>&1 |
2744     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2745     *${as_nl}ac_space=\ *)
2746       sed -n \
2747         "s/'\''/'\''\\\\'\'''\''/g;
2748           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2749       ;; #(
2750     *)
2751       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2752       ;;
2753     esac |
2754     sort
2755 )
2756     echo
2757
2758     cat <<\_ASBOX
2759 ## ----------------- ##
2760 ## Output variables. ##
2761 ## ----------------- ##
2762 _ASBOX
2763     echo
2764     for ac_var in $ac_subst_vars
2765     do
2766       eval ac_val=\$$ac_var
2767       case $ac_val in
2768       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2769       esac
2770       $as_echo "$ac_var='\''$ac_val'\''"
2771     done | sort
2772     echo
2773
2774     if test -n "$ac_subst_files"; then
2775       cat <<\_ASBOX
2776 ## ------------------- ##
2777 ## File substitutions. ##
2778 ## ------------------- ##
2779 _ASBOX
2780       echo
2781       for ac_var in $ac_subst_files
2782       do
2783         eval ac_val=\$$ac_var
2784         case $ac_val in
2785         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2786         esac
2787         $as_echo "$ac_var='\''$ac_val'\''"
2788       done | sort
2789       echo
2790     fi
2791
2792     if test -s confdefs.h; then
2793       cat <<\_ASBOX
2794 ## ----------- ##
2795 ## confdefs.h. ##
2796 ## ----------- ##
2797 _ASBOX
2798       echo
2799       cat confdefs.h
2800       echo
2801     fi
2802     test "$ac_signal" != 0 &&
2803       $as_echo "$as_me: caught signal $ac_signal"
2804     $as_echo "$as_me: exit $exit_status"
2805   } >&5
2806   rm -f core *.core core.conftest.* &&
2807     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2808     exit $exit_status
2809 ' 0
2810 for ac_signal in 1 2 13 15; do
2811   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2812 done
2813 ac_signal=0
2814
2815 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2816 rm -f -r conftest* confdefs.h
2817
2818 $as_echo "/* confdefs.h */" > confdefs.h
2819
2820 # Predefined preprocessor variables.
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_NAME "$PACKAGE_NAME"
2824 _ACEOF
2825
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2828 _ACEOF
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2832 _ACEOF
2833
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_STRING "$PACKAGE_STRING"
2836 _ACEOF
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2840 _ACEOF
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_URL "$PACKAGE_URL"
2844 _ACEOF
2845
2846
2847 # Let the site file select an alternate cache file if it wants to.
2848 # Prefer an explicitly selected file to automatically selected ones.
2849 ac_site_file1=NONE
2850 ac_site_file2=NONE
2851 if test -n "$CONFIG_SITE"; then
2852   ac_site_file1=$CONFIG_SITE
2853 elif test "x$prefix" != xNONE; then
2854   ac_site_file1=$prefix/share/config.site
2855   ac_site_file2=$prefix/etc/config.site
2856 else
2857   ac_site_file1=$ac_default_prefix/share/config.site
2858   ac_site_file2=$ac_default_prefix/etc/config.site
2859 fi
2860 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2861 do
2862   test "x$ac_site_file" = xNONE && continue
2863   if test -r "$ac_site_file"; then
2864     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2865 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2866     sed 's/^/| /' "$ac_site_file" >&5
2867     . "$ac_site_file"
2868   fi
2869 done
2870
2871 if test -r "$cache_file"; then
2872   # Some versions of bash will fail to source /dev/null (special
2873   # files actually), so we avoid doing that.
2874   if test -f "$cache_file"; then
2875     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2876 $as_echo "$as_me: loading cache $cache_file" >&6;}
2877     case $cache_file in
2878       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2879       *)                      . "./$cache_file";;
2880     esac
2881   fi
2882 else
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2884 $as_echo "$as_me: creating cache $cache_file" >&6;}
2885   >$cache_file
2886 fi
2887
2888 # Check that the precious variables saved in the cache have kept the same
2889 # value.
2890 ac_cache_corrupted=false
2891 for ac_var in $ac_precious_vars; do
2892   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2893   eval ac_new_set=\$ac_env_${ac_var}_set
2894   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2895   eval ac_new_val=\$ac_env_${ac_var}_value
2896   case $ac_old_set,$ac_new_set in
2897     set,)
2898       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2899 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2900       ac_cache_corrupted=: ;;
2901     ,set)
2902       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2903 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2904       ac_cache_corrupted=: ;;
2905     ,);;
2906     *)
2907       if test "x$ac_old_val" != "x$ac_new_val"; then
2908         # differences in whitespace do not lead to failure.
2909         ac_old_val_w=`echo x $ac_old_val`
2910         ac_new_val_w=`echo x $ac_new_val`
2911         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2912           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2913 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2914           ac_cache_corrupted=:
2915         else
2916           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2917 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2918           eval $ac_var=\$ac_old_val
2919         fi
2920         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2921 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2922         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2923 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2924       fi;;
2925   esac
2926   # Pass precious variables to config.status.
2927   if test "$ac_new_set" = set; then
2928     case $ac_new_val in
2929     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2930     *) ac_arg=$ac_var=$ac_new_val ;;
2931     esac
2932     case " $ac_configure_args " in
2933       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2934       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2935     esac
2936   fi
2937 done
2938 if $ac_cache_corrupted; then
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2942 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2943   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2944 fi
2945 ## -------------------- ##
2946 ## Main body of script. ##
2947 ## -------------------- ##
2948
2949 ac_ext=c
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954
2955
2956
2957
2958
2959
2960 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2961
2962
2963 gcc_version=`cat $srcdir/BASE-VER`
2964
2965 # Determine the host, build, and target systems
2966 ac_aux_dir=
2967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2968   for ac_t in install-sh install.sh shtool; do
2969     if test -f "$ac_dir/$ac_t"; then
2970       ac_aux_dir=$ac_dir
2971       ac_install_sh="$ac_aux_dir/$ac_t -c"
2972       break 2
2973     fi
2974   done
2975 done
2976 if test -z "$ac_aux_dir"; then
2977   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2978 fi
2979
2980 # These three variables are undocumented and unsupported,
2981 # and are intended to be withdrawn in a future Autoconf release.
2982 # They can cause serious problems if a builder's source tree is in a directory
2983 # whose full name contains unusual characters.
2984 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2985 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2986 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2987
2988
2989 # Make sure we can run config.sub.
2990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2991   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2992
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2994 $as_echo_n "checking build system type... " >&6; }
2995 if test "${ac_cv_build+set}" = set; then :
2996   $as_echo_n "(cached) " >&6
2997 else
2998   ac_build_alias=$build_alias
2999 test "x$ac_build_alias" = x &&
3000   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3001 test "x$ac_build_alias" = x &&
3002   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3004   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3005
3006 fi
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3008 $as_echo "$ac_cv_build" >&6; }
3009 case $ac_cv_build in
3010 *-*-*) ;;
3011 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3012 esac
3013 build=$ac_cv_build
3014 ac_save_IFS=$IFS; IFS='-'
3015 set x $ac_cv_build
3016 shift
3017 build_cpu=$1
3018 build_vendor=$2
3019 shift; shift
3020 # Remember, the first character of IFS is used to create $*,
3021 # except with old shells:
3022 build_os=$*
3023 IFS=$ac_save_IFS
3024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3025
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3028 $as_echo_n "checking host system type... " >&6; }
3029 if test "${ac_cv_host+set}" = set; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   if test "x$host_alias" = x; then
3033   ac_cv_host=$ac_cv_build
3034 else
3035   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3036     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3037 fi
3038
3039 fi
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3041 $as_echo "$ac_cv_host" >&6; }
3042 case $ac_cv_host in
3043 *-*-*) ;;
3044 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3045 esac
3046 host=$ac_cv_host
3047 ac_save_IFS=$IFS; IFS='-'
3048 set x $ac_cv_host
3049 shift
3050 host_cpu=$1
3051 host_vendor=$2
3052 shift; shift
3053 # Remember, the first character of IFS is used to create $*,
3054 # except with old shells:
3055 host_os=$*
3056 IFS=$ac_save_IFS
3057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3058
3059
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3061 $as_echo_n "checking target system type... " >&6; }
3062 if test "${ac_cv_target+set}" = set; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   if test "x$target_alias" = x; then
3066   ac_cv_target=$ac_cv_host
3067 else
3068   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3069     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3070 fi
3071
3072 fi
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3074 $as_echo "$ac_cv_target" >&6; }
3075 case $ac_cv_target in
3076 *-*-*) ;;
3077 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3078 esac
3079 target=$ac_cv_target
3080 ac_save_IFS=$IFS; IFS='-'
3081 set x $ac_cv_target
3082 shift
3083 target_cpu=$1
3084 target_vendor=$2
3085 shift; shift
3086 # Remember, the first character of IFS is used to create $*,
3087 # except with old shells:
3088 target_os=$*
3089 IFS=$ac_save_IFS
3090 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3091
3092
3093 # The aliases save the names the user supplied, while $host etc.
3094 # will get canonicalized.
3095 test -n "$target_alias" &&
3096   test "$program_prefix$program_suffix$program_transform_name" = \
3097     NONENONEs,x,x, &&
3098   program_prefix=${target_alias}-
3099
3100 # Determine the noncanonical target name, for directory use.
3101  case ${build_alias} in
3102   "") build_noncanonical=${build} ;;
3103   *) build_noncanonical=${build_alias} ;;
3104 esac
3105
3106  case ${host_alias} in
3107   "") host_noncanonical=${build_noncanonical} ;;
3108   *) host_noncanonical=${host_alias} ;;
3109 esac
3110
3111  case ${target_alias} in
3112   "") target_noncanonical=${host_noncanonical} ;;
3113   *) target_noncanonical=${target_alias} ;;
3114 esac
3115
3116
3117
3118
3119 # Determine the target- and build-specific subdirectories
3120
3121 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3122 # have matching libraries, they should use host libraries: Makefile.tpl
3123 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3124 # However, they still use the build modules, because the corresponding
3125 # host modules (e.g. bison) are only built for the host when bootstrap
3126 # finishes. So:
3127 # - build_subdir is where we find build modules, and never changes.
3128 # - build_libsubdir is where we find build libraries, and can be overridden.
3129
3130 # Prefix 'build-' so this never conflicts with target_subdir.
3131 build_subdir="build-${build_noncanonical}"
3132
3133 # Check whether --with-build-libsubdir was given.
3134 if test "${with_build_libsubdir+set}" = set; then :
3135   withval=$with_build_libsubdir; build_libsubdir="$withval"
3136 else
3137   build_libsubdir="$build_subdir"
3138 fi
3139
3140 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3141 if ( test $srcdir = . && test -d gcc ) \
3142    || test -d $srcdir/../host-${host_noncanonical}; then
3143   host_subdir="host-${host_noncanonical}"
3144 else
3145   host_subdir=.
3146 fi
3147 # No prefix.
3148 target_subdir=${target_noncanonical}
3149
3150
3151 # Set program_transform_name
3152 test "$program_prefix" != NONE &&
3153   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE &&
3156   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3157 # Double any \ or $.
3158 # By default was `s,x,x', remove it if useless.
3159 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3160 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3161
3162
3163 # Check for bogus environment variables.
3164 # Test if LIBRARY_PATH contains the notation for the current directory
3165 # since this would lead to problems installing/building glibc.
3166 # LIBRARY_PATH contains the current directory if one of the following
3167 # is true:
3168 # - one of the terminals (":" and ";") is the first or last sign
3169 # - two terminals occur directly after each other
3170 # - the path contains an element with a dot in it
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3172 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3173 case ${LIBRARY_PATH} in
3174   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3175     library_path_setting="contains current directory"
3176     ;;
3177   *)
3178     library_path_setting="ok"
3179     ;;
3180 esac
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3182 $as_echo "$library_path_setting" >&6; }
3183 if test "$library_path_setting" != "ok"; then
3184 as_fn_error "
3185 *** LIBRARY_PATH shouldn't contain the current directory when
3186 *** building gcc. Please change the environment variable
3187 *** and run configure again." "$LINENO" 5
3188 fi
3189
3190 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3191 # since this would lead to problems installing/building glibc.
3192 # GCC_EXEC_PREFIX contains the current directory if one of the following
3193 # is true:
3194 # - one of the terminals (":" and ";") is the first or last sign
3195 # - two terminals occur directly after each other
3196 # - the path contains an element with a dot in it
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3198 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3199 case ${GCC_EXEC_PREFIX} in
3200   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3201     gcc_exec_prefix_setting="contains current directory"
3202     ;;
3203   *)
3204     gcc_exec_prefix_setting="ok"
3205     ;;
3206 esac
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3208 $as_echo "$gcc_exec_prefix_setting" >&6; }
3209 if test "$gcc_exec_prefix_setting" != "ok"; then
3210 as_fn_error "
3211 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3212 *** building gcc. Please change the environment variable
3213 *** and run configure again." "$LINENO" 5
3214 fi
3215
3216 # -----------
3217 # Directories
3218 # -----------
3219
3220 # Specify the local prefix
3221 local_prefix=
3222
3223 # Check whether --with-local-prefix was given.
3224 if test "${with_local_prefix+set}" = set; then :
3225   withval=$with_local_prefix; case "${withval}" in
3226 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3227 no)     ;;
3228 *)      local_prefix=$with_local_prefix ;;
3229 esac
3230 fi
3231
3232
3233 # Default local prefix if it is empty
3234 if test x$local_prefix = x; then
3235         local_prefix=/usr/local
3236 fi
3237
3238 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3239 # passed in by the toplevel make and thus we'd get different behavior
3240 # depending on where we built the sources.
3241 gcc_gxx_include_dir=
3242 # Specify the g++ header file directory
3243
3244 # Check whether --with-gxx-include-dir was given.
3245 if test "${with_gxx_include_dir+set}" = set; then :
3246   withval=$with_gxx_include_dir; case "${withval}" in
3247 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3248 no)     ;;
3249 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3250 esac
3251 fi
3252
3253
3254 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3255 if test x${gcc_gxx_include_dir} = x; then
3256   if test x${enable_version_specific_runtime_libs} = xyes; then
3257     gcc_gxx_include_dir='${libsubdir}/include/c++'
3258   else
3259     libstdcxx_incdir='include/c++/$(version)'
3260     if test x$host != x$target; then
3261        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3262     fi
3263     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3264   fi
3265 fi
3266
3267
3268 # Check whether --with-cpp_install_dir was given.
3269 if test "${with_cpp_install_dir+set}" = set; then :
3270   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3271   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3272 elif test x$withval != xno; then
3273   cpp_install_dir=$withval
3274 fi
3275 fi
3276
3277
3278 # We would like to our source tree to be readonly.  However when releases or
3279 # pre-releases are generated, the flex/bison generated files as well as the
3280 # various formats of manuals need to be included along with the rest of the
3281 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3282 # just that.
3283
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3285 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3286     # Check whether --enable-generated-files-in-srcdir was given.
3287 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3288   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3289 else
3290   generated_files_in_srcdir=no
3291 fi
3292
3293
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3295 $as_echo "$generated_files_in_srcdir" >&6; }
3296
3297 if test "$generated_files_in_srcdir" = "yes"; then
3298   GENINSRC=''
3299 else
3300   GENINSRC='#'
3301 fi
3302
3303
3304 # -------------------
3305 # Find default linker
3306 # -------------------
3307
3308 # With GNU ld
3309
3310 # Check whether --with-gnu-ld was given.
3311 if test "${with_gnu_ld+set}" = set; then :
3312   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3313 else
3314   gnu_ld_flag=no
3315 fi
3316
3317
3318 # With pre-defined ld
3319
3320 # Check whether --with-ld was given.
3321 if test "${with_ld+set}" = set; then :
3322   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3323 fi
3324
3325 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3326   if test ! -x "$DEFAULT_LINKER"; then
3327     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3328   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3329     gnu_ld_flag=yes
3330   fi
3331
3332 cat >>confdefs.h <<_ACEOF
3333 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3334 _ACEOF
3335
3336 fi
3337
3338 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3339
3340 cat >>confdefs.h <<_ACEOF
3341 #define HAVE_GNU_LD $gnu_ld
3342 _ACEOF
3343
3344
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3346 $as_echo_n "checking whether a default linker was specified... " >&6; }
3347 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3348   if test x"$gnu_ld_flag" = x"no"; then
3349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3350 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3351   else
3352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3353 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3354   fi
3355 else
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 fi
3359
3360 # With demangler in GNU ld
3361
3362 # Check whether --with-demangler-in-ld was given.
3363 if test "${with_demangler_in_ld+set}" = set; then :
3364   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3365 else
3366   demangler_in_ld=no
3367 fi
3368
3369
3370 # ----------------------
3371 # Find default assembler
3372 # ----------------------
3373
3374 # With GNU as
3375
3376 # Check whether --with-gnu-as was given.
3377 if test "${with_gnu_as+set}" = set; then :
3378   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3379 else
3380   gas_flag=no
3381 fi
3382
3383
3384
3385 # Check whether --with-as was given.
3386 if test "${with_as+set}" = set; then :
3387   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3388 fi
3389
3390 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3391   if test ! -x "$DEFAULT_ASSEMBLER"; then
3392     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3393   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3394     gas_flag=yes
3395   fi
3396
3397 cat >>confdefs.h <<_ACEOF
3398 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3399 _ACEOF
3400
3401 fi
3402
3403 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3404
3405 cat >>confdefs.h <<_ACEOF
3406 #define HAVE_GNU_AS $gnu_as
3407 _ACEOF
3408
3409
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3411 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3412 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3413   if test x"$gas_flag" = x"no"; then
3414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3415 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3416   else
3417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3418 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3419   fi
3420 else
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 fi
3424
3425 # ---------------
3426 # Find C compiler
3427 # ---------------
3428
3429 # If a non-executable a.out is present (e.g. created by GNU as above even if
3430 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3431 # file, even when creating an executable, so an execution test fails.
3432 # Remove possible default executable files to avoid this.
3433 #
3434 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3435 # Autoconf includes it.
3436 rm -f a.out a.exe b.out
3437
3438 # Find the native compiler
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 if test -n "$ac_tool_prefix"; then
3445   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3446 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if test "${ac_cv_prog_CC+set}" = set; then :
3450   $as_echo_n "(cached) " >&6
3451 else
3452   if test -n "$CC"; then
3453   ac_cv_prog_CC="$CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460     for ac_exec_ext in '' $ac_executable_extensions; do
3461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467   done
3468 IFS=$as_save_IFS
3469
3470 fi
3471 fi
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3476 else
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 fi
3480
3481
3482 fi
3483 if test -z "$ac_cv_prog_CC"; then
3484   ac_ct_CC=$CC
3485   # Extract the first word of "gcc", so it can be a program name with args.
3486 set dummy gcc; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3490   $as_echo_n "(cached) " >&6
3491 else
3492   if test -n "$ac_ct_CC"; then
3493   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3494 else
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3497 do
3498   IFS=$as_save_IFS
3499   test -z "$as_dir" && as_dir=.
3500     for ac_exec_ext in '' $ac_executable_extensions; do
3501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3502     ac_cv_prog_ac_ct_CC="gcc"
3503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3504     break 2
3505   fi
3506 done
3507   done
3508 IFS=$as_save_IFS
3509
3510 fi
3511 fi
3512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3513 if test -n "$ac_ct_CC"; then
3514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3515 $as_echo "$ac_ct_CC" >&6; }
3516 else
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3519 fi
3520
3521   if test "x$ac_ct_CC" = x; then
3522     CC=""
3523   else
3524     case $cross_compiling:$ac_tool_warned in
3525 yes:)
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528 ac_tool_warned=yes ;;
3529 esac
3530     CC=$ac_ct_CC
3531   fi
3532 else
3533   CC="$ac_cv_prog_CC"
3534 fi
3535
3536 if test -z "$CC"; then
3537           if test -n "$ac_tool_prefix"; then
3538     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3539 set dummy ${ac_tool_prefix}cc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_CC+set}" = set; then :
3543   $as_echo_n "(cached) " >&6
3544 else
3545   if test -n "$CC"; then
3546   ac_cv_prog_CC="$CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553     for ac_exec_ext in '' $ac_executable_extensions; do
3554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555     ac_cv_prog_CC="${ac_tool_prefix}cc"
3556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560   done
3561 IFS=$as_save_IFS
3562
3563 fi
3564 fi
3565 CC=$ac_cv_prog_CC
3566 if test -n "$CC"; then
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 $as_echo "$CC" >&6; }
3569 else
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 fi
3573
3574
3575   fi
3576 fi
3577 if test -z "$CC"; then
3578   # Extract the first word of "cc", so it can be a program name with args.
3579 set dummy cc; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if test "${ac_cv_prog_CC+set}" = set; then :
3583   $as_echo_n "(cached) " >&6
3584 else
3585   if test -n "$CC"; then
3586   ac_cv_prog_CC="$CC" # Let the user override the test.
3587 else
3588   ac_prog_rejected=no
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592   IFS=$as_save_IFS
3593   test -z "$as_dir" && as_dir=.
3594     for ac_exec_ext in '' $ac_executable_extensions; do
3595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3597        ac_prog_rejected=yes
3598        continue
3599      fi
3600     ac_cv_prog_CC="cc"
3601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602     break 2
3603   fi
3604 done
3605   done
3606 IFS=$as_save_IFS
3607
3608 if test $ac_prog_rejected = yes; then
3609   # We found a bogon in the path, so make sure we never use it.
3610   set dummy $ac_cv_prog_CC
3611   shift
3612   if test $# != 0; then
3613     # We chose a different compiler from the bogus one.
3614     # However, it has the same basename, so the bogon will be chosen
3615     # first if we set CC to just the basename; use the full file name.
3616     shift
3617     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3618   fi
3619 fi
3620 fi
3621 fi
3622 CC=$ac_cv_prog_CC
3623 if test -n "$CC"; then
3624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 $as_echo "$CC" >&6; }
3626 else
3627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 fi
3630
3631
3632 fi
3633 if test -z "$CC"; then
3634   if test -n "$ac_tool_prefix"; then
3635   for ac_prog in cl.exe
3636   do
3637     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if test "${ac_cv_prog_CC+set}" = set; then :
3642   $as_echo_n "(cached) " >&6
3643 else
3644   if test -n "$CC"; then
3645   ac_cv_prog_CC="$CC" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650   IFS=$as_save_IFS
3651   test -z "$as_dir" && as_dir=.
3652     for ac_exec_ext in '' $ac_executable_extensions; do
3653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656     break 2
3657   fi
3658 done
3659   done
3660 IFS=$as_save_IFS
3661
3662 fi
3663 fi
3664 CC=$ac_cv_prog_CC
3665 if test -n "$CC"; then
3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3667 $as_echo "$CC" >&6; }
3668 else
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3671 fi
3672
3673
3674     test -n "$CC" && break
3675   done
3676 fi
3677 if test -z "$CC"; then
3678   ac_ct_CC=$CC
3679   for ac_prog in cl.exe
3680 do
3681   # Extract the first word of "$ac_prog", so it can be a program name with args.
3682 set dummy $ac_prog; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3686   $as_echo_n "(cached) " >&6
3687 else
3688   if test -n "$ac_ct_CC"; then
3689   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694   IFS=$as_save_IFS
3695   test -z "$as_dir" && as_dir=.
3696     for ac_exec_ext in '' $ac_executable_extensions; do
3697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698     ac_cv_prog_ac_ct_CC="$ac_prog"
3699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700     break 2
3701   fi
3702 done
3703   done
3704 IFS=$as_save_IFS
3705
3706 fi
3707 fi
3708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3709 if test -n "$ac_ct_CC"; then
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3711 $as_echo "$ac_ct_CC" >&6; }
3712 else
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 fi
3716
3717
3718   test -n "$ac_ct_CC" && break
3719 done
3720
3721   if test "x$ac_ct_CC" = x; then
3722     CC=""
3723   else
3724     case $cross_compiling:$ac_tool_warned in
3725 yes:)
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3728 ac_tool_warned=yes ;;
3729 esac
3730     CC=$ac_ct_CC
3731   fi
3732 fi
3733
3734 fi
3735
3736
3737 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739 as_fn_error "no acceptable C compiler found in \$PATH
3740 See \`config.log' for more details." "$LINENO" 5; }
3741
3742 # Provide some information about the compiler.
3743 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3744 set X $ac_compile
3745 ac_compiler=$2
3746 for ac_option in --version -v -V -qversion; do
3747   { { ac_try="$ac_compiler $ac_option >&5"
3748 case "(($ac_try" in
3749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750   *) ac_try_echo=$ac_try;;
3751 esac
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3755   ac_status=$?
3756   if test -s conftest.err; then
3757     sed '10a\
3758 ... rest of stderr output deleted ...
3759          10q' conftest.err >conftest.er1
3760     cat conftest.er1 >&5
3761     rm -f conftest.er1 conftest.err
3762   fi
3763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764   test $ac_status = 0; }
3765 done
3766
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h.  */
3769
3770 int
3771 main ()
3772 {
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 ac_clean_files_save=$ac_clean_files
3779 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3780 # Try to create an executable without -o first, disregard a.out.
3781 # It will help us diagnose broken compilers, and finding out an intuition
3782 # of exeext.
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3784 $as_echo_n "checking for C compiler default output file name... " >&6; }
3785 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3786
3787 # The possible output files:
3788 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3789
3790 ac_rmfiles=
3791 for ac_file in $ac_files
3792 do
3793   case $ac_file in
3794     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3795     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3796   esac
3797 done
3798 rm -f $ac_rmfiles
3799
3800 if { { ac_try="$ac_link_default"
3801 case "(($ac_try" in
3802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803   *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807   (eval "$ac_link_default") 2>&5
3808   ac_status=$?
3809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810   test $ac_status = 0; }; then :
3811   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3812 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3813 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3814 # so that the user can short-circuit this test for compilers unknown to
3815 # Autoconf.
3816 for ac_file in $ac_files ''
3817 do
3818   test -f "$ac_file" || continue
3819   case $ac_file in
3820     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3821         ;;
3822     [ab].out )
3823         # We found the default executable, but exeext='' is most
3824         # certainly right.
3825         break;;
3826     *.* )
3827         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3828         then :; else
3829            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3830         fi
3831         # We set ac_cv_exeext here because the later test for it is not
3832         # safe: cross compilers may not add the suffix if given an `-o'
3833         # argument, so we may need to know it at that point already.
3834         # Even if this section looks crufty: it has the advantage of
3835         # actually working.
3836         break;;
3837     * )
3838         break;;
3839   esac
3840 done
3841 test "$ac_cv_exeext" = no && ac_cv_exeext=
3842
3843 else
3844   ac_file=''
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3847 $as_echo "$ac_file" >&6; }
3848 if test -z "$ac_file"; then :
3849   $as_echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 { as_fn_set_status 77
3855 as_fn_error "C compiler cannot create executables
3856 See \`config.log' for more details." "$LINENO" 5; }; }
3857 fi
3858 ac_exeext=$ac_cv_exeext
3859
3860 # Check that the compiler produces executables we can run.  If not, either
3861 # the compiler is broken, or we cross compile.
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3863 $as_echo_n "checking whether the C compiler works... " >&6; }
3864 # If not cross compiling, check that we can run a simple program.
3865 if test "$cross_compiling" != yes; then
3866   if { ac_try='./$ac_file'
3867   { { case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873   (eval "$ac_try") 2>&5
3874   ac_status=$?
3875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876   test $ac_status = 0; }; }; then
3877     cross_compiling=no
3878   else
3879     if test "$cross_compiling" = maybe; then
3880         cross_compiling=yes
3881     else
3882         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error "cannot run C compiled programs.
3885 If you meant to cross compile, use \`--host'.
3886 See \`config.log' for more details." "$LINENO" 5; }
3887     fi
3888   fi
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 $as_echo "yes" >&6; }
3892
3893 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3894 ac_clean_files=$ac_clean_files_save
3895 # Check that the compiler produces executables we can run.  If not, either
3896 # the compiler is broken, or we cross compile.
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3898 $as_echo_n "checking whether we are cross compiling... " >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3900 $as_echo "$cross_compiling" >&6; }
3901
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3903 $as_echo_n "checking for suffix of executables... " >&6; }
3904 if { { ac_try="$ac_link"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911   (eval "$ac_link") 2>&5
3912   ac_status=$?
3913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914   test $ac_status = 0; }; then :
3915   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3916 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3917 # work properly (i.e., refer to `conftest.exe'), while it won't with
3918 # `rm'.
3919 for ac_file in conftest.exe conftest conftest.*; do
3920   test -f "$ac_file" || continue
3921   case $ac_file in
3922     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3923     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924           break;;
3925     * ) break;;
3926   esac
3927 done
3928 else
3929   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error "cannot compute suffix of executables: cannot compile and link
3932 See \`config.log' for more details." "$LINENO" 5; }
3933 fi
3934 rm -f conftest$ac_cv_exeext
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3936 $as_echo "$ac_cv_exeext" >&6; }
3937
3938 rm -f conftest.$ac_ext
3939 EXEEXT=$ac_cv_exeext
3940 ac_exeext=$EXEEXT
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942 $as_echo_n "checking for suffix of object files... " >&6; }
3943 if test "${ac_cv_objext+set}" = set; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h.  */
3948
3949 int
3950 main ()
3951 {
3952
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 rm -f conftest.o conftest.obj
3958 if { { ac_try="$ac_compile"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965   (eval "$ac_compile") 2>&5
3966   ac_status=$?
3967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968   test $ac_status = 0; }; then :
3969   for ac_file in conftest.o conftest.obj conftest.*; do
3970   test -f "$ac_file" || continue;
3971   case $ac_file in
3972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3973     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3974        break;;
3975   esac
3976 done
3977 else
3978   $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error "cannot compute suffix of object files: cannot compile
3984 See \`config.log' for more details." "$LINENO" 5; }
3985 fi
3986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3989 $as_echo "$ac_cv_objext" >&6; }
3990 OBJEXT=$ac_cv_objext
3991 ac_objext=$OBJEXT
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3993 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3994 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h.  */
3999
4000 int
4001 main ()
4002 {
4003 #ifndef __GNUC__
4004        choke me
4005 #endif
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012   ac_compiler_gnu=yes
4013 else
4014   ac_compiler_gnu=no
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4018
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4021 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4022 if test $ac_compiler_gnu = yes; then
4023   GCC=yes
4024 else
4025   GCC=
4026 fi
4027 ac_test_CFLAGS=${CFLAGS+set}
4028 ac_save_CFLAGS=$CFLAGS
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4030 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4031 if test "${ac_cv_prog_cc_g+set}" = set; then :
4032   $as_echo_n "(cached) " >&6
4033 else
4034   ac_save_c_werror_flag=$ac_c_werror_flag
4035    ac_c_werror_flag=yes
4036    ac_cv_prog_cc_g=no
4037    CFLAGS="-g"
4038    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h.  */
4040
4041 int
4042 main ()
4043 {
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050   ac_cv_prog_cc_g=yes
4051 else
4052   CFLAGS=""
4053       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065
4066 else
4067   ac_c_werror_flag=$ac_save_c_werror_flag
4068          CFLAGS="-g"
4069          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h.  */
4071
4072 int
4073 main ()
4074 {
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081   ac_cv_prog_cc_g=yes
4082 fi
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 fi
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088    ac_c_werror_flag=$ac_save_c_werror_flag
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4091 $as_echo "$ac_cv_prog_cc_g" >&6; }
4092 if test "$ac_test_CFLAGS" = set; then
4093   CFLAGS=$ac_save_CFLAGS
4094 elif test $ac_cv_prog_cc_g = yes; then
4095   if test "$GCC" = yes; then
4096     CFLAGS="-g -O2"
4097   else
4098     CFLAGS="-g"
4099   fi
4100 else
4101   if test "$GCC" = yes; then
4102     CFLAGS="-O2"
4103   else
4104     CFLAGS=
4105   fi
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4108 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4109 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4110   $as_echo_n "(cached) " >&6
4111 else
4112   ac_cv_prog_cc_c89=no
4113 ac_save_CC=$CC
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h.  */
4116 #include <stdarg.h>
4117 #include <stdio.h>
4118 #include <sys/types.h>
4119 #include <sys/stat.h>
4120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4121 struct buf { int x; };
4122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4123 static char *e (p, i)
4124      char **p;
4125      int i;
4126 {
4127   return p[i];
4128 }
4129 static char *f (char * (*g) (char **, int), char **p, ...)
4130 {
4131   char *s;
4132   va_list v;
4133   va_start (v,p);
4134   s = g (p, va_arg (v,int));
4135   va_end (v);
4136   return s;
4137 }
4138
4139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4140    function prototypes and stuff, but not '\xHH' hex character constants.
4141    These don't provoke an error unfortunately, instead are silently treated
4142    as 'x'.  The following induces an error, until -std is added to get
4143    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4144    array size at least.  It's necessary to write '\x00'==0 to get something
4145    that's true only with -std.  */
4146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4147
4148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4149    inside strings and character constants.  */
4150 #define FOO(x) 'x'
4151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4152
4153 int test (int i, double x);
4154 struct s1 {int (*f) (int a);};
4155 struct s2 {int (*f) (double a);};
4156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4157 int argc;
4158 char **argv;
4159 int
4160 main ()
4161 {
4162 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4168         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4169 do
4170   CC="$ac_save_CC $ac_arg"
4171   if ac_fn_c_try_compile "$LINENO"; then :
4172   ac_cv_prog_cc_c89=$ac_arg
4173 fi
4174 rm -f core conftest.err conftest.$ac_objext
4175   test "x$ac_cv_prog_cc_c89" != "xno" && break
4176 done
4177 rm -f conftest.$ac_ext
4178 CC=$ac_save_CC
4179
4180 fi
4181 # AC_CACHE_VAL
4182 case "x$ac_cv_prog_cc_c89" in
4183   x)
4184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 $as_echo "none needed" >&6; } ;;
4186   xno)
4187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4188 $as_echo "unsupported" >&6; } ;;
4189   *)
4190     CC="$CC $ac_cv_prog_cc_c89"
4191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4193 esac
4194 if test "x$ac_cv_prog_cc_c89" != xno; then :
4195
4196 fi
4197
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
4204 if test "x$CC" != xcc; then
4205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4206 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4207 else
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4209 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4210 fi
4211 set dummy $CC; ac_cc=`$as_echo "$2" |
4212                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4213 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h.  */
4218
4219 int
4220 main ()
4221 {
4222
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 # Make sure it works both with $CC and with simple cc.
4228 # We do the test twice because some compilers refuse to overwrite an
4229 # existing .o file with -o, though they will create one.
4230 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4231 rm -f conftest2.*
4232 if { { case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4237 $as_echo "$ac_try_echo"; } >&5
4238   (eval "$ac_try") 2>&5
4239   ac_status=$?
4240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241   test $ac_status = 0; } &&
4242    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248   (eval "$ac_try") 2>&5
4249   ac_status=$?
4250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251   test $ac_status = 0; };
4252 then
4253   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4254   if test "x$CC" != xcc; then
4255     # Test first that cc exists at all.
4256     if { ac_try='cc -c conftest.$ac_ext >&5'
4257   { { case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262 $as_echo "$ac_try_echo"; } >&5
4263   (eval "$ac_try") 2>&5
4264   ac_status=$?
4265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266   test $ac_status = 0; }; }; then
4267       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4268       rm -f conftest2.*
4269       if { { case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275   (eval "$ac_try") 2>&5
4276   ac_status=$?
4277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278   test $ac_status = 0; } &&
4279          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285   (eval "$ac_try") 2>&5
4286   ac_status=$?
4287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288   test $ac_status = 0; };
4289       then
4290         # cc works too.
4291         :
4292       else
4293         # cc exists but doesn't like -o.
4294         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4295       fi
4296     fi
4297   fi
4298 else
4299   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4300 fi
4301 rm -f core conftest*
4302
4303 fi
4304 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4306 $as_echo "yes" >&6; }
4307 else
4308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4310
4311 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4312
4313 fi
4314
4315 # expand $ac_aux_dir to an absolute path
4316 am_aux_dir=`cd $ac_aux_dir && pwd`
4317
4318 # FIXME: we rely on the cache variable name because
4319 # there is no other way.
4320 set dummy $CC
4321 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4322 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4323 if test "$am_t" != yes; then
4324    # Losing compiler, so override with the script.
4325    # FIXME: It is wrong to rewrite CC.
4326    # But if we don't then we get into trouble of one sort or another.
4327    # A longer-term fix would be to have automake use am__CC in this case,
4328    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4329    CC="$am_aux_dir/compile $CC"
4330 fi
4331
4332
4333 ac_ext=cpp
4334 ac_cpp='$CXXCPP $CPPFLAGS'
4335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4338 if test -z "$CXX"; then
4339   if test -n "$CCC"; then
4340     CXX=$CCC
4341   else
4342     if test -n "$ac_tool_prefix"; then
4343   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4344   do
4345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_CXX+set}" = set; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   if test -n "$CXX"; then
4353   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360     for ac_exec_ext in '' $ac_executable_extensions; do
4361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367   done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 CXX=$ac_cv_prog_CXX
4373 if test -n "$CXX"; then
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4375 $as_echo "$CXX" >&6; }
4376 else
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381
4382     test -n "$CXX" && break
4383   done
4384 fi
4385 if test -z "$CXX"; then
4386   ac_ct_CXX=$CXX
4387   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4388 do
4389   # Extract the first word of "$ac_prog", so it can be a program name with args.
4390 set dummy $ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   if test -n "$ac_ct_CXX"; then
4397   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404     for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_prog_ac_ct_CXX="$ac_prog"
4407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411   done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4417 if test -n "$ac_ct_CXX"; then
4418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4419 $as_echo "$ac_ct_CXX" >&6; }
4420 else
4421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425
4426   test -n "$ac_ct_CXX" && break
4427 done
4428
4429   if test "x$ac_ct_CXX" = x; then
4430     CXX="g++"
4431   else
4432     case $cross_compiling:$ac_tool_warned in
4433 yes:)
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4436 ac_tool_warned=yes ;;
4437 esac
4438     CXX=$ac_ct_CXX
4439   fi
4440 fi
4441
4442   fi
4443 fi
4444 # Provide some information about the compiler.
4445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4446 set X $ac_compile
4447 ac_compiler=$2
4448 for ac_option in --version -v -V -qversion; do
4449   { { ac_try="$ac_compiler $ac_option >&5"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4457   ac_status=$?
4458   if test -s conftest.err; then
4459     sed '10a\
4460 ... rest of stderr output deleted ...
4461          10q' conftest.err >conftest.er1
4462     cat conftest.er1 >&5
4463     rm -f conftest.er1 conftest.err
4464   fi
4465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466   test $ac_status = 0; }
4467 done
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4470 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4471 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h.  */
4476
4477 int
4478 main ()
4479 {
4480 #ifndef __GNUC__
4481        choke me
4482 #endif
4483
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 if ac_fn_cxx_try_compile "$LINENO"; then :
4489   ac_compiler_gnu=yes
4490 else
4491   ac_compiler_gnu=no
4492 fi
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4495
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4498 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4499 if test $ac_compiler_gnu = yes; then
4500   GXX=yes
4501 else
4502   GXX=
4503 fi
4504 ac_test_CXXFLAGS=${CXXFLAGS+set}
4505 ac_save_CXXFLAGS=$CXXFLAGS
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4507 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4508 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4512    ac_cxx_werror_flag=yes
4513    ac_cv_prog_cxx_g=no
4514    CXXFLAGS="-g"
4515    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h.  */
4517
4518 int
4519 main ()
4520 {
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4527   ac_cv_prog_cxx_g=yes
4528 else
4529   CXXFLAGS=""
4530       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h.  */
4532
4533 int
4534 main ()
4535 {
4536
4537   ;
4538   return 0;
4539 }
4540 _ACEOF
4541 if ac_fn_cxx_try_compile "$LINENO"; then :
4542
4543 else
4544   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4545          CXXFLAGS="-g"
4546          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548
4549 int
4550 main ()
4551 {
4552
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 if ac_fn_cxx_try_compile "$LINENO"; then :
4558   ac_cv_prog_cxx_g=yes
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4568 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4569 if test "$ac_test_CXXFLAGS" = set; then
4570   CXXFLAGS=$ac_save_CXXFLAGS
4571 elif test $ac_cv_prog_cxx_g = yes; then
4572   if test "$GXX" = yes; then
4573     CXXFLAGS="-g -O2"
4574   else
4575     CXXFLAGS="-g"
4576   fi
4577 else
4578   if test "$GXX" = yes; then
4579     CXXFLAGS="-O2"
4580   else
4581     CXXFLAGS=
4582   fi
4583 fi
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589
4590
4591
4592
4593 if test -n "$ac_tool_prefix"; then
4594   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4599   $as_echo_n "(cached) " >&6
4600 else
4601   if test -n "$GNATBIND"; then
4602   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609     for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616   done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 GNATBIND=$ac_cv_prog_GNATBIND
4622 if test -n "$GNATBIND"; then
4623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4624 $as_echo "$GNATBIND" >&6; }
4625 else
4626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 fi
4629
4630
4631 fi
4632 if test -z "$ac_cv_prog_GNATBIND"; then
4633   ac_ct_GNATBIND=$GNATBIND
4634   # Extract the first word of "gnatbind", so it can be a program name with args.
4635 set dummy gnatbind; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4639   $as_echo_n "(cached) " >&6
4640 else
4641   if test -n "$ac_ct_GNATBIND"; then
4642   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647   IFS=$as_save_IFS
4648   test -z "$as_dir" && as_dir=.
4649     for ac_exec_ext in '' $ac_executable_extensions; do
4650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653     break 2
4654   fi
4655 done
4656   done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4662 if test -n "$ac_ct_GNATBIND"; then
4663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4664 $as_echo "$ac_ct_GNATBIND" >&6; }
4665 else
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670   if test "x$ac_ct_GNATBIND" = x; then
4671     GNATBIND="no"
4672   else
4673     case $cross_compiling:$ac_tool_warned in
4674 yes:)
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4678 esac
4679     GNATBIND=$ac_ct_GNATBIND
4680   fi
4681 else
4682   GNATBIND="$ac_cv_prog_GNATBIND"
4683 fi
4684
4685 if test -n "$ac_tool_prefix"; then
4686   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4687 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   if test -n "$GNATMAKE"; then
4694   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701     for ac_exec_ext in '' $ac_executable_extensions; do
4702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705     break 2
4706   fi
4707 done
4708   done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 GNATMAKE=$ac_cv_prog_GNATMAKE
4714 if test -n "$GNATMAKE"; then
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4716 $as_echo "$GNATMAKE" >&6; }
4717 else
4718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723 fi
4724 if test -z "$ac_cv_prog_GNATMAKE"; then
4725   ac_ct_GNATMAKE=$GNATMAKE
4726   # Extract the first word of "gnatmake", so it can be a program name with args.
4727 set dummy gnatmake; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   if test -n "$ac_ct_GNATMAKE"; then
4734   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739   IFS=$as_save_IFS
4740   test -z "$as_dir" && as_dir=.
4741     for ac_exec_ext in '' $ac_executable_extensions; do
4742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745     break 2
4746   fi
4747 done
4748   done
4749 IFS=$as_save_IFS
4750
4751 fi
4752 fi
4753 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4754 if test -n "$ac_ct_GNATMAKE"; then
4755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4756 $as_echo "$ac_ct_GNATMAKE" >&6; }
4757 else
4758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4760 fi
4761
4762   if test "x$ac_ct_GNATMAKE" = x; then
4763     GNATMAKE="no"
4764   else
4765     case $cross_compiling:$ac_tool_warned in
4766 yes:)
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4769 ac_tool_warned=yes ;;
4770 esac
4771     GNATMAKE=$ac_ct_GNATMAKE
4772   fi
4773 else
4774   GNATMAKE="$ac_cv_prog_GNATMAKE"
4775 fi
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4778 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4779 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   cat >conftest.adb <<EOF
4783 procedure conftest is begin null; end conftest;
4784 EOF
4785 acx_cv_cc_gcc_supports_ada=no
4786 # There is a bug in old released versions of GCC which causes the
4787 # driver to exit successfully when the appropriate language module
4788 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4789 # Therefore we must check for the error message as well as an
4790 # unsuccessful exit.
4791 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4792 # given a .adb file, but produce no object file.  So we must check
4793 # if an object file was really produced to guard against this.
4794 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4795 if test x"$errors" = x && test -f conftest.$ac_objext; then
4796   acx_cv_cc_gcc_supports_ada=yes
4797 fi
4798 rm -f conftest.*
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4801 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4802
4803 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4804   have_gnat=yes
4805 else
4806   have_gnat=no
4807 fi
4808
4809
4810 # autoconf is lame and doesn't give us any substitution variable for this.
4811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4812   NO_MINUS_C_MINUS_O=yes
4813 else
4814   OUTPUT_OPTION='-o $@'
4815 fi
4816
4817
4818
4819 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4820 # optimizations to be activated explicitly by the toplevel.
4821 case "$CC" in
4822   */prev-gcc/xgcc*) ;;
4823   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4824 esac
4825
4826
4827 # -------------------------
4828 # Check C compiler features
4829 # -------------------------
4830
4831
4832 ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4838 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4839 # On Suns, sometimes $CPP names a directory.
4840 if test -n "$CPP" && test -d "$CPP"; then
4841   CPP=
4842 fi
4843 if test -z "$CPP"; then
4844   if test "${ac_cv_prog_CPP+set}" = set; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847       # Double quotes because CPP needs to be expanded
4848     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4849     do
4850       ac_preproc_ok=false
4851 for ac_c_preproc_warn_flag in '' yes
4852 do
4853   # Use a header file that comes with gcc, so configuring glibc
4854   # with a fresh cross-compiler works.
4855   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4856   # <limits.h> exists even on freestanding compilers.
4857   # On the NeXT, cc -E runs the code through the compiler's parser,
4858   # not just through cpp. "Syntax error" is here to catch this case.
4859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h.  */
4861 #ifdef __STDC__
4862 # include <limits.h>
4863 #else
4864 # include <assert.h>
4865 #endif
4866                      Syntax error
4867 _ACEOF
4868 if ac_fn_c_try_cpp "$LINENO"; then :
4869
4870 else
4871   # Broken: fails on valid input.
4872 continue
4873 fi
4874 rm -f conftest.err conftest.$ac_ext
4875
4876   # OK, works on sane cases.  Now check whether nonexistent headers
4877   # can be detected and how.
4878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h.  */
4880 #include <ac_nonexistent.h>
4881 _ACEOF
4882 if ac_fn_c_try_cpp "$LINENO"; then :
4883   # Broken: success on invalid input.
4884 continue
4885 else
4886   # Passes both tests.
4887 ac_preproc_ok=:
4888 break
4889 fi
4890 rm -f conftest.err conftest.$ac_ext
4891
4892 done
4893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4894 rm -f conftest.err conftest.$ac_ext
4895 if $ac_preproc_ok; then :
4896   break
4897 fi
4898
4899     done
4900     ac_cv_prog_CPP=$CPP
4901
4902 fi
4903   CPP=$ac_cv_prog_CPP
4904 else
4905   ac_cv_prog_CPP=$CPP
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4908 $as_echo "$CPP" >&6; }
4909 ac_preproc_ok=false
4910 for ac_c_preproc_warn_flag in '' yes
4911 do
4912   # Use a header file that comes with gcc, so configuring glibc
4913   # with a fresh cross-compiler works.
4914   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915   # <limits.h> exists even on freestanding compilers.
4916   # On the NeXT, cc -E runs the code through the compiler's parser,
4917   # not just through cpp. "Syntax error" is here to catch this case.
4918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h.  */
4920 #ifdef __STDC__
4921 # include <limits.h>
4922 #else
4923 # include <assert.h>
4924 #endif
4925                      Syntax error
4926 _ACEOF
4927 if ac_fn_c_try_cpp "$LINENO"; then :
4928
4929 else
4930   # Broken: fails on valid input.
4931 continue
4932 fi
4933 rm -f conftest.err conftest.$ac_ext
4934
4935   # OK, works on sane cases.  Now check whether nonexistent headers
4936   # can be detected and how.
4937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h.  */
4939 #include <ac_nonexistent.h>
4940 _ACEOF
4941 if ac_fn_c_try_cpp "$LINENO"; then :
4942   # Broken: success on invalid input.
4943 continue
4944 else
4945   # Passes both tests.
4946 ac_preproc_ok=:
4947 break
4948 fi
4949 rm -f conftest.err conftest.$ac_ext
4950
4951 done
4952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4953 rm -f conftest.err conftest.$ac_ext
4954 if $ac_preproc_ok; then :
4955
4956 else
4957   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4959 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4960 See \`config.log' for more details." "$LINENO" 5; }
4961 fi
4962
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4971 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4972 if test "${ac_cv_path_GREP+set}" = set; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975   if test -z "$GREP"; then
4976   ac_path_GREP_found=false
4977   # Loop through the user's path and test for each of PROGNAME-LIST
4978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983     for ac_prog in grep ggrep; do
4984     for ac_exec_ext in '' $ac_executable_extensions; do
4985       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4986       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4987 # Check for GNU ac_path_GREP and select it if it is found.
4988   # Check for GNU $ac_path_GREP
4989 case `"$ac_path_GREP" --version 2>&1` in
4990 *GNU*)
4991   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4992 *)
4993   ac_count=0
4994   $as_echo_n 0123456789 >"conftest.in"
4995   while :
4996   do
4997     cat "conftest.in" "conftest.in" >"conftest.tmp"
4998     mv "conftest.tmp" "conftest.in"
4999     cp "conftest.in" "conftest.nl"
5000     $as_echo 'GREP' >> "conftest.nl"
5001     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5002     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5003     as_fn_arith $ac_count + 1 && ac_count=$as_val
5004     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5005       # Best one so far, save it but keep looking for a better one
5006       ac_cv_path_GREP="$ac_path_GREP"
5007       ac_path_GREP_max=$ac_count
5008     fi
5009     # 10*(2^10) chars as input seems more than enough
5010     test $ac_count -gt 10 && break
5011   done
5012   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5013 esac
5014
5015       $ac_path_GREP_found && break 3
5016     done
5017   done
5018   done
5019 IFS=$as_save_IFS
5020   if test -z "$ac_cv_path_GREP"; then
5021     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5022   fi
5023 else
5024   ac_cv_path_GREP=$GREP
5025 fi
5026
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5029 $as_echo "$ac_cv_path_GREP" >&6; }
5030  GREP="$ac_cv_path_GREP"
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5034 $as_echo_n "checking for egrep... " >&6; }
5035 if test "${ac_cv_path_EGREP+set}" = set; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5039    then ac_cv_path_EGREP="$GREP -E"
5040    else
5041      if test -z "$EGREP"; then
5042   ac_path_EGREP_found=false
5043   # Loop through the user's path and test for each of PROGNAME-LIST
5044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5046 do
5047   IFS=$as_save_IFS
5048   test -z "$as_dir" && as_dir=.
5049     for ac_prog in egrep; do
5050     for ac_exec_ext in '' $ac_executable_extensions; do
5051       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5052       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5053 # Check for GNU ac_path_EGREP and select it if it is found.
5054   # Check for GNU $ac_path_EGREP
5055 case `"$ac_path_EGREP" --version 2>&1` in
5056 *GNU*)
5057   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5058 *)
5059   ac_count=0
5060   $as_echo_n 0123456789 >"conftest.in"
5061   while :
5062   do
5063     cat "conftest.in" "conftest.in" >"conftest.tmp"
5064     mv "conftest.tmp" "conftest.in"
5065     cp "conftest.in" "conftest.nl"
5066     $as_echo 'EGREP' >> "conftest.nl"
5067     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5069     as_fn_arith $ac_count + 1 && ac_count=$as_val
5070     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5071       # Best one so far, save it but keep looking for a better one
5072       ac_cv_path_EGREP="$ac_path_EGREP"
5073       ac_path_EGREP_max=$ac_count
5074     fi
5075     # 10*(2^10) chars as input seems more than enough
5076     test $ac_count -gt 10 && break
5077   done
5078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079 esac
5080
5081       $ac_path_EGREP_found && break 3
5082     done
5083   done
5084   done
5085 IFS=$as_save_IFS
5086   if test -z "$ac_cv_path_EGREP"; then
5087     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088   fi
5089 else
5090   ac_cv_path_EGREP=$EGREP
5091 fi
5092
5093    fi
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5096 $as_echo "$ac_cv_path_EGREP" >&6; }
5097  EGREP="$ac_cv_path_EGREP"
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5101 $as_echo_n "checking for ANSI C header files... " >&6; }
5102 if test "${ac_cv_header_stdc+set}" = set; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h.  */
5107 #include <stdlib.h>
5108 #include <stdarg.h>
5109 #include <string.h>
5110 #include <float.h>
5111
5112 int
5113 main ()
5114 {
5115
5116   ;
5117   return 0;
5118 }
5119 _ACEOF
5120 if ac_fn_c_try_compile "$LINENO"; then :
5121   ac_cv_header_stdc=yes
5122 else
5123   ac_cv_header_stdc=no
5124 fi
5125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126
5127 if test $ac_cv_header_stdc = yes; then
5128   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h.  */
5131 #include <string.h>
5132
5133 _ACEOF
5134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5135   $EGREP "memchr" >/dev/null 2>&1; then :
5136
5137 else
5138   ac_cv_header_stdc=no
5139 fi
5140 rm -f conftest*
5141
5142 fi
5143
5144 if test $ac_cv_header_stdc = yes; then
5145   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h.  */
5148 #include <stdlib.h>
5149
5150 _ACEOF
5151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5152   $EGREP "free" >/dev/null 2>&1; then :
5153
5154 else
5155   ac_cv_header_stdc=no
5156 fi
5157 rm -f conftest*
5158
5159 fi
5160
5161 if test $ac_cv_header_stdc = yes; then
5162   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5163   if test "$cross_compiling" = yes; then :
5164   :
5165 else
5166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h.  */
5168 #include <ctype.h>
5169 #include <stdlib.h>
5170 #if ((' ' & 0x0FF) == 0x020)
5171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5173 #else
5174 # define ISLOWER(c) \
5175                    (('a' <= (c) && (c) <= 'i') \
5176                      || ('j' <= (c) && (c) <= 'r') \
5177                      || ('s' <= (c) && (c) <= 'z'))
5178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5179 #endif
5180
5181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5182 int
5183 main ()
5184 {
5185   int i;
5186   for (i = 0; i < 256; i++)
5187     if (XOR (islower (i), ISLOWER (i))
5188         || toupper (i) != TOUPPER (i))
5189       return 2;
5190   return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_run "$LINENO"; then :
5194
5195 else
5196   ac_cv_header_stdc=no
5197 fi
5198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5199   conftest.$ac_objext conftest.beam conftest.$ac_ext
5200 fi
5201
5202 fi
5203 fi
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5205 $as_echo "$ac_cv_header_stdc" >&6; }
5206 if test $ac_cv_header_stdc = yes; then
5207
5208 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5209
5210 fi
5211
5212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5213 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5214                   inttypes.h stdint.h unistd.h
5215 do :
5216   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5217 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5218 "
5219 eval as_val=\$$as_ac_Header
5220    if test "x$as_val" = x""yes; then :
5221   cat >>confdefs.h <<_ACEOF
5222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5223 _ACEOF
5224
5225 fi
5226
5227 done
5228
5229
5230
5231   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5232 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5233   MINIX=yes
5234 else
5235   MINIX=
5236 fi
5237
5238
5239   if test "$MINIX" = yes; then
5240
5241 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5242
5243
5244 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5245
5246
5247 $as_echo "#define _MINIX 1" >>confdefs.h
5248
5249   fi
5250
5251
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5253 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5254 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h.  */
5259
5260 #         define __EXTENSIONS__ 1
5261           $ac_includes_default
5262 int
5263 main ()
5264 {
5265
5266   ;
5267   return 0;
5268 }
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271   ac_cv_safe_to_define___extensions__=yes
5272 else
5273   ac_cv_safe_to_define___extensions__=no
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5278 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5279   test $ac_cv_safe_to_define___extensions__ = yes &&
5280     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5281
5282   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5283
5284   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5285
5286   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5287
5288   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5289
5290
5291 ac_ext=c
5292 ac_cpp='$CPP $CPPFLAGS'
5293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5297 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5298 # On Suns, sometimes $CPP names a directory.
5299 if test -n "$CPP" && test -d "$CPP"; then
5300   CPP=
5301 fi
5302 if test -z "$CPP"; then
5303   if test "${ac_cv_prog_CPP+set}" = set; then :
5304   $as_echo_n "(cached) " >&6
5305 else
5306       # Double quotes because CPP needs to be expanded
5307     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5308     do
5309       ac_preproc_ok=false
5310 for ac_c_preproc_warn_flag in '' yes
5311 do
5312   # Use a header file that comes with gcc, so configuring glibc
5313   # with a fresh cross-compiler works.
5314   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5315   # <limits.h> exists even on freestanding compilers.
5316   # On the NeXT, cc -E runs the code through the compiler's parser,
5317   # not just through cpp. "Syntax error" is here to catch this case.
5318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h.  */
5320 #ifdef __STDC__
5321 # include <limits.h>
5322 #else
5323 # include <assert.h>
5324 #endif
5325                      Syntax error
5326 _ACEOF
5327 if ac_fn_c_try_cpp "$LINENO"; then :
5328
5329 else
5330   # Broken: fails on valid input.
5331 continue
5332 fi
5333 rm -f conftest.err conftest.$ac_ext
5334
5335   # OK, works on sane cases.  Now check whether nonexistent headers
5336   # can be detected and how.
5337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h.  */
5339 #include <ac_nonexistent.h>
5340 _ACEOF
5341 if ac_fn_c_try_cpp "$LINENO"; then :
5342   # Broken: success on invalid input.
5343 continue
5344 else
5345   # Passes both tests.
5346 ac_preproc_ok=:
5347 break
5348 fi
5349 rm -f conftest.err conftest.$ac_ext
5350
5351 done
5352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5353 rm -f conftest.err conftest.$ac_ext
5354 if $ac_preproc_ok; then :
5355   break
5356 fi
5357
5358     done
5359     ac_cv_prog_CPP=$CPP
5360
5361 fi
5362   CPP=$ac_cv_prog_CPP
5363 else
5364   ac_cv_prog_CPP=$CPP
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5367 $as_echo "$CPP" >&6; }
5368 ac_preproc_ok=false
5369 for ac_c_preproc_warn_flag in '' yes
5370 do
5371   # Use a header file that comes with gcc, so configuring glibc
5372   # with a fresh cross-compiler works.
5373   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5374   # <limits.h> exists even on freestanding compilers.
5375   # On the NeXT, cc -E runs the code through the compiler's parser,
5376   # not just through cpp. "Syntax error" is here to catch this case.
5377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h.  */
5379 #ifdef __STDC__
5380 # include <limits.h>
5381 #else
5382 # include <assert.h>
5383 #endif
5384                      Syntax error
5385 _ACEOF
5386 if ac_fn_c_try_cpp "$LINENO"; then :
5387
5388 else
5389   # Broken: fails on valid input.
5390 continue
5391 fi
5392 rm -f conftest.err conftest.$ac_ext
5393
5394   # OK, works on sane cases.  Now check whether nonexistent headers
5395   # can be detected and how.
5396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h.  */
5398 #include <ac_nonexistent.h>
5399 _ACEOF
5400 if ac_fn_c_try_cpp "$LINENO"; then :
5401   # Broken: success on invalid input.
5402 continue
5403 else
5404   # Passes both tests.
5405 ac_preproc_ok=:
5406 break
5407 fi
5408 rm -f conftest.err conftest.$ac_ext
5409
5410 done
5411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5412 rm -f conftest.err conftest.$ac_ext
5413 if $ac_preproc_ok; then :
5414
5415 else
5416   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5418 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5419 See \`config.log' for more details." "$LINENO" 5; }
5420 fi
5421
5422 ac_ext=c
5423 ac_cpp='$CPP $CPPFLAGS'
5424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5429 $as_echo_n "checking for inline... " >&6; }
5430 if test "${ac_cv_c_inline+set}" = set; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   ac_cv_c_inline=no
5434 for ac_kw in inline __inline__ __inline; do
5435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h.  */
5437 #ifndef __cplusplus
5438 typedef int foo_t;
5439 static $ac_kw foo_t static_foo () {return 0; }
5440 $ac_kw foo_t foo () {return 0; }
5441 #endif
5442
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445   ac_cv_c_inline=$ac_kw
5446 fi
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448   test "$ac_cv_c_inline" != no && break
5449 done
5450
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5453 $as_echo "$ac_cv_c_inline" >&6; }
5454
5455 case $ac_cv_c_inline in
5456   inline | yes) ;;
5457   *)
5458     case $ac_cv_c_inline in
5459       no) ac_val=;;
5460       *) ac_val=$ac_cv_c_inline;;
5461     esac
5462     cat >>confdefs.h <<_ACEOF
5463 #ifndef __cplusplus
5464 #define inline $ac_val
5465 #endif
5466 _ACEOF
5467     ;;
5468 esac
5469
5470
5471 # sizeof(char) is 1 by definition.
5472 # The cast to long int works around a bug in the HP C Compiler
5473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5475 # This bug is HP SR number 8606223364.
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5477 $as_echo_n "checking size of void *... " >&6; }
5478 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5479   $as_echo_n "(cached) " >&6
5480 else
5481   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5482
5483 else
5484   if test "$ac_cv_type_void_p" = yes; then
5485      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5487 { as_fn_set_status 77
5488 as_fn_error "cannot compute sizeof (void *)
5489 See \`config.log' for more details." "$LINENO" 5; }; }
5490    else
5491      ac_cv_sizeof_void_p=0
5492    fi
5493 fi
5494
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5497 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5498
5499
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5503 _ACEOF
5504
5505
5506 # The cast to long int works around a bug in the HP C Compiler
5507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5509 # This bug is HP SR number 8606223364.
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5511 $as_echo_n "checking size of short... " >&6; }
5512 if test "${ac_cv_sizeof_short+set}" = set; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5516
5517 else
5518   if test "$ac_cv_type_short" = yes; then
5519      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5521 { as_fn_set_status 77
5522 as_fn_error "cannot compute sizeof (short)
5523 See \`config.log' for more details." "$LINENO" 5; }; }
5524    else
5525      ac_cv_sizeof_short=0
5526    fi
5527 fi
5528
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5531 $as_echo "$ac_cv_sizeof_short" >&6; }
5532
5533
5534
5535 cat >>confdefs.h <<_ACEOF
5536 #define SIZEOF_SHORT $ac_cv_sizeof_short
5537 _ACEOF
5538
5539
5540 # The cast to long int works around a bug in the HP C Compiler
5541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5543 # This bug is HP SR number 8606223364.
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5545 $as_echo_n "checking size of int... " >&6; }
5546 if test "${ac_cv_sizeof_int+set}" = set; then :
5547   $as_echo_n "(cached) " >&6
5548 else
5549   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5550
5551 else
5552   if test "$ac_cv_type_int" = yes; then
5553      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5555 { as_fn_set_status 77
5556 as_fn_error "cannot compute sizeof (int)
5557 See \`config.log' for more details." "$LINENO" 5; }; }
5558    else
5559      ac_cv_sizeof_int=0
5560    fi
5561 fi
5562
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5565 $as_echo "$ac_cv_sizeof_int" >&6; }
5566
5567
5568
5569 cat >>confdefs.h <<_ACEOF
5570 #define SIZEOF_INT $ac_cv_sizeof_int
5571 _ACEOF
5572
5573
5574 # The cast to long int works around a bug in the HP C Compiler
5575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5577 # This bug is HP SR number 8606223364.
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5579 $as_echo_n "checking size of long... " >&6; }
5580 if test "${ac_cv_sizeof_long+set}" = set; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5584
5585 else
5586   if test "$ac_cv_type_long" = yes; then
5587      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5589 { as_fn_set_status 77
5590 as_fn_error "cannot compute sizeof (long)
5591 See \`config.log' for more details." "$LINENO" 5; }; }
5592    else
5593      ac_cv_sizeof_long=0
5594    fi
5595 fi
5596
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5599 $as_echo "$ac_cv_sizeof_long" >&6; }
5600
5601
5602
5603 cat >>confdefs.h <<_ACEOF
5604 #define SIZEOF_LONG $ac_cv_sizeof_long
5605 _ACEOF
5606
5607
5608 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5609 if test "x$ac_cv_type_long_long" = x""yes; then :
5610
5611 cat >>confdefs.h <<_ACEOF
5612 #define HAVE_LONG_LONG 1
5613 _ACEOF
5614
5615 # The cast to long int works around a bug in the HP C Compiler
5616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5618 # This bug is HP SR number 8606223364.
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5620 $as_echo_n "checking size of long long... " >&6; }
5621 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5625
5626 else
5627   if test "$ac_cv_type_long_long" = yes; then
5628      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5630 { as_fn_set_status 77
5631 as_fn_error "cannot compute sizeof (long long)
5632 See \`config.log' for more details." "$LINENO" 5; }; }
5633    else
5634      ac_cv_sizeof_long_long=0
5635    fi
5636 fi
5637
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5640 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5641
5642
5643
5644 cat >>confdefs.h <<_ACEOF
5645 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5646 _ACEOF
5647
5648
5649 fi
5650
5651 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5652 if test "x$ac_cv_type___int64" = x""yes; then :
5653
5654 cat >>confdefs.h <<_ACEOF
5655 #define HAVE___INT64 1
5656 _ACEOF
5657
5658 # The cast to long int works around a bug in the HP C Compiler
5659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5661 # This bug is HP SR number 8606223364.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5663 $as_echo_n "checking size of __int64... " >&6; }
5664 if test "${ac_cv_sizeof___int64+set}" = set; then :
5665   $as_echo_n "(cached) " >&6
5666 else
5667   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5668
5669 else
5670   if test "$ac_cv_type___int64" = yes; then
5671      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5673 { as_fn_set_status 77
5674 as_fn_error "cannot compute sizeof (__int64)
5675 See \`config.log' for more details." "$LINENO" 5; }; }
5676    else
5677      ac_cv_sizeof___int64=0
5678    fi
5679 fi
5680
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5683 $as_echo "$ac_cv_sizeof___int64" >&6; }
5684
5685
5686
5687 cat >>confdefs.h <<_ACEOF
5688 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5689 _ACEOF
5690
5691
5692 fi
5693
5694 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5695 case $ac_cv_c_int8_t in #(
5696   no|yes) ;; #(
5697   *)
5698
5699 cat >>confdefs.h <<_ACEOF
5700 #define int8_t $ac_cv_c_int8_t
5701 _ACEOF
5702 ;;
5703 esac
5704
5705 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5706 case $ac_cv_c_int16_t in #(
5707   no|yes) ;; #(
5708   *)
5709
5710 cat >>confdefs.h <<_ACEOF
5711 #define int16_t $ac_cv_c_int16_t
5712 _ACEOF
5713 ;;
5714 esac
5715
5716 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5717 case $ac_cv_c_int32_t in #(
5718   no|yes) ;; #(
5719   *)
5720
5721 cat >>confdefs.h <<_ACEOF
5722 #define int32_t $ac_cv_c_int32_t
5723 _ACEOF
5724 ;;
5725 esac
5726
5727 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5728 case $ac_cv_c_int64_t in #(
5729   no|yes) ;; #(
5730   *)
5731
5732 cat >>confdefs.h <<_ACEOF
5733 #define int64_t $ac_cv_c_int64_t
5734 _ACEOF
5735 ;;
5736 esac
5737
5738
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5740 $as_echo_n "checking for long long int... " >&6; }
5741 if test "${ac_cv_type_long_long_int+set}" = set; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h.  */
5746
5747   /* For now, do not test the preprocessor; as of 2007 there are too many
5748          implementations with broken preprocessors.  Perhaps this can
5749          be revisited in 2012.  In the meantime, code should not expect
5750          #if to work with literals wider than 32 bits.  */
5751       /* Test literals.  */
5752       long long int ll = 9223372036854775807ll;
5753       long long int nll = -9223372036854775807LL;
5754       unsigned long long int ull = 18446744073709551615ULL;
5755       /* Test constant expressions.   */
5756       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5757                      ? 1 : -1)];
5758       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5759                      ? 1 : -1)];
5760       int i = 63;
5761 int
5762 main ()
5763 {
5764 /* Test availability of runtime routines for shift and division.  */
5765       long long int llmax = 9223372036854775807ll;
5766       unsigned long long int ullmax = 18446744073709551615ull;
5767       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5768               | (llmax / ll) | (llmax % ll)
5769               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5770               | (ullmax / ull) | (ullmax % ull));
5771   ;
5772   return 0;
5773 }
5774
5775 _ACEOF
5776 if ac_fn_c_try_link "$LINENO"; then :
5777                         if test "$cross_compiling" = yes; then :
5778   ac_cv_type_long_long_int=yes
5779 else
5780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h.  */
5782 #include <limits.h>
5783                #ifndef LLONG_MAX
5784                # define HALF \
5785                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5786                # define LLONG_MAX (HALF - 1 + HALF)
5787                #endif
5788 int
5789 main ()
5790 {
5791 long long int n = 1;
5792                int i;
5793                for (i = 0; ; i++)
5794                  {
5795                    long long int m = n << i;
5796                    if (m >> i != n)
5797                      return 1;
5798                    if (LLONG_MAX / 2 < m)
5799                      break;
5800                  }
5801                return 0;
5802   ;
5803   return 0;
5804 }
5805 _ACEOF
5806 if ac_fn_c_try_run "$LINENO"; then :
5807   ac_cv_type_long_long_int=yes
5808 else
5809   ac_cv_type_long_long_int=no
5810 fi
5811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5812   conftest.$ac_objext conftest.beam conftest.$ac_ext
5813 fi
5814
5815 else
5816   ac_cv_type_long_long_int=no
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext \
5819     conftest$ac_exeext conftest.$ac_ext
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5822 $as_echo "$ac_cv_type_long_long_int" >&6; }
5823   if test $ac_cv_type_long_long_int = yes; then
5824
5825 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5826
5827   fi
5828
5829
5830
5831   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5832 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5833
5834 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5835
5836 else
5837   test $ac_cv_type_long_long_int = yes \
5838        && ac_type='long long int' \
5839        || ac_type='long int'
5840
5841 cat >>confdefs.h <<_ACEOF
5842 #define intmax_t $ac_type
5843 _ACEOF
5844
5845 fi
5846
5847
5848
5849   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5850 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5851
5852 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5853
5854 else
5855   for ac_type in 'int' 'long int' 'long long int'; do
5856        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h.  */
5858 $ac_includes_default
5859 int
5860 main ()
5861 {
5862 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5863 test_array [0] = 0
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870
5871 cat >>confdefs.h <<_ACEOF
5872 #define intptr_t $ac_type
5873 _ACEOF
5874
5875           ac_type=
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878        test -z "$ac_type" && break
5879      done
5880 fi
5881
5882
5883 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5884 case $ac_cv_c_uint8_t in #(
5885   no|yes) ;; #(
5886   *)
5887
5888 $as_echo "#define _UINT8_T 1" >>confdefs.h
5889
5890
5891 cat >>confdefs.h <<_ACEOF
5892 #define uint8_t $ac_cv_c_uint8_t
5893 _ACEOF
5894 ;;
5895   esac
5896
5897 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5898 case $ac_cv_c_uint16_t in #(
5899   no|yes) ;; #(
5900   *)
5901
5902
5903 cat >>confdefs.h <<_ACEOF
5904 #define uint16_t $ac_cv_c_uint16_t
5905 _ACEOF
5906 ;;
5907   esac
5908
5909 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5910 case $ac_cv_c_uint32_t in #(
5911   no|yes) ;; #(
5912   *)
5913
5914 $as_echo "#define _UINT32_T 1" >>confdefs.h
5915
5916
5917 cat >>confdefs.h <<_ACEOF
5918 #define uint32_t $ac_cv_c_uint32_t
5919 _ACEOF
5920 ;;
5921   esac
5922
5923 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5924 case $ac_cv_c_uint64_t in #(
5925   no|yes) ;; #(
5926   *)
5927
5928 $as_echo "#define _UINT64_T 1" >>confdefs.h
5929
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define uint64_t $ac_cv_c_uint64_t
5933 _ACEOF
5934 ;;
5935   esac
5936
5937
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5939 $as_echo_n "checking for unsigned long long int... " >&6; }
5940 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5941   $as_echo_n "(cached) " >&6
5942 else
5943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h.  */
5945
5946   /* For now, do not test the preprocessor; as of 2007 there are too many
5947          implementations with broken preprocessors.  Perhaps this can
5948          be revisited in 2012.  In the meantime, code should not expect
5949          #if to work with literals wider than 32 bits.  */
5950       /* Test literals.  */
5951       long long int ll = 9223372036854775807ll;
5952       long long int nll = -9223372036854775807LL;
5953       unsigned long long int ull = 18446744073709551615ULL;
5954       /* Test constant expressions.   */
5955       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5956                      ? 1 : -1)];
5957       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5958                      ? 1 : -1)];
5959       int i = 63;
5960 int
5961 main ()
5962 {
5963 /* Test availability of runtime routines for shift and division.  */
5964       long long int llmax = 9223372036854775807ll;
5965       unsigned long long int ullmax = 18446744073709551615ull;
5966       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5967               | (llmax / ll) | (llmax % ll)
5968               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5969               | (ullmax / ull) | (ullmax % ull));
5970   ;
5971   return 0;
5972 }
5973
5974 _ACEOF
5975 if ac_fn_c_try_link "$LINENO"; then :
5976   ac_cv_type_unsigned_long_long_int=yes
5977 else
5978   ac_cv_type_unsigned_long_long_int=no
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext \
5981     conftest$ac_exeext conftest.$ac_ext
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5984 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5985   if test $ac_cv_type_unsigned_long_long_int = yes; then
5986
5987 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5988
5989   fi
5990
5991
5992
5993   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
5994 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
5995
5996 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5997
5998 else
5999   test $ac_cv_type_unsigned_long_long_int = yes \
6000        && ac_type='unsigned long long int' \
6001        || ac_type='unsigned long int'
6002
6003 cat >>confdefs.h <<_ACEOF
6004 #define uintmax_t $ac_type
6005 _ACEOF
6006
6007 fi
6008
6009
6010
6011   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6012 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6013
6014 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6015
6016 else
6017   for ac_type in 'unsigned int' 'unsigned long int' \
6018         'unsigned long long int'; do
6019        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h.  */
6021 $ac_includes_default
6022 int
6023 main ()
6024 {
6025 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6026 test_array [0] = 0
6027
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 if ac_fn_c_try_compile "$LINENO"; then :
6033
6034 cat >>confdefs.h <<_ACEOF
6035 #define uintptr_t $ac_type
6036 _ACEOF
6037
6038           ac_type=
6039 fi
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041        test -z "$ac_type" && break
6042      done
6043 fi
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059 # ---------------------
6060 # Warnings and checking
6061 # ---------------------
6062
6063 # Check $CC warning features (if it's GCC).
6064 # We want to use -pedantic, but we don't want warnings about
6065 # * 'long long'
6066 # * variadic macros
6067 # * overlong strings
6068 # So, we only use -pedantic if we can disable those warnings.
6069
6070 loose_warn=
6071 save_CFLAGS="$CFLAGS"
6072 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6073   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6074
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6076 $as_echo_n "checking whether $CC supports $option... " >&6; }
6077 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080   CFLAGS="$option"
6081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h.  */
6083
6084 int
6085 main ()
6086 {
6087
6088   ;
6089   return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093   eval "$as_acx_Woption=yes"
6094 else
6095   eval "$as_acx_Woption=no"
6096 fi
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098
6099 fi
6100 eval ac_res=\$$as_acx_Woption
6101                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6102 $as_echo "$ac_res" >&6; }
6103   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6104   loose_warn="$loose_warn${loose_warn:+ }$option"
6105 fi
6106   done
6107 CFLAGS="$save_CFLAGS"
6108
6109 c_loose_warn=
6110 save_CFLAGS="$CFLAGS"
6111 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6112   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6113
6114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6115 $as_echo_n "checking whether $CC supports $option... " >&6; }
6116 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   CFLAGS="$option"
6120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h.  */
6122
6123 int
6124 main ()
6125 {
6126
6127   ;
6128   return 0;
6129 }
6130 _ACEOF
6131 if ac_fn_c_try_compile "$LINENO"; then :
6132   eval "$as_acx_Woption=yes"
6133 else
6134   eval "$as_acx_Woption=no"
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137
6138 fi
6139 eval ac_res=\$$as_acx_Woption
6140                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6141 $as_echo "$ac_res" >&6; }
6142   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6143   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6144 fi
6145   done
6146 CFLAGS="$save_CFLAGS"
6147
6148 strict_warn=
6149 save_CFLAGS="$CFLAGS"
6150 for option in -Wmissing-format-attribute; do
6151   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6152
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6154 $as_echo_n "checking whether $CC supports $option... " >&6; }
6155 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6156   $as_echo_n "(cached) " >&6
6157 else
6158   CFLAGS="$option"
6159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h.  */
6161
6162 int
6163 main ()
6164 {
6165
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 if ac_fn_c_try_compile "$LINENO"; then :
6171   eval "$as_acx_Woption=yes"
6172 else
6173   eval "$as_acx_Woption=no"
6174 fi
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176
6177 fi
6178 eval ac_res=\$$as_acx_Woption
6179                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6180 $as_echo "$ac_res" >&6; }
6181   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6182   strict_warn="$strict_warn${strict_warn:+ }$option"
6183 fi
6184   done
6185 CFLAGS="$save_CFLAGS"
6186
6187 c_strict_warn=
6188 save_CFLAGS="$CFLAGS"
6189 for option in -Wold-style-definition -Wc++-compat; do
6190   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6191
6192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6193 $as_echo_n "checking whether $CC supports $option... " >&6; }
6194 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6195   $as_echo_n "(cached) " >&6
6196 else
6197   CFLAGS="$option"
6198     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h.  */
6200
6201 int
6202 main ()
6203 {
6204
6205   ;
6206   return 0;
6207 }
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210   eval "$as_acx_Woption=yes"
6211 else
6212   eval "$as_acx_Woption=no"
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215
6216 fi
6217 eval ac_res=\$$as_acx_Woption
6218                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6219 $as_echo "$ac_res" >&6; }
6220   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6221   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6222 fi
6223   done
6224 CFLAGS="$save_CFLAGS"
6225
6226 if test "$GCC" = yes; then :
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6228 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6229 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   save_CFLAGS="$CFLAGS"
6233 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h.  */
6236
6237 int
6238 main ()
6239 {
6240
6241   ;
6242   return 0;
6243 }
6244 _ACEOF
6245 if ac_fn_c_try_compile "$LINENO"; then :
6246   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6247 else
6248   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6249 fi
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 CFLAGS="$save_CFLAGS"
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6254 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6255 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6256   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6257 fi
6258
6259 fi
6260
6261 # Check whether --enable-werror-always was given.
6262 if test "${enable_werror_always+set}" = set; then :
6263   enableval=$enable_werror_always;
6264 else
6265   enable_werror_always=no
6266 fi
6267
6268 if test $enable_werror_always = yes; then :
6269   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6270 fi
6271
6272
6273
6274 # The above macros do nothing if the compiler is not GCC.  However, the
6275 # Makefile has more goo to add other flags, so these variables are used
6276 # to enable warnings only for GCC.
6277 warn_cflags=
6278 warn_cxxflags=
6279 if test "x$GCC" = "xyes"; then
6280   warn_cflags='$(GCC_WARN_CFLAGS)'
6281   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6282 fi
6283
6284
6285
6286 # Enable expensive internal checks
6287 is_release=
6288 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6289   is_release=yes
6290 fi
6291
6292 # Check whether --enable-checking was given.
6293 if test "${enable_checking+set}" = set; then :
6294   enableval=$enable_checking; ac_checking_flags="${enableval}"
6295 else
6296
6297 # Determine the default checks.
6298 if test x$is_release = x ; then
6299   ac_checking_flags=yes
6300 else
6301   ac_checking_flags=release
6302 fi
6303 fi
6304
6305 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6306 for check in release $ac_checking_flags
6307 do
6308         case $check in
6309         # these set all the flags to specific states
6310         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6311                         ac_fold_checking= ; ac_gc_checking=1 ;
6312                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6313                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6314                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6315                         ac_types_checking=1 ;;
6316         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6317                         ac_fold_checking= ; ac_gc_checking= ;
6318                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6319                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6320                         ac_tree_checking= ; ac_valgrind_checking= ;
6321                         ac_types_checking= ;;
6322         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6323                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6324                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6325                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6326                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6327                         ac_types_checking=1 ;;
6328         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6329                         ac_fold_checking= ; ac_gc_checking= ;
6330                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6331                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6332                         ac_tree_checking= ; ac_valgrind_checking= ;
6333                         ac_types_checking= ;;
6334         # these enable particular checks
6335         assert)         ac_assert_checking=1 ;;
6336         df)             ac_df_checking=1 ;;
6337         fold)           ac_fold_checking=1 ;;
6338         gc)             ac_gc_checking=1 ;;
6339         gcac)           ac_gc_always_collect=1 ;;
6340         gimple)         ac_gimple_checking=1 ;;
6341         misc)           ac_checking=1 ;;
6342         rtl)            ac_rtl_checking=1 ;;
6343         rtlflag)        ac_rtlflag_checking=1 ;;
6344         runtime)        ac_runtime_checking=1 ;;
6345         tree)           ac_tree_checking=1 ;;
6346         types)          ac_types_checking=1 ;;
6347         valgrind)       ac_valgrind_checking=1 ;;
6348         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6349         esac
6350 done
6351 IFS="$ac_save_IFS"
6352
6353 nocommon_flag=""
6354 if test x$ac_checking != x ; then
6355
6356 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6357
6358   nocommon_flag=-fno-common
6359 fi
6360
6361 if test x$ac_df_checking != x ; then
6362
6363 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6364
6365 fi
6366 if test x$ac_assert_checking != x ; then
6367
6368 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6369
6370 fi
6371 if test x$ac_gimple_checking != x ; then
6372
6373 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6374
6375 fi
6376
6377 if test x$ac_runtime_checking != x ; then
6378
6379 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6380
6381 fi
6382 if test x$ac_tree_checking != x ; then
6383
6384 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6385
6386   TREEBROWSER=tree-browser.o
6387 fi
6388 if test x$ac_types_checking != x ; then
6389
6390 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6391
6392 fi
6393
6394 if test x$ac_rtl_checking != x ; then
6395
6396 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6397
6398 fi
6399 if test x$ac_rtlflag_checking != x ; then
6400
6401 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6402
6403 fi
6404 if test x$ac_gc_checking != x ; then
6405
6406 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6407
6408 fi
6409 if test x$ac_gc_always_collect != x ; then
6410
6411 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6412
6413 fi
6414 if test x$ac_fold_checking != x ; then
6415
6416 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6417
6418 fi
6419 valgrind_path_defines=
6420 valgrind_command=
6421
6422 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6423 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6424   have_valgrind_h=yes
6425 else
6426   have_valgrind_h=no
6427 fi
6428
6429
6430
6431 if test x$ac_valgrind_checking != x ; then
6432   # It is certainly possible that there's valgrind but no valgrind.h.
6433   # GCC relies on making annotations so we must have both.
6434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6435 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h.  */
6438 #include <valgrind/memcheck.h>
6439 #ifndef VALGRIND_DISCARD
6440 #error VALGRIND_DISCARD not defined
6441 #endif
6442 _ACEOF
6443 if ac_fn_c_try_cpp "$LINENO"; then :
6444   gcc_cv_header_valgrind_memcheck_h=yes
6445 else
6446   gcc_cv_header_valgrind_memcheck_h=no
6447 fi
6448 rm -f conftest.err conftest.$ac_ext
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6450 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6452 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h.  */
6455 #include <memcheck.h>
6456 #ifndef VALGRIND_DISCARD
6457 #error VALGRIND_DISCARD not defined
6458 #endif
6459 _ACEOF
6460 if ac_fn_c_try_cpp "$LINENO"; then :
6461   gcc_cv_header_memcheck_h=yes
6462 else
6463   gcc_cv_header_memcheck_h=no
6464 fi
6465 rm -f conftest.err conftest.$ac_ext
6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6467 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6468
6469 # Prepare PATH_SEPARATOR.
6470 # The user is always right.
6471 if test "${PATH_SEPARATOR+set}" != set; then
6472   echo "#! /bin/sh" >conf$$.sh
6473   echo  "exit 0"   >>conf$$.sh
6474   chmod +x conf$$.sh
6475   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6476     PATH_SEPARATOR=';'
6477   else
6478     PATH_SEPARATOR=:
6479   fi
6480   rm -f conf$$.sh
6481 fi
6482
6483 # Find out how to test for executable files. Don't use a zero-byte file,
6484 # as systems may use methods other than mode bits to determine executability.
6485 cat >conf$$.file <<_ASEOF
6486 #! /bin/sh
6487 exit 0
6488 _ASEOF
6489 chmod +x conf$$.file
6490 if test -x conf$$.file >/dev/null 2>&1; then
6491   ac_executable_p="test -x"
6492 else
6493   ac_executable_p="test -f"
6494 fi
6495 rm -f conf$$.file
6496
6497 # Extract the first word of "valgrind", so it can be a program name with args.
6498 set dummy valgrind; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6502   $as_echo_n "(cached) " >&6
6503 else
6504   case "$valgrind_path" in
6505   [\\/]* | ?:[\\/]*)
6506     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6507     ;;
6508   *)
6509     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6510     for ac_dir in $PATH; do
6511       IFS="$ac_save_IFS"
6512       test -z "$ac_dir" && ac_dir=.
6513       for ac_exec_ext in '' $ac_executable_extensions; do
6514         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6515           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6516             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6517             break 2
6518           fi
6519         fi
6520       done
6521     done
6522     IFS="$ac_save_IFS"
6523     ;;
6524 esac
6525 fi
6526 valgrind_path="$ac_cv_path_valgrind_path"
6527 if test -n "$valgrind_path"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6529 $as_echo "$valgrind_path" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535   if test "x$valgrind_path" = "x" \
6536     || (test $have_valgrind_h = no \
6537         && test $gcc_cv_header_memcheck_h = no \
6538         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6539         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6540   fi
6541   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6542   valgrind_command="$valgrind_path -q"
6543
6544 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6545
6546   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6547
6548 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6549
6550   fi
6551   if test $gcc_cv_header_memcheck_h = yes; then
6552
6553 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6554
6555   fi
6556 fi
6557
6558
6559
6560 # Enable code coverage collection
6561 # Check whether --enable-coverage was given.
6562 if test "${enable_coverage+set}" = set; then :
6563   enableval=$enable_coverage; case "${enableval}" in
6564   yes|noopt)
6565     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6566     ;;
6567   opt)
6568     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6569     ;;
6570   no)
6571     # a.k.a. --disable-coverage
6572     coverage_flags=""
6573     ;;
6574   *)
6575     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6576     ;;
6577 esac
6578 else
6579   coverage_flags=""
6580 fi
6581
6582
6583
6584 # Check whether --enable-gather-detailed-mem-stats was given.
6585 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6586   enableval=$enable_gather_detailed_mem_stats;
6587 else
6588   enable_gather_detailed_mem_stats=no
6589 fi
6590
6591 if test x$enable_gather_detailed_mem_stats = xyes ; then
6592
6593 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6594
6595 fi
6596
6597 # -------------------------------
6598 # Miscenalleous configure options
6599 # -------------------------------
6600
6601 # See if we are building gcc with C++.
6602 # Check whether --enable-build-with-cxx was given.
6603 if test "${enable_build_with_cxx+set}" = set; then :
6604   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6605 else
6606   ENABLE_BUILD_WITH_CXX=no
6607 fi
6608
6609
6610
6611 # With stabs
6612
6613 # Check whether --with-stabs was given.
6614 if test "${with_stabs+set}" = set; then :
6615   withval=$with_stabs; stabs="$with_stabs"
6616 else
6617   stabs=no
6618 fi
6619
6620
6621 # Determine whether or not multilibs are enabled.
6622 # Check whether --enable-multilib was given.
6623 if test "${enable_multilib+set}" = set; then :
6624   enableval=$enable_multilib;
6625 else
6626   enable_multilib=yes
6627 fi
6628
6629
6630
6631 # Enable __cxa_atexit for C++.
6632 # Check whether --enable-__cxa_atexit was given.
6633 if test "${enable___cxa_atexit+set}" = set; then :
6634   enableval=$enable___cxa_atexit;
6635 fi
6636
6637
6638 # Enable C extension for decimal float if target supports it.
6639 # Check whether --enable-decimal-float was given.
6640 if test "${enable_decimal_float+set}" = set; then :
6641   enableval=$enable_decimal_float;
6642   case $enable_decimal_float in
6643     yes | no | bid | dpd) ;;
6644     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6645 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6646   esac
6647
6648 else
6649
6650   case $target in
6651     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6652       enable_decimal_float=yes
6653       ;;
6654     *)
6655       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6656 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6657       enable_decimal_float=no
6658       ;;
6659   esac
6660
6661 fi
6662
6663
6664 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6665
6666 cat >>confdefs.h <<_ACEOF
6667 #define ENABLE_DECIMAL_FLOAT $dfp
6668 _ACEOF
6669
6670
6671 # x86's use BID format instead of DPD
6672 case x$enable_decimal_float in
6673   xyes)
6674     case $target in
6675       i?86*-*-linux* | x86_64*-*-linux*)
6676         enable_decimal_float=bid
6677         ;;
6678       *)
6679         enable_decimal_float=dpd
6680         ;;
6681     esac
6682     ;;
6683   xno)
6684     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6685     # dependency on libdecnumber.
6686     enable_decimal_float=dpd
6687     ;;
6688 esac
6689
6690
6691 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6692
6693 cat >>confdefs.h <<_ACEOF
6694 #define ENABLE_DECIMAL_BID_FORMAT $bid
6695 _ACEOF
6696
6697
6698 # Enable C extension for fixed-point arithmetic.
6699 # Check whether --enable-fixed-point was given.
6700 if test "${enable_fixed_point+set}" = set; then :
6701   enableval=$enable_fixed_point;
6702
6703 else
6704
6705   case $target in
6706     mips*-*-*)
6707       case $host in
6708         mips*-sgi-irix*)
6709           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6710 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6711           enable_fixed_point=no
6712           ;;
6713         *)
6714           enable_fixed_point=yes
6715           ;;
6716       esac
6717       ;;
6718     *)
6719       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6720 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6721       enable_fixed_point=no
6722       ;;
6723   esac
6724
6725 fi
6726
6727
6728
6729 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6730
6731 cat >>confdefs.h <<_ACEOF
6732 #define ENABLE_FIXED_POINT $fixedpoint
6733 _ACEOF
6734
6735
6736 # Enable threads
6737 # Pass with no value to take the default
6738 # Pass with a value to specify a thread package
6739 # Check whether --enable-threads was given.
6740 if test "${enable_threads+set}" = set; then :
6741   enableval=$enable_threads;
6742 else
6743   enable_threads=''
6744 fi
6745
6746
6747 # Check whether --enable-tls was given.
6748 if test "${enable_tls+set}" = set; then :
6749   enableval=$enable_tls;
6750   case $enable_tls in
6751     yes | no) ;;
6752     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6753 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6754   esac
6755
6756 else
6757   enable_tls=''
6758 fi
6759
6760
6761 # Check whether --enable-objc-gc was given.
6762 if test "${enable_objc_gc+set}" = set; then :
6763   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6764         objc_boehm_gc=''
6765 else
6766         objc_boehm_gc=1
6767 fi
6768 else
6769   objc_boehm_gc=''
6770 fi
6771
6772
6773
6774 # Check whether --with-dwarf2 was given.
6775 if test "${with_dwarf2+set}" = set; then :
6776   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6777 else
6778   dwarf2=no
6779 fi
6780
6781
6782 # Check whether --enable-shared was given.
6783 if test "${enable_shared+set}" = set; then :
6784   enableval=$enable_shared;
6785   case $enable_shared in
6786   yes | no) ;;
6787   *)
6788     enable_shared=no
6789     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6790     for pkg in $enableval; do
6791       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6792         enable_shared=yes
6793       fi
6794     done
6795     IFS="$ac_save_ifs"
6796     ;;
6797   esac
6798
6799 else
6800   enable_shared=yes
6801 fi
6802
6803
6804
6805
6806 # Check whether --with-build-sysroot was given.
6807 if test "${with_build_sysroot+set}" = set; then :
6808   withval=$with_build_sysroot;
6809 fi
6810
6811
6812
6813 # Check whether --with-sysroot was given.
6814 if test "${with_sysroot+set}" = set; then :
6815   withval=$with_sysroot;
6816  case ${with_sysroot} in
6817  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6818  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6819  esac
6820
6821  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6822  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6823
6824  if test "x$prefix" = xNONE; then
6825   test_prefix=/usr/local
6826  else
6827   test_prefix=$prefix
6828  fi
6829  if test "x$exec_prefix" = xNONE; then
6830   test_exec_prefix=$test_prefix
6831  else
6832   test_exec_prefix=$exec_prefix
6833  fi
6834  case ${TARGET_SYSTEM_ROOT} in
6835  "${test_prefix}"|"${test_prefix}/"*|\
6836  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6837  '${prefix}'|'${prefix}/'*|\
6838  '${exec_prefix}'|'${exec_prefix}/'*)
6839    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6840    TARGET_SYSTEM_ROOT_DEFINE="$t"
6841    ;;
6842  esac
6843
6844 else
6845
6846  TARGET_SYSTEM_ROOT=
6847  TARGET_SYSTEM_ROOT_DEFINE=
6848  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6849
6850 fi
6851
6852
6853
6854
6855
6856 # Build with intermodule optimisations
6857 # Check whether --enable-intermodule was given.
6858 if test "${enable_intermodule+set}" = set; then :
6859   enableval=$enable_intermodule; case ${enable_intermodule} in
6860   yes) onestep="-onestep";;
6861   *) onestep="";;
6862 esac
6863 else
6864   onestep=""
6865 fi
6866
6867
6868
6869
6870
6871 # Check whether --with-pkgversion was given.
6872 if test "${with_pkgversion+set}" = set; then :
6873   withval=$with_pkgversion; case "$withval" in
6874       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6875       no)  PKGVERSION= ;;
6876       *)   PKGVERSION="($withval) " ;;
6877      esac
6878 else
6879   PKGVERSION="(GCC) "
6880
6881 fi
6882
6883
6884
6885
6886
6887 # Check whether --with-bugurl was given.
6888 if test "${with_bugurl+set}" = set; then :
6889   withval=$with_bugurl; case "$withval" in
6890       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6891       no)  BUGURL=
6892            ;;
6893       *)   BUGURL="$withval"
6894            ;;
6895      esac
6896 else
6897   BUGURL="http://gcc.gnu.org/bugs.html"
6898
6899 fi
6900
6901   case ${BUGURL} in
6902   "")
6903     REPORT_BUGS_TO=
6904     REPORT_BUGS_TEXI=
6905     ;;
6906   *)
6907     REPORT_BUGS_TO="<$BUGURL>"
6908     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6909     ;;
6910   esac;
6911
6912
6913
6914
6915 # Sanity check enable_languages in case someone does not run the toplevel
6916 # configure # script.
6917 # Check whether --enable-languages was given.
6918 if test "${enable_languages+set}" = set; then :
6919   enableval=$enable_languages; case ,${enable_languages}, in
6920        ,,|,yes,)
6921                 # go safe -- we cannot be much sure without the toplevel
6922                 # configure's
6923                 # analysis of which target libs are present and usable
6924                 enable_languages=c
6925                 ;;
6926          *,all,*)
6927                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6928                 ;;
6929         *,c,*)
6930                 ;;
6931         *)
6932                 enable_languages=c,${enable_languages}
6933                 ;;
6934 esac
6935 else
6936   enable_languages=c
6937 fi
6938
6939
6940
6941 # Check whether --with-multilib-list was given.
6942 if test "${with_multilib_list+set}" = set; then :
6943   withval=$with_multilib_list; :
6944 else
6945   with_multilib_list=default
6946 fi
6947
6948
6949 # -------------------------
6950 # Checks for other programs
6951 # -------------------------
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6954 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6955 set x ${MAKE-make}
6956 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6957 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   cat >conftest.make <<\_ACEOF
6961 SHELL = /bin/sh
6962 all:
6963         @echo '@@@%%%=$(MAKE)=@@@%%%'
6964 _ACEOF
6965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6966 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6967   *@@@%%%=?*=@@@%%%*)
6968     eval ac_cv_prog_make_${ac_make}_set=yes;;
6969   *)
6970     eval ac_cv_prog_make_${ac_make}_set=no;;
6971 esac
6972 rm -f conftest.make
6973 fi
6974 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6976 $as_echo "yes" >&6; }
6977   SET_MAKE=
6978 else
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981   SET_MAKE="MAKE=${MAKE-make}"
6982 fi
6983
6984
6985 # Find some useful tools
6986 for ac_prog in gawk mawk nawk awk
6987 do
6988   # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if test "${ac_cv_prog_AWK+set}" = set; then :
6993   $as_echo_n "(cached) " >&6
6994 else
6995   if test -n "$AWK"; then
6996   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003     for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_prog_AWK="$ac_prog"
7006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010   done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 AWK=$ac_cv_prog_AWK
7016 if test -n "$AWK"; then
7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7018 $as_echo "$AWK" >&6; }
7019 else
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022 fi
7023
7024
7025   test -n "$AWK" && break
7026 done
7027
7028 # We need awk to create options.c and options.h.
7029 # Bail out if it's missing.
7030 case ${AWK} in
7031   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7032 esac
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7035 $as_echo_n "checking whether ln -s works... " >&6; }
7036 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7037   $as_echo_n "(cached) " >&6
7038 else
7039   rm -f conftestdata_t
7040 echo >conftestdata_f
7041 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7042 then
7043   gcc_cv_prog_LN_S="ln -s"
7044 else
7045   if ln conftestdata_f conftestdata_t 2>/dev/null
7046   then
7047     gcc_cv_prog_LN_S=ln
7048   else
7049     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7050     then
7051       gcc_cv_prog_LN_S="cp -p"
7052     else
7053       gcc_cv_prog_LN_S=cp
7054     fi
7055   fi
7056 fi
7057 rm -f conftestdata_f conftestdata_t
7058
7059 fi
7060 LN_S="$gcc_cv_prog_LN_S"
7061 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7063 $as_echo "yes" >&6; }
7064 else
7065   if test "$gcc_cv_prog_LN_S" = "ln"; then
7066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7067 $as_echo "no, using ln" >&6; }
7068   else
7069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7070 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7071   fi
7072 fi
7073
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7075 $as_echo_n "checking whether ln works... " >&6; }
7076 if test "${acx_cv_prog_LN+set}" = set; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079   rm -f conftestdata_t
7080 echo >conftestdata_f
7081 if ln conftestdata_f conftestdata_t 2>/dev/null
7082 then
7083   acx_cv_prog_LN=ln
7084 else
7085   acx_cv_prog_LN=no
7086 fi
7087 rm -f conftestdata_f conftestdata_t
7088
7089 fi
7090 if test $acx_cv_prog_LN = no; then
7091   LN="$LN_S"
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7093 $as_echo "no, using $LN" >&6; }
7094 else
7095   LN="$acx_cv_prog_LN"
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7097 $as_echo "yes" >&6; }
7098 fi
7099
7100 if test -n "$ac_tool_prefix"; then
7101   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   if test -n "$RANLIB"; then
7109   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116     for ac_exec_ext in '' $ac_executable_extensions; do
7117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123   done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 RANLIB=$ac_cv_prog_RANLIB
7129 if test -n "$RANLIB"; then
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7131 $as_echo "$RANLIB" >&6; }
7132 else
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136
7137
7138 fi
7139 if test -z "$ac_cv_prog_RANLIB"; then
7140   ac_ct_RANLIB=$RANLIB
7141   # Extract the first word of "ranlib", so it can be a program name with args.
7142 set dummy ranlib; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   if test -n "$ac_ct_RANLIB"; then
7149   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156     for ac_exec_ext in '' $ac_executable_extensions; do
7157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158     ac_cv_prog_ac_ct_RANLIB="ranlib"
7159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163   done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7169 if test -n "$ac_ct_RANLIB"; then
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7171 $as_echo "$ac_ct_RANLIB" >&6; }
7172 else
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176
7177   if test "x$ac_ct_RANLIB" = x; then
7178     RANLIB=":"
7179   else
7180     case $cross_compiling:$ac_tool_warned in
7181 yes:)
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7184 ac_tool_warned=yes ;;
7185 esac
7186     RANLIB=$ac_ct_RANLIB
7187   fi
7188 else
7189   RANLIB="$ac_cv_prog_RANLIB"
7190 fi
7191
7192 case "${host}" in
7193 *-*-darwin*)
7194   # By default, the Darwin ranlib will not treat common symbols as
7195   # definitions when  building the archive table of contents.  Other
7196   # ranlibs do that; pass an option to the Darwin ranlib that makes
7197   # it behave similarly.
7198   ranlib_flags="-c"
7199   ;;
7200 *)
7201   ranlib_flags=""
7202 esac
7203
7204
7205 # Find a good install program.  We prefer a C program (faster),
7206 # so one script is as good as another.  But avoid the broken or
7207 # incompatible versions:
7208 # SysV /etc/install, /usr/sbin/install
7209 # SunOS /usr/etc/install
7210 # IRIX /sbin/install
7211 # AIX /bin/install
7212 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7213 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7214 # ./install, which can be erroneously created by make from ./install.sh.
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7216 $as_echo_n "checking for a BSD compatible install... " >&6; }
7217 if test -z "$INSTALL"; then
7218 if test "${ac_cv_path_install+set}" = set; then :
7219   $as_echo_n "(cached) " >&6
7220 else
7221     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7222   for ac_dir in $PATH; do
7223     # Account for people who put trailing slashes in PATH elements.
7224     case "$ac_dir/" in
7225     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7226     *)
7227       # OSF1 and SCO ODT 3.0 have their own names for install.
7228       for ac_prog in ginstall scoinst install; do
7229         if test -f $ac_dir/$ac_prog; then
7230           if test $ac_prog = install &&
7231             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7232             # AIX install.  It has an incompatible calling convention.
7233             # OSF/1 installbsd also uses dspmsg, but is usable.
7234             :
7235           else
7236             ac_cv_path_install="$ac_dir/$ac_prog -c"
7237             break 2
7238           fi
7239         fi
7240       done
7241       ;;
7242     esac
7243   done
7244   IFS="$ac_save_IFS"
7245
7246 fi
7247   if test "${ac_cv_path_install+set}" = set; then
7248     INSTALL="$ac_cv_path_install"
7249   else
7250     # As a last resort, use the slow shell script.  We don't cache a
7251     # path for INSTALL within a source directory, because that will
7252     # break other packages using the cache if that directory is
7253     # removed, or if the path is relative.
7254     INSTALL="$ac_install_sh"
7255   fi
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7258 $as_echo "$INSTALL" >&6; }
7259
7260 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7261 # It thinks the first close brace ends the variable substitution.
7262 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7263
7264 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7265
7266
7267 # See if cmp has --ignore-initial.
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7269 $as_echo_n "checking for cmp's capabilities... " >&6; }
7270 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7271   $as_echo_n "(cached) " >&6
7272 else
7273    echo abfoo >t1
7274   echo cdfoo >t2
7275   gcc_cv_prog_cmp_skip=slowcompare
7276   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7277     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7278       :
7279     else
7280       gcc_cv_prog_cmp_skip=gnucompare
7281     fi
7282   fi
7283   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7284     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7285       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7286         :
7287       else
7288         gcc_cv_prog_cmp_skip=fastcompare
7289       fi
7290     fi
7291   fi
7292   rm t1 t2
7293
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7296 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7297 make_compare_target=$gcc_cv_prog_cmp_skip
7298
7299
7300
7301 # See if we have the mktemp command.
7302 # Extract the first word of "mktemp", so it can be a program name with args.
7303 set dummy mktemp; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   if test -n "$have_mktemp_command"; then
7310   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317     for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_prog_have_mktemp_command="yes"
7320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324   done
7325 IFS=$as_save_IFS
7326
7327   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7328 fi
7329 fi
7330 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7331 if test -n "$have_mktemp_command"; then
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7333 $as_echo "$have_mktemp_command" >&6; }
7334 else
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339
7340
7341 # See if makeinfo has been installed and is modern enough
7342 # that we can use it.
7343
7344   # Extract the first word of "makeinfo", so it can be a program name with args.
7345 set dummy makeinfo; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351   if test -n "$MAKEINFO"; then
7352   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359     for ac_exec_ext in '' $ac_executable_extensions; do
7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361     ac_cv_prog_MAKEINFO="makeinfo"
7362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366   done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 MAKEINFO=$ac_cv_prog_MAKEINFO
7372 if test -n "$MAKEINFO"; then
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7374 $as_echo "$MAKEINFO" >&6; }
7375 else
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380
7381   if test -n "$MAKEINFO"; then
7382     # Found it, now check the version.
7383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7384 $as_echo_n "checking for modern makeinfo... " >&6; }
7385 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7389                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7390
7391                     case $ac_prog_version in
7392                       '')  gcc_cv_prog_makeinfo_modern=no;;
7393                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7394                       *)   gcc_cv_prog_makeinfo_modern=no;;
7395                     esac
7396
7397 fi
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7399 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7400   else
7401     gcc_cv_prog_makeinfo_modern=no
7402   fi
7403   if test $gcc_cv_prog_makeinfo_modern = no; then
7404     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7405   fi
7406
7407 if test $gcc_cv_prog_makeinfo_modern = no; then
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7409 *** Makeinfo is missing or too old.
7410 *** Info documentation will not be built." >&5
7411 $as_echo "$as_me: WARNING:
7412 *** Makeinfo is missing or too old.
7413 *** Info documentation will not be built." >&2;}
7414   BUILD_INFO=
7415 else
7416   BUILD_INFO=info
7417 fi
7418
7419
7420 # Is pod2man recent enough to regenerate manpages?
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7422 $as_echo_n "checking for recent Pod::Man... " >&6; }
7423 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7425 $as_echo "yes" >&6; }
7426   GENERATED_MANPAGES=generated-manpages
7427 else
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430   GENERATED_MANPAGES=
7431 fi
7432
7433
7434 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7435
7436 # How about lex?
7437 for ac_prog in flex
7438 do
7439   # Extract the first word of "$ac_prog", so it can be a program name with args.
7440 set dummy $ac_prog; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_FLEX+set}" = set; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   if test -n "$FLEX"; then
7447   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454     for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_prog_FLEX="$ac_prog"
7457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461   done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 FLEX=$ac_cv_prog_FLEX
7467 if test -n "$FLEX"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7469 $as_echo "$FLEX" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475
7476   test -n "$FLEX" && break
7477 done
7478 test -n "$FLEX" || FLEX="$MISSING flex"
7479
7480
7481 # Bison?
7482 for ac_prog in bison
7483 do
7484   # Extract the first word of "$ac_prog", so it can be a program name with args.
7485 set dummy $ac_prog; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if test "${ac_cv_prog_BISON+set}" = set; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   if test -n "$BISON"; then
7492   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499     for ac_exec_ext in '' $ac_executable_extensions; do
7500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501     ac_cv_prog_BISON="$ac_prog"
7502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506   done
7507 IFS=$as_save_IFS
7508
7509 fi
7510 fi
7511 BISON=$ac_cv_prog_BISON
7512 if test -n "$BISON"; then
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7514 $as_echo "$BISON" >&6; }
7515 else
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520
7521   test -n "$BISON" && break
7522 done
7523 test -n "$BISON" || BISON="$MISSING bison"
7524
7525
7526 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7527 # check for build == host before using them.
7528
7529 # NM
7530 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7531   && test -d ../binutils ; then
7532   NM='$(objdir)/../binutils/nm-new'
7533 else
7534   # Extract the first word of "nm", so it can be a program name with args.
7535 set dummy nm; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_NM+set}" = set; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$NM"; then
7542   ac_cv_prog_NM="$NM" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551     ac_cv_prog_NM="nm"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558
7559   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7560 fi
7561 fi
7562 NM=$ac_cv_prog_NM
7563 if test -n "$NM"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7565 $as_echo "$NM" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571
7572 fi
7573
7574 # AR
7575 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7576   && test -d ../binutils ; then
7577   AR='$(objdir)/../binutils/ar'
7578 else
7579   # Extract the first word of "ar", so it can be a program name with args.
7580 set dummy ar; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if test "${ac_cv_prog_AR+set}" = set; then :
7584   $as_echo_n "(cached) " >&6
7585 else
7586   if test -n "$AR"; then
7587   ac_cv_prog_AR="$AR" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592   IFS=$as_save_IFS
7593   test -z "$as_dir" && as_dir=.
7594     for ac_exec_ext in '' $ac_executable_extensions; do
7595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596     ac_cv_prog_AR="ar"
7597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598     break 2
7599   fi
7600 done
7601   done
7602 IFS=$as_save_IFS
7603
7604   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7605 fi
7606 fi
7607 AR=$ac_cv_prog_AR
7608 if test -n "$AR"; then
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7610 $as_echo "$AR" >&6; }
7611 else
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7614 fi
7615
7616
7617 fi
7618
7619
7620 # --------------------
7621 # Checks for C headers
7622 # --------------------
7623
7624 # Need to reject headers which give warnings, so that the -Werror bootstrap
7625 # works later. *sigh*  This needs to come before all header checks.
7626
7627 ac_c_preproc_warn_flag=yes
7628
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7630 $as_echo_n "checking for ANSI C header files... " >&6; }
7631 if test "${ac_cv_header_stdc+set}" = set; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h.  */
7636 #include <stdlib.h>
7637 #include <stdarg.h>
7638 #include <string.h>
7639 #include <float.h>
7640
7641 int
7642 main ()
7643 {
7644
7645   ;
7646   return 0;
7647 }
7648 _ACEOF
7649 if ac_fn_c_try_compile "$LINENO"; then :
7650   ac_cv_header_stdc=yes
7651 else
7652   ac_cv_header_stdc=no
7653 fi
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655
7656 if test $ac_cv_header_stdc = yes; then
7657   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660 #include <string.h>
7661
7662 _ACEOF
7663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7664   $EGREP "memchr" >/dev/null 2>&1; then :
7665
7666 else
7667   ac_cv_header_stdc=no
7668 fi
7669 rm -f conftest*
7670
7671 fi
7672
7673 if test $ac_cv_header_stdc = yes; then
7674   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h.  */
7677 #include <stdlib.h>
7678
7679 _ACEOF
7680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7681   $EGREP "free" >/dev/null 2>&1; then :
7682
7683 else
7684   ac_cv_header_stdc=no
7685 fi
7686 rm -f conftest*
7687
7688 fi
7689
7690 if test $ac_cv_header_stdc = yes; then
7691   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7692   if test "$cross_compiling" = yes; then :
7693   :
7694 else
7695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h.  */
7697 #include <ctype.h>
7698 #include <stdlib.h>
7699 #if ((' ' & 0x0FF) == 0x020)
7700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7702 #else
7703 # define ISLOWER(c) \
7704                    (('a' <= (c) && (c) <= 'i') \
7705                      || ('j' <= (c) && (c) <= 'r') \
7706                      || ('s' <= (c) && (c) <= 'z'))
7707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7708 #endif
7709
7710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7711 int
7712 main ()
7713 {
7714   int i;
7715   for (i = 0; i < 256; i++)
7716     if (XOR (islower (i), ISLOWER (i))
7717         || toupper (i) != TOUPPER (i))
7718       return 2;
7719   return 0;
7720 }
7721 _ACEOF
7722 if ac_fn_c_try_run "$LINENO"; then :
7723
7724 else
7725   ac_cv_header_stdc=no
7726 fi
7727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7728   conftest.$ac_objext conftest.beam conftest.$ac_ext
7729 fi
7730
7731 fi
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7734 $as_echo "$ac_cv_header_stdc" >&6; }
7735 if test $ac_cv_header_stdc = yes; then
7736
7737 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7738
7739 fi
7740
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7742 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7743 if test "${ac_cv_header_time+set}" = set; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h.  */
7748 #include <sys/types.h>
7749 #include <sys/time.h>
7750 #include <time.h>
7751
7752 int
7753 main ()
7754 {
7755 if ((struct tm *) 0)
7756 return 0;
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762   ac_cv_header_time=yes
7763 else
7764   ac_cv_header_time=no
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7769 $as_echo "$ac_cv_header_time" >&6; }
7770 if test $ac_cv_header_time = yes; then
7771
7772 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7773
7774 fi
7775
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7777 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7778 if test "${gcc_cv_header_string+set}" = set; then :
7779   $as_echo_n "(cached) " >&6
7780 else
7781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h.  */
7783 #include <string.h>
7784 #include <strings.h>
7785 int
7786 main ()
7787 {
7788
7789   ;
7790   return 0;
7791 }
7792 _ACEOF
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794   gcc_cv_header_string=yes
7795 else
7796   gcc_cv_header_string=no
7797 fi
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7801 $as_echo "$gcc_cv_header_string" >&6; }
7802 if test $gcc_cv_header_string = yes; then
7803
7804 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7805
7806 fi
7807
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7809 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7810 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7811   $as_echo_n "(cached) " >&6
7812 else
7813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h.  */
7815 #include <sys/types.h>
7816 #include <sys/wait.h>
7817 #ifndef WEXITSTATUS
7818 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7819 #endif
7820 #ifndef WIFEXITED
7821 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7822 #endif
7823
7824 int
7825 main ()
7826 {
7827   int s;
7828   wait (&s);
7829   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7830   ;
7831   return 0;
7832 }
7833 _ACEOF
7834 if ac_fn_c_try_compile "$LINENO"; then :
7835   ac_cv_header_sys_wait_h=yes
7836 else
7837   ac_cv_header_sys_wait_h=no
7838 fi
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 fi
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7842 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7843 if test $ac_cv_header_sys_wait_h = yes; then
7844
7845 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7846
7847 fi
7848
7849 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7850                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7851                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7852                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7853 do :
7854   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7855 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7856 eval as_val=\$$as_ac_Header
7857    if test "x$as_val" = x""yes; then :
7858   cat >>confdefs.h <<_ACEOF
7859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7860 _ACEOF
7861
7862 fi
7863 done
7864
7865
7866 # Check for thread headers.
7867 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7868 if test "x$ac_cv_header_thread_h" = x""yes; then :
7869   have_thread_h=yes
7870 else
7871   have_thread_h=
7872 fi
7873
7874 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7875 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7876   have_pthread_h=yes
7877 else
7878   have_pthread_h=
7879 fi
7880
7881
7882 # These tests can't be done till we know if we have limits.h.
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7884 $as_echo_n "checking for CHAR_BIT... " >&6; }
7885 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h.  */
7890 #ifdef HAVE_LIMITS_H
7891 #include <limits.h>
7892 #endif
7893 #ifdef CHAR_BIT
7894 found
7895 #endif
7896 _ACEOF
7897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7898   $EGREP "found" >/dev/null 2>&1; then :
7899   gcc_cv_decl_char_bit=yes
7900 else
7901   gcc_cv_decl_char_bit=no
7902 fi
7903 rm -f conftest*
7904
7905
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7908 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7909 if test $gcc_cv_decl_char_bit = no; then
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7911 $as_echo_n "checking number of bits in a byte... " >&6; }
7912 if test "${gcc_cv_c_nbby+set}" = set; then :
7913   $as_echo_n "(cached) " >&6
7914 else
7915   i=8
7916  gcc_cv_c_nbby=
7917  while test $i -lt 65; do
7918    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h.  */
7920
7921 int
7922 main ()
7923 {
7924 switch(0) {
7925   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7926   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7927   ; }
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 if ac_fn_c_try_compile "$LINENO"; then :
7933   gcc_cv_c_nbby=$i; break
7934 fi
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936    i=`expr $i + 1`
7937  done
7938  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7939
7940 fi
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7942 $as_echo "$gcc_cv_c_nbby" >&6; }
7943 if test $gcc_cv_c_nbby = failed; then
7944   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7945 else
7946
7947 cat >>confdefs.h <<_ACEOF
7948 #define CHAR_BIT $gcc_cv_c_nbby
7949 _ACEOF
7950
7951 fi
7952 fi
7953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7954 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7955 if test "${ac_cv_c_bigendian+set}" = set; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   ac_cv_c_bigendian=unknown
7959     # See if we're dealing with a universal compiler.
7960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h.  */
7962 #ifndef __APPLE_CC__
7963                not a universal capable compiler
7964              #endif
7965              typedef int dummy;
7966
7967 _ACEOF
7968 if ac_fn_c_try_compile "$LINENO"; then :
7969
7970         # Check for potential -arch flags.  It is not universal unless
7971         # there are at least two -arch flags with different values.
7972         ac_arch=
7973         ac_prev=
7974         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7975          if test -n "$ac_prev"; then
7976            case $ac_word in
7977              i?86 | x86_64 | ppc | ppc64)
7978                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7979                  ac_arch=$ac_word
7980                else
7981                  ac_cv_c_bigendian=universal
7982                  break
7983                fi
7984                ;;
7985            esac
7986            ac_prev=
7987          elif test "x$ac_word" = "x-arch"; then
7988            ac_prev=arch
7989          fi
7990        done
7991 fi
7992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993     if test $ac_cv_c_bigendian = unknown; then
7994       # See if sys/param.h defines the BYTE_ORDER macro.
7995       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h.  */
7997 #include <sys/types.h>
7998              #include <sys/param.h>
7999
8000 int
8001 main ()
8002 {
8003 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8004                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8005                      && LITTLE_ENDIAN)
8006               bogus endian macros
8007              #endif
8008
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 if ac_fn_c_try_compile "$LINENO"; then :
8014   # It does; now see whether it defined to BIG_ENDIAN or not.
8015          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h.  */
8017 #include <sys/types.h>
8018                 #include <sys/param.h>
8019
8020 int
8021 main ()
8022 {
8023 #if BYTE_ORDER != BIG_ENDIAN
8024                  not big endian
8025                 #endif
8026
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 if ac_fn_c_try_compile "$LINENO"; then :
8032   ac_cv_c_bigendian=yes
8033 else
8034   ac_cv_c_bigendian=no
8035 fi
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 fi
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039     fi
8040     if test $ac_cv_c_bigendian = unknown; then
8041       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8042       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h.  */
8044 #include <limits.h>
8045
8046 int
8047 main ()
8048 {
8049 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8050               bogus endian macros
8051              #endif
8052
8053   ;
8054   return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058   # It does; now see whether it defined to _BIG_ENDIAN or not.
8059          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h.  */
8061 #include <limits.h>
8062
8063 int
8064 main ()
8065 {
8066 #ifndef _BIG_ENDIAN
8067                  not big endian
8068                 #endif
8069
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075   ac_cv_c_bigendian=yes
8076 else
8077   ac_cv_c_bigendian=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082     fi
8083     if test $ac_cv_c_bigendian = unknown; then
8084       # Compile a test program.
8085       if test "$cross_compiling" = yes; then :
8086   # Try to guess by grepping values from an object file.
8087          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h.  */
8089 short int ascii_mm[] =
8090                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8091                 short int ascii_ii[] =
8092                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8093                 int use_ascii (int i) {
8094                   return ascii_mm[i] + ascii_ii[i];
8095                 }
8096                 short int ebcdic_ii[] =
8097                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8098                 short int ebcdic_mm[] =
8099                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8100                 int use_ebcdic (int i) {
8101                   return ebcdic_mm[i] + ebcdic_ii[i];
8102                 }
8103                 extern int foo;
8104
8105 int
8106 main ()
8107 {
8108 return use_ascii (foo) == use_ebcdic (foo);
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 if ac_fn_c_try_compile "$LINENO"; then :
8114   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8115               ac_cv_c_bigendian=yes
8116             fi
8117             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8118               if test "$ac_cv_c_bigendian" = unknown; then
8119                 ac_cv_c_bigendian=no
8120               else
8121                 # finding both strings is unlikely to happen, but who knows?
8122                 ac_cv_c_bigendian=unknown
8123               fi
8124             fi
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 else
8128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h.  */
8130 $ac_includes_default
8131 int
8132 main ()
8133 {
8134
8135              /* Are we little or big endian?  From Harbison&Steele.  */
8136              union
8137              {
8138                long int l;
8139                char c[sizeof (long int)];
8140              } u;
8141              u.l = 1;
8142              return u.c[sizeof (long int) - 1] == 1;
8143
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 if ac_fn_c_try_run "$LINENO"; then :
8149   ac_cv_c_bigendian=no
8150 else
8151   ac_cv_c_bigendian=yes
8152 fi
8153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8154   conftest.$ac_objext conftest.beam conftest.$ac_ext
8155 fi
8156
8157     fi
8158 fi
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8160 $as_echo "$ac_cv_c_bigendian" >&6; }
8161  case $ac_cv_c_bigendian in #(
8162    yes)
8163      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8164 ;; #(
8165    no)
8166       ;; #(
8167    universal)
8168
8169 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8170
8171      ;; #(
8172    *)
8173      as_fn_error "unknown endianness
8174  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8175  esac
8176
8177
8178 # --------
8179 # UNSORTED
8180 # --------
8181
8182
8183 # These libraries may be used by collect2.
8184 # We may need a special search path to get them linked.
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8186 $as_echo_n "checking for collect2 libraries... " >&6; }
8187 if test "${gcc_cv_collect2_libs+set}" = set; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   save_LIBS="$LIBS"
8191 for libs in '' -lld -lmld \
8192                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8193                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8194 do
8195         LIBS="$libs"
8196         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h.  */
8198
8199 /* Override any GCC internal prototype to avoid an error.
8200    Use char because int might match the return type of a GCC
8201    builtin and then its argument prototype would still apply.  */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 char ldopen ();
8206 int
8207 main ()
8208 {
8209 return ldopen ();
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_link "$LINENO"; then :
8215   gcc_cv_collect2_libs="$libs"; break
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext \
8218     conftest$ac_exeext conftest.$ac_ext
8219 done
8220 LIBS="$save_LIBS"
8221 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8224 $as_echo "$gcc_cv_collect2_libs" >&6; }
8225 case $gcc_cv_collect2_libs in
8226         "none required")        ;;
8227         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8228 esac
8229
8230
8231 # When building Ada code on Alpha, we need exc_resume which is usually in
8232 # -lexc.  So test for it.
8233 save_LIBS="$LIBS"
8234 LIBS=
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8236 $as_echo_n "checking for library containing exc_resume... " >&6; }
8237 if test "${ac_cv_search_exc_resume+set}" = set; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   ac_func_search_save_LIBS=$LIBS
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h.  */
8243
8244 /* Override any GCC internal prototype to avoid an error.
8245    Use char because int might match the return type of a GCC
8246    builtin and then its argument prototype would still apply.  */
8247 #ifdef __cplusplus
8248 extern "C"
8249 #endif
8250 char exc_resume ();
8251 int
8252 main ()
8253 {
8254 return exc_resume ();
8255   ;
8256   return 0;
8257 }
8258 _ACEOF
8259 for ac_lib in '' exc; do
8260   if test -z "$ac_lib"; then
8261     ac_res="none required"
8262   else
8263     ac_res=-l$ac_lib
8264     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8265   fi
8266   if ac_fn_c_try_link "$LINENO"; then :
8267   ac_cv_search_exc_resume=$ac_res
8268 fi
8269 rm -f core conftest.err conftest.$ac_objext \
8270     conftest$ac_exeext
8271   if test "${ac_cv_search_exc_resume+set}" = set; then :
8272   break
8273 fi
8274 done
8275 if test "${ac_cv_search_exc_resume+set}" = set; then :
8276
8277 else
8278   ac_cv_search_exc_resume=no
8279 fi
8280 rm conftest.$ac_ext
8281 LIBS=$ac_func_search_save_LIBS
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8284 $as_echo "$ac_cv_search_exc_resume" >&6; }
8285 ac_res=$ac_cv_search_exc_resume
8286 if test "$ac_res" != no; then :
8287   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8288
8289 fi
8290
8291 GNAT_LIBEXC="$LIBS"
8292 LIBS="$save_LIBS"
8293
8294
8295 # Some systems put ldexp and frexp in libm instead of libc; assume
8296 # they're both in the same place.  jcf-dump needs them.
8297 save_LIBS="$LIBS"
8298 LIBS=
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8300 $as_echo_n "checking for library containing ldexp... " >&6; }
8301 if test "${ac_cv_search_ldexp+set}" = set; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   ac_func_search_save_LIBS=$LIBS
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h.  */
8307
8308 /* Override any GCC internal prototype to avoid an error.
8309    Use char because int might match the return type of a GCC
8310    builtin and then its argument prototype would still apply.  */
8311 #ifdef __cplusplus
8312 extern "C"
8313 #endif
8314 char ldexp ();
8315 int
8316 main ()
8317 {
8318 return ldexp ();
8319   ;
8320   return 0;
8321 }
8322 _ACEOF
8323 for ac_lib in '' m; do
8324   if test -z "$ac_lib"; then
8325     ac_res="none required"
8326   else
8327     ac_res=-l$ac_lib
8328     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8329   fi
8330   if ac_fn_c_try_link "$LINENO"; then :
8331   ac_cv_search_ldexp=$ac_res
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext \
8334     conftest$ac_exeext
8335   if test "${ac_cv_search_ldexp+set}" = set; then :
8336   break
8337 fi
8338 done
8339 if test "${ac_cv_search_ldexp+set}" = set; then :
8340
8341 else
8342   ac_cv_search_ldexp=no
8343 fi
8344 rm conftest.$ac_ext
8345 LIBS=$ac_func_search_save_LIBS
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8348 $as_echo "$ac_cv_search_ldexp" >&6; }
8349 ac_res=$ac_cv_search_ldexp
8350 if test "$ac_res" != no; then :
8351   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8352
8353 fi
8354
8355 LDEXP_LIB="$LIBS"
8356 LIBS="$save_LIBS"
8357
8358
8359 # Use <inttypes.h> only if it exists,
8360 # doesn't clash with <sys/types.h>, and declares intmax_t.
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8362 $as_echo_n "checking for inttypes.h... " >&6; }
8363 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h.  */
8368 #include <sys/types.h>
8369 #include <inttypes.h>
8370 int
8371 main ()
8372 {
8373 intmax_t i = -1;
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379   gcc_cv_header_inttypes_h=yes
8380 else
8381   gcc_cv_header_inttypes_h=no
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8387 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8388 if test $gcc_cv_header_inttypes_h = yes; then
8389
8390 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8391
8392 fi
8393
8394
8395
8396 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8397         sysconf strsignal getrusage nl_langinfo \
8398         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8399         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
8400 do :
8401   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8402 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8403 eval as_val=\$$as_ac_var
8404    if test "x$as_val" = x""yes; then :
8405   cat >>confdefs.h <<_ACEOF
8406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8407 _ACEOF
8408
8409 fi
8410 done
8411
8412
8413 if test x$ac_cv_func_mbstowcs = xyes; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8415 $as_echo_n "checking whether mbstowcs works... " >&6; }
8416 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8417   $as_echo_n "(cached) " >&6
8418 else
8419       if test "$cross_compiling" = yes; then :
8420   gcc_cv_func_mbstowcs_works=yes
8421 else
8422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h.  */
8424 #include <stdlib.h>
8425 int main()
8426 {
8427   mbstowcs(0, "", 0);
8428   return 0;
8429 }
8430 _ACEOF
8431 if ac_fn_c_try_run "$LINENO"; then :
8432   gcc_cv_func_mbstowcs_works=yes
8433 else
8434   gcc_cv_func_mbstowcs_works=no
8435 fi
8436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8437   conftest.$ac_objext conftest.beam conftest.$ac_ext
8438 fi
8439
8440 fi
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8442 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8443   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8444
8445 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8446
8447   fi
8448 fi
8449
8450 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8451 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8452
8453 else
8454
8455 cat >>confdefs.h <<_ACEOF
8456 #define ssize_t int
8457 _ACEOF
8458
8459 fi
8460
8461 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8462 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8463
8464 else
8465
8466 cat >>confdefs.h <<_ACEOF
8467 #define caddr_t char *
8468 _ACEOF
8469
8470 fi
8471
8472
8473
8474 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8475 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8476   gcc_header_sys_mman_h=yes
8477 else
8478   gcc_header_sys_mman_h=no
8479 fi
8480
8481 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8482 if test "x$ac_cv_func_mmap" = x""yes; then :
8483   gcc_func_mmap=yes
8484 else
8485   gcc_func_mmap=no
8486 fi
8487
8488 if test "$gcc_header_sys_mman_h" != yes \
8489  || test "$gcc_func_mmap" != yes; then
8490    gcc_cv_func_mmap_file=no
8491    gcc_cv_func_mmap_dev_zero=no
8492    gcc_cv_func_mmap_anon=no
8493 else
8494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8495 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8496 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   # Add a system to this blacklist if
8500    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8501    # memory area containing the same data that you'd get if you applied
8502    # read() to the same fd.  The only system known to have a problem here
8503    # is VMS, where text files have record structure.
8504    case "$host_os" in
8505      vms* | ultrix*)
8506         gcc_cv_func_mmap_file=no ;;
8507      *)
8508         gcc_cv_func_mmap_file=yes;;
8509    esac
8510 fi
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8512 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8513    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8514 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8515 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   # Add a system to this blacklist if it has mmap() but /dev/zero
8519    # does not exist, or if mmapping /dev/zero does not give anonymous
8520    # zeroed pages with both the following properties:
8521    # 1. If you map N consecutive pages in with one call, and then
8522    #    unmap any subset of those pages, the pages that were not
8523    #    explicitly unmapped remain accessible.
8524    # 2. If you map two adjacent blocks of memory and then unmap them
8525    #    both at once, they must both go away.
8526    # Systems known to be in this category are Windows (all variants),
8527    # VMS, and Darwin.
8528    case "$host_os" in
8529      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8530         gcc_cv_func_mmap_dev_zero=no ;;
8531      *)
8532         gcc_cv_func_mmap_dev_zero=yes;;
8533    esac
8534 fi
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8536 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8537
8538    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8540 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8541 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8542   $as_echo_n "(cached) " >&6
8543 else
8544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h.  */
8546 #include <sys/types.h>
8547 #include <sys/mman.h>
8548 #include <unistd.h>
8549
8550 #ifndef MAP_ANONYMOUS
8551 #define MAP_ANONYMOUS MAP_ANON
8552 #endif
8553
8554 int
8555 main ()
8556 {
8557 int n = MAP_ANONYMOUS;
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563   gcc_cv_decl_map_anon=yes
8564 else
8565   gcc_cv_decl_map_anon=no
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8570 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8571
8572    if test $gcc_cv_decl_map_anon = no; then
8573      gcc_cv_func_mmap_anon=no
8574    else
8575      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8576 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8577 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8581    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8582    # doesn't give anonymous zeroed pages with the same properties listed
8583    # above for use of /dev/zero.
8584    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8585    case "$host_os" in
8586      vms* | cygwin* | pe | mingw* | sco* | udk* )
8587         gcc_cv_func_mmap_anon=no ;;
8588      *)
8589         gcc_cv_func_mmap_anon=yes;;
8590    esac
8591 fi
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8593 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8594    fi
8595 fi
8596
8597 if test $gcc_cv_func_mmap_file = yes; then
8598
8599 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8600
8601 fi
8602 if test $gcc_cv_func_mmap_dev_zero = yes; then
8603
8604 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8605
8606 fi
8607 if test $gcc_cv_func_mmap_anon = yes; then
8608
8609 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8610
8611 fi
8612
8613
8614 case "${host}" in
8615 *-*-*vms*)
8616   # Under VMS, vfork works very differently than on Unix. The standard test
8617   # won't work, and it isn't easily adaptable. It makes more sense to
8618   # just force it.
8619   ac_cv_func_vfork_works=yes
8620   ;;
8621 esac
8622 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8623 if test "x$ac_cv_type_pid_t" = x""yes; then :
8624
8625 else
8626
8627 cat >>confdefs.h <<_ACEOF
8628 #define pid_t int
8629 _ACEOF
8630
8631 fi
8632
8633 for ac_header in vfork.h
8634 do :
8635   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8636 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8637   cat >>confdefs.h <<_ACEOF
8638 #define HAVE_VFORK_H 1
8639 _ACEOF
8640
8641 fi
8642 done
8643
8644 for ac_func in fork vfork
8645 do :
8646   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8648 eval as_val=\$$as_ac_var
8649    if test "x$as_val" = x""yes; then :
8650   cat >>confdefs.h <<_ACEOF
8651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8652 _ACEOF
8653
8654 fi
8655 done
8656
8657 if test "x$ac_cv_func_fork" = xyes; then
8658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8659 $as_echo_n "checking for working fork... " >&6; }
8660 if test "${ac_cv_func_fork_works+set}" = set; then :
8661   $as_echo_n "(cached) " >&6
8662 else
8663   if test "$cross_compiling" = yes; then :
8664   ac_cv_func_fork_works=cross
8665 else
8666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h.  */
8668 $ac_includes_default
8669 int
8670 main ()
8671 {
8672
8673           /* By Ruediger Kuhlmann. */
8674           return fork () < 0;
8675
8676   ;
8677   return 0;
8678 }
8679 _ACEOF
8680 if ac_fn_c_try_run "$LINENO"; then :
8681   ac_cv_func_fork_works=yes
8682 else
8683   ac_cv_func_fork_works=no
8684 fi
8685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8686   conftest.$ac_objext conftest.beam conftest.$ac_ext
8687 fi
8688
8689 fi
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8691 $as_echo "$ac_cv_func_fork_works" >&6; }
8692
8693 else
8694   ac_cv_func_fork_works=$ac_cv_func_fork
8695 fi
8696 if test "x$ac_cv_func_fork_works" = xcross; then
8697   case $host in
8698     *-*-amigaos* | *-*-msdosdjgpp*)
8699       # Override, as these systems have only a dummy fork() stub
8700       ac_cv_func_fork_works=no
8701       ;;
8702     *)
8703       ac_cv_func_fork_works=yes
8704       ;;
8705   esac
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8707 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8708 fi
8709 ac_cv_func_vfork_works=$ac_cv_func_vfork
8710 if test "x$ac_cv_func_vfork" = xyes; then
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8712 $as_echo_n "checking for working vfork... " >&6; }
8713 if test "${ac_cv_func_vfork_works+set}" = set; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   if test "$cross_compiling" = yes; then :
8717   ac_cv_func_vfork_works=cross
8718 else
8719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h.  */
8721 /* Thanks to Paul Eggert for this test.  */
8722 $ac_includes_default
8723 #include <sys/wait.h>
8724 #ifdef HAVE_VFORK_H
8725 # include <vfork.h>
8726 #endif
8727 /* On some sparc systems, changes by the child to local and incoming
8728    argument registers are propagated back to the parent.  The compiler
8729    is told about this with #include <vfork.h>, but some compilers
8730    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8731    static variable whose address is put into a register that is
8732    clobbered by the vfork.  */
8733 static void
8734 #ifdef __cplusplus
8735 sparc_address_test (int arg)
8736 # else
8737 sparc_address_test (arg) int arg;
8738 #endif
8739 {
8740   static pid_t child;
8741   if (!child) {
8742     child = vfork ();
8743     if (child < 0) {
8744       perror ("vfork");
8745       _exit(2);
8746     }
8747     if (!child) {
8748       arg = getpid();
8749       write(-1, "", 0);
8750       _exit (arg);
8751     }
8752   }
8753 }
8754
8755 int
8756 main ()
8757 {
8758   pid_t parent = getpid ();
8759   pid_t child;
8760
8761   sparc_address_test (0);
8762
8763   child = vfork ();
8764
8765   if (child == 0) {
8766     /* Here is another test for sparc vfork register problems.  This
8767        test uses lots of local variables, at least as many local
8768        variables as main has allocated so far including compiler
8769        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8770        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8771        reuse the register of parent for one of the local variables,
8772        since it will think that parent can't possibly be used any more
8773        in this routine.  Assigning to the local variable will thus
8774        munge parent in the parent process.  */
8775     pid_t
8776       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8777       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8778     /* Convince the compiler that p..p7 are live; otherwise, it might
8779        use the same hardware register for all 8 local variables.  */
8780     if (p != p1 || p != p2 || p != p3 || p != p4
8781         || p != p5 || p != p6 || p != p7)
8782       _exit(1);
8783
8784     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8785        from child file descriptors.  If the child closes a descriptor
8786        before it execs or exits, this munges the parent's descriptor
8787        as well.  Test for this by closing stdout in the child.  */
8788     _exit(close(fileno(stdout)) != 0);
8789   } else {
8790     int status;
8791     struct stat st;
8792
8793     while (wait(&status) != child)
8794       ;
8795     return (
8796          /* Was there some problem with vforking?  */
8797          child < 0
8798
8799          /* Did the child fail?  (This shouldn't happen.)  */
8800          || status
8801
8802          /* Did the vfork/compiler bug occur?  */
8803          || parent != getpid()
8804
8805          /* Did the file descriptor bug occur?  */
8806          || fstat(fileno(stdout), &st) != 0
8807          );
8808   }
8809 }
8810 _ACEOF
8811 if ac_fn_c_try_run "$LINENO"; then :
8812   ac_cv_func_vfork_works=yes
8813 else
8814   ac_cv_func_vfork_works=no
8815 fi
8816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8817   conftest.$ac_objext conftest.beam conftest.$ac_ext
8818 fi
8819
8820 fi
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8822 $as_echo "$ac_cv_func_vfork_works" >&6; }
8823
8824 fi;
8825 if test "x$ac_cv_func_fork_works" = xcross; then
8826   ac_cv_func_vfork_works=$ac_cv_func_vfork
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8828 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8829 fi
8830
8831 if test "x$ac_cv_func_vfork_works" = xyes; then
8832
8833 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8834
8835 else
8836
8837 $as_echo "#define vfork fork" >>confdefs.h
8838
8839 fi
8840 if test "x$ac_cv_func_fork_works" = xyes; then
8841
8842 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8843
8844 fi
8845
8846
8847
8848       if test "X$prefix" = "XNONE"; then
8849     acl_final_prefix="$ac_default_prefix"
8850   else
8851     acl_final_prefix="$prefix"
8852   fi
8853   if test "X$exec_prefix" = "XNONE"; then
8854     acl_final_exec_prefix='${prefix}'
8855   else
8856     acl_final_exec_prefix="$exec_prefix"
8857   fi
8858   acl_save_prefix="$prefix"
8859   prefix="$acl_final_prefix"
8860   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8861   prefix="$acl_save_prefix"
8862
8863
8864 # Check whether --with-gnu-ld was given.
8865 if test "${with_gnu_ld+set}" = set; then :
8866   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8867 else
8868   with_gnu_ld=no
8869 fi
8870
8871 # Prepare PATH_SEPARATOR.
8872 # The user is always right.
8873 if test "${PATH_SEPARATOR+set}" != set; then
8874   echo "#! /bin/sh" >conf$$.sh
8875   echo  "exit 0"   >>conf$$.sh
8876   chmod +x conf$$.sh
8877   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8878     PATH_SEPARATOR=';'
8879   else
8880     PATH_SEPARATOR=:
8881   fi
8882   rm -f conf$$.sh
8883 fi
8884 ac_prog=ld
8885 if test "$GCC" = yes; then
8886   # Check if gcc -print-prog-name=ld gives a path.
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8888 $as_echo_n "checking for ld used by GCC... " >&6; }
8889   case $host in
8890   *-*-mingw*)
8891     # gcc leaves a trailing carriage return which upsets mingw
8892     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8893   *)
8894     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8895   esac
8896   case $ac_prog in
8897     # Accept absolute paths.
8898     [\\/]* | [A-Za-z]:[\\/]*)
8899       re_direlt='/[^/][^/]*/\.\./'
8900       # Canonicalize the path of ld
8901       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8902       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8903         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8904       done
8905       test -z "$LD" && LD="$ac_prog"
8906       ;;
8907   "")
8908     # If it fails, then pretend we aren't using GCC.
8909     ac_prog=ld
8910     ;;
8911   *)
8912     # If it is relative, then search for the first ld in PATH.
8913     with_gnu_ld=unknown
8914     ;;
8915   esac
8916 elif test "$with_gnu_ld" = yes; then
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8918 $as_echo_n "checking for GNU ld... " >&6; }
8919 else
8920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8921 $as_echo_n "checking for non-GNU ld... " >&6; }
8922 fi
8923 if test "${acl_cv_path_LD+set}" = set; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   if test -z "$LD"; then
8927   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8928   for ac_dir in $PATH; do
8929     test -z "$ac_dir" && ac_dir=.
8930     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8931       acl_cv_path_LD="$ac_dir/$ac_prog"
8932       # Check to see if the program is GNU ld.  I'd rather use --version,
8933       # but apparently some GNU ld's only accept -v.
8934       # Break only if it was the GNU/non-GNU ld that we prefer.
8935       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8936         test "$with_gnu_ld" != no && break
8937       else
8938         test "$with_gnu_ld" != yes && break
8939       fi
8940     fi
8941   done
8942   IFS="$ac_save_ifs"
8943 else
8944   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8945 fi
8946 fi
8947
8948 LD="$acl_cv_path_LD"
8949 if test -n "$LD"; then
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8951 $as_echo "$LD" >&6; }
8952 else
8953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8955 fi
8956 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8958 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8959 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8960   $as_echo_n "(cached) " >&6
8961 else
8962   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8963 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8964   acl_cv_prog_gnu_ld=yes
8965 else
8966   acl_cv_prog_gnu_ld=no
8967 fi
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8970 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8971 with_gnu_ld=$acl_cv_prog_gnu_ld
8972
8973
8974
8975                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8976 $as_echo_n "checking for shared library run path origin... " >&6; }
8977 if test "${acl_cv_rpath+set}" = set; then :
8978   $as_echo_n "(cached) " >&6
8979 else
8980
8981     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8982     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8983     . ./conftest.sh
8984     rm -f ./conftest.sh
8985     acl_cv_rpath=done
8986
8987 fi
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8989 $as_echo "$acl_cv_rpath" >&6; }
8990   wl="$acl_cv_wl"
8991   libext="$acl_cv_libext"
8992   shlibext="$acl_cv_shlibext"
8993   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8994   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8995   hardcode_direct="$acl_cv_hardcode_direct"
8996   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8997     # Check whether --enable-rpath was given.
8998 if test "${enable_rpath+set}" = set; then :
8999   enableval=$enable_rpath; :
9000 else
9001   enable_rpath=yes
9002 fi
9003
9004
9005
9006
9007
9008
9009
9010
9011     use_additional=yes
9012
9013   acl_save_prefix="$prefix"
9014   prefix="$acl_final_prefix"
9015   acl_save_exec_prefix="$exec_prefix"
9016   exec_prefix="$acl_final_exec_prefix"
9017
9018     eval additional_includedir=\"$includedir\"
9019     eval additional_libdir=\"$libdir\"
9020
9021   exec_prefix="$acl_save_exec_prefix"
9022   prefix="$acl_save_prefix"
9023
9024
9025 # Check whether --with-libiconv-prefix was given.
9026 if test "${with_libiconv_prefix+set}" = set; then :
9027   withval=$with_libiconv_prefix;
9028     if test "X$withval" = "Xno"; then
9029       use_additional=no
9030     else
9031       if test "X$withval" = "X"; then
9032
9033   acl_save_prefix="$prefix"
9034   prefix="$acl_final_prefix"
9035   acl_save_exec_prefix="$exec_prefix"
9036   exec_prefix="$acl_final_exec_prefix"
9037
9038           eval additional_includedir=\"$includedir\"
9039           eval additional_libdir=\"$libdir\"
9040
9041   exec_prefix="$acl_save_exec_prefix"
9042   prefix="$acl_save_prefix"
9043
9044       else
9045         additional_includedir="$withval/include"
9046         additional_libdir="$withval/lib"
9047       fi
9048     fi
9049
9050 fi
9051
9052       LIBICONV=
9053   LTLIBICONV=
9054   INCICONV=
9055   rpathdirs=
9056   ltrpathdirs=
9057   names_already_handled=
9058   names_next_round='iconv '
9059   while test -n "$names_next_round"; do
9060     names_this_round="$names_next_round"
9061     names_next_round=
9062     for name in $names_this_round; do
9063       already_handled=
9064       for n in $names_already_handled; do
9065         if test "$n" = "$name"; then
9066           already_handled=yes
9067           break
9068         fi
9069       done
9070       if test -z "$already_handled"; then
9071         names_already_handled="$names_already_handled $name"
9072                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9073         eval value=\"\$HAVE_LIB$uppername\"
9074         if test -n "$value"; then
9075           if test "$value" = yes; then
9076             eval value=\"\$LIB$uppername\"
9077             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9078             eval value=\"\$LTLIB$uppername\"
9079             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9080           else
9081                                     :
9082           fi
9083         else
9084                               found_dir=
9085           found_la=
9086           found_so=
9087           found_a=
9088           if test $use_additional = yes; then
9089             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9090               found_dir="$additional_libdir"
9091               found_so="$additional_libdir/lib$name.$shlibext"
9092               if test -f "$additional_libdir/lib$name.la"; then
9093                 found_la="$additional_libdir/lib$name.la"
9094               fi
9095             else
9096               if test -f "$additional_libdir/lib$name.$libext"; then
9097                 found_dir="$additional_libdir"
9098                 found_a="$additional_libdir/lib$name.$libext"
9099                 if test -f "$additional_libdir/lib$name.la"; then
9100                   found_la="$additional_libdir/lib$name.la"
9101                 fi
9102               fi
9103             fi
9104           fi
9105           if test "X$found_dir" = "X"; then
9106             for x in $LDFLAGS $LTLIBICONV; do
9107
9108   acl_save_prefix="$prefix"
9109   prefix="$acl_final_prefix"
9110   acl_save_exec_prefix="$exec_prefix"
9111   exec_prefix="$acl_final_exec_prefix"
9112   eval x=\"$x\"
9113   exec_prefix="$acl_save_exec_prefix"
9114   prefix="$acl_save_prefix"
9115
9116               case "$x" in
9117                 -L*)
9118                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9119                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9120                     found_dir="$dir"
9121                     found_so="$dir/lib$name.$shlibext"
9122                     if test -f "$dir/lib$name.la"; then
9123                       found_la="$dir/lib$name.la"
9124                     fi
9125                   else
9126                     if test -f "$dir/lib$name.$libext"; then
9127                       found_dir="$dir"
9128                       found_a="$dir/lib$name.$libext"
9129                       if test -f "$dir/lib$name.la"; then
9130                         found_la="$dir/lib$name.la"
9131                       fi
9132                     fi
9133                   fi
9134                   ;;
9135               esac
9136               if test "X$found_dir" != "X"; then
9137                 break
9138               fi
9139             done
9140           fi
9141           if test "X$found_dir" != "X"; then
9142                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9143             if test "X$found_so" != "X"; then
9144                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9145                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9146               else
9147                                                                                 haveit=
9148                 for x in $ltrpathdirs; do
9149                   if test "X$x" = "X$found_dir"; then
9150                     haveit=yes
9151                     break
9152                   fi
9153                 done
9154                 if test -z "$haveit"; then
9155                   ltrpathdirs="$ltrpathdirs $found_dir"
9156                 fi
9157                                 if test "$hardcode_direct" = yes; then
9158                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9159                 else
9160                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9161                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9162                                                             haveit=
9163                     for x in $rpathdirs; do
9164                       if test "X$x" = "X$found_dir"; then
9165                         haveit=yes
9166                         break
9167                       fi
9168                     done
9169                     if test -z "$haveit"; then
9170                       rpathdirs="$rpathdirs $found_dir"
9171                     fi
9172                   else
9173                                                                                 haveit=
9174                     for x in $LDFLAGS $LIBICONV; do
9175
9176   acl_save_prefix="$prefix"
9177   prefix="$acl_final_prefix"
9178   acl_save_exec_prefix="$exec_prefix"
9179   exec_prefix="$acl_final_exec_prefix"
9180   eval x=\"$x\"
9181   exec_prefix="$acl_save_exec_prefix"
9182   prefix="$acl_save_prefix"
9183
9184                       if test "X$x" = "X-L$found_dir"; then
9185                         haveit=yes
9186                         break
9187                       fi
9188                     done
9189                     if test -z "$haveit"; then
9190                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9191                     fi
9192                     if test "$hardcode_minus_L" != no; then
9193                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9194                     else
9195                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9196                     fi
9197                   fi
9198                 fi
9199               fi
9200             else
9201               if test "X$found_a" != "X"; then
9202                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9203               else
9204                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9205               fi
9206             fi
9207                         additional_includedir=
9208             case "$found_dir" in
9209               */lib | */lib/)
9210                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9211                 additional_includedir="$basedir/include"
9212                 ;;
9213             esac
9214             if test "X$additional_includedir" != "X"; then
9215                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9216                 haveit=
9217                 if test "X$additional_includedir" = "X/usr/local/include"; then
9218                   if test -n "$GCC"; then
9219                     case $host_os in
9220                       linux*) haveit=yes;;
9221                     esac
9222                   fi
9223                 fi
9224                 if test -z "$haveit"; then
9225                   for x in $CPPFLAGS $INCICONV; do
9226
9227   acl_save_prefix="$prefix"
9228   prefix="$acl_final_prefix"
9229   acl_save_exec_prefix="$exec_prefix"
9230   exec_prefix="$acl_final_exec_prefix"
9231   eval x=\"$x\"
9232   exec_prefix="$acl_save_exec_prefix"
9233   prefix="$acl_save_prefix"
9234
9235                     if test "X$x" = "X-I$additional_includedir"; then
9236                       haveit=yes
9237                       break
9238                     fi
9239                   done
9240                   if test -z "$haveit"; then
9241                     if test -d "$additional_includedir"; then
9242                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9243                     fi
9244                   fi
9245                 fi
9246               fi
9247             fi
9248                         if test -n "$found_la"; then
9249                                                         save_libdir="$libdir"
9250               case "$found_la" in
9251                 */* | *\\*) . "$found_la" ;;
9252                 *) . "./$found_la" ;;
9253               esac
9254               libdir="$save_libdir"
9255                             for dep in $dependency_libs; do
9256                 case "$dep" in
9257                   -L*)
9258                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9259                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9260                       haveit=
9261                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9262                         if test -n "$GCC"; then
9263                           case $host_os in
9264                             linux*) haveit=yes;;
9265                           esac
9266                         fi
9267                       fi
9268                       if test -z "$haveit"; then
9269                         haveit=
9270                         for x in $LDFLAGS $LIBICONV; do
9271
9272   acl_save_prefix="$prefix"
9273   prefix="$acl_final_prefix"
9274   acl_save_exec_prefix="$exec_prefix"
9275   exec_prefix="$acl_final_exec_prefix"
9276   eval x=\"$x\"
9277   exec_prefix="$acl_save_exec_prefix"
9278   prefix="$acl_save_prefix"
9279
9280                           if test "X$x" = "X-L$additional_libdir"; then
9281                             haveit=yes
9282                             break
9283                           fi
9284                         done
9285                         if test -z "$haveit"; then
9286                           if test -d "$additional_libdir"; then
9287                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9288                           fi
9289                         fi
9290                         haveit=
9291                         for x in $LDFLAGS $LTLIBICONV; do
9292
9293   acl_save_prefix="$prefix"
9294   prefix="$acl_final_prefix"
9295   acl_save_exec_prefix="$exec_prefix"
9296   exec_prefix="$acl_final_exec_prefix"
9297   eval x=\"$x\"
9298   exec_prefix="$acl_save_exec_prefix"
9299   prefix="$acl_save_prefix"
9300
9301                           if test "X$x" = "X-L$additional_libdir"; then
9302                             haveit=yes
9303                             break
9304                           fi
9305                         done
9306                         if test -z "$haveit"; then
9307                           if test -d "$additional_libdir"; then
9308                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9309                           fi
9310                         fi
9311                       fi
9312                     fi
9313                     ;;
9314                   -R*)
9315                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9316                     if test "$enable_rpath" != no; then
9317                                                                   haveit=
9318                       for x in $rpathdirs; do
9319                         if test "X$x" = "X$dir"; then
9320                           haveit=yes
9321                           break
9322                         fi
9323                       done
9324                       if test -z "$haveit"; then
9325                         rpathdirs="$rpathdirs $dir"
9326                       fi
9327                                                                   haveit=
9328                       for x in $ltrpathdirs; do
9329                         if test "X$x" = "X$dir"; then
9330                           haveit=yes
9331                           break
9332                         fi
9333                       done
9334                       if test -z "$haveit"; then
9335                         ltrpathdirs="$ltrpathdirs $dir"
9336                       fi
9337                     fi
9338                     ;;
9339                   -l*)
9340                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9341                     ;;
9342                   *.la)
9343                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9344                     ;;
9345                   *)
9346                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9347                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9348                     ;;
9349                 esac
9350               done
9351             fi
9352           else
9353                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9354             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9355           fi
9356         fi
9357       fi
9358     done
9359   done
9360   if test "X$rpathdirs" != "X"; then
9361     if test -n "$hardcode_libdir_separator"; then
9362                         alldirs=
9363       for found_dir in $rpathdirs; do
9364         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9365       done
9366             acl_save_libdir="$libdir"
9367       libdir="$alldirs"
9368       eval flag=\"$hardcode_libdir_flag_spec\"
9369       libdir="$acl_save_libdir"
9370       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9371     else
9372             for found_dir in $rpathdirs; do
9373         acl_save_libdir="$libdir"
9374         libdir="$found_dir"
9375         eval flag=\"$hardcode_libdir_flag_spec\"
9376         libdir="$acl_save_libdir"
9377         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9378       done
9379     fi
9380   fi
9381   if test "X$ltrpathdirs" != "X"; then
9382             for found_dir in $ltrpathdirs; do
9383       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9384     done
9385   fi
9386
9387
9388
9389
9390
9391
9392
9393           am_save_CPPFLAGS="$CPPFLAGS"
9394
9395   for element in $INCICONV; do
9396     haveit=
9397     for x in $CPPFLAGS; do
9398
9399   acl_save_prefix="$prefix"
9400   prefix="$acl_final_prefix"
9401   acl_save_exec_prefix="$exec_prefix"
9402   exec_prefix="$acl_final_exec_prefix"
9403   eval x=\"$x\"
9404   exec_prefix="$acl_save_exec_prefix"
9405   prefix="$acl_save_prefix"
9406
9407       if test "X$x" = "X$element"; then
9408         haveit=yes
9409         break
9410       fi
9411     done
9412     if test -z "$haveit"; then
9413       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9414     fi
9415   done
9416
9417
9418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9419 $as_echo_n "checking for iconv... " >&6; }
9420 if test "${am_cv_func_iconv+set}" = set; then :
9421   $as_echo_n "(cached) " >&6
9422 else
9423
9424     am_cv_func_iconv="no, consider installing GNU libiconv"
9425     am_cv_lib_iconv=no
9426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h.  */
9428 #include <stdlib.h>
9429 #include <iconv.h>
9430 int
9431 main ()
9432 {
9433 iconv_t cd = iconv_open("","");
9434        iconv(cd,NULL,NULL,NULL,NULL);
9435        iconv_close(cd);
9436   ;
9437   return 0;
9438 }
9439 _ACEOF
9440 if ac_fn_c_try_link "$LINENO"; then :
9441   am_cv_func_iconv=yes
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext \
9444     conftest$ac_exeext conftest.$ac_ext
9445     if test "$am_cv_func_iconv" != yes; then
9446       am_save_LIBS="$LIBS"
9447       LIBS="$LIBS $LIBICONV"
9448       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h.  */
9450 #include <stdlib.h>
9451 #include <iconv.h>
9452 int
9453 main ()
9454 {
9455 iconv_t cd = iconv_open("","");
9456          iconv(cd,NULL,NULL,NULL,NULL);
9457          iconv_close(cd);
9458   ;
9459   return 0;
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_link "$LINENO"; then :
9463   am_cv_lib_iconv=yes
9464         am_cv_func_iconv=yes
9465 fi
9466 rm -f core conftest.err conftest.$ac_objext \
9467     conftest$ac_exeext conftest.$ac_ext
9468       LIBS="$am_save_LIBS"
9469     fi
9470
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9473 $as_echo "$am_cv_func_iconv" >&6; }
9474   if test "$am_cv_func_iconv" = yes; then
9475
9476 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9477
9478   fi
9479   if test "$am_cv_lib_iconv" = yes; then
9480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9481 $as_echo_n "checking how to link with libiconv... " >&6; }
9482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9483 $as_echo "$LIBICONV" >&6; }
9484   else
9485             CPPFLAGS="$am_save_CPPFLAGS"
9486     LIBICONV=
9487     LTLIBICONV=
9488   fi
9489
9490
9491
9492   if test "$am_cv_func_iconv" = yes; then
9493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9494 $as_echo_n "checking for iconv declaration... " >&6; }
9495     if test "${am_cv_proto_iconv+set}" = set; then :
9496   $as_echo_n "(cached) " >&6
9497 else
9498
9499       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h.  */
9501
9502 #include <stdlib.h>
9503 #include <iconv.h>
9504 extern
9505 #ifdef __cplusplus
9506 "C"
9507 #endif
9508 #if defined(__STDC__) || defined(__cplusplus)
9509 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9510 #else
9511 size_t iconv();
9512 #endif
9513
9514 int
9515 main ()
9516 {
9517
9518   ;
9519   return 0;
9520 }
9521 _ACEOF
9522 if ac_fn_c_try_compile "$LINENO"; then :
9523   am_cv_proto_iconv_arg1=""
9524 else
9525   am_cv_proto_iconv_arg1="const"
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528       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);"
9529 fi
9530
9531     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9533          }$am_cv_proto_iconv" >&5
9534 $as_echo "${ac_t:-
9535          }$am_cv_proto_iconv" >&6; }
9536
9537 cat >>confdefs.h <<_ACEOF
9538 #define ICONV_CONST $am_cv_proto_iconv_arg1
9539 _ACEOF
9540
9541   fi
9542
9543 # Until we have in-tree GNU iconv:
9544 LIBICONV_DEP=
9545
9546
9547
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9549 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9550 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h.  */
9555 #include <locale.h>
9556 int
9557 main ()
9558 {
9559 return LC_MESSAGES
9560   ;
9561   return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_link "$LINENO"; then :
9565   am_cv_val_LC_MESSAGES=yes
9566 else
9567   am_cv_val_LC_MESSAGES=no
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext \
9570     conftest$ac_exeext conftest.$ac_ext
9571 fi
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9573 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9574   if test $am_cv_val_LC_MESSAGES = yes; then
9575
9576 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9577
9578   fi
9579
9580
9581
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9583 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9584 if test "${am_cv_langinfo_codeset+set}" = set; then :
9585   $as_echo_n "(cached) " >&6
9586 else
9587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h.  */
9589 #include <langinfo.h>
9590 int
9591 main ()
9592 {
9593 char* cs = nl_langinfo(CODESET);
9594   ;
9595   return 0;
9596 }
9597 _ACEOF
9598 if ac_fn_c_try_link "$LINENO"; then :
9599   am_cv_langinfo_codeset=yes
9600 else
9601   am_cv_langinfo_codeset=no
9602 fi
9603 rm -f core conftest.err conftest.$ac_objext \
9604     conftest$ac_exeext conftest.$ac_ext
9605
9606 fi
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9608 $as_echo "$am_cv_langinfo_codeset" >&6; }
9609   if test $am_cv_langinfo_codeset = yes; then
9610
9611 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9612
9613   fi
9614
9615
9616 # We will need to find libiberty.h and ansidecl.h
9617 saved_CFLAGS="$CFLAGS"
9618 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9619 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9620         strsignal strstr strverscmp \
9621         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9622         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
9623 do
9624   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9626 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9627 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9628   $as_echo_n "(cached) " >&6
9629 else
9630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h.  */
9632 #undef $ac_tr_decl
9633 #define $ac_tr_decl 1
9634
9635 #include "ansidecl.h"
9636 #include "system.h"
9637
9638 int
9639 main ()
9640 {
9641 #ifndef $ac_func
9642 char *(*pfn) = (char *(*)) $ac_func ;
9643 #endif
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 if ac_fn_c_try_compile "$LINENO"; then :
9649   eval "gcc_cv_have_decl_$ac_func=yes"
9650 else
9651   eval "gcc_cv_have_decl_$ac_func=no"
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 fi
9655
9656 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9658 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9659 #define $ac_tr_decl 1
9660 _ACEOF
9661
9662 else
9663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9665 #define $ac_tr_decl 0
9666 _ACEOF
9667
9668 fi
9669
9670 done
9671
9672
9673 for ac_func in getrlimit setrlimit getrusage
9674 do
9675   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9677 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9678 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9679   $as_echo_n "(cached) " >&6
9680 else
9681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h.  */
9683 #undef $ac_tr_decl
9684 #define $ac_tr_decl 1
9685
9686 #include "ansidecl.h"
9687 #include "system.h"
9688 #ifdef HAVE_SYS_RESOURCE_H
9689 #include <sys/resource.h>
9690 #endif
9691
9692
9693 int
9694 main ()
9695 {
9696 #ifndef $ac_func
9697 char *(*pfn) = (char *(*)) $ac_func ;
9698 #endif
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_compile "$LINENO"; then :
9704   eval "gcc_cv_have_decl_$ac_func=yes"
9705 else
9706   eval "gcc_cv_have_decl_$ac_func=no"
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 fi
9710
9711 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9713 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9714 #define $ac_tr_decl 1
9715 _ACEOF
9716
9717 else
9718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9720 #define $ac_tr_decl 0
9721 _ACEOF
9722
9723 fi
9724
9725 done
9726
9727
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h.  */
9730
9731 #include "ansidecl.h"
9732 #include "system.h"
9733 #ifdef HAVE_SYS_RESOURCE_H
9734 #include <sys/resource.h>
9735 #endif
9736
9737 int
9738 main ()
9739 {
9740 rlim_t l = 0;
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_c_try_compile "$LINENO"; then :
9746
9747 else
9748
9749 $as_echo "#define rlim_t long" >>confdefs.h
9750
9751 fi
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753
9754 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9755 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9756 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9757 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9758 for ac_func in ldgetname
9759 do
9760   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9762 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9763 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9764   $as_echo_n "(cached) " >&6
9765 else
9766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h.  */
9768 #undef $ac_tr_decl
9769 #define $ac_tr_decl 1
9770
9771 #include "ansidecl.h"
9772 #include "system.h"
9773 #ifdef HAVE_LDFCN_H
9774 #undef FREAD
9775 #undef FWRITE
9776 #include <ldfcn.h>
9777 #endif
9778
9779
9780 int
9781 main ()
9782 {
9783 #ifndef $ac_func
9784 char *(*pfn) = (char *(*)) $ac_func ;
9785 #endif
9786   ;
9787   return 0;
9788 }
9789 _ACEOF
9790 if ac_fn_c_try_compile "$LINENO"; then :
9791   eval "gcc_cv_have_decl_$ac_func=yes"
9792 else
9793   eval "gcc_cv_have_decl_$ac_func=no"
9794 fi
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 fi
9797
9798 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9800 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9801 #define $ac_tr_decl 1
9802 _ACEOF
9803
9804 else
9805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9807 #define $ac_tr_decl 0
9808 _ACEOF
9809
9810 fi
9811
9812 done
9813
9814
9815 for ac_func in times
9816 do
9817   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9819 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9820 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9821   $as_echo_n "(cached) " >&6
9822 else
9823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h.  */
9825 #undef $ac_tr_decl
9826 #define $ac_tr_decl 1
9827
9828 #include "ansidecl.h"
9829 #include "system.h"
9830 #ifdef HAVE_SYS_TIMES_H
9831 #include <sys/times.h>
9832 #endif
9833
9834
9835 int
9836 main ()
9837 {
9838 #ifndef $ac_func
9839 char *(*pfn) = (char *(*)) $ac_func ;
9840 #endif
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_compile "$LINENO"; then :
9846   eval "gcc_cv_have_decl_$ac_func=yes"
9847 else
9848   eval "gcc_cv_have_decl_$ac_func=no"
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 fi
9852
9853 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9855 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9856 #define $ac_tr_decl 1
9857 _ACEOF
9858
9859 else
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9862 #define $ac_tr_decl 0
9863 _ACEOF
9864
9865 fi
9866
9867 done
9868
9869
9870 for ac_func in sigaltstack
9871 do
9872   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9874 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9875 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h.  */
9880 #undef $ac_tr_decl
9881 #define $ac_tr_decl 1
9882
9883 #include "ansidecl.h"
9884 #include "system.h"
9885 #include <signal.h>
9886
9887
9888 int
9889 main ()
9890 {
9891 #ifndef $ac_func
9892 char *(*pfn) = (char *(*)) $ac_func ;
9893 #endif
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 if ac_fn_c_try_compile "$LINENO"; then :
9899   eval "gcc_cv_have_decl_$ac_func=yes"
9900 else
9901   eval "gcc_cv_have_decl_$ac_func=no"
9902 fi
9903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9904 fi
9905
9906 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9908 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9909 #define $ac_tr_decl 1
9910 _ACEOF
9911
9912 else
9913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9915 #define $ac_tr_decl 0
9916 _ACEOF
9917
9918 fi
9919
9920 done
9921
9922
9923 # More time-related stuff.
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9925 $as_echo_n "checking for struct tms... " >&6; }
9926 if test "${ac_cv_struct_tms+set}" = set; then :
9927   $as_echo_n "(cached) " >&6
9928 else
9929
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h.  */
9932
9933 #include "ansidecl.h"
9934 #include "system.h"
9935 #ifdef HAVE_SYS_TIMES_H
9936 #include <sys/times.h>
9937 #endif
9938
9939 int
9940 main ()
9941 {
9942 struct tms tms;
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 if ac_fn_c_try_compile "$LINENO"; then :
9948   ac_cv_struct_tms=yes
9949 else
9950   ac_cv_struct_tms=no
9951 fi
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 fi
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
9955 $as_echo "$ac_cv_struct_tms" >&6; }
9956 if test $ac_cv_struct_tms = yes; then
9957
9958 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9959
9960 fi
9961
9962 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9963 # revisit after autoconf 2.50.
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
9965 $as_echo_n "checking for clock_t... " >&6; }
9966 if test "${gcc_cv_type_clock_t+set}" = set; then :
9967   $as_echo_n "(cached) " >&6
9968 else
9969
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h.  */
9972
9973 #include "ansidecl.h"
9974 #include "system.h"
9975
9976 int
9977 main ()
9978 {
9979 clock_t x;
9980   ;
9981   return 0;
9982 }
9983 _ACEOF
9984 if ac_fn_c_try_compile "$LINENO"; then :
9985   gcc_cv_type_clock_t=yes
9986 else
9987   gcc_cv_type_clock_t=no
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990 fi
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
9992 $as_echo "$gcc_cv_type_clock_t" >&6; }
9993 if test $gcc_cv_type_clock_t = yes; then
9994
9995 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
9996
9997 fi
9998
9999 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10000 CFLAGS="$saved_CFLAGS"
10001
10002 # Check whether --enable-initfini-array was given.
10003 if test "${enable_initfini_array+set}" = set; then :
10004   enableval=$enable_initfini_array;
10005 else
10006
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10008 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10009 if test "${gcc_cv_initfini_array+set}" = set; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012     if test "$cross_compiling" = yes; then :
10013   gcc_cv_initfini_array=no
10014 else
10015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h.  */
10017
10018 static int x = -1;
10019 int main (void) { return x; }
10020 int foo (void) { x = 0; }
10021 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10022 _ACEOF
10023 if ac_fn_c_try_run "$LINENO"; then :
10024   gcc_cv_initfini_array=yes
10025 else
10026   gcc_cv_initfini_array=no
10027 fi
10028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10029   conftest.$ac_objext conftest.beam conftest.$ac_ext
10030 fi
10031
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10034 $as_echo "$gcc_cv_initfini_array" >&6; }
10035   enable_initfini_array=$gcc_cv_initfini_array
10036
10037 fi
10038
10039 if test $enable_initfini_array = yes; then
10040
10041 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10042
10043 fi
10044
10045 # mkdir takes a single argument on some systems.
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10047 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10048 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10049   $as_echo_n "(cached) " >&6
10050 else
10051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h.  */
10053
10054 #include <sys/types.h>
10055 #ifdef HAVE_SYS_STAT_H
10056 # include <sys/stat.h>
10057 #endif
10058 #ifdef HAVE_UNISTD_H
10059 # include <unistd.h>
10060 #endif
10061 #ifdef HAVE_DIRECT_H
10062 # include <direct.h>
10063 #endif
10064 int
10065 main ()
10066 {
10067 mkdir ("foo", 0);
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072 if ac_fn_c_try_compile "$LINENO"; then :
10073   gcc_cv_mkdir_takes_one_arg=no
10074 else
10075   gcc_cv_mkdir_takes_one_arg=yes
10076 fi
10077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10078 fi
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10080 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10081 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10082
10083 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10084
10085 fi
10086
10087
10088 # File extensions
10089 manext='.1'
10090 objext='.o'
10091
10092
10093
10094 # With Setjmp/Longjmp based exception handling.
10095 # Check whether --enable-sjlj-exceptions was given.
10096 if test "${enable_sjlj_exceptions+set}" = set; then :
10097   enableval=$enable_sjlj_exceptions; case $target in
10098   *-*-hpux10*)
10099     if test $enableval != yes; then
10100       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10101 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10102       enableval=yes
10103     fi
10104     ;;
10105 esac
10106 force_sjlj_exceptions=yes
10107 else
10108   case $target in
10109   *-*-hpux10*)
10110     force_sjlj_exceptions=yes
10111     enableval=yes
10112     ;;
10113   *)
10114     force_sjlj_exceptions=no
10115     ;;
10116 esac
10117 fi
10118
10119 if test $force_sjlj_exceptions = yes; then
10120   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10121
10122 cat >>confdefs.h <<_ACEOF
10123 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10124 _ACEOF
10125
10126 fi
10127
10128 # For platforms with the unwind ABI which includes an unwind library,
10129 # libunwind, we can choose to use the system libunwind.
10130 # config.gcc also contains tests of with_system_libunwind.
10131
10132
10133 # Check whether --with-system-libunwind was given.
10134 if test "${with_system_libunwind+set}" = set; then :
10135   withval=$with_system_libunwind;
10136 fi
10137
10138   # If system-libunwind was not specifically set, pick a default setting.
10139   if test x$with_system_libunwind = x; then
10140     case ${target} in
10141       ia64-*-hpux*) with_system_libunwind=yes ;;
10142       *) with_system_libunwind=no ;;
10143     esac
10144   fi
10145   # Based on system-libunwind and target, do we have ipinfo?
10146   if  test x$with_system_libunwind = xyes; then
10147     case ${target} in
10148       ia64-*-*) have_unwind_getipinfo=no ;;
10149       *) have_unwind_getipinfo=yes ;;
10150     esac
10151   else
10152     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10153
10154     case ${target} in
10155       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10156       *) have_unwind_getipinfo=yes ;;
10157     esac
10158
10159   fi
10160
10161   if test x$have_unwind_getipinfo = xyes; then
10162
10163 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10164
10165   fi
10166
10167
10168 # --------------------------------------------------------
10169 # Build, host, and target specific configuration fragments
10170 # --------------------------------------------------------
10171
10172 # Collect build-machine-specific information.
10173 . ${srcdir}/config.build
10174
10175 # Collect host-machine-specific information.
10176 . ${srcdir}/config.host
10177
10178 target_gtfiles=
10179
10180 # Collect target-machine-specific information.
10181 . ${srcdir}/config.gcc
10182
10183 extra_objs="${host_extra_objs} ${extra_objs}"
10184 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10185
10186 # Default the target-machine variables that were not explicitly set.
10187 if test x"$tm_file" = x
10188 then tm_file=$cpu_type/$cpu_type.h; fi
10189
10190 if test x"$extra_headers" = x
10191 then extra_headers=; fi
10192
10193 if test x$md_file = x
10194 then md_file=$cpu_type/$cpu_type.md; fi
10195
10196 if test x$out_file = x
10197 then out_file=$cpu_type/$cpu_type.c; fi
10198
10199 if test x"$tmake_file" = x
10200 then tmake_file=$cpu_type/t-$cpu_type
10201 fi
10202
10203 if test x"$dwarf2" = xyes
10204 then tm_file="$tm_file tm-dwarf2.h"
10205 fi
10206
10207 # Say what files are being used for the output code and MD file.
10208 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10209 echo "Using \`$srcdir/config/$md_file' as machine description file."
10210
10211 # If any of the xm_file variables contain nonexistent files, warn
10212 # about them and drop them.
10213
10214 bx=
10215 for x in $build_xm_file; do
10216   if    test -f $srcdir/config/$x
10217   then      bx="$bx $x"
10218   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10219 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10220   fi
10221 done
10222 build_xm_file="$bx"
10223
10224 hx=
10225 for x in $host_xm_file; do
10226   if    test -f $srcdir/config/$x
10227   then      hx="$hx $x"
10228   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10229 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10230   fi
10231 done
10232 host_xm_file="$hx"
10233
10234 tx=
10235 for x in $xm_file; do
10236   if    test -f $srcdir/config/$x
10237   then      tx="$tx $x"
10238   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10239 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10240   fi
10241 done
10242 xm_file="$tx"
10243
10244 count=a
10245 for f in $tm_file; do
10246         count=${count}x
10247 done
10248 if test $count = ax; then
10249         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10250 else
10251         echo "Using the following target machine macro files:"
10252         for f in $tm_file; do
10253                 echo "  $srcdir/config/$f"
10254         done
10255 fi
10256
10257 if test x$need_64bit_hwint = xyes; then
10258
10259 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10260
10261 fi
10262
10263 if test x$use_long_long_for_widest_fast_int = xyes; then
10264
10265 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10266
10267 fi
10268
10269 count=a
10270 for f in $host_xm_file; do
10271         count=${count}x
10272 done
10273 if test $count = a; then
10274         :
10275 elif test $count = ax; then
10276         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10277 else
10278         echo "Using the following host machine macro files:"
10279         for f in $host_xm_file; do
10280                 echo "  $srcdir/config/$f"
10281         done
10282 fi
10283 echo "Using ${out_host_hook_obj} for host machine hooks."
10284
10285 if test "$host_xm_file" != "$build_xm_file"; then
10286         count=a
10287         for f in $build_xm_file; do
10288                 count=${count}x
10289         done
10290         if test $count = a; then
10291                 :
10292         elif test $count = ax; then
10293                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10294         else
10295                 echo "Using the following build machine macro files:"
10296                 for f in $build_xm_file; do
10297                         echo "  $srcdir/config/$f"
10298                 done
10299         fi
10300 fi
10301
10302 case ${host} in
10303   powerpc*-*-darwin*)
10304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10305 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10306 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10307   $as_echo_n "(cached) " >&6
10308 else
10309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h.  */
10311
10312 #include <sys/cdefs.h>
10313 #include <sys/signal.h>
10314 #include <ucontext.h>
10315 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10316
10317 _ACEOF
10318 if ac_fn_c_try_compile "$LINENO"; then :
10319   gcc_cv_mcontext_underscores=no
10320 else
10321   gcc_cv_mcontext_underscores=yes
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10326 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10327       if test $gcc_cv_mcontext_underscores = yes; then
10328
10329 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10330
10331       fi
10332     ;;
10333 esac
10334
10335 # ---------
10336 # Threading
10337 # ---------
10338
10339 # Check if a valid thread package
10340 case ${enable_threads} in
10341   "" | no)
10342     # No threads
10343     target_thread_file='single'
10344     ;;
10345   yes)
10346     # default
10347     target_thread_file='single'
10348     ;;
10349   aix | dce | gnat | irix | posix | posix95 | rtems | \
10350   single | solaris | vxworks | win32 | mipssde)
10351     target_thread_file=${enable_threads}
10352     ;;
10353   *)
10354     echo "${enable_threads} is an unknown thread package" 1>&2
10355     exit 1
10356     ;;
10357 esac
10358
10359 if test x${thread_file} = x; then
10360   # No thread file set by target-specific clauses in config.gcc,
10361   # so use file chosen by default logic above
10362   thread_file=${target_thread_file}
10363 fi
10364
10365 # Make gthr-default.h if we have a thread file.
10366 gthread_flags=
10367 if test $thread_file != single; then
10368   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10369   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10370     rm -f gthr-default.h-t
10371   else
10372     mv -f gthr-default.h-t gthr-default.h
10373   fi
10374   gthread_flags=-DHAVE_GTHR_DEFAULT
10375 fi
10376
10377
10378 # --------
10379 # UNSORTED
10380 # --------
10381
10382 use_cxa_atexit=no
10383 if test x$enable___cxa_atexit = xyes || \
10384    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10385   if test x$host = x$target; then
10386     case $host in
10387       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10388       # keyed to flag_use_cxa_atexit
10389       *-*-mingw32*)
10390         use_cxa_atexit=yes
10391         ;;
10392       *)
10393         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10394 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10395   use_cxa_atexit=yes
10396 else
10397   echo "__cxa_atexit can't be enabled on this target"
10398 fi
10399
10400         ;;
10401     esac
10402   else
10403     # We can't check for __cxa_atexit when building a cross, so assume
10404     # it is available
10405     use_cxa_atexit=yes
10406   fi
10407   if test x$use_cxa_atexit = xyes; then
10408
10409 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10410
10411   fi
10412 fi
10413
10414 # Look for a file containing extra machine modes.
10415 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10416   extra_modes_file='$(srcdir)'/config/${extra_modes}
10417
10418
10419 cat >>confdefs.h <<_ACEOF
10420 #define EXTRA_MODES_FILE "config/$extra_modes"
10421 _ACEOF
10422
10423 fi
10424
10425 # Convert extra_options into a form suitable for Makefile use.
10426 extra_opt_files=
10427 for f in $extra_options; do
10428   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10429 done
10430
10431
10432 # auto-host.h is the file containing items generated by autoconf and is
10433 # the first file included by config.h.
10434 # If host=build, it is correct to have bconfig include auto-host.h
10435 # as well.  If host!=build, we are in error and need to do more
10436 # work to find out the build config parameters.
10437 if test x$host = x$build
10438 then
10439         build_auto=auto-host.h
10440 else
10441         # We create a subdir, then run autoconf in the subdir.
10442         # To prevent recursion we set host and build for the new
10443         # invocation of configure to the build for this invocation
10444         # of configure.
10445         tempdir=build.$$
10446         rm -rf $tempdir
10447         mkdir $tempdir
10448         cd $tempdir
10449         case ${srcdir} in
10450         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10451         *) realsrcdir=../${srcdir};;
10452         esac
10453         saved_CFLAGS="${CFLAGS}"
10454         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10455         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10456         ${realsrcdir}/configure \
10457                 --enable-languages=${enable_languages-all} \
10458                 --target=$target_alias --host=$build_alias --build=$build_alias
10459         CFLAGS="${saved_CFLAGS}"
10460
10461         # We just finished tests for the build machine, so rename
10462         # the file auto-build.h in the gcc directory.
10463         mv auto-host.h ../auto-build.h
10464         cd ..
10465         rm -rf $tempdir
10466         build_auto=auto-build.h
10467 fi
10468
10469
10470 tm_file="${tm_file} defaults.h"
10471 tm_p_file="${tm_p_file} tm-preds.h"
10472 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10473 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10474 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10475 # put this back in temporarily.
10476 xm_file="auto-host.h ansidecl.h ${xm_file}"
10477
10478 # --------
10479 # UNSORTED
10480 # --------
10481
10482 # Compile in configure arguments.
10483 if test -f configargs.h ; then
10484         # Being re-configured.
10485         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10486         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10487 else
10488         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10489 fi
10490
10491 # Double all backslashes and backslash all quotes to turn
10492 # gcc_config_arguments into a C string.
10493 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10494 $gcc_config_arguments
10495 EOF
10496 gcc_config_arguments_str=`cat conftest.out`
10497 rm -f conftest.out
10498
10499 cat > configargs.h <<EOF
10500 /* Generated automatically. */
10501 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10502 static const char thread_model[] = "$thread_file";
10503
10504 static const struct {
10505   const char *name, *value;
10506 } configure_default_options[] = $configure_default_options;
10507 EOF
10508
10509 gcc_BASEVER=`cat $srcdir/BASE-VER`
10510 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10511 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10512 if test -f $srcdir/REVISION ; then
10513         gcc_REVISION=`cat $srcdir/REVISION`
10514 else
10515         gcc_REVISION=""
10516 fi
10517 cat > plugin-version.h <<EOF
10518 #include "configargs.h"
10519
10520 static char basever[] = "$gcc_BASEVER";
10521 static char datestamp[] = "$gcc_DATESTAMP";
10522 static char devphase[] = "$gcc_DEVPHASE";
10523 static char revision[] = "$gcc_REVISION";
10524
10525 /* FIXME plugins: We should make the version information more precise.
10526    One way to do is to add a checksum. */
10527
10528 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10529                                                 devphase, revision,
10530                                                 configuration_arguments};
10531 EOF
10532
10533 # Internationalization
10534 # If we haven't got the data from the intl directory,
10535 # assume NLS is disabled.
10536 USE_NLS=no
10537 LIBINTL=
10538 LIBINTL_DEP=
10539 INCINTL=
10540 XGETTEXT=
10541 GMSGFMT=
10542 POSUB=
10543
10544 if test -f  ../intl/config.intl; then
10545   .  ../intl/config.intl
10546 fi
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10548 $as_echo_n "checking whether NLS is requested... " >&6; }
10549 if test x"$USE_NLS" != xyes; then
10550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10552 else
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10554 $as_echo "yes" >&6; }
10555
10556 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10557
10558
10559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10560 $as_echo_n "checking for catalogs to be installed... " >&6; }
10561   # Look for .po and .gmo files in the source directory.
10562   CATALOGS=
10563   XLINGUAS=
10564   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10565     # If there aren't any .gmo files the shell will give us the
10566     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10567     # weeded out.
10568     case "$cat" in *\**)
10569       continue;;
10570     esac
10571     # The quadruple backslash is collapsed to a double backslash
10572     # by the backticks, then collapsed again by the double quotes,
10573     # leaving us with one backslash in the sed expression (right
10574     # before the dot that mustn't act as a wildcard).
10575     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10576     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10577     # The user is allowed to set LINGUAS to a list of languages to
10578     # install catalogs for.  If it's empty that means "all of them."
10579     if test "x$LINGUAS" = x; then
10580       CATALOGS="$CATALOGS $cat"
10581       XLINGUAS="$XLINGUAS $lang"
10582     else
10583       case "$LINGUAS" in *$lang*)
10584         CATALOGS="$CATALOGS $cat"
10585         XLINGUAS="$XLINGUAS $lang"
10586         ;;
10587       esac
10588     fi
10589   done
10590   LINGUAS="$XLINGUAS"
10591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10592 $as_echo "$LINGUAS" >&6; }
10593
10594
10595     DATADIRNAME=share
10596
10597   INSTOBJEXT=.mo
10598
10599   GENCAT=gencat
10600
10601   CATOBJEXT=.gmo
10602
10603 fi
10604
10605 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10606 # -liconv on the link line twice.
10607 case "$LIBINTL" in *$LIBICONV*)
10608         LIBICONV= ;;
10609 esac
10610
10611 # Check whether --enable-secureplt was given.
10612 if test "${enable_secureplt+set}" = set; then :
10613   enableval=$enable_secureplt;
10614 fi
10615
10616
10617 # Check whether --enable-cld was given.
10618 if test "${enable_cld+set}" = set; then :
10619   enableval=$enable_cld;
10620 else
10621   enable_cld=no
10622 fi
10623
10624
10625 # Windows32 Registry support for specifying GCC installation paths.
10626 # Check whether --enable-win32-registry was given.
10627 if test "${enable_win32_registry+set}" = set; then :
10628   enableval=$enable_win32_registry;
10629 fi
10630
10631
10632 case $host_os in
10633   win32 | pe | cygwin* | mingw32* | uwin*)
10634     if test "x$enable_win32_registry" != xno; then
10635       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10636 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10637 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10638   $as_echo_n "(cached) " >&6
10639 else
10640   ac_func_search_save_LIBS=$LIBS
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h.  */
10643
10644 /* Override any GCC internal prototype to avoid an error.
10645    Use char because int might match the return type of a GCC
10646    builtin and then its argument prototype would still apply.  */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 char RegOpenKeyExA ();
10651 int
10652 main ()
10653 {
10654 return RegOpenKeyExA ();
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 for ac_lib in '' advapi32; do
10660   if test -z "$ac_lib"; then
10661     ac_res="none required"
10662   else
10663     ac_res=-l$ac_lib
10664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10665   fi
10666   if ac_fn_c_try_link "$LINENO"; then :
10667   ac_cv_search_RegOpenKeyExA=$ac_res
10668 fi
10669 rm -f core conftest.err conftest.$ac_objext \
10670     conftest$ac_exeext
10671   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10672   break
10673 fi
10674 done
10675 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10676
10677 else
10678   ac_cv_search_RegOpenKeyExA=no
10679 fi
10680 rm conftest.$ac_ext
10681 LIBS=$ac_func_search_save_LIBS
10682 fi
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10684 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10685 ac_res=$ac_cv_search_RegOpenKeyExA
10686 if test "$ac_res" != no; then :
10687   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10688
10689 else
10690   enable_win32_registry=no
10691 fi
10692
10693     fi
10694
10695     if test "x$enable_win32_registry" != xno; then
10696
10697 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10698
10699
10700       if test "x$enable_win32_registry" != xyes \
10701          && test "x$enable_win32_registry" != x; then
10702
10703 cat >>confdefs.h <<_ACEOF
10704 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10705 _ACEOF
10706
10707       fi
10708     fi
10709   ;;
10710 esac
10711
10712 # Get an absolute path to the GCC top-level source directory
10713 holddir=`${PWDCMD-pwd}`
10714 cd $srcdir
10715 topdir=`${PWDCMD-pwd}`
10716 cd $holddir
10717
10718 # Conditionalize the makefile for this host machine.
10719 xmake_file=
10720 for f in ${host_xmake_file}
10721 do
10722         if test -f ${srcdir}/config/$f
10723         then
10724                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10725         fi
10726 done
10727
10728 # Conditionalize the makefile for this target machine.
10729 tmake_file_=
10730 for f in ${tmake_file}
10731 do
10732         if test -f ${srcdir}/config/$f
10733         then
10734                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10735         fi
10736 done
10737 tmake_file="${tmake_file_}"
10738
10739 out_object_file=`basename $out_file .c`.o
10740
10741 tm_file_list="options.h"
10742 tm_include_list="options.h"
10743 for f in $tm_file; do
10744   case $f in
10745     ./* )
10746        f=`echo $f | sed 's/^..//'`
10747        tm_file_list="${tm_file_list} $f"
10748        tm_include_list="${tm_include_list} $f"
10749        ;;
10750     defaults.h )
10751        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10752        tm_include_list="${tm_include_list} $f"
10753        ;;
10754     * )
10755        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10756        tm_include_list="${tm_include_list} config/$f"
10757        ;;
10758   esac
10759 done
10760
10761 tm_p_file_list=
10762 tm_p_include_list=
10763 for f in $tm_p_file; do
10764   case $f in
10765     tm-preds.h )
10766        tm_p_file_list="${tm_p_file_list} $f"
10767        tm_p_include_list="${tm_p_include_list} $f"
10768        ;;
10769     * )
10770        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10771        tm_p_include_list="${tm_p_include_list} config/$f"
10772   esac
10773 done
10774
10775 xm_file_list=
10776 xm_include_list=
10777 for f in $xm_file; do
10778   case $f in
10779     ansidecl.h )
10780        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10781        xm_include_list="${xm_include_list} $f"
10782        ;;
10783     auto-host.h )
10784        xm_file_list="${xm_file_list} $f"
10785        xm_include_list="${xm_include_list} $f"
10786        ;;
10787     * )
10788        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10789        xm_include_list="${xm_include_list} config/$f"
10790        ;;
10791   esac
10792 done
10793
10794 host_xm_file_list=
10795 host_xm_include_list=
10796 for f in $host_xm_file; do
10797   case $f in
10798     ansidecl.h )
10799        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10800        host_xm_include_list="${host_xm_include_list} $f"
10801        ;;
10802     auto-host.h )
10803        host_xm_file_list="${host_xm_file_list} $f"
10804        host_xm_include_list="${host_xm_include_list} $f"
10805        ;;
10806     * )
10807        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10808        host_xm_include_list="${host_xm_include_list} config/$f"
10809        ;;
10810   esac
10811 done
10812
10813 build_xm_file_list=
10814 for f in $build_xm_file; do
10815   case $f in
10816     ansidecl.h )
10817        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10818        build_xm_include_list="${build_xm_include_list} $f"
10819        ;;
10820     auto-build.h | auto-host.h )
10821        build_xm_file_list="${build_xm_file_list} $f"
10822        build_xm_include_list="${build_xm_include_list} $f"
10823        ;;
10824     * )
10825        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10826        build_xm_include_list="${build_xm_include_list} config/$f"
10827        ;;
10828   esac
10829 done
10830
10831 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10832 # cross-compiler which does not use the native headers and libraries.
10833 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10834 CROSS=
10835 ALL=all.internal
10836 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10837
10838 if test "x$with_build_sysroot" != x; then
10839   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10840 else
10841   # This value is used, even on a native system, because
10842   # CROSS_SYSTEM_HEADER_DIR is just
10843   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10844   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10845 fi
10846
10847 if test x$host != x$target
10848 then
10849         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10850         ALL=all.cross
10851         SYSTEM_HEADER_DIR=$build_system_header_dir
10852         case "$host","$target" in
10853         # Darwin crosses can use the host system's libraries and headers,
10854         # because of the fat library support.  Of course, it must be the
10855         # same version of Darwin on both sides.  Allow the user to
10856         # just say --target=foo-darwin without a version number to mean
10857         # "the version on this system".
10858             *-*-darwin*,*-*-darwin*)
10859                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10860                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10861                 if test $hostos = $targetos -o $targetos = darwin ; then
10862                     CROSS=
10863                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10864                     with_headers=yes
10865                 fi
10866                 ;;
10867
10868             i?86-*-*,x86_64-*-* \
10869             | powerpc*-*-*,powerpc64*-*-*)
10870                 CROSS="$CROSS -DNATIVE_CROSS" ;;
10871         esac
10872 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10873         SYSTEM_HEADER_DIR=$build_system_header_dir
10874 fi
10875
10876 # If this is a cross-compiler that does not
10877 # have its own set of headers then define
10878 # inhibit_libc
10879
10880 # If this is using newlib, without having the headers available now,
10881 # then define inhibit_libc in LIBGCC2_CFLAGS.
10882 # This prevents libgcc2 from containing any code which requires libc
10883 # support.
10884 : ${inhibit_libc=false}
10885 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10886        test x$with_newlib = xyes ; } &&
10887      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10888        inhibit_libc=true
10889 fi
10890
10891
10892 # When building gcc with a cross-compiler, we need to adjust things so
10893 # that the generator programs are still built with the native compiler.
10894 # Also, we cannot run fixincludes.
10895
10896 # These are the normal (build=host) settings:
10897 CC_FOR_BUILD='$(CC)'
10898 BUILD_CFLAGS='$(ALL_CFLAGS)'
10899 BUILD_LDFLAGS='$(LDFLAGS)'
10900 STMP_FIXINC=stmp-fixinc
10901
10902 # And these apply if build != host, or we are generating coverage data
10903 if test x$build != x$host || test "x$coverage_flags" != x
10904 then
10905     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10906     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10907 fi
10908
10909 # Expand extra_headers to include complete path.
10910 # This substitutes for lots of t-* files.
10911 extra_headers_list=
10912 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10913 for file in ${extra_headers} ; do
10914   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10915 done
10916
10917 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10918 if test x"$use_gcc_tgmath" = xyes
10919 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10920 fi
10921
10922 # Define collect2 in Makefile.
10923 case $host_can_use_collect2 in
10924   no) collect2= ;;
10925   *) collect2='collect2$(exeext)' ;;
10926 esac
10927
10928
10929 # Add a definition of USE_COLLECT2 if system wants one.
10930 case $use_collect2 in
10931   no) use_collect2= ;;
10932   "") ;;
10933   *)
10934     host_xm_defines="${host_xm_defines} USE_COLLECT2"
10935     xm_defines="${xm_defines} USE_COLLECT2"
10936     case $host_can_use_collect2 in
10937       no)
10938         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
10939         ;;
10940     esac
10941     ;;
10942 esac
10943
10944 # ---------------------------
10945 # Assembler & linker features
10946 # ---------------------------
10947
10948 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
10949 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
10950 # However when ld-new is first executed from the build tree, libtool will
10951 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
10952 # to the build tree.  While doing this we need to use the previous-stage
10953 # linker, or we have an infinite loop.  The presence of a shell script as
10954 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
10955 # the gcc/collect-ld script.  So we need to know how libtool works, or
10956 # exec-tool will fail.
10957
10958
10959 case `pwd` in
10960   *\ * | *\     *)
10961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10962 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10963 esac
10964
10965
10966
10967 macro_version='2.2.7a'
10968 macro_revision='1.3134'
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982 ltmain="$ac_aux_dir/ltmain.sh"
10983
10984 # Backslashify metacharacters that are still active within
10985 # double-quoted strings.
10986 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10987
10988 # Same as above, but do not quote variable references.
10989 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10990
10991 # Sed substitution to delay expansion of an escaped shell variable in a
10992 # double_quote_subst'ed string.
10993 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10994
10995 # Sed substitution to delay expansion of an escaped single quote.
10996 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10997
10998 # Sed substitution to avoid accidental globbing in evaled expressions
10999 no_glob_subst='s/\*/\\\*/g'
11000
11001 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11002 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11003 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11004
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11006 $as_echo_n "checking how to print strings... " >&6; }
11007 # Test print first, because it will be a builtin if present.
11008 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11009    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11010   ECHO='print -r --'
11011 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11012   ECHO='printf %s\n'
11013 else
11014   # Use this function as a fallback that always works.
11015   func_fallback_echo ()
11016   {
11017     eval 'cat <<_LTECHO_EOF
11018 $1
11019 _LTECHO_EOF'
11020   }
11021   ECHO='func_fallback_echo'
11022 fi
11023
11024 # func_echo_all arg...
11025 # Invoke $ECHO with all args, space-separated.
11026 func_echo_all ()
11027 {
11028     $ECHO ""
11029 }
11030
11031 case "$ECHO" in
11032   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11033 $as_echo "printf" >&6; } ;;
11034   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11035 $as_echo "print -r" >&6; } ;;
11036   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11037 $as_echo "cat" >&6; } ;;
11038 esac
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11054 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11055 if test "${ac_cv_path_SED+set}" = set; then :
11056   $as_echo_n "(cached) " >&6
11057 else
11058             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11059      for ac_i in 1 2 3 4 5 6 7; do
11060        ac_script="$ac_script$as_nl$ac_script"
11061      done
11062      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11063      { ac_script=; unset ac_script;}
11064      if test -z "$SED"; then
11065   ac_path_SED_found=false
11066   # Loop through the user's path and test for each of PROGNAME-LIST
11067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $PATH
11069 do
11070   IFS=$as_save_IFS
11071   test -z "$as_dir" && as_dir=.
11072     for ac_prog in sed gsed; do
11073     for ac_exec_ext in '' $ac_executable_extensions; do
11074       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11075       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11076 # Check for GNU ac_path_SED and select it if it is found.
11077   # Check for GNU $ac_path_SED
11078 case `"$ac_path_SED" --version 2>&1` in
11079 *GNU*)
11080   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11081 *)
11082   ac_count=0
11083   $as_echo_n 0123456789 >"conftest.in"
11084   while :
11085   do
11086     cat "conftest.in" "conftest.in" >"conftest.tmp"
11087     mv "conftest.tmp" "conftest.in"
11088     cp "conftest.in" "conftest.nl"
11089     $as_echo '' >> "conftest.nl"
11090     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11091     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11092     as_fn_arith $ac_count + 1 && ac_count=$as_val
11093     if test $ac_count -gt ${ac_path_SED_max-0}; then
11094       # Best one so far, save it but keep looking for a better one
11095       ac_cv_path_SED="$ac_path_SED"
11096       ac_path_SED_max=$ac_count
11097     fi
11098     # 10*(2^10) chars as input seems more than enough
11099     test $ac_count -gt 10 && break
11100   done
11101   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11102 esac
11103
11104       $ac_path_SED_found && break 3
11105     done
11106   done
11107   done
11108 IFS=$as_save_IFS
11109   if test -z "$ac_cv_path_SED"; then
11110     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11111   fi
11112 else
11113   ac_cv_path_SED=$SED
11114 fi
11115
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11118 $as_echo "$ac_cv_path_SED" >&6; }
11119  SED="$ac_cv_path_SED"
11120   rm -f conftest.sed
11121
11122 test -z "$SED" && SED=sed
11123 Xsed="$SED -e 1s/^X//"
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11136 $as_echo_n "checking for fgrep... " >&6; }
11137 if test "${ac_cv_path_FGREP+set}" = set; then :
11138   $as_echo_n "(cached) " >&6
11139 else
11140   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11141    then ac_cv_path_FGREP="$GREP -F"
11142    else
11143      if test -z "$FGREP"; then
11144   ac_path_FGREP_found=false
11145   # Loop through the user's path and test for each of PROGNAME-LIST
11146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11148 do
11149   IFS=$as_save_IFS
11150   test -z "$as_dir" && as_dir=.
11151     for ac_prog in fgrep; do
11152     for ac_exec_ext in '' $ac_executable_extensions; do
11153       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11154       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11155 # Check for GNU ac_path_FGREP and select it if it is found.
11156   # Check for GNU $ac_path_FGREP
11157 case `"$ac_path_FGREP" --version 2>&1` in
11158 *GNU*)
11159   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11160 *)
11161   ac_count=0
11162   $as_echo_n 0123456789 >"conftest.in"
11163   while :
11164   do
11165     cat "conftest.in" "conftest.in" >"conftest.tmp"
11166     mv "conftest.tmp" "conftest.in"
11167     cp "conftest.in" "conftest.nl"
11168     $as_echo 'FGREP' >> "conftest.nl"
11169     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11170     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11171     as_fn_arith $ac_count + 1 && ac_count=$as_val
11172     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11173       # Best one so far, save it but keep looking for a better one
11174       ac_cv_path_FGREP="$ac_path_FGREP"
11175       ac_path_FGREP_max=$ac_count
11176     fi
11177     # 10*(2^10) chars as input seems more than enough
11178     test $ac_count -gt 10 && break
11179   done
11180   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11181 esac
11182
11183       $ac_path_FGREP_found && break 3
11184     done
11185   done
11186   done
11187 IFS=$as_save_IFS
11188   if test -z "$ac_cv_path_FGREP"; then
11189     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11190   fi
11191 else
11192   ac_cv_path_FGREP=$FGREP
11193 fi
11194
11195    fi
11196 fi
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11198 $as_echo "$ac_cv_path_FGREP" >&6; }
11199  FGREP="$ac_cv_path_FGREP"
11200
11201
11202 test -z "$GREP" && GREP=grep
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222 # Check whether --with-gnu-ld was given.
11223 if test "${with_gnu_ld+set}" = set; then :
11224   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11225 else
11226   with_gnu_ld=no
11227 fi
11228
11229 ac_prog=ld
11230 if test "$GCC" = yes; then
11231   # Check if gcc -print-prog-name=ld gives a path.
11232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11233 $as_echo_n "checking for ld used by $CC... " >&6; }
11234   case $host in
11235   *-*-mingw*)
11236     # gcc leaves a trailing carriage return which upsets mingw
11237     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11238   *)
11239     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11240   esac
11241   case $ac_prog in
11242     # Accept absolute paths.
11243     [\\/]* | ?:[\\/]*)
11244       re_direlt='/[^/][^/]*/\.\./'
11245       # Canonicalize the pathname of ld
11246       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11247       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11248         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11249       done
11250       test -z "$LD" && LD="$ac_prog"
11251       ;;
11252   "")
11253     # If it fails, then pretend we aren't using GCC.
11254     ac_prog=ld
11255     ;;
11256   *)
11257     # If it is relative, then search for the first ld in PATH.
11258     with_gnu_ld=unknown
11259     ;;
11260   esac
11261 elif test "$with_gnu_ld" = yes; then
11262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11263 $as_echo_n "checking for GNU ld... " >&6; }
11264 else
11265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11266 $as_echo_n "checking for non-GNU ld... " >&6; }
11267 fi
11268 if test "${lt_cv_path_LD+set}" = set; then :
11269   $as_echo_n "(cached) " >&6
11270 else
11271   if test -z "$LD"; then
11272   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11273   for ac_dir in $PATH; do
11274     IFS="$lt_save_ifs"
11275     test -z "$ac_dir" && ac_dir=.
11276     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11277       lt_cv_path_LD="$ac_dir/$ac_prog"
11278       # Check to see if the program is GNU ld.  I'd rather use --version,
11279       # but apparently some variants of GNU ld only accept -v.
11280       # Break only if it was the GNU/non-GNU ld that we prefer.
11281       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11282       *GNU* | *'with BFD'*)
11283         test "$with_gnu_ld" != no && break
11284         ;;
11285       *)
11286         test "$with_gnu_ld" != yes && break
11287         ;;
11288       esac
11289     fi
11290   done
11291   IFS="$lt_save_ifs"
11292 else
11293   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11294 fi
11295 fi
11296
11297 LD="$lt_cv_path_LD"
11298 if test -n "$LD"; then
11299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11300 $as_echo "$LD" >&6; }
11301 else
11302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11304 fi
11305 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11307 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11308 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11309   $as_echo_n "(cached) " >&6
11310 else
11311   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11312 case `$LD -v 2>&1 </dev/null` in
11313 *GNU* | *'with BFD'*)
11314   lt_cv_prog_gnu_ld=yes
11315   ;;
11316 *)
11317   lt_cv_prog_gnu_ld=no
11318   ;;
11319 esac
11320 fi
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11322 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11323 with_gnu_ld=$lt_cv_prog_gnu_ld
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11334 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11335 if test "${lt_cv_path_NM+set}" = set; then :
11336   $as_echo_n "(cached) " >&6
11337 else
11338   if test -n "$NM"; then
11339   # Let the user override the test.
11340   lt_cv_path_NM="$NM"
11341 else
11342   lt_nm_to_check="${ac_tool_prefix}nm"
11343   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11344     lt_nm_to_check="$lt_nm_to_check nm"
11345   fi
11346   for lt_tmp_nm in $lt_nm_to_check; do
11347     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11348     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11349       IFS="$lt_save_ifs"
11350       test -z "$ac_dir" && ac_dir=.
11351       tmp_nm="$ac_dir/$lt_tmp_nm"
11352       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11353         # Check to see if the nm accepts a BSD-compat flag.
11354         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11355         #   nm: unknown option "B" ignored
11356         # Tru64's nm complains that /dev/null is an invalid object file
11357         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11358         */dev/null* | *'Invalid file or object type'*)
11359           lt_cv_path_NM="$tmp_nm -B"
11360           break
11361           ;;
11362         *)
11363           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11364           */dev/null*)
11365             lt_cv_path_NM="$tmp_nm -p"
11366             break
11367             ;;
11368           *)
11369             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11370             continue # so that we can try to find one that supports BSD flags
11371             ;;
11372           esac
11373           ;;
11374         esac
11375       fi
11376     done
11377     IFS="$lt_save_ifs"
11378   done
11379   : ${lt_cv_path_NM=no}
11380 fi
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11383 $as_echo "$lt_cv_path_NM" >&6; }
11384 if test "$lt_cv_path_NM" != "no"; then
11385   NM="$lt_cv_path_NM"
11386 else
11387   # Didn't find any BSD compatible name lister, look for dumpbin.
11388   if test -n "$DUMPBIN"; then :
11389     # Let the user override the test.
11390   else
11391     if test -n "$ac_tool_prefix"; then
11392   for ac_prog in dumpbin "link -dump"
11393   do
11394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11399   $as_echo_n "(cached) " >&6
11400 else
11401   if test -n "$DUMPBIN"; then
11402   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407   IFS=$as_save_IFS
11408   test -z "$as_dir" && as_dir=.
11409     for ac_exec_ext in '' $ac_executable_extensions; do
11410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413     break 2
11414   fi
11415 done
11416   done
11417 IFS=$as_save_IFS
11418
11419 fi
11420 fi
11421 DUMPBIN=$ac_cv_prog_DUMPBIN
11422 if test -n "$DUMPBIN"; then
11423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11424 $as_echo "$DUMPBIN" >&6; }
11425 else
11426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428 fi
11429
11430
11431     test -n "$DUMPBIN" && break
11432   done
11433 fi
11434 if test -z "$DUMPBIN"; then
11435   ac_ct_DUMPBIN=$DUMPBIN
11436   for ac_prog in dumpbin "link -dump"
11437 do
11438   # Extract the first word of "$ac_prog", so it can be a program name with args.
11439 set dummy $ac_prog; ac_word=$2
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441 $as_echo_n "checking for $ac_word... " >&6; }
11442 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11443   $as_echo_n "(cached) " >&6
11444 else
11445   if test -n "$ac_ct_DUMPBIN"; then
11446   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11447 else
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11450 do
11451   IFS=$as_save_IFS
11452   test -z "$as_dir" && as_dir=.
11453     for ac_exec_ext in '' $ac_executable_extensions; do
11454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457     break 2
11458   fi
11459 done
11460   done
11461 IFS=$as_save_IFS
11462
11463 fi
11464 fi
11465 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11466 if test -n "$ac_ct_DUMPBIN"; then
11467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11468 $as_echo "$ac_ct_DUMPBIN" >&6; }
11469 else
11470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11472 fi
11473
11474
11475   test -n "$ac_ct_DUMPBIN" && break
11476 done
11477
11478   if test "x$ac_ct_DUMPBIN" = x; then
11479     DUMPBIN=":"
11480   else
11481     case $cross_compiling:$ac_tool_warned in
11482 yes:)
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11485 ac_tool_warned=yes ;;
11486 esac
11487     DUMPBIN=$ac_ct_DUMPBIN
11488   fi
11489 fi
11490
11491     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11492     *COFF*)
11493       DUMPBIN="$DUMPBIN -symbols"
11494       ;;
11495     *)
11496       DUMPBIN=:
11497       ;;
11498     esac
11499   fi
11500
11501   if test "$DUMPBIN" != ":"; then
11502     NM="$DUMPBIN"
11503   fi
11504 fi
11505 test -z "$NM" && NM=nm
11506
11507
11508
11509
11510
11511
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11513 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11514 if test "${lt_cv_nm_interface+set}" = set; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   lt_cv_nm_interface="BSD nm"
11518   echo "int some_variable = 0;" > conftest.$ac_ext
11519   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11520   (eval "$ac_compile" 2>conftest.err)
11521   cat conftest.err >&5
11522   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11523   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11524   cat conftest.err >&5
11525   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11526   cat conftest.out >&5
11527   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11528     lt_cv_nm_interface="MS dumpbin"
11529   fi
11530   rm -f conftest*
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11533 $as_echo "$lt_cv_nm_interface" >&6; }
11534
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11536 $as_echo_n "checking whether ln -s works... " >&6; }
11537 LN_S=$as_ln_s
11538 if test "$LN_S" = "ln -s"; then
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11540 $as_echo "yes" >&6; }
11541 else
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11543 $as_echo "no, using $LN_S" >&6; }
11544 fi
11545
11546 # find the maximum length of command line arguments
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11548 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11549 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11550   $as_echo_n "(cached) " >&6
11551 else
11552     i=0
11553   teststring="ABCD"
11554
11555   case $build_os in
11556   msdosdjgpp*)
11557     # On DJGPP, this test can blow up pretty badly due to problems in libc
11558     # (any single argument exceeding 2000 bytes causes a buffer overrun
11559     # during glob expansion).  Even if it were fixed, the result of this
11560     # check would be larger than it should be.
11561     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11562     ;;
11563
11564   gnu*)
11565     # Under GNU Hurd, this test is not required because there is
11566     # no limit to the length of command line arguments.
11567     # Libtool will interpret -1 as no limit whatsoever
11568     lt_cv_sys_max_cmd_len=-1;
11569     ;;
11570
11571   cygwin* | mingw* | cegcc*)
11572     # On Win9x/ME, this test blows up -- it succeeds, but takes
11573     # about 5 minutes as the teststring grows exponentially.
11574     # Worse, since 9x/ME are not pre-emptively multitasking,
11575     # you end up with a "frozen" computer, even though with patience
11576     # the test eventually succeeds (with a max line length of 256k).
11577     # Instead, let's just punt: use the minimum linelength reported by
11578     # all of the supported platforms: 8192 (on NT/2K/XP).
11579     lt_cv_sys_max_cmd_len=8192;
11580     ;;
11581
11582   mint*)
11583     # On MiNT this can take a long time and run out of memory.
11584     lt_cv_sys_max_cmd_len=8192;
11585     ;;
11586
11587   amigaos*)
11588     # On AmigaOS with pdksh, this test takes hours, literally.
11589     # So we just punt and use a minimum line length of 8192.
11590     lt_cv_sys_max_cmd_len=8192;
11591     ;;
11592
11593   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11594     # This has been around since 386BSD, at least.  Likely further.
11595     if test -x /sbin/sysctl; then
11596       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11597     elif test -x /usr/sbin/sysctl; then
11598       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11599     else
11600       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11601     fi
11602     # And add a safety zone
11603     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11604     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11605     ;;
11606
11607   interix*)
11608     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11609     lt_cv_sys_max_cmd_len=196608
11610     ;;
11611
11612   osf*)
11613     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11614     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11615     # nice to cause kernel panics so lets avoid the loop below.
11616     # First set a reasonable default.
11617     lt_cv_sys_max_cmd_len=16384
11618     #
11619     if test -x /sbin/sysconfig; then
11620       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11621         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11622       esac
11623     fi
11624     ;;
11625   sco3.2v5*)
11626     lt_cv_sys_max_cmd_len=102400
11627     ;;
11628   sysv5* | sco5v6* | sysv4.2uw2*)
11629     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11630     if test -n "$kargmax"; then
11631       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11632     else
11633       lt_cv_sys_max_cmd_len=32768
11634     fi
11635     ;;
11636   *)
11637     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11638     if test -n "$lt_cv_sys_max_cmd_len"; then
11639       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11640       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11641     else
11642       # Make teststring a little bigger before we do anything with it.
11643       # a 1K string should be a reasonable start.
11644       for i in 1 2 3 4 5 6 7 8 ; do
11645         teststring=$teststring$teststring
11646       done
11647       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11648       # If test is not a shell built-in, we'll probably end up computing a
11649       # maximum length that is only half of the actual maximum length, but
11650       # we can't tell.
11651       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11652                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11653               test $i != 17 # 1/2 MB should be enough
11654       do
11655         i=`expr $i + 1`
11656         teststring=$teststring$teststring
11657       done
11658       # Only check the string length outside the loop.
11659       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11660       teststring=
11661       # Add a significant safety factor because C++ compilers can tack on
11662       # massive amounts of additional arguments before passing them to the
11663       # linker.  It appears as though 1/2 is a usable value.
11664       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11665     fi
11666     ;;
11667   esac
11668
11669 fi
11670
11671 if test -n $lt_cv_sys_max_cmd_len ; then
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11673 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11674 else
11675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11676 $as_echo "none" >&6; }
11677 fi
11678 max_cmd_len=$lt_cv_sys_max_cmd_len
11679
11680
11681
11682
11683
11684
11685 : ${CP="cp -f"}
11686 : ${MV="mv -f"}
11687 : ${RM="rm -f"}
11688
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11690 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11691 # Try some XSI features
11692 xsi_shell=no
11693 ( _lt_dummy="a/b/c"
11694   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11695       = c,a/b,, \
11696     && eval 'test $(( 1 + 1 )) -eq 2 \
11697     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11698   && xsi_shell=yes
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11700 $as_echo "$xsi_shell" >&6; }
11701
11702
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11704 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11705 lt_shell_append=no
11706 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11707     >/dev/null 2>&1 \
11708   && lt_shell_append=yes
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11710 $as_echo "$lt_shell_append" >&6; }
11711
11712
11713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11714   lt_unset=unset
11715 else
11716   lt_unset=false
11717 fi
11718
11719
11720
11721
11722
11723 # test EBCDIC or ASCII
11724 case `echo X|tr X '\101'` in
11725  A) # ASCII based system
11726     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11727   lt_SP2NL='tr \040 \012'
11728   lt_NL2SP='tr \015\012 \040\040'
11729   ;;
11730  *) # EBCDIC based system
11731   lt_SP2NL='tr \100 \n'
11732   lt_NL2SP='tr \r\n \100\100'
11733   ;;
11734 esac
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11745 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11746 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11747   $as_echo_n "(cached) " >&6
11748 else
11749   lt_cv_ld_reload_flag='-r'
11750 fi
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11752 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11753 reload_flag=$lt_cv_ld_reload_flag
11754 case $reload_flag in
11755 "" | " "*) ;;
11756 *) reload_flag=" $reload_flag" ;;
11757 esac
11758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11759 case $host_os in
11760   darwin*)
11761     if test "$GCC" = yes; then
11762       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11763     else
11764       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11765     fi
11766     ;;
11767 esac
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777 if test -n "$ac_tool_prefix"; then
11778   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11779 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11783   $as_echo_n "(cached) " >&6
11784 else
11785   if test -n "$OBJDUMP"; then
11786   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11787 else
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791   IFS=$as_save_IFS
11792   test -z "$as_dir" && as_dir=.
11793     for ac_exec_ext in '' $ac_executable_extensions; do
11794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797     break 2
11798   fi
11799 done
11800   done
11801 IFS=$as_save_IFS
11802
11803 fi
11804 fi
11805 OBJDUMP=$ac_cv_prog_OBJDUMP
11806 if test -n "$OBJDUMP"; then
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11808 $as_echo "$OBJDUMP" >&6; }
11809 else
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11812 fi
11813
11814
11815 fi
11816 if test -z "$ac_cv_prog_OBJDUMP"; then
11817   ac_ct_OBJDUMP=$OBJDUMP
11818   # Extract the first word of "objdump", so it can be a program name with args.
11819 set dummy objdump; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   if test -n "$ac_ct_OBJDUMP"; then
11826   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11827 else
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831   IFS=$as_save_IFS
11832   test -z "$as_dir" && as_dir=.
11833     for ac_exec_ext in '' $ac_executable_extensions; do
11834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11835     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837     break 2
11838   fi
11839 done
11840   done
11841 IFS=$as_save_IFS
11842
11843 fi
11844 fi
11845 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11846 if test -n "$ac_ct_OBJDUMP"; then
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11848 $as_echo "$ac_ct_OBJDUMP" >&6; }
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853
11854   if test "x$ac_ct_OBJDUMP" = x; then
11855     OBJDUMP="false"
11856   else
11857     case $cross_compiling:$ac_tool_warned in
11858 yes:)
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11861 ac_tool_warned=yes ;;
11862 esac
11863     OBJDUMP=$ac_ct_OBJDUMP
11864   fi
11865 else
11866   OBJDUMP="$ac_cv_prog_OBJDUMP"
11867 fi
11868
11869 test -z "$OBJDUMP" && OBJDUMP=objdump
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11880 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11881 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   lt_cv_file_magic_cmd='$MAGIC_CMD'
11885 lt_cv_file_magic_test_file=
11886 lt_cv_deplibs_check_method='unknown'
11887 # Need to set the preceding variable on all platforms that support
11888 # interlibrary dependencies.
11889 # 'none' -- dependencies not supported.
11890 # `unknown' -- same as none, but documents that we really don't know.
11891 # 'pass_all' -- all dependencies passed with no checks.
11892 # 'test_compile' -- check by making test program.
11893 # 'file_magic [[regex]]' -- check by looking for files in library path
11894 # which responds to the $file_magic_cmd with a given extended regex.
11895 # If you have `file' or equivalent on your system and you're not sure
11896 # whether `pass_all' will *always* work, you probably want this one.
11897
11898 case $host_os in
11899 aix[4-9]*)
11900   lt_cv_deplibs_check_method=pass_all
11901   ;;
11902
11903 beos*)
11904   lt_cv_deplibs_check_method=pass_all
11905   ;;
11906
11907 bsdi[45]*)
11908   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11909   lt_cv_file_magic_cmd='/usr/bin/file -L'
11910   lt_cv_file_magic_test_file=/shlib/libc.so
11911   ;;
11912
11913 cygwin*)
11914   # func_win32_libid is a shell function defined in ltmain.sh
11915   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11916   lt_cv_file_magic_cmd='func_win32_libid'
11917   ;;
11918
11919 mingw* | pw32*)
11920   # Base MSYS/MinGW do not provide the 'file' command needed by
11921   # func_win32_libid shell function, so use a weaker test based on 'objdump',
11922   # unless we find 'file', for example because we are cross-compiling.
11923   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11924   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11925     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11926     lt_cv_file_magic_cmd='func_win32_libid'
11927   else
11928     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11929     lt_cv_file_magic_cmd='$OBJDUMP -f'
11930   fi
11931   ;;
11932
11933 cegcc*)
11934   # use the weaker test based on 'objdump'. See mingw*.
11935   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11936   lt_cv_file_magic_cmd='$OBJDUMP -f'
11937   ;;
11938
11939 darwin* | rhapsody*)
11940   lt_cv_deplibs_check_method=pass_all
11941   ;;
11942
11943 freebsd* | dragonfly*)
11944   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11945     case $host_cpu in
11946     i*86 )
11947       # Not sure whether the presence of OpenBSD here was a mistake.
11948       # Let's accept both of them until this is cleared up.
11949       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11950       lt_cv_file_magic_cmd=/usr/bin/file
11951       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11952       ;;
11953     esac
11954   else
11955     lt_cv_deplibs_check_method=pass_all
11956   fi
11957   ;;
11958
11959 gnu*)
11960   lt_cv_deplibs_check_method=pass_all
11961   ;;
11962
11963 haiku*)
11964   lt_cv_deplibs_check_method=pass_all
11965   ;;
11966
11967 hpux10.20* | hpux11*)
11968   lt_cv_file_magic_cmd=/usr/bin/file
11969   case $host_cpu in
11970   ia64*)
11971     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11972     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11973     ;;
11974   hppa*64*)
11975     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]'
11976     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11977     ;;
11978   *)
11979     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11980     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11981     ;;
11982   esac
11983   ;;
11984
11985 interix[3-9]*)
11986   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11987   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11988   ;;
11989
11990 irix5* | irix6* | nonstopux*)
11991   case $LD in
11992   *-32|*"-32 ") libmagic=32-bit;;
11993   *-n32|*"-n32 ") libmagic=N32;;
11994   *-64|*"-64 ") libmagic=64-bit;;
11995   *) libmagic=never-match;;
11996   esac
11997   lt_cv_deplibs_check_method=pass_all
11998   ;;
11999
12000 # This must be Linux ELF.
12001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12002   lt_cv_deplibs_check_method=pass_all
12003   ;;
12004
12005 netbsd*)
12006   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12007     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12008   else
12009     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12010   fi
12011   ;;
12012
12013 newos6*)
12014   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12015   lt_cv_file_magic_cmd=/usr/bin/file
12016   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12017   ;;
12018
12019 *nto* | *qnx*)
12020   lt_cv_deplibs_check_method=pass_all
12021   ;;
12022
12023 openbsd*)
12024   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12025     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12026   else
12027     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12028   fi
12029   ;;
12030
12031 osf3* | osf4* | osf5*)
12032   lt_cv_deplibs_check_method=pass_all
12033   ;;
12034
12035 rdos*)
12036   lt_cv_deplibs_check_method=pass_all
12037   ;;
12038
12039 solaris*)
12040   lt_cv_deplibs_check_method=pass_all
12041   ;;
12042
12043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12044   lt_cv_deplibs_check_method=pass_all
12045   ;;
12046
12047 sysv4 | sysv4.3*)
12048   case $host_vendor in
12049   motorola)
12050     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]'
12051     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12052     ;;
12053   ncr)
12054     lt_cv_deplibs_check_method=pass_all
12055     ;;
12056   sequent)
12057     lt_cv_file_magic_cmd='/bin/file'
12058     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12059     ;;
12060   sni)
12061     lt_cv_file_magic_cmd='/bin/file'
12062     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12063     lt_cv_file_magic_test_file=/lib/libc.so
12064     ;;
12065   siemens)
12066     lt_cv_deplibs_check_method=pass_all
12067     ;;
12068   pc)
12069     lt_cv_deplibs_check_method=pass_all
12070     ;;
12071   esac
12072   ;;
12073
12074 tpf*)
12075   lt_cv_deplibs_check_method=pass_all
12076   ;;
12077 esac
12078
12079 fi
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12081 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12082 file_magic_cmd=$lt_cv_file_magic_cmd
12083 deplibs_check_method=$lt_cv_deplibs_check_method
12084 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097 if test -n "$ac_tool_prefix"; then
12098   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12099 set dummy ${ac_tool_prefix}ar; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if test "${ac_cv_prog_AR+set}" = set; then :
12103   $as_echo_n "(cached) " >&6
12104 else
12105   if test -n "$AR"; then
12106   ac_cv_prog_AR="$AR" # Let the user override the test.
12107 else
12108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $PATH
12110 do
12111   IFS=$as_save_IFS
12112   test -z "$as_dir" && as_dir=.
12113     for ac_exec_ext in '' $ac_executable_extensions; do
12114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12115     ac_cv_prog_AR="${ac_tool_prefix}ar"
12116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117     break 2
12118   fi
12119 done
12120   done
12121 IFS=$as_save_IFS
12122
12123 fi
12124 fi
12125 AR=$ac_cv_prog_AR
12126 if test -n "$AR"; then
12127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12128 $as_echo "$AR" >&6; }
12129 else
12130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; }
12132 fi
12133
12134
12135 fi
12136 if test -z "$ac_cv_prog_AR"; then
12137   ac_ct_AR=$AR
12138   # Extract the first word of "ar", so it can be a program name with args.
12139 set dummy ar; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12143   $as_echo_n "(cached) " >&6
12144 else
12145   if test -n "$ac_ct_AR"; then
12146   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12147 else
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151   IFS=$as_save_IFS
12152   test -z "$as_dir" && as_dir=.
12153     for ac_exec_ext in '' $ac_executable_extensions; do
12154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12155     ac_cv_prog_ac_ct_AR="ar"
12156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157     break 2
12158   fi
12159 done
12160   done
12161 IFS=$as_save_IFS
12162
12163 fi
12164 fi
12165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12166 if test -n "$ac_ct_AR"; then
12167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12168 $as_echo "$ac_ct_AR" >&6; }
12169 else
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12172 fi
12173
12174   if test "x$ac_ct_AR" = x; then
12175     AR="false"
12176   else
12177     case $cross_compiling:$ac_tool_warned in
12178 yes:)
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12181 ac_tool_warned=yes ;;
12182 esac
12183     AR=$ac_ct_AR
12184   fi
12185 else
12186   AR="$ac_cv_prog_AR"
12187 fi
12188
12189 test -z "$AR" && AR=ar
12190 test -z "$AR_FLAGS" && AR_FLAGS=cru
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202 if test -n "$ac_tool_prefix"; then
12203   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12204 set dummy ${ac_tool_prefix}strip; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if test "${ac_cv_prog_STRIP+set}" = set; then :
12208   $as_echo_n "(cached) " >&6
12209 else
12210   if test -n "$STRIP"; then
12211   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12212 else
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12215 do
12216   IFS=$as_save_IFS
12217   test -z "$as_dir" && as_dir=.
12218     for ac_exec_ext in '' $ac_executable_extensions; do
12219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12220     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222     break 2
12223   fi
12224 done
12225   done
12226 IFS=$as_save_IFS
12227
12228 fi
12229 fi
12230 STRIP=$ac_cv_prog_STRIP
12231 if test -n "$STRIP"; then
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12233 $as_echo "$STRIP" >&6; }
12234 else
12235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12237 fi
12238
12239
12240 fi
12241 if test -z "$ac_cv_prog_STRIP"; then
12242   ac_ct_STRIP=$STRIP
12243   # Extract the first word of "strip", so it can be a program name with args.
12244 set dummy strip; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12248   $as_echo_n "(cached) " >&6
12249 else
12250   if test -n "$ac_ct_STRIP"; then
12251   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12252 else
12253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12255 do
12256   IFS=$as_save_IFS
12257   test -z "$as_dir" && as_dir=.
12258     for ac_exec_ext in '' $ac_executable_extensions; do
12259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260     ac_cv_prog_ac_ct_STRIP="strip"
12261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262     break 2
12263   fi
12264 done
12265   done
12266 IFS=$as_save_IFS
12267
12268 fi
12269 fi
12270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12271 if test -n "$ac_ct_STRIP"; then
12272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12273 $as_echo "$ac_ct_STRIP" >&6; }
12274 else
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12277 fi
12278
12279   if test "x$ac_ct_STRIP" = x; then
12280     STRIP=":"
12281   else
12282     case $cross_compiling:$ac_tool_warned in
12283 yes:)
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12286 ac_tool_warned=yes ;;
12287 esac
12288     STRIP=$ac_ct_STRIP
12289   fi
12290 else
12291   STRIP="$ac_cv_prog_STRIP"
12292 fi
12293
12294 test -z "$STRIP" && STRIP=:
12295
12296
12297
12298
12299
12300
12301 if test -n "$ac_tool_prefix"; then
12302   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12303 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   if test -n "$RANLIB"; then
12310   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12311 else
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12314 do
12315   IFS=$as_save_IFS
12316   test -z "$as_dir" && as_dir=.
12317     for ac_exec_ext in '' $ac_executable_extensions; do
12318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321     break 2
12322   fi
12323 done
12324   done
12325 IFS=$as_save_IFS
12326
12327 fi
12328 fi
12329 RANLIB=$ac_cv_prog_RANLIB
12330 if test -n "$RANLIB"; then
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12332 $as_echo "$RANLIB" >&6; }
12333 else
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12336 fi
12337
12338
12339 fi
12340 if test -z "$ac_cv_prog_RANLIB"; then
12341   ac_ct_RANLIB=$RANLIB
12342   # Extract the first word of "ranlib", so it can be a program name with args.
12343 set dummy ranlib; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12347   $as_echo_n "(cached) " >&6
12348 else
12349   if test -n "$ac_ct_RANLIB"; then
12350   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12351 else
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12354 do
12355   IFS=$as_save_IFS
12356   test -z "$as_dir" && as_dir=.
12357     for ac_exec_ext in '' $ac_executable_extensions; do
12358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12359     ac_cv_prog_ac_ct_RANLIB="ranlib"
12360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361     break 2
12362   fi
12363 done
12364   done
12365 IFS=$as_save_IFS
12366
12367 fi
12368 fi
12369 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12370 if test -n "$ac_ct_RANLIB"; then
12371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12372 $as_echo "$ac_ct_RANLIB" >&6; }
12373 else
12374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12376 fi
12377
12378   if test "x$ac_ct_RANLIB" = x; then
12379     RANLIB=":"
12380   else
12381     case $cross_compiling:$ac_tool_warned in
12382 yes:)
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12385 ac_tool_warned=yes ;;
12386 esac
12387     RANLIB=$ac_ct_RANLIB
12388   fi
12389 else
12390   RANLIB="$ac_cv_prog_RANLIB"
12391 fi
12392
12393 test -z "$RANLIB" && RANLIB=:
12394
12395
12396
12397
12398
12399
12400 # Determine commands to create old-style static archives.
12401 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12402 old_postinstall_cmds='chmod 644 $oldlib'
12403 old_postuninstall_cmds=
12404
12405 if test -n "$RANLIB"; then
12406   case $host_os in
12407   openbsd*)
12408     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12409     ;;
12410   *)
12411     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12412     ;;
12413   esac
12414   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12415 fi
12416
12417 case $host_os in
12418   darwin*)
12419     lock_old_archive_extraction=yes ;;
12420   *)
12421     lock_old_archive_extraction=no ;;
12422 esac
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462 # If no C compiler was specified, use CC.
12463 LTCC=${LTCC-"$CC"}
12464
12465 # If no C compiler flags were specified, use CFLAGS.
12466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12467
12468 # Allow CC to be a program name with arguments.
12469 compiler=$CC
12470
12471
12472 # Check for command to grab the raw symbol name followed by C symbol from nm.
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12474 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12475 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12476   $as_echo_n "(cached) " >&6
12477 else
12478
12479 # These are sane defaults that work on at least a few old systems.
12480 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12481
12482 # Character class describing NM global symbol codes.
12483 symcode='[BCDEGRST]'
12484
12485 # Regexp to match symbols that can be accessed directly from C.
12486 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12487
12488 # Define system-specific variables.
12489 case $host_os in
12490 aix*)
12491   symcode='[BCDT]'
12492   ;;
12493 cygwin* | mingw* | pw32* | cegcc*)
12494   symcode='[ABCDGISTW]'
12495   ;;
12496 hpux*)
12497   if test "$host_cpu" = ia64; then
12498     symcode='[ABCDEGRST]'
12499   fi
12500   ;;
12501 irix* | nonstopux*)
12502   symcode='[BCDEGRST]'
12503   ;;
12504 osf*)
12505   symcode='[BCDEGQRST]'
12506   ;;
12507 solaris*)
12508   symcode='[BDRT]'
12509   ;;
12510 sco3.2v5*)
12511   symcode='[DT]'
12512   ;;
12513 sysv4.2uw2*)
12514   symcode='[DT]'
12515   ;;
12516 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12517   symcode='[ABDT]'
12518   ;;
12519 sysv4)
12520   symcode='[DFNSTU]'
12521   ;;
12522 esac
12523
12524 # If we're using GNU nm, then use its standard symbol codes.
12525 case `$NM -V 2>&1` in
12526 *GNU* | *'with BFD'*)
12527   symcode='[ABCDGIRSTW]' ;;
12528 esac
12529
12530 # Transform an extracted symbol line into a proper C declaration.
12531 # Some systems (esp. on ia64) link data and code symbols differently,
12532 # so use this general approach.
12533 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12534
12535 # Transform an extracted symbol line into symbol name and symbol address
12536 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12537 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'"
12538
12539 # Handle CRLF in mingw tool chain
12540 opt_cr=
12541 case $build_os in
12542 mingw*)
12543   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12544   ;;
12545 esac
12546
12547 # Try without a prefix underscore, then with it.
12548 for ac_symprfx in "" "_"; do
12549
12550   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12551   symxfrm="\\1 $ac_symprfx\\2 \\2"
12552
12553   # Write the raw and C identifiers.
12554   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12555     # Fake it for dumpbin and say T for any non-static function
12556     # and D for any global variable.
12557     # Also find C++ and __fastcall symbols from MSVC++,
12558     # which start with @ or ?.
12559     lt_cv_sys_global_symbol_pipe="$AWK '"\
12560 "     {last_section=section; section=\$ 3};"\
12561 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12562 "     \$ 0!~/External *\|/{next};"\
12563 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12564 "     {if(hide[section]) next};"\
12565 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12566 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12567 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12568 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12569 "     ' prfx=^$ac_symprfx"
12570   else
12571     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12572   fi
12573
12574   # Check to see that the pipe works correctly.
12575   pipe_works=no
12576
12577   rm -f conftest*
12578   cat > conftest.$ac_ext <<_LT_EOF
12579 #ifdef __cplusplus
12580 extern "C" {
12581 #endif
12582 char nm_test_var;
12583 void nm_test_func(void);
12584 void nm_test_func(void){}
12585 #ifdef __cplusplus
12586 }
12587 #endif
12588 int main(){nm_test_var='a';nm_test_func();return(0);}
12589 _LT_EOF
12590
12591   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12592   (eval $ac_compile) 2>&5
12593   ac_status=$?
12594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12595   test $ac_status = 0; }; then
12596     # Now try to grab the symbols.
12597     nlist=conftest.nm
12598     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12599   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12600   ac_status=$?
12601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12602   test $ac_status = 0; } && test -s "$nlist"; then
12603       # Try sorting and uniquifying the output.
12604       if sort "$nlist" | uniq > "$nlist"T; then
12605         mv -f "$nlist"T "$nlist"
12606       else
12607         rm -f "$nlist"T
12608       fi
12609
12610       # Make sure that we snagged all the symbols we need.
12611       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12612         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12613           cat <<_LT_EOF > conftest.$ac_ext
12614 #ifdef __cplusplus
12615 extern "C" {
12616 #endif
12617
12618 _LT_EOF
12619           # Now generate the symbol file.
12620           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12621
12622           cat <<_LT_EOF >> conftest.$ac_ext
12623
12624 /* The mapping between symbol names and symbols.  */
12625 const struct {
12626   const char *name;
12627   void       *address;
12628 }
12629 lt__PROGRAM__LTX_preloaded_symbols[] =
12630 {
12631   { "@PROGRAM@", (void *) 0 },
12632 _LT_EOF
12633           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12634           cat <<\_LT_EOF >> conftest.$ac_ext
12635   {0, (void *) 0}
12636 };
12637
12638 /* This works around a problem in FreeBSD linker */
12639 #ifdef FREEBSD_WORKAROUND
12640 static const void *lt_preloaded_setup() {
12641   return lt__PROGRAM__LTX_preloaded_symbols;
12642 }
12643 #endif
12644
12645 #ifdef __cplusplus
12646 }
12647 #endif
12648 _LT_EOF
12649           # Now try linking the two files.
12650           mv conftest.$ac_objext conftstm.$ac_objext
12651           lt_save_LIBS="$LIBS"
12652           lt_save_CFLAGS="$CFLAGS"
12653           LIBS="conftstm.$ac_objext"
12654           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12655           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12656   (eval $ac_link) 2>&5
12657   ac_status=$?
12658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12660             pipe_works=yes
12661           fi
12662           LIBS="$lt_save_LIBS"
12663           CFLAGS="$lt_save_CFLAGS"
12664         else
12665           echo "cannot find nm_test_func in $nlist" >&5
12666         fi
12667       else
12668         echo "cannot find nm_test_var in $nlist" >&5
12669       fi
12670     else
12671       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12672     fi
12673   else
12674     echo "$progname: failed program was:" >&5
12675     cat conftest.$ac_ext >&5
12676   fi
12677   rm -rf conftest* conftst*
12678
12679   # Do not use the global_symbol_pipe unless it works.
12680   if test "$pipe_works" = yes; then
12681     break
12682   else
12683     lt_cv_sys_global_symbol_pipe=
12684   fi
12685 done
12686
12687 fi
12688
12689 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12690   lt_cv_sys_global_symbol_to_cdecl=
12691 fi
12692 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12694 $as_echo "failed" >&6; }
12695 else
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12697 $as_echo "ok" >&6; }
12698 fi
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721 # Check whether --enable-libtool-lock was given.
12722 if test "${enable_libtool_lock+set}" = set; then :
12723   enableval=$enable_libtool_lock;
12724 fi
12725
12726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12727
12728 # Some flags need to be propagated to the compiler or linker for good
12729 # libtool support.
12730 case $host in
12731 ia64-*-hpux*)
12732   # Find out which ABI we are using.
12733   echo 'int i;' > conftest.$ac_ext
12734   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12735   (eval $ac_compile) 2>&5
12736   ac_status=$?
12737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738   test $ac_status = 0; }; then
12739     case `/usr/bin/file conftest.$ac_objext` in
12740       *ELF-32*)
12741         HPUX_IA64_MODE="32"
12742         ;;
12743       *ELF-64*)
12744         HPUX_IA64_MODE="64"
12745         ;;
12746     esac
12747   fi
12748   rm -rf conftest*
12749   ;;
12750 *-*-irix6*)
12751   # Find out which ABI we are using.
12752   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12753   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12754   (eval $ac_compile) 2>&5
12755   ac_status=$?
12756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12757   test $ac_status = 0; }; then
12758     if test "$lt_cv_prog_gnu_ld" = yes; then
12759       case `/usr/bin/file conftest.$ac_objext` in
12760         *32-bit*)
12761           LD="${LD-ld} -melf32bsmip"
12762           ;;
12763         *N32*)
12764           LD="${LD-ld} -melf32bmipn32"
12765           ;;
12766         *64-bit*)
12767           LD="${LD-ld} -melf64bmip"
12768         ;;
12769       esac
12770     else
12771       case `/usr/bin/file conftest.$ac_objext` in
12772         *32-bit*)
12773           LD="${LD-ld} -32"
12774           ;;
12775         *N32*)
12776           LD="${LD-ld} -n32"
12777           ;;
12778         *64-bit*)
12779           LD="${LD-ld} -64"
12780           ;;
12781       esac
12782     fi
12783   fi
12784   rm -rf conftest*
12785   ;;
12786
12787 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12788 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12789   # Find out which ABI we are using.
12790   echo 'int i;' > conftest.$ac_ext
12791   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12792   (eval $ac_compile) 2>&5
12793   ac_status=$?
12794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12795   test $ac_status = 0; }; then
12796     case `/usr/bin/file conftest.o` in
12797       *32-bit*)
12798         case $host in
12799           x86_64-*kfreebsd*-gnu)
12800             LD="${LD-ld} -m elf_i386_fbsd"
12801             ;;
12802           x86_64-*linux*)
12803             LD="${LD-ld} -m elf_i386"
12804             ;;
12805           ppc64-*linux*|powerpc64-*linux*)
12806             LD="${LD-ld} -m elf32ppclinux"
12807             ;;
12808           s390x-*linux*)
12809             LD="${LD-ld} -m elf_s390"
12810             ;;
12811           sparc64-*linux*)
12812             LD="${LD-ld} -m elf32_sparc"
12813             ;;
12814         esac
12815         ;;
12816       *64-bit*)
12817         case $host in
12818           x86_64-*kfreebsd*-gnu)
12819             LD="${LD-ld} -m elf_x86_64_fbsd"
12820             ;;
12821           x86_64-*linux*)
12822             LD="${LD-ld} -m elf_x86_64"
12823             ;;
12824           ppc*-*linux*|powerpc*-*linux*)
12825             LD="${LD-ld} -m elf64ppc"
12826             ;;
12827           s390*-*linux*|s390*-*tpf*)
12828             LD="${LD-ld} -m elf64_s390"
12829             ;;
12830           sparc*-*linux*)
12831             LD="${LD-ld} -m elf64_sparc"
12832             ;;
12833         esac
12834         ;;
12835     esac
12836   fi
12837   rm -rf conftest*
12838   ;;
12839
12840 *-*-sco3.2v5*)
12841   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12842   SAVE_CFLAGS="$CFLAGS"
12843   CFLAGS="$CFLAGS -belf"
12844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12845 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12846 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12847   $as_echo_n "(cached) " >&6
12848 else
12849   ac_ext=c
12850 ac_cpp='$CPP $CPPFLAGS'
12851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12854
12855      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h.  */
12857
12858 int
12859 main ()
12860 {
12861
12862   ;
12863   return 0;
12864 }
12865 _ACEOF
12866 if ac_fn_c_try_link "$LINENO"; then :
12867   lt_cv_cc_needs_belf=yes
12868 else
12869   lt_cv_cc_needs_belf=no
12870 fi
12871 rm -f core conftest.err conftest.$ac_objext \
12872     conftest$ac_exeext conftest.$ac_ext
12873      ac_ext=c
12874 ac_cpp='$CPP $CPPFLAGS'
12875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12878
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12881 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12882   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12883     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12884     CFLAGS="$SAVE_CFLAGS"
12885   fi
12886   ;;
12887 sparc*-*solaris*)
12888   # Find out which ABI we are using.
12889   echo 'int i;' > conftest.$ac_ext
12890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12891   (eval $ac_compile) 2>&5
12892   ac_status=$?
12893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12894   test $ac_status = 0; }; then
12895     case `/usr/bin/file conftest.o` in
12896     *64-bit*)
12897       case $lt_cv_prog_gnu_ld in
12898       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12899       *)
12900         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12901           LD="${LD-ld} -64"
12902         fi
12903         ;;
12904       esac
12905       ;;
12906     esac
12907   fi
12908   rm -rf conftest*
12909   ;;
12910 esac
12911
12912 need_locks="$enable_libtool_lock"
12913
12914
12915   case $host_os in
12916     rhapsody* | darwin*)
12917     if test -n "$ac_tool_prefix"; then
12918   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12919 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12923   $as_echo_n "(cached) " >&6
12924 else
12925   if test -n "$DSYMUTIL"; then
12926   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12927 else
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12930 do
12931   IFS=$as_save_IFS
12932   test -z "$as_dir" && as_dir=.
12933     for ac_exec_ext in '' $ac_executable_extensions; do
12934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937     break 2
12938   fi
12939 done
12940   done
12941 IFS=$as_save_IFS
12942
12943 fi
12944 fi
12945 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12946 if test -n "$DSYMUTIL"; then
12947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12948 $as_echo "$DSYMUTIL" >&6; }
12949 else
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12952 fi
12953
12954
12955 fi
12956 if test -z "$ac_cv_prog_DSYMUTIL"; then
12957   ac_ct_DSYMUTIL=$DSYMUTIL
12958   # Extract the first word of "dsymutil", so it can be a program name with args.
12959 set dummy dsymutil; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12963   $as_echo_n "(cached) " >&6
12964 else
12965   if test -n "$ac_ct_DSYMUTIL"; then
12966   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12967 else
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 for as_dir in $PATH
12970 do
12971   IFS=$as_save_IFS
12972   test -z "$as_dir" && as_dir=.
12973     for ac_exec_ext in '' $ac_executable_extensions; do
12974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12975     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977     break 2
12978   fi
12979 done
12980   done
12981 IFS=$as_save_IFS
12982
12983 fi
12984 fi
12985 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12986 if test -n "$ac_ct_DSYMUTIL"; then
12987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12988 $as_echo "$ac_ct_DSYMUTIL" >&6; }
12989 else
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12992 fi
12993
12994   if test "x$ac_ct_DSYMUTIL" = x; then
12995     DSYMUTIL=":"
12996   else
12997     case $cross_compiling:$ac_tool_warned in
12998 yes:)
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13001 ac_tool_warned=yes ;;
13002 esac
13003     DSYMUTIL=$ac_ct_DSYMUTIL
13004   fi
13005 else
13006   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13007 fi
13008
13009     if test -n "$ac_tool_prefix"; then
13010   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13011 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13015   $as_echo_n "(cached) " >&6
13016 else
13017   if test -n "$NMEDIT"; then
13018   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13019 else
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13022 do
13023   IFS=$as_save_IFS
13024   test -z "$as_dir" && as_dir=.
13025     for ac_exec_ext in '' $ac_executable_extensions; do
13026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029     break 2
13030   fi
13031 done
13032   done
13033 IFS=$as_save_IFS
13034
13035 fi
13036 fi
13037 NMEDIT=$ac_cv_prog_NMEDIT
13038 if test -n "$NMEDIT"; then
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13040 $as_echo "$NMEDIT" >&6; }
13041 else
13042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13044 fi
13045
13046
13047 fi
13048 if test -z "$ac_cv_prog_NMEDIT"; then
13049   ac_ct_NMEDIT=$NMEDIT
13050   # Extract the first word of "nmedit", so it can be a program name with args.
13051 set dummy nmedit; ac_word=$2
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053 $as_echo_n "checking for $ac_word... " >&6; }
13054 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13055   $as_echo_n "(cached) " >&6
13056 else
13057   if test -n "$ac_ct_NMEDIT"; then
13058   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13059 else
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13062 do
13063   IFS=$as_save_IFS
13064   test -z "$as_dir" && as_dir=.
13065     for ac_exec_ext in '' $ac_executable_extensions; do
13066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13067     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13069     break 2
13070   fi
13071 done
13072   done
13073 IFS=$as_save_IFS
13074
13075 fi
13076 fi
13077 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13078 if test -n "$ac_ct_NMEDIT"; then
13079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13080 $as_echo "$ac_ct_NMEDIT" >&6; }
13081 else
13082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 $as_echo "no" >&6; }
13084 fi
13085
13086   if test "x$ac_ct_NMEDIT" = x; then
13087     NMEDIT=":"
13088   else
13089     case $cross_compiling:$ac_tool_warned in
13090 yes:)
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13093 ac_tool_warned=yes ;;
13094 esac
13095     NMEDIT=$ac_ct_NMEDIT
13096   fi
13097 else
13098   NMEDIT="$ac_cv_prog_NMEDIT"
13099 fi
13100
13101     if test -n "$ac_tool_prefix"; then
13102   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13103 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if test "${ac_cv_prog_LIPO+set}" = set; then :
13107   $as_echo_n "(cached) " >&6
13108 else
13109   if test -n "$LIPO"; then
13110   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13111 else
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13114 do
13115   IFS=$as_save_IFS
13116   test -z "$as_dir" && as_dir=.
13117     for ac_exec_ext in '' $ac_executable_extensions; do
13118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13119     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121     break 2
13122   fi
13123 done
13124   done
13125 IFS=$as_save_IFS
13126
13127 fi
13128 fi
13129 LIPO=$ac_cv_prog_LIPO
13130 if test -n "$LIPO"; then
13131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13132 $as_echo "$LIPO" >&6; }
13133 else
13134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136 fi
13137
13138
13139 fi
13140 if test -z "$ac_cv_prog_LIPO"; then
13141   ac_ct_LIPO=$LIPO
13142   # Extract the first word of "lipo", so it can be a program name with args.
13143 set dummy lipo; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13147   $as_echo_n "(cached) " >&6
13148 else
13149   if test -n "$ac_ct_LIPO"; then
13150   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155   IFS=$as_save_IFS
13156   test -z "$as_dir" && as_dir=.
13157     for ac_exec_ext in '' $ac_executable_extensions; do
13158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159     ac_cv_prog_ac_ct_LIPO="lipo"
13160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161     break 2
13162   fi
13163 done
13164   done
13165 IFS=$as_save_IFS
13166
13167 fi
13168 fi
13169 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13170 if test -n "$ac_ct_LIPO"; then
13171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13172 $as_echo "$ac_ct_LIPO" >&6; }
13173 else
13174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176 fi
13177
13178   if test "x$ac_ct_LIPO" = x; then
13179     LIPO=":"
13180   else
13181     case $cross_compiling:$ac_tool_warned in
13182 yes:)
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13185 ac_tool_warned=yes ;;
13186 esac
13187     LIPO=$ac_ct_LIPO
13188   fi
13189 else
13190   LIPO="$ac_cv_prog_LIPO"
13191 fi
13192
13193     if test -n "$ac_tool_prefix"; then
13194   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13195 set dummy ${ac_tool_prefix}otool; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13199   $as_echo_n "(cached) " >&6
13200 else
13201   if test -n "$OTOOL"; then
13202   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13206 do
13207   IFS=$as_save_IFS
13208   test -z "$as_dir" && as_dir=.
13209     for ac_exec_ext in '' $ac_executable_extensions; do
13210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213     break 2
13214   fi
13215 done
13216   done
13217 IFS=$as_save_IFS
13218
13219 fi
13220 fi
13221 OTOOL=$ac_cv_prog_OTOOL
13222 if test -n "$OTOOL"; then
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13224 $as_echo "$OTOOL" >&6; }
13225 else
13226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13228 fi
13229
13230
13231 fi
13232 if test -z "$ac_cv_prog_OTOOL"; then
13233   ac_ct_OTOOL=$OTOOL
13234   # Extract the first word of "otool", so it can be a program name with args.
13235 set dummy otool; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13239   $as_echo_n "(cached) " >&6
13240 else
13241   if test -n "$ac_ct_OTOOL"; then
13242   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13243 else
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13246 do
13247   IFS=$as_save_IFS
13248   test -z "$as_dir" && as_dir=.
13249     for ac_exec_ext in '' $ac_executable_extensions; do
13250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251     ac_cv_prog_ac_ct_OTOOL="otool"
13252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253     break 2
13254   fi
13255 done
13256   done
13257 IFS=$as_save_IFS
13258
13259 fi
13260 fi
13261 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13262 if test -n "$ac_ct_OTOOL"; then
13263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13264 $as_echo "$ac_ct_OTOOL" >&6; }
13265 else
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 fi
13269
13270   if test "x$ac_ct_OTOOL" = x; then
13271     OTOOL=":"
13272   else
13273     case $cross_compiling:$ac_tool_warned in
13274 yes:)
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13277 ac_tool_warned=yes ;;
13278 esac
13279     OTOOL=$ac_ct_OTOOL
13280   fi
13281 else
13282   OTOOL="$ac_cv_prog_OTOOL"
13283 fi
13284
13285     if test -n "$ac_tool_prefix"; then
13286   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13287 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 $as_echo_n "checking for $ac_word... " >&6; }
13290 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13291   $as_echo_n "(cached) " >&6
13292 else
13293   if test -n "$OTOOL64"; then
13294   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13295 else
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13298 do
13299   IFS=$as_save_IFS
13300   test -z "$as_dir" && as_dir=.
13301     for ac_exec_ext in '' $ac_executable_extensions; do
13302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13303     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305     break 2
13306   fi
13307 done
13308   done
13309 IFS=$as_save_IFS
13310
13311 fi
13312 fi
13313 OTOOL64=$ac_cv_prog_OTOOL64
13314 if test -n "$OTOOL64"; then
13315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13316 $as_echo "$OTOOL64" >&6; }
13317 else
13318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13320 fi
13321
13322
13323 fi
13324 if test -z "$ac_cv_prog_OTOOL64"; then
13325   ac_ct_OTOOL64=$OTOOL64
13326   # Extract the first word of "otool64", so it can be a program name with args.
13327 set dummy otool64; ac_word=$2
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329 $as_echo_n "checking for $ac_word... " >&6; }
13330 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13331   $as_echo_n "(cached) " >&6
13332 else
13333   if test -n "$ac_ct_OTOOL64"; then
13334   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13335 else
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13338 do
13339   IFS=$as_save_IFS
13340   test -z "$as_dir" && as_dir=.
13341     for ac_exec_ext in '' $ac_executable_extensions; do
13342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343     ac_cv_prog_ac_ct_OTOOL64="otool64"
13344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13345     break 2
13346   fi
13347 done
13348   done
13349 IFS=$as_save_IFS
13350
13351 fi
13352 fi
13353 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13354 if test -n "$ac_ct_OTOOL64"; then
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13356 $as_echo "$ac_ct_OTOOL64" >&6; }
13357 else
13358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13360 fi
13361
13362   if test "x$ac_ct_OTOOL64" = x; then
13363     OTOOL64=":"
13364   else
13365     case $cross_compiling:$ac_tool_warned in
13366 yes:)
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13369 ac_tool_warned=yes ;;
13370 esac
13371     OTOOL64=$ac_ct_OTOOL64
13372   fi
13373 else
13374   OTOOL64="$ac_cv_prog_OTOOL64"
13375 fi
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13404 $as_echo_n "checking for -single_module linker flag... " >&6; }
13405 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13406   $as_echo_n "(cached) " >&6
13407 else
13408   lt_cv_apple_cc_single_mod=no
13409       if test -z "${LT_MULTI_MODULE}"; then
13410         # By default we will add the -single_module flag. You can override
13411         # by either setting the environment variable LT_MULTI_MODULE
13412         # non-empty at configure time, or by adding -multi_module to the
13413         # link flags.
13414         rm -rf libconftest.dylib*
13415         echo "int foo(void){return 1;}" > conftest.c
13416         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13417 -dynamiclib -Wl,-single_module conftest.c" >&5
13418         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13419           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13420         _lt_result=$?
13421         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13422           lt_cv_apple_cc_single_mod=yes
13423         else
13424           cat conftest.err >&5
13425         fi
13426         rm -rf libconftest.dylib*
13427         rm -f conftest.*
13428       fi
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13431 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13433 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13434 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13435   $as_echo_n "(cached) " >&6
13436 else
13437   lt_cv_ld_exported_symbols_list=no
13438       save_LDFLAGS=$LDFLAGS
13439       echo "_main" > conftest.sym
13440       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13441       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h.  */
13443
13444 int
13445 main ()
13446 {
13447
13448   ;
13449   return 0;
13450 }
13451 _ACEOF
13452 if ac_fn_c_try_link "$LINENO"; then :
13453   lt_cv_ld_exported_symbols_list=yes
13454 else
13455   lt_cv_ld_exported_symbols_list=no
13456 fi
13457 rm -f core conftest.err conftest.$ac_objext \
13458     conftest$ac_exeext conftest.$ac_ext
13459         LDFLAGS="$save_LDFLAGS"
13460
13461 fi
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13463 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13465 $as_echo_n "checking for -force_load linker flag... " >&6; }
13466 if test "${lt_cv_ld_force_load+set}" = set; then :
13467   $as_echo_n "(cached) " >&6
13468 else
13469   lt_cv_ld_force_load=no
13470       cat > conftest.c << _LT_EOF
13471 int forced_loaded() { return 2;}
13472 _LT_EOF
13473       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13474       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13475       echo "$AR cru libconftest.a conftest.o" >&5
13476       $AR cru libconftest.a conftest.o 2>&5
13477       cat > conftest.c << _LT_EOF
13478 int main() { return 0;}
13479 _LT_EOF
13480       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13481       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13482       _lt_result=$?
13483       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13484         lt_cv_ld_force_load=yes
13485       else
13486         cat conftest.err >&5
13487       fi
13488         rm -f conftest.err libconftest.a conftest conftest.c
13489         rm -rf conftest.dSYM
13490
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13493 $as_echo "$lt_cv_ld_force_load" >&6; }
13494     case $host_os in
13495     rhapsody* | darwin1.[012])
13496       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13497     darwin1.*)
13498       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13499     darwin*) # darwin 5.x on
13500       # if running on 10.5 or later, the deployment target defaults
13501       # to the OS version, if on x86, and 10.4, the deployment
13502       # target defaults to 10.4. Don't you love it?
13503       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13504         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13505           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13506         10.[012]*)
13507           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13508         10.*)
13509           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13510       esac
13511     ;;
13512   esac
13513     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13514       _lt_dar_single_mod='$single_module'
13515     fi
13516     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13517       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13518     else
13519       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13520     fi
13521     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13522       _lt_dsymutil='~$DSYMUTIL $lib || :'
13523     else
13524       _lt_dsymutil=
13525     fi
13526     ;;
13527   esac
13528
13529 for ac_header in dlfcn.h
13530 do :
13531   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13532 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13533   cat >>confdefs.h <<_ACEOF
13534 #define HAVE_DLFCN_H 1
13535 _ACEOF
13536
13537 fi
13538 done
13539
13540
13541
13542
13543
13544
13545 # Set options
13546
13547
13548
13549         enable_dlopen=no
13550
13551
13552   enable_win32_dll=no
13553
13554
13555             # Check whether --enable-shared was given.
13556 if test "${enable_shared+set}" = set; then :
13557   enableval=$enable_shared; p=${PACKAGE-default}
13558     case $enableval in
13559     yes) enable_shared=yes ;;
13560     no) enable_shared=no ;;
13561     *)
13562       enable_shared=no
13563       # Look at the argument we got.  We use all the common list separators.
13564       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13565       for pkg in $enableval; do
13566         IFS="$lt_save_ifs"
13567         if test "X$pkg" = "X$p"; then
13568           enable_shared=yes
13569         fi
13570       done
13571       IFS="$lt_save_ifs"
13572       ;;
13573     esac
13574 else
13575   enable_shared=yes
13576 fi
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586   # Check whether --enable-static was given.
13587 if test "${enable_static+set}" = set; then :
13588   enableval=$enable_static; p=${PACKAGE-default}
13589     case $enableval in
13590     yes) enable_static=yes ;;
13591     no) enable_static=no ;;
13592     *)
13593      enable_static=no
13594       # Look at the argument we got.  We use all the common list separators.
13595       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13596       for pkg in $enableval; do
13597         IFS="$lt_save_ifs"
13598         if test "X$pkg" = "X$p"; then
13599           enable_static=yes
13600         fi
13601       done
13602       IFS="$lt_save_ifs"
13603       ;;
13604     esac
13605 else
13606   enable_static=yes
13607 fi
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618 # Check whether --with-pic was given.
13619 if test "${with_pic+set}" = set; then :
13620   withval=$with_pic; pic_mode="$withval"
13621 else
13622   pic_mode=default
13623 fi
13624
13625
13626 test -z "$pic_mode" && pic_mode=default
13627
13628
13629
13630
13631
13632
13633
13634   # Check whether --enable-fast-install was given.
13635 if test "${enable_fast_install+set}" = set; then :
13636   enableval=$enable_fast_install; p=${PACKAGE-default}
13637     case $enableval in
13638     yes) enable_fast_install=yes ;;
13639     no) enable_fast_install=no ;;
13640     *)
13641       enable_fast_install=no
13642       # Look at the argument we got.  We use all the common list separators.
13643       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13644       for pkg in $enableval; do
13645         IFS="$lt_save_ifs"
13646         if test "X$pkg" = "X$p"; then
13647           enable_fast_install=yes
13648         fi
13649       done
13650       IFS="$lt_save_ifs"
13651       ;;
13652     esac
13653 else
13654   enable_fast_install=yes
13655 fi
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667 # This can be used to rebuild libtool when needed
13668 LIBTOOL_DEPS="$ltmain"
13669
13670 # Always use our own libtool.
13671 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698 test -z "$LN_S" && LN_S="ln -s"
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713 if test -n "${ZSH_VERSION+set}" ; then
13714    setopt NO_GLOB_SUBST
13715 fi
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13718 $as_echo_n "checking for objdir... " >&6; }
13719 if test "${lt_cv_objdir+set}" = set; then :
13720   $as_echo_n "(cached) " >&6
13721 else
13722   rm -f .libs 2>/dev/null
13723 mkdir .libs 2>/dev/null
13724 if test -d .libs; then
13725   lt_cv_objdir=.libs
13726 else
13727   # MS-DOS does not allow filenames that begin with a dot.
13728   lt_cv_objdir=_libs
13729 fi
13730 rmdir .libs 2>/dev/null
13731 fi
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13733 $as_echo "$lt_cv_objdir" >&6; }
13734 objdir=$lt_cv_objdir
13735
13736
13737
13738
13739
13740 cat >>confdefs.h <<_ACEOF
13741 #define LT_OBJDIR "$lt_cv_objdir/"
13742 _ACEOF
13743
13744
13745
13746
13747 case $host_os in
13748 aix3*)
13749   # AIX sometimes has problems with the GCC collect2 program.  For some
13750   # reason, if we set the COLLECT_NAMES environment variable, the problems
13751   # vanish in a puff of smoke.
13752   if test "X${COLLECT_NAMES+set}" != Xset; then
13753     COLLECT_NAMES=
13754     export COLLECT_NAMES
13755   fi
13756   ;;
13757 esac
13758
13759 # Global variables:
13760 ofile=libtool
13761 can_build_shared=yes
13762
13763 # All known linkers require a `.a' archive for static linking (except MSVC,
13764 # which needs '.lib').
13765 libext=a
13766
13767 with_gnu_ld="$lt_cv_prog_gnu_ld"
13768
13769 old_CC="$CC"
13770 old_CFLAGS="$CFLAGS"
13771
13772 # Set sane defaults for various variables
13773 test -z "$CC" && CC=cc
13774 test -z "$LTCC" && LTCC=$CC
13775 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13776 test -z "$LD" && LD=ld
13777 test -z "$ac_objext" && ac_objext=o
13778
13779 for cc_temp in $compiler""; do
13780   case $cc_temp in
13781     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13782     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13783     \-*) ;;
13784     *) break;;
13785   esac
13786 done
13787 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13788
13789
13790 # Only perform the check for file, if the check method requires it
13791 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13792 case $deplibs_check_method in
13793 file_magic*)
13794   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13796 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13797 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13798   $as_echo_n "(cached) " >&6
13799 else
13800   case $MAGIC_CMD in
13801 [\\/*] |  ?:[\\/]*)
13802   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13803   ;;
13804 *)
13805   lt_save_MAGIC_CMD="$MAGIC_CMD"
13806   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13807   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13808   for ac_dir in $ac_dummy; do
13809     IFS="$lt_save_ifs"
13810     test -z "$ac_dir" && ac_dir=.
13811     if test -f $ac_dir/${ac_tool_prefix}file; then
13812       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13813       if test -n "$file_magic_test_file"; then
13814         case $deplibs_check_method in
13815         "file_magic "*)
13816           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13817           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13818           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13819             $EGREP "$file_magic_regex" > /dev/null; then
13820             :
13821           else
13822             cat <<_LT_EOF 1>&2
13823
13824 *** Warning: the command libtool uses to detect shared libraries,
13825 *** $file_magic_cmd, produces output that libtool cannot recognize.
13826 *** The result is that libtool may fail to recognize shared libraries
13827 *** as such.  This will affect the creation of libtool libraries that
13828 *** depend on shared libraries, but programs linked with such libtool
13829 *** libraries will work regardless of this problem.  Nevertheless, you
13830 *** may want to report the problem to your system manager and/or to
13831 *** bug-libtool@gnu.org
13832
13833 _LT_EOF
13834           fi ;;
13835         esac
13836       fi
13837       break
13838     fi
13839   done
13840   IFS="$lt_save_ifs"
13841   MAGIC_CMD="$lt_save_MAGIC_CMD"
13842   ;;
13843 esac
13844 fi
13845
13846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13847 if test -n "$MAGIC_CMD"; then
13848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13849 $as_echo "$MAGIC_CMD" >&6; }
13850 else
13851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13853 fi
13854
13855
13856
13857
13858
13859 if test -z "$lt_cv_path_MAGIC_CMD"; then
13860   if test -n "$ac_tool_prefix"; then
13861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13862 $as_echo_n "checking for file... " >&6; }
13863 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13864   $as_echo_n "(cached) " >&6
13865 else
13866   case $MAGIC_CMD in
13867 [\\/*] |  ?:[\\/]*)
13868   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13869   ;;
13870 *)
13871   lt_save_MAGIC_CMD="$MAGIC_CMD"
13872   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13873   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13874   for ac_dir in $ac_dummy; do
13875     IFS="$lt_save_ifs"
13876     test -z "$ac_dir" && ac_dir=.
13877     if test -f $ac_dir/file; then
13878       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13879       if test -n "$file_magic_test_file"; then
13880         case $deplibs_check_method in
13881         "file_magic "*)
13882           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13883           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13884           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13885             $EGREP "$file_magic_regex" > /dev/null; then
13886             :
13887           else
13888             cat <<_LT_EOF 1>&2
13889
13890 *** Warning: the command libtool uses to detect shared libraries,
13891 *** $file_magic_cmd, produces output that libtool cannot recognize.
13892 *** The result is that libtool may fail to recognize shared libraries
13893 *** as such.  This will affect the creation of libtool libraries that
13894 *** depend on shared libraries, but programs linked with such libtool
13895 *** libraries will work regardless of this problem.  Nevertheless, you
13896 *** may want to report the problem to your system manager and/or to
13897 *** bug-libtool@gnu.org
13898
13899 _LT_EOF
13900           fi ;;
13901         esac
13902       fi
13903       break
13904     fi
13905   done
13906   IFS="$lt_save_ifs"
13907   MAGIC_CMD="$lt_save_MAGIC_CMD"
13908   ;;
13909 esac
13910 fi
13911
13912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13913 if test -n "$MAGIC_CMD"; then
13914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13915 $as_echo "$MAGIC_CMD" >&6; }
13916 else
13917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13919 fi
13920
13921
13922   else
13923     MAGIC_CMD=:
13924   fi
13925 fi
13926
13927   fi
13928   ;;
13929 esac
13930
13931 # Use C for the default configuration in the libtool script
13932
13933 lt_save_CC="$CC"
13934 ac_ext=c
13935 ac_cpp='$CPP $CPPFLAGS'
13936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13939
13940
13941 # Source file extension for C test sources.
13942 ac_ext=c
13943
13944 # Object file extension for compiled C test sources.
13945 objext=o
13946 objext=$objext
13947
13948 # Code to be used in simple compile tests
13949 lt_simple_compile_test_code="int some_variable = 0;"
13950
13951 # Code to be used in simple link tests
13952 lt_simple_link_test_code='int main(){return(0);}'
13953
13954
13955
13956
13957
13958
13959
13960 # If no C compiler was specified, use CC.
13961 LTCC=${LTCC-"$CC"}
13962
13963 # If no C compiler flags were specified, use CFLAGS.
13964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13965
13966 # Allow CC to be a program name with arguments.
13967 compiler=$CC
13968
13969 # Save the default compiler, since it gets overwritten when the other
13970 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13971 compiler_DEFAULT=$CC
13972
13973 # save warnings/boilerplate of simple test code
13974 ac_outfile=conftest.$ac_objext
13975 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13977 _lt_compiler_boilerplate=`cat conftest.err`
13978 $RM conftest*
13979
13980 ac_outfile=conftest.$ac_objext
13981 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13983 _lt_linker_boilerplate=`cat conftest.err`
13984 $RM -r conftest*
13985
13986
13987 ## CAVEAT EMPTOR:
13988 ## There is no encapsulation within the following macros, do not change
13989 ## the running order or otherwise move them around unless you know exactly
13990 ## what you are doing...
13991 if test -n "$compiler"; then
13992
13993 lt_prog_compiler_no_builtin_flag=
13994
13995 if test "$GCC" = yes; then
13996   case $cc_basename in
13997   nvcc*)
13998     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13999   *)
14000     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14001   esac
14002
14003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14004 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14005 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14006   $as_echo_n "(cached) " >&6
14007 else
14008   lt_cv_prog_compiler_rtti_exceptions=no
14009    ac_outfile=conftest.$ac_objext
14010    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14011    lt_compiler_flag="-fno-rtti -fno-exceptions"
14012    # Insert the option either (1) after the last *FLAGS variable, or
14013    # (2) before a word containing "conftest.", or (3) at the end.
14014    # Note that $ac_compile itself does not contain backslashes and begins
14015    # with a dollar sign (not a hyphen), so the echo should work correctly.
14016    # The option is referenced via a variable to avoid confusing sed.
14017    lt_compile=`echo "$ac_compile" | $SED \
14018    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14020    -e 's:$: $lt_compiler_flag:'`
14021    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14022    (eval "$lt_compile" 2>conftest.err)
14023    ac_status=$?
14024    cat conftest.err >&5
14025    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026    if (exit $ac_status) && test -s "$ac_outfile"; then
14027      # The compiler can only warn and ignore the option if not recognized
14028      # So say no if there are warnings other than the usual output.
14029      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14030      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14031      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14032        lt_cv_prog_compiler_rtti_exceptions=yes
14033      fi
14034    fi
14035    $RM conftest*
14036
14037 fi
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14039 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14040
14041 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14042     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14043 else
14044     :
14045 fi
14046
14047 fi
14048
14049
14050
14051
14052
14053
14054   lt_prog_compiler_wl=
14055 lt_prog_compiler_pic=
14056 lt_prog_compiler_static=
14057
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14059 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14060
14061   if test "$GCC" = yes; then
14062     lt_prog_compiler_wl='-Wl,'
14063     lt_prog_compiler_static='-static'
14064
14065     case $host_os in
14066       aix*)
14067       # All AIX code is PIC.
14068       if test "$host_cpu" = ia64; then
14069         # AIX 5 now supports IA64 processor
14070         lt_prog_compiler_static='-Bstatic'
14071       fi
14072       ;;
14073
14074     amigaos*)
14075       case $host_cpu in
14076       powerpc)
14077             # see comment about AmigaOS4 .so support
14078             lt_prog_compiler_pic='-fPIC'
14079         ;;
14080       m68k)
14081             # FIXME: we need at least 68020 code to build shared libraries, but
14082             # adding the `-m68020' flag to GCC prevents building anything better,
14083             # like `-m68040'.
14084             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14085         ;;
14086       esac
14087       ;;
14088
14089     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14090       # PIC is the default for these OSes.
14091       ;;
14092
14093     mingw* | cygwin* | pw32* | os2* | cegcc*)
14094       # This hack is so that the source file can tell whether it is being
14095       # built for inclusion in a dll (and should export symbols for example).
14096       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14097       # (--disable-auto-import) libraries
14098       lt_prog_compiler_pic='-DDLL_EXPORT'
14099       ;;
14100
14101     darwin* | rhapsody*)
14102       # PIC is the default on this platform
14103       # Common symbols not allowed in MH_DYLIB files
14104       lt_prog_compiler_pic='-fno-common'
14105       ;;
14106
14107     haiku*)
14108       # PIC is the default for Haiku.
14109       # The "-static" flag exists, but is broken.
14110       lt_prog_compiler_static=
14111       ;;
14112
14113     hpux*)
14114       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14115       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14116       # sets the default TLS model and affects inlining.
14117       case $host_cpu in
14118       hppa*64*)
14119         # +Z the default
14120         ;;
14121       *)
14122         lt_prog_compiler_pic='-fPIC'
14123         ;;
14124       esac
14125       ;;
14126
14127     interix[3-9]*)
14128       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14129       # Instead, we relocate shared libraries at runtime.
14130       ;;
14131
14132     msdosdjgpp*)
14133       # Just because we use GCC doesn't mean we suddenly get shared libraries
14134       # on systems that don't support them.
14135       lt_prog_compiler_can_build_shared=no
14136       enable_shared=no
14137       ;;
14138
14139     *nto* | *qnx*)
14140       # QNX uses GNU C++, but need to define -shared option too, otherwise
14141       # it will coredump.
14142       lt_prog_compiler_pic='-fPIC -shared'
14143       ;;
14144
14145     sysv4*MP*)
14146       if test -d /usr/nec; then
14147         lt_prog_compiler_pic=-Kconform_pic
14148       fi
14149       ;;
14150
14151     *)
14152       lt_prog_compiler_pic='-fPIC'
14153       ;;
14154     esac
14155
14156     case $cc_basename in
14157     nvcc*) # Cuda Compiler Driver 2.2
14158       lt_prog_compiler_wl='-Xlinker '
14159       lt_prog_compiler_pic='-Xcompiler -fPIC'
14160       ;;
14161     esac
14162   else
14163     # PORTME Check for flag to pass linker flags through the system compiler.
14164     case $host_os in
14165     aix*)
14166       lt_prog_compiler_wl='-Wl,'
14167       if test "$host_cpu" = ia64; then
14168         # AIX 5 now supports IA64 processor
14169         lt_prog_compiler_static='-Bstatic'
14170       else
14171         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14172       fi
14173       ;;
14174
14175     mingw* | cygwin* | pw32* | os2* | cegcc*)
14176       # This hack is so that the source file can tell whether it is being
14177       # built for inclusion in a dll (and should export symbols for example).
14178       lt_prog_compiler_pic='-DDLL_EXPORT'
14179       ;;
14180
14181     hpux9* | hpux10* | hpux11*)
14182       lt_prog_compiler_wl='-Wl,'
14183       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14184       # not for PA HP-UX.
14185       case $host_cpu in
14186       hppa*64*|ia64*)
14187         # +Z the default
14188         ;;
14189       *)
14190         lt_prog_compiler_pic='+Z'
14191         ;;
14192       esac
14193       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14194       lt_prog_compiler_static='${wl}-a ${wl}archive'
14195       ;;
14196
14197     irix5* | irix6* | nonstopux*)
14198       lt_prog_compiler_wl='-Wl,'
14199       # PIC (with -KPIC) is the default.
14200       lt_prog_compiler_static='-non_shared'
14201       ;;
14202
14203     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14204       case $cc_basename in
14205       # old Intel for x86_64 which still supported -KPIC.
14206       ecc*)
14207         lt_prog_compiler_wl='-Wl,'
14208         lt_prog_compiler_pic='-KPIC'
14209         lt_prog_compiler_static='-static'
14210         ;;
14211       # icc used to be incompatible with GCC.
14212       # ICC 10 doesn't accept -KPIC any more.
14213       icc* | ifort*)
14214         lt_prog_compiler_wl='-Wl,'
14215         lt_prog_compiler_pic='-fPIC'
14216         lt_prog_compiler_static='-static'
14217         ;;
14218       # Lahey Fortran 8.1.
14219       lf95*)
14220         lt_prog_compiler_wl='-Wl,'
14221         lt_prog_compiler_pic='--shared'
14222         lt_prog_compiler_static='--static'
14223         ;;
14224       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14225         # Portland Group compilers (*not* the Pentium gcc compiler,
14226         # which looks to be a dead project)
14227         lt_prog_compiler_wl='-Wl,'
14228         lt_prog_compiler_pic='-fpic'
14229         lt_prog_compiler_static='-Bstatic'
14230         ;;
14231       ccc*)
14232         lt_prog_compiler_wl='-Wl,'
14233         # All Alpha code is PIC.
14234         lt_prog_compiler_static='-non_shared'
14235         ;;
14236       xl* | bgxl* | bgf* | mpixl*)
14237         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14238         lt_prog_compiler_wl='-Wl,'
14239         lt_prog_compiler_pic='-qpic'
14240         lt_prog_compiler_static='-qstaticlink'
14241         ;;
14242       *)
14243         case `$CC -V 2>&1 | sed 5q` in
14244         *Sun\ F* | *Sun*Fortran*)
14245           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14246           lt_prog_compiler_pic='-KPIC'
14247           lt_prog_compiler_static='-Bstatic'
14248           lt_prog_compiler_wl=''
14249           ;;
14250         *Sun\ C*)
14251           # Sun C 5.9
14252           lt_prog_compiler_pic='-KPIC'
14253           lt_prog_compiler_static='-Bstatic'
14254           lt_prog_compiler_wl='-Wl,'
14255           ;;
14256         esac
14257         ;;
14258       esac
14259       ;;
14260
14261     newsos6)
14262       lt_prog_compiler_pic='-KPIC'
14263       lt_prog_compiler_static='-Bstatic'
14264       ;;
14265
14266     *nto* | *qnx*)
14267       # QNX uses GNU C++, but need to define -shared option too, otherwise
14268       # it will coredump.
14269       lt_prog_compiler_pic='-fPIC -shared'
14270       ;;
14271
14272     osf3* | osf4* | osf5*)
14273       lt_prog_compiler_wl='-Wl,'
14274       # All OSF/1 code is PIC.
14275       lt_prog_compiler_static='-non_shared'
14276       ;;
14277
14278     rdos*)
14279       lt_prog_compiler_static='-non_shared'
14280       ;;
14281
14282     solaris*)
14283       lt_prog_compiler_pic='-KPIC'
14284       lt_prog_compiler_static='-Bstatic'
14285       case $cc_basename in
14286       f77* | f90* | f95*)
14287         lt_prog_compiler_wl='-Qoption ld ';;
14288       *)
14289         lt_prog_compiler_wl='-Wl,';;
14290       esac
14291       ;;
14292
14293     sunos4*)
14294       lt_prog_compiler_wl='-Qoption ld '
14295       lt_prog_compiler_pic='-PIC'
14296       lt_prog_compiler_static='-Bstatic'
14297       ;;
14298
14299     sysv4 | sysv4.2uw2* | sysv4.3*)
14300       lt_prog_compiler_wl='-Wl,'
14301       lt_prog_compiler_pic='-KPIC'
14302       lt_prog_compiler_static='-Bstatic'
14303       ;;
14304
14305     sysv4*MP*)
14306       if test -d /usr/nec ;then
14307         lt_prog_compiler_pic='-Kconform_pic'
14308         lt_prog_compiler_static='-Bstatic'
14309       fi
14310       ;;
14311
14312     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14313       lt_prog_compiler_wl='-Wl,'
14314       lt_prog_compiler_pic='-KPIC'
14315       lt_prog_compiler_static='-Bstatic'
14316       ;;
14317
14318     unicos*)
14319       lt_prog_compiler_wl='-Wl,'
14320       lt_prog_compiler_can_build_shared=no
14321       ;;
14322
14323     uts4*)
14324       lt_prog_compiler_pic='-pic'
14325       lt_prog_compiler_static='-Bstatic'
14326       ;;
14327
14328     *)
14329       lt_prog_compiler_can_build_shared=no
14330       ;;
14331     esac
14332   fi
14333
14334 case $host_os in
14335   # For platforms which do not support PIC, -DPIC is meaningless:
14336   *djgpp*)
14337     lt_prog_compiler_pic=
14338     ;;
14339   *)
14340     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14341     ;;
14342 esac
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14344 $as_echo "$lt_prog_compiler_pic" >&6; }
14345
14346
14347
14348
14349
14350
14351 #
14352 # Check to make sure the PIC flag actually works.
14353 #
14354 if test -n "$lt_prog_compiler_pic"; then
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14356 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14357 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14358   $as_echo_n "(cached) " >&6
14359 else
14360   lt_cv_prog_compiler_pic_works=no
14361    ac_outfile=conftest.$ac_objext
14362    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14363    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14364    # Insert the option either (1) after the last *FLAGS variable, or
14365    # (2) before a word containing "conftest.", or (3) at the end.
14366    # Note that $ac_compile itself does not contain backslashes and begins
14367    # with a dollar sign (not a hyphen), so the echo should work correctly.
14368    # The option is referenced via a variable to avoid confusing sed.
14369    lt_compile=`echo "$ac_compile" | $SED \
14370    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14371    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14372    -e 's:$: $lt_compiler_flag:'`
14373    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14374    (eval "$lt_compile" 2>conftest.err)
14375    ac_status=$?
14376    cat conftest.err >&5
14377    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378    if (exit $ac_status) && test -s "$ac_outfile"; then
14379      # The compiler can only warn and ignore the option if not recognized
14380      # So say no if there are warnings other than the usual output.
14381      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14382      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14383      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14384        lt_cv_prog_compiler_pic_works=yes
14385      fi
14386    fi
14387    $RM conftest*
14388
14389 fi
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14391 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14392
14393 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14394     case $lt_prog_compiler_pic in
14395      "" | " "*) ;;
14396      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14397      esac
14398 else
14399     lt_prog_compiler_pic=
14400      lt_prog_compiler_can_build_shared=no
14401 fi
14402
14403 fi
14404
14405
14406
14407
14408
14409
14410 #
14411 # Check to make sure the static flag actually works.
14412 #
14413 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14415 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14416 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14417   $as_echo_n "(cached) " >&6
14418 else
14419   lt_cv_prog_compiler_static_works=no
14420    save_LDFLAGS="$LDFLAGS"
14421    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14422    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14423    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14424      # The linker can only warn and ignore the option if not recognized
14425      # So say no if there are warnings
14426      if test -s conftest.err; then
14427        # Append any errors to the config.log.
14428        cat conftest.err 1>&5
14429        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14430        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431        if diff conftest.exp conftest.er2 >/dev/null; then
14432          lt_cv_prog_compiler_static_works=yes
14433        fi
14434      else
14435        lt_cv_prog_compiler_static_works=yes
14436      fi
14437    fi
14438    $RM -r conftest*
14439    LDFLAGS="$save_LDFLAGS"
14440
14441 fi
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14443 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14444
14445 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14446     :
14447 else
14448     lt_prog_compiler_static=
14449 fi
14450
14451
14452
14453
14454
14455
14456
14457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14459 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14460   $as_echo_n "(cached) " >&6
14461 else
14462   lt_cv_prog_compiler_c_o=no
14463    $RM -r conftest 2>/dev/null
14464    mkdir conftest
14465    cd conftest
14466    mkdir out
14467    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14468
14469    lt_compiler_flag="-o out/conftest2.$ac_objext"
14470    # Insert the option either (1) after the last *FLAGS variable, or
14471    # (2) before a word containing "conftest.", or (3) at the end.
14472    # Note that $ac_compile itself does not contain backslashes and begins
14473    # with a dollar sign (not a hyphen), so the echo should work correctly.
14474    lt_compile=`echo "$ac_compile" | $SED \
14475    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14477    -e 's:$: $lt_compiler_flag:'`
14478    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14479    (eval "$lt_compile" 2>out/conftest.err)
14480    ac_status=$?
14481    cat out/conftest.err >&5
14482    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14484    then
14485      # The compiler can only warn and ignore the option if not recognized
14486      # So say no if there are warnings
14487      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14488      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14489      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14490        lt_cv_prog_compiler_c_o=yes
14491      fi
14492    fi
14493    chmod u+w . 2>&5
14494    $RM conftest*
14495    # SGI C++ compiler will create directory out/ii_files/ for
14496    # template instantiation
14497    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14498    $RM out/* && rmdir out
14499    cd ..
14500    $RM -r conftest
14501    $RM conftest*
14502
14503 fi
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14505 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14506
14507
14508
14509
14510
14511
14512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14514 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14515   $as_echo_n "(cached) " >&6
14516 else
14517   lt_cv_prog_compiler_c_o=no
14518    $RM -r conftest 2>/dev/null
14519    mkdir conftest
14520    cd conftest
14521    mkdir out
14522    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14523
14524    lt_compiler_flag="-o out/conftest2.$ac_objext"
14525    # Insert the option either (1) after the last *FLAGS variable, or
14526    # (2) before a word containing "conftest.", or (3) at the end.
14527    # Note that $ac_compile itself does not contain backslashes and begins
14528    # with a dollar sign (not a hyphen), so the echo should work correctly.
14529    lt_compile=`echo "$ac_compile" | $SED \
14530    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14531    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14532    -e 's:$: $lt_compiler_flag:'`
14533    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14534    (eval "$lt_compile" 2>out/conftest.err)
14535    ac_status=$?
14536    cat out/conftest.err >&5
14537    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14539    then
14540      # The compiler can only warn and ignore the option if not recognized
14541      # So say no if there are warnings
14542      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14543      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14544      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14545        lt_cv_prog_compiler_c_o=yes
14546      fi
14547    fi
14548    chmod u+w . 2>&5
14549    $RM conftest*
14550    # SGI C++ compiler will create directory out/ii_files/ for
14551    # template instantiation
14552    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14553    $RM out/* && rmdir out
14554    cd ..
14555    $RM -r conftest
14556    $RM conftest*
14557
14558 fi
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14560 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14561
14562
14563
14564
14565 hard_links="nottested"
14566 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14567   # do not overwrite the value of need_locks provided by the user
14568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14569 $as_echo_n "checking if we can lock with hard links... " >&6; }
14570   hard_links=yes
14571   $RM conftest*
14572   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14573   touch conftest.a
14574   ln conftest.a conftest.b 2>&5 || hard_links=no
14575   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14577 $as_echo "$hard_links" >&6; }
14578   if test "$hard_links" = no; then
14579     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14580 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14581     need_locks=warn
14582   fi
14583 else
14584   need_locks=no
14585 fi
14586
14587
14588
14589
14590
14591
14592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14593 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14594
14595   runpath_var=
14596   allow_undefined_flag=
14597   always_export_symbols=no
14598   archive_cmds=
14599   archive_expsym_cmds=
14600   compiler_needs_object=no
14601   enable_shared_with_static_runtimes=no
14602   export_dynamic_flag_spec=
14603   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14604   hardcode_automatic=no
14605   hardcode_direct=no
14606   hardcode_direct_absolute=no
14607   hardcode_libdir_flag_spec=
14608   hardcode_libdir_flag_spec_ld=
14609   hardcode_libdir_separator=
14610   hardcode_minus_L=no
14611   hardcode_shlibpath_var=unsupported
14612   inherit_rpath=no
14613   link_all_deplibs=unknown
14614   module_cmds=
14615   module_expsym_cmds=
14616   old_archive_from_new_cmds=
14617   old_archive_from_expsyms_cmds=
14618   thread_safe_flag_spec=
14619   whole_archive_flag_spec=
14620   # include_expsyms should be a list of space-separated symbols to be *always*
14621   # included in the symbol list
14622   include_expsyms=
14623   # exclude_expsyms can be an extended regexp of symbols to exclude
14624   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14625   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14626   # as well as any symbol that contains `d'.
14627   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14628   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14629   # platforms (ab)use it in PIC code, but their linkers get confused if
14630   # the symbol is explicitly referenced.  Since portable code cannot
14631   # rely on this symbol name, it's probably fine to never include it in
14632   # preloaded symbol tables.
14633   # Exclude shared library initialization/finalization symbols.
14634   extract_expsyms_cmds=
14635
14636   case $host_os in
14637   cygwin* | mingw* | pw32* | cegcc*)
14638     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14639     # When not using gcc, we currently assume that we are using
14640     # Microsoft Visual C++.
14641     if test "$GCC" != yes; then
14642       with_gnu_ld=no
14643     fi
14644     ;;
14645   interix*)
14646     # we just hope/assume this is gcc and not c89 (= MSVC++)
14647     with_gnu_ld=yes
14648     ;;
14649   openbsd*)
14650     with_gnu_ld=no
14651     ;;
14652   esac
14653
14654   ld_shlibs=yes
14655
14656   # On some targets, GNU ld is compatible enough with the native linker
14657   # that we're better off using the native interface for both.
14658   lt_use_gnu_ld_interface=no
14659   if test "$with_gnu_ld" = yes; then
14660     case $host_os in
14661       aix*)
14662         # The AIX port of GNU ld has always aspired to compatibility
14663         # with the native linker.  However, as the warning in the GNU ld
14664         # block says, versions before 2.19.5* couldn't really create working
14665         # shared libraries, regardless of the interface used.
14666         case `$LD -v 2>&1` in
14667           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14668           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14669           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14670           *)
14671             lt_use_gnu_ld_interface=yes
14672             ;;
14673         esac
14674         ;;
14675       *)
14676         lt_use_gnu_ld_interface=yes
14677         ;;
14678     esac
14679   fi
14680
14681   if test "$lt_use_gnu_ld_interface" = yes; then
14682     # If archive_cmds runs LD, not CC, wlarc should be empty
14683     wlarc='${wl}'
14684
14685     # Set some defaults for GNU ld with shared library support. These
14686     # are reset later if shared libraries are not supported. Putting them
14687     # here allows them to be overridden if necessary.
14688     runpath_var=LD_RUN_PATH
14689     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14690     export_dynamic_flag_spec='${wl}--export-dynamic'
14691     # ancient GNU ld didn't support --whole-archive et. al.
14692     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14693       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14694     else
14695       whole_archive_flag_spec=
14696     fi
14697     supports_anon_versioning=no
14698     case `$LD -v 2>&1` in
14699       *GNU\ gold*) supports_anon_versioning=yes ;;
14700       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14701       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14702       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14703       *\ 2.11.*) ;; # other 2.11 versions
14704       *) supports_anon_versioning=yes ;;
14705     esac
14706
14707     # See if GNU ld supports shared libraries.
14708     case $host_os in
14709     aix[3-9]*)
14710       # On AIX/PPC, the GNU linker is very broken
14711       if test "$host_cpu" != ia64; then
14712         ld_shlibs=no
14713         cat <<_LT_EOF 1>&2
14714
14715 *** Warning: the GNU linker, at least up to release 2.19, is reported
14716 *** to be unable to reliably create shared libraries on AIX.
14717 *** Therefore, libtool is disabling shared libraries support.  If you
14718 *** really care for shared libraries, you may want to install binutils
14719 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14720 *** You will then need to restart the configuration process.
14721
14722 _LT_EOF
14723       fi
14724       ;;
14725
14726     amigaos*)
14727       case $host_cpu in
14728       powerpc)
14729             # see comment about AmigaOS4 .so support
14730             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14731             archive_expsym_cmds=''
14732         ;;
14733       m68k)
14734             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)'
14735             hardcode_libdir_flag_spec='-L$libdir'
14736             hardcode_minus_L=yes
14737         ;;
14738       esac
14739       ;;
14740
14741     beos*)
14742       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14743         allow_undefined_flag=unsupported
14744         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14745         # support --undefined.  This deserves some investigation.  FIXME
14746         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14747       else
14748         ld_shlibs=no
14749       fi
14750       ;;
14751
14752     cygwin* | mingw* | pw32* | cegcc*)
14753       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14754       # as there is no search path for DLLs.
14755       hardcode_libdir_flag_spec='-L$libdir'
14756       export_dynamic_flag_spec='${wl}--export-all-symbols'
14757       allow_undefined_flag=unsupported
14758       always_export_symbols=no
14759       enable_shared_with_static_runtimes=yes
14760       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14761
14762       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14763         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14764         # If the export-symbols file already is a .def file (1st line
14765         # is EXPORTS), use it as is; otherwise, prepend...
14766         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14767           cp $export_symbols $output_objdir/$soname.def;
14768         else
14769           echo EXPORTS > $output_objdir/$soname.def;
14770           cat $export_symbols >> $output_objdir/$soname.def;
14771         fi~
14772         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14773       else
14774         ld_shlibs=no
14775       fi
14776       ;;
14777
14778     haiku*)
14779       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14780       link_all_deplibs=yes
14781       ;;
14782
14783     interix[3-9]*)
14784       hardcode_direct=no
14785       hardcode_shlibpath_var=no
14786       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14787       export_dynamic_flag_spec='${wl}-E'
14788       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14789       # Instead, shared libraries are loaded at an image base (0x10000000 by
14790       # default) and relocated if they conflict, which is a slow very memory
14791       # consuming and fragmenting process.  To avoid this, we pick a random,
14792       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14793       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14794       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14795       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'
14796       ;;
14797
14798     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14799       tmp_diet=no
14800       if test "$host_os" = linux-dietlibc; then
14801         case $cc_basename in
14802           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14803         esac
14804       fi
14805       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14806          && test "$tmp_diet" = no
14807       then
14808         tmp_addflag=
14809         tmp_sharedflag='-shared'
14810         case $cc_basename,$host_cpu in
14811         pgcc*)                          # Portland Group C compiler
14812           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'
14813           tmp_addflag=' $pic_flag'
14814           ;;
14815         pgf77* | pgf90* | pgf95* | pgfortran*)
14816                                         # Portland Group f77 and f90 compilers
14817           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'
14818           tmp_addflag=' $pic_flag -Mnomain' ;;
14819         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14820           tmp_addflag=' -i_dynamic' ;;
14821         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14822           tmp_addflag=' -i_dynamic -nofor_main' ;;
14823         ifc* | ifort*)                  # Intel Fortran compiler
14824           tmp_addflag=' -nofor_main' ;;
14825         lf95*)                          # Lahey Fortran 8.1
14826           whole_archive_flag_spec=
14827           tmp_sharedflag='--shared' ;;
14828         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14829           tmp_sharedflag='-qmkshrobj'
14830           tmp_addflag= ;;
14831         nvcc*)  # Cuda Compiler Driver 2.2
14832           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'
14833           compiler_needs_object=yes
14834           ;;
14835         esac
14836         case `$CC -V 2>&1 | sed 5q` in
14837         *Sun\ C*)                       # Sun C 5.9
14838           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'
14839           compiler_needs_object=yes
14840           tmp_sharedflag='-G' ;;
14841         *Sun\ F*)                       # Sun Fortran 8.3
14842           tmp_sharedflag='-G' ;;
14843         esac
14844         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14845
14846         if test "x$supports_anon_versioning" = xyes; then
14847           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14848             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14849             echo "local: *; };" >> $output_objdir/$libname.ver~
14850             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14851         fi
14852
14853         case $cc_basename in
14854         xlf* | bgf* | bgxlf* | mpixlf*)
14855           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14856           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14857           hardcode_libdir_flag_spec=
14858           hardcode_libdir_flag_spec_ld='-rpath $libdir'
14859           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14860           if test "x$supports_anon_versioning" = xyes; then
14861             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14862               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14863               echo "local: *; };" >> $output_objdir/$libname.ver~
14864               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14865           fi
14866           ;;
14867         esac
14868       else
14869         ld_shlibs=no
14870       fi
14871       ;;
14872
14873     netbsd*)
14874       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14875         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14876         wlarc=
14877       else
14878         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14880       fi
14881       ;;
14882
14883     solaris*)
14884       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14885         ld_shlibs=no
14886         cat <<_LT_EOF 1>&2
14887
14888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14889 *** create shared libraries on Solaris systems.  Therefore, libtool
14890 *** is disabling shared libraries support.  We urge you to upgrade GNU
14891 *** binutils to release 2.9.1 or newer.  Another option is to modify
14892 *** your PATH or compiler configuration so that the native linker is
14893 *** used, and then restart.
14894
14895 _LT_EOF
14896       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14897         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14898         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14899       else
14900         ld_shlibs=no
14901       fi
14902       ;;
14903
14904     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14905       case `$LD -v 2>&1` in
14906         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14907         ld_shlibs=no
14908         cat <<_LT_EOF 1>&2
14909
14910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14911 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14912 *** is disabling shared libraries support.  We urge you to upgrade GNU
14913 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14914 *** your PATH or compiler configuration so that the native linker is
14915 *** used, and then restart.
14916
14917 _LT_EOF
14918         ;;
14919         *)
14920           # For security reasons, it is highly recommended that you always
14921           # use absolute paths for naming shared libraries, and exclude the
14922           # DT_RUNPATH tag from executables and libraries.  But doing so
14923           # requires that you compile everything twice, which is a pain.
14924           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14925             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14926             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14927             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14928           else
14929             ld_shlibs=no
14930           fi
14931         ;;
14932       esac
14933       ;;
14934
14935     sunos4*)
14936       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14937       wlarc=
14938       hardcode_direct=yes
14939       hardcode_shlibpath_var=no
14940       ;;
14941
14942     *)
14943       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14944         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14945         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14946       else
14947         ld_shlibs=no
14948       fi
14949       ;;
14950     esac
14951
14952     if test "$ld_shlibs" = no; then
14953       runpath_var=
14954       hardcode_libdir_flag_spec=
14955       export_dynamic_flag_spec=
14956       whole_archive_flag_spec=
14957     fi
14958   else
14959     # PORTME fill in a description of your system's linker (not GNU ld)
14960     case $host_os in
14961     aix3*)
14962       allow_undefined_flag=unsupported
14963       always_export_symbols=yes
14964       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'
14965       # Note: this linker hardcodes the directories in LIBPATH if there
14966       # are no directories specified by -L.
14967       hardcode_minus_L=yes
14968       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14969         # Neither direct hardcoding nor static linking is supported with a
14970         # broken collect2.
14971         hardcode_direct=unsupported
14972       fi
14973       ;;
14974
14975     aix[4-9]*)
14976       if test "$host_cpu" = ia64; then
14977         # On IA64, the linker does run time linking by default, so we don't
14978         # have to do anything special.
14979         aix_use_runtimelinking=no
14980         exp_sym_flag='-Bexport'
14981         no_entry_flag=""
14982       else
14983         # If we're using GNU nm, then we don't want the "-C" option.
14984         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14985         # Also, AIX nm treats weak defined symbols like other global
14986         # defined symbols, whereas GNU nm marks them as "W".
14987         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14988           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'
14989         else
14990           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'
14991         fi
14992         aix_use_runtimelinking=no
14993
14994         # Test if we are trying to use run time linking or normal
14995         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14996         # need to do runtime linking.
14997         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14998           for ld_flag in $LDFLAGS; do
14999           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15000             aix_use_runtimelinking=yes
15001             break
15002           fi
15003           done
15004           ;;
15005         esac
15006
15007         exp_sym_flag='-bexport'
15008         no_entry_flag='-bnoentry'
15009       fi
15010
15011       # When large executables or shared objects are built, AIX ld can
15012       # have problems creating the table of contents.  If linking a library
15013       # or program results in "error TOC overflow" add -mminimal-toc to
15014       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15015       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15016
15017       archive_cmds=''
15018       hardcode_direct=yes
15019       hardcode_direct_absolute=yes
15020       hardcode_libdir_separator=':'
15021       link_all_deplibs=yes
15022       file_list_spec='${wl}-f,'
15023
15024       if test "$GCC" = yes; then
15025         case $host_os in aix4.[012]|aix4.[012].*)
15026         # We only want to do this on AIX 4.2 and lower, the check
15027         # below for broken collect2 doesn't work under 4.3+
15028           collect2name=`${CC} -print-prog-name=collect2`
15029           if test -f "$collect2name" &&
15030            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15031           then
15032           # We have reworked collect2
15033           :
15034           else
15035           # We have old collect2
15036           hardcode_direct=unsupported
15037           # It fails to find uninstalled libraries when the uninstalled
15038           # path is not listed in the libpath.  Setting hardcode_minus_L
15039           # to unsupported forces relinking
15040           hardcode_minus_L=yes
15041           hardcode_libdir_flag_spec='-L$libdir'
15042           hardcode_libdir_separator=
15043           fi
15044           ;;
15045         esac
15046         shared_flag='-shared'
15047         if test "$aix_use_runtimelinking" = yes; then
15048           shared_flag="$shared_flag "'${wl}-G'
15049         fi
15050       else
15051         # not using gcc
15052         if test "$host_cpu" = ia64; then
15053         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15054         # chokes on -Wl,-G. The following line is correct:
15055           shared_flag='-G'
15056         else
15057           if test "$aix_use_runtimelinking" = yes; then
15058             shared_flag='${wl}-G'
15059           else
15060             shared_flag='${wl}-bM:SRE'
15061           fi
15062         fi
15063       fi
15064
15065       export_dynamic_flag_spec='${wl}-bexpall'
15066       # It seems that -bexpall does not export symbols beginning with
15067       # underscore (_), so it is better to generate a list of symbols to export.
15068       always_export_symbols=yes
15069       if test "$aix_use_runtimelinking" = yes; then
15070         # Warning - without using the other runtime loading flags (-brtl),
15071         # -berok will link without error, but may produce a broken library.
15072         allow_undefined_flag='-berok'
15073         # Determine the default libpath from the value encoded in an
15074         # empty executable.
15075         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h.  */
15077
15078 int
15079 main ()
15080 {
15081
15082   ;
15083   return 0;
15084 }
15085 _ACEOF
15086 if ac_fn_c_try_link "$LINENO"; then :
15087
15088 lt_aix_libpath_sed='
15089     /Import File Strings/,/^$/ {
15090         /^0/ {
15091             s/^0  *\(.*\)$/\1/
15092             p
15093         }
15094     }'
15095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15096 # Check for a 64-bit object if we didn't find anything.
15097 if test -z "$aix_libpath"; then
15098   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15099 fi
15100 fi
15101 rm -f core conftest.err conftest.$ac_objext \
15102     conftest$ac_exeext conftest.$ac_ext
15103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15104
15105         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15106         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"
15107       else
15108         if test "$host_cpu" = ia64; then
15109           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15110           allow_undefined_flag="-z nodefs"
15111           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"
15112         else
15113          # Determine the default libpath from the value encoded in an
15114          # empty executable.
15115          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h.  */
15117
15118 int
15119 main ()
15120 {
15121
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 if ac_fn_c_try_link "$LINENO"; then :
15127
15128 lt_aix_libpath_sed='
15129     /Import File Strings/,/^$/ {
15130         /^0/ {
15131             s/^0  *\(.*\)$/\1/
15132             p
15133         }
15134     }'
15135 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15136 # Check for a 64-bit object if we didn't find anything.
15137 if test -z "$aix_libpath"; then
15138   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15139 fi
15140 fi
15141 rm -f core conftest.err conftest.$ac_objext \
15142     conftest$ac_exeext conftest.$ac_ext
15143 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15144
15145          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15146           # Warning - without using the other run time loading flags,
15147           # -berok will link without error, but may produce a broken library.
15148           no_undefined_flag=' ${wl}-bernotok'
15149           allow_undefined_flag=' ${wl}-berok'
15150           if test "$with_gnu_ld" = yes; then
15151             # We only use this code for GNU lds that support --whole-archive.
15152             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15153           else
15154             # Exported symbols can be pulled into shared objects from archives
15155             whole_archive_flag_spec='$convenience'
15156           fi
15157           archive_cmds_need_lc=yes
15158           # This is similar to how AIX traditionally builds its shared libraries.
15159           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'
15160         fi
15161       fi
15162       ;;
15163
15164     amigaos*)
15165       case $host_cpu in
15166       powerpc)
15167             # see comment about AmigaOS4 .so support
15168             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169             archive_expsym_cmds=''
15170         ;;
15171       m68k)
15172             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)'
15173             hardcode_libdir_flag_spec='-L$libdir'
15174             hardcode_minus_L=yes
15175         ;;
15176       esac
15177       ;;
15178
15179     bsdi[45]*)
15180       export_dynamic_flag_spec=-rdynamic
15181       ;;
15182
15183     cygwin* | mingw* | pw32* | cegcc*)
15184       # When not using gcc, we currently assume that we are using
15185       # Microsoft Visual C++.
15186       # hardcode_libdir_flag_spec is actually meaningless, as there is
15187       # no search path for DLLs.
15188       hardcode_libdir_flag_spec=' '
15189       allow_undefined_flag=unsupported
15190       # Tell ltmain to make .lib files, not .a files.
15191       libext=lib
15192       # Tell ltmain to make .dll files, not .so files.
15193       shrext_cmds=".dll"
15194       # FIXME: Setting linknames here is a bad hack.
15195       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15196       # The linker will automatically build a .lib file if we build a DLL.
15197       old_archive_from_new_cmds='true'
15198       # FIXME: Should let the user specify the lib program.
15199       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15200       fix_srcfile_path='`cygpath -w "$srcfile"`'
15201       enable_shared_with_static_runtimes=yes
15202       ;;
15203
15204     darwin* | rhapsody*)
15205
15206
15207   archive_cmds_need_lc=no
15208   hardcode_direct=no
15209   hardcode_automatic=yes
15210   hardcode_shlibpath_var=unsupported
15211   if test "$lt_cv_ld_force_load" = "yes"; then
15212     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\"`'
15213   else
15214     whole_archive_flag_spec=''
15215   fi
15216   link_all_deplibs=yes
15217   allow_undefined_flag="$_lt_dar_allow_undefined"
15218   case $cc_basename in
15219      ifort*) _lt_dar_can_shared=yes ;;
15220      *) _lt_dar_can_shared=$GCC ;;
15221   esac
15222   if test "$_lt_dar_can_shared" = "yes"; then
15223     output_verbose_link_cmd=func_echo_all
15224     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15225     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15226     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}"
15227     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}"
15228
15229   else
15230   ld_shlibs=no
15231   fi
15232
15233       ;;
15234
15235     dgux*)
15236       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15237       hardcode_libdir_flag_spec='-L$libdir'
15238       hardcode_shlibpath_var=no
15239       ;;
15240
15241     freebsd1*)
15242       ld_shlibs=no
15243       ;;
15244
15245     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15246     # support.  Future versions do this automatically, but an explicit c++rt0.o
15247     # does not break anything, and helps significantly (at the cost of a little
15248     # extra space).
15249     freebsd2.2*)
15250       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15251       hardcode_libdir_flag_spec='-R$libdir'
15252       hardcode_direct=yes
15253       hardcode_shlibpath_var=no
15254       ;;
15255
15256     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15257     freebsd2*)
15258       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15259       hardcode_direct=yes
15260       hardcode_minus_L=yes
15261       hardcode_shlibpath_var=no
15262       ;;
15263
15264     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15265     freebsd* | dragonfly*)
15266       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15267       hardcode_libdir_flag_spec='-R$libdir'
15268       hardcode_direct=yes
15269       hardcode_shlibpath_var=no
15270       ;;
15271
15272     hpux9*)
15273       if test "$GCC" = yes; then
15274         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'
15275       else
15276         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'
15277       fi
15278       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15279       hardcode_libdir_separator=:
15280       hardcode_direct=yes
15281
15282       # hardcode_minus_L: Not really in the search PATH,
15283       # but as the default location of the library.
15284       hardcode_minus_L=yes
15285       export_dynamic_flag_spec='${wl}-E'
15286       ;;
15287
15288     hpux10*)
15289       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15290         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15291       else
15292         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15293       fi
15294       if test "$with_gnu_ld" = no; then
15295         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15296         hardcode_libdir_flag_spec_ld='+b $libdir'
15297         hardcode_libdir_separator=:
15298         hardcode_direct=yes
15299         hardcode_direct_absolute=yes
15300         export_dynamic_flag_spec='${wl}-E'
15301         # hardcode_minus_L: Not really in the search PATH,
15302         # but as the default location of the library.
15303         hardcode_minus_L=yes
15304       fi
15305       ;;
15306
15307     hpux11*)
15308       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15309         case $host_cpu in
15310         hppa*64*)
15311           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15312           ;;
15313         ia64*)
15314           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15315           ;;
15316         *)
15317           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15318           ;;
15319         esac
15320       else
15321         case $host_cpu in
15322         hppa*64*)
15323           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15324           ;;
15325         ia64*)
15326           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15327           ;;
15328         *)
15329
15330           # Older versions of the 11.00 compiler do not understand -b yet
15331           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15332           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15333 $as_echo_n "checking if $CC understands -b... " >&6; }
15334 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15335   $as_echo_n "(cached) " >&6
15336 else
15337   lt_cv_prog_compiler__b=no
15338    save_LDFLAGS="$LDFLAGS"
15339    LDFLAGS="$LDFLAGS -b"
15340    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15341    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15342      # The linker can only warn and ignore the option if not recognized
15343      # So say no if there are warnings
15344      if test -s conftest.err; then
15345        # Append any errors to the config.log.
15346        cat conftest.err 1>&5
15347        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15348        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15349        if diff conftest.exp conftest.er2 >/dev/null; then
15350          lt_cv_prog_compiler__b=yes
15351        fi
15352      else
15353        lt_cv_prog_compiler__b=yes
15354      fi
15355    fi
15356    $RM -r conftest*
15357    LDFLAGS="$save_LDFLAGS"
15358
15359 fi
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15361 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15362
15363 if test x"$lt_cv_prog_compiler__b" = xyes; then
15364     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15365 else
15366     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15367 fi
15368
15369           ;;
15370         esac
15371       fi
15372       if test "$with_gnu_ld" = no; then
15373         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15374         hardcode_libdir_separator=:
15375
15376         case $host_cpu in
15377         hppa*64*|ia64*)
15378           hardcode_direct=no
15379           hardcode_shlibpath_var=no
15380           ;;
15381         *)
15382           hardcode_direct=yes
15383           hardcode_direct_absolute=yes
15384           export_dynamic_flag_spec='${wl}-E'
15385
15386           # hardcode_minus_L: Not really in the search PATH,
15387           # but as the default location of the library.
15388           hardcode_minus_L=yes
15389           ;;
15390         esac
15391       fi
15392       ;;
15393
15394     irix5* | irix6* | nonstopux*)
15395       if test "$GCC" = yes; then
15396         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'
15397         # Try to use the -exported_symbol ld option, if it does not
15398         # work, assume that -exports_file does not work either and
15399         # implicitly export all symbols.
15400         save_LDFLAGS="$LDFLAGS"
15401         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15402         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h.  */
15404 int foo(void) {}
15405 _ACEOF
15406 if ac_fn_c_try_link "$LINENO"; then :
15407   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'
15408
15409 fi
15410 rm -f core conftest.err conftest.$ac_objext \
15411     conftest$ac_exeext conftest.$ac_ext
15412         LDFLAGS="$save_LDFLAGS"
15413       else
15414         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'
15415         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'
15416       fi
15417       archive_cmds_need_lc='no'
15418       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15419       hardcode_libdir_separator=:
15420       inherit_rpath=yes
15421       link_all_deplibs=yes
15422       ;;
15423
15424     netbsd*)
15425       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15426         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15427       else
15428         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15429       fi
15430       hardcode_libdir_flag_spec='-R$libdir'
15431       hardcode_direct=yes
15432       hardcode_shlibpath_var=no
15433       ;;
15434
15435     newsos6)
15436       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15437       hardcode_direct=yes
15438       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15439       hardcode_libdir_separator=:
15440       hardcode_shlibpath_var=no
15441       ;;
15442
15443     *nto* | *qnx*)
15444       ;;
15445
15446     openbsd*)
15447       if test -f /usr/libexec/ld.so; then
15448         hardcode_direct=yes
15449         hardcode_shlibpath_var=no
15450         hardcode_direct_absolute=yes
15451         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15452           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15453           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15454           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15455           export_dynamic_flag_spec='${wl}-E'
15456         else
15457           case $host_os in
15458            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15459              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15460              hardcode_libdir_flag_spec='-R$libdir'
15461              ;;
15462            *)
15463              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15464              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15465              ;;
15466           esac
15467         fi
15468       else
15469         ld_shlibs=no
15470       fi
15471       ;;
15472
15473     os2*)
15474       hardcode_libdir_flag_spec='-L$libdir'
15475       hardcode_minus_L=yes
15476       allow_undefined_flag=unsupported
15477       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'
15478       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15479       ;;
15480
15481     osf3*)
15482       if test "$GCC" = yes; then
15483         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15484         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'
15485       else
15486         allow_undefined_flag=' -expect_unresolved \*'
15487         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'
15488       fi
15489       archive_cmds_need_lc='no'
15490       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15491       hardcode_libdir_separator=:
15492       ;;
15493
15494     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15495       if test "$GCC" = yes; then
15496         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15497         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'
15498         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15499       else
15500         allow_undefined_flag=' -expect_unresolved \*'
15501         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'
15502         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~
15503         $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'
15504
15505         # Both c and cxx compiler support -rpath directly
15506         hardcode_libdir_flag_spec='-rpath $libdir'
15507       fi
15508       archive_cmds_need_lc='no'
15509       hardcode_libdir_separator=:
15510       ;;
15511
15512     solaris*)
15513       no_undefined_flag=' -z defs'
15514       if test "$GCC" = yes; then
15515         wlarc='${wl}'
15516         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15517         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15518           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15519       else
15520         case `$CC -V 2>&1` in
15521         *"Compilers 5.0"*)
15522           wlarc=''
15523           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15524           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15525           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15526           ;;
15527         *)
15528           wlarc='${wl}'
15529           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15530           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15531           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15532           ;;
15533         esac
15534       fi
15535       hardcode_libdir_flag_spec='-R$libdir'
15536       hardcode_shlibpath_var=no
15537       case $host_os in
15538       solaris2.[0-5] | solaris2.[0-5].*) ;;
15539       *)
15540         # The compiler driver will combine and reorder linker options,
15541         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15542         # but is careful enough not to reorder.
15543         # Supported since Solaris 2.6 (maybe 2.5.1?)
15544         if test "$GCC" = yes; then
15545           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15546         else
15547           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15548         fi
15549         ;;
15550       esac
15551       link_all_deplibs=yes
15552       ;;
15553
15554     sunos4*)
15555       if test "x$host_vendor" = xsequent; then
15556         # Use $CC to link under sequent, because it throws in some extra .o
15557         # files that make .init and .fini sections work.
15558         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15559       else
15560         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15561       fi
15562       hardcode_libdir_flag_spec='-L$libdir'
15563       hardcode_direct=yes
15564       hardcode_minus_L=yes
15565       hardcode_shlibpath_var=no
15566       ;;
15567
15568     sysv4)
15569       case $host_vendor in
15570         sni)
15571           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572           hardcode_direct=yes # is this really true???
15573         ;;
15574         siemens)
15575           ## LD is ld it makes a PLAMLIB
15576           ## CC just makes a GrossModule.
15577           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15578           reload_cmds='$CC -r -o $output$reload_objs'
15579           hardcode_direct=no
15580         ;;
15581         motorola)
15582           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15584         ;;
15585       esac
15586       runpath_var='LD_RUN_PATH'
15587       hardcode_shlibpath_var=no
15588       ;;
15589
15590     sysv4.3*)
15591       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15592       hardcode_shlibpath_var=no
15593       export_dynamic_flag_spec='-Bexport'
15594       ;;
15595
15596     sysv4*MP*)
15597       if test -d /usr/nec; then
15598         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599         hardcode_shlibpath_var=no
15600         runpath_var=LD_RUN_PATH
15601         hardcode_runpath_var=yes
15602         ld_shlibs=yes
15603       fi
15604       ;;
15605
15606     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15607       no_undefined_flag='${wl}-z,text'
15608       archive_cmds_need_lc=no
15609       hardcode_shlibpath_var=no
15610       runpath_var='LD_RUN_PATH'
15611
15612       if test "$GCC" = yes; then
15613         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15614         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15615       else
15616         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15617         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15618       fi
15619       ;;
15620
15621     sysv5* | sco3.2v5* | sco5v6*)
15622       # Note: We can NOT use -z defs as we might desire, because we do not
15623       # link with -lc, and that would cause any symbols used from libc to
15624       # always be unresolved, which means just about no library would
15625       # ever link correctly.  If we're not using GNU ld we use -z text
15626       # though, which does catch some bad symbols but isn't as heavy-handed
15627       # as -z defs.
15628       no_undefined_flag='${wl}-z,text'
15629       allow_undefined_flag='${wl}-z,nodefs'
15630       archive_cmds_need_lc=no
15631       hardcode_shlibpath_var=no
15632       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15633       hardcode_libdir_separator=':'
15634       link_all_deplibs=yes
15635       export_dynamic_flag_spec='${wl}-Bexport'
15636       runpath_var='LD_RUN_PATH'
15637
15638       if test "$GCC" = yes; then
15639         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15641       else
15642         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15643         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15644       fi
15645       ;;
15646
15647     uts4*)
15648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649       hardcode_libdir_flag_spec='-L$libdir'
15650       hardcode_shlibpath_var=no
15651       ;;
15652
15653     *)
15654       ld_shlibs=no
15655       ;;
15656     esac
15657
15658     if test x$host_vendor = xsni; then
15659       case $host in
15660       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15661         export_dynamic_flag_spec='${wl}-Blargedynsym'
15662         ;;
15663       esac
15664     fi
15665   fi
15666
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15668 $as_echo "$ld_shlibs" >&6; }
15669 test "$ld_shlibs" = no && can_build_shared=no
15670
15671 with_gnu_ld=$with_gnu_ld
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687 #
15688 # Do we need to explicitly link libc?
15689 #
15690 case "x$archive_cmds_need_lc" in
15691 x|xyes)
15692   # Assume -lc should be added
15693   archive_cmds_need_lc=yes
15694
15695   if test "$enable_shared" = yes && test "$GCC" = yes; then
15696     case $archive_cmds in
15697     *'~'*)
15698       # FIXME: we may have to deal with multi-command sequences.
15699       ;;
15700     '$CC '*)
15701       # Test whether the compiler implicitly links with -lc since on some
15702       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15703       # to ld, don't add -lc before -lgcc.
15704       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15705 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15706 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15707   $as_echo_n "(cached) " >&6
15708 else
15709   $RM conftest*
15710         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15711
15712         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15713   (eval $ac_compile) 2>&5
15714   ac_status=$?
15715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15716   test $ac_status = 0; } 2>conftest.err; then
15717           soname=conftest
15718           lib=conftest
15719           libobjs=conftest.$ac_objext
15720           deplibs=
15721           wl=$lt_prog_compiler_wl
15722           pic_flag=$lt_prog_compiler_pic
15723           compiler_flags=-v
15724           linker_flags=-v
15725           verstring=
15726           output_objdir=.
15727           libname=conftest
15728           lt_save_allow_undefined_flag=$allow_undefined_flag
15729           allow_undefined_flag=
15730           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15731   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15732   ac_status=$?
15733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15734   test $ac_status = 0; }
15735           then
15736             lt_cv_archive_cmds_need_lc=no
15737           else
15738             lt_cv_archive_cmds_need_lc=yes
15739           fi
15740           allow_undefined_flag=$lt_save_allow_undefined_flag
15741         else
15742           cat conftest.err 1>&5
15743         fi
15744         $RM conftest*
15745
15746 fi
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15748 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15749       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15750       ;;
15751     esac
15752   fi
15753   ;;
15754 esac
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15913 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15914
15915 if test "$GCC" = yes; then
15916   case $host_os in
15917     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15918     *) lt_awk_arg="/^libraries:/" ;;
15919   esac
15920   case $host_os in
15921     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15922     *) lt_sed_strip_eq="s,=/,/,g" ;;
15923   esac
15924   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15925   case $lt_search_path_spec in
15926   *\;*)
15927     # if the path contains ";" then we assume it to be the separator
15928     # otherwise default to the standard path separator (i.e. ":") - it is
15929     # assumed that no part of a normal pathname contains ";" but that should
15930     # okay in the real world where ";" in dirpaths is itself problematic.
15931     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15932     ;;
15933   *)
15934     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15935     ;;
15936   esac
15937   # Ok, now we have the path, separated by spaces, we can step through it
15938   # and add multilib dir if necessary.
15939   lt_tmp_lt_search_path_spec=
15940   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15941   for lt_sys_path in $lt_search_path_spec; do
15942     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15943       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15944     else
15945       test -d "$lt_sys_path" && \
15946         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15947     fi
15948   done
15949   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15950 BEGIN {RS=" "; FS="/|\n";} {
15951   lt_foo="";
15952   lt_count=0;
15953   for (lt_i = NF; lt_i > 0; lt_i--) {
15954     if ($lt_i != "" && $lt_i != ".") {
15955       if ($lt_i == "..") {
15956         lt_count++;
15957       } else {
15958         if (lt_count == 0) {
15959           lt_foo="/" $lt_i lt_foo;
15960         } else {
15961           lt_count--;
15962         }
15963       }
15964     }
15965   }
15966   if (lt_foo != "") { lt_freq[lt_foo]++; }
15967   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15968 }'`
15969   # AWK program above erroneously prepends '/' to C:/dos/paths
15970   # for these hosts.
15971   case $host_os in
15972     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15973       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15974   esac
15975   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15976 else
15977   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15978 fi
15979 library_names_spec=
15980 libname_spec='lib$name'
15981 soname_spec=
15982 shrext_cmds=".so"
15983 postinstall_cmds=
15984 postuninstall_cmds=
15985 finish_cmds=
15986 finish_eval=
15987 shlibpath_var=
15988 shlibpath_overrides_runpath=unknown
15989 version_type=none
15990 dynamic_linker="$host_os ld.so"
15991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15992 need_lib_prefix=unknown
15993 hardcode_into_libs=no
15994
15995 # when you set need_version to no, make sure it does not cause -set_version
15996 # flags to be left without arguments
15997 need_version=unknown
15998
15999 case $host_os in
16000 aix3*)
16001   version_type=linux
16002   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16003   shlibpath_var=LIBPATH
16004
16005   # AIX 3 has no versioning support, so we append a major version to the name.
16006   soname_spec='${libname}${release}${shared_ext}$major'
16007   ;;
16008
16009 aix[4-9]*)
16010   version_type=linux
16011   need_lib_prefix=no
16012   need_version=no
16013   hardcode_into_libs=yes
16014   if test "$host_cpu" = ia64; then
16015     # AIX 5 supports IA64
16016     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16017     shlibpath_var=LD_LIBRARY_PATH
16018   else
16019     # With GCC up to 2.95.x, collect2 would create an import file
16020     # for dependence libraries.  The import file would start with
16021     # the line `#! .'.  This would cause the generated library to
16022     # depend on `.', always an invalid library.  This was fixed in
16023     # development snapshots of GCC prior to 3.0.
16024     case $host_os in
16025       aix4 | aix4.[01] | aix4.[01].*)
16026       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16027            echo ' yes '
16028            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16029         :
16030       else
16031         can_build_shared=no
16032       fi
16033       ;;
16034     esac
16035     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16036     # soname into executable. Probably we can add versioning support to
16037     # collect2, so additional links can be useful in future.
16038     if test "$aix_use_runtimelinking" = yes; then
16039       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16040       # instead of lib<name>.a to let people know that these are not
16041       # typical AIX shared libraries.
16042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043     else
16044       # We preserve .a as extension for shared libraries through AIX4.2
16045       # and later when we are not doing run time linking.
16046       library_names_spec='${libname}${release}.a $libname.a'
16047       soname_spec='${libname}${release}${shared_ext}$major'
16048     fi
16049     shlibpath_var=LIBPATH
16050   fi
16051   ;;
16052
16053 amigaos*)
16054   case $host_cpu in
16055   powerpc)
16056     # Since July 2007 AmigaOS4 officially supports .so libraries.
16057     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059     ;;
16060   m68k)
16061     library_names_spec='$libname.ixlibrary $libname.a'
16062     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16063     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'
16064     ;;
16065   esac
16066   ;;
16067
16068 beos*)
16069   library_names_spec='${libname}${shared_ext}'
16070   dynamic_linker="$host_os ld.so"
16071   shlibpath_var=LIBRARY_PATH
16072   ;;
16073
16074 bsdi[45]*)
16075   version_type=linux
16076   need_version=no
16077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078   soname_spec='${libname}${release}${shared_ext}$major'
16079   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16080   shlibpath_var=LD_LIBRARY_PATH
16081   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16082   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16083   # the default ld.so.conf also contains /usr/contrib/lib and
16084   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16085   # libtool to hard-code these into programs
16086   ;;
16087
16088 cygwin* | mingw* | pw32* | cegcc*)
16089   version_type=windows
16090   shrext_cmds=".dll"
16091   need_version=no
16092   need_lib_prefix=no
16093
16094   case $GCC,$host_os in
16095   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16096     library_names_spec='$libname.dll.a'
16097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16098     postinstall_cmds='base_file=`basename \${file}`~
16099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16100       dldir=$destdir/`dirname \$dlpath`~
16101       test -d \$dldir || mkdir -p \$dldir~
16102       $install_prog $dir/$dlname \$dldir/$dlname~
16103       chmod a+x \$dldir/$dlname~
16104       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16105         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16106       fi'
16107     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16108       dlpath=$dir/\$dldll~
16109        $RM \$dlpath'
16110     shlibpath_overrides_runpath=yes
16111
16112     case $host_os in
16113     cygwin*)
16114       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16115       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116
16117       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16118       ;;
16119     mingw* | cegcc*)
16120       # MinGW DLLs use traditional 'lib' prefix
16121       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16122       ;;
16123     pw32*)
16124       # pw32 DLLs use 'pw' prefix rather than 'lib'
16125       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16126       ;;
16127     esac
16128     ;;
16129
16130   *)
16131     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16132     ;;
16133   esac
16134   dynamic_linker='Win32 ld.exe'
16135   # FIXME: first we should search . and the directory the executable is in
16136   shlibpath_var=PATH
16137   ;;
16138
16139 darwin* | rhapsody*)
16140   dynamic_linker="$host_os dyld"
16141   version_type=darwin
16142   need_lib_prefix=no
16143   need_version=no
16144   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16145   soname_spec='${libname}${release}${major}$shared_ext'
16146   shlibpath_overrides_runpath=yes
16147   shlibpath_var=DYLD_LIBRARY_PATH
16148   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16149
16150   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16151   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16152   ;;
16153
16154 dgux*)
16155   version_type=linux
16156   need_lib_prefix=no
16157   need_version=no
16158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16159   soname_spec='${libname}${release}${shared_ext}$major'
16160   shlibpath_var=LD_LIBRARY_PATH
16161   ;;
16162
16163 freebsd1*)
16164   dynamic_linker=no
16165   ;;
16166
16167 freebsd* | dragonfly*)
16168   # DragonFly does not have aout.  When/if they implement a new
16169   # versioning mechanism, adjust this.
16170   if test -x /usr/bin/objformat; then
16171     objformat=`/usr/bin/objformat`
16172   else
16173     case $host_os in
16174     freebsd[123]*) objformat=aout ;;
16175     *) objformat=elf ;;
16176     esac
16177   fi
16178   version_type=freebsd-$objformat
16179   case $version_type in
16180     freebsd-elf*)
16181       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182       need_version=no
16183       need_lib_prefix=no
16184       ;;
16185     freebsd-*)
16186       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16187       need_version=yes
16188       ;;
16189   esac
16190   shlibpath_var=LD_LIBRARY_PATH
16191   case $host_os in
16192   freebsd2*)
16193     shlibpath_overrides_runpath=yes
16194     ;;
16195   freebsd3.[01]* | freebsdelf3.[01]*)
16196     shlibpath_overrides_runpath=yes
16197     hardcode_into_libs=yes
16198     ;;
16199   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16200   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16201     shlibpath_overrides_runpath=no
16202     hardcode_into_libs=yes
16203     ;;
16204   *) # from 4.6 on, and DragonFly
16205     shlibpath_overrides_runpath=yes
16206     hardcode_into_libs=yes
16207     ;;
16208   esac
16209   ;;
16210
16211 gnu*)
16212   version_type=linux
16213   need_lib_prefix=no
16214   need_version=no
16215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16216   soname_spec='${libname}${release}${shared_ext}$major'
16217   shlibpath_var=LD_LIBRARY_PATH
16218   hardcode_into_libs=yes
16219   ;;
16220
16221 haiku*)
16222   version_type=linux
16223   need_lib_prefix=no
16224   need_version=no
16225   dynamic_linker="$host_os runtime_loader"
16226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16227   soname_spec='${libname}${release}${shared_ext}$major'
16228   shlibpath_var=LIBRARY_PATH
16229   shlibpath_overrides_runpath=yes
16230   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16231   hardcode_into_libs=yes
16232   ;;
16233
16234 hpux9* | hpux10* | hpux11*)
16235   # Give a soname corresponding to the major version so that dld.sl refuses to
16236   # link against other versions.
16237   version_type=sunos
16238   need_lib_prefix=no
16239   need_version=no
16240   case $host_cpu in
16241   ia64*)
16242     shrext_cmds='.so'
16243     hardcode_into_libs=yes
16244     dynamic_linker="$host_os dld.so"
16245     shlibpath_var=LD_LIBRARY_PATH
16246     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248     soname_spec='${libname}${release}${shared_ext}$major'
16249     if test "X$HPUX_IA64_MODE" = X32; then
16250       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16251     else
16252       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16253     fi
16254     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16255     ;;
16256   hppa*64*)
16257     shrext_cmds='.sl'
16258     hardcode_into_libs=yes
16259     dynamic_linker="$host_os dld.sl"
16260     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16261     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263     soname_spec='${libname}${release}${shared_ext}$major'
16264     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16265     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16266     ;;
16267   *)
16268     shrext_cmds='.sl'
16269     dynamic_linker="$host_os dld.sl"
16270     shlibpath_var=SHLIB_PATH
16271     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273     soname_spec='${libname}${release}${shared_ext}$major'
16274     ;;
16275   esac
16276   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16277   postinstall_cmds='chmod 555 $lib'
16278   # or fails outright, so override atomically:
16279   install_override_mode=555
16280   ;;
16281
16282 interix[3-9]*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16289   shlibpath_var=LD_LIBRARY_PATH
16290   shlibpath_overrides_runpath=no
16291   hardcode_into_libs=yes
16292   ;;
16293
16294 irix5* | irix6* | nonstopux*)
16295   case $host_os in
16296     nonstopux*) version_type=nonstopux ;;
16297     *)
16298         if test "$lt_cv_prog_gnu_ld" = yes; then
16299                 version_type=linux
16300         else
16301                 version_type=irix
16302         fi ;;
16303   esac
16304   need_lib_prefix=no
16305   need_version=no
16306   soname_spec='${libname}${release}${shared_ext}$major'
16307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16308   case $host_os in
16309   irix5* | nonstopux*)
16310     libsuff= shlibsuff=
16311     ;;
16312   *)
16313     case $LD in # libtool.m4 will add one of these switches to LD
16314     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16315       libsuff= shlibsuff= libmagic=32-bit;;
16316     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16317       libsuff=32 shlibsuff=N32 libmagic=N32;;
16318     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16319       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16320     *) libsuff= shlibsuff= libmagic=never-match;;
16321     esac
16322     ;;
16323   esac
16324   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16325   shlibpath_overrides_runpath=no
16326   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16327   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16328   hardcode_into_libs=yes
16329   ;;
16330
16331 # No shared lib support for Linux oldld, aout, or coff.
16332 linux*oldld* | linux*aout* | linux*coff*)
16333   dynamic_linker=no
16334   ;;
16335
16336 # This must be Linux ELF.
16337 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16338   version_type=linux
16339   need_lib_prefix=no
16340   need_version=no
16341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342   soname_spec='${libname}${release}${shared_ext}$major'
16343   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16344   shlibpath_var=LD_LIBRARY_PATH
16345   shlibpath_overrides_runpath=no
16346
16347   # Some binutils ld are patched to set DT_RUNPATH
16348   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16349   $as_echo_n "(cached) " >&6
16350 else
16351   lt_cv_shlibpath_overrides_runpath=no
16352     save_LDFLAGS=$LDFLAGS
16353     save_libdir=$libdir
16354     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16355          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h.  */
16358
16359 int
16360 main ()
16361 {
16362
16363   ;
16364   return 0;
16365 }
16366 _ACEOF
16367 if ac_fn_c_try_link "$LINENO"; then :
16368   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16369   lt_cv_shlibpath_overrides_runpath=yes
16370 fi
16371 fi
16372 rm -f core conftest.err conftest.$ac_objext \
16373     conftest$ac_exeext conftest.$ac_ext
16374     LDFLAGS=$save_LDFLAGS
16375     libdir=$save_libdir
16376
16377 fi
16378
16379   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16380
16381   # This implies no fast_install, which is unacceptable.
16382   # Some rework will be needed to allow for fast_install
16383   # before this can be enabled.
16384   hardcode_into_libs=yes
16385
16386   # Append ld.so.conf contents to the search path
16387   if test -f /etc/ld.so.conf; then
16388     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' ' '`
16389     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16390   fi
16391
16392   # We used to test for /lib/ld.so.1 and disable shared libraries on
16393   # powerpc, because MkLinux only supported shared libraries with the
16394   # GNU dynamic linker.  Since this was broken with cross compilers,
16395   # most powerpc-linux boxes support dynamic linking these days and
16396   # people can always --disable-shared, the test was removed, and we
16397   # assume the GNU/Linux dynamic linker is in use.
16398   dynamic_linker='GNU/Linux ld.so'
16399   ;;
16400
16401 netbsd*)
16402   version_type=sunos
16403   need_lib_prefix=no
16404   need_version=no
16405   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16407     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16408     dynamic_linker='NetBSD (a.out) ld.so'
16409   else
16410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16411     soname_spec='${libname}${release}${shared_ext}$major'
16412     dynamic_linker='NetBSD ld.elf_so'
16413   fi
16414   shlibpath_var=LD_LIBRARY_PATH
16415   shlibpath_overrides_runpath=yes
16416   hardcode_into_libs=yes
16417   ;;
16418
16419 newsos6)
16420   version_type=linux
16421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422   shlibpath_var=LD_LIBRARY_PATH
16423   shlibpath_overrides_runpath=yes
16424   ;;
16425
16426 *nto* | *qnx*)
16427   version_type=qnx
16428   need_lib_prefix=no
16429   need_version=no
16430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431   soname_spec='${libname}${release}${shared_ext}$major'
16432   shlibpath_var=LD_LIBRARY_PATH
16433   shlibpath_overrides_runpath=no
16434   hardcode_into_libs=yes
16435   dynamic_linker='ldqnx.so'
16436   ;;
16437
16438 openbsd*)
16439   version_type=sunos
16440   sys_lib_dlsearch_path_spec="/usr/lib"
16441   need_lib_prefix=no
16442   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16443   case $host_os in
16444     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16445     *)                          need_version=no  ;;
16446   esac
16447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16448   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16449   shlibpath_var=LD_LIBRARY_PATH
16450   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16451     case $host_os in
16452       openbsd2.[89] | openbsd2.[89].*)
16453         shlibpath_overrides_runpath=no
16454         ;;
16455       *)
16456         shlibpath_overrides_runpath=yes
16457         ;;
16458       esac
16459   else
16460     shlibpath_overrides_runpath=yes
16461   fi
16462   ;;
16463
16464 os2*)
16465   libname_spec='$name'
16466   shrext_cmds=".dll"
16467   need_lib_prefix=no
16468   library_names_spec='$libname${shared_ext} $libname.a'
16469   dynamic_linker='OS/2 ld.exe'
16470   shlibpath_var=LIBPATH
16471   ;;
16472
16473 osf3* | osf4* | osf5*)
16474   version_type=osf
16475   need_lib_prefix=no
16476   need_version=no
16477   soname_spec='${libname}${release}${shared_ext}$major'
16478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479   shlibpath_var=LD_LIBRARY_PATH
16480   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16481   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16482   ;;
16483
16484 rdos*)
16485   dynamic_linker=no
16486   ;;
16487
16488 solaris*)
16489   version_type=linux
16490   need_lib_prefix=no
16491   need_version=no
16492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493   soname_spec='${libname}${release}${shared_ext}$major'
16494   shlibpath_var=LD_LIBRARY_PATH
16495   shlibpath_overrides_runpath=yes
16496   hardcode_into_libs=yes
16497   # ldd complains unless libraries are executable
16498   postinstall_cmds='chmod +x $lib'
16499   ;;
16500
16501 sunos4*)
16502   version_type=sunos
16503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16504   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16505   shlibpath_var=LD_LIBRARY_PATH
16506   shlibpath_overrides_runpath=yes
16507   if test "$with_gnu_ld" = yes; then
16508     need_lib_prefix=no
16509   fi
16510   need_version=yes
16511   ;;
16512
16513 sysv4 | sysv4.3*)
16514   version_type=linux
16515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516   soname_spec='${libname}${release}${shared_ext}$major'
16517   shlibpath_var=LD_LIBRARY_PATH
16518   case $host_vendor in
16519     sni)
16520       shlibpath_overrides_runpath=no
16521       need_lib_prefix=no
16522       runpath_var=LD_RUN_PATH
16523       ;;
16524     siemens)
16525       need_lib_prefix=no
16526       ;;
16527     motorola)
16528       need_lib_prefix=no
16529       need_version=no
16530       shlibpath_overrides_runpath=no
16531       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16532       ;;
16533   esac
16534   ;;
16535
16536 sysv4*MP*)
16537   if test -d /usr/nec ;then
16538     version_type=linux
16539     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16540     soname_spec='$libname${shared_ext}.$major'
16541     shlibpath_var=LD_LIBRARY_PATH
16542   fi
16543   ;;
16544
16545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16546   version_type=freebsd-elf
16547   need_lib_prefix=no
16548   need_version=no
16549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16550   soname_spec='${libname}${release}${shared_ext}$major'
16551   shlibpath_var=LD_LIBRARY_PATH
16552   shlibpath_overrides_runpath=yes
16553   hardcode_into_libs=yes
16554   if test "$with_gnu_ld" = yes; then
16555     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16556   else
16557     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16558     case $host_os in
16559       sco3.2v5*)
16560         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16561         ;;
16562     esac
16563   fi
16564   sys_lib_dlsearch_path_spec='/usr/lib'
16565   ;;
16566
16567 tpf*)
16568   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16569   version_type=linux
16570   need_lib_prefix=no
16571   need_version=no
16572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573   shlibpath_var=LD_LIBRARY_PATH
16574   shlibpath_overrides_runpath=no
16575   hardcode_into_libs=yes
16576   ;;
16577
16578 uts4*)
16579   version_type=linux
16580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581   soname_spec='${libname}${release}${shared_ext}$major'
16582   shlibpath_var=LD_LIBRARY_PATH
16583   ;;
16584
16585 *)
16586   dynamic_linker=no
16587   ;;
16588 esac
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16590 $as_echo "$dynamic_linker" >&6; }
16591 test "$dynamic_linker" = no && can_build_shared=no
16592
16593 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16594 if test "$GCC" = yes; then
16595   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16596 fi
16597
16598 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16599   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16600 fi
16601 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16602   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16603 fi
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16697 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16698 hardcode_action=
16699 if test -n "$hardcode_libdir_flag_spec" ||
16700    test -n "$runpath_var" ||
16701    test "X$hardcode_automatic" = "Xyes" ; then
16702
16703   # We can hardcode non-existent directories.
16704   if test "$hardcode_direct" != no &&
16705      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16706      # have to relink, otherwise we might link with an installed library
16707      # when we should be linking with a yet-to-be-installed one
16708      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16709      test "$hardcode_minus_L" != no; then
16710     # Linking always hardcodes the temporary library directory.
16711     hardcode_action=relink
16712   else
16713     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16714     hardcode_action=immediate
16715   fi
16716 else
16717   # We cannot hardcode anything, or else we can only hardcode existing
16718   # directories.
16719   hardcode_action=unsupported
16720 fi
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16722 $as_echo "$hardcode_action" >&6; }
16723
16724 if test "$hardcode_action" = relink ||
16725    test "$inherit_rpath" = yes; then
16726   # Fast installation is not supported
16727   enable_fast_install=no
16728 elif test "$shlibpath_overrides_runpath" = yes ||
16729      test "$enable_shared" = no; then
16730   # Fast installation is not necessary
16731   enable_fast_install=needless
16732 fi
16733
16734
16735
16736
16737
16738
16739   if test "x$enable_dlopen" != xyes; then
16740   enable_dlopen=unknown
16741   enable_dlopen_self=unknown
16742   enable_dlopen_self_static=unknown
16743 else
16744   lt_cv_dlopen=no
16745   lt_cv_dlopen_libs=
16746
16747   case $host_os in
16748   beos*)
16749     lt_cv_dlopen="load_add_on"
16750     lt_cv_dlopen_libs=
16751     lt_cv_dlopen_self=yes
16752     ;;
16753
16754   mingw* | pw32* | cegcc*)
16755     lt_cv_dlopen="LoadLibrary"
16756     lt_cv_dlopen_libs=
16757     ;;
16758
16759   cygwin*)
16760     lt_cv_dlopen="dlopen"
16761     lt_cv_dlopen_libs=
16762     ;;
16763
16764   darwin*)
16765   # if libdl is installed we need to link against it
16766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16767 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16769   $as_echo_n "(cached) " >&6
16770 else
16771   ac_check_lib_save_LIBS=$LIBS
16772 LIBS="-ldl  $LIBS"
16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h.  */
16775
16776 /* Override any GCC internal prototype to avoid an error.
16777    Use char because int might match the return type of a GCC
16778    builtin and then its argument prototype would still apply.  */
16779 #ifdef __cplusplus
16780 extern "C"
16781 #endif
16782 char dlopen ();
16783 int
16784 main ()
16785 {
16786 return dlopen ();
16787   ;
16788   return 0;
16789 }
16790 _ACEOF
16791 if ac_fn_c_try_link "$LINENO"; then :
16792   ac_cv_lib_dl_dlopen=yes
16793 else
16794   ac_cv_lib_dl_dlopen=no
16795 fi
16796 rm -f core conftest.err conftest.$ac_objext \
16797     conftest$ac_exeext conftest.$ac_ext
16798 LIBS=$ac_check_lib_save_LIBS
16799 fi
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16801 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16802 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16803   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16804 else
16805
16806     lt_cv_dlopen="dyld"
16807     lt_cv_dlopen_libs=
16808     lt_cv_dlopen_self=yes
16809
16810 fi
16811
16812     ;;
16813
16814   *)
16815     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16816 if test "x$ac_cv_func_shl_load" = x""yes; then :
16817   lt_cv_dlopen="shl_load"
16818 else
16819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16820 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16821 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16822   $as_echo_n "(cached) " >&6
16823 else
16824   ac_check_lib_save_LIBS=$LIBS
16825 LIBS="-ldld  $LIBS"
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h.  */
16828
16829 /* Override any GCC internal prototype to avoid an error.
16830    Use char because int might match the return type of a GCC
16831    builtin and then its argument prototype would still apply.  */
16832 #ifdef __cplusplus
16833 extern "C"
16834 #endif
16835 char shl_load ();
16836 int
16837 main ()
16838 {
16839 return shl_load ();
16840   ;
16841   return 0;
16842 }
16843 _ACEOF
16844 if ac_fn_c_try_link "$LINENO"; then :
16845   ac_cv_lib_dld_shl_load=yes
16846 else
16847   ac_cv_lib_dld_shl_load=no
16848 fi
16849 rm -f core conftest.err conftest.$ac_objext \
16850     conftest$ac_exeext conftest.$ac_ext
16851 LIBS=$ac_check_lib_save_LIBS
16852 fi
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16854 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16855 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16856   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16857 else
16858   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16859 if test "x$ac_cv_func_dlopen" = x""yes; then :
16860   lt_cv_dlopen="dlopen"
16861 else
16862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16863 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16865   $as_echo_n "(cached) " >&6
16866 else
16867   ac_check_lib_save_LIBS=$LIBS
16868 LIBS="-ldl  $LIBS"
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h.  */
16871
16872 /* Override any GCC internal prototype to avoid an error.
16873    Use char because int might match the return type of a GCC
16874    builtin and then its argument prototype would still apply.  */
16875 #ifdef __cplusplus
16876 extern "C"
16877 #endif
16878 char dlopen ();
16879 int
16880 main ()
16881 {
16882 return dlopen ();
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 if ac_fn_c_try_link "$LINENO"; then :
16888   ac_cv_lib_dl_dlopen=yes
16889 else
16890   ac_cv_lib_dl_dlopen=no
16891 fi
16892 rm -f core conftest.err conftest.$ac_objext \
16893     conftest$ac_exeext conftest.$ac_ext
16894 LIBS=$ac_check_lib_save_LIBS
16895 fi
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16897 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16898 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16899   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16900 else
16901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16902 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16903 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16904   $as_echo_n "(cached) " >&6
16905 else
16906   ac_check_lib_save_LIBS=$LIBS
16907 LIBS="-lsvld  $LIBS"
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h.  */
16910
16911 /* Override any GCC internal prototype to avoid an error.
16912    Use char because int might match the return type of a GCC
16913    builtin and then its argument prototype would still apply.  */
16914 #ifdef __cplusplus
16915 extern "C"
16916 #endif
16917 char dlopen ();
16918 int
16919 main ()
16920 {
16921 return dlopen ();
16922   ;
16923   return 0;
16924 }
16925 _ACEOF
16926 if ac_fn_c_try_link "$LINENO"; then :
16927   ac_cv_lib_svld_dlopen=yes
16928 else
16929   ac_cv_lib_svld_dlopen=no
16930 fi
16931 rm -f core conftest.err conftest.$ac_objext \
16932     conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16934 fi
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16936 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16937 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
16938   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16939 else
16940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16942 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16943   $as_echo_n "(cached) " >&6
16944 else
16945   ac_check_lib_save_LIBS=$LIBS
16946 LIBS="-ldld  $LIBS"
16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h.  */
16949
16950 /* Override any GCC internal prototype to avoid an error.
16951    Use char because int might match the return type of a GCC
16952    builtin and then its argument prototype would still apply.  */
16953 #ifdef __cplusplus
16954 extern "C"
16955 #endif
16956 char dld_link ();
16957 int
16958 main ()
16959 {
16960 return dld_link ();
16961   ;
16962   return 0;
16963 }
16964 _ACEOF
16965 if ac_fn_c_try_link "$LINENO"; then :
16966   ac_cv_lib_dld_dld_link=yes
16967 else
16968   ac_cv_lib_dld_dld_link=no
16969 fi
16970 rm -f core conftest.err conftest.$ac_objext \
16971     conftest$ac_exeext conftest.$ac_ext
16972 LIBS=$ac_check_lib_save_LIBS
16973 fi
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16975 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16976 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
16977   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16978 fi
16979
16980
16981 fi
16982
16983
16984 fi
16985
16986
16987 fi
16988
16989
16990 fi
16991
16992
16993 fi
16994
16995     ;;
16996   esac
16997
16998   if test "x$lt_cv_dlopen" != xno; then
16999     enable_dlopen=yes
17000   else
17001     enable_dlopen=no
17002   fi
17003
17004   case $lt_cv_dlopen in
17005   dlopen)
17006     save_CPPFLAGS="$CPPFLAGS"
17007     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17008
17009     save_LDFLAGS="$LDFLAGS"
17010     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17011
17012     save_LIBS="$LIBS"
17013     LIBS="$lt_cv_dlopen_libs $LIBS"
17014
17015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17016 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17017 if test "${lt_cv_dlopen_self+set}" = set; then :
17018   $as_echo_n "(cached) " >&6
17019 else
17020           if test "$cross_compiling" = yes; then :
17021   lt_cv_dlopen_self=cross
17022 else
17023   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17024   lt_status=$lt_dlunknown
17025   cat > conftest.$ac_ext <<_LT_EOF
17026 #line 17026 "configure"
17027 #include "confdefs.h"
17028
17029 #if HAVE_DLFCN_H
17030 #include <dlfcn.h>
17031 #endif
17032
17033 #include <stdio.h>
17034
17035 #ifdef RTLD_GLOBAL
17036 #  define LT_DLGLOBAL           RTLD_GLOBAL
17037 #else
17038 #  ifdef DL_GLOBAL
17039 #    define LT_DLGLOBAL         DL_GLOBAL
17040 #  else
17041 #    define LT_DLGLOBAL         0
17042 #  endif
17043 #endif
17044
17045 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17046    find out it does not work in some platform. */
17047 #ifndef LT_DLLAZY_OR_NOW
17048 #  ifdef RTLD_LAZY
17049 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17050 #  else
17051 #    ifdef DL_LAZY
17052 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17053 #    else
17054 #      ifdef RTLD_NOW
17055 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17056 #      else
17057 #        ifdef DL_NOW
17058 #          define LT_DLLAZY_OR_NOW      DL_NOW
17059 #        else
17060 #          define LT_DLLAZY_OR_NOW      0
17061 #        endif
17062 #      endif
17063 #    endif
17064 #  endif
17065 #endif
17066
17067 /* When -fvisbility=hidden is used, assume the code has been annotated
17068    correspondingly for the symbols needed.  */
17069 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17070 void fnord () __attribute__((visibility("default")));
17071 #endif
17072
17073 void fnord () { int i=42; }
17074 int main ()
17075 {
17076   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17077   int status = $lt_dlunknown;
17078
17079   if (self)
17080     {
17081       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17082       else
17083         {
17084           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17085           else puts (dlerror ());
17086         }
17087       /* dlclose (self); */
17088     }
17089   else
17090     puts (dlerror ());
17091
17092   return status;
17093 }
17094 _LT_EOF
17095   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17096   (eval $ac_link) 2>&5
17097   ac_status=$?
17098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17099   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17100     (./conftest; exit; ) >&5 2>/dev/null
17101     lt_status=$?
17102     case x$lt_status in
17103       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17104       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17105       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17106     esac
17107   else :
17108     # compilation failed
17109     lt_cv_dlopen_self=no
17110   fi
17111 fi
17112 rm -fr conftest*
17113
17114
17115 fi
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17117 $as_echo "$lt_cv_dlopen_self" >&6; }
17118
17119     if test "x$lt_cv_dlopen_self" = xyes; then
17120       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17121       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17122 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17123 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17124   $as_echo_n "(cached) " >&6
17125 else
17126           if test "$cross_compiling" = yes; then :
17127   lt_cv_dlopen_self_static=cross
17128 else
17129   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17130   lt_status=$lt_dlunknown
17131   cat > conftest.$ac_ext <<_LT_EOF
17132 #line 17132 "configure"
17133 #include "confdefs.h"
17134
17135 #if HAVE_DLFCN_H
17136 #include <dlfcn.h>
17137 #endif
17138
17139 #include <stdio.h>
17140
17141 #ifdef RTLD_GLOBAL
17142 #  define LT_DLGLOBAL           RTLD_GLOBAL
17143 #else
17144 #  ifdef DL_GLOBAL
17145 #    define LT_DLGLOBAL         DL_GLOBAL
17146 #  else
17147 #    define LT_DLGLOBAL         0
17148 #  endif
17149 #endif
17150
17151 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17152    find out it does not work in some platform. */
17153 #ifndef LT_DLLAZY_OR_NOW
17154 #  ifdef RTLD_LAZY
17155 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17156 #  else
17157 #    ifdef DL_LAZY
17158 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17159 #    else
17160 #      ifdef RTLD_NOW
17161 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17162 #      else
17163 #        ifdef DL_NOW
17164 #          define LT_DLLAZY_OR_NOW      DL_NOW
17165 #        else
17166 #          define LT_DLLAZY_OR_NOW      0
17167 #        endif
17168 #      endif
17169 #    endif
17170 #  endif
17171 #endif
17172
17173 /* When -fvisbility=hidden is used, assume the code has been annotated
17174    correspondingly for the symbols needed.  */
17175 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17176 void fnord () __attribute__((visibility("default")));
17177 #endif
17178
17179 void fnord () { int i=42; }
17180 int main ()
17181 {
17182   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17183   int status = $lt_dlunknown;
17184
17185   if (self)
17186     {
17187       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17188       else
17189         {
17190           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17191           else puts (dlerror ());
17192         }
17193       /* dlclose (self); */
17194     }
17195   else
17196     puts (dlerror ());
17197
17198   return status;
17199 }
17200 _LT_EOF
17201   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17202   (eval $ac_link) 2>&5
17203   ac_status=$?
17204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17205   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17206     (./conftest; exit; ) >&5 2>/dev/null
17207     lt_status=$?
17208     case x$lt_status in
17209       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17210       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17211       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17212     esac
17213   else :
17214     # compilation failed
17215     lt_cv_dlopen_self_static=no
17216   fi
17217 fi
17218 rm -fr conftest*
17219
17220
17221 fi
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17223 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17224     fi
17225
17226     CPPFLAGS="$save_CPPFLAGS"
17227     LDFLAGS="$save_LDFLAGS"
17228     LIBS="$save_LIBS"
17229     ;;
17230   esac
17231
17232   case $lt_cv_dlopen_self in
17233   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17234   *) enable_dlopen_self=unknown ;;
17235   esac
17236
17237   case $lt_cv_dlopen_self_static in
17238   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17239   *) enable_dlopen_self_static=unknown ;;
17240   esac
17241 fi
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259 striplib=
17260 old_striplib=
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17262 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17263 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17264   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17265   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17267 $as_echo "yes" >&6; }
17268 else
17269 # FIXME - insert some real tests, host_os isn't really good enough
17270   case $host_os in
17271   darwin*)
17272     if test -n "$STRIP" ; then
17273       striplib="$STRIP -x"
17274       old_striplib="$STRIP -S"
17275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17276 $as_echo "yes" >&6; }
17277     else
17278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17280     fi
17281     ;;
17282   *)
17283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284 $as_echo "no" >&6; }
17285     ;;
17286   esac
17287 fi
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300   # Report which library types will actually be built
17301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17302 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17304 $as_echo "$can_build_shared" >&6; }
17305
17306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17307 $as_echo_n "checking whether to build shared libraries... " >&6; }
17308   test "$can_build_shared" = "no" && enable_shared=no
17309
17310   # On AIX, shared libraries and static libraries use the same namespace, and
17311   # are all built from PIC.
17312   case $host_os in
17313   aix3*)
17314     test "$enable_shared" = yes && enable_static=no
17315     if test -n "$RANLIB"; then
17316       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17317       postinstall_cmds='$RANLIB $lib'
17318     fi
17319     ;;
17320
17321   aix[4-9]*)
17322     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17323       test "$enable_shared" = yes && enable_static=no
17324     fi
17325     ;;
17326   esac
17327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17328 $as_echo "$enable_shared" >&6; }
17329
17330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17331 $as_echo_n "checking whether to build static libraries... " >&6; }
17332   # Make sure either enable_shared or enable_static is yes.
17333   test "$enable_shared" = yes || enable_static=yes
17334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17335 $as_echo "$enable_static" >&6; }
17336
17337
17338
17339
17340 fi
17341 ac_ext=c
17342 ac_cpp='$CPP $CPPFLAGS'
17343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17346
17347 CC="$lt_save_CC"
17348
17349       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17350     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17351     (test "X$CXX" != "Xg++"))) ; then
17352   ac_ext=cpp
17353 ac_cpp='$CXXCPP $CPPFLAGS'
17354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17358 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17359 if test -z "$CXXCPP"; then
17360   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17361   $as_echo_n "(cached) " >&6
17362 else
17363       # Double quotes because CXXCPP needs to be expanded
17364     for CXXCPP in "$CXX -E" "/lib/cpp"
17365     do
17366       ac_preproc_ok=false
17367 for ac_cxx_preproc_warn_flag in '' yes
17368 do
17369   # Use a header file that comes with gcc, so configuring glibc
17370   # with a fresh cross-compiler works.
17371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372   # <limits.h> exists even on freestanding compilers.
17373   # On the NeXT, cc -E runs the code through the compiler's parser,
17374   # not just through cpp. "Syntax error" is here to catch this case.
17375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h.  */
17377 #ifdef __STDC__
17378 # include <limits.h>
17379 #else
17380 # include <assert.h>
17381 #endif
17382                      Syntax error
17383 _ACEOF
17384 if ac_fn_cxx_try_cpp "$LINENO"; then :
17385
17386 else
17387   # Broken: fails on valid input.
17388 continue
17389 fi
17390 rm -f conftest.err conftest.$ac_ext
17391
17392   # OK, works on sane cases.  Now check whether nonexistent headers
17393   # can be detected and how.
17394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h.  */
17396 #include <ac_nonexistent.h>
17397 _ACEOF
17398 if ac_fn_cxx_try_cpp "$LINENO"; then :
17399   # Broken: success on invalid input.
17400 continue
17401 else
17402   # Passes both tests.
17403 ac_preproc_ok=:
17404 break
17405 fi
17406 rm -f conftest.err conftest.$ac_ext
17407
17408 done
17409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17410 rm -f conftest.err conftest.$ac_ext
17411 if $ac_preproc_ok; then :
17412   break
17413 fi
17414
17415     done
17416     ac_cv_prog_CXXCPP=$CXXCPP
17417
17418 fi
17419   CXXCPP=$ac_cv_prog_CXXCPP
17420 else
17421   ac_cv_prog_CXXCPP=$CXXCPP
17422 fi
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17424 $as_echo "$CXXCPP" >&6; }
17425 ac_preproc_ok=false
17426 for ac_cxx_preproc_warn_flag in '' yes
17427 do
17428   # Use a header file that comes with gcc, so configuring glibc
17429   # with a fresh cross-compiler works.
17430   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431   # <limits.h> exists even on freestanding compilers.
17432   # On the NeXT, cc -E runs the code through the compiler's parser,
17433   # not just through cpp. "Syntax error" is here to catch this case.
17434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h.  */
17436 #ifdef __STDC__
17437 # include <limits.h>
17438 #else
17439 # include <assert.h>
17440 #endif
17441                      Syntax error
17442 _ACEOF
17443 if ac_fn_cxx_try_cpp "$LINENO"; then :
17444
17445 else
17446   # Broken: fails on valid input.
17447 continue
17448 fi
17449 rm -f conftest.err conftest.$ac_ext
17450
17451   # OK, works on sane cases.  Now check whether nonexistent headers
17452   # can be detected and how.
17453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h.  */
17455 #include <ac_nonexistent.h>
17456 _ACEOF
17457 if ac_fn_cxx_try_cpp "$LINENO"; then :
17458   # Broken: success on invalid input.
17459 continue
17460 else
17461   # Passes both tests.
17462 ac_preproc_ok=:
17463 break
17464 fi
17465 rm -f conftest.err conftest.$ac_ext
17466
17467 done
17468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17469 rm -f conftest.err conftest.$ac_ext
17470 if $ac_preproc_ok; then :
17471
17472 else
17473   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17475 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17476 See \`config.log' for more details." "$LINENO" 5; }
17477 fi
17478
17479 ac_ext=c
17480 ac_cpp='$CPP $CPPFLAGS'
17481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17484
17485 else
17486   _lt_caught_CXX_error=yes
17487 fi
17488
17489 ac_ext=cpp
17490 ac_cpp='$CXXCPP $CPPFLAGS'
17491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17494
17495 archive_cmds_need_lc_CXX=no
17496 allow_undefined_flag_CXX=
17497 always_export_symbols_CXX=no
17498 archive_expsym_cmds_CXX=
17499 compiler_needs_object_CXX=no
17500 export_dynamic_flag_spec_CXX=
17501 hardcode_direct_CXX=no
17502 hardcode_direct_absolute_CXX=no
17503 hardcode_libdir_flag_spec_CXX=
17504 hardcode_libdir_flag_spec_ld_CXX=
17505 hardcode_libdir_separator_CXX=
17506 hardcode_minus_L_CXX=no
17507 hardcode_shlibpath_var_CXX=unsupported
17508 hardcode_automatic_CXX=no
17509 inherit_rpath_CXX=no
17510 module_cmds_CXX=
17511 module_expsym_cmds_CXX=
17512 link_all_deplibs_CXX=unknown
17513 old_archive_cmds_CXX=$old_archive_cmds
17514 reload_flag_CXX=$reload_flag
17515 reload_cmds_CXX=$reload_cmds
17516 no_undefined_flag_CXX=
17517 whole_archive_flag_spec_CXX=
17518 enable_shared_with_static_runtimes_CXX=no
17519
17520 # Source file extension for C++ test sources.
17521 ac_ext=cpp
17522
17523 # Object file extension for compiled C++ test sources.
17524 objext=o
17525 objext_CXX=$objext
17526
17527 # No sense in running all these tests if we already determined that
17528 # the CXX compiler isn't working.  Some variables (like enable_shared)
17529 # are currently assumed to apply to all compilers on this platform,
17530 # and will be corrupted by setting them based on a non-working compiler.
17531 if test "$_lt_caught_CXX_error" != yes; then
17532   # Code to be used in simple compile tests
17533   lt_simple_compile_test_code="int some_variable = 0;"
17534
17535   # Code to be used in simple link tests
17536   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17537
17538   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17539
17540
17541
17542
17543
17544
17545 # If no C compiler was specified, use CC.
17546 LTCC=${LTCC-"$CC"}
17547
17548 # If no C compiler flags were specified, use CFLAGS.
17549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17550
17551 # Allow CC to be a program name with arguments.
17552 compiler=$CC
17553
17554
17555   # save warnings/boilerplate of simple test code
17556   ac_outfile=conftest.$ac_objext
17557 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17558 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17559 _lt_compiler_boilerplate=`cat conftest.err`
17560 $RM conftest*
17561
17562   ac_outfile=conftest.$ac_objext
17563 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17564 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17565 _lt_linker_boilerplate=`cat conftest.err`
17566 $RM -r conftest*
17567
17568
17569   # Allow CC to be a program name with arguments.
17570   lt_save_CC=$CC
17571   lt_save_LD=$LD
17572   lt_save_GCC=$GCC
17573   GCC=$GXX
17574   lt_save_with_gnu_ld=$with_gnu_ld
17575   lt_save_path_LD=$lt_cv_path_LD
17576   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17577     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17578   else
17579     $as_unset lt_cv_prog_gnu_ld
17580   fi
17581   if test -n "${lt_cv_path_LDCXX+set}"; then
17582     lt_cv_path_LD=$lt_cv_path_LDCXX
17583   else
17584     $as_unset lt_cv_path_LD
17585   fi
17586   test -z "${LDCXX+set}" || LD=$LDCXX
17587   CC=${CXX-"c++"}
17588   compiler=$CC
17589   compiler_CXX=$CC
17590   for cc_temp in $compiler""; do
17591   case $cc_temp in
17592     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17593     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17594     \-*) ;;
17595     *) break;;
17596   esac
17597 done
17598 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17599
17600
17601   if test -n "$compiler"; then
17602     # We don't want -fno-exception when compiling C++ code, so set the
17603     # no_builtin_flag separately
17604     if test "$GXX" = yes; then
17605       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17606     else
17607       lt_prog_compiler_no_builtin_flag_CXX=
17608     fi
17609
17610     if test "$GXX" = yes; then
17611       # Set up default GNU C++ configuration
17612
17613
17614
17615 # Check whether --with-gnu-ld was given.
17616 if test "${with_gnu_ld+set}" = set; then :
17617   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17618 else
17619   with_gnu_ld=no
17620 fi
17621
17622 ac_prog=ld
17623 if test "$GCC" = yes; then
17624   # Check if gcc -print-prog-name=ld gives a path.
17625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17626 $as_echo_n "checking for ld used by $CC... " >&6; }
17627   case $host in
17628   *-*-mingw*)
17629     # gcc leaves a trailing carriage return which upsets mingw
17630     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17631   *)
17632     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17633   esac
17634   case $ac_prog in
17635     # Accept absolute paths.
17636     [\\/]* | ?:[\\/]*)
17637       re_direlt='/[^/][^/]*/\.\./'
17638       # Canonicalize the pathname of ld
17639       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17640       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17641         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17642       done
17643       test -z "$LD" && LD="$ac_prog"
17644       ;;
17645   "")
17646     # If it fails, then pretend we aren't using GCC.
17647     ac_prog=ld
17648     ;;
17649   *)
17650     # If it is relative, then search for the first ld in PATH.
17651     with_gnu_ld=unknown
17652     ;;
17653   esac
17654 elif test "$with_gnu_ld" = yes; then
17655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17656 $as_echo_n "checking for GNU ld... " >&6; }
17657 else
17658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17659 $as_echo_n "checking for non-GNU ld... " >&6; }
17660 fi
17661 if test "${lt_cv_path_LD+set}" = set; then :
17662   $as_echo_n "(cached) " >&6
17663 else
17664   if test -z "$LD"; then
17665   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17666   for ac_dir in $PATH; do
17667     IFS="$lt_save_ifs"
17668     test -z "$ac_dir" && ac_dir=.
17669     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17670       lt_cv_path_LD="$ac_dir/$ac_prog"
17671       # Check to see if the program is GNU ld.  I'd rather use --version,
17672       # but apparently some variants of GNU ld only accept -v.
17673       # Break only if it was the GNU/non-GNU ld that we prefer.
17674       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17675       *GNU* | *'with BFD'*)
17676         test "$with_gnu_ld" != no && break
17677         ;;
17678       *)
17679         test "$with_gnu_ld" != yes && break
17680         ;;
17681       esac
17682     fi
17683   done
17684   IFS="$lt_save_ifs"
17685 else
17686   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17687 fi
17688 fi
17689
17690 LD="$lt_cv_path_LD"
17691 if test -n "$LD"; then
17692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17693 $as_echo "$LD" >&6; }
17694 else
17695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696 $as_echo "no" >&6; }
17697 fi
17698 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17700 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17701 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17702   $as_echo_n "(cached) " >&6
17703 else
17704   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17705 case `$LD -v 2>&1 </dev/null` in
17706 *GNU* | *'with BFD'*)
17707   lt_cv_prog_gnu_ld=yes
17708   ;;
17709 *)
17710   lt_cv_prog_gnu_ld=no
17711   ;;
17712 esac
17713 fi
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17715 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17716 with_gnu_ld=$lt_cv_prog_gnu_ld
17717
17718
17719
17720
17721
17722
17723
17724       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17725       # archiving commands below assume that GNU ld is being used.
17726       if test "$with_gnu_ld" = yes; then
17727         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17728         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'
17729
17730         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17731         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17732
17733         # If archive_cmds runs LD, not CC, wlarc should be empty
17734         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17735         #     investigate it a little bit more. (MM)
17736         wlarc='${wl}'
17737
17738         # ancient GNU ld didn't support --whole-archive et. al.
17739         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17740           $GREP 'no-whole-archive' > /dev/null; then
17741           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17742         else
17743           whole_archive_flag_spec_CXX=
17744         fi
17745       else
17746         with_gnu_ld=no
17747         wlarc=
17748
17749         # A generic and very simple default shared library creation
17750         # command for GNU C++ for the case where it uses the native
17751         # linker, instead of GNU ld.  If possible, this setting should
17752         # overridden to take advantage of the native linker features on
17753         # the platform it is being used on.
17754         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17755       fi
17756
17757       # Commands to make compiler produce verbose output that lists
17758       # what "hidden" libraries, object files and flags are used when
17759       # linking a shared library.
17760       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17761
17762     else
17763       GXX=no
17764       with_gnu_ld=no
17765       wlarc=
17766     fi
17767
17768     # PORTME: fill in a description of your system's C++ link characteristics
17769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17770 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17771     ld_shlibs_CXX=yes
17772     case $host_os in
17773       aix3*)
17774         # FIXME: insert proper C++ library support
17775         ld_shlibs_CXX=no
17776         ;;
17777       aix[4-9]*)
17778         if test "$host_cpu" = ia64; then
17779           # On IA64, the linker does run time linking by default, so we don't
17780           # have to do anything special.
17781           aix_use_runtimelinking=no
17782           exp_sym_flag='-Bexport'
17783           no_entry_flag=""
17784         else
17785           aix_use_runtimelinking=no
17786
17787           # Test if we are trying to use run time linking or normal
17788           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17789           # need to do runtime linking.
17790           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17791             for ld_flag in $LDFLAGS; do
17792               case $ld_flag in
17793               *-brtl*)
17794                 aix_use_runtimelinking=yes
17795                 break
17796                 ;;
17797               esac
17798             done
17799             ;;
17800           esac
17801
17802           exp_sym_flag='-bexport'
17803           no_entry_flag='-bnoentry'
17804         fi
17805
17806         # When large executables or shared objects are built, AIX ld can
17807         # have problems creating the table of contents.  If linking a library
17808         # or program results in "error TOC overflow" add -mminimal-toc to
17809         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17810         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17811
17812         archive_cmds_CXX=''
17813         hardcode_direct_CXX=yes
17814         hardcode_direct_absolute_CXX=yes
17815         hardcode_libdir_separator_CXX=':'
17816         link_all_deplibs_CXX=yes
17817         file_list_spec_CXX='${wl}-f,'
17818
17819         if test "$GXX" = yes; then
17820           case $host_os in aix4.[012]|aix4.[012].*)
17821           # We only want to do this on AIX 4.2 and lower, the check
17822           # below for broken collect2 doesn't work under 4.3+
17823           collect2name=`${CC} -print-prog-name=collect2`
17824           if test -f "$collect2name" &&
17825              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17826           then
17827             # We have reworked collect2
17828             :
17829           else
17830             # We have old collect2
17831             hardcode_direct_CXX=unsupported
17832             # It fails to find uninstalled libraries when the uninstalled
17833             # path is not listed in the libpath.  Setting hardcode_minus_L
17834             # to unsupported forces relinking
17835             hardcode_minus_L_CXX=yes
17836             hardcode_libdir_flag_spec_CXX='-L$libdir'
17837             hardcode_libdir_separator_CXX=
17838           fi
17839           esac
17840           shared_flag='-shared'
17841           if test "$aix_use_runtimelinking" = yes; then
17842             shared_flag="$shared_flag "'${wl}-G'
17843           fi
17844         else
17845           # not using gcc
17846           if test "$host_cpu" = ia64; then
17847           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17848           # chokes on -Wl,-G. The following line is correct:
17849           shared_flag='-G'
17850           else
17851             if test "$aix_use_runtimelinking" = yes; then
17852               shared_flag='${wl}-G'
17853             else
17854               shared_flag='${wl}-bM:SRE'
17855             fi
17856           fi
17857         fi
17858
17859         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17860         # It seems that -bexpall does not export symbols beginning with
17861         # underscore (_), so it is better to generate a list of symbols to
17862         # export.
17863         always_export_symbols_CXX=yes
17864         if test "$aix_use_runtimelinking" = yes; then
17865           # Warning - without using the other runtime loading flags (-brtl),
17866           # -berok will link without error, but may produce a broken library.
17867           allow_undefined_flag_CXX='-berok'
17868           # Determine the default libpath from the value encoded in an empty
17869           # executable.
17870           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h.  */
17872
17873 int
17874 main ()
17875 {
17876
17877   ;
17878   return 0;
17879 }
17880 _ACEOF
17881 if ac_fn_cxx_try_link "$LINENO"; then :
17882
17883 lt_aix_libpath_sed='
17884     /Import File Strings/,/^$/ {
17885         /^0/ {
17886             s/^0  *\(.*\)$/\1/
17887             p
17888         }
17889     }'
17890 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17891 # Check for a 64-bit object if we didn't find anything.
17892 if test -z "$aix_libpath"; then
17893   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17894 fi
17895 fi
17896 rm -f core conftest.err conftest.$ac_objext \
17897     conftest$ac_exeext conftest.$ac_ext
17898 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17899
17900           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17901
17902           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"
17903         else
17904           if test "$host_cpu" = ia64; then
17905             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17906             allow_undefined_flag_CXX="-z nodefs"
17907             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"
17908           else
17909             # Determine the default libpath from the value encoded in an
17910             # empty executable.
17911             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h.  */
17913
17914 int
17915 main ()
17916 {
17917
17918   ;
17919   return 0;
17920 }
17921 _ACEOF
17922 if ac_fn_cxx_try_link "$LINENO"; then :
17923
17924 lt_aix_libpath_sed='
17925     /Import File Strings/,/^$/ {
17926         /^0/ {
17927             s/^0  *\(.*\)$/\1/
17928             p
17929         }
17930     }'
17931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17932 # Check for a 64-bit object if we didn't find anything.
17933 if test -z "$aix_libpath"; then
17934   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17935 fi
17936 fi
17937 rm -f core conftest.err conftest.$ac_objext \
17938     conftest$ac_exeext conftest.$ac_ext
17939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17940
17941             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17942             # Warning - without using the other run time loading flags,
17943             # -berok will link without error, but may produce a broken library.
17944             no_undefined_flag_CXX=' ${wl}-bernotok'
17945             allow_undefined_flag_CXX=' ${wl}-berok'
17946             if test "$with_gnu_ld" = yes; then
17947               # We only use this code for GNU lds that support --whole-archive.
17948               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17949             else
17950               # Exported symbols can be pulled into shared objects from archives
17951               whole_archive_flag_spec_CXX='$convenience'
17952             fi
17953             archive_cmds_need_lc_CXX=yes
17954             # This is similar to how AIX traditionally builds its shared
17955             # libraries.
17956             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'
17957           fi
17958         fi
17959         ;;
17960
17961       beos*)
17962         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17963           allow_undefined_flag_CXX=unsupported
17964           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17965           # support --undefined.  This deserves some investigation.  FIXME
17966           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17967         else
17968           ld_shlibs_CXX=no
17969         fi
17970         ;;
17971
17972       chorus*)
17973         case $cc_basename in
17974           *)
17975           # FIXME: insert proper C++ library support
17976           ld_shlibs_CXX=no
17977           ;;
17978         esac
17979         ;;
17980
17981       cygwin* | mingw* | pw32* | cegcc*)
17982         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17983         # as there is no search path for DLLs.
17984         hardcode_libdir_flag_spec_CXX='-L$libdir'
17985         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17986         allow_undefined_flag_CXX=unsupported
17987         always_export_symbols_CXX=no
17988         enable_shared_with_static_runtimes_CXX=yes
17989
17990         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17991           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'
17992           # If the export-symbols file already is a .def file (1st line
17993           # is EXPORTS), use it as is; otherwise, prepend...
17994           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17995             cp $export_symbols $output_objdir/$soname.def;
17996           else
17997             echo EXPORTS > $output_objdir/$soname.def;
17998             cat $export_symbols >> $output_objdir/$soname.def;
17999           fi~
18000           $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'
18001         else
18002           ld_shlibs_CXX=no
18003         fi
18004         ;;
18005       darwin* | rhapsody*)
18006
18007
18008   archive_cmds_need_lc_CXX=no
18009   hardcode_direct_CXX=no
18010   hardcode_automatic_CXX=yes
18011   hardcode_shlibpath_var_CXX=unsupported
18012   if test "$lt_cv_ld_force_load" = "yes"; then
18013     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\"`'
18014   else
18015     whole_archive_flag_spec_CXX=''
18016   fi
18017   link_all_deplibs_CXX=yes
18018   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18019   case $cc_basename in
18020      ifort*) _lt_dar_can_shared=yes ;;
18021      *) _lt_dar_can_shared=$GCC ;;
18022   esac
18023   if test "$_lt_dar_can_shared" = "yes"; then
18024     output_verbose_link_cmd=func_echo_all
18025     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}"
18026     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18027     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}"
18028     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}"
18029        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18030       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}"
18031       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}"
18032     fi
18033
18034   else
18035   ld_shlibs_CXX=no
18036   fi
18037
18038         ;;
18039
18040       dgux*)
18041         case $cc_basename in
18042           ec++*)
18043             # FIXME: insert proper C++ library support
18044             ld_shlibs_CXX=no
18045             ;;
18046           ghcx*)
18047             # Green Hills C++ Compiler
18048             # FIXME: insert proper C++ library support
18049             ld_shlibs_CXX=no
18050             ;;
18051           *)
18052             # FIXME: insert proper C++ library support
18053             ld_shlibs_CXX=no
18054             ;;
18055         esac
18056         ;;
18057
18058       freebsd[12]*)
18059         # C++ shared libraries reported to be fairly broken before
18060         # switch to ELF
18061         ld_shlibs_CXX=no
18062         ;;
18063
18064       freebsd-elf*)
18065         archive_cmds_need_lc_CXX=no
18066         ;;
18067
18068       freebsd* | dragonfly*)
18069         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18070         # conventions
18071         ld_shlibs_CXX=yes
18072         ;;
18073
18074       gnu*)
18075         ;;
18076
18077       haiku*)
18078         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18079         link_all_deplibs_CXX=yes
18080         ;;
18081
18082       hpux9*)
18083         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18084         hardcode_libdir_separator_CXX=:
18085         export_dynamic_flag_spec_CXX='${wl}-E'
18086         hardcode_direct_CXX=yes
18087         hardcode_minus_L_CXX=yes # Not in the search PATH,
18088                                              # but as the default
18089                                              # location of the library.
18090
18091         case $cc_basename in
18092           CC*)
18093             # FIXME: insert proper C++ library support
18094             ld_shlibs_CXX=no
18095             ;;
18096           aCC*)
18097             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'
18098             # Commands to make compiler produce verbose output that lists
18099             # what "hidden" libraries, object files and flags are used when
18100             # linking a shared library.
18101             #
18102             # There doesn't appear to be a way to prevent this compiler from
18103             # explicitly linking system object files so we need to strip them
18104             # from the output so that they don't get included in the library
18105             # dependencies.
18106             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"'
18107             ;;
18108           *)
18109             if test "$GXX" = yes; then
18110               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'
18111             else
18112               # FIXME: insert proper C++ library support
18113               ld_shlibs_CXX=no
18114             fi
18115             ;;
18116         esac
18117         ;;
18118
18119       hpux10*|hpux11*)
18120         if test $with_gnu_ld = no; then
18121           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18122           hardcode_libdir_separator_CXX=:
18123
18124           case $host_cpu in
18125             hppa*64*|ia64*)
18126               ;;
18127             *)
18128               export_dynamic_flag_spec_CXX='${wl}-E'
18129               ;;
18130           esac
18131         fi
18132         case $host_cpu in
18133           hppa*64*|ia64*)
18134             hardcode_direct_CXX=no
18135             hardcode_shlibpath_var_CXX=no
18136             ;;
18137           *)
18138             hardcode_direct_CXX=yes
18139             hardcode_direct_absolute_CXX=yes
18140             hardcode_minus_L_CXX=yes # Not in the search PATH,
18141                                                  # but as the default
18142                                                  # location of the library.
18143             ;;
18144         esac
18145
18146         case $cc_basename in
18147           CC*)
18148             # FIXME: insert proper C++ library support
18149             ld_shlibs_CXX=no
18150             ;;
18151           aCC*)
18152             case $host_cpu in
18153               hppa*64*)
18154                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18155                 ;;
18156               ia64*)
18157                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18158                 ;;
18159               *)
18160                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18161                 ;;
18162             esac
18163             # Commands to make compiler produce verbose output that lists
18164             # what "hidden" libraries, object files and flags are used when
18165             # linking a shared library.
18166             #
18167             # There doesn't appear to be a way to prevent this compiler from
18168             # explicitly linking system object files so we need to strip them
18169             # from the output so that they don't get included in the library
18170             # dependencies.
18171             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"'
18172             ;;
18173           *)
18174             if test "$GXX" = yes; then
18175               if test $with_gnu_ld = no; then
18176                 case $host_cpu in
18177                   hppa*64*)
18178                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18179                     ;;
18180                   ia64*)
18181                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18182                     ;;
18183                   *)
18184                     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'
18185                     ;;
18186                 esac
18187               fi
18188             else
18189               # FIXME: insert proper C++ library support
18190               ld_shlibs_CXX=no
18191             fi
18192             ;;
18193         esac
18194         ;;
18195
18196       interix[3-9]*)
18197         hardcode_direct_CXX=no
18198         hardcode_shlibpath_var_CXX=no
18199         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18200         export_dynamic_flag_spec_CXX='${wl}-E'
18201         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18202         # Instead, shared libraries are loaded at an image base (0x10000000 by
18203         # default) and relocated if they conflict, which is a slow very memory
18204         # consuming and fragmenting process.  To avoid this, we pick a random,
18205         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18206         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18207         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'
18208         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'
18209         ;;
18210       irix5* | irix6*)
18211         case $cc_basename in
18212           CC*)
18213             # SGI C++
18214             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'
18215
18216             # Archives containing C++ object files must be created using
18217             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18218             # necessary to make sure instantiated templates are included
18219             # in the archive.
18220             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18221             ;;
18222           *)
18223             if test "$GXX" = yes; then
18224               if test "$with_gnu_ld" = no; then
18225                 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'
18226               else
18227                 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'
18228               fi
18229             fi
18230             link_all_deplibs_CXX=yes
18231             ;;
18232         esac
18233         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18234         hardcode_libdir_separator_CXX=:
18235         inherit_rpath_CXX=yes
18236         ;;
18237
18238       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18239         case $cc_basename in
18240           KCC*)
18241             # Kuck and Associates, Inc. (KAI) C++ Compiler
18242
18243             # KCC will only create a shared library if the output file
18244             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18245             # to its proper name (with version) after linking.
18246             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'
18247             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'
18248             # Commands to make compiler produce verbose output that lists
18249             # what "hidden" libraries, object files and flags are used when
18250             # linking a shared library.
18251             #
18252             # There doesn't appear to be a way to prevent this compiler from
18253             # explicitly linking system object files so we need to strip them
18254             # from the output so that they don't get included in the library
18255             # dependencies.
18256             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"'
18257
18258             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18259             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18260
18261             # Archives containing C++ object files must be created using
18262             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18263             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18264             ;;
18265           icpc* | ecpc* )
18266             # Intel C++
18267             with_gnu_ld=yes
18268             # version 8.0 and above of icpc choke on multiply defined symbols
18269             # if we add $predep_objects and $postdep_objects, however 7.1 and
18270             # earlier do not add the objects themselves.
18271             case `$CC -V 2>&1` in
18272               *"Version 7."*)
18273                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18274                 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'
18275                 ;;
18276               *)  # Version 8.0 or newer
18277                 tmp_idyn=
18278                 case $host_cpu in
18279                   ia64*) tmp_idyn=' -i_dynamic';;
18280                 esac
18281                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18282                 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'
18283                 ;;
18284             esac
18285             archive_cmds_need_lc_CXX=no
18286             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18287             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18288             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18289             ;;
18290           pgCC* | pgcpp*)
18291             # Portland Group C++ compiler
18292             case `$CC -V` in
18293             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18294               prelink_cmds_CXX='tpldir=Template.dir~
18295                 rm -rf $tpldir~
18296                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18297                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18298               old_archive_cmds_CXX='tpldir=Template.dir~
18299                 rm -rf $tpldir~
18300                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18301                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18302                 $RANLIB $oldlib'
18303               archive_cmds_CXX='tpldir=Template.dir~
18304                 rm -rf $tpldir~
18305                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18306                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18307               archive_expsym_cmds_CXX='tpldir=Template.dir~
18308                 rm -rf $tpldir~
18309                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18310                 $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'
18311               ;;
18312             *) # Version 6 and above use weak symbols
18313               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18314               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'
18315               ;;
18316             esac
18317
18318             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18319             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18320             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'
18321             ;;
18322           cxx*)
18323             # Compaq C++
18324             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18325             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'
18326
18327             runpath_var=LD_RUN_PATH
18328             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18329             hardcode_libdir_separator_CXX=:
18330
18331             # Commands to make compiler produce verbose output that lists
18332             # what "hidden" libraries, object files and flags are used when
18333             # linking a shared library.
18334             #
18335             # There doesn't appear to be a way to prevent this compiler from
18336             # explicitly linking system object files so we need to strip them
18337             # from the output so that they don't get included in the library
18338             # dependencies.
18339             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'
18340             ;;
18341           xl* | mpixl* | bgxl*)
18342             # IBM XL 8.0 on PPC, with GNU ld
18343             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18344             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18345             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18346             if test "x$supports_anon_versioning" = xyes; then
18347               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18348                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18349                 echo "local: *; };" >> $output_objdir/$libname.ver~
18350                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18351             fi
18352             ;;
18353           *)
18354             case `$CC -V 2>&1 | sed 5q` in
18355             *Sun\ C*)
18356               # Sun C++ 5.9
18357               no_undefined_flag_CXX=' -zdefs'
18358               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18359               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'
18360               hardcode_libdir_flag_spec_CXX='-R$libdir'
18361               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'
18362               compiler_needs_object_CXX=yes
18363
18364               # Not sure whether something based on
18365               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18366               # would be better.
18367               output_verbose_link_cmd='func_echo_all'
18368
18369               # Archives containing C++ object files must be created using
18370               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18371               # necessary to make sure instantiated templates are included
18372               # in the archive.
18373               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18374               ;;
18375             esac
18376             ;;
18377         esac
18378         ;;
18379
18380       lynxos*)
18381         # FIXME: insert proper C++ library support
18382         ld_shlibs_CXX=no
18383         ;;
18384
18385       m88k*)
18386         # FIXME: insert proper C++ library support
18387         ld_shlibs_CXX=no
18388         ;;
18389
18390       mvs*)
18391         case $cc_basename in
18392           cxx*)
18393             # FIXME: insert proper C++ library support
18394             ld_shlibs_CXX=no
18395             ;;
18396           *)
18397             # FIXME: insert proper C++ library support
18398             ld_shlibs_CXX=no
18399             ;;
18400         esac
18401         ;;
18402
18403       netbsd*)
18404         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18405           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18406           wlarc=
18407           hardcode_libdir_flag_spec_CXX='-R$libdir'
18408           hardcode_direct_CXX=yes
18409           hardcode_shlibpath_var_CXX=no
18410         fi
18411         # Workaround some broken pre-1.5 toolchains
18412         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18413         ;;
18414
18415       *nto* | *qnx*)
18416         ld_shlibs_CXX=yes
18417         ;;
18418
18419       openbsd2*)
18420         # C++ shared libraries are fairly broken
18421         ld_shlibs_CXX=no
18422         ;;
18423
18424       openbsd*)
18425         if test -f /usr/libexec/ld.so; then
18426           hardcode_direct_CXX=yes
18427           hardcode_shlibpath_var_CXX=no
18428           hardcode_direct_absolute_CXX=yes
18429           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18430           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18431           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18432             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18433             export_dynamic_flag_spec_CXX='${wl}-E'
18434             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18435           fi
18436           output_verbose_link_cmd=func_echo_all
18437         else
18438           ld_shlibs_CXX=no
18439         fi
18440         ;;
18441
18442       osf3* | osf4* | osf5*)
18443         case $cc_basename in
18444           KCC*)
18445             # Kuck and Associates, Inc. (KAI) C++ Compiler
18446
18447             # KCC will only create a shared library if the output file
18448             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18449             # to its proper name (with version) after linking.
18450             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'
18451
18452             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18453             hardcode_libdir_separator_CXX=:
18454
18455             # Archives containing C++ object files must be created using
18456             # the KAI C++ compiler.
18457             case $host in
18458               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18459               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18460             esac
18461             ;;
18462           RCC*)
18463             # Rational C++ 2.4.1
18464             # FIXME: insert proper C++ library support
18465             ld_shlibs_CXX=no
18466             ;;
18467           cxx*)
18468             case $host in
18469               osf3*)
18470                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18471                 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'
18472                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18473                 ;;
18474               *)
18475                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18476                 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'
18477                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18478                   echo "-hidden">> $lib.exp~
18479                   $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~
18480                   $RM $lib.exp'
18481                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18482                 ;;
18483             esac
18484
18485             hardcode_libdir_separator_CXX=:
18486
18487             # Commands to make compiler produce verbose output that lists
18488             # what "hidden" libraries, object files and flags are used when
18489             # linking a shared library.
18490             #
18491             # There doesn't appear to be a way to prevent this compiler from
18492             # explicitly linking system object files so we need to strip them
18493             # from the output so that they don't get included in the library
18494             # dependencies.
18495             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"'
18496             ;;
18497           *)
18498             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18499               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18500               case $host in
18501                 osf3*)
18502                   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'
18503                   ;;
18504                 *)
18505                   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'
18506                   ;;
18507               esac
18508
18509               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18510               hardcode_libdir_separator_CXX=:
18511
18512               # Commands to make compiler produce verbose output that lists
18513               # what "hidden" libraries, object files and flags are used when
18514               # linking a shared library.
18515               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18516
18517             else
18518               # FIXME: insert proper C++ library support
18519               ld_shlibs_CXX=no
18520             fi
18521             ;;
18522         esac
18523         ;;
18524
18525       psos*)
18526         # FIXME: insert proper C++ library support
18527         ld_shlibs_CXX=no
18528         ;;
18529
18530       sunos4*)
18531         case $cc_basename in
18532           CC*)
18533             # Sun C++ 4.x
18534             # FIXME: insert proper C++ library support
18535             ld_shlibs_CXX=no
18536             ;;
18537           lcc*)
18538             # Lucid
18539             # FIXME: insert proper C++ library support
18540             ld_shlibs_CXX=no
18541             ;;
18542           *)
18543             # FIXME: insert proper C++ library support
18544             ld_shlibs_CXX=no
18545             ;;
18546         esac
18547         ;;
18548
18549       solaris*)
18550         case $cc_basename in
18551           CC*)
18552             # Sun C++ 4.2, 5.x and Centerline C++
18553             archive_cmds_need_lc_CXX=yes
18554             no_undefined_flag_CXX=' -zdefs'
18555             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18556             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18557               $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'
18558
18559             hardcode_libdir_flag_spec_CXX='-R$libdir'
18560             hardcode_shlibpath_var_CXX=no
18561             case $host_os in
18562               solaris2.[0-5] | solaris2.[0-5].*) ;;
18563               *)
18564                 # The compiler driver will combine and reorder linker options,
18565                 # but understands `-z linker_flag'.
18566                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18567                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18568                 ;;
18569             esac
18570             link_all_deplibs_CXX=yes
18571
18572             output_verbose_link_cmd='func_echo_all'
18573
18574             # Archives containing C++ object files must be created using
18575             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18576             # necessary to make sure instantiated templates are included
18577             # in the archive.
18578             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18579             ;;
18580           gcx*)
18581             # Green Hills C++ Compiler
18582             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18583
18584             # The C++ compiler must be used to create the archive.
18585             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18586             ;;
18587           *)
18588             # GNU C++ compiler with Solaris linker
18589             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18590               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18591               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18592                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18593                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18594                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18595
18596                 # Commands to make compiler produce verbose output that lists
18597                 # what "hidden" libraries, object files and flags are used when
18598                 # linking a shared library.
18599                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18600               else
18601                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18602                 # platform.
18603                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18604                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18605                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18606
18607                 # Commands to make compiler produce verbose output that lists
18608                 # what "hidden" libraries, object files and flags are used when
18609                 # linking a shared library.
18610                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18611               fi
18612
18613               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18614               case $host_os in
18615                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18616                 *)
18617                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18618                   ;;
18619               esac
18620             fi
18621             ;;
18622         esac
18623         ;;
18624
18625     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18626       no_undefined_flag_CXX='${wl}-z,text'
18627       archive_cmds_need_lc_CXX=no
18628       hardcode_shlibpath_var_CXX=no
18629       runpath_var='LD_RUN_PATH'
18630
18631       case $cc_basename in
18632         CC*)
18633           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18634           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18635           ;;
18636         *)
18637           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18638           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18639           ;;
18640       esac
18641       ;;
18642
18643       sysv5* | sco3.2v5* | sco5v6*)
18644         # Note: We can NOT use -z defs as we might desire, because we do not
18645         # link with -lc, and that would cause any symbols used from libc to
18646         # always be unresolved, which means just about no library would
18647         # ever link correctly.  If we're not using GNU ld we use -z text
18648         # though, which does catch some bad symbols but isn't as heavy-handed
18649         # as -z defs.
18650         no_undefined_flag_CXX='${wl}-z,text'
18651         allow_undefined_flag_CXX='${wl}-z,nodefs'
18652         archive_cmds_need_lc_CXX=no
18653         hardcode_shlibpath_var_CXX=no
18654         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18655         hardcode_libdir_separator_CXX=':'
18656         link_all_deplibs_CXX=yes
18657         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18658         runpath_var='LD_RUN_PATH'
18659
18660         case $cc_basename in
18661           CC*)
18662             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18663             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18664             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18665               '"$old_archive_cmds_CXX"
18666             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18667               '"$reload_cmds_CXX"
18668             ;;
18669           *)
18670             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18671             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18672             ;;
18673         esac
18674       ;;
18675
18676       tandem*)
18677         case $cc_basename in
18678           NCC*)
18679             # NonStop-UX NCC 3.20
18680             # FIXME: insert proper C++ library support
18681             ld_shlibs_CXX=no
18682             ;;
18683           *)
18684             # FIXME: insert proper C++ library support
18685             ld_shlibs_CXX=no
18686             ;;
18687         esac
18688         ;;
18689
18690       vxworks*)
18691         # FIXME: insert proper C++ library support
18692         ld_shlibs_CXX=no
18693         ;;
18694
18695       *)
18696         # FIXME: insert proper C++ library support
18697         ld_shlibs_CXX=no
18698         ;;
18699     esac
18700
18701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18702 $as_echo "$ld_shlibs_CXX" >&6; }
18703     test "$ld_shlibs_CXX" = no && can_build_shared=no
18704
18705     GCC_CXX="$GXX"
18706     LD_CXX="$LD"
18707
18708     ## CAVEAT EMPTOR:
18709     ## There is no encapsulation within the following macros, do not change
18710     ## the running order or otherwise move them around unless you know exactly
18711     ## what you are doing...
18712     # Dependencies to place before and after the object being linked:
18713 predep_objects_CXX=
18714 postdep_objects_CXX=
18715 predeps_CXX=
18716 postdeps_CXX=
18717 compiler_lib_search_path_CXX=
18718
18719 cat > conftest.$ac_ext <<_LT_EOF
18720 class Foo
18721 {
18722 public:
18723   Foo (void) { a = 0; }
18724 private:
18725   int a;
18726 };
18727 _LT_EOF
18728
18729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18730   (eval $ac_compile) 2>&5
18731   ac_status=$?
18732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18733   test $ac_status = 0; }; then
18734   # Parse the compiler output and extract the necessary
18735   # objects, libraries and library flags.
18736
18737   # Sentinel used to keep track of whether or not we are before
18738   # the conftest object file.
18739   pre_test_object_deps_done=no
18740
18741   for p in `eval "$output_verbose_link_cmd"`; do
18742     case $p in
18743
18744     -L* | -R* | -l*)
18745        # Some compilers place space between "-{L,R}" and the path.
18746        # Remove the space.
18747        if test $p = "-L" ||
18748           test $p = "-R"; then
18749          prev=$p
18750          continue
18751        else
18752          prev=
18753        fi
18754
18755        if test "$pre_test_object_deps_done" = no; then
18756          case $p in
18757          -L* | -R*)
18758            # Internal compiler library paths should come after those
18759            # provided the user.  The postdeps already come after the
18760            # user supplied libs so there is no need to process them.
18761            if test -z "$compiler_lib_search_path_CXX"; then
18762              compiler_lib_search_path_CXX="${prev}${p}"
18763            else
18764              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18765            fi
18766            ;;
18767          # The "-l" case would never come before the object being
18768          # linked, so don't bother handling this case.
18769          esac
18770        else
18771          if test -z "$postdeps_CXX"; then
18772            postdeps_CXX="${prev}${p}"
18773          else
18774            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18775          fi
18776        fi
18777        ;;
18778
18779     *.$objext)
18780        # This assumes that the test object file only shows up
18781        # once in the compiler output.
18782        if test "$p" = "conftest.$objext"; then
18783          pre_test_object_deps_done=yes
18784          continue
18785        fi
18786
18787        if test "$pre_test_object_deps_done" = no; then
18788          if test -z "$predep_objects_CXX"; then
18789            predep_objects_CXX="$p"
18790          else
18791            predep_objects_CXX="$predep_objects_CXX $p"
18792          fi
18793        else
18794          if test -z "$postdep_objects_CXX"; then
18795            postdep_objects_CXX="$p"
18796          else
18797            postdep_objects_CXX="$postdep_objects_CXX $p"
18798          fi
18799        fi
18800        ;;
18801
18802     *) ;; # Ignore the rest.
18803
18804     esac
18805   done
18806
18807   # Clean up.
18808   rm -f a.out a.exe
18809 else
18810   echo "libtool.m4: error: problem compiling CXX test program"
18811 fi
18812
18813 $RM -f confest.$objext
18814
18815 # PORTME: override above test on systems where it is broken
18816 case $host_os in
18817 interix[3-9]*)
18818   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18819   # hack all around it, let's just trust "g++" to DTRT.
18820   predep_objects_CXX=
18821   postdep_objects_CXX=
18822   postdeps_CXX=
18823   ;;
18824
18825 linux*)
18826   case `$CC -V 2>&1 | sed 5q` in
18827   *Sun\ C*)
18828     # Sun C++ 5.9
18829
18830     # The more standards-conforming stlport4 library is
18831     # incompatible with the Cstd library. Avoid specifying
18832     # it if it's in CXXFLAGS. Ignore libCrun as
18833     # -library=stlport4 depends on it.
18834     case " $CXX $CXXFLAGS " in
18835     *" -library=stlport4 "*)
18836       solaris_use_stlport4=yes
18837       ;;
18838     esac
18839
18840     if test "$solaris_use_stlport4" != yes; then
18841       postdeps_CXX='-library=Cstd -library=Crun'
18842     fi
18843     ;;
18844   esac
18845   ;;
18846
18847 solaris*)
18848   case $cc_basename in
18849   CC*)
18850     # The more standards-conforming stlport4 library is
18851     # incompatible with the Cstd library. Avoid specifying
18852     # it if it's in CXXFLAGS. Ignore libCrun as
18853     # -library=stlport4 depends on it.
18854     case " $CXX $CXXFLAGS " in
18855     *" -library=stlport4 "*)
18856       solaris_use_stlport4=yes
18857       ;;
18858     esac
18859
18860     # Adding this requires a known-good setup of shared libraries for
18861     # Sun compiler versions before 5.6, else PIC objects from an old
18862     # archive will be linked into the output, leading to subtle bugs.
18863     if test "$solaris_use_stlport4" != yes; then
18864       postdeps_CXX='-library=Cstd -library=Crun'
18865     fi
18866     ;;
18867   esac
18868   ;;
18869 esac
18870
18871
18872 case " $postdeps_CXX " in
18873 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18874 esac
18875  compiler_lib_search_dirs_CXX=
18876 if test -n "${compiler_lib_search_path_CXX}"; then
18877  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18878 fi
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910     lt_prog_compiler_wl_CXX=
18911 lt_prog_compiler_pic_CXX=
18912 lt_prog_compiler_static_CXX=
18913
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18915 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18916
18917   # C++ specific cases for pic, static, wl, etc.
18918   if test "$GXX" = yes; then
18919     lt_prog_compiler_wl_CXX='-Wl,'
18920     lt_prog_compiler_static_CXX='-static'
18921
18922     case $host_os in
18923     aix*)
18924       # All AIX code is PIC.
18925       if test "$host_cpu" = ia64; then
18926         # AIX 5 now supports IA64 processor
18927         lt_prog_compiler_static_CXX='-Bstatic'
18928       fi
18929       ;;
18930
18931     amigaos*)
18932       case $host_cpu in
18933       powerpc)
18934             # see comment about AmigaOS4 .so support
18935             lt_prog_compiler_pic_CXX='-fPIC'
18936         ;;
18937       m68k)
18938             # FIXME: we need at least 68020 code to build shared libraries, but
18939             # adding the `-m68020' flag to GCC prevents building anything better,
18940             # like `-m68040'.
18941             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18942         ;;
18943       esac
18944       ;;
18945
18946     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18947       # PIC is the default for these OSes.
18948       ;;
18949     mingw* | cygwin* | os2* | pw32* | cegcc*)
18950       # This hack is so that the source file can tell whether it is being
18951       # built for inclusion in a dll (and should export symbols for example).
18952       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18953       # (--disable-auto-import) libraries
18954       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18955       ;;
18956     darwin* | rhapsody*)
18957       # PIC is the default on this platform
18958       # Common symbols not allowed in MH_DYLIB files
18959       lt_prog_compiler_pic_CXX='-fno-common'
18960       ;;
18961     *djgpp*)
18962       # DJGPP does not support shared libraries at all
18963       lt_prog_compiler_pic_CXX=
18964       ;;
18965     haiku*)
18966       # PIC is the default for Haiku.
18967       # The "-static" flag exists, but is broken.
18968       lt_prog_compiler_static_CXX=
18969       ;;
18970     interix[3-9]*)
18971       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18972       # Instead, we relocate shared libraries at runtime.
18973       ;;
18974     sysv4*MP*)
18975       if test -d /usr/nec; then
18976         lt_prog_compiler_pic_CXX=-Kconform_pic
18977       fi
18978       ;;
18979     hpux*)
18980       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18981       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18982       # sets the default TLS model and affects inlining.
18983       case $host_cpu in
18984       hppa*64*)
18985         ;;
18986       *)
18987         lt_prog_compiler_pic_CXX='-fPIC'
18988         ;;
18989       esac
18990       ;;
18991     *qnx* | *nto*)
18992       # QNX uses GNU C++, but need to define -shared option too, otherwise
18993       # it will coredump.
18994       lt_prog_compiler_pic_CXX='-fPIC -shared'
18995       ;;
18996     *)
18997       lt_prog_compiler_pic_CXX='-fPIC'
18998       ;;
18999     esac
19000   else
19001     case $host_os in
19002       aix[4-9]*)
19003         # All AIX code is PIC.
19004         if test "$host_cpu" = ia64; then
19005           # AIX 5 now supports IA64 processor
19006           lt_prog_compiler_static_CXX='-Bstatic'
19007         else
19008           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19009         fi
19010         ;;
19011       chorus*)
19012         case $cc_basename in
19013         cxch68*)
19014           # Green Hills C++ Compiler
19015           # _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"
19016           ;;
19017         esac
19018         ;;
19019       dgux*)
19020         case $cc_basename in
19021           ec++*)
19022             lt_prog_compiler_pic_CXX='-KPIC'
19023             ;;
19024           ghcx*)
19025             # Green Hills C++ Compiler
19026             lt_prog_compiler_pic_CXX='-pic'
19027             ;;
19028           *)
19029             ;;
19030         esac
19031         ;;
19032       freebsd* | dragonfly*)
19033         # FreeBSD uses GNU C++
19034         ;;
19035       hpux9* | hpux10* | hpux11*)
19036         case $cc_basename in
19037           CC*)
19038             lt_prog_compiler_wl_CXX='-Wl,'
19039             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19040             if test "$host_cpu" != ia64; then
19041               lt_prog_compiler_pic_CXX='+Z'
19042             fi
19043             ;;
19044           aCC*)
19045             lt_prog_compiler_wl_CXX='-Wl,'
19046             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19047             case $host_cpu in
19048             hppa*64*|ia64*)
19049               # +Z the default
19050               ;;
19051             *)
19052               lt_prog_compiler_pic_CXX='+Z'
19053               ;;
19054             esac
19055             ;;
19056           *)
19057             ;;
19058         esac
19059         ;;
19060       interix*)
19061         # This is c89, which is MS Visual C++ (no shared libs)
19062         # Anyone wants to do a port?
19063         ;;
19064       irix5* | irix6* | nonstopux*)
19065         case $cc_basename in
19066           CC*)
19067             lt_prog_compiler_wl_CXX='-Wl,'
19068             lt_prog_compiler_static_CXX='-non_shared'
19069             # CC pic flag -KPIC is the default.
19070             ;;
19071           *)
19072             ;;
19073         esac
19074         ;;
19075       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19076         case $cc_basename in
19077           KCC*)
19078             # KAI C++ Compiler
19079             lt_prog_compiler_wl_CXX='--backend -Wl,'
19080             lt_prog_compiler_pic_CXX='-fPIC'
19081             ;;
19082           ecpc* )
19083             # old Intel C++ for x86_64 which still supported -KPIC.
19084             lt_prog_compiler_wl_CXX='-Wl,'
19085             lt_prog_compiler_pic_CXX='-KPIC'
19086             lt_prog_compiler_static_CXX='-static'
19087             ;;
19088           icpc* )
19089             # Intel C++, used to be incompatible with GCC.
19090             # ICC 10 doesn't accept -KPIC any more.
19091             lt_prog_compiler_wl_CXX='-Wl,'
19092             lt_prog_compiler_pic_CXX='-fPIC'
19093             lt_prog_compiler_static_CXX='-static'
19094             ;;
19095           pgCC* | pgcpp*)
19096             # Portland Group C++ compiler
19097             lt_prog_compiler_wl_CXX='-Wl,'
19098             lt_prog_compiler_pic_CXX='-fpic'
19099             lt_prog_compiler_static_CXX='-Bstatic'
19100             ;;
19101           cxx*)
19102             # Compaq C++
19103             # Make sure the PIC flag is empty.  It appears that all Alpha
19104             # Linux and Compaq Tru64 Unix objects are PIC.
19105             lt_prog_compiler_pic_CXX=
19106             lt_prog_compiler_static_CXX='-non_shared'
19107             ;;
19108           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19109             # IBM XL 8.0, 9.0 on PPC and BlueGene
19110             lt_prog_compiler_wl_CXX='-Wl,'
19111             lt_prog_compiler_pic_CXX='-qpic'
19112             lt_prog_compiler_static_CXX='-qstaticlink'
19113             ;;
19114           *)
19115             case `$CC -V 2>&1 | sed 5q` in
19116             *Sun\ C*)
19117               # Sun C++ 5.9
19118               lt_prog_compiler_pic_CXX='-KPIC'
19119               lt_prog_compiler_static_CXX='-Bstatic'
19120               lt_prog_compiler_wl_CXX='-Qoption ld '
19121               ;;
19122             esac
19123             ;;
19124         esac
19125         ;;
19126       lynxos*)
19127         ;;
19128       m88k*)
19129         ;;
19130       mvs*)
19131         case $cc_basename in
19132           cxx*)
19133             lt_prog_compiler_pic_CXX='-W c,exportall'
19134             ;;
19135           *)
19136             ;;
19137         esac
19138         ;;
19139       netbsd*)
19140         ;;
19141       *qnx* | *nto*)
19142         # QNX uses GNU C++, but need to define -shared option too, otherwise
19143         # it will coredump.
19144         lt_prog_compiler_pic_CXX='-fPIC -shared'
19145         ;;
19146       osf3* | osf4* | osf5*)
19147         case $cc_basename in
19148           KCC*)
19149             lt_prog_compiler_wl_CXX='--backend -Wl,'
19150             ;;
19151           RCC*)
19152             # Rational C++ 2.4.1
19153             lt_prog_compiler_pic_CXX='-pic'
19154             ;;
19155           cxx*)
19156             # Digital/Compaq C++
19157             lt_prog_compiler_wl_CXX='-Wl,'
19158             # Make sure the PIC flag is empty.  It appears that all Alpha
19159             # Linux and Compaq Tru64 Unix objects are PIC.
19160             lt_prog_compiler_pic_CXX=
19161             lt_prog_compiler_static_CXX='-non_shared'
19162             ;;
19163           *)
19164             ;;
19165         esac
19166         ;;
19167       psos*)
19168         ;;
19169       solaris*)
19170         case $cc_basename in
19171           CC*)
19172             # Sun C++ 4.2, 5.x and Centerline C++
19173             lt_prog_compiler_pic_CXX='-KPIC'
19174             lt_prog_compiler_static_CXX='-Bstatic'
19175             lt_prog_compiler_wl_CXX='-Qoption ld '
19176             ;;
19177           gcx*)
19178             # Green Hills C++ Compiler
19179             lt_prog_compiler_pic_CXX='-PIC'
19180             ;;
19181           *)
19182             ;;
19183         esac
19184         ;;
19185       sunos4*)
19186         case $cc_basename in
19187           CC*)
19188             # Sun C++ 4.x
19189             lt_prog_compiler_pic_CXX='-pic'
19190             lt_prog_compiler_static_CXX='-Bstatic'
19191             ;;
19192           lcc*)
19193             # Lucid
19194             lt_prog_compiler_pic_CXX='-pic'
19195             ;;
19196           *)
19197             ;;
19198         esac
19199         ;;
19200       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19201         case $cc_basename in
19202           CC*)
19203             lt_prog_compiler_wl_CXX='-Wl,'
19204             lt_prog_compiler_pic_CXX='-KPIC'
19205             lt_prog_compiler_static_CXX='-Bstatic'
19206             ;;
19207         esac
19208         ;;
19209       tandem*)
19210         case $cc_basename in
19211           NCC*)
19212             # NonStop-UX NCC 3.20
19213             lt_prog_compiler_pic_CXX='-KPIC'
19214             ;;
19215           *)
19216             ;;
19217         esac
19218         ;;
19219       vxworks*)
19220         ;;
19221       *)
19222         lt_prog_compiler_can_build_shared_CXX=no
19223         ;;
19224     esac
19225   fi
19226
19227 case $host_os in
19228   # For platforms which do not support PIC, -DPIC is meaningless:
19229   *djgpp*)
19230     lt_prog_compiler_pic_CXX=
19231     ;;
19232   *)
19233     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19234     ;;
19235 esac
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19237 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19238
19239
19240
19241 #
19242 # Check to make sure the PIC flag actually works.
19243 #
19244 if test -n "$lt_prog_compiler_pic_CXX"; then
19245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19246 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19247 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19248   $as_echo_n "(cached) " >&6
19249 else
19250   lt_cv_prog_compiler_pic_works_CXX=no
19251    ac_outfile=conftest.$ac_objext
19252    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19253    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19254    # Insert the option either (1) after the last *FLAGS variable, or
19255    # (2) before a word containing "conftest.", or (3) at the end.
19256    # Note that $ac_compile itself does not contain backslashes and begins
19257    # with a dollar sign (not a hyphen), so the echo should work correctly.
19258    # The option is referenced via a variable to avoid confusing sed.
19259    lt_compile=`echo "$ac_compile" | $SED \
19260    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19262    -e 's:$: $lt_compiler_flag:'`
19263    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19264    (eval "$lt_compile" 2>conftest.err)
19265    ac_status=$?
19266    cat conftest.err >&5
19267    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268    if (exit $ac_status) && test -s "$ac_outfile"; then
19269      # The compiler can only warn and ignore the option if not recognized
19270      # So say no if there are warnings other than the usual output.
19271      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19272      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19273      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19274        lt_cv_prog_compiler_pic_works_CXX=yes
19275      fi
19276    fi
19277    $RM conftest*
19278
19279 fi
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19281 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19282
19283 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19284     case $lt_prog_compiler_pic_CXX in
19285      "" | " "*) ;;
19286      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19287      esac
19288 else
19289     lt_prog_compiler_pic_CXX=
19290      lt_prog_compiler_can_build_shared_CXX=no
19291 fi
19292
19293 fi
19294
19295
19296
19297 #
19298 # Check to make sure the static flag actually works.
19299 #
19300 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19303 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19304   $as_echo_n "(cached) " >&6
19305 else
19306   lt_cv_prog_compiler_static_works_CXX=no
19307    save_LDFLAGS="$LDFLAGS"
19308    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19309    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19310    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19311      # The linker can only warn and ignore the option if not recognized
19312      # So say no if there are warnings
19313      if test -s conftest.err; then
19314        # Append any errors to the config.log.
19315        cat conftest.err 1>&5
19316        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19317        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19318        if diff conftest.exp conftest.er2 >/dev/null; then
19319          lt_cv_prog_compiler_static_works_CXX=yes
19320        fi
19321      else
19322        lt_cv_prog_compiler_static_works_CXX=yes
19323      fi
19324    fi
19325    $RM -r conftest*
19326    LDFLAGS="$save_LDFLAGS"
19327
19328 fi
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19330 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19331
19332 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19333     :
19334 else
19335     lt_prog_compiler_static_CXX=
19336 fi
19337
19338
19339
19340
19341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19343 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19344   $as_echo_n "(cached) " >&6
19345 else
19346   lt_cv_prog_compiler_c_o_CXX=no
19347    $RM -r conftest 2>/dev/null
19348    mkdir conftest
19349    cd conftest
19350    mkdir out
19351    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19352
19353    lt_compiler_flag="-o out/conftest2.$ac_objext"
19354    # Insert the option either (1) after the last *FLAGS variable, or
19355    # (2) before a word containing "conftest.", or (3) at the end.
19356    # Note that $ac_compile itself does not contain backslashes and begins
19357    # with a dollar sign (not a hyphen), so the echo should work correctly.
19358    lt_compile=`echo "$ac_compile" | $SED \
19359    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19361    -e 's:$: $lt_compiler_flag:'`
19362    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19363    (eval "$lt_compile" 2>out/conftest.err)
19364    ac_status=$?
19365    cat out/conftest.err >&5
19366    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19368    then
19369      # The compiler can only warn and ignore the option if not recognized
19370      # So say no if there are warnings
19371      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19372      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19373      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19374        lt_cv_prog_compiler_c_o_CXX=yes
19375      fi
19376    fi
19377    chmod u+w . 2>&5
19378    $RM conftest*
19379    # SGI C++ compiler will create directory out/ii_files/ for
19380    # template instantiation
19381    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19382    $RM out/* && rmdir out
19383    cd ..
19384    $RM -r conftest
19385    $RM conftest*
19386
19387 fi
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19389 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19390
19391
19392
19393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19395 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19396   $as_echo_n "(cached) " >&6
19397 else
19398   lt_cv_prog_compiler_c_o_CXX=no
19399    $RM -r conftest 2>/dev/null
19400    mkdir conftest
19401    cd conftest
19402    mkdir out
19403    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19404
19405    lt_compiler_flag="-o out/conftest2.$ac_objext"
19406    # Insert the option either (1) after the last *FLAGS variable, or
19407    # (2) before a word containing "conftest.", or (3) at the end.
19408    # Note that $ac_compile itself does not contain backslashes and begins
19409    # with a dollar sign (not a hyphen), so the echo should work correctly.
19410    lt_compile=`echo "$ac_compile" | $SED \
19411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19413    -e 's:$: $lt_compiler_flag:'`
19414    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19415    (eval "$lt_compile" 2>out/conftest.err)
19416    ac_status=$?
19417    cat out/conftest.err >&5
19418    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19420    then
19421      # The compiler can only warn and ignore the option if not recognized
19422      # So say no if there are warnings
19423      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19424      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19425      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19426        lt_cv_prog_compiler_c_o_CXX=yes
19427      fi
19428    fi
19429    chmod u+w . 2>&5
19430    $RM conftest*
19431    # SGI C++ compiler will create directory out/ii_files/ for
19432    # template instantiation
19433    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19434    $RM out/* && rmdir out
19435    cd ..
19436    $RM -r conftest
19437    $RM conftest*
19438
19439 fi
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19441 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19442
19443
19444
19445
19446 hard_links="nottested"
19447 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19448   # do not overwrite the value of need_locks provided by the user
19449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19450 $as_echo_n "checking if we can lock with hard links... " >&6; }
19451   hard_links=yes
19452   $RM conftest*
19453   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19454   touch conftest.a
19455   ln conftest.a conftest.b 2>&5 || hard_links=no
19456   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19458 $as_echo "$hard_links" >&6; }
19459   if test "$hard_links" = no; then
19460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19461 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19462     need_locks=warn
19463   fi
19464 else
19465   need_locks=no
19466 fi
19467
19468
19469
19470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19472
19473   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19474   case $host_os in
19475   aix[4-9]*)
19476     # If we're using GNU nm, then we don't want the "-C" option.
19477     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19478     # Also, AIX nm treats weak defined symbols like other global defined
19479     # symbols, whereas GNU nm marks them as "W".
19480     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19481       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'
19482     else
19483       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'
19484     fi
19485     ;;
19486   pw32*)
19487     export_symbols_cmds_CXX="$ltdll_cmds"
19488   ;;
19489   cygwin* | mingw* | cegcc*)
19490     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'
19491   ;;
19492   *)
19493     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19494   ;;
19495   esac
19496   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19497
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19499 $as_echo "$ld_shlibs_CXX" >&6; }
19500 test "$ld_shlibs_CXX" = no && can_build_shared=no
19501
19502 with_gnu_ld_CXX=$with_gnu_ld
19503
19504
19505
19506
19507
19508
19509 #
19510 # Do we need to explicitly link libc?
19511 #
19512 case "x$archive_cmds_need_lc_CXX" in
19513 x|xyes)
19514   # Assume -lc should be added
19515   archive_cmds_need_lc_CXX=yes
19516
19517   if test "$enable_shared" = yes && test "$GCC" = yes; then
19518     case $archive_cmds_CXX in
19519     *'~'*)
19520       # FIXME: we may have to deal with multi-command sequences.
19521       ;;
19522     '$CC '*)
19523       # Test whether the compiler implicitly links with -lc since on some
19524       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19525       # to ld, don't add -lc before -lgcc.
19526       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19527 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19528 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19529   $as_echo_n "(cached) " >&6
19530 else
19531   $RM conftest*
19532         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19533
19534         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19535   (eval $ac_compile) 2>&5
19536   ac_status=$?
19537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19538   test $ac_status = 0; } 2>conftest.err; then
19539           soname=conftest
19540           lib=conftest
19541           libobjs=conftest.$ac_objext
19542           deplibs=
19543           wl=$lt_prog_compiler_wl_CXX
19544           pic_flag=$lt_prog_compiler_pic_CXX
19545           compiler_flags=-v
19546           linker_flags=-v
19547           verstring=
19548           output_objdir=.
19549           libname=conftest
19550           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19551           allow_undefined_flag_CXX=
19552           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19553   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19554   ac_status=$?
19555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19556   test $ac_status = 0; }
19557           then
19558             lt_cv_archive_cmds_need_lc_CXX=no
19559           else
19560             lt_cv_archive_cmds_need_lc_CXX=yes
19561           fi
19562           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19563         else
19564           cat conftest.err 1>&5
19565         fi
19566         $RM conftest*
19567
19568 fi
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19570 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19571       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19572       ;;
19573     esac
19574   fi
19575   ;;
19576 esac
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19642 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19643
19644 library_names_spec=
19645 libname_spec='lib$name'
19646 soname_spec=
19647 shrext_cmds=".so"
19648 postinstall_cmds=
19649 postuninstall_cmds=
19650 finish_cmds=
19651 finish_eval=
19652 shlibpath_var=
19653 shlibpath_overrides_runpath=unknown
19654 version_type=none
19655 dynamic_linker="$host_os ld.so"
19656 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19657 need_lib_prefix=unknown
19658 hardcode_into_libs=no
19659
19660 # when you set need_version to no, make sure it does not cause -set_version
19661 # flags to be left without arguments
19662 need_version=unknown
19663
19664 case $host_os in
19665 aix3*)
19666   version_type=linux
19667   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19668   shlibpath_var=LIBPATH
19669
19670   # AIX 3 has no versioning support, so we append a major version to the name.
19671   soname_spec='${libname}${release}${shared_ext}$major'
19672   ;;
19673
19674 aix[4-9]*)
19675   version_type=linux
19676   need_lib_prefix=no
19677   need_version=no
19678   hardcode_into_libs=yes
19679   if test "$host_cpu" = ia64; then
19680     # AIX 5 supports IA64
19681     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19682     shlibpath_var=LD_LIBRARY_PATH
19683   else
19684     # With GCC up to 2.95.x, collect2 would create an import file
19685     # for dependence libraries.  The import file would start with
19686     # the line `#! .'.  This would cause the generated library to
19687     # depend on `.', always an invalid library.  This was fixed in
19688     # development snapshots of GCC prior to 3.0.
19689     case $host_os in
19690       aix4 | aix4.[01] | aix4.[01].*)
19691       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19692            echo ' yes '
19693            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19694         :
19695       else
19696         can_build_shared=no
19697       fi
19698       ;;
19699     esac
19700     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19701     # soname into executable. Probably we can add versioning support to
19702     # collect2, so additional links can be useful in future.
19703     if test "$aix_use_runtimelinking" = yes; then
19704       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19705       # instead of lib<name>.a to let people know that these are not
19706       # typical AIX shared libraries.
19707       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19708     else
19709       # We preserve .a as extension for shared libraries through AIX4.2
19710       # and later when we are not doing run time linking.
19711       library_names_spec='${libname}${release}.a $libname.a'
19712       soname_spec='${libname}${release}${shared_ext}$major'
19713     fi
19714     shlibpath_var=LIBPATH
19715   fi
19716   ;;
19717
19718 amigaos*)
19719   case $host_cpu in
19720   powerpc)
19721     # Since July 2007 AmigaOS4 officially supports .so libraries.
19722     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724     ;;
19725   m68k)
19726     library_names_spec='$libname.ixlibrary $libname.a'
19727     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19728     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'
19729     ;;
19730   esac
19731   ;;
19732
19733 beos*)
19734   library_names_spec='${libname}${shared_ext}'
19735   dynamic_linker="$host_os ld.so"
19736   shlibpath_var=LIBRARY_PATH
19737   ;;
19738
19739 bsdi[45]*)
19740   version_type=linux
19741   need_version=no
19742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19743   soname_spec='${libname}${release}${shared_ext}$major'
19744   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19745   shlibpath_var=LD_LIBRARY_PATH
19746   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19747   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19748   # the default ld.so.conf also contains /usr/contrib/lib and
19749   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19750   # libtool to hard-code these into programs
19751   ;;
19752
19753 cygwin* | mingw* | pw32* | cegcc*)
19754   version_type=windows
19755   shrext_cmds=".dll"
19756   need_version=no
19757   need_lib_prefix=no
19758
19759   case $GCC,$host_os in
19760   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19761     library_names_spec='$libname.dll.a'
19762     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19763     postinstall_cmds='base_file=`basename \${file}`~
19764       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19765       dldir=$destdir/`dirname \$dlpath`~
19766       test -d \$dldir || mkdir -p \$dldir~
19767       $install_prog $dir/$dlname \$dldir/$dlname~
19768       chmod a+x \$dldir/$dlname~
19769       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19770         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19771       fi'
19772     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19773       dlpath=$dir/\$dldll~
19774        $RM \$dlpath'
19775     shlibpath_overrides_runpath=yes
19776
19777     case $host_os in
19778     cygwin*)
19779       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19780       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19781
19782       ;;
19783     mingw* | cegcc*)
19784       # MinGW DLLs use traditional 'lib' prefix
19785       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19786       ;;
19787     pw32*)
19788       # pw32 DLLs use 'pw' prefix rather than 'lib'
19789       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19790       ;;
19791     esac
19792     ;;
19793
19794   *)
19795     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19796     ;;
19797   esac
19798   dynamic_linker='Win32 ld.exe'
19799   # FIXME: first we should search . and the directory the executable is in
19800   shlibpath_var=PATH
19801   ;;
19802
19803 darwin* | rhapsody*)
19804   dynamic_linker="$host_os dyld"
19805   version_type=darwin
19806   need_lib_prefix=no
19807   need_version=no
19808   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19809   soname_spec='${libname}${release}${major}$shared_ext'
19810   shlibpath_overrides_runpath=yes
19811   shlibpath_var=DYLD_LIBRARY_PATH
19812   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19813
19814   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19815   ;;
19816
19817 dgux*)
19818   version_type=linux
19819   need_lib_prefix=no
19820   need_version=no
19821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19822   soname_spec='${libname}${release}${shared_ext}$major'
19823   shlibpath_var=LD_LIBRARY_PATH
19824   ;;
19825
19826 freebsd1*)
19827   dynamic_linker=no
19828   ;;
19829
19830 freebsd* | dragonfly*)
19831   # DragonFly does not have aout.  When/if they implement a new
19832   # versioning mechanism, adjust this.
19833   if test -x /usr/bin/objformat; then
19834     objformat=`/usr/bin/objformat`
19835   else
19836     case $host_os in
19837     freebsd[123]*) objformat=aout ;;
19838     *) objformat=elf ;;
19839     esac
19840   fi
19841   version_type=freebsd-$objformat
19842   case $version_type in
19843     freebsd-elf*)
19844       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19845       need_version=no
19846       need_lib_prefix=no
19847       ;;
19848     freebsd-*)
19849       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19850       need_version=yes
19851       ;;
19852   esac
19853   shlibpath_var=LD_LIBRARY_PATH
19854   case $host_os in
19855   freebsd2*)
19856     shlibpath_overrides_runpath=yes
19857     ;;
19858   freebsd3.[01]* | freebsdelf3.[01]*)
19859     shlibpath_overrides_runpath=yes
19860     hardcode_into_libs=yes
19861     ;;
19862   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19863   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19864     shlibpath_overrides_runpath=no
19865     hardcode_into_libs=yes
19866     ;;
19867   *) # from 4.6 on, and DragonFly
19868     shlibpath_overrides_runpath=yes
19869     hardcode_into_libs=yes
19870     ;;
19871   esac
19872   ;;
19873
19874 gnu*)
19875   version_type=linux
19876   need_lib_prefix=no
19877   need_version=no
19878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19879   soname_spec='${libname}${release}${shared_ext}$major'
19880   shlibpath_var=LD_LIBRARY_PATH
19881   hardcode_into_libs=yes
19882   ;;
19883
19884 haiku*)
19885   version_type=linux
19886   need_lib_prefix=no
19887   need_version=no
19888   dynamic_linker="$host_os runtime_loader"
19889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19890   soname_spec='${libname}${release}${shared_ext}$major'
19891   shlibpath_var=LIBRARY_PATH
19892   shlibpath_overrides_runpath=yes
19893   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19894   hardcode_into_libs=yes
19895   ;;
19896
19897 hpux9* | hpux10* | hpux11*)
19898   # Give a soname corresponding to the major version so that dld.sl refuses to
19899   # link against other versions.
19900   version_type=sunos
19901   need_lib_prefix=no
19902   need_version=no
19903   case $host_cpu in
19904   ia64*)
19905     shrext_cmds='.so'
19906     hardcode_into_libs=yes
19907     dynamic_linker="$host_os dld.so"
19908     shlibpath_var=LD_LIBRARY_PATH
19909     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19910     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19911     soname_spec='${libname}${release}${shared_ext}$major'
19912     if test "X$HPUX_IA64_MODE" = X32; then
19913       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19914     else
19915       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19916     fi
19917     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19918     ;;
19919   hppa*64*)
19920     shrext_cmds='.sl'
19921     hardcode_into_libs=yes
19922     dynamic_linker="$host_os dld.sl"
19923     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19924     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19926     soname_spec='${libname}${release}${shared_ext}$major'
19927     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19928     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19929     ;;
19930   *)
19931     shrext_cmds='.sl'
19932     dynamic_linker="$host_os dld.sl"
19933     shlibpath_var=SHLIB_PATH
19934     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19936     soname_spec='${libname}${release}${shared_ext}$major'
19937     ;;
19938   esac
19939   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19940   postinstall_cmds='chmod 555 $lib'
19941   # or fails outright, so override atomically:
19942   install_override_mode=555
19943   ;;
19944
19945 interix[3-9]*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19952   shlibpath_var=LD_LIBRARY_PATH
19953   shlibpath_overrides_runpath=no
19954   hardcode_into_libs=yes
19955   ;;
19956
19957 irix5* | irix6* | nonstopux*)
19958   case $host_os in
19959     nonstopux*) version_type=nonstopux ;;
19960     *)
19961         if test "$lt_cv_prog_gnu_ld" = yes; then
19962                 version_type=linux
19963         else
19964                 version_type=irix
19965         fi ;;
19966   esac
19967   need_lib_prefix=no
19968   need_version=no
19969   soname_spec='${libname}${release}${shared_ext}$major'
19970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19971   case $host_os in
19972   irix5* | nonstopux*)
19973     libsuff= shlibsuff=
19974     ;;
19975   *)
19976     case $LD in # libtool.m4 will add one of these switches to LD
19977     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19978       libsuff= shlibsuff= libmagic=32-bit;;
19979     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19980       libsuff=32 shlibsuff=N32 libmagic=N32;;
19981     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19982       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19983     *) libsuff= shlibsuff= libmagic=never-match;;
19984     esac
19985     ;;
19986   esac
19987   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19988   shlibpath_overrides_runpath=no
19989   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19990   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19991   hardcode_into_libs=yes
19992   ;;
19993
19994 # No shared lib support for Linux oldld, aout, or coff.
19995 linux*oldld* | linux*aout* | linux*coff*)
19996   dynamic_linker=no
19997   ;;
19998
19999 # This must be Linux ELF.
20000 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20001   version_type=linux
20002   need_lib_prefix=no
20003   need_version=no
20004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20005   soname_spec='${libname}${release}${shared_ext}$major'
20006   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20007   shlibpath_var=LD_LIBRARY_PATH
20008   shlibpath_overrides_runpath=no
20009
20010   # Some binutils ld are patched to set DT_RUNPATH
20011   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20012   $as_echo_n "(cached) " >&6
20013 else
20014   lt_cv_shlibpath_overrides_runpath=no
20015     save_LDFLAGS=$LDFLAGS
20016     save_libdir=$libdir
20017     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20018          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020 /* end confdefs.h.  */
20021
20022 int
20023 main ()
20024 {
20025
20026   ;
20027   return 0;
20028 }
20029 _ACEOF
20030 if ac_fn_cxx_try_link "$LINENO"; then :
20031   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20032   lt_cv_shlibpath_overrides_runpath=yes
20033 fi
20034 fi
20035 rm -f core conftest.err conftest.$ac_objext \
20036     conftest$ac_exeext conftest.$ac_ext
20037     LDFLAGS=$save_LDFLAGS
20038     libdir=$save_libdir
20039
20040 fi
20041
20042   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20043
20044   # This implies no fast_install, which is unacceptable.
20045   # Some rework will be needed to allow for fast_install
20046   # before this can be enabled.
20047   hardcode_into_libs=yes
20048
20049   # Append ld.so.conf contents to the search path
20050   if test -f /etc/ld.so.conf; then
20051     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' ' '`
20052     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20053   fi
20054
20055   # We used to test for /lib/ld.so.1 and disable shared libraries on
20056   # powerpc, because MkLinux only supported shared libraries with the
20057   # GNU dynamic linker.  Since this was broken with cross compilers,
20058   # most powerpc-linux boxes support dynamic linking these days and
20059   # people can always --disable-shared, the test was removed, and we
20060   # assume the GNU/Linux dynamic linker is in use.
20061   dynamic_linker='GNU/Linux ld.so'
20062   ;;
20063
20064 netbsd*)
20065   version_type=sunos
20066   need_lib_prefix=no
20067   need_version=no
20068   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20070     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20071     dynamic_linker='NetBSD (a.out) ld.so'
20072   else
20073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20074     soname_spec='${libname}${release}${shared_ext}$major'
20075     dynamic_linker='NetBSD ld.elf_so'
20076   fi
20077   shlibpath_var=LD_LIBRARY_PATH
20078   shlibpath_overrides_runpath=yes
20079   hardcode_into_libs=yes
20080   ;;
20081
20082 newsos6)
20083   version_type=linux
20084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20085   shlibpath_var=LD_LIBRARY_PATH
20086   shlibpath_overrides_runpath=yes
20087   ;;
20088
20089 *nto* | *qnx*)
20090   version_type=qnx
20091   need_lib_prefix=no
20092   need_version=no
20093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20094   soname_spec='${libname}${release}${shared_ext}$major'
20095   shlibpath_var=LD_LIBRARY_PATH
20096   shlibpath_overrides_runpath=no
20097   hardcode_into_libs=yes
20098   dynamic_linker='ldqnx.so'
20099   ;;
20100
20101 openbsd*)
20102   version_type=sunos
20103   sys_lib_dlsearch_path_spec="/usr/lib"
20104   need_lib_prefix=no
20105   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20106   case $host_os in
20107     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20108     *)                          need_version=no  ;;
20109   esac
20110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20111   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20112   shlibpath_var=LD_LIBRARY_PATH
20113   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20114     case $host_os in
20115       openbsd2.[89] | openbsd2.[89].*)
20116         shlibpath_overrides_runpath=no
20117         ;;
20118       *)
20119         shlibpath_overrides_runpath=yes
20120         ;;
20121       esac
20122   else
20123     shlibpath_overrides_runpath=yes
20124   fi
20125   ;;
20126
20127 os2*)
20128   libname_spec='$name'
20129   shrext_cmds=".dll"
20130   need_lib_prefix=no
20131   library_names_spec='$libname${shared_ext} $libname.a'
20132   dynamic_linker='OS/2 ld.exe'
20133   shlibpath_var=LIBPATH
20134   ;;
20135
20136 osf3* | osf4* | osf5*)
20137   version_type=osf
20138   need_lib_prefix=no
20139   need_version=no
20140   soname_spec='${libname}${release}${shared_ext}$major'
20141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142   shlibpath_var=LD_LIBRARY_PATH
20143   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20144   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20145   ;;
20146
20147 rdos*)
20148   dynamic_linker=no
20149   ;;
20150
20151 solaris*)
20152   version_type=linux
20153   need_lib_prefix=no
20154   need_version=no
20155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20156   soname_spec='${libname}${release}${shared_ext}$major'
20157   shlibpath_var=LD_LIBRARY_PATH
20158   shlibpath_overrides_runpath=yes
20159   hardcode_into_libs=yes
20160   # ldd complains unless libraries are executable
20161   postinstall_cmds='chmod +x $lib'
20162   ;;
20163
20164 sunos4*)
20165   version_type=sunos
20166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20167   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20168   shlibpath_var=LD_LIBRARY_PATH
20169   shlibpath_overrides_runpath=yes
20170   if test "$with_gnu_ld" = yes; then
20171     need_lib_prefix=no
20172   fi
20173   need_version=yes
20174   ;;
20175
20176 sysv4 | sysv4.3*)
20177   version_type=linux
20178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179   soname_spec='${libname}${release}${shared_ext}$major'
20180   shlibpath_var=LD_LIBRARY_PATH
20181   case $host_vendor in
20182     sni)
20183       shlibpath_overrides_runpath=no
20184       need_lib_prefix=no
20185       runpath_var=LD_RUN_PATH
20186       ;;
20187     siemens)
20188       need_lib_prefix=no
20189       ;;
20190     motorola)
20191       need_lib_prefix=no
20192       need_version=no
20193       shlibpath_overrides_runpath=no
20194       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20195       ;;
20196   esac
20197   ;;
20198
20199 sysv4*MP*)
20200   if test -d /usr/nec ;then
20201     version_type=linux
20202     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20203     soname_spec='$libname${shared_ext}.$major'
20204     shlibpath_var=LD_LIBRARY_PATH
20205   fi
20206   ;;
20207
20208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20209   version_type=freebsd-elf
20210   need_lib_prefix=no
20211   need_version=no
20212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20213   soname_spec='${libname}${release}${shared_ext}$major'
20214   shlibpath_var=LD_LIBRARY_PATH
20215   shlibpath_overrides_runpath=yes
20216   hardcode_into_libs=yes
20217   if test "$with_gnu_ld" = yes; then
20218     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20219   else
20220     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20221     case $host_os in
20222       sco3.2v5*)
20223         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20224         ;;
20225     esac
20226   fi
20227   sys_lib_dlsearch_path_spec='/usr/lib'
20228   ;;
20229
20230 tpf*)
20231   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20232   version_type=linux
20233   need_lib_prefix=no
20234   need_version=no
20235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236   shlibpath_var=LD_LIBRARY_PATH
20237   shlibpath_overrides_runpath=no
20238   hardcode_into_libs=yes
20239   ;;
20240
20241 uts4*)
20242   version_type=linux
20243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244   soname_spec='${libname}${release}${shared_ext}$major'
20245   shlibpath_var=LD_LIBRARY_PATH
20246   ;;
20247
20248 *)
20249   dynamic_linker=no
20250   ;;
20251 esac
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20253 $as_echo "$dynamic_linker" >&6; }
20254 test "$dynamic_linker" = no && can_build_shared=no
20255
20256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20257 if test "$GCC" = yes; then
20258   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20259 fi
20260
20261 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20262   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20263 fi
20264 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20265   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20266 fi
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20306 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20307 hardcode_action_CXX=
20308 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20309    test -n "$runpath_var_CXX" ||
20310    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20311
20312   # We can hardcode non-existent directories.
20313   if test "$hardcode_direct_CXX" != no &&
20314      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20315      # have to relink, otherwise we might link with an installed library
20316      # when we should be linking with a yet-to-be-installed one
20317      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20318      test "$hardcode_minus_L_CXX" != no; then
20319     # Linking always hardcodes the temporary library directory.
20320     hardcode_action_CXX=relink
20321   else
20322     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20323     hardcode_action_CXX=immediate
20324   fi
20325 else
20326   # We cannot hardcode anything, or else we can only hardcode existing
20327   # directories.
20328   hardcode_action_CXX=unsupported
20329 fi
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20331 $as_echo "$hardcode_action_CXX" >&6; }
20332
20333 if test "$hardcode_action_CXX" = relink ||
20334    test "$inherit_rpath_CXX" = yes; then
20335   # Fast installation is not supported
20336   enable_fast_install=no
20337 elif test "$shlibpath_overrides_runpath" = yes ||
20338      test "$enable_shared" = no; then
20339   # Fast installation is not necessary
20340   enable_fast_install=needless
20341 fi
20342
20343
20344
20345
20346
20347
20348
20349   fi # test -n "$compiler"
20350
20351   CC=$lt_save_CC
20352   LDCXX=$LD
20353   LD=$lt_save_LD
20354   GCC=$lt_save_GCC
20355   with_gnu_ld=$lt_save_with_gnu_ld
20356   lt_cv_path_LDCXX=$lt_cv_path_LD
20357   lt_cv_path_LD=$lt_save_path_LD
20358   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20359   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20360 fi # test "$_lt_caught_CXX_error" != yes
20361
20362 ac_ext=c
20363 ac_cpp='$CPP $CPPFLAGS'
20364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383 # Only expand once:
20384
20385
20386
20387
20388
20389 # Identify the assembler which will work hand-in-glove with the newly
20390 # built GCC, so that we can examine its features.  This is the assembler
20391 # which will be driven by the driver program.
20392 #
20393 # If build != host, and we aren't building gas in-tree, we identify a
20394 # build->target assembler and hope that it will have the same features
20395 # as the host->target assembler we'll be using.
20396 gcc_cv_gas_major_version=
20397 gcc_cv_gas_minor_version=
20398 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20399
20400 if test "${gcc_cv_as+set}" = set; then :
20401
20402 else
20403
20404 if test -x "$DEFAULT_ASSEMBLER"; then
20405         gcc_cv_as="$DEFAULT_ASSEMBLER"
20406 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20407      && test -f ../gas/Makefile \
20408      && test x$build = x$host; then
20409         gcc_cv_as=../gas/as-new$build_exeext
20410 elif test -x as$build_exeext; then
20411         # Build using assembler in the current directory.
20412         gcc_cv_as=./as$build_exeext
20413 elif test -x $AS_FOR_TARGET; then
20414         gcc_cv_as="$AS_FOR_TARGET"
20415 else
20416         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20417 set dummy $AS_FOR_TARGET; ac_word=$2
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20419 $as_echo_n "checking for $ac_word... " >&6; }
20420 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20421   $as_echo_n "(cached) " >&6
20422 else
20423   case $gcc_cv_as in
20424   [\\/]* | ?:[\\/]*)
20425   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20426   ;;
20427   *)
20428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20429 for as_dir in $PATH
20430 do
20431   IFS=$as_save_IFS
20432   test -z "$as_dir" && as_dir=.
20433     for ac_exec_ext in '' $ac_executable_extensions; do
20434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20435     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20437     break 2
20438   fi
20439 done
20440   done
20441 IFS=$as_save_IFS
20442
20443   ;;
20444 esac
20445 fi
20446 gcc_cv_as=$ac_cv_path_gcc_cv_as
20447 if test -n "$gcc_cv_as"; then
20448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20449 $as_echo "$gcc_cv_as" >&6; }
20450 else
20451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20452 $as_echo "no" >&6; }
20453 fi
20454
20455
20456 fi
20457 fi
20458
20459 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20460
20461 case "$ORIGINAL_AS_FOR_TARGET" in
20462   ./as | ./as$build_exeext) ;;
20463   *) ac_config_files="$ac_config_files as:exec-tool.in"
20464  ;;
20465 esac
20466
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20468 $as_echo_n "checking what assembler to use... " >&6; }
20469 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20470   # Single tree build which includes gas.  We want to prefer it
20471   # over whatever linker top-level may have detected, since
20472   # we'll use what we're building after installation anyway.
20473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20474 $as_echo "newly built gas" >&6; }
20475   in_tree_gas=yes
20476   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20477 for f in $gcc_cv_as_bfd_srcdir/configure \
20478          $gcc_cv_as_gas_srcdir/configure \
20479          $gcc_cv_as_gas_srcdir/configure.in \
20480          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20481   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20482   if test x$gcc_cv_gas_version != x; then
20483     break
20484   fi
20485 done
20486 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20487 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20488 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20489 case $gcc_cv_gas_patch_version in
20490   "") gcc_cv_gas_patch_version="0" ;;
20491 esac
20492 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20493                             + $gcc_cv_gas_minor_version \) \* 1000 \
20494                             + $gcc_cv_gas_patch_version`
20495
20496   in_tree_gas_is_elf=no
20497   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20498      || (grep 'obj_format = multi' ../gas/Makefile \
20499          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20500   then
20501     in_tree_gas_is_elf=yes
20502   fi
20503 else
20504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20505 $as_echo "$gcc_cv_as" >&6; }
20506   in_tree_gas=no
20507 fi
20508
20509 # Identify the linker which will work hand-in-glove with the newly
20510 # built GCC, so that we can examine its features.  This is the linker
20511 # which will be driven by the driver program.
20512 #
20513 # If build != host, and we aren't building gas in-tree, we identify a
20514 # build->target linker and hope that it will have the same features
20515 # as the host->target linker we'll be using.
20516 gcc_cv_gld_major_version=
20517 gcc_cv_gld_minor_version=
20518 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20519 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20520
20521 if test "${gcc_cv_ld+set}" = set; then :
20522
20523 else
20524
20525 if test -x "$DEFAULT_LINKER"; then
20526         gcc_cv_ld="$DEFAULT_LINKER"
20527 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20528      && test -f ../ld/Makefile \
20529      && test x$build = x$host; then
20530         gcc_cv_ld=../ld/ld-new$build_exeext
20531 elif test -x collect-ld$build_exeext; then
20532         # Build using linker in the current directory.
20533         gcc_cv_ld=./collect-ld$build_exeext
20534 elif test -x $LD_FOR_TARGET; then
20535         gcc_cv_ld="$LD_FOR_TARGET"
20536 else
20537         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20538 set dummy $LD_FOR_TARGET; ac_word=$2
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20540 $as_echo_n "checking for $ac_word... " >&6; }
20541 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20542   $as_echo_n "(cached) " >&6
20543 else
20544   case $gcc_cv_ld in
20545   [\\/]* | ?:[\\/]*)
20546   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20547   ;;
20548   *)
20549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20550 for as_dir in $PATH
20551 do
20552   IFS=$as_save_IFS
20553   test -z "$as_dir" && as_dir=.
20554     for ac_exec_ext in '' $ac_executable_extensions; do
20555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20556     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20558     break 2
20559   fi
20560 done
20561   done
20562 IFS=$as_save_IFS
20563
20564   ;;
20565 esac
20566 fi
20567 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20568 if test -n "$gcc_cv_ld"; then
20569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20570 $as_echo "$gcc_cv_ld" >&6; }
20571 else
20572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20573 $as_echo "no" >&6; }
20574 fi
20575
20576
20577 fi
20578 fi
20579
20580 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20581 PLUGIN_LD=`basename $gcc_cv_ld`
20582
20583 # Check whether --with-plugin-ld was given.
20584 if test "${with_plugin_ld+set}" = set; then :
20585   withval=$with_plugin_ld; if test x"$withval" != x; then
20586    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20587    PLUGIN_LD="$withval"
20588  fi
20589 fi
20590
20591
20592
20593 cat >>confdefs.h <<_ACEOF
20594 #define PLUGIN_LD "$PLUGIN_LD"
20595 _ACEOF
20596
20597
20598 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20599
20600 case "$ORIGINAL_LD_FOR_TARGET" in
20601   ./collect-ld | ./collect-ld$build_exeext) ;;
20602   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20603  ;;
20604 esac
20605
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20607 $as_echo_n "checking what linker to use... " >&6; }
20608 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20609         # Single tree build which includes ld.  We want to prefer it
20610         # over whatever linker top-level may have detected, since
20611         # we'll use what we're building after installation anyway.
20612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20613 $as_echo "newly built ld" >&6; }
20614         in_tree_ld=yes
20615         in_tree_ld_is_elf=no
20616         if (grep 'EMUL = .*elf' ../ld/Makefile \
20617             || grep 'EMUL = .*linux' ../ld/Makefile \
20618             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20619           in_tree_ld_is_elf=yes
20620         fi
20621         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
20622         do
20623                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20624                 if test x$gcc_cv_gld_version != x; then
20625                         break
20626                 fi
20627         done
20628         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20629         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20630 else
20631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20632 $as_echo "$gcc_cv_ld" >&6; }
20633         in_tree_ld=no
20634 fi
20635
20636 # Figure out what nm we will be using.
20637 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20638 if test "${gcc_cv_nm+set}" = set; then :
20639
20640 else
20641
20642 if test -f $gcc_cv_binutils_srcdir/configure.in \
20643      && test -f ../binutils/Makefile \
20644      && test x$build = x$host; then
20645         gcc_cv_nm=../binutils/nm-new$build_exeext
20646 elif test -x nm$build_exeext; then
20647         gcc_cv_nm=./nm$build_exeext
20648 elif test -x $NM_FOR_TARGET; then
20649         gcc_cv_nm="$NM_FOR_TARGET"
20650 else
20651         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20652 set dummy $NM_FOR_TARGET; ac_word=$2
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20654 $as_echo_n "checking for $ac_word... " >&6; }
20655 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20656   $as_echo_n "(cached) " >&6
20657 else
20658   case $gcc_cv_nm in
20659   [\\/]* | ?:[\\/]*)
20660   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20661   ;;
20662   *)
20663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20664 for as_dir in $PATH
20665 do
20666   IFS=$as_save_IFS
20667   test -z "$as_dir" && as_dir=.
20668     for ac_exec_ext in '' $ac_executable_extensions; do
20669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20670     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20672     break 2
20673   fi
20674 done
20675   done
20676 IFS=$as_save_IFS
20677
20678   ;;
20679 esac
20680 fi
20681 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20682 if test -n "$gcc_cv_nm"; then
20683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20684 $as_echo "$gcc_cv_nm" >&6; }
20685 else
20686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20687 $as_echo "no" >&6; }
20688 fi
20689
20690
20691 fi
20692 fi
20693
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20695 $as_echo_n "checking what nm to use... " >&6; }
20696 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20697         # Single tree build which includes binutils.
20698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20699 $as_echo "newly built nm" >&6; }
20700         in_tree_nm=yes
20701 else
20702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20703 $as_echo "$gcc_cv_nm" >&6; }
20704         in_tree_nm=no
20705 fi
20706
20707 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20708
20709 case "$ORIGINAL_NM_FOR_TARGET" in
20710   ./nm | ./nm$build_exeext) ;;
20711   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20712  ;;
20713 esac
20714
20715
20716 # Figure out what objdump we will be using.
20717 if test "${gcc_cv_objdump+set}" = set; then :
20718
20719 else
20720
20721 if test -f $gcc_cv_binutils_srcdir/configure.in \
20722      && test -f ../binutils/Makefile \
20723      && test x$build = x$host; then
20724         # Single tree build which includes binutils.
20725         gcc_cv_objdump=../binutils/objdump$build_exeext
20726 elif test -x objdump$build_exeext; then
20727         gcc_cv_objdump=./objdump$build_exeext
20728 elif test -x $OBJDUMP_FOR_TARGET; then
20729         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20730 else
20731         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20732 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20734 $as_echo_n "checking for $ac_word... " >&6; }
20735 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20736   $as_echo_n "(cached) " >&6
20737 else
20738   case $gcc_cv_objdump in
20739   [\\/]* | ?:[\\/]*)
20740   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20741   ;;
20742   *)
20743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20744 for as_dir in $PATH
20745 do
20746   IFS=$as_save_IFS
20747   test -z "$as_dir" && as_dir=.
20748     for ac_exec_ext in '' $ac_executable_extensions; do
20749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20750     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20752     break 2
20753   fi
20754 done
20755   done
20756 IFS=$as_save_IFS
20757
20758   ;;
20759 esac
20760 fi
20761 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20762 if test -n "$gcc_cv_objdump"; then
20763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20764 $as_echo "$gcc_cv_objdump" >&6; }
20765 else
20766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20767 $as_echo "no" >&6; }
20768 fi
20769
20770
20771 fi
20772 fi
20773
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20775 $as_echo_n "checking what objdump to use... " >&6; }
20776 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20777         # Single tree build which includes binutils.
20778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20779 $as_echo "newly built objdump" >&6; }
20780 elif test x$gcc_cv_objdump = x; then
20781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20782 $as_echo "not found" >&6; }
20783 else
20784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20785 $as_echo "$gcc_cv_objdump" >&6; }
20786 fi
20787
20788 # Figure out what readelf we will be using.
20789 if test "${gcc_cv_readelf+set}" = set; then :
20790
20791 else
20792
20793 if test -f $gcc_cv_binutils_srcdir/configure.in \
20794      && test -f ../binutils/Makefile \
20795      && test x$build = x$host; then
20796         # Single tree build which includes binutils.
20797         gcc_cv_readelf=../binutils/readelf$build_exeext
20798 elif test -x readelf$build_exeext; then
20799         gcc_cv_readelf=./readelf$build_exeext
20800 else
20801         # Extract the first word of "readelf", so it can be a program name with args.
20802 set dummy readelf; ac_word=$2
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20804 $as_echo_n "checking for $ac_word... " >&6; }
20805 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20806   $as_echo_n "(cached) " >&6
20807 else
20808   case $gcc_cv_readelf in
20809   [\\/]* | ?:[\\/]*)
20810   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20811   ;;
20812   *)
20813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20814 for as_dir in $PATH
20815 do
20816   IFS=$as_save_IFS
20817   test -z "$as_dir" && as_dir=.
20818     for ac_exec_ext in '' $ac_executable_extensions; do
20819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20820     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20822     break 2
20823   fi
20824 done
20825   done
20826 IFS=$as_save_IFS
20827
20828   ;;
20829 esac
20830 fi
20831 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20832 if test -n "$gcc_cv_readelf"; then
20833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20834 $as_echo "$gcc_cv_readelf" >&6; }
20835 else
20836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20837 $as_echo "no" >&6; }
20838 fi
20839
20840
20841 fi
20842 fi
20843
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20845 $as_echo_n "checking what readelf to use... " >&6; }
20846 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20847         # Single tree build which includes binutils.
20848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20849 $as_echo "newly built readelf" >&6; }
20850 elif test x$gcc_cv_readelf = x; then
20851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20852 $as_echo "not found" >&6; }
20853 else
20854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20855 $as_echo "$gcc_cv_readelf" >&6; }
20856 fi
20857
20858 # Figure out what assembler alignment features are present.
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20860 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20861 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20862   $as_echo_n "(cached) " >&6
20863 else
20864   gcc_cv_as_balign_and_p2align=no
20865     if test $in_tree_gas = yes; then
20866     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20867   then gcc_cv_as_balign_and_p2align=yes
20868 fi
20869   elif test x$gcc_cv_as != x; then
20870     echo '.balign 4
20871 .p2align 2' > conftest.s
20872     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20873   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20874   (eval $ac_try) 2>&5
20875   ac_status=$?
20876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20877   test $ac_status = 0; }; }
20878     then
20879         gcc_cv_as_balign_and_p2align=yes
20880     else
20881       echo "configure: failed program was" >&5
20882       cat conftest.s >&5
20883     fi
20884     rm -f conftest.o conftest.s
20885   fi
20886 fi
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20888 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20889 if test $gcc_cv_as_balign_and_p2align = yes; then
20890
20891 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20892
20893 fi
20894
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20896 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20897 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20898   $as_echo_n "(cached) " >&6
20899 else
20900   gcc_cv_as_max_skip_p2align=no
20901     if test $in_tree_gas = yes; then
20902     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20903   then gcc_cv_as_max_skip_p2align=yes
20904 fi
20905   elif test x$gcc_cv_as != x; then
20906     echo '.p2align 4,,7' > conftest.s
20907     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20908   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20909   (eval $ac_try) 2>&5
20910   ac_status=$?
20911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20912   test $ac_status = 0; }; }
20913     then
20914         gcc_cv_as_max_skip_p2align=yes
20915     else
20916       echo "configure: failed program was" >&5
20917       cat conftest.s >&5
20918     fi
20919     rm -f conftest.o conftest.s
20920   fi
20921 fi
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
20923 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
20924 if test $gcc_cv_as_max_skip_p2align = yes; then
20925
20926 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20927
20928 fi
20929
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
20931 $as_echo_n "checking assembler for .literal16... " >&6; }
20932 if test "${gcc_cv_as_literal16+set}" = set; then :
20933   $as_echo_n "(cached) " >&6
20934 else
20935   gcc_cv_as_literal16=no
20936     if test $in_tree_gas = yes; then
20937     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20938   then gcc_cv_as_literal16=yes
20939 fi
20940   elif test x$gcc_cv_as != x; then
20941     echo '.literal16' > conftest.s
20942     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20943   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20944   (eval $ac_try) 2>&5
20945   ac_status=$?
20946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20947   test $ac_status = 0; }; }
20948     then
20949         gcc_cv_as_literal16=yes
20950     else
20951       echo "configure: failed program was" >&5
20952       cat conftest.s >&5
20953     fi
20954     rm -f conftest.o conftest.s
20955   fi
20956 fi
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
20958 $as_echo "$gcc_cv_as_literal16" >&6; }
20959 if test $gcc_cv_as_literal16 = yes; then
20960
20961 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
20962
20963 fi
20964
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
20966 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
20967 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
20968   $as_echo_n "(cached) " >&6
20969 else
20970   gcc_cv_as_subsection_m1=no
20971     if test $in_tree_gas = yes; then
20972     if test $in_tree_gas_is_elf = yes \
20973   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20974   then gcc_cv_as_subsection_m1=yes
20975 fi
20976   elif test x$gcc_cv_as != x; then
20977     echo 'conftest_label1: .word 0
20978 .subsection -1
20979 conftest_label2: .word 0
20980 .previous' > conftest.s
20981     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20982   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20983   (eval $ac_try) 2>&5
20984   ac_status=$?
20985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20986   test $ac_status = 0; }; }
20987     then
20988         if test x$gcc_cv_nm != x; then
20989     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20990     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20991     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20992     then :
20993     else gcc_cv_as_subsection_m1=yes
20994     fi
20995     rm -f conftest.nm1 conftest.nm2
20996   fi
20997     else
20998       echo "configure: failed program was" >&5
20999       cat conftest.s >&5
21000     fi
21001     rm -f conftest.o conftest.s
21002   fi
21003 fi
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21005 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21006 if test $gcc_cv_as_subsection_m1 = yes; then
21007
21008 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21009
21010 fi
21011
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21013 $as_echo_n "checking assembler for .weak... " >&6; }
21014 if test "${gcc_cv_as_weak+set}" = set; then :
21015   $as_echo_n "(cached) " >&6
21016 else
21017   gcc_cv_as_weak=no
21018     if test $in_tree_gas = yes; then
21019     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21020   then gcc_cv_as_weak=yes
21021 fi
21022   elif test x$gcc_cv_as != x; then
21023     echo '      .weak foobar' > conftest.s
21024     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21025   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21026   (eval $ac_try) 2>&5
21027   ac_status=$?
21028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21029   test $ac_status = 0; }; }
21030     then
21031         gcc_cv_as_weak=yes
21032     else
21033       echo "configure: failed program was" >&5
21034       cat conftest.s >&5
21035     fi
21036     rm -f conftest.o conftest.s
21037   fi
21038 fi
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21040 $as_echo "$gcc_cv_as_weak" >&6; }
21041 if test $gcc_cv_as_weak = yes; then
21042
21043 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21044
21045 fi
21046
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21048 $as_echo_n "checking assembler for .weakref... " >&6; }
21049 if test "${gcc_cv_as_weakref+set}" = set; then :
21050   $as_echo_n "(cached) " >&6
21051 else
21052   gcc_cv_as_weakref=no
21053     if test $in_tree_gas = yes; then
21054     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21055   then gcc_cv_as_weakref=yes
21056 fi
21057   elif test x$gcc_cv_as != x; then
21058     echo '      .weakref foobar, barfnot' > conftest.s
21059     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21060   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21061   (eval $ac_try) 2>&5
21062   ac_status=$?
21063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21064   test $ac_status = 0; }; }
21065     then
21066         gcc_cv_as_weakref=yes
21067     else
21068       echo "configure: failed program was" >&5
21069       cat conftest.s >&5
21070     fi
21071     rm -f conftest.o conftest.s
21072   fi
21073 fi
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21075 $as_echo "$gcc_cv_as_weakref" >&6; }
21076 if test $gcc_cv_as_weakref = yes; then
21077
21078 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21079
21080 fi
21081
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21083 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21084 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21085   $as_echo_n "(cached) " >&6
21086 else
21087   gcc_cv_as_nsubspa_comdat=no
21088     if test $in_tree_gas = yes; then
21089     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21090   then gcc_cv_as_nsubspa_comdat=yes
21091 fi
21092   elif test x$gcc_cv_as != x; then
21093     echo '      .SPACE $TEXT$
21094         .NSUBSPA $CODE$,COMDAT' > conftest.s
21095     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21096   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21097   (eval $ac_try) 2>&5
21098   ac_status=$?
21099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21100   test $ac_status = 0; }; }
21101     then
21102         gcc_cv_as_nsubspa_comdat=yes
21103     else
21104       echo "configure: failed program was" >&5
21105       cat conftest.s >&5
21106     fi
21107     rm -f conftest.o conftest.s
21108   fi
21109 fi
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21111 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21112 if test $gcc_cv_as_nsubspa_comdat = yes; then
21113
21114 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21115
21116 fi
21117
21118 # .hidden needs to be supported in both the assembler and the linker,
21119 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21120 # This is irritatingly difficult to feature test for; we have to check the
21121 # date string after the version number.  If we've got an in-tree
21122 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21123 # to be safe.
21124 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21126 $as_echo_n "checking assembler for .hidden... " >&6; }
21127 if test "${gcc_cv_as_hidden+set}" = set; then :
21128   $as_echo_n "(cached) " >&6
21129 else
21130   gcc_cv_as_hidden=no
21131     if test $in_tree_gas = yes; then
21132     if test $in_tree_gas_is_elf = yes \
21133   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21134   then gcc_cv_as_hidden=yes
21135 fi
21136   elif test x$gcc_cv_as != x; then
21137     echo '      .hidden foobar
21138 foobar:' > conftest.s
21139     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21140   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21141   (eval $ac_try) 2>&5
21142   ac_status=$?
21143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21144   test $ac_status = 0; }; }
21145     then
21146         gcc_cv_as_hidden=yes
21147     else
21148       echo "configure: failed program was" >&5
21149       cat conftest.s >&5
21150     fi
21151     rm -f conftest.o conftest.s
21152   fi
21153 fi
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21155 $as_echo "$gcc_cv_as_hidden" >&6; }
21156
21157
21158 if test $in_tree_ld != yes ; then
21159   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21160   if echo "$ld_ver" | grep GNU > /dev/null; then
21161     ld_vers=`echo $ld_ver | sed -n \
21162         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21163     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'`
21164     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21165     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21166     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21167   fi
21168 fi
21169
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21171 $as_echo_n "checking linker for .hidden support... " >&6; }
21172 if test "${gcc_cv_ld_hidden+set}" = set; then :
21173   $as_echo_n "(cached) " >&6
21174 else
21175   if test $in_tree_ld = yes ; then
21176   gcc_cv_ld_hidden=no
21177   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 \
21178      && test $in_tree_ld_is_elf = yes; then
21179      gcc_cv_ld_hidden=yes
21180   fi
21181 else
21182   gcc_cv_ld_hidden=yes
21183   if echo "$ld_ver" | grep GNU > /dev/null; then
21184     if test 0"$ld_date" -lt 20020404; then
21185       if test -n "$ld_date"; then
21186         # If there was date string, but was earlier than 2002-04-04, fail
21187         gcc_cv_ld_hidden=no
21188       elif test -z "$ld_vers"; then
21189         # If there was no date string nor ld version number, something is wrong
21190         gcc_cv_ld_hidden=no
21191       else
21192         test -z "$ld_vers_patch" && ld_vers_patch=0
21193         if test "$ld_vers_major" -lt 2; then
21194           gcc_cv_ld_hidden=no
21195         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21196           gcc_cv_ld_hidden="no"
21197         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21198           gcc_cv_ld_hidden=no
21199         fi
21200       fi
21201     fi
21202   else
21203     case "${target}" in
21204       hppa64*-*-hpux* | ia64*-*-hpux*)
21205         gcc_cv_ld_hidden=yes
21206         ;;
21207       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21208         gcc_cv_ld_hidden=yes
21209         ;;
21210       *)
21211         gcc_cv_ld_hidden=no
21212         ;;
21213     esac
21214   fi
21215 fi
21216 fi
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21218 $as_echo "$gcc_cv_ld_hidden" >&6; }
21219 libgcc_visibility=no
21220
21221
21222 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21223   libgcc_visibility=yes
21224
21225 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21226
21227 fi
21228
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21230 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21231 gcc_cv_ld_ro_rw_mix=unknown
21232 if test $in_tree_ld = yes ; then
21233   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 \
21234      && test $in_tree_ld_is_elf = yes; then
21235     gcc_cv_ld_ro_rw_mix=read-write
21236   fi
21237 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21238   echo '.section myfoosect, "a"' > conftest1.s
21239   echo '.section myfoosect, "aw"' > conftest2.s
21240   echo '.byte 1' >> conftest2.s
21241   echo '.section myfoosect, "a"' > conftest3.s
21242   echo '.byte 0' >> conftest3.s
21243   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21244      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21245      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21246      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21247         conftest2.o conftest3.o > /dev/null 2>&1; then
21248     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21249                          | sed -e '/myfoosect/!d' -e N`
21250     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21251       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21252         gcc_cv_ld_ro_rw_mix=read-only
21253       else
21254         gcc_cv_ld_ro_rw_mix=read-write
21255       fi
21256     fi
21257   fi
21258   rm -f conftest.* conftest[123].*
21259 fi
21260 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21261
21262 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21263
21264 fi
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21266 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21267
21268 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21270 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21271 if test "${gcc_cv_as_leb128+set}" = set; then :
21272   $as_echo_n "(cached) " >&6
21273 else
21274   gcc_cv_as_leb128=no
21275     if test $in_tree_gas = yes; then
21276     if test $in_tree_gas_is_elf = yes \
21277   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21278   then gcc_cv_as_leb128=yes
21279 fi
21280   elif test x$gcc_cv_as != x; then
21281     echo '      .data
21282         .uleb128 L2 - L1
21283 L1:
21284         .uleb128 1280
21285         .sleb128 -1010
21286 L2:' > conftest.s
21287     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21288   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21289   (eval $ac_try) 2>&5
21290   ac_status=$?
21291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21292   test $ac_status = 0; }; }
21293     then
21294         # GAS versions before 2.11 do not support uleb128,
21295   # despite appearing to.
21296   # ??? There exists an elf-specific test that will crash
21297   # the assembler.  Perhaps it's better to figure out whether
21298   # arbitrary sections are supported and try the test.
21299   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21300   if echo "$as_ver" | grep GNU > /dev/null; then
21301     as_vers=`echo $as_ver | sed -n \
21302         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21303     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21304     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21305     if test $as_major -eq 2 && test $as_minor -lt 11
21306     then :
21307     else gcc_cv_as_leb128=yes
21308     fi
21309   fi
21310     else
21311       echo "configure: failed program was" >&5
21312       cat conftest.s >&5
21313     fi
21314     rm -f conftest.o conftest.s
21315   fi
21316 fi
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21318 $as_echo "$gcc_cv_as_leb128" >&6; }
21319 if test $gcc_cv_as_leb128 = yes; then
21320
21321 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21322
21323 fi
21324
21325 # Check if we have assembler support for unwind directives.
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21327 $as_echo_n "checking assembler for cfi directives... " >&6; }
21328 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21329   $as_echo_n "(cached) " >&6
21330 else
21331   gcc_cv_as_cfi_directive=no
21332   if test x$gcc_cv_as != x; then
21333     echo '      .text
21334         .cfi_startproc
21335         .cfi_offset 0, 0
21336         .cfi_same_value 1
21337         .cfi_def_cfa 1, 2
21338         .cfi_escape 1, 2, 3, 4, 5
21339         .cfi_endproc' > conftest.s
21340     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21341   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21342   (eval $ac_try) 2>&5
21343   ac_status=$?
21344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21345   test $ac_status = 0; }; }
21346     then
21347         case "$target" in
21348   *-*-solaris*)
21349     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21350     # read-only and read-write sections, we need to make sure that the
21351     # assembler used emits read-write .eh_frame sections.
21352     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21353       if test "x$gcc_cv_objdump" != x; then
21354         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21355                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21356           gcc_cv_as_cfi_directive=no
21357         else
21358           gcc_cv_as_cfi_directive=yes
21359         fi
21360       else
21361         # no objdump, err on the side of caution
21362         gcc_cv_as_cfi_directive=no
21363       fi
21364     else
21365       gcc_cv_as_cfi_directive=yes
21366     fi
21367     ;;
21368   *-*-*)
21369     gcc_cv_as_cfi_directive=yes
21370     ;;
21371 esac
21372     else
21373       echo "configure: failed program was" >&5
21374       cat conftest.s >&5
21375     fi
21376     rm -f conftest.o conftest.s
21377   fi
21378 fi
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21380 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21381
21382 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21384 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21385 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21386   $as_echo_n "(cached) " >&6
21387 else
21388   gcc_cv_as_cfi_advance_working=no
21389   if test x$gcc_cv_as != x; then
21390     echo '      .text
21391         .cfi_startproc
21392         .cfi_adjust_cfa_offset 64
21393         .skip 512, 0
21394         .cfi_adjust_cfa_offset 128
21395         .cfi_endproc' > conftest.s
21396     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21397   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21398   (eval $ac_try) 2>&5
21399   ac_status=$?
21400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21401   test $ac_status = 0; }; }
21402     then
21403
21404 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21405     | grep 'DW_CFA_advance_loc[12]:[    ][      ]*512[  ]' >/dev/null; then
21406    gcc_cv_as_cfi_advance_working=yes
21407 fi
21408
21409     else
21410       echo "configure: failed program was" >&5
21411       cat conftest.s >&5
21412     fi
21413     rm -f conftest.o conftest.s
21414   fi
21415 fi
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21417 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21418
21419 else
21420   # no readelf, err on the side of caution
21421   gcc_cv_as_cfi_advance_working=no
21422 fi
21423
21424 cat >>confdefs.h <<_ACEOF
21425 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21426        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21427 _ACEOF
21428
21429
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21431 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21432 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21433   $as_echo_n "(cached) " >&6
21434 else
21435   gcc_cv_as_cfi_personality_directive=no
21436   if test x$gcc_cv_as != x; then
21437     echo '      .text
21438         .cfi_startproc
21439         .cfi_personality 0, symbol
21440         .cfi_endproc' > conftest.s
21441     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21442   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21443   (eval $ac_try) 2>&5
21444   ac_status=$?
21445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21446   test $ac_status = 0; }; }
21447     then
21448         gcc_cv_as_cfi_personality_directive=yes
21449     else
21450       echo "configure: failed program was" >&5
21451       cat conftest.s >&5
21452     fi
21453     rm -f conftest.o conftest.s
21454   fi
21455 fi
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21457 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21458
21459
21460 cat >>confdefs.h <<_ACEOF
21461 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21462     then echo 1; else echo 0; fi`
21463 _ACEOF
21464
21465
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21467 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21468 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21469   $as_echo_n "(cached) " >&6
21470 else
21471   gcc_cv_as_cfi_sections_directive=no
21472   if test x$gcc_cv_as != x; then
21473     echo '      .text
21474         .cfi_sections .debug_frame, .eh_frame
21475         .cfi_startproc
21476         .cfi_endproc' > conftest.s
21477     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21478   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21479   (eval $ac_try) 2>&5
21480   ac_status=$?
21481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21482   test $ac_status = 0; }; }
21483     then
21484         gcc_cv_as_cfi_sections_directive=yes
21485     else
21486       echo "configure: failed program was" >&5
21487       cat conftest.s >&5
21488     fi
21489     rm -f conftest.o conftest.s
21490   fi
21491 fi
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21493 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21494
21495
21496 cat >>confdefs.h <<_ACEOF
21497 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21498     then echo 1; else echo 0; fi`
21499 _ACEOF
21500
21501
21502 # GAS versions up to and including 2.11.0 may mis-optimize
21503 # .eh_frame data.
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21505 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21506 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21507   $as_echo_n "(cached) " >&6
21508 else
21509   gcc_cv_as_eh_frame=no
21510     if test $in_tree_gas = yes; then
21511     if test $in_tree_gas_is_elf = yes \
21512   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21513   then gcc_cv_as_eh_frame=yes
21514 fi
21515   elif test x$gcc_cv_as != x; then
21516     echo '      .text
21517 .LFB1:
21518         .4byte  0
21519 .L1:
21520         .4byte  0
21521 .LFE1:
21522         .section        .eh_frame,"aw",@progbits
21523 __FRAME_BEGIN__:
21524         .4byte  .LECIE1-.LSCIE1
21525 .LSCIE1:
21526         .4byte  0x0
21527         .byte   0x1
21528         .ascii "z\0"
21529         .byte   0x1
21530         .byte   0x78
21531         .byte   0x1a
21532         .byte   0x0
21533         .byte   0x4
21534         .4byte  1
21535         .p2align 1
21536 .LECIE1:
21537 .LSFDE1:
21538         .4byte  .LEFDE1-.LASFDE1
21539 .LASFDE1:
21540         .4byte  .LASFDE1-__FRAME_BEGIN__
21541         .4byte  .LFB1
21542         .4byte  .LFE1-.LFB1
21543         .byte   0x4
21544         .4byte  .LFE1-.LFB1
21545         .byte   0x4
21546         .4byte  .L1-.LFB1
21547 .LEFDE1:' > conftest.s
21548     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21549   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21550   (eval $ac_try) 2>&5
21551   ac_status=$?
21552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21553   test $ac_status = 0; }; }
21554     then
21555           cat > conftest.lit <<EOF
21556  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21557  0010 01000000 12000000 18000000 00000000  ................
21558  0020 08000000 04080000 0044               .........D      
21559 EOF
21560 cat > conftest.big <<EOF
21561  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21562  0010 00000001 00000012 00000018 00000000  ................
21563  0020 00000008 04000000 0844               .........D      
21564 EOF
21565   # If the assembler didn't choke, and we can objdump,
21566   # and we got the correct data, then succeed.
21567   # The text in the here-document typically retains its unix-style line
21568   # endings, while the output of objdump will use host line endings.
21569   # Therefore, use diff -b for the comparisons.
21570   if test x$gcc_cv_objdump != x \
21571   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21572      | tail -3 > conftest.got \
21573   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21574     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21575   then
21576     gcc_cv_as_eh_frame=yes
21577   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21578   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21579   (eval $ac_try) 2>&5
21580   ac_status=$?
21581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21582   test $ac_status = 0; }; }; then
21583     gcc_cv_as_eh_frame=buggy
21584   else
21585     # Uh oh, what do we do now?
21586     gcc_cv_as_eh_frame=no
21587   fi
21588     else
21589       echo "configure: failed program was" >&5
21590       cat conftest.s >&5
21591     fi
21592     rm -f conftest.o conftest.s
21593   fi
21594 fi
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21596 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21597
21598
21599 if test $gcc_cv_as_eh_frame = buggy; then
21600
21601 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21602
21603 fi
21604
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21606 $as_echo_n "checking assembler for section merging support... " >&6; }
21607 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21608   $as_echo_n "(cached) " >&6
21609 else
21610   gcc_cv_as_shf_merge=no
21611     if test $in_tree_gas = yes; then
21612     if test $in_tree_gas_is_elf = yes \
21613   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21614   then gcc_cv_as_shf_merge=yes
21615 fi
21616   elif test x$gcc_cv_as != x; then
21617     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21618     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21619   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21620   (eval $ac_try) 2>&5
21621   ac_status=$?
21622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21623   test $ac_status = 0; }; }
21624     then
21625         gcc_cv_as_shf_merge=yes
21626     else
21627       echo "configure: failed program was" >&5
21628       cat conftest.s >&5
21629     fi
21630     rm -f conftest.o conftest.s
21631   fi
21632 fi
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21634 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21635
21636 if test $gcc_cv_as_shf_merge = no; then
21637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21638 $as_echo_n "checking assembler for section merging support... " >&6; }
21639 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21640   $as_echo_n "(cached) " >&6
21641 else
21642   gcc_cv_as_shf_merge=no
21643     if test $in_tree_gas = yes; then
21644     if test $in_tree_gas_is_elf = yes \
21645   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21646   then gcc_cv_as_shf_merge=yes
21647 fi
21648   elif test x$gcc_cv_as != x; then
21649     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21650     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21651   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21652   (eval $ac_try) 2>&5
21653   ac_status=$?
21654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21655   test $ac_status = 0; }; }
21656     then
21657         gcc_cv_as_shf_merge=yes
21658     else
21659       echo "configure: failed program was" >&5
21660       cat conftest.s >&5
21661     fi
21662     rm -f conftest.o conftest.s
21663   fi
21664 fi
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21666 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21667
21668 fi
21669
21670 cat >>confdefs.h <<_ACEOF
21671 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21672 _ACEOF
21673
21674
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21676 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21677 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21678   $as_echo_n "(cached) " >&6
21679 else
21680   gcc_cv_as_comdat_group=no
21681     if test $in_tree_gas = yes; then
21682     if test $in_tree_gas_is_elf = yes \
21683   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21684   then gcc_cv_as_comdat_group=yes
21685 fi
21686   elif test x$gcc_cv_as != x; then
21687     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21688     if { ac_try='$gcc_cv_as --fatal-warnings -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         gcc_cv_as_comdat_group=yes
21696     else
21697       echo "configure: failed program was" >&5
21698       cat conftest.s >&5
21699     fi
21700     rm -f conftest.o conftest.s
21701   fi
21702 fi
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21704 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21705
21706 if test $gcc_cv_as_comdat_group = yes; then
21707   gcc_cv_as_comdat_group_percent=no
21708 else
21709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21710 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21711 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21712   $as_echo_n "(cached) " >&6
21713 else
21714   gcc_cv_as_comdat_group_percent=no
21715     if test $in_tree_gas = yes; then
21716     if test $in_tree_gas_is_elf = yes \
21717   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21718   then gcc_cv_as_comdat_group_percent=yes
21719 fi
21720   elif test x$gcc_cv_as != x; then
21721     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21722     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21723   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21724   (eval $ac_try) 2>&5
21725   ac_status=$?
21726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21727   test $ac_status = 0; }; }
21728     then
21729         gcc_cv_as_comdat_group_percent=yes
21730     else
21731       echo "configure: failed program was" >&5
21732       cat conftest.s >&5
21733     fi
21734     rm -f conftest.o conftest.s
21735   fi
21736 fi
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21738 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21739
21740 fi
21741 if test $in_tree_ld = yes ; then
21742   comdat_group=no
21743   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 \
21744      && test $in_tree_ld_is_elf = yes; then
21745      comdat_group=yes
21746   fi
21747 elif test x"$ld_vers" != x; then
21748   comdat_group=yes
21749   if test 0"$ld_date" -lt 20050308; then
21750     if test -n "$ld_date"; then
21751       # If there was date string, but was earlier than 2005-03-08, fail
21752       comdat_group=no
21753     elif test "$ld_vers_major" -lt 2; then
21754       comdat_group=no
21755     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21756       comdat_group=no
21757     fi
21758   fi
21759 else
21760   # assume linkers other than GNU ld don't support COMDAT group
21761   comdat_group=no
21762 fi
21763 if test $comdat_group = no; then
21764   gcc_cv_as_comdat_group=no
21765   gcc_cv_as_comdat_group_percent=no
21766 fi
21767
21768 cat >>confdefs.h <<_ACEOF
21769 #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`
21770 _ACEOF
21771
21772
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21774 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21775 if test "${gcc_cv_as_discriminator+set}" = set; then :
21776   $as_echo_n "(cached) " >&6
21777 else
21778   gcc_cv_as_discriminator=no
21779     if test $in_tree_gas = yes; then
21780     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21781   then gcc_cv_as_discriminator=yes
21782 fi
21783   elif test x$gcc_cv_as != x; then
21784     echo '      .text
21785         .file 1 "conf.c"
21786         .loc 1 1 0 discriminator 1' > conftest.s
21787     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21788   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21789   (eval $ac_try) 2>&5
21790   ac_status=$?
21791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21792   test $ac_status = 0; }; }
21793     then
21794         gcc_cv_as_discriminator=yes
21795     else
21796       echo "configure: failed program was" >&5
21797       cat conftest.s >&5
21798     fi
21799     rm -f conftest.o conftest.s
21800   fi
21801 fi
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21803 $as_echo "$gcc_cv_as_discriminator" >&6; }
21804 if test $gcc_cv_as_discriminator = yes; then
21805
21806 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21807
21808 fi
21809
21810 # Thread-local storage - the check is heavily parameterized.
21811 conftest_s=
21812 tls_first_major=
21813 tls_first_minor=
21814 tls_as_opt=
21815 case "$target" in
21816   alpha*-*-*)
21817     conftest_s='
21818         .section ".tdata","awT",@progbits
21819 foo:    .long   25
21820         .text
21821         ldq     $27,__tls_get_addr($29)         !literal!1
21822         lda     $16,foo($29)                    !tlsgd!1
21823         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21824         ldq     $27,__tls_get_addr($29)         !literal!2
21825         lda     $16,foo($29)                    !tlsldm!2
21826         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21827         ldq     $1,foo($29)                     !gotdtprel
21828         ldah    $2,foo($29)                     !dtprelhi
21829         lda     $3,foo($2)                      !dtprello
21830         lda     $4,foo($29)                     !dtprel
21831         ldq     $1,foo($29)                     !gottprel
21832         ldah    $2,foo($29)                     !tprelhi
21833         lda     $3,foo($2)                      !tprello
21834         lda     $4,foo($29)                     !tprel'
21835         tls_first_major=2
21836         tls_first_minor=13
21837         tls_as_opt=--fatal-warnings
21838         ;;
21839   cris-*-*|crisv32-*-*)
21840     conftest_s='
21841         .section ".tdata","awT",@progbits
21842 x:      .long   25
21843         .text
21844         move.d x:IE,$r10
21845         nop'
21846         tls_first_major=2
21847         tls_first_minor=20
21848         tls_as_opt=--fatal-warnings
21849         ;;
21850   frv*-*-*)
21851     conftest_s='
21852         .section ".tdata","awT",@progbits
21853 x:      .long   25
21854         .text
21855         call    #gettlsoff(x)'
21856         tls_first_major=2
21857         tls_first_minor=14
21858         ;;
21859   hppa*-*-linux*)
21860     conftest_s='
21861 t1:     .reg    %r20
21862 t2:     .reg    %r21
21863 gp:     .reg    %r19
21864         .section ".tdata","awT",@progbits
21865 foo:    .long   25
21866         .text
21867         .align  4
21868         addil LT%foo-$tls_gdidx$,gp
21869         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21870         b __tls_get_addr
21871         nop
21872         addil LT%foo-$tls_ldidx$,gp
21873         b __tls_get_addr
21874         ldo RT%foo-$tls_ldidx$(%r1),%arg0
21875         addil LR%foo-$tls_dtpoff$,%ret0
21876         ldo RR%foo-$tls_dtpoff$(%r1),%t1
21877         mfctl %cr27,%t1
21878         addil LT%foo-$tls_ieoff$,gp
21879         ldw RT%foo-$tls_ieoff$(%r1),%t2
21880         add %t1,%t2,%t3
21881         mfctl %cr27,%t1
21882         addil LR%foo-$tls_leoff$,%t1
21883         ldo RR%foo-$tls_leoff$(%r1),%t2'
21884         tls_first_major=2
21885         tls_first_minor=15
21886         tls_as_opt=--fatal-warnings
21887         ;;
21888   arm*-*-*)
21889     conftest_s='
21890         .section ".tdata","awT",%progbits
21891 foo:    .long   25
21892         .text
21893 .word foo(gottpoff)
21894 .word foo(tpoff)
21895 .word foo(tlsgd)
21896 .word foo(tlsldm)
21897 .word foo(tlsldo)'
21898         tls_first_major=2
21899         tls_first_minor=17
21900         ;;
21901   i[34567]86-*-*)
21902     conftest_s='
21903         .section ".tdata","awT",@progbits
21904 foo:    .long   25
21905         .text
21906         movl    %gs:0, %eax
21907         leal    foo@TLSGD(,%ebx,1), %eax
21908         leal    foo@TLSLDM(%ebx), %eax
21909         leal    foo@DTPOFF(%eax), %edx
21910         movl    foo@GOTTPOFF(%ebx), %eax
21911         subl    foo@GOTTPOFF(%ebx), %eax
21912         addl    foo@GOTNTPOFF(%ebx), %eax
21913         movl    foo@INDNTPOFF, %eax
21914         movl    $foo@TPOFF, %eax
21915         subl    $foo@TPOFF, %eax
21916         leal    foo@NTPOFF(%ecx), %eax'
21917         tls_first_major=2
21918         tls_first_minor=14
21919         tls_as_opt=--fatal-warnings
21920         ;;
21921   x86_64-*-*)
21922     conftest_s='
21923         .section ".tdata","awT",@progbits
21924 foo:    .long   25
21925         .text
21926         movq    %fs:0, %rax
21927         leaq    foo@TLSGD(%rip), %rdi
21928         leaq    foo@TLSLD(%rip), %rdi
21929         leaq    foo@DTPOFF(%rax), %rdx
21930         movq    foo@GOTTPOFF(%rip), %rax
21931         movq    $foo@TPOFF, %rax'
21932         tls_first_major=2
21933         tls_first_minor=14
21934         tls_as_opt=--fatal-warnings
21935         ;;
21936   ia64-*-*)
21937     conftest_s='
21938         .section ".tdata","awT",@progbits
21939 foo:    data8   25
21940         .text
21941         addl    r16 = @ltoff(@dtpmod(foo#)), gp
21942         addl    r17 = @ltoff(@dtprel(foo#)), gp
21943         addl    r18 = @ltoff(@tprel(foo#)), gp
21944         addl    r19 = @dtprel(foo#), gp
21945         adds    r21 = @dtprel(foo#), r13
21946         movl    r23 = @dtprel(foo#)
21947         addl    r20 = @tprel(foo#), gp
21948         adds    r22 = @tprel(foo#), r13
21949         movl    r24 = @tprel(foo#)'
21950         tls_first_major=2
21951         tls_first_minor=13
21952         tls_as_opt=--fatal-warnings
21953         ;;
21954   mips*-*-*)
21955     conftest_s='
21956         .section .tdata,"awT",@progbits
21957 x:
21958         .word 2
21959         .text
21960         addiu $4, $28, %tlsgd(x)
21961         addiu $4, $28, %tlsldm(x)
21962         lui $4, %dtprel_hi(x)
21963         addiu $4, $4, %dtprel_lo(x)
21964         lw $4, %gottprel(x)($28)
21965         lui $4, %tprel_hi(x)
21966         addiu $4, $4, %tprel_lo(x)'
21967         tls_first_major=2
21968         tls_first_minor=16
21969         tls_as_opt='-32 --fatal-warnings'
21970         ;;
21971   m68k-*-*)
21972     conftest_s='
21973         .section .tdata,"awT",@progbits
21974 x:
21975         .word 2
21976         .text
21977 foo:
21978         move.l x@TLSGD(%a5),%a0
21979         move.l x@TLSLDM(%a5),%a0
21980         move.l x@TLSLDO(%a5),%a0
21981         move.l x@TLSIE(%a5),%a0
21982         move.l x@TLSLE(%a5),%a0'
21983         tls_first_major=2
21984         tls_first_minor=19
21985         tls_as_opt='--fatal-warnings'
21986         ;;
21987   powerpc-*-*)
21988     conftest_s='
21989         .section ".tdata","awT",@progbits
21990         .align 2
21991 ld0:    .space 4
21992 ld1:    .space 4
21993 x1:     .space 4
21994 x2:     .space 4
21995 x3:     .space 4
21996         .text
21997         addi 3,31,ld0@got@tlsgd
21998         bl __tls_get_addr
21999         addi 3,31,x1@got@tlsld
22000         bl __tls_get_addr
22001         addi 9,3,x1@dtprel
22002         addis 9,3,x2@dtprel@ha
22003         addi 9,9,x2@dtprel@l
22004         lwz 9,x3@got@tprel(31)
22005         add 9,9,x@tls
22006         addi 9,2,x1@tprel
22007         addis 9,2,x2@tprel@ha
22008         addi 9,9,x2@tprel@l'
22009         tls_first_major=2
22010         tls_first_minor=14
22011         tls_as_opt="-a32 --fatal-warnings"
22012         ;;
22013   powerpc64-*-*)
22014     conftest_s='
22015         .section ".tdata","awT",@progbits
22016         .align 3
22017 ld0:    .space 8
22018 ld1:    .space 8
22019 x1:     .space 8
22020 x2:     .space 8
22021 x3:     .space 8
22022         .text
22023         addi 3,2,ld0@got@tlsgd
22024         bl .__tls_get_addr
22025         nop
22026         addi 3,2,ld1@toc
22027         bl .__tls_get_addr
22028         nop
22029         addi 3,2,x1@got@tlsld
22030         bl .__tls_get_addr
22031         nop
22032         addi 9,3,x1@dtprel
22033         bl .__tls_get_addr
22034         nop
22035         addis 9,3,x2@dtprel@ha
22036         addi 9,9,x2@dtprel@l
22037         bl .__tls_get_addr
22038         nop
22039         ld 9,x3@got@dtprel(2)
22040         add 9,9,3
22041         bl .__tls_get_addr
22042         nop'
22043         tls_first_major=2
22044         tls_first_minor=14
22045         tls_as_opt="-a64 --fatal-warnings"
22046         ;;
22047   s390-*-*)
22048     conftest_s='
22049         .section ".tdata","awT",@progbits
22050 foo:    .long   25
22051         .text
22052         .long   foo@TLSGD
22053         .long   foo@TLSLDM
22054         .long   foo@DTPOFF
22055         .long   foo@NTPOFF
22056         .long   foo@GOTNTPOFF
22057         .long   foo@INDNTPOFF
22058         l       %r1,foo@GOTNTPOFF(%r12)
22059         l       %r1,0(%r1):tls_load:foo
22060         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22061         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22062         tls_first_major=2
22063         tls_first_minor=14
22064         tls_as_opt="-m31 --fatal-warnings"
22065         ;;
22066   s390x-*-*)
22067     conftest_s='
22068         .section ".tdata","awT",@progbits
22069 foo:    .long   25
22070         .text
22071         .quad   foo@TLSGD
22072         .quad   foo@TLSLDM
22073         .quad   foo@DTPOFF
22074         .quad   foo@NTPOFF
22075         .quad   foo@GOTNTPOFF
22076         lg      %r1,foo@GOTNTPOFF(%r12)
22077         larl    %r1,foo@INDNTPOFF
22078         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22079         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22080         tls_first_major=2
22081         tls_first_minor=14
22082         tls_as_opt="-m64 -Aesame --fatal-warnings"
22083         ;;
22084   sh-*-* | sh[34]-*-*)
22085     conftest_s='
22086         .section ".tdata","awT",@progbits
22087 foo:    .long   25
22088         .text
22089         .long   foo@TLSGD
22090         .long   foo@TLSLDM
22091         .long   foo@DTPOFF
22092         .long   foo@GOTTPOFF
22093         .long   foo@TPOFF'
22094         tls_first_major=2
22095         tls_first_minor=13
22096         tls_as_opt=--fatal-warnings
22097         ;;
22098   sparc*-*-*)
22099     case "$target" in
22100       sparc*-sun-solaris2.[56789]*)
22101         # TLS was introduced in the Solaris 9 4/04 release but
22102         # we do not enable it by default on Solaris 9 either.
22103         if test "x$enable_tls" = xyes ; then
22104           on_solaris=yes
22105         else
22106           enable_tls=no;
22107         fi
22108         ;;
22109       sparc*-sun-solaris2.*)
22110         on_solaris=yes
22111         ;;
22112       *)
22113         on_solaris=no
22114         ;;
22115     esac
22116     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22117       conftest_s='
22118         .section ".tdata",#alloc,#write,#tls
22119 foo:    .long   25
22120         .text
22121         sethi   %tgd_hi22(foo), %o0
22122         add     %o0, %tgd_lo10(foo), %o1
22123         add     %l7, %o1, %o0, %tgd_add(foo)
22124         call    __tls_get_addr, %tgd_call(foo)
22125         sethi   %tldm_hi22(foo), %l1
22126         add     %l1, %tldm_lo10(foo), %l2
22127         add     %l7, %l2, %o0, %tldm_add(foo)
22128         call    __tls_get_addr, %tldm_call(foo)
22129         sethi   %tldo_hix22(foo), %l3
22130         xor     %l3, %tldo_lox10(foo), %l4
22131         add     %o0, %l4, %l5, %tldo_add(foo)
22132         sethi   %tie_hi22(foo), %o3
22133         add     %o3, %tie_lo10(foo), %o3
22134         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22135         add     %g7, %o2, %o4, %tie_add(foo)
22136         sethi   %tle_hix22(foo), %l1
22137         xor     %l1, %tle_lox10(foo), %o5
22138         ld      [%g7 + %o5], %o1'
22139         tls_first_major=0
22140         tls_first_minor=0
22141     else
22142       conftest_s='
22143         .section ".tdata","awT",@progbits
22144 foo:    .long   25
22145         .text
22146         sethi   %tgd_hi22(foo), %o0
22147         add     %o0, %tgd_lo10(foo), %o1
22148         add     %l7, %o1, %o0, %tgd_add(foo)
22149         call    __tls_get_addr, %tgd_call(foo)
22150         sethi   %tldm_hi22(foo), %l1
22151         add     %l1, %tldm_lo10(foo), %l2
22152         add     %l7, %l2, %o0, %tldm_add(foo)
22153         call    __tls_get_addr, %tldm_call(foo)
22154         sethi   %tldo_hix22(foo), %l3
22155         xor     %l3, %tldo_lox10(foo), %l4
22156         add     %o0, %l4, %l5, %tldo_add(foo)
22157         sethi   %tie_hi22(foo), %o3
22158         add     %o3, %tie_lo10(foo), %o3
22159         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22160         add     %g7, %o2, %o4, %tie_add(foo)
22161         sethi   %tle_hix22(foo), %l1
22162         xor     %l1, %tle_lox10(foo), %o5
22163         ld      [%g7 + %o5], %o1'
22164         tls_first_major=2
22165         tls_first_minor=14
22166         tls_as_opt="-32 --fatal-warnings"
22167       fi
22168         ;;
22169   xtensa*-*-*)
22170     conftest_s='
22171         .section ".tdata","awT",@progbits
22172 foo:    .long   25
22173         .text
22174         movi    a8, foo@TLSFUNC
22175         movi    a10, foo@TLSARG
22176         callx8.tls a8, foo@TLSCALL'
22177         tls_first_major=2
22178         tls_first_minor=19
22179         ;;
22180 esac
22181 set_have_as_tls=no
22182 if test "x$enable_tls" = xno ; then
22183   : # TLS explicitly disabled.
22184 elif test "x$enable_tls" = xyes ; then
22185   set_have_as_tls=yes # TLS explicitly enabled.
22186 elif test -z "$tls_first_major"; then
22187   : # If we don't have a check, assume no support.
22188 else
22189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22190 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22191 if test "${gcc_cv_as_tls+set}" = set; then :
22192   $as_echo_n "(cached) " >&6
22193 else
22194   gcc_cv_as_tls=no
22195     if test $in_tree_gas = yes; then
22196     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22197   then gcc_cv_as_tls=yes
22198 fi
22199   elif test x$gcc_cv_as != x; then
22200     echo "$conftest_s" > conftest.s
22201     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22202   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22203   (eval $ac_try) 2>&5
22204   ac_status=$?
22205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22206   test $ac_status = 0; }; }
22207     then
22208         gcc_cv_as_tls=yes
22209     else
22210       echo "configure: failed program was" >&5
22211       cat conftest.s >&5
22212     fi
22213     rm -f conftest.o conftest.s
22214   fi
22215 fi
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22217 $as_echo "$gcc_cv_as_tls" >&6; }
22218 if test $gcc_cv_as_tls = yes; then
22219   set_have_as_tls=yes
22220 fi
22221 fi
22222 if test $set_have_as_tls = yes ; then
22223
22224 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22225
22226 fi
22227
22228 # Target-specific assembler checks.
22229
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22231 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22232 gcc_cv_ld_static_dynamic=no
22233 if test $in_tree_ld = yes ; then
22234   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
22235     gcc_cv_ld_static_dynamic=yes
22236   fi
22237 elif test x$gcc_cv_ld != x; then
22238         # Check if linker supports -Bstatic/-Bdynamic option
22239         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22240           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22241                 gcc_cv_ld_static_dynamic=yes
22242         fi
22243 fi
22244 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22245
22246 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22247
22248 fi
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22250 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22251
22252 if test x"$demangler_in_ld" = xyes; then
22253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22254 $as_echo_n "checking linker --demangle support... " >&6; }
22255   gcc_cv_ld_demangle=no
22256   if test $in_tree_ld = yes; then
22257     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 \
22258       gcc_cv_ld_demangle=yes
22259     fi
22260   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22261     # Check if the GNU linker supports --demangle option
22262     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22263       gcc_cv_ld_demangle=yes
22264     fi
22265   fi
22266   if test x"$gcc_cv_ld_demangle" = xyes; then
22267
22268 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22269
22270   fi
22271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22272 $as_echo "$gcc_cv_ld_demangle" >&6; }
22273 fi
22274
22275 case "$target" in
22276   # All TARGET_ABI_OSF targets.
22277   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22279 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22280 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22281   $as_echo_n "(cached) " >&6
22282 else
22283   gcc_cv_as_alpha_explicit_relocs=no
22284     if test $in_tree_gas = yes; then
22285     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22286   then gcc_cv_as_alpha_explicit_relocs=yes
22287 fi
22288   elif test x$gcc_cv_as != x; then
22289     echo '      .set nomacro
22290         .text
22291         extbl   $3, $2, $3      !lituse_bytoff!1
22292         ldq     $2, a($29)      !literal!1
22293         ldq     $4, b($29)      !literal!2
22294         ldq_u   $3, 0($2)       !lituse_base!1
22295         ldq     $27, f($29)     !literal!5
22296         jsr     $26, ($27), f   !lituse_jsr!5
22297         ldah    $29, 0($26)     !gpdisp!3
22298         lda     $0, c($29)      !gprel
22299         ldah    $1, d($29)      !gprelhigh
22300         lda     $1, d($1)       !gprellow
22301         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22302     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22303   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22304   (eval $ac_try) 2>&5
22305   ac_status=$?
22306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22307   test $ac_status = 0; }; }
22308     then
22309         gcc_cv_as_alpha_explicit_relocs=yes
22310     else
22311       echo "configure: failed program was" >&5
22312       cat conftest.s >&5
22313     fi
22314     rm -f conftest.o conftest.s
22315   fi
22316 fi
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22318 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22319 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22320
22321 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22322
22323 fi
22324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22325 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22326 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22327   $as_echo_n "(cached) " >&6
22328 else
22329   gcc_cv_as_alpha_jsrdirect_relocs=no
22330     if test $in_tree_gas = yes; then
22331     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22332   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22333 fi
22334   elif test x$gcc_cv_as != x; then
22335     echo '      .set nomacro
22336         .text
22337         ldq     $27, a($29)     !literal!1
22338         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22339     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22340   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22341   (eval $ac_try) 2>&5
22342   ac_status=$?
22343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22344   test $ac_status = 0; }; }
22345     then
22346         gcc_cv_as_alpha_jsrdirect_relocs=yes
22347     else
22348       echo "configure: failed program was" >&5
22349       cat conftest.s >&5
22350     fi
22351     rm -f conftest.o conftest.s
22352   fi
22353 fi
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22355 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22356 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22357
22358 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22359
22360 fi
22361     ;;
22362
22363   cris-*-*)
22364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22365 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22366 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22367   $as_echo_n "(cached) " >&6
22368 else
22369   gcc_cv_as_cris_no_mul_bug=no
22370     if test $in_tree_gas = yes; then
22371     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22372   then gcc_cv_as_cris_no_mul_bug=yes
22373 fi
22374   elif test x$gcc_cv_as != x; then
22375     echo '.text' > conftest.s
22376     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22377   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22378   (eval $ac_try) 2>&5
22379   ac_status=$?
22380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22381   test $ac_status = 0; }; }
22382     then
22383         gcc_cv_as_cris_no_mul_bug=yes
22384     else
22385       echo "configure: failed program was" >&5
22386       cat conftest.s >&5
22387     fi
22388     rm -f conftest.o conftest.s
22389   fi
22390 fi
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22392 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22393 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22394
22395 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22396
22397 fi
22398     ;;
22399
22400   sparc*-*-*)
22401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22402 $as_echo_n "checking assembler for .register... " >&6; }
22403 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22404   $as_echo_n "(cached) " >&6
22405 else
22406   gcc_cv_as_sparc_register_op=no
22407   if test x$gcc_cv_as != x; then
22408     echo '.register %g2, #scratch' > conftest.s
22409     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22410   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22411   (eval $ac_try) 2>&5
22412   ac_status=$?
22413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22414   test $ac_status = 0; }; }
22415     then
22416         gcc_cv_as_sparc_register_op=yes
22417     else
22418       echo "configure: failed program was" >&5
22419       cat conftest.s >&5
22420     fi
22421     rm -f conftest.o conftest.s
22422   fi
22423 fi
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22425 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22426 if test $gcc_cv_as_sparc_register_op = yes; then
22427
22428 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22429
22430 fi
22431
22432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22433 $as_echo_n "checking assembler for -relax option... " >&6; }
22434 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22435   $as_echo_n "(cached) " >&6
22436 else
22437   gcc_cv_as_sparc_relax=no
22438   if test x$gcc_cv_as != x; then
22439     echo '.text' > conftest.s
22440     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22441   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22442   (eval $ac_try) 2>&5
22443   ac_status=$?
22444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22445   test $ac_status = 0; }; }
22446     then
22447         gcc_cv_as_sparc_relax=yes
22448     else
22449       echo "configure: failed program was" >&5
22450       cat conftest.s >&5
22451     fi
22452     rm -f conftest.o conftest.s
22453   fi
22454 fi
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22456 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22457 if test $gcc_cv_as_sparc_relax = yes; then
22458
22459 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22460
22461 fi
22462
22463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22464 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22465 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22466   $as_echo_n "(cached) " >&6
22467 else
22468   gcc_cv_as_sparc_ua_pcrel=no
22469   if test x$gcc_cv_as != x; then
22470     echo '.text
22471 foo:
22472         nop
22473 .data
22474 .align 4
22475 .byte 0
22476 .uaword %r_disp32(foo)' > conftest.s
22477     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22478   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22479   (eval $ac_try) 2>&5
22480   ac_status=$?
22481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22482   test $ac_status = 0; }; }
22483     then
22484         if test x$gcc_cv_ld != x \
22485        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22486          gcc_cv_as_sparc_ua_pcrel=yes
22487        fi
22488        rm -f conftest
22489     else
22490       echo "configure: failed program was" >&5
22491       cat conftest.s >&5
22492     fi
22493     rm -f conftest.o conftest.s
22494   fi
22495 fi
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22497 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22498 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22499
22500 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22501
22502
22503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22504 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22505 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22506   $as_echo_n "(cached) " >&6
22507 else
22508   gcc_cv_as_sparc_ua_pcrel_hidden=no
22509   if test x$gcc_cv_as != x; then
22510     echo '.data
22511 .align 4
22512 .byte 0x31
22513 .uaword %r_disp32(foo)
22514 .byte 0x32, 0x33, 0x34
22515 .global foo
22516 .hidden foo
22517 foo:
22518 .skip 4' > conftest.s
22519     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22520   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22521   (eval $ac_try) 2>&5
22522   ac_status=$?
22523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22524   test $ac_status = 0; }; }
22525     then
22526         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22527          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22528          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22529             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22530             if $gcc_cv_objdump -R conftest 2> /dev/null \
22531                | grep 'DISP32' > /dev/null 2>&1; then
22532                 :
22533             else
22534                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22535             fi
22536          fi
22537          rm -f conftest
22538     else
22539       echo "configure: failed program was" >&5
22540       cat conftest.s >&5
22541     fi
22542     rm -f conftest.o conftest.s
22543   fi
22544 fi
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22546 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22547 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22548
22549 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22550
22551 fi
22552
22553 fi # unaligned pcrel relocs
22554
22555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22556 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22557 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22558   $as_echo_n "(cached) " >&6
22559 else
22560   gcc_cv_as_sparc_offsetable_lo10=no
22561   if test x$gcc_cv_as != x; then
22562     echo '.text
22563         or %g1, %lo(ab) + 12, %g1
22564         or %g1, %lo(ab + 12), %g1' > conftest.s
22565     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22566   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22567   (eval $ac_try) 2>&5
22568   ac_status=$?
22569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22570   test $ac_status = 0; }; }
22571     then
22572         if test x$gcc_cv_objdump != x \
22573        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22574           | grep ' 82106000 82106000' > /dev/null 2>&1; then
22575          gcc_cv_as_sparc_offsetable_lo10=yes
22576        fi
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_sparc_offsetable_lo10" >&5
22585 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22586 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22587
22588 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22589
22590 fi
22591     ;;
22592
22593   i[34567]86-*-* | x86_64-*-*)
22594     case $target_os in
22595       cygwin*)
22596         # Full C++ conformance when using a shared libstdc++-v3 requires some
22597         # support from the Cygwin DLL, which in more recent versions exports
22598         # wrappers to aid in interposing and redirecting operators new, delete,
22599         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
22600         # are configuring for a version of Cygwin that exports the wrappers.
22601         if test x$host = x$target; then
22602           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22603 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22604   gcc_ac_cygwin_dll_wrappers=yes
22605 else
22606   gcc_ac_cygwin_dll_wrappers=no
22607 fi
22608
22609         else
22610           # Can't check presence of libc functions during cross-compile, so
22611           # we just have to assume we're building for an up-to-date target.
22612           gcc_ac_cygwin_dll_wrappers=yes
22613         fi
22614
22615 cat >>confdefs.h <<_ACEOF
22616 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22617 _ACEOF
22618
22619     esac
22620     case $target_os in
22621       cygwin* | pe | mingw32*)
22622         # Recent binutils allows the three-operand form of ".comm" on PE.  This
22623         # definition is used unconditionally to initialise the default state of
22624         # the target option variable that governs usage of the feature.
22625         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22626 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22627 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22628   $as_echo_n "(cached) " >&6
22629 else
22630   gcc_cv_as_comm_has_align=no
22631     if test $in_tree_gas = yes; then
22632     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22633   then gcc_cv_as_comm_has_align=yes
22634 fi
22635   elif test x$gcc_cv_as != x; then
22636     echo '.comm foo,1,32' > conftest.s
22637     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22638   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22639   (eval $ac_try) 2>&5
22640   ac_status=$?
22641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22642   test $ac_status = 0; }; }
22643     then
22644         gcc_cv_as_comm_has_align=yes
22645     else
22646       echo "configure: failed program was" >&5
22647       cat conftest.s >&5
22648     fi
22649     rm -f conftest.o conftest.s
22650   fi
22651 fi
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22653 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22654
22655
22656 cat >>confdefs.h <<_ACEOF
22657 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22658 _ACEOF
22659
22660         # Used for DWARF 2 in PE
22661         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22662 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22663 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22664   $as_echo_n "(cached) " >&6
22665 else
22666   gcc_cv_as_ix86_pe_secrel32=no
22667     if test $in_tree_gas = yes; then
22668     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22669   then gcc_cv_as_ix86_pe_secrel32=yes
22670 fi
22671   elif test x$gcc_cv_as != x; then
22672     echo '.text
22673 foo:    nop
22674 .data
22675         .secrel32 foo' > conftest.s
22676     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22677   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22678   (eval $ac_try) 2>&5
22679   ac_status=$?
22680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22681   test $ac_status = 0; }; }
22682     then
22683         if test x$gcc_cv_ld != x \
22684            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22685              gcc_cv_as_ix86_pe_secrel32=yes
22686            fi
22687            rm -f conftest
22688     else
22689       echo "configure: failed program was" >&5
22690       cat conftest.s >&5
22691     fi
22692     rm -f conftest.o conftest.s
22693   fi
22694 fi
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22696 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22697 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22698
22699 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22700
22701 fi
22702         ;;
22703     esac
22704
22705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22706 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22707 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22708   $as_echo_n "(cached) " >&6
22709 else
22710   gcc_cv_as_ix86_filds=no
22711   if test x$gcc_cv_as != x; then
22712     echo 'filds mem; fists mem' > conftest.s
22713     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22714   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715   (eval $ac_try) 2>&5
22716   ac_status=$?
22717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718   test $ac_status = 0; }; }
22719     then
22720         gcc_cv_as_ix86_filds=yes
22721     else
22722       echo "configure: failed program was" >&5
22723       cat conftest.s >&5
22724     fi
22725     rm -f conftest.o conftest.s
22726   fi
22727 fi
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22729 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22730 if test $gcc_cv_as_ix86_filds = yes; then
22731
22732 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22733
22734 fi
22735
22736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22737 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22738 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22739   $as_echo_n "(cached) " >&6
22740 else
22741   gcc_cv_as_ix86_fildq=no
22742   if test x$gcc_cv_as != x; then
22743     echo 'fildq mem; fistpq mem' > conftest.s
22744     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22745   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22746   (eval $ac_try) 2>&5
22747   ac_status=$?
22748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22749   test $ac_status = 0; }; }
22750     then
22751         gcc_cv_as_ix86_fildq=yes
22752     else
22753       echo "configure: failed program was" >&5
22754       cat conftest.s >&5
22755     fi
22756     rm -f conftest.o conftest.s
22757   fi
22758 fi
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22760 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22761 if test $gcc_cv_as_ix86_fildq = yes; then
22762
22763 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22764
22765 fi
22766
22767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22768 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22769 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22770   $as_echo_n "(cached) " >&6
22771 else
22772   gcc_cv_as_ix86_cmov_sun_syntax=no
22773   if test x$gcc_cv_as != x; then
22774     echo 'cmovl.l %edx, %eax' > conftest.s
22775     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22776   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22777   (eval $ac_try) 2>&5
22778   ac_status=$?
22779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22780   test $ac_status = 0; }; }
22781     then
22782         gcc_cv_as_ix86_cmov_sun_syntax=yes
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_ix86_cmov_sun_syntax" >&5
22791 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22792 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22793
22794 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22795
22796 fi
22797
22798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22799 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22800 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22801   $as_echo_n "(cached) " >&6
22802 else
22803   gcc_cv_as_ix86_ffreep=no
22804   if test x$gcc_cv_as != x; then
22805     echo 'ffreep %st(1)' > conftest.s
22806     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22807   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22808   (eval $ac_try) 2>&5
22809   ac_status=$?
22810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22811   test $ac_status = 0; }; }
22812     then
22813         gcc_cv_as_ix86_ffreep=yes
22814     else
22815       echo "configure: failed program was" >&5
22816       cat conftest.s >&5
22817     fi
22818     rm -f conftest.o conftest.s
22819   fi
22820 fi
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22822 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22823 if test $gcc_cv_as_ix86_ffreep = yes; then
22824
22825 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22826
22827 fi
22828
22829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22830 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22831 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22832   $as_echo_n "(cached) " >&6
22833 else
22834   gcc_cv_as_ix86_sahf=no
22835   if test x$gcc_cv_as != x; then
22836     echo 'sahf' > conftest.s
22837     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22838   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22839   (eval $ac_try) 2>&5
22840   ac_status=$?
22841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842   test $ac_status = 0; }; }
22843     then
22844         gcc_cv_as_ix86_sahf=yes
22845     else
22846       echo "configure: failed program was" >&5
22847       cat conftest.s >&5
22848     fi
22849     rm -f conftest.o conftest.s
22850   fi
22851 fi
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22853 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22854 if test $gcc_cv_as_ix86_sahf = yes; then
22855
22856 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22857
22858 fi
22859
22860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
22861 $as_echo_n "checking assembler for swap suffix... " >&6; }
22862 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
22863   $as_echo_n "(cached) " >&6
22864 else
22865   gcc_cv_as_ix86_swap=no
22866   if test x$gcc_cv_as != x; then
22867     echo 'movl.s %esp, %ebp' > conftest.s
22868     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22869   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22870   (eval $ac_try) 2>&5
22871   ac_status=$?
22872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22873   test $ac_status = 0; }; }
22874     then
22875         gcc_cv_as_ix86_swap=yes
22876     else
22877       echo "configure: failed program was" >&5
22878       cat conftest.s >&5
22879     fi
22880     rm -f conftest.o conftest.s
22881   fi
22882 fi
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
22884 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
22885 if test $gcc_cv_as_ix86_swap = yes; then
22886
22887 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
22888
22889 fi
22890
22891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22892 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22893 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22894   $as_echo_n "(cached) " >&6
22895 else
22896   gcc_cv_as_ix86_diff_sect_delta=no
22897   if test x$gcc_cv_as != x; then
22898     echo '.section .rodata
22899 .L1:
22900         .long .L2-.L1
22901         .long .L3-.L1
22902         .text
22903 .L3:    nop
22904 .L2:    nop' > conftest.s
22905     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907   (eval $ac_try) 2>&5
22908   ac_status=$?
22909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910   test $ac_status = 0; }; }
22911     then
22912         gcc_cv_as_ix86_diff_sect_delta=yes
22913     else
22914       echo "configure: failed program was" >&5
22915       cat conftest.s >&5
22916     fi
22917     rm -f conftest.o conftest.s
22918   fi
22919 fi
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22921 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22922 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22923
22924 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22925
22926 fi
22927
22928     # This one is used unconditionally by i386.[ch]; it is to be defined
22929     # to 1 if the feature is present, 0 otherwise.
22930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22931 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22932 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22933   $as_echo_n "(cached) " >&6
22934 else
22935   gcc_cv_as_ix86_gotoff_in_data=no
22936     if test $in_tree_gas = yes; then
22937     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22938   then gcc_cv_as_ix86_gotoff_in_data=yes
22939 fi
22940   elif test x$gcc_cv_as != x; then
22941     echo '      .text
22942 .L0:
22943         nop
22944         .data
22945         .long .L0@GOTOFF' > conftest.s
22946     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22947   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22948   (eval $ac_try) 2>&5
22949   ac_status=$?
22950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22951   test $ac_status = 0; }; }
22952     then
22953         gcc_cv_as_ix86_gotoff_in_data=yes
22954     else
22955       echo "configure: failed program was" >&5
22956       cat conftest.s >&5
22957     fi
22958     rm -f conftest.o conftest.s
22959   fi
22960 fi
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22962 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22963
22964
22965 cat >>confdefs.h <<_ACEOF
22966 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22967 _ACEOF
22968
22969     ;;
22970
22971   ia64*-*-*)
22972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
22973 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
22974 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
22975   $as_echo_n "(cached) " >&6
22976 else
22977   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22978     if test $in_tree_gas = yes; then
22979     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22980   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22981 fi
22982   elif test x$gcc_cv_as != x; then
22983     echo '      .text
22984         addl r15 = @ltoffx(x#), gp
22985         ;;
22986         ld8.mov r16 = [r15], x#' > conftest.s
22987     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22988   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22989   (eval $ac_try) 2>&5
22990   ac_status=$?
22991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22992   test $ac_status = 0; }; }
22993     then
22994         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22995     else
22996       echo "configure: failed program was" >&5
22997       cat conftest.s >&5
22998     fi
22999     rm -f conftest.o conftest.s
23000   fi
23001 fi
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23003 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23004 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23005
23006 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23007
23008 fi
23009
23010     ;;
23011
23012   powerpc*-*-*)
23013     case $target in
23014       *-*-aix*) conftest_s='    .machine "pwr5"
23015         .csect .text[PR]
23016         mfcr 3,128';;
23017       *-*-darwin*)
23018         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23019 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23020 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23021   $as_echo_n "(cached) " >&6
23022 else
23023   gcc_cv_as_machine_directive=no
23024   if test x$gcc_cv_as != x; then
23025     echo '      .machine ppc7400' > conftest.s
23026     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23027   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23028   (eval $ac_try) 2>&5
23029   ac_status=$?
23030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23031   test $ac_status = 0; }; }
23032     then
23033         gcc_cv_as_machine_directive=yes
23034     else
23035       echo "configure: failed program was" >&5
23036       cat conftest.s >&5
23037     fi
23038     rm -f conftest.o conftest.s
23039   fi
23040 fi
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23042 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23043
23044         if test x$gcc_cv_as_machine_directive != xyes; then
23045           echo "*** This target requires an assembler supporting \".machine\"" >&2
23046           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23047           test x$build = x$target && exit 1
23048         fi
23049         conftest_s='    .text
23050         mfcr r3,128';;
23051       *) conftest_s='   .machine power4
23052         .text
23053         mfcr 3,128';;
23054     esac
23055
23056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23057 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23058 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23059   $as_echo_n "(cached) " >&6
23060 else
23061   gcc_cv_as_powerpc_mfcrf=no
23062     if test $in_tree_gas = yes; then
23063     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23064   then gcc_cv_as_powerpc_mfcrf=yes
23065 fi
23066   elif test x$gcc_cv_as != x; then
23067     echo "$conftest_s" > conftest.s
23068     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23069   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23070   (eval $ac_try) 2>&5
23071   ac_status=$?
23072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23073   test $ac_status = 0; }; }
23074     then
23075         gcc_cv_as_powerpc_mfcrf=yes
23076     else
23077       echo "configure: failed program was" >&5
23078       cat conftest.s >&5
23079     fi
23080     rm -f conftest.o conftest.s
23081   fi
23082 fi
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23084 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23085 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23086
23087 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23088
23089 fi
23090
23091     case $target in
23092       *-*-aix*) conftest_s='    .machine "pwr5"
23093         .csect .text[PR]
23094         popcntb 3,3';;
23095       *) conftest_s='   .machine power5
23096         .text
23097         popcntb 3,3';;
23098     esac
23099
23100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23101 $as_echo_n "checking assembler for popcntb support... " >&6; }
23102 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23103   $as_echo_n "(cached) " >&6
23104 else
23105   gcc_cv_as_powerpc_popcntb=no
23106     if test $in_tree_gas = yes; then
23107     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23108   then gcc_cv_as_powerpc_popcntb=yes
23109 fi
23110   elif test x$gcc_cv_as != x; then
23111     echo "$conftest_s" > conftest.s
23112     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23113   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23114   (eval $ac_try) 2>&5
23115   ac_status=$?
23116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23117   test $ac_status = 0; }; }
23118     then
23119         gcc_cv_as_powerpc_popcntb=yes
23120     else
23121       echo "configure: failed program was" >&5
23122       cat conftest.s >&5
23123     fi
23124     rm -f conftest.o conftest.s
23125   fi
23126 fi
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23128 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23129 if test $gcc_cv_as_powerpc_popcntb = yes; then
23130
23131 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23132
23133 fi
23134
23135     case $target in
23136       *-*-aix*) conftest_s='    .machine "pwr5x"
23137         .csect .text[PR]
23138         frin 1,1';;
23139       *) conftest_s='   .machine power5
23140         .text
23141         frin 1,1';;
23142     esac
23143
23144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23145 $as_echo_n "checking assembler for fp round support... " >&6; }
23146 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23147   $as_echo_n "(cached) " >&6
23148 else
23149   gcc_cv_as_powerpc_fprnd=no
23150     if test $in_tree_gas = yes; then
23151     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23152   then gcc_cv_as_powerpc_fprnd=yes
23153 fi
23154   elif test x$gcc_cv_as != x; then
23155     echo "$conftest_s" > conftest.s
23156     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23157   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23158   (eval $ac_try) 2>&5
23159   ac_status=$?
23160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23161   test $ac_status = 0; }; }
23162     then
23163         gcc_cv_as_powerpc_fprnd=yes
23164     else
23165       echo "configure: failed program was" >&5
23166       cat conftest.s >&5
23167     fi
23168     rm -f conftest.o conftest.s
23169   fi
23170 fi
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23172 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23173 if test $gcc_cv_as_powerpc_fprnd = yes; then
23174
23175 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23176
23177 fi
23178
23179     case $target in
23180       *-*-aix*) conftest_s='    .machine "pwr6"
23181         .csect .text[PR]
23182         mffgpr 1,3';;
23183       *) conftest_s='   .machine power6
23184         .text
23185         mffgpr 1,3';;
23186     esac
23187
23188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23189 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23190 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23191   $as_echo_n "(cached) " >&6
23192 else
23193   gcc_cv_as_powerpc_mfpgpr=no
23194     if test $in_tree_gas = yes; then
23195     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23196   then gcc_cv_as_powerpc_mfpgpr=yes
23197 fi
23198   elif test x$gcc_cv_as != x; then
23199     echo "$conftest_s" > conftest.s
23200     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23201   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23202   (eval $ac_try) 2>&5
23203   ac_status=$?
23204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23205   test $ac_status = 0; }; }
23206     then
23207         gcc_cv_as_powerpc_mfpgpr=yes
23208     else
23209       echo "configure: failed program was" >&5
23210       cat conftest.s >&5
23211     fi
23212     rm -f conftest.o conftest.s
23213   fi
23214 fi
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23216 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23217 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23218
23219 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23220
23221 fi
23222
23223     case $target in
23224       *-*-aix*) conftest_s='    .csect .text[PR]
23225 LCF..0:
23226         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23227       *-*-darwin*)
23228         conftest_s='    .text
23229 LCF0:
23230         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23231       *) conftest_s='   .text
23232 .LCF0:
23233         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23234     esac
23235
23236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23237 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23238 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23239   $as_echo_n "(cached) " >&6
23240 else
23241   gcc_cv_as_powerpc_rel16=no
23242     if test $in_tree_gas = yes; then
23243     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23244   then gcc_cv_as_powerpc_rel16=yes
23245 fi
23246   elif test x$gcc_cv_as != x; then
23247     echo "$conftest_s" > conftest.s
23248     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23249   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23250   (eval $ac_try) 2>&5
23251   ac_status=$?
23252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23253   test $ac_status = 0; }; }
23254     then
23255         gcc_cv_as_powerpc_rel16=yes
23256     else
23257       echo "configure: failed program was" >&5
23258       cat conftest.s >&5
23259     fi
23260     rm -f conftest.o conftest.s
23261   fi
23262 fi
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23264 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23265 if test $gcc_cv_as_powerpc_rel16 = yes; then
23266
23267 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23268
23269 fi
23270
23271     case $target in
23272       *-*-aix*) conftest_s='    .machine "pwr6"
23273         .csect .text[PR]
23274         cmpb 3,4,5';;
23275       *) conftest_s='   .machine power6
23276         .text
23277         cmpb 3,4,5';;
23278     esac
23279
23280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23281 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23282 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23283   $as_echo_n "(cached) " >&6
23284 else
23285   gcc_cv_as_powerpc_cmpb=no
23286     if test $in_tree_gas = yes; then
23287     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23288   then gcc_cv_as_powerpc_cmpb=yes
23289 fi
23290   elif test x$gcc_cv_as != x; then
23291     echo "$conftest_s" > conftest.s
23292     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23293   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23294   (eval $ac_try) 2>&5
23295   ac_status=$?
23296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23297   test $ac_status = 0; }; }
23298     then
23299         gcc_cv_as_powerpc_cmpb=yes
23300     else
23301       echo "configure: failed program was" >&5
23302       cat conftest.s >&5
23303     fi
23304     rm -f conftest.o conftest.s
23305   fi
23306 fi
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23308 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23309 if test $gcc_cv_as_powerpc_cmpb = yes; then
23310
23311 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23312
23313 fi
23314
23315     case $target in
23316       *-*-aix*) conftest_s='    .machine "pwr6"
23317         .csect .text[PR]
23318         dadd 1,2,3';;
23319       *) conftest_s='   .machine power6
23320         .text
23321         dadd 1,2,3';;
23322     esac
23323
23324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23325 $as_echo_n "checking assembler for decimal float support... " >&6; }
23326 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23327   $as_echo_n "(cached) " >&6
23328 else
23329   gcc_cv_as_powerpc_dfp=no
23330     if test $in_tree_gas = yes; then
23331     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23332   then gcc_cv_as_powerpc_dfp=yes
23333 fi
23334   elif test x$gcc_cv_as != x; then
23335     echo "$conftest_s" > conftest.s
23336     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23337   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23338   (eval $ac_try) 2>&5
23339   ac_status=$?
23340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23341   test $ac_status = 0; }; }
23342     then
23343         gcc_cv_as_powerpc_dfp=yes
23344     else
23345       echo "configure: failed program was" >&5
23346       cat conftest.s >&5
23347     fi
23348     rm -f conftest.o conftest.s
23349   fi
23350 fi
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23352 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23353 if test $gcc_cv_as_powerpc_dfp = yes; then
23354
23355 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23356
23357 fi
23358
23359     case $target in
23360       *-*-aix*) conftest_s='    .machine "pwr7"
23361         .csect .text[PR]
23362         lxvd2x 1,2,3';;
23363       *) conftest_s='   .machine power7
23364         .text
23365         lxvd2x 1,2,3';;
23366     esac
23367
23368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23369 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23370 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23371   $as_echo_n "(cached) " >&6
23372 else
23373   gcc_cv_as_powerpc_vsx=no
23374     if test $in_tree_gas = yes; then
23375     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23376   then gcc_cv_as_powerpc_vsx=yes
23377 fi
23378   elif test x$gcc_cv_as != x; then
23379     echo "$conftest_s" > conftest.s
23380     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23381   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23382   (eval $ac_try) 2>&5
23383   ac_status=$?
23384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23385   test $ac_status = 0; }; }
23386     then
23387         gcc_cv_as_powerpc_vsx=yes
23388     else
23389       echo "configure: failed program was" >&5
23390       cat conftest.s >&5
23391     fi
23392     rm -f conftest.o conftest.s
23393   fi
23394 fi
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23396 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23397 if test $gcc_cv_as_powerpc_vsx = yes; then
23398
23399 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23400
23401 fi
23402
23403     case $target in
23404       *-*-aix*) conftest_s='    .machine "pwr7"
23405         .csect .text[PR]
23406         popcntd 3,3';;
23407       *) conftest_s='   .machine power7
23408         .text
23409         popcntd 3,3';;
23410     esac
23411
23412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23413 $as_echo_n "checking assembler for popcntd support... " >&6; }
23414 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23415   $as_echo_n "(cached) " >&6
23416 else
23417   gcc_cv_as_powerpc_popcntd=no
23418     if test $in_tree_gas = yes; then
23419     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23420   then gcc_cv_as_powerpc_popcntd=yes
23421 fi
23422   elif test x$gcc_cv_as != x; then
23423     echo "$conftest_s" > conftest.s
23424     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23425   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23426   (eval $ac_try) 2>&5
23427   ac_status=$?
23428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23429   test $ac_status = 0; }; }
23430     then
23431         gcc_cv_as_powerpc_popcntd=yes
23432     else
23433       echo "configure: failed program was" >&5
23434       cat conftest.s >&5
23435     fi
23436     rm -f conftest.o conftest.s
23437   fi
23438 fi
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23440 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23441 if test $gcc_cv_as_powerpc_popcntd = yes; then
23442
23443 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23444
23445 fi
23446
23447     case $target in
23448       *-*-aix*) conftest_s='    .csect .text[PR]
23449         lwsync';;
23450       *) conftest_s='   .text
23451         lwsync';;
23452     esac
23453
23454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23455 $as_echo_n "checking assembler for lwsync support... " >&6; }
23456 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23457   $as_echo_n "(cached) " >&6
23458 else
23459   gcc_cv_as_powerpc_lwsync=no
23460     if test $in_tree_gas = yes; then
23461     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23462   then gcc_cv_as_powerpc_lwsync=yes
23463 fi
23464   elif test x$gcc_cv_as != x; then
23465     echo "$conftest_s" > conftest.s
23466     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23467   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23468   (eval $ac_try) 2>&5
23469   ac_status=$?
23470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23471   test $ac_status = 0; }; }
23472     then
23473         gcc_cv_as_powerpc_lwsync=yes
23474     else
23475       echo "configure: failed program was" >&5
23476       cat conftest.s >&5
23477     fi
23478     rm -f conftest.o conftest.s
23479   fi
23480 fi
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23482 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23483 if test $gcc_cv_as_powerpc_lwsync = yes; then
23484
23485 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23486
23487 fi
23488
23489     case $target in
23490       *-*-aix*) conftest_s='    .machine "476"
23491         .csect .text[PR]
23492         dci 0';;
23493       *) conftest_s='   .machine "476"
23494         .text
23495         dci 0';;
23496     esac
23497
23498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23499 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23500 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23501   $as_echo_n "(cached) " >&6
23502 else
23503   gcc_cv_as_powerpc_dci=no
23504     if test $in_tree_gas = yes; then
23505     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23506   then gcc_cv_as_powerpc_dci=yes
23507 fi
23508   elif test x$gcc_cv_as != x; then
23509     echo "$conftest_s" > conftest.s
23510     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23511   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23512   (eval $ac_try) 2>&5
23513   ac_status=$?
23514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23515   test $ac_status = 0; }; }
23516     then
23517         gcc_cv_as_powerpc_dci=yes
23518     else
23519       echo "configure: failed program was" >&5
23520       cat conftest.s >&5
23521     fi
23522     rm -f conftest.o conftest.s
23523   fi
23524 fi
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23526 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23527 if test $gcc_cv_as_powerpc_dci = yes; then
23528
23529 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23530
23531 fi
23532
23533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23534 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23535 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23536   $as_echo_n "(cached) " >&6
23537 else
23538   gcc_cv_as_powerpc_gnu_attribute=no
23539     if test $in_tree_gas = yes; then
23540     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23541   then gcc_cv_as_powerpc_gnu_attribute=yes
23542 fi
23543   elif test x$gcc_cv_as != x; then
23544     echo '.gnu_attribute 4,1' > conftest.s
23545     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23546   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23547   (eval $ac_try) 2>&5
23548   ac_status=$?
23549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23550   test $ac_status = 0; }; }
23551     then
23552         gcc_cv_as_powerpc_gnu_attribute=yes
23553     else
23554       echo "configure: failed program was" >&5
23555       cat conftest.s >&5
23556     fi
23557     rm -f conftest.o conftest.s
23558   fi
23559 fi
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23561 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23562 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23563
23564 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23565
23566 fi
23567
23568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23569 $as_echo_n "checking assembler for tls marker support... " >&6; }
23570 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23571   $as_echo_n "(cached) " >&6
23572 else
23573   gcc_cv_as_powerpc_tls_markers=no
23574     if test $in_tree_gas = yes; then
23575     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23576   then gcc_cv_as_powerpc_tls_markers=yes
23577 fi
23578   elif test x$gcc_cv_as != x; then
23579     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23580     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23581   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23582   (eval $ac_try) 2>&5
23583   ac_status=$?
23584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23585   test $ac_status = 0; }; }
23586     then
23587         gcc_cv_as_powerpc_tls_markers=yes
23588     else
23589       echo "configure: failed program was" >&5
23590       cat conftest.s >&5
23591     fi
23592     rm -f conftest.o conftest.s
23593   fi
23594 fi
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23596 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23597 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23598
23599 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23600
23601 fi
23602     ;;
23603
23604   mips*-*-*)
23605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23606 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23607 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23608   $as_echo_n "(cached) " >&6
23609 else
23610   gcc_cv_as_mips_explicit_relocs=no
23611     if test $in_tree_gas = yes; then
23612     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23613   then gcc_cv_as_mips_explicit_relocs=yes
23614 fi
23615   elif test x$gcc_cv_as != x; then
23616     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
23617     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23618   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23619   (eval $ac_try) 2>&5
23620   ac_status=$?
23621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23622   test $ac_status = 0; }; }
23623     then
23624         gcc_cv_as_mips_explicit_relocs=yes
23625     else
23626       echo "configure: failed program was" >&5
23627       cat conftest.s >&5
23628     fi
23629     rm -f conftest.o conftest.s
23630   fi
23631 fi
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23633 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23634 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23635   if test x$target_cpu_default = x
23636        then target_cpu_default=MASK_EXPLICIT_RELOCS
23637        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23638        fi
23639 fi
23640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23641 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23642 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23643   $as_echo_n "(cached) " >&6
23644 else
23645   gcc_cv_as_mips_no_shared=no
23646     if test $in_tree_gas = yes; then
23647     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23648   then gcc_cv_as_mips_no_shared=yes
23649 fi
23650   elif test x$gcc_cv_as != x; then
23651     echo 'nop' > conftest.s
23652     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23653   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23654   (eval $ac_try) 2>&5
23655   ac_status=$?
23656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23657   test $ac_status = 0; }; }
23658     then
23659         gcc_cv_as_mips_no_shared=yes
23660     else
23661       echo "configure: failed program was" >&5
23662       cat conftest.s >&5
23663     fi
23664     rm -f conftest.o conftest.s
23665   fi
23666 fi
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23668 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23669 if test $gcc_cv_as_mips_no_shared = yes; then
23670
23671 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23672
23673 fi
23674
23675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23676 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23677 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23678   $as_echo_n "(cached) " >&6
23679 else
23680   gcc_cv_as_mips_gnu_attribute=no
23681     if test $in_tree_gas = yes; then
23682     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23683   then gcc_cv_as_mips_gnu_attribute=yes
23684 fi
23685   elif test x$gcc_cv_as != x; then
23686     echo '.gnu_attribute 4,1' > conftest.s
23687     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23688   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23689   (eval $ac_try) 2>&5
23690   ac_status=$?
23691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23692   test $ac_status = 0; }; }
23693     then
23694         gcc_cv_as_mips_gnu_attribute=yes
23695     else
23696       echo "configure: failed program was" >&5
23697       cat conftest.s >&5
23698     fi
23699     rm -f conftest.o conftest.s
23700   fi
23701 fi
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23703 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23704 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23705
23706 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23707
23708 fi
23709
23710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23711 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23712 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23713   $as_echo_n "(cached) " >&6
23714 else
23715   gcc_cv_as_mips_dtprelword=no
23716     if test $in_tree_gas = yes; then
23717     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23718   then gcc_cv_as_mips_dtprelword=yes
23719 fi
23720   elif test x$gcc_cv_as != x; then
23721     echo '.section .tdata,"awT",@progbits
23722 x:
23723         .word 2
23724         .text
23725         .dtprelword x+0x8000' > conftest.s
23726     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23727   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23728   (eval $ac_try) 2>&5
23729   ac_status=$?
23730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23731   test $ac_status = 0; }; }
23732     then
23733         gcc_cv_as_mips_dtprelword=yes
23734     else
23735       echo "configure: failed program was" >&5
23736       cat conftest.s >&5
23737     fi
23738     rm -f conftest.o conftest.s
23739   fi
23740 fi
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23742 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23743 if test $gcc_cv_as_mips_dtprelword = yes; then
23744
23745 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23746
23747 fi
23748
23749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23750 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23751     gcc_cv_as_ld_jalr_reloc=no
23752     if test $gcc_cv_as_mips_explicit_relocs = yes; then
23753       if test $in_tree_ld = yes ; then
23754         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 \
23755            && test $in_tree_ld_is_elf = yes; then
23756           gcc_cv_as_ld_jalr_reloc=yes
23757         fi
23758       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23759         echo '  .ent x' > conftest.s
23760         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
23761         echo '  ld $25,%call16(y)($28)' >> conftest.s
23762         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
23763         echo '1:        jalr $25' >> conftest.s
23764         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
23765         echo '1:        jalr $25' >> conftest.s
23766         echo '  .end x' >> conftest.s
23767         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
23768            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
23769           if $gcc_cv_objdump -d conftest.so | grep -q jalr \
23770              && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
23771             gcc_cv_as_ld_jalr_reloc=yes
23772           fi
23773         fi
23774         rm -f conftest.*
23775       fi
23776     fi
23777     if test $gcc_cv_as_ld_jalr_reloc = yes; then
23778       if test x$target_cpu_default = x; then
23779         target_cpu_default=MASK_RELAX_PIC_CALLS
23780       else
23781         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
23782       fi
23783     fi
23784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
23785 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
23786
23787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
23788 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
23789 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
23790   $as_echo_n "(cached) " >&6
23791 else
23792   gcc_cv_ld_mips_personality_relaxation=no
23793        if test $in_tree_ld = yes ; then
23794          if test "$gcc_cv_gld_major_version" -eq 2 \
23795                  -a "$gcc_cv_gld_minor_version" -ge 21 \
23796                  -o "$gcc_cv_gld_major_version" -gt 2; then
23797            gcc_cv_ld_mips_personality_relaxation=yes
23798          fi
23799        elif test x$gcc_cv_as != x \
23800                  -a x$gcc_cv_ld != x \
23801                  -a x$gcc_cv_readelf != x ; then
23802          cat > conftest.s <<EOF
23803         .cfi_startproc
23804         .cfi_personality 0x80,indirect_ptr
23805         .ent test
23806 test:
23807         nop
23808         .end test
23809         .cfi_endproc
23810
23811         .section .data,"aw",@progbits
23812 indirect_ptr:
23813         .dc.a personality
23814 EOF
23815          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
23816             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
23817            if $gcc_cv_readelf -d conftest 2>&1 \
23818               | grep TEXTREL > /dev/null 2>&1; then
23819              :
23820            elif $gcc_cv_readelf --relocs conftest 2>&1 \
23821                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
23822              :
23823            else
23824              gcc_cv_ld_mips_personality_relaxation=yes
23825            fi
23826          fi
23827        fi
23828        rm -f conftest.s conftest.o conftest
23829 fi
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
23831 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
23832     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
23833
23834 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
23835
23836     fi
23837     ;;
23838 esac
23839
23840 # Mips and HP-UX need the GNU assembler.
23841 # Linux on IA64 might be able to use the Intel assembler.
23842
23843 case "$target" in
23844   mips*-*-* | *-*-hpux* )
23845     if test x$gas_flag = xyes \
23846        || test x"$host" != x"$build" \
23847        || test ! -x "$gcc_cv_as" \
23848        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23849       :
23850     else
23851       echo "*** This configuration requires the GNU assembler" >&2
23852       exit 1
23853     fi
23854     ;;
23855 esac
23856
23857 # ??? Not all targets support dwarf2 debug_line, even within a version
23858 # of gas.  Moreover, we need to emit a valid instruction to trigger any
23859 # info to the output file.  So, as supported targets are added to gas 2.11,
23860 # add some instruction here to (also) show we expect this might work.
23861 # ??? Once 2.11 is released, probably need to add first known working
23862 # version to the per-target configury.
23863 case "$target" in
23864   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23865   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23866   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23867   | spu-*-* | fido*-*-* | m32c-*-*)
23868     insn="nop"
23869     ;;
23870   ia64*-*-* | s390*-*-*)
23871     insn="nop 0"
23872     ;;
23873   mmix-*-*)
23874     insn="swym 0"
23875     ;;
23876 esac
23877 if test x"$insn" != x; then
23878  conftest_s="\
23879         .file 1 \"conftest.s\"
23880         .loc 1 3 0
23881         $insn"
23882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23883 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23884 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23885   $as_echo_n "(cached) " >&6
23886 else
23887   gcc_cv_as_dwarf2_debug_line=no
23888     if test $in_tree_gas = yes; then
23889     if test $in_tree_gas_is_elf = yes \
23890   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23891   then gcc_cv_as_dwarf2_debug_line=yes
23892 fi
23893   elif test x$gcc_cv_as != x; then
23894     echo "$conftest_s" > conftest.s
23895     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23896   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23897   (eval $ac_try) 2>&5
23898   ac_status=$?
23899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23900   test $ac_status = 0; }; }
23901     then
23902         if test x$gcc_cv_objdump != x \
23903    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23904       | grep debug_line > /dev/null 2>&1; then
23905      gcc_cv_as_dwarf2_debug_line=yes
23906    fi
23907     else
23908       echo "configure: failed program was" >&5
23909       cat conftest.s >&5
23910     fi
23911     rm -f conftest.o conftest.s
23912   fi
23913 fi
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23915 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23916
23917
23918 # The .debug_line file table must be in the exact order that
23919 # we specified the files, since these indices are also used
23920 # by DW_AT_decl_file.  Approximate this test by testing if
23921 # the assembler bitches if the same index is assigned twice.
23922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23923 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23924 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23925   $as_echo_n "(cached) " >&6
23926 else
23927   gcc_cv_as_dwarf2_file_buggy=no
23928   if test x$gcc_cv_as != x; then
23929     echo '      .file 1 "foo.s"
23930         .file 1 "bar.s"' > conftest.s
23931     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23932   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23933   (eval $ac_try) 2>&5
23934   ac_status=$?
23935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23936   test $ac_status = 0; }; }
23937     then
23938         gcc_cv_as_dwarf2_file_buggy=yes
23939     else
23940       echo "configure: failed program was" >&5
23941       cat conftest.s >&5
23942     fi
23943     rm -f conftest.o conftest.s
23944   fi
23945 fi
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23947 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23948
23949
23950  if test $gcc_cv_as_dwarf2_debug_line = yes \
23951  && test $gcc_cv_as_dwarf2_file_buggy = no; then
23952
23953 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23954
23955  fi
23956
23957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23958 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23959 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23960   $as_echo_n "(cached) " >&6
23961 else
23962   gcc_cv_as_gdwarf2_flag=no
23963     if test $in_tree_gas = yes; then
23964     if test $in_tree_gas_is_elf = yes \
23965   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23966   then gcc_cv_as_gdwarf2_flag=yes
23967 fi
23968   elif test x$gcc_cv_as != x; then
23969     echo "$insn" > conftest.s
23970     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23971   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23972   (eval $ac_try) 2>&5
23973   ac_status=$?
23974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23975   test $ac_status = 0; }; }
23976     then
23977         gcc_cv_as_gdwarf2_flag=yes
23978     else
23979       echo "configure: failed program was" >&5
23980       cat conftest.s >&5
23981     fi
23982     rm -f conftest.o conftest.s
23983   fi
23984 fi
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23986 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23987 if test $gcc_cv_as_gdwarf2_flag = yes; then
23988
23989 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23990
23991 fi
23992
23993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23994 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23995 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23996   $as_echo_n "(cached) " >&6
23997 else
23998   gcc_cv_as_gstabs_flag=no
23999     if test $in_tree_gas = yes; then
24000     if test $in_tree_gas_is_elf = yes \
24001   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24002   then gcc_cv_as_gstabs_flag=yes
24003 fi
24004   elif test x$gcc_cv_as != x; then
24005     echo "$insn" > conftest.s
24006     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
24007   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24008   (eval $ac_try) 2>&5
24009   ac_status=$?
24010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24011   test $ac_status = 0; }; }
24012     then
24013         # The native Solaris 9/Intel assembler doesn't understand --gstabs
24014    # and warns about it, but still exits successfully.  So check for
24015    # this.
24016    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24017   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24018   (eval $ac_try) 2>&5
24019   ac_status=$?
24020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24021   test $ac_status = 0; }; }
24022    then :
24023    else gcc_cv_as_gstabs_flag=yes
24024    fi
24025     else
24026       echo "configure: failed program was" >&5
24027       cat conftest.s >&5
24028     fi
24029     rm -f conftest.o conftest.s
24030   fi
24031 fi
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24033 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24034 if test $gcc_cv_as_gstabs_flag = yes; then
24035
24036 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24037
24038 fi
24039
24040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24041 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24042 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24043   $as_echo_n "(cached) " >&6
24044 else
24045   gcc_cv_as_debug_prefix_map_flag=no
24046     if test $in_tree_gas = yes; then
24047     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24048   then gcc_cv_as_debug_prefix_map_flag=yes
24049 fi
24050   elif test x$gcc_cv_as != x; then
24051     echo "$insn" > conftest.s
24052     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24053   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24054   (eval $ac_try) 2>&5
24055   ac_status=$?
24056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24057   test $ac_status = 0; }; }
24058     then
24059         gcc_cv_as_debug_prefix_map_flag=yes
24060     else
24061       echo "configure: failed program was" >&5
24062       cat conftest.s >&5
24063     fi
24064     rm -f conftest.o conftest.s
24065   fi
24066 fi
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24068 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24069 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24070
24071 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24072
24073 fi
24074 fi
24075
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24077 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24078 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24079   $as_echo_n "(cached) " >&6
24080 else
24081   gcc_cv_as_lcomm_with_alignment=no
24082   if test x$gcc_cv_as != x; then
24083     echo '.lcomm bar,4,16' > conftest.s
24084     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
24085   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24086   (eval $ac_try) 2>&5
24087   ac_status=$?
24088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24089   test $ac_status = 0; }; }
24090     then
24091         gcc_cv_as_lcomm_with_alignment=yes
24092     else
24093       echo "configure: failed program was" >&5
24094       cat conftest.s >&5
24095     fi
24096     rm -f conftest.o conftest.s
24097   fi
24098 fi
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24100 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24101 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24102
24103 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24104
24105 fi
24106
24107 # Check whether --enable-gnu-unique-object was given.
24108 if test "${enable_gnu_unique_object+set}" = set; then :
24109   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24110     yes | no) ;;
24111     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24112 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24113   esac
24114 else
24115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24116 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24117 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24118   $as_echo_n "(cached) " >&6
24119 else
24120   gcc_cv_as_gnu_unique_object=no
24121     if test $in_tree_gas = yes; then
24122     if test $in_tree_gas_is_elf = yes \
24123   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24124   then gcc_cv_as_gnu_unique_object=yes
24125 fi
24126   elif test x$gcc_cv_as != x; then
24127     echo '.type foo, @gnu_unique_object' > conftest.s
24128     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
24129   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133   test $ac_status = 0; }; }
24134     then
24135         gcc_cv_as_gnu_unique_object=yes
24136     else
24137       echo "configure: failed program was" >&5
24138       cat conftest.s >&5
24139     fi
24140     rm -f conftest.o conftest.s
24141   fi
24142 fi
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24144 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24145 if test $gcc_cv_as_gnu_unique_object = yes; then
24146   # Also check for ld.so support, i.e. glibc 2.11 or higher.
24147    if test x$host = x$build -a x$host = x$target &&
24148        glibcver=`ldd --version 2>/dev/null`; then
24149       glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
24150       glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
24151       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24152       if test "$glibcnum" -ge 2011 ; then
24153         enable_gnu_unique_object=yes
24154       fi
24155     fi
24156 fi
24157 fi
24158
24159 if test x$enable_gnu_unique_object = xyes; then
24160
24161 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24162
24163 fi
24164
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24166 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24167 if test "${gcc_cv_as_line_zero+set}" = set; then :
24168   $as_echo_n "(cached) " >&6
24169 else
24170   gcc_cv_as_line_zero=no
24171   if test $in_tree_gas = yes; then
24172     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24173   then gcc_cv_as_line_zero=yes
24174 fi
24175   elif test "x$gcc_cv_as" != x; then
24176     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24177     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24178   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24179   (eval $ac_try) 2>&5
24180   ac_status=$?
24181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182   test $ac_status = 0; }; } &&
24183        test "x`cat conftest.out`" = x
24184     then
24185       gcc_cv_as_line_zero=yes
24186     else
24187       echo "configure: failed program was" >&5
24188       cat conftest.s >&5
24189       echo "configure: error output was" >&5
24190       cat conftest.out >&5
24191     fi
24192     rm -f conftest.o conftest.s conftest.out
24193   fi
24194 fi
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24196 $as_echo "$gcc_cv_as_line_zero" >&6; }
24197 if test "x$gcc_cv_as_line_zero" = xyes; then
24198
24199 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24200
24201 fi
24202
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24204 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24205 gcc_cv_ld_eh_frame_hdr=no
24206 if test $in_tree_ld = yes ; then
24207   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 \
24208      && test $in_tree_ld_is_elf = yes; then
24209     gcc_cv_ld_eh_frame_hdr=yes
24210   fi
24211 elif test x$gcc_cv_ld != x; then
24212         # Check if linker supports --eh-frame-hdr option
24213         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24214                 gcc_cv_ld_eh_frame_hdr=yes
24215         fi
24216 fi
24217
24218 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24219
24220 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24221
24222 fi
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24224 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24225
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24227 $as_echo_n "checking linker position independent executable support... " >&6; }
24228 gcc_cv_ld_pie=no
24229 if test $in_tree_ld = yes ; then
24230   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 \
24231      && test $in_tree_ld_is_elf = yes; then
24232     gcc_cv_ld_pie=yes
24233   fi
24234 elif test x$gcc_cv_ld != x; then
24235         # Check if linker supports -pie option
24236         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24237                 gcc_cv_ld_pie=yes
24238         fi
24239 fi
24240 if test x"$gcc_cv_ld_pie" = xyes; then
24241
24242 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24243
24244 fi
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24246 $as_echo "$gcc_cv_ld_pie" >&6; }
24247
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24249 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24250 gcc_cv_ld_eh_gc_sections=no
24251 if test $in_tree_ld = yes ; then
24252   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 \
24253      && test $in_tree_ld_is_elf = yes; then
24254     gcc_cv_ld_eh_gc_sections=yes
24255   fi
24256 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24257   cat > conftest.s <<EOF
24258         .section        .text
24259 .globl _start
24260         .type _start, @function
24261 _start:
24262         .long foo
24263         .size _start, .-_start
24264         .section        .text.foo,"ax",@progbits
24265         .type foo, @function
24266 foo:
24267         .long 0
24268         .size foo, .-foo
24269         .section        .gcc_except_table.foo,"a",@progbits
24270 .L0:
24271         .long 0
24272         .section        .eh_frame,"a",@progbits
24273         .long .L0
24274 EOF
24275   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24276     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24277          | grep "gc-sections option ignored" > /dev/null; then
24278       gcc_cv_ld_eh_gc_sections=no
24279     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24280       gcc_cv_ld_eh_gc_sections=yes
24281       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24282       if test x$gcc_cv_as_comdat_group != xyes; then
24283         gcc_cv_ld_eh_gc_sections=no
24284         cat > conftest.s <<EOF
24285         .section        .text
24286 .globl _start
24287         .type _start, @function
24288 _start:
24289         .long foo
24290         .size _start, .-_start
24291         .section        .gnu.linkonce.t.foo,"ax",@progbits
24292         .type foo, @function
24293 foo:
24294         .long 0
24295         .size foo, .-foo
24296         .section        .gcc_except_table.foo,"a",@progbits
24297 .L0:
24298         .long 0
24299         .section        .eh_frame,"a",@progbits
24300         .long .L0
24301 EOF
24302         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24303           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24304                | grep "gc-sections option ignored" > /dev/null; then
24305             gcc_cv_ld_eh_gc_sections=no
24306           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24307             gcc_cv_ld_eh_gc_sections=yes
24308           fi
24309         fi
24310       fi
24311     fi
24312   fi
24313   rm -f conftest.s conftest.o conftest
24314 fi
24315 case "$target" in
24316   hppa*-*-linux*)
24317     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24318     gcc_cv_ld_eh_gc_sections=no
24319     ;;
24320 esac
24321 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24322
24323 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24324
24325 fi
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24327 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24328
24329 # --------
24330 # UNSORTED
24331 # --------
24332
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24334 $as_echo_n "checking linker --as-needed support... " >&6; }
24335 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24336   $as_echo_n "(cached) " >&6
24337 else
24338   gcc_cv_ld_as_needed=no
24339 if test $in_tree_ld = yes ; then
24340   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 \
24341      && test $in_tree_ld_is_elf = yes; then
24342     gcc_cv_ld_as_needed=yes
24343   fi
24344 elif test x$gcc_cv_ld != x; then
24345         # Check if linker supports --as-needed and --no-as-needed options
24346         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24347                 gcc_cv_ld_as_needed=yes
24348         fi
24349 fi
24350
24351 fi
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24353 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24354 if test x"$gcc_cv_ld_as_needed" = xyes; then
24355
24356 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24357
24358 fi
24359
24360 case "$target:$tm_file" in
24361   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24363 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24364 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24365   $as_echo_n "(cached) " >&6
24366 else
24367   gcc_cv_ld_no_dot_syms=no
24368     if test $in_tree_ld = yes ; then
24369       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
24370         gcc_cv_ld_no_dot_syms=yes
24371       fi
24372     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24373       cat > conftest1.s <<EOF
24374         .text
24375         bl .foo
24376 EOF
24377       cat > conftest2.s <<EOF
24378         .section ".opd","aw"
24379         .align 3
24380         .globl foo
24381         .type foo,@function
24382 foo:
24383         .quad .LEfoo,.TOC.@tocbase,0
24384         .text
24385 .LEfoo:
24386         blr
24387         .size foo,.-.LEfoo
24388 EOF
24389       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24390          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24391          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24392         gcc_cv_ld_no_dot_syms=yes
24393       fi
24394       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24395     fi
24396
24397 fi
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24399 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24400     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24401
24402 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24403
24404     fi
24405     ;;
24406 esac
24407
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24409 $as_echo_n "checking linker --build-id support... " >&6; }
24410 if test "${gcc_cv_ld_buildid+set}" = set; then :
24411   $as_echo_n "(cached) " >&6
24412 else
24413   gcc_cv_ld_buildid=no
24414   if test $in_tree_ld = yes ; then
24415     if test "$gcc_cv_gld_major_version" -eq 2 -a \
24416        "$gcc_cv_gld_minor_version" -ge 18 -o \
24417        "$gcc_cv_gld_major_version" -gt 2 \
24418        && test $in_tree_ld_is_elf = yes; then
24419       gcc_cv_ld_buildid=yes
24420     fi
24421   elif test x$gcc_cv_ld != x; then
24422     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24423       gcc_cv_ld_buildid=yes
24424     fi
24425   fi
24426 fi
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24428 $as_echo "$gcc_cv_ld_buildid" >&6; }
24429 if test x"$gcc_cv_ld_buildid" = xyes; then
24430
24431 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24432
24433 fi
24434
24435 # Check whether --enable-linker-build-id was given.
24436 if test "${enable_linker_build_id+set}" = set; then :
24437   enableval=$enable_linker_build_id;
24438 else
24439   enable_linker_build_id=no
24440 fi
24441
24442
24443 if test x"$enable_linker_build_id" = xyes; then
24444   if test x"$gcc_cv_ld_buildid" = xyes; then
24445
24446 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24447
24448   else
24449     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24450 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24451   fi
24452 fi
24453
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24455 $as_echo_n "checking linker --sysroot support... " >&6; }
24456 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24457   $as_echo_n "(cached) " >&6
24458 else
24459   gcc_cv_ld_sysroot=no
24460   if test $in_tree_ld = yes ; then
24461       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
24462         gcc_cv_ld_sysroot=yes
24463       fi
24464   elif test x$gcc_cv_ld != x; then
24465     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24466       gcc_cv_ld_sysroot=yes
24467     fi
24468   fi
24469 fi
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24471 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24472 if test x"$gcc_cv_ld_sysroot" = xyes; then
24473
24474 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24475
24476 fi
24477
24478 if test x$with_sysroot = x && test x$host = x$target \
24479    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24480    && test "$prefix" != "NONE"; then
24481
24482 cat >>confdefs.h <<_ACEOF
24483 #define PREFIX_INCLUDE_DIR "$prefix/include"
24484 _ACEOF
24485
24486 fi
24487
24488 # Test for stack protector support in target C library.
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24490 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24491 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24492   $as_echo_n "(cached) " >&6
24493 else
24494   gcc_cv_libc_provides_ssp=no
24495     case "$target" in
24496        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24497       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24498         if test "x$with_sysroot" = x; then
24499           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24500         elif test "x$with_build_sysroot" != "x"; then
24501           glibc_header_dir="${with_build_sysroot}/usr/include"
24502         elif test "x$with_sysroot" = xyes; then
24503           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24504         else
24505           glibc_header_dir="${with_sysroot}/usr/include"
24506         fi
24507       else
24508         glibc_header_dir=/usr/include
24509       fi
24510       # glibc 2.4 and later provides __stack_chk_fail and
24511       # either __stack_chk_guard, or TLS access to stack guard canary.
24512       if test -f $glibc_header_dir/features.h \
24513          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
24514             $glibc_header_dir/features.h > /dev/null; then
24515         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
24516            $glibc_header_dir/features.h > /dev/null; then
24517           gcc_cv_libc_provides_ssp=yes
24518         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
24519              $glibc_header_dir/features.h > /dev/null \
24520              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
24521              $glibc_header_dir/features.h > /dev/null; then
24522           gcc_cv_libc_provides_ssp=yes
24523         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
24524              $glibc_header_dir/features.h > /dev/null && \
24525              test -f $glibc_header_dir/bits/uClibc_config.h && \
24526              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
24527              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24528           gcc_cv_libc_provides_ssp=yes
24529         fi
24530       fi
24531         ;;
24532        *-*-gnu*)
24533          # Avoid complicated tests (see
24534          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24535          # simply assert that glibc does provide this, which is true for all
24536          # realistically usable GNU/Hurd configurations.
24537          gcc_cv_libc_provides_ssp=yes;;
24538        *-*-darwin* | *-*-freebsd*)
24539          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24540 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24541   gcc_cv_libc_provides_ssp=yes
24542 else
24543   echo "no __stack_chk_fail on this target"
24544 fi
24545
24546         ;;
24547   *) gcc_cv_libc_provides_ssp=no ;;
24548     esac
24549 fi
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24551 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24552
24553 if test x$gcc_cv_libc_provides_ssp = xyes; then
24554
24555 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24556
24557 fi
24558
24559 # Check if TFmode long double should be used by default or not.
24560 # Some glibc targets used DFmode long double, but with glibc 2.4
24561 # and later they can use TFmode.
24562 case "$target" in
24563   powerpc*-*-linux* | \
24564   powerpc*-*-gnu* | \
24565   sparc*-*-linux* | \
24566   s390*-*-linux* | \
24567   alpha*-*-linux*)
24568
24569 # Check whether --with-long-double-128 was given.
24570 if test "${with_long_double_128+set}" = set; then :
24571   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24572 else
24573   gcc_cv_target_ldbl128=no
24574       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24575         if test "x$with_sysroot" = x; then
24576           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24577         elif test "x$with_build_sysroot" != "x"; then
24578           glibc_header_dir="${with_build_sysroot}/usr/include"
24579         elif test "x$with_sysroot" = xyes; then
24580           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24581         else
24582           glibc_header_dir="${with_sysroot}/usr/include"
24583         fi
24584       else
24585         glibc_header_dir=/usr/include
24586       fi
24587       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24588         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24589       && gcc_cv_target_ldbl128=yes
24590
24591 fi
24592
24593     ;;
24594 esac
24595 if test x$gcc_cv_target_ldbl128 = xyes; then
24596
24597 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24598
24599 fi
24600
24601 # Find out what GC implementation we want, or may, use.
24602
24603 # Check whether --with-gc was given.
24604 if test "${with_gc+set}" = set; then :
24605   withval=$with_gc; case "$withval" in
24606   page)
24607     GGC=ggc-$withval
24608     ;;
24609   zone)
24610     GGC=ggc-$withval
24611
24612 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24613
24614     ;;
24615   *)
24616     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24617     ;;
24618 esac
24619 else
24620   GGC=ggc-page
24621 fi
24622
24623
24624 echo "Using $GGC for garbage collection."
24625
24626 # Libraries to use on the host.  This will normally be set by the top
24627 # level Makefile.  Here we simply capture the value for our Makefile.
24628 if test -z "${HOST_LIBS+set}"; then
24629   HOST_LIBS=
24630 fi
24631
24632
24633 # Use the system's zlib library.
24634 zlibdir=-L../zlib
24635 zlibinc="-I\$(srcdir)/../zlib"
24636
24637 # Check whether --with-system-zlib was given.
24638 if test "${with_system_zlib+set}" = set; then :
24639   withval=$with_system_zlib; zlibdir=
24640 zlibinc=
24641
24642 fi
24643
24644
24645
24646
24647
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24649 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24650     # Check whether --enable-maintainer-mode was given.
24651 if test "${enable_maintainer_mode+set}" = set; then :
24652   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24653 else
24654   maintainer_mode=no
24655 fi
24656
24657
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24659 $as_echo "$maintainer_mode" >&6; }
24660
24661 if test "$maintainer_mode" = "yes"; then
24662   MAINT=''
24663 else
24664   MAINT='#'
24665 fi
24666
24667 # --------------
24668 # Language hooks
24669 # --------------
24670
24671 # Make empty files to contain the specs and options for each language.
24672 # Then add #include lines to for a compiler that has specs and/or options.
24673
24674 subdirs=
24675 lang_opt_files=
24676 lang_specs_files=
24677 lang_tree_files=
24678 # These (without "all_") are set in each config-lang.in.
24679 # `language' must be a single word so is spelled singularly.
24680 all_languages=
24681 all_compilers=
24682 all_outputs='Makefile gccbug'
24683 # List of language makefile fragments.
24684 all_lang_makefrags=
24685 # List of language subdirectory makefiles.  Deprecated.
24686 all_lang_makefiles=
24687 # Additional files for gengtype
24688 all_gtfiles="$target_gtfiles"
24689
24690 # These are the languages that are set in --enable-languages,
24691 # and are available in the GCC tree.
24692 all_selected_languages=
24693
24694 # Add the language fragments.
24695 # Languages are added via two mechanisms.  Some information must be
24696 # recorded in makefile variables, these are defined in config-lang.in.
24697 # We accumulate them and plug them into the main Makefile.
24698 # The other mechanism is a set of hooks for each of the main targets
24699 # like `clean', `install', etc.
24700
24701 language_hooks="Make-hooks"
24702
24703 for lang in ${srcdir}/*/config-lang.in
24704 do
24705         test "$lang" = "${srcdir}/*/config-lang.in" && continue
24706
24707         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
24708         if test "x$lang_alias" = x
24709         then
24710               echo "$lang doesn't set \$language." 1>&2
24711               exit 1
24712         fi
24713         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24714         subdirs="$subdirs $subdir"
24715
24716         # $gcc_subdir is where the gcc integration files are to be found
24717         # for a language, both for internal compiler purposes (compiler
24718         # sources implementing front-end to GCC tree converters), and for
24719         # build infrastructure purposes (Make-lang.in, etc.)
24720         #
24721         # This will be <subdir> (relative to $srcdir) if a line like
24722         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24723         # is found in <langdir>/config-lang.in, and will remain <langdir>
24724         # otherwise.
24725         #
24726         # Except for the language alias (fetched above), the regular
24727         # "config-lang.in" contents are always retrieved from $gcc_subdir,
24728         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24729         # only this and the language alias.
24730
24731         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
24732         if [ "$gcc_subdir" = "" ]; then
24733            gcc_subdir="$subdir"
24734         fi
24735
24736         case ",$enable_languages," in
24737         *,$lang_alias,*)
24738             all_selected_languages="$all_selected_languages $lang_alias"
24739             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24740                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24741             fi
24742             ;;
24743         esac
24744
24745         language=
24746         boot_language=
24747         compilers=
24748         outputs=
24749         gtfiles=
24750         subdir_requires=
24751         . ${srcdir}/$gcc_subdir/config-lang.in
24752         if test "x$language" = x
24753         then
24754                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24755                 exit 1
24756         fi
24757
24758         ok=:
24759         case ",$enable_languages," in
24760                 *,$lang_alias,*) ;;
24761                 *)
24762                         for i in $subdir_requires; do
24763                                 test -f "${srcdir}/$i/config-lang.in" && continue
24764                                 ok=false
24765                                 break
24766                         done
24767                 ;;
24768         esac
24769         $ok || continue
24770
24771         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24772         if test -f $srcdir/$gcc_subdir/lang.opt; then
24773             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24774         fi
24775         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24776             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24777         fi
24778         if test -f ${srcdir}/$gcc_subdir/Makefile.in
24779                 then all_lang_makefiles="$gcc_subdir/Makefile"
24780         fi
24781         all_languages="$all_languages $language"
24782         all_compilers="$all_compilers $compilers"
24783         all_outputs="$all_outputs $outputs"
24784         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24785         case ",$enable_languages," in
24786                 *,lto,*)
24787
24788 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
24789
24790                     enable_lto=yes
24791
24792                     ;;
24793                 *) ;;
24794         esac
24795 done
24796
24797 # Pick up gtfiles for c
24798 gtfiles=
24799 . ${srcdir}/c-config-lang.in
24800 all_gtfiles="$all_gtfiles [c] $gtfiles"
24801
24802 check_languages=
24803 for language in $all_selected_languages
24804 do
24805         check_languages="$check_languages check-$language"
24806 done
24807
24808 # We link each language in with a set of hooks, reached indirectly via
24809 # lang.${target}.  Only do so for selected languages.
24810
24811 rm -f Make-hooks
24812 touch Make-hooks
24813 target_list="all.cross start.encap rest.encap tags \
24814         install-common install-man install-info install-pdf dvi pdf \
24815         html uninstall info man srcextra srcman srcinfo \
24816         mostlyclean clean distclean maintainer-clean install-plugin"
24817
24818 for t in $target_list
24819 do
24820         x=
24821         for lang in $all_selected_languages
24822         do
24823                 x="$x $lang.$t"
24824         done
24825         echo "lang.$t: $x" >> Make-hooks
24826 done
24827
24828 # --------
24829 # UNSORTED
24830 # --------
24831
24832 # Create .gdbinit.
24833
24834 echo "dir ." > .gdbinit
24835 echo "dir ${srcdir}" >> .gdbinit
24836 if test x$gdb_needs_out_file_path = xyes
24837 then
24838         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24839 fi
24840 if test "x$subdirs" != x; then
24841         for s in $subdirs
24842         do
24843                 echo "dir ${srcdir}/$s" >> .gdbinit
24844         done
24845 fi
24846 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24847
24848 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24849
24850
24851
24852 # Find a directory in which to install a shared libgcc.
24853
24854 # Check whether --enable-version-specific-runtime-libs was given.
24855 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24856   enableval=$enable_version_specific_runtime_libs;
24857 fi
24858
24859
24860
24861 # Check whether --with-slibdir was given.
24862 if test "${with_slibdir+set}" = set; then :
24863   withval=$with_slibdir; slibdir="$with_slibdir"
24864 else
24865   if test "${enable_version_specific_runtime_libs+set}" = set; then
24866   slibdir='$(libsubdir)'
24867 elif test "$host" != "$target"; then
24868   slibdir='$(build_tooldir)/lib'
24869 else
24870   slibdir='$(libdir)'
24871 fi
24872 fi
24873
24874
24875
24876 # Substitute configuration variables
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938 # Echo link setup.
24939 if test x${build} = x${host} ; then
24940   if test x${host} = x${target} ; then
24941     echo "Links are now set up to build a native compiler for ${target}." 1>&2
24942   else
24943     echo "Links are now set up to build a cross-compiler" 1>&2
24944     echo " from ${host} to ${target}." 1>&2
24945   fi
24946 else
24947   if test x${host} = x${target} ; then
24948     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24949     echo " for ${target}." 1>&2
24950   else
24951     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24952     echo " from ${host} to ${target}." 1>&2
24953   fi
24954 fi
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964 if test "x${CLOOGLIBS}" != "x" ; then
24965
24966 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24967
24968 fi
24969
24970
24971
24972 if test "x${LIBELFLIBS}" != "x" ; then
24973
24974 $as_echo "#define HAVE_libelf 1" >>confdefs.h
24975
24976 fi
24977
24978 # Check for plugin support
24979 # Check whether --enable-plugin was given.
24980 if test "${enable_plugin+set}" = set; then :
24981   enableval=$enable_plugin; enable_plugin=$enableval
24982 else
24983   enable_plugin=yes; default_plugin=yes
24984 fi
24985
24986
24987 pluginlibs=
24988 if test x"$enable_plugin" = x"yes"; then
24989   # Check that the host supports -rdynamic and -ldl
24990   have_rdynamic=no
24991   have_dl=no
24992   saved_LDFLAGS="$LDFLAGS"
24993   saved_LIBS="$LIBS"
24994   LIBS=
24995
24996   # Check -rdynamic
24997   LDFLAGS="$LDFLAGS -rdynamic"
24998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24999 $as_echo_n "checking for -rdynamic... " >&6; }
25000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25001 /* end confdefs.h.  */
25002
25003 int
25004 main ()
25005 {
25006 return 0;
25007   ;
25008   return 0;
25009 }
25010 _ACEOF
25011 if ac_fn_c_try_link "$LINENO"; then :
25012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25013 $as_echo "yes" >&6; }; have_rdynamic=yes
25014 else
25015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25016 $as_echo "no" >&6; }
25017 fi
25018 rm -f core conftest.err conftest.$ac_objext \
25019     conftest$ac_exeext conftest.$ac_ext
25020   if test x"$have_rdynamic" = x"yes" ; then
25021     pluginlibs="-rdynamic"
25022   fi
25023
25024   # Check -ldl
25025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25026 $as_echo_n "checking for library containing dlopen... " >&6; }
25027 if test "${ac_cv_search_dlopen+set}" = set; then :
25028   $as_echo_n "(cached) " >&6
25029 else
25030   ac_func_search_save_LIBS=$LIBS
25031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25032 /* end confdefs.h.  */
25033
25034 /* Override any GCC internal prototype to avoid an error.
25035    Use char because int might match the return type of a GCC
25036    builtin and then its argument prototype would still apply.  */
25037 #ifdef __cplusplus
25038 extern "C"
25039 #endif
25040 char dlopen ();
25041 int
25042 main ()
25043 {
25044 return dlopen ();
25045   ;
25046   return 0;
25047 }
25048 _ACEOF
25049 for ac_lib in '' dl; do
25050   if test -z "$ac_lib"; then
25051     ac_res="none required"
25052   else
25053     ac_res=-l$ac_lib
25054     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25055   fi
25056   if ac_fn_c_try_link "$LINENO"; then :
25057   ac_cv_search_dlopen=$ac_res
25058 fi
25059 rm -f core conftest.err conftest.$ac_objext \
25060     conftest$ac_exeext
25061   if test "${ac_cv_search_dlopen+set}" = set; then :
25062   break
25063 fi
25064 done
25065 if test "${ac_cv_search_dlopen+set}" = set; then :
25066
25067 else
25068   ac_cv_search_dlopen=no
25069 fi
25070 rm conftest.$ac_ext
25071 LIBS=$ac_func_search_save_LIBS
25072 fi
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25074 $as_echo "$ac_cv_search_dlopen" >&6; }
25075 ac_res=$ac_cv_search_dlopen
25076 if test "$ac_res" != no; then :
25077   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25078
25079 fi
25080
25081   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25082     pluginlibs="$pluginlibs -ldl"
25083   fi
25084
25085   # Check that we can build shared objects with -fPIC -shared
25086   LDFLAGS="$LDFLAGS -fPIC -shared"
25087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25088 $as_echo_n "checking for -fPIC -shared... " >&6; }
25089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h.  */
25091 extern int X;
25092 int
25093 main ()
25094 {
25095 return X == 0;
25096   ;
25097   return 0;
25098 }
25099 _ACEOF
25100 if ac_fn_c_try_link "$LINENO"; then :
25101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25102 $as_echo "yes" >&6; }; have_pic_shared=yes
25103 else
25104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25105 $as_echo "no" >&6; }; have_pic_shared=no
25106 fi
25107 rm -f core conftest.err conftest.$ac_objext \
25108     conftest$ac_exeext conftest.$ac_ext
25109   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25110     pluginlibs=
25111     enable_plugin=no
25112   fi
25113
25114   # If plugin support had been requested but not available, fail.
25115   if test x"$enable_plugin" = x"no" ; then
25116     if test x"$default_plugin" != x"yes"; then
25117       as_fn_error "
25118 Building GCC with plugin support requires a host that supports
25119 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25120     fi
25121   fi
25122
25123   LDFLAGS="$saved_LDFLAGS"
25124   LIBS="$saved_LIBS"
25125 fi
25126
25127
25128
25129 if test x"$enable_plugin" = x"yes"; then
25130
25131 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25132
25133 fi
25134
25135 # Configure the subdirectories
25136 # AC_CONFIG_SUBDIRS($subdirs)
25137
25138 # Create the Makefile
25139 # and configure language subdirectories
25140 ac_config_files="$ac_config_files $all_outputs"
25141
25142
25143 ac_config_commands="$ac_config_commands default"
25144
25145 cat >confcache <<\_ACEOF
25146 # This file is a shell script that caches the results of configure
25147 # tests run on this system so they can be shared between configure
25148 # scripts and configure runs, see configure's option --config-cache.
25149 # It is not useful on other systems.  If it contains results you don't
25150 # want to keep, you may remove or edit it.
25151 #
25152 # config.status only pays attention to the cache file if you give it
25153 # the --recheck option to rerun configure.
25154 #
25155 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25156 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25157 # following values.
25158
25159 _ACEOF
25160
25161 # The following way of writing the cache mishandles newlines in values,
25162 # but we know of no workaround that is simple, portable, and efficient.
25163 # So, we kill variables containing newlines.
25164 # Ultrix sh set writes to stderr and can't be redirected directly,
25165 # and sets the high bit in the cache file unless we assign to the vars.
25166 (
25167   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25168     eval ac_val=\$$ac_var
25169     case $ac_val in #(
25170     *${as_nl}*)
25171       case $ac_var in #(
25172       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25174       esac
25175       case $ac_var in #(
25176       _ | IFS | as_nl) ;; #(
25177       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25178       *) { eval $ac_var=; unset $ac_var;} ;;
25179       esac ;;
25180     esac
25181   done
25182
25183   (set) 2>&1 |
25184     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25185     *${as_nl}ac_space=\ *)
25186       # `set' does not quote correctly, so add quotes: double-quote
25187       # substitution turns \\\\ into \\, and sed turns \\ into \.
25188       sed -n \
25189         "s/'/'\\\\''/g;
25190           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25191       ;; #(
25192     *)
25193       # `set' quotes correctly as required by POSIX, so do not add quotes.
25194       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25195       ;;
25196     esac |
25197     sort
25198 ) |
25199   sed '
25200      /^ac_cv_env_/b end
25201      t clear
25202      :clear
25203      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25204      t end
25205      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25206      :end' >>confcache
25207 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25208   if test -w "$cache_file"; then
25209     test "x$cache_file" != "x/dev/null" &&
25210       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25211 $as_echo "$as_me: updating cache $cache_file" >&6;}
25212     cat confcache >$cache_file
25213   else
25214     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25215 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25216   fi
25217 fi
25218 rm -f confcache
25219
25220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25221 # Let make expand exec_prefix.
25222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25223
25224 DEFS=-DHAVE_CONFIG_H
25225
25226 ac_libobjs=
25227 ac_ltlibobjs=
25228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25229   # 1. Remove the extension, and $U if already installed.
25230   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25231   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25232   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25233   #    will be set to the directory where LIBOBJS objects are built.
25234   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25235   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25236 done
25237 LIBOBJS=$ac_libobjs
25238
25239 LTLIBOBJS=$ac_ltlibobjs
25240
25241
25242
25243
25244 : ${CONFIG_STATUS=./config.status}
25245 ac_write_fail=0
25246 ac_clean_files_save=$ac_clean_files
25247 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25249 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25250 as_write_fail=0
25251 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25252 #! $SHELL
25253 # Generated by $as_me.
25254 # Run this file to recreate the current configuration.
25255 # Compiler output produced by configure, useful for debugging
25256 # configure, is in config.log if it exists.
25257
25258 debug=false
25259 ac_cs_recheck=false
25260 ac_cs_silent=false
25261
25262 SHELL=\${CONFIG_SHELL-$SHELL}
25263 export SHELL
25264 _ASEOF
25265 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25266 ## -------------------- ##
25267 ## M4sh Initialization. ##
25268 ## -------------------- ##
25269
25270 # Be more Bourne compatible
25271 DUALCASE=1; export DUALCASE # for MKS sh
25272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25273   emulate sh
25274   NULLCMD=:
25275   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25276   # is contrary to our usage.  Disable this feature.
25277   alias -g '${1+"$@"}'='"$@"'
25278   setopt NO_GLOB_SUBST
25279 else
25280   case `(set -o) 2>/dev/null` in #(
25281   *posix*) :
25282     set -o posix ;; #(
25283   *) :
25284      ;;
25285 esac
25286 fi
25287
25288
25289 as_nl='
25290 '
25291 export as_nl
25292 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25293 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25296 # Prefer a ksh shell builtin over an external printf program on Solaris,
25297 # but without wasting forks for bash or zsh.
25298 if test -z "$BASH_VERSION$ZSH_VERSION" \
25299     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25300   as_echo='print -r --'
25301   as_echo_n='print -rn --'
25302 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25303   as_echo='printf %s\n'
25304   as_echo_n='printf %s'
25305 else
25306   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25307     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25308     as_echo_n='/usr/ucb/echo -n'
25309   else
25310     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25311     as_echo_n_body='eval
25312       arg=$1;
25313       case $arg in #(
25314       *"$as_nl"*)
25315         expr "X$arg" : "X\\(.*\\)$as_nl";
25316         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25317       esac;
25318       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25319     '
25320     export as_echo_n_body
25321     as_echo_n='sh -c $as_echo_n_body as_echo'
25322   fi
25323   export as_echo_body
25324   as_echo='sh -c $as_echo_body as_echo'
25325 fi
25326
25327 # The user is always right.
25328 if test "${PATH_SEPARATOR+set}" != set; then
25329   PATH_SEPARATOR=:
25330   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25331     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25332       PATH_SEPARATOR=';'
25333   }
25334 fi
25335
25336
25337 # IFS
25338 # We need space, tab and new line, in precisely that order.  Quoting is
25339 # there to prevent editors from complaining about space-tab.
25340 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25341 # splitting by setting IFS to empty value.)
25342 IFS=" ""        $as_nl"
25343
25344 # Find who we are.  Look in the path if we contain no directory separator.
25345 case $0 in #((
25346   *[\\/]* ) as_myself=$0 ;;
25347   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25348 for as_dir in $PATH
25349 do
25350   IFS=$as_save_IFS
25351   test -z "$as_dir" && as_dir=.
25352     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25353   done
25354 IFS=$as_save_IFS
25355
25356      ;;
25357 esac
25358 # We did not find ourselves, most probably we were run as `sh COMMAND'
25359 # in which case we are not to be found in the path.
25360 if test "x$as_myself" = x; then
25361   as_myself=$0
25362 fi
25363 if test ! -f "$as_myself"; then
25364   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25365   exit 1
25366 fi
25367
25368 # Unset variables that we do not need and which cause bugs (e.g. in
25369 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25370 # suppresses any "Segmentation fault" message there.  '((' could
25371 # trigger a bug in pdksh 5.2.14.
25372 for as_var in BASH_ENV ENV MAIL MAILPATH
25373 do eval test x\${$as_var+set} = xset \
25374   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25375 done
25376 PS1='$ '
25377 PS2='> '
25378 PS4='+ '
25379
25380 # NLS nuisances.
25381 LC_ALL=C
25382 export LC_ALL
25383 LANGUAGE=C
25384 export LANGUAGE
25385
25386 # CDPATH.
25387 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25388
25389
25390 # as_fn_error ERROR [LINENO LOG_FD]
25391 # ---------------------------------
25392 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25393 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25394 # script with status $?, using 1 if that was 0.
25395 as_fn_error ()
25396 {
25397   as_status=$?; test $as_status -eq 0 && as_status=1
25398   if test "$3"; then
25399     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25400     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25401   fi
25402   $as_echo "$as_me: error: $1" >&2
25403   as_fn_exit $as_status
25404 } # as_fn_error
25405
25406
25407 # as_fn_set_status STATUS
25408 # -----------------------
25409 # Set $? to STATUS, without forking.
25410 as_fn_set_status ()
25411 {
25412   return $1
25413 } # as_fn_set_status
25414
25415 # as_fn_exit STATUS
25416 # -----------------
25417 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25418 as_fn_exit ()
25419 {
25420   set +e
25421   as_fn_set_status $1
25422   exit $1
25423 } # as_fn_exit
25424
25425 # as_fn_unset VAR
25426 # ---------------
25427 # Portably unset VAR.
25428 as_fn_unset ()
25429 {
25430   { eval $1=; unset $1;}
25431 }
25432 as_unset=as_fn_unset
25433 # as_fn_append VAR VALUE
25434 # ----------------------
25435 # Append the text in VALUE to the end of the definition contained in VAR. Take
25436 # advantage of any shell optimizations that allow amortized linear growth over
25437 # repeated appends, instead of the typical quadratic growth present in naive
25438 # implementations.
25439 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25440   eval 'as_fn_append ()
25441   {
25442     eval $1+=\$2
25443   }'
25444 else
25445   as_fn_append ()
25446   {
25447     eval $1=\$$1\$2
25448   }
25449 fi # as_fn_append
25450
25451 # as_fn_arith ARG...
25452 # ------------------
25453 # Perform arithmetic evaluation on the ARGs, and store the result in the
25454 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25455 # must be portable across $(()) and expr.
25456 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25457   eval 'as_fn_arith ()
25458   {
25459     as_val=$(( $* ))
25460   }'
25461 else
25462   as_fn_arith ()
25463   {
25464     as_val=`expr "$@" || test $? -eq 1`
25465   }
25466 fi # as_fn_arith
25467
25468
25469 if expr a : '\(a\)' >/dev/null 2>&1 &&
25470    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25471   as_expr=expr
25472 else
25473   as_expr=false
25474 fi
25475
25476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25477   as_basename=basename
25478 else
25479   as_basename=false
25480 fi
25481
25482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25483   as_dirname=dirname
25484 else
25485   as_dirname=false
25486 fi
25487
25488 as_me=`$as_basename -- "$0" ||
25489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25490          X"$0" : 'X\(//\)$' \| \
25491          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25492 $as_echo X/"$0" |
25493     sed '/^.*\/\([^/][^/]*\)\/*$/{
25494             s//\1/
25495             q
25496           }
25497           /^X\/\(\/\/\)$/{
25498             s//\1/
25499             q
25500           }
25501           /^X\/\(\/\).*/{
25502             s//\1/
25503             q
25504           }
25505           s/.*/./; q'`
25506
25507 # Avoid depending upon Character Ranges.
25508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25511 as_cr_digits='0123456789'
25512 as_cr_alnum=$as_cr_Letters$as_cr_digits
25513
25514 ECHO_C= ECHO_N= ECHO_T=
25515 case `echo -n x` in #(((((
25516 -n*)
25517   case `echo 'xy\c'` in
25518   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25519   xy)  ECHO_C='\c';;
25520   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25521        ECHO_T=' ';;
25522   esac;;
25523 *)
25524   ECHO_N='-n';;
25525 esac
25526
25527 rm -f conf$$ conf$$.exe conf$$.file
25528 if test -d conf$$.dir; then
25529   rm -f conf$$.dir/conf$$.file
25530 else
25531   rm -f conf$$.dir
25532   mkdir conf$$.dir 2>/dev/null
25533 fi
25534 if (echo >conf$$.file) 2>/dev/null; then
25535   if ln -s conf$$.file conf$$ 2>/dev/null; then
25536     as_ln_s='ln -s'
25537     # ... but there are two gotchas:
25538     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25539     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25540     # In both cases, we have to default to `cp -p'.
25541     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25542       as_ln_s='cp -p'
25543   elif ln conf$$.file conf$$ 2>/dev/null; then
25544     as_ln_s=ln
25545   else
25546     as_ln_s='cp -p'
25547   fi
25548 else
25549   as_ln_s='cp -p'
25550 fi
25551 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25552 rmdir conf$$.dir 2>/dev/null
25553
25554
25555 # as_fn_mkdir_p
25556 # -------------
25557 # Create "$as_dir" as a directory, including parents if necessary.
25558 as_fn_mkdir_p ()
25559 {
25560
25561   case $as_dir in #(
25562   -*) as_dir=./$as_dir;;
25563   esac
25564   test -d "$as_dir" || eval $as_mkdir_p || {
25565     as_dirs=
25566     while :; do
25567       case $as_dir in #(
25568       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25569       *) as_qdir=$as_dir;;
25570       esac
25571       as_dirs="'$as_qdir' $as_dirs"
25572       as_dir=`$as_dirname -- "$as_dir" ||
25573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25574          X"$as_dir" : 'X\(//\)[^/]' \| \
25575          X"$as_dir" : 'X\(//\)$' \| \
25576          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25577 $as_echo X"$as_dir" |
25578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25579             s//\1/
25580             q
25581           }
25582           /^X\(\/\/\)[^/].*/{
25583             s//\1/
25584             q
25585           }
25586           /^X\(\/\/\)$/{
25587             s//\1/
25588             q
25589           }
25590           /^X\(\/\).*/{
25591             s//\1/
25592             q
25593           }
25594           s/.*/./; q'`
25595       test -d "$as_dir" && break
25596     done
25597     test -z "$as_dirs" || eval "mkdir $as_dirs"
25598   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25599
25600
25601 } # as_fn_mkdir_p
25602 if mkdir -p . 2>/dev/null; then
25603   as_mkdir_p='mkdir -p "$as_dir"'
25604 else
25605   test -d ./-p && rmdir ./-p
25606   as_mkdir_p=false
25607 fi
25608
25609 if test -x / >/dev/null 2>&1; then
25610   as_test_x='test -x'
25611 else
25612   if ls -dL / >/dev/null 2>&1; then
25613     as_ls_L_option=L
25614   else
25615     as_ls_L_option=
25616   fi
25617   as_test_x='
25618     eval sh -c '\''
25619       if test -d "$1"; then
25620         test -d "$1/.";
25621       else
25622         case $1 in #(
25623         -*)set "./$1";;
25624         esac;
25625         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25626         ???[sx]*):;;*)false;;esac;fi
25627     '\'' sh
25628   '
25629 fi
25630 as_executable_p=$as_test_x
25631
25632 # Sed expression to map a string onto a valid CPP name.
25633 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25634
25635 # Sed expression to map a string onto a valid variable name.
25636 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25637
25638
25639 exec 6>&1
25640 ## ----------------------------------- ##
25641 ## Main body of $CONFIG_STATUS script. ##
25642 ## ----------------------------------- ##
25643 _ASEOF
25644 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25645
25646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25647 # Save the log message, to keep $0 and so on meaningful, and to
25648 # report actual input values of CONFIG_FILES etc. instead of their
25649 # values after options handling.
25650 ac_log="
25651 This file was extended by $as_me, which was
25652 generated by GNU Autoconf 2.64.  Invocation command line was
25653
25654   CONFIG_FILES    = $CONFIG_FILES
25655   CONFIG_HEADERS  = $CONFIG_HEADERS
25656   CONFIG_LINKS    = $CONFIG_LINKS
25657   CONFIG_COMMANDS = $CONFIG_COMMANDS
25658   $ $0 $@
25659
25660 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25661 "
25662
25663 _ACEOF
25664
25665 case $ac_config_files in *"
25666 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25667 esac
25668
25669 case $ac_config_headers in *"
25670 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25671 esac
25672
25673
25674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25675 # Files that config.status was made for.
25676 config_files="$ac_config_files"
25677 config_headers="$ac_config_headers"
25678 config_commands="$ac_config_commands"
25679
25680 _ACEOF
25681
25682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25683 ac_cs_usage="\
25684 \`$as_me' instantiates files and other configuration actions
25685 from templates according to the current configuration.  Unless the files
25686 and actions are specified as TAGs, all are instantiated by default.
25687
25688 Usage: $0 [OPTION]... [TAG]...
25689
25690   -h, --help       print this help, then exit
25691   -V, --version    print version number and configuration settings, then exit
25692   -q, --quiet, --silent
25693                    do not print progress messages
25694   -d, --debug      don't remove temporary files
25695       --recheck    update $as_me by reconfiguring in the same conditions
25696       --file=FILE[:TEMPLATE]
25697                    instantiate the configuration file FILE
25698       --header=FILE[:TEMPLATE]
25699                    instantiate the configuration header FILE
25700
25701 Configuration files:
25702 $config_files
25703
25704 Configuration headers:
25705 $config_headers
25706
25707 Configuration commands:
25708 $config_commands
25709
25710 Report bugs to the package provider."
25711
25712 _ACEOF
25713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25714 ac_cs_version="\\
25715 config.status
25716 configured by $0, generated by GNU Autoconf 2.64,
25717   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25718
25719 Copyright (C) 2009 Free Software Foundation, Inc.
25720 This config.status script is free software; the Free Software Foundation
25721 gives unlimited permission to copy, distribute and modify it."
25722
25723 ac_pwd='$ac_pwd'
25724 srcdir='$srcdir'
25725 AWK='$AWK'
25726 test -n "\$AWK" || AWK=awk
25727 _ACEOF
25728
25729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25730 # The default lists apply if the user does not specify any file.
25731 ac_need_defaults=:
25732 while test $# != 0
25733 do
25734   case $1 in
25735   --*=*)
25736     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25737     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25738     ac_shift=:
25739     ;;
25740   *)
25741     ac_option=$1
25742     ac_optarg=$2
25743     ac_shift=shift
25744     ;;
25745   esac
25746
25747   case $ac_option in
25748   # Handling of the options.
25749   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25750     ac_cs_recheck=: ;;
25751   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25752     $as_echo "$ac_cs_version"; exit ;;
25753   --debug | --debu | --deb | --de | --d | -d )
25754     debug=: ;;
25755   --file | --fil | --fi | --f )
25756     $ac_shift
25757     case $ac_optarg in
25758     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25759     esac
25760     as_fn_append CONFIG_FILES " '$ac_optarg'"
25761     ac_need_defaults=false;;
25762   --header | --heade | --head | --hea )
25763     $ac_shift
25764     case $ac_optarg in
25765     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25766     esac
25767     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25768     ac_need_defaults=false;;
25769   --he | --h)
25770     # Conflict between --help and --header
25771     as_fn_error "ambiguous option: \`$1'
25772 Try \`$0 --help' for more information.";;
25773   --help | --hel | -h )
25774     $as_echo "$ac_cs_usage"; exit ;;
25775   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25776   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25777     ac_cs_silent=: ;;
25778
25779   # This is an error.
25780   -*) as_fn_error "unrecognized option: \`$1'
25781 Try \`$0 --help' for more information." ;;
25782
25783   *) as_fn_append ac_config_targets " $1"
25784      ac_need_defaults=false ;;
25785
25786   esac
25787   shift
25788 done
25789
25790 ac_configure_extra_args=
25791
25792 if $ac_cs_silent; then
25793   exec 6>/dev/null
25794   ac_configure_extra_args="$ac_configure_extra_args --silent"
25795 fi
25796
25797 _ACEOF
25798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25799 if \$ac_cs_recheck; then
25800   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25801   shift
25802   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25803   CONFIG_SHELL='$SHELL'
25804   export CONFIG_SHELL
25805   exec "\$@"
25806 fi
25807
25808 _ACEOF
25809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25810 exec 5>>config.log
25811 {
25812   echo
25813   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25814 ## Running $as_me. ##
25815 _ASBOX
25816   $as_echo "$ac_log"
25817 } >&5
25818
25819 _ACEOF
25820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25821 #
25822 # INIT-COMMANDS
25823 #
25824 subdirs='$subdirs'
25825
25826 _ACEOF
25827
25828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25829
25830 # Handling of arguments.
25831 for ac_config_target in $ac_config_targets
25832 do
25833   case $ac_config_target in
25834     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25835     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25836     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25837     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25838     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25839     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25840
25841   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25842   esac
25843 done
25844
25845
25846 # If the user did not use the arguments to specify the items to instantiate,
25847 # then the envvar interface is used.  Set only those that are not.
25848 # We use the long form for the default assignment because of an extremely
25849 # bizarre bug on SunOS 4.1.3.
25850 if $ac_need_defaults; then
25851   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25852   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25853   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25854 fi
25855
25856 # Have a temporary directory for convenience.  Make it in the build tree
25857 # simply because there is no reason against having it here, and in addition,
25858 # creating and moving files from /tmp can sometimes cause problems.
25859 # Hook for its removal unless debugging.
25860 # Note that there is a small window in which the directory will not be cleaned:
25861 # after its creation but before its name has been assigned to `$tmp'.
25862 $debug ||
25863 {
25864   tmp=
25865   trap 'exit_status=$?
25866   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25867 ' 0
25868   trap 'as_fn_exit 1' 1 2 13 15
25869 }
25870 # Create a (secure) tmp directory for tmp files.
25871
25872 {
25873   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25874   test -n "$tmp" && test -d "$tmp"
25875 }  ||
25876 {
25877   tmp=./conf$$-$RANDOM
25878   (umask 077 && mkdir "$tmp")
25879 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25880
25881 # Set up the scripts for CONFIG_FILES section.
25882 # No need to generate them if there are no CONFIG_FILES.
25883 # This happens for instance with `./config.status config.h'.
25884 if test -n "$CONFIG_FILES"; then
25885
25886 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25887   ac_cs_awk_getline=:
25888   ac_cs_awk_pipe_init=
25889   ac_cs_awk_read_file='
25890       while ((getline aline < (F[key])) > 0)
25891         print(aline)
25892       close(F[key])'
25893   ac_cs_awk_pipe_fini=
25894 else
25895   ac_cs_awk_getline=false
25896   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25897   ac_cs_awk_read_file='
25898       print "|#_!!_#|"
25899       print "cat " F[key] " &&"
25900       '$ac_cs_awk_pipe_init
25901   # The final `:' finishes the AND list.
25902   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25903 fi
25904 ac_cr=`echo X | tr X '\015'`
25905 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25906 # But we know of no other shell where ac_cr would be empty at this
25907 # point, so we can use a bashism as a fallback.
25908 if test "x$ac_cr" = x; then
25909   eval ac_cr=\$\'\\r\'
25910 fi
25911 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25912 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25913   ac_cs_awk_cr='\r'
25914 else
25915   ac_cs_awk_cr=$ac_cr
25916 fi
25917
25918 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25919 _ACEOF
25920
25921 # Create commands to substitute file output variables.
25922 {
25923   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25924   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25925   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25926   echo "_ACAWK" &&
25927   echo "_ACEOF"
25928 } >conf$$files.sh &&
25929 . ./conf$$files.sh ||
25930   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25931 rm -f conf$$files.sh
25932
25933 {
25934   echo "cat >conf$$subs.awk <<_ACEOF" &&
25935   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25936   echo "_ACEOF"
25937 } >conf$$subs.sh ||
25938   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25939 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25940 ac_delim='%!_!# '
25941 for ac_last_try in false false false false false :; do
25942   . ./conf$$subs.sh ||
25943     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25944
25945   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25946   if test $ac_delim_n = $ac_delim_num; then
25947     break
25948   elif $ac_last_try; then
25949     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25950   else
25951     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25952   fi
25953 done
25954 rm -f conf$$subs.sh
25955
25956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25957 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25958 _ACEOF
25959 sed -n '
25960 h
25961 s/^/S["/; s/!.*/"]=/
25962 p
25963 g
25964 s/^[^!]*!//
25965 :repl
25966 t repl
25967 s/'"$ac_delim"'$//
25968 t delim
25969 :nl
25970 h
25971 s/\(.\{148\}\).*/\1/
25972 t more1
25973 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25974 p
25975 n
25976 b repl
25977 :more1
25978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25979 p
25980 g
25981 s/.\{148\}//
25982 t nl
25983 :delim
25984 h
25985 s/\(.\{148\}\).*/\1/
25986 t more2
25987 s/["\\]/\\&/g; s/^/"/; s/$/"/
25988 p
25989 b
25990 :more2
25991 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25992 p
25993 g
25994 s/.\{148\}//
25995 t delim
25996 ' <conf$$subs.awk | sed '
25997 /^[^""]/{
25998   N
25999   s/\n//
26000 }
26001 ' >>$CONFIG_STATUS || ac_write_fail=1
26002 rm -f conf$$subs.awk
26003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26004 _ACAWK
26005 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26006   for (key in S) S_is_set[key] = 1
26007   FS = "\a"
26008   \$ac_cs_awk_pipe_init
26009 }
26010 {
26011   line = $ 0
26012   nfields = split(line, field, "@")
26013   substed = 0
26014   len = length(field[1])
26015   for (i = 2; i < nfields; i++) {
26016     key = field[i]
26017     keylen = length(key)
26018     if (S_is_set[key]) {
26019       value = S[key]
26020       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26021       len += length(value) + length(field[++i])
26022       substed = 1
26023     } else
26024       len += 1 + keylen
26025   }
26026   if (nfields == 3 && !substed) {
26027     key = field[2]
26028     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
26029       \$ac_cs_awk_read_file
26030       next
26031     }
26032   }
26033   print line
26034 }
26035 \$ac_cs_awk_pipe_fini
26036 _ACAWK
26037 _ACEOF
26038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26039 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26040   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26041 else
26042   cat
26043 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26044   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26045 _ACEOF
26046
26047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26049 # trailing colons and then remove the whole line if VPATH becomes empty
26050 # (actually we leave an empty line to preserve line numbers).
26051 if test "x$srcdir" = x.; then
26052   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26053 s/:*\$(srcdir):*/:/
26054 s/:*\${srcdir}:*/:/
26055 s/:*@srcdir@:*/:/
26056 s/^\([^=]*=[     ]*\):*/\1/
26057 s/:*$//
26058 s/^[^=]*=[       ]*$//
26059 }'
26060 fi
26061
26062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26063 fi # test -n "$CONFIG_FILES"
26064
26065 # Set up the scripts for CONFIG_HEADERS section.
26066 # No need to generate them if there are no CONFIG_HEADERS.
26067 # This happens for instance with `./config.status Makefile'.
26068 if test -n "$CONFIG_HEADERS"; then
26069 cat >"$tmp/defines.awk" <<\_ACAWK ||
26070 BEGIN {
26071 _ACEOF
26072
26073 # Transform confdefs.h into an awk script `defines.awk', embedded as
26074 # here-document in config.status, that substitutes the proper values into
26075 # config.h.in to produce config.h.
26076
26077 # Create a delimiter string that does not exist in confdefs.h, to ease
26078 # handling of long lines.
26079 ac_delim='%!_!# '
26080 for ac_last_try in false false :; do
26081   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26082   if test -z "$ac_t"; then
26083     break
26084   elif $ac_last_try; then
26085     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26086   else
26087     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26088   fi
26089 done
26090
26091 # For the awk script, D is an array of macro values keyed by name,
26092 # likewise P contains macro parameters if any.  Preserve backslash
26093 # newline sequences.
26094
26095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26096 sed -n '
26097 s/.\{148\}/&'"$ac_delim"'/g
26098 t rset
26099 :rset
26100 s/^[     ]*#[    ]*define[       ][      ]*/ /
26101 t def
26102 d
26103 :def
26104 s/\\$//
26105 t bsnl
26106 s/["\\]/\\&/g
26107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26108 D["\1"]=" \3"/p
26109 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26110 d
26111 :bsnl
26112 s/["\\]/\\&/g
26113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26114 D["\1"]=" \3\\\\\\n"\\/p
26115 t cont
26116 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26117 t cont
26118 d
26119 :cont
26120 n
26121 s/.\{148\}/&'"$ac_delim"'/g
26122 t clear
26123 :clear
26124 s/\\$//
26125 t bsnlc
26126 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26127 d
26128 :bsnlc
26129 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26130 b cont
26131 ' <confdefs.h | sed '
26132 s/'"$ac_delim"'/"\\\
26133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26134
26135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26136   for (key in D) D_is_set[key] = 1
26137   FS = "\a"
26138 }
26139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26140   line = \$ 0
26141   split(line, arg, " ")
26142   if (arg[1] == "#") {
26143     defundef = arg[2]
26144     mac1 = arg[3]
26145   } else {
26146     defundef = substr(arg[1], 2)
26147     mac1 = arg[2]
26148   }
26149   split(mac1, mac2, "(") #)
26150   macro = mac2[1]
26151   prefix = substr(line, 1, index(line, defundef) - 1)
26152   if (D_is_set[macro]) {
26153     # Preserve the white space surrounding the "#".
26154     print prefix "define", macro P[macro] D[macro]
26155     next
26156   } else {
26157     # Replace #undef with comments.  This is necessary, for example,
26158     # in the case of _POSIX_SOURCE, which is predefined and required
26159     # on some systems where configure will not decide to define it.
26160     if (defundef == "undef") {
26161       print "/*", prefix defundef, macro, "*/"
26162       next
26163     }
26164   }
26165 }
26166 { print }
26167 _ACAWK
26168 _ACEOF
26169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26170   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26171 fi # test -n "$CONFIG_HEADERS"
26172
26173
26174 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26175 shift
26176 for ac_tag
26177 do
26178   case $ac_tag in
26179   :[FHLC]) ac_mode=$ac_tag; continue;;
26180   esac
26181   case $ac_mode$ac_tag in
26182   :[FHL]*:*);;
26183   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26184   :[FH]-) ac_tag=-:-;;
26185   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26186   esac
26187   ac_save_IFS=$IFS
26188   IFS=:
26189   set x $ac_tag
26190   IFS=$ac_save_IFS
26191   shift
26192   ac_file=$1
26193   shift
26194
26195   case $ac_mode in
26196   :L) ac_source=$1;;
26197   :[FH])
26198     ac_file_inputs=
26199     for ac_f
26200     do
26201       case $ac_f in
26202       -) ac_f="$tmp/stdin";;
26203       *) # Look for the file first in the build tree, then in the source tree
26204          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26205          # because $ac_f cannot contain `:'.
26206          test -f "$ac_f" ||
26207            case $ac_f in
26208            [\\/$]*) false;;
26209            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26210            esac ||
26211            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26212       esac
26213       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26214       as_fn_append ac_file_inputs " '$ac_f'"
26215     done
26216
26217     # Let's still pretend it is `configure' which instantiates (i.e., don't
26218     # use $as_me), people would be surprised to read:
26219     #    /* config.h.  Generated by config.status.  */
26220     configure_input='Generated from '`
26221           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26222         `' by configure.'
26223     if test x"$ac_file" != x-; then
26224       configure_input="$ac_file.  $configure_input"
26225       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26226 $as_echo "$as_me: creating $ac_file" >&6;}
26227     fi
26228     # Neutralize special characters interpreted by sed in replacement strings.
26229     case $configure_input in #(
26230     *\&* | *\|* | *\\* )
26231        ac_sed_conf_input=`$as_echo "$configure_input" |
26232        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26233     *) ac_sed_conf_input=$configure_input;;
26234     esac
26235
26236     case $ac_tag in
26237     *:-:* | *:-) cat >"$tmp/stdin" \
26238       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26239     esac
26240     ;;
26241   esac
26242
26243   ac_dir=`$as_dirname -- "$ac_file" ||
26244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26245          X"$ac_file" : 'X\(//\)[^/]' \| \
26246          X"$ac_file" : 'X\(//\)$' \| \
26247          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26248 $as_echo X"$ac_file" |
26249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26250             s//\1/
26251             q
26252           }
26253           /^X\(\/\/\)[^/].*/{
26254             s//\1/
26255             q
26256           }
26257           /^X\(\/\/\)$/{
26258             s//\1/
26259             q
26260           }
26261           /^X\(\/\).*/{
26262             s//\1/
26263             q
26264           }
26265           s/.*/./; q'`
26266   as_dir="$ac_dir"; as_fn_mkdir_p
26267   ac_builddir=.
26268
26269 case "$ac_dir" in
26270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26271 *)
26272   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26273   # A ".." for each directory in $ac_dir_suffix.
26274   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26275   case $ac_top_builddir_sub in
26276   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26277   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26278   esac ;;
26279 esac
26280 ac_abs_top_builddir=$ac_pwd
26281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26282 # for backward compatibility:
26283 ac_top_builddir=$ac_top_build_prefix
26284
26285 case $srcdir in
26286   .)  # We are building in place.
26287     ac_srcdir=.
26288     ac_top_srcdir=$ac_top_builddir_sub
26289     ac_abs_top_srcdir=$ac_pwd ;;
26290   [\\/]* | ?:[\\/]* )  # Absolute name.
26291     ac_srcdir=$srcdir$ac_dir_suffix;
26292     ac_top_srcdir=$srcdir
26293     ac_abs_top_srcdir=$srcdir ;;
26294   *) # Relative name.
26295     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26296     ac_top_srcdir=$ac_top_build_prefix$srcdir
26297     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26298 esac
26299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26300
26301
26302   case $ac_mode in
26303   :F)
26304   #
26305   # CONFIG_FILE
26306   #
26307
26308 _ACEOF
26309
26310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26311 # If the template does not know about datarootdir, expand it.
26312 # FIXME: This hack should be removed a few years after 2.60.
26313 ac_datarootdir_hack=; ac_datarootdir_seen=
26314 ac_sed_dataroot='
26315 /datarootdir/ {
26316   p
26317   q
26318 }
26319 /@datadir@/p
26320 /@docdir@/p
26321 /@infodir@/p
26322 /@localedir@/p
26323 /@mandir@/p'
26324 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26325 *datarootdir*) ac_datarootdir_seen=yes;;
26326 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26327   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26328 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26329 _ACEOF
26330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26331   ac_datarootdir_hack='
26332   s&@datadir@&$datadir&g
26333   s&@docdir@&$docdir&g
26334   s&@infodir@&$infodir&g
26335   s&@localedir@&$localedir&g
26336   s&@mandir@&$mandir&g
26337   s&\\\${datarootdir}&$datarootdir&g' ;;
26338 esac
26339 _ACEOF
26340
26341 # Neutralize VPATH when `$srcdir' = `.'.
26342 # Shell code in configure.ac might set extrasub.
26343 # FIXME: do we really want to maintain this feature?
26344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26345 ac_sed_extra="$ac_vpsub
26346 $extrasub
26347 _ACEOF
26348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26349 :t
26350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26351 s|@configure_input@|$ac_sed_conf_input|;t t
26352 s&@top_builddir@&$ac_top_builddir_sub&;t t
26353 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26354 s&@srcdir@&$ac_srcdir&;t t
26355 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26356 s&@top_srcdir@&$ac_top_srcdir&;t t
26357 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26358 s&@builddir@&$ac_builddir&;t t
26359 s&@abs_builddir@&$ac_abs_builddir&;t t
26360 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26361 $ac_datarootdir_hack
26362 "
26363 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26364 if $ac_cs_awk_getline; then
26365   $AWK -f "$tmp/subs.awk"
26366 else
26367   $AWK -f "$tmp/subs.awk" | $SHELL
26368 fi >$tmp/out \
26369   || as_fn_error "could not create $ac_file" "$LINENO" 5
26370
26371 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26372   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26373   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26374   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26375 which seems to be undefined.  Please make sure it is defined." >&5
26376 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26377 which seems to be undefined.  Please make sure it is defined." >&2;}
26378
26379   rm -f "$tmp/stdin"
26380   case $ac_file in
26381   -) cat "$tmp/out" && rm -f "$tmp/out";;
26382   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26383   esac \
26384   || as_fn_error "could not create $ac_file" "$LINENO" 5
26385  ;;
26386   :H)
26387   #
26388   # CONFIG_HEADER
26389   #
26390   if test x"$ac_file" != x-; then
26391     {
26392       $as_echo "/* $configure_input  */" \
26393       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26394     } >"$tmp/config.h" \
26395       || as_fn_error "could not create $ac_file" "$LINENO" 5
26396     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26397       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26398 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26399     else
26400       rm -f "$ac_file"
26401       mv "$tmp/config.h" "$ac_file" \
26402         || as_fn_error "could not create $ac_file" "$LINENO" 5
26403     fi
26404   else
26405     $as_echo "/* $configure_input  */" \
26406       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26407       || as_fn_error "could not create -" "$LINENO" 5
26408   fi
26409  ;;
26410
26411   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26412 $as_echo "$as_me: executing $ac_file commands" >&6;}
26413  ;;
26414   esac
26415
26416
26417   case $ac_file$ac_mode in
26418     "as":F) chmod +x as ;;
26419     "collect-ld":F) chmod +x collect-ld ;;
26420     "nm":F) chmod +x nm ;;
26421     "default":C)
26422 case ${CONFIG_HEADERS} in
26423   *auto-host.h:config.in*)
26424   echo > cstamp-h ;;
26425 esac
26426 # Make sure all the subdirs exist.
26427 for d in $subdirs doc build
26428 do
26429     test -d $d || mkdir $d
26430 done
26431  ;;
26432
26433   esac
26434 done # for ac_tag
26435
26436
26437 as_fn_exit 0
26438 _ACEOF
26439 ac_clean_files=$ac_clean_files_save
26440
26441 test $ac_write_fail = 0 ||
26442   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26443
26444
26445 # configure is writing to config.log, and then calls config.status.
26446 # config.status does its own redirection, appending to config.log.
26447 # Unfortunately, on DOS this fails, as config.log is still kept open
26448 # by configure, so config.status won't be able to write to it; its
26449 # output is simply discarded.  So we exec the FD to /dev/null,
26450 # effectively closing config.log, so it can be properly (re)opened and
26451 # appended to by config.status.  When coming back to configure, we
26452 # need to make the FD available again.
26453 if test "$no_create" != yes; then
26454   ac_cs_success=:
26455   ac_config_status_args=
26456   test "$silent" = yes &&
26457     ac_config_status_args="$ac_config_status_args --quiet"
26458   exec 5>/dev/null
26459   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26460   exec 5>>config.log
26461   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26462   # would make configure fail if this is the last instruction.
26463   $ac_cs_success || as_fn_exit $?
26464 fi
26465 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26466   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26467 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26468 fi
26469