OSDN Git Service

2010-08-31 Richard Guenther <rguenther@suse.de>
[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 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 slibdir
673 dollar
674 gcc_tooldir
675 LTO_USE_LIBELF
676 LTO_BINARY_READER
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 CXXCPP
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 SED
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CFLAGS
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
716 ALL
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 gthread_flags
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 AR
742 NM
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
755 LN
756 LN_S
757 AWK
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 onestep
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
786 CPP
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_build_sysroot
886 with_sysroot
887 with_specs
888 enable_intermodule
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 with_slibdir
917 enable_plugin
918 '
919       ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
927 CXX
928 CXXFLAGS
929 CCC
930 CPP
931 CXXCPP
932 GMPLIBS
933 GMPINC
934 PPLLIBS
935 PPLINC
936 CLOOGLIBS
937 CLOOGINC
938 LIBELFLIBS
939 LIBELFINC'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *)    ac_optarg=yes ;;
1004   esac
1005
1006   # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008   case $ac_dashdash$ac_option in
1009   --)
1010     ac_dashdash=yes ;;
1011
1012   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013     ac_prev=bindir ;;
1014   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015     bindir=$ac_optarg ;;
1016
1017   -build | --build | --buil | --bui | --bu)
1018     ac_prev=build_alias ;;
1019   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020     build_alias=$ac_optarg ;;
1021
1022   -cache-file | --cache-file | --cache-fil | --cache-fi \
1023   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024     ac_prev=cache_file ;;
1025   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027     cache_file=$ac_optarg ;;
1028
1029   --config-cache | -C)
1030     cache_file=config.cache ;;
1031
1032   -datadir | --datadir | --datadi | --datad)
1033     ac_prev=datadir ;;
1034   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035     datadir=$ac_optarg ;;
1036
1037   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038   | --dataroo | --dataro | --datar)
1039     ac_prev=datarootdir ;;
1040   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042     datarootdir=$ac_optarg ;;
1043
1044   -disable-* | --disable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       as_fn_error "invalid feature name: $ac_useropt"
1049     ac_useropt_orig=$ac_useropt
1050     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051     case $ac_user_opts in
1052       *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval enable_$ac_useropt=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074       as_fn_error "invalid feature name: $ac_useropt"
1075     ac_useropt_orig=$ac_useropt
1076     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077     case $ac_user_opts in
1078       *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082          ac_unrecognized_sep=', ';;
1083     esac
1084     eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088   | --exec | --exe | --ex)
1089     ac_prev=exec_prefix ;;
1090   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092   | --exec=* | --exe=* | --ex=*)
1093     exec_prefix=$ac_optarg ;;
1094
1095   -gas | --gas | --ga | --g)
1096     # Obsolete; use --with-gas.
1097     with_gas=yes ;;
1098
1099   -help | --help | --hel | --he | -h)
1100     ac_init_help=long ;;
1101   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102     ac_init_help=recursive ;;
1103   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104     ac_init_help=short ;;
1105
1106   -host | --host | --hos | --ho)
1107     ac_prev=host_alias ;;
1108   -host=* | --host=* | --hos=* | --ho=*)
1109     host_alias=$ac_optarg ;;
1110
1111   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112     ac_prev=htmldir ;;
1113   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114   | --ht=*)
1115     htmldir=$ac_optarg ;;
1116
1117   -includedir | --includedir | --includedi | --included | --include \
1118   | --includ | --inclu | --incl | --inc)
1119     ac_prev=includedir ;;
1120   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121   | --includ=* | --inclu=* | --incl=* | --inc=*)
1122     includedir=$ac_optarg ;;
1123
1124   -infodir | --infodir | --infodi | --infod | --info | --inf)
1125     ac_prev=infodir ;;
1126   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127     infodir=$ac_optarg ;;
1128
1129   -libdir | --libdir | --libdi | --libd)
1130     ac_prev=libdir ;;
1131   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132     libdir=$ac_optarg ;;
1133
1134   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135   | --libexe | --libex | --libe)
1136     ac_prev=libexecdir ;;
1137   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138   | --libexe=* | --libex=* | --libe=*)
1139     libexecdir=$ac_optarg ;;
1140
1141   -localedir | --localedir | --localedi | --localed | --locale)
1142     ac_prev=localedir ;;
1143   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144     localedir=$ac_optarg ;;
1145
1146   -localstatedir | --localstatedir | --localstatedi | --localstated \
1147   | --localstate | --localstat | --localsta | --localst | --locals)
1148     ac_prev=localstatedir ;;
1149   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151     localstatedir=$ac_optarg ;;
1152
1153   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154     ac_prev=mandir ;;
1155   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156     mandir=$ac_optarg ;;
1157
1158   -nfp | --nfp | --nf)
1159     # Obsolete; use --without-fp.
1160     with_fp=no ;;
1161
1162   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163   | --no-cr | --no-c | -n)
1164     no_create=yes ;;
1165
1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168     no_recursion=yes ;;
1169
1170   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172   | --oldin | --oldi | --old | --ol | --o)
1173     ac_prev=oldincludedir ;;
1174   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177     oldincludedir=$ac_optarg ;;
1178
1179   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180     ac_prev=prefix ;;
1181   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182     prefix=$ac_optarg ;;
1183
1184   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185   | --program-pre | --program-pr | --program-p)
1186     ac_prev=program_prefix ;;
1187   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189     program_prefix=$ac_optarg ;;
1190
1191   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192   | --program-suf | --program-su | --program-s)
1193     ac_prev=program_suffix ;;
1194   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196     program_suffix=$ac_optarg ;;
1197
1198   -program-transform-name | --program-transform-name \
1199   | --program-transform-nam | --program-transform-na \
1200   | --program-transform-n | --program-transform- \
1201   | --program-transform | --program-transfor \
1202   | --program-transfo | --program-transf \
1203   | --program-trans | --program-tran \
1204   | --progr-tra | --program-tr | --program-t)
1205     ac_prev=program_transform_name ;;
1206   -program-transform-name=* | --program-transform-name=* \
1207   | --program-transform-nam=* | --program-transform-na=* \
1208   | --program-transform-n=* | --program-transform-=* \
1209   | --program-transform=* | --program-transfor=* \
1210   | --program-transfo=* | --program-transf=* \
1211   | --program-trans=* | --program-tran=* \
1212   | --progr-tra=* | --program-tr=* | --program-t=*)
1213     program_transform_name=$ac_optarg ;;
1214
1215   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216     ac_prev=pdfdir ;;
1217   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218     pdfdir=$ac_optarg ;;
1219
1220   -psdir | --psdir | --psdi | --psd | --ps)
1221     ac_prev=psdir ;;
1222   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223     psdir=$ac_optarg ;;
1224
1225   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226   | -silent | --silent | --silen | --sile | --sil)
1227     silent=yes ;;
1228
1229   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230     ac_prev=sbindir ;;
1231   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232   | --sbi=* | --sb=*)
1233     sbindir=$ac_optarg ;;
1234
1235   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237   | --sharedst | --shareds | --shared | --share | --shar \
1238   | --sha | --sh)
1239     ac_prev=sharedstatedir ;;
1240   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243   | --sha=* | --sh=*)
1244     sharedstatedir=$ac_optarg ;;
1245
1246   -site | --site | --sit)
1247     ac_prev=site ;;
1248   -site=* | --site=* | --sit=*)
1249     site=$ac_optarg ;;
1250
1251   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252     ac_prev=srcdir ;;
1253   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254     srcdir=$ac_optarg ;;
1255
1256   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257   | --syscon | --sysco | --sysc | --sys | --sy)
1258     ac_prev=sysconfdir ;;
1259   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261     sysconfdir=$ac_optarg ;;
1262
1263   -target | --target | --targe | --targ | --tar | --ta | --t)
1264     ac_prev=target_alias ;;
1265   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266     target_alias=$ac_optarg ;;
1267
1268   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269     verbose=yes ;;
1270
1271   -version | --version | --versio | --versi | --vers | -V)
1272     ac_init_version=: ;;
1273
1274   -with-* | --with-*)
1275     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278       as_fn_error "invalid package name: $ac_useropt"
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval with_$ac_useropt=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294       as_fn_error "invalid package name: $ac_useropt"
1295     ac_useropt_orig=$ac_useropt
1296     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297     case $ac_user_opts in
1298       *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302          ac_unrecognized_sep=', ';;
1303     esac
1304     eval with_$ac_useropt=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1326     ;;
1327
1328   *=*)
1329     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330     # Reject names that are not valid shell variable names.
1331     case $ac_envvar in #(
1332       '' | [0-9]* | *[!_$as_cr_alnum]* )
1333       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334     esac
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   as_fn_error "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355   case $enable_option_checking in
1356     no) ;;
1357     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359   esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364                 datadir sysconfdir sharedstatedir localstatedir includedir \
1365                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366                 libdir localedir mandir
1367 do
1368   eval ac_val=\$$ac_var
1369   # Remove trailing slashes.
1370   case $ac_val in
1371     */ )
1372       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373       eval $ac_var=\$ac_val;;
1374   esac
1375   # Be sure to have absolute directory names.
1376   case $ac_val in
1377     [\\/$]* | ?:[\\/]* )  continue;;
1378     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379   esac
1380   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392   if test "x$build_alias" = x; then
1393     cross_compiling=maybe
1394     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395     If a cross compiler is detected then cross compile mode will be used." >&2
1396   elif test "x$build_alias" != "x$host_alias"; then
1397     cross_compiling=yes
1398   fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410   as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412   as_fn_error "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417   ac_srcdir_defaulted=yes
1418   # Try the directory containing this script, then the parent directory.
1419   ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421          X"$as_myself" : 'X\(//\)[^/]' \| \
1422          X"$as_myself" : 'X\(//\)$' \| \
1423          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)[^/].*/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\/\)$/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\).*/{
1438             s//\1/
1439             q
1440           }
1441           s/.*/./; q'`
1442   srcdir=$ac_confdir
1443   if test ! -r "$srcdir/$ac_unique_file"; then
1444     srcdir=..
1445   fi
1446 else
1447   ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456         pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459   srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_env_${ac_var}_value=\$${ac_var}
1470   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478   # Omit some internal or obsolete options to make the list less imposing.
1479   # This message is too long to be a string in the A/UX 3.1 sh.
1480   cat <<_ACEOF
1481 \`configure' configures this package to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491   -h, --help              display this help and exit
1492       --help=short        display options specific to this package
1493       --help=recursive    display the short help of all the included packages
1494   -V, --version           display version information and exit
1495   -q, --quiet, --silent   do not print \`checking...' messages
1496       --cache-file=FILE   cache test results in FILE [disabled]
1497   -C, --config-cache      alias for \`--cache-file=config.cache'
1498   -n, --no-create         do not create output files
1499       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502   --prefix=PREFIX         install architecture-independent files in PREFIX
1503                           [$ac_default_prefix]
1504   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                           [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515   --bindir=DIR            user executables [EPREFIX/bin]
1516   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517   --libexecdir=DIR        program executables [EPREFIX/libexec]
1518   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521   --libdir=DIR            object code libraries [EPREFIX/lib]
1522   --includedir=DIR        C header files [PREFIX/include]
1523   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526   --infodir=DIR           info documentation [DATAROOTDIR/info]
1527   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528   --mandir=DIR            man documentation [DATAROOTDIR/man]
1529   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1530   --htmldir=DIR           html documentation [DOCDIR]
1531   --dvidir=DIR            dvi documentation [DOCDIR]
1532   --pdfdir=DIR            pdf documentation [DOCDIR]
1533   --psdir=DIR             ps documentation [DOCDIR]
1534 _ACEOF
1535
1536   cat <<\_ACEOF
1537
1538 Program names:
1539   --program-prefix=PREFIX            prepend PREFIX to installed program names
1540   --program-suffix=SUFFIX            append SUFFIX to installed program names
1541   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
1543 System types:
1544   --build=BUILD     configure for building on BUILD [guessed]
1545   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546   --target=TARGET   configure for building compilers for TARGET [HOST]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551
1552   cat <<\_ACEOF
1553
1554 Optional Features:
1555   --disable-option-checking  ignore unrecognized --enable/--with options
1556   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558   --enable-generated-files-in-srcdir
1559                           put copies of generated files in source dir
1560                           intended for creating source tarballs for users
1561                           without texinfo bison or flex.
1562   --enable-werror-always  enable -Werror despite compiler version
1563   --enable-checking=LIST
1564                           enable expensive run-time checks.  With LIST,
1565                           enable only specific categories of checks.
1566                           Categories are: yes,no,all,none,release.
1567                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1568                           rtlflag,rtl,runtime,tree,valgrind,types.
1569   --enable-coverage=LEVEL
1570                           enable compiler's code coverage collection.
1571                           Use to measure compiler performance and locate
1572                           unused parts of the compiler. With LEVEL, specify
1573                           optimization. Values are opt, noopt,
1574                           default is noopt
1575   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1576   --enable-build-with-cxx build with C++ compiler instead of C compiler
1577   --enable-multilib       enable library support for multiple ABIs
1578   --enable-__cxa_atexit   enable __cxa_atexit for C++
1579   --enable-decimal-float={no,yes,bid,dpd}
1580                         enable decimal float extension to C.  Selecting 'bid'
1581                         or 'dpd' choses which decimal floating point format
1582                         to use
1583   --enable-fixed-point    enable fixed-point arithmetic extension to C
1584   --enable-threads        enable thread usage for target GCC
1585   --enable-threads=LIB    use LIB thread package for target GCC
1586   --enable-tls            enable or disable generation of tls code
1587                           overriding the assembler check for tls support
1588   --enable-objc-gc        enable the use of Boehm's garbage collector with
1589                           the GNU Objective-C runtime
1590   --disable-shared        don't provide a shared libgcc
1591   --enable-intermodule    build the compiler in one step
1592   --enable-languages=LIST specify which front-ends to build
1593   --disable-rpath         do not hardcode runtime library paths
1594   --enable-initfini-array       use .init_array/.fini_array sections
1595   --enable-sjlj-exceptions
1596                           arrange to use setjmp/longjmp exception handling
1597   --enable-secureplt      enable -msecure-plt by default for PowerPC
1598   --enable-leading-mingw64-underscores
1599                           Enable leading underscores on 64 bit mingw targets
1600   --enable-cld            enable -mcld by default for 32bit x86
1601   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1602   --disable-win32-registry
1603                           disable lookup of installation paths in the
1604                           Registry on Windows hosts
1605   --enable-win32-registry enable registry lookup (default)
1606   --enable-win32-registry=KEY
1607                           use KEY instead of GCC version as the last portion
1608                           of the registry key
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614   --enable-comdat         enable COMDAT group support
1615   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1616                                 glibc systems
1617   --enable-linker-build-id
1618                           compiler will always pass --build-id to linker
1619   --enable-maintainer-mode
1620                           enable make rules and dependencies not useful
1621                           (and sometimes confusing) to the casual installer
1622   --enable-version-specific-runtime-libs
1623                           specify that runtime libraries should be
1624                           installed in a compiler-specific directory
1625   --enable-plugin         enable plugin support
1626
1627 Optional Packages:
1628   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1629   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1630   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1631   --with-local-prefix=DIR specifies directory to put local include
1632   --with-gxx-include-dir=DIR
1633                           specifies directory to put g++ header files
1634   --with-cpp-install-dir=DIR
1635                           install the user visible C preprocessor in DIR
1636                           (relative to PREFIX) as well as PREFIX/bin
1637   --with-gnu-ld           arrange to work with GNU ld.
1638   --with-ld               arrange to use the specified ld (full pathname)
1639   --with-demangler-in-ld  try to use demangler in GNU ld.
1640   --with-gnu-as           arrange to work with GNU as
1641   --with-as               arrange to use the specified as (full pathname)
1642   --with-stabs            arrange to use stabs instead of host debug format
1643   --with-dwarf2           force the default debug format to be DWARF 2
1644   --with-build-sysroot=sysroot
1645                           use sysroot as the system root during the build
1646   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1647   --with-specs=SPECS      add SPECS to driver command-line processing
1648   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1649   --with-bugurl=URL       Direct users to URL to report a bug
1650   --with-multilib-list    Select multilibs (SH only)
1651   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1652   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1653   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1654   --with-system-libunwind use installed libunwind
1655   --with-pic              try to use only PIC/non-PIC objects [default=use
1656                           both]
1657   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1658   --with-plugin-ld=[ARG]  specify the plugin linker
1659   --with-long-double-128  Use 128-bit long double by default.
1660   --with-gc={page,zone}   choose the garbage collection mechanism to use
1661                           with the compiler
1662   --with-system-zlib      use installed libz
1663   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1664
1665 Some influential environment variables:
1666   CC          C compiler command
1667   CFLAGS      C compiler flags
1668   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1669               nonstandard directory <lib dir>
1670   LIBS        libraries to pass to the linker, e.g. -l<library>
1671   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1672               you have headers in a nonstandard directory <include dir>
1673   CXX         C++ compiler command
1674   CXXFLAGS    C++ compiler flags
1675   CPP         C preprocessor
1676   CXXCPP      C++ preprocessor
1677   GMPLIBS     How to link GMP
1678   GMPINC      How to find GMP include files
1679   PPLLIBS     How to link PPL
1680   PPLINC      How to find PPL include files
1681   CLOOGLIBS   How to link CLOOG
1682   CLOOGINC    How to find CLOOG include files
1683   LIBELFLIBS  How to link libelf
1684   LIBELFINC   How to find libelf include files
1685
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1688
1689 Report bugs to the package provider.
1690 _ACEOF
1691 ac_status=$?
1692 fi
1693
1694 if test "$ac_init_help" = "recursive"; then
1695   # If there are subdirs, report their specific --help.
1696   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697     test -d "$ac_dir" ||
1698       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699       continue
1700     ac_builddir=.
1701
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *)
1705   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706   # A ".." for each directory in $ac_dir_suffix.
1707   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708   case $ac_top_builddir_sub in
1709   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711   esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1717
1718 case $srcdir in
1719   .)  # We are building in place.
1720     ac_srcdir=.
1721     ac_top_srcdir=$ac_top_builddir_sub
1722     ac_abs_top_srcdir=$ac_pwd ;;
1723   [\\/]* | ?:[\\/]* )  # Absolute name.
1724     ac_srcdir=$srcdir$ac_dir_suffix;
1725     ac_top_srcdir=$srcdir
1726     ac_abs_top_srcdir=$srcdir ;;
1727   *) # Relative name.
1728     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729     ac_top_srcdir=$ac_top_build_prefix$srcdir
1730     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734     cd "$ac_dir" || { ac_status=$?; continue; }
1735     # Check for guested configure.
1736     if test -f "$ac_srcdir/configure.gnu"; then
1737       echo &&
1738       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739     elif test -f "$ac_srcdir/configure"; then
1740       echo &&
1741       $SHELL "$ac_srcdir/configure" --help=recursive
1742     else
1743       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744     fi || ac_status=$?
1745     cd "$ac_pwd" || { ac_status=$?; break; }
1746   done
1747 fi
1748
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751   cat <<\_ACEOF
1752 configure
1753 generated by GNU Autoconf 2.64
1754
1755 Copyright (C) 2009 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1758 _ACEOF
1759   exit
1760 fi
1761
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1765
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   rm -f conftest.$ac_objext
1773   if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_compile") 2>conftest.err
1781   ac_status=$?
1782   if test -s conftest.err; then
1783     grep -v '^ *+' conftest.err >conftest.er1
1784     cat conftest.er1 >&5
1785     mv -f conftest.er1 conftest.err
1786   fi
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } && {
1789          test -z "$ac_c_werror_flag" ||
1790          test ! -s conftest.err
1791        } && test -s conftest.$ac_objext; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800   return $ac_retval
1801
1802 } # ac_fn_c_try_compile
1803
1804 # ac_fn_cxx_try_compile LINENO
1805 # ----------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_compile ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   rm -f conftest.$ac_objext
1811   if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_compile") 2>conftest.err
1819   ac_status=$?
1820   if test -s conftest.err; then
1821     grep -v '^ *+' conftest.err >conftest.er1
1822     cat conftest.er1 >&5
1823     mv -f conftest.er1 conftest.err
1824   fi
1825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826   test $ac_status = 0; } && {
1827          test -z "$ac_cxx_werror_flag" ||
1828          test ! -s conftest.err
1829        } && test -s conftest.$ac_objext; then :
1830   ac_retval=0
1831 else
1832   $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835         ac_retval=1
1836 fi
1837   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838   return $ac_retval
1839
1840 } # ac_fn_cxx_try_compile
1841
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_cpp ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } >/dev/null && {
1864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865          test ! -s conftest.err
1866        }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872     ac_retval=1
1873 fi
1874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875   return $ac_retval
1876
1877 } # ac_fn_c_try_cpp
1878
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1883 # accordingly.
1884 ac_fn_c_check_header_mongrel ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891   $as_echo_n "(cached) " >&6
1892 fi
1893 eval ac_res=\$$3
1894                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 else
1897   # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 $4
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906   ac_header_compiler=yes
1907 else
1908   ac_header_compiler=no
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1913
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922   ac_header_preproc=yes
1923 else
1924   ac_header_preproc=no
1925 fi
1926 rm -f conftest.err conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1929
1930 # So?  What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932   yes:no: )
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937     ;;
1938   no:yes:* )
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949     ;;
1950 esac
1951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954   $as_echo_n "(cached) " >&6
1955 else
1956   eval "$3=\$ac_header_compiler"
1957 fi
1958 eval ac_res=\$$3
1959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 fi
1962   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963
1964 } # ac_fn_c_check_header_mongrel
1965
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1970 ac_fn_c_try_run ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976   *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980   (eval "$ac_link") 2>&5
1981   ac_status=$?
1982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984   { { case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_try") 2>&5
1991   ac_status=$?
1992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993   test $ac_status = 0; }; }; then :
1994   ac_retval=0
1995 else
1996   $as_echo "$as_me: program exited with status $ac_status" >&5
1997        $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000        ac_retval=$ac_status
2001 fi
2002   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004   return $ac_retval
2005
2006 } # ac_fn_c_try_run
2007
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2013 {
2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018   $as_echo_n "(cached) " >&6
2019 else
2020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h.  */
2022 $4
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026   eval "$3=yes"
2027 else
2028   eval "$3=no"
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 eval ac_res=\$$3
2033                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037 } # ac_fn_c_check_header_compile
2038
2039 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040 # --------------------------------------------
2041 # Tries to find the compile-time value of EXPR in a program that includes
2042 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2043 # computed
2044 ac_fn_c_compute_int ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   if test "$cross_compiling" = yes; then
2048     # Depending upon the size, compute the lo and hi bounds.
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h.  */
2051 $4
2052 int
2053 main ()
2054 {
2055 static int test_array [1 - 2 * !(($2) >= 0)];
2056 test_array [0] = 0
2057
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063   ac_lo=0 ac_mid=0
2064   while :; do
2065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 int
2069 main ()
2070 {
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072 test_array [0] = 0
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079   ac_hi=$ac_mid; break
2080 else
2081   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082                         if test $ac_lo -le $ac_mid; then
2083                           ac_lo= ac_hi=
2084                           break
2085                         fi
2086                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089   done
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main ()
2096 {
2097 static int test_array [1 - 2 * !(($2) < 0)];
2098 test_array [0] = 0
2099
2100   ;
2101   return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105   ac_hi=-1 ac_mid=-1
2106   while :; do
2107     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2114 test_array [0] = 0
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   ac_lo=$ac_mid; break
2122 else
2123   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124                         if test $ac_mid -le $ac_hi; then
2125                           ac_lo= ac_hi=
2126                           break
2127                         fi
2128                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131   done
2132 else
2133   ac_lo= ac_hi=
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 int
2145 main ()
2146 {
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148 test_array [0] = 0
2149
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155   ac_hi=$ac_mid
2156 else
2157   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 case $ac_lo in #((
2162 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2163 '') ac_retval=1 ;;
2164 esac
2165   else
2166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h.  */
2168 $4
2169 static long int longval () { return $2; }
2170 static unsigned long int ulongval () { return $2; }
2171 #include <stdio.h>
2172 #include <stdlib.h>
2173 int
2174 main ()
2175 {
2176
2177   FILE *f = fopen ("conftest.val", "w");
2178   if (! f)
2179     return 1;
2180   if (($2) < 0)
2181     {
2182       long int i = longval ();
2183       if (i != ($2))
2184         return 1;
2185       fprintf (f, "%ld", i);
2186     }
2187   else
2188     {
2189       unsigned long int i = ulongval ();
2190       if (i != ($2))
2191         return 1;
2192       fprintf (f, "%lu", i);
2193     }
2194   /* Do not output a trailing newline, as this causes \r\n confusion
2195      on some platforms.  */
2196   return ferror (f) || fclose (f) != 0;
2197
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_run "$LINENO"; then :
2203   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2204 else
2205   ac_retval=1
2206 fi
2207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2208   conftest.$ac_objext conftest.beam conftest.$ac_ext
2209 rm -f conftest.val
2210
2211   fi
2212   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213   return $ac_retval
2214
2215 } # ac_fn_c_compute_int
2216
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2222 {
2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   eval "$3=no"
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   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof (($2)))
2250             return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256
2257 else
2258   eval "$3=yes"
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268
2269 } # ac_fn_c_check_type
2270
2271 # ac_fn_c_find_intX_t LINENO BITS VAR
2272 # -----------------------------------
2273 # Finds a signed integer type with width BITS, setting cache variable VAR
2274 # accordingly.
2275 ac_fn_c_find_intX_t ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2279 $as_echo_n "checking for int$2_t... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281   $as_echo_n "(cached) " >&6
2282 else
2283   eval "$3=no"
2284      for ac_type in int$2_t 'int' 'long int' \
2285          'long long int' 'short int' 'signed char'; do
2286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $ac_includes_default
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2293 test_array [0] = 0
2294
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $ac_includes_default
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2307                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2308 test_array [0] = 0
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315
2316 else
2317   case $ac_type in #(
2318   int$2_t) :
2319     eval "$3=yes" ;; #(
2320   *) :
2321     eval "$3=\$ac_type" ;;
2322 esac
2323 fi
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327        eval as_val=\$$3
2328    if test "x$as_val" = x""no; then :
2329
2330 else
2331   break
2332 fi
2333      done
2334 fi
2335 eval ac_res=\$$3
2336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339
2340 } # ac_fn_c_find_intX_t
2341
2342 # ac_fn_c_try_link LINENO
2343 # -----------------------
2344 # Try to link conftest.$ac_ext, and return whether this succeeded.
2345 ac_fn_c_try_link ()
2346 {
2347   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348   rm -f conftest.$ac_objext conftest$ac_exeext
2349   if { { ac_try="$ac_link"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356   (eval "$ac_link") 2>conftest.err
2357   ac_status=$?
2358   if test -s conftest.err; then
2359     grep -v '^ *+' conftest.err >conftest.er1
2360     cat conftest.er1 >&5
2361     mv -f conftest.er1 conftest.err
2362   fi
2363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364   test $ac_status = 0; } && {
2365          test -z "$ac_c_werror_flag" ||
2366          test ! -s conftest.err
2367        } && test -s conftest$ac_exeext && {
2368          test "$cross_compiling" = yes ||
2369          $as_test_x conftest$ac_exeext
2370        }; then :
2371   ac_retval=0
2372 else
2373   $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376         ac_retval=1
2377 fi
2378   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2379   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2380   # interfere with the next link command; also delete a directory that is
2381   # left behind by Apple's compiler.  We do this before executing the actions.
2382   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384   return $ac_retval
2385
2386 } # ac_fn_c_try_link
2387
2388 # ac_fn_c_find_uintX_t LINENO BITS VAR
2389 # ------------------------------------
2390 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2391 # accordingly.
2392 ac_fn_c_find_uintX_t ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2396 $as_echo_n "checking for uint$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   eval "$3=no"
2401      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2402          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2403        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h.  */
2405 $ac_includes_default
2406 int
2407 main ()
2408 {
2409 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2410 test_array [0] = 0
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417   case $ac_type in #(
2418   uint$2_t) :
2419     eval "$3=yes" ;; #(
2420   *) :
2421     eval "$3=\$ac_type" ;;
2422 esac
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425        eval as_val=\$$3
2426    if test "x$as_val" = x""no; then :
2427
2428 else
2429   break
2430 fi
2431      done
2432 fi
2433 eval ac_res=\$$3
2434                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437
2438 } # ac_fn_c_find_uintX_t
2439
2440 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2441 # ----------------------------------------------
2442 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2443 ac_fn_c_check_header_preproc ()
2444 {
2445   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449   $as_echo_n "(cached) " >&6
2450 else
2451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h.  */
2453 #include <$2>
2454 _ACEOF
2455 if ac_fn_c_try_cpp "$LINENO"; then :
2456   eval "$3=yes"
2457 else
2458   eval "$3=no"
2459 fi
2460 rm -f conftest.err conftest.$ac_ext
2461 fi
2462 eval ac_res=\$$3
2463                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2466
2467 } # ac_fn_c_check_header_preproc
2468
2469 # ac_fn_c_check_func LINENO FUNC VAR
2470 # ----------------------------------
2471 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2472 ac_fn_c_check_func ()
2473 {
2474   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478   $as_echo_n "(cached) " >&6
2479 else
2480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h.  */
2482 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2484 #define $2 innocuous_$2
2485
2486 /* System header to define __stub macros and hopefully few prototypes,
2487     which can conflict with char $2 (); below.
2488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489     <limits.h> exists even on freestanding compilers.  */
2490
2491 #ifdef __STDC__
2492 # include <limits.h>
2493 #else
2494 # include <assert.h>
2495 #endif
2496
2497 #undef $2
2498
2499 /* Override any GCC internal prototype to avoid an error.
2500    Use char because int might match the return type of a GCC
2501    builtin and then its argument prototype would still apply.  */
2502 #ifdef __cplusplus
2503 extern "C"
2504 #endif
2505 char $2 ();
2506 /* The GNU C library defines this for functions which it implements
2507     to always fail with ENOSYS.  Some functions are actually named
2508     something starting with __ and the normal name is an alias.  */
2509 #if defined __stub_$2 || defined __stub___$2
2510 choke me
2511 #endif
2512
2513 int
2514 main ()
2515 {
2516 return $2 ();
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_c_try_link "$LINENO"; then :
2522   eval "$3=yes"
2523 else
2524   eval "$3=no"
2525 fi
2526 rm -f core conftest.err conftest.$ac_objext \
2527     conftest$ac_exeext conftest.$ac_ext
2528 fi
2529 eval ac_res=\$$3
2530                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533
2534 } # ac_fn_c_check_func
2535
2536 # ac_fn_cxx_try_cpp LINENO
2537 # ------------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_cxx_try_cpp ()
2540 {
2541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542   if { { ac_try="$ac_cpp conftest.$ac_ext"
2543 case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2550   ac_status=$?
2551   if test -s conftest.err; then
2552     grep -v '^ *+' conftest.err >conftest.er1
2553     cat conftest.er1 >&5
2554     mv -f conftest.er1 conftest.err
2555   fi
2556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557   test $ac_status = 0; } >/dev/null && {
2558          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2559          test ! -s conftest.err
2560        }; then :
2561   ac_retval=0
2562 else
2563   $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566     ac_retval=1
2567 fi
2568   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569   return $ac_retval
2570
2571 } # ac_fn_cxx_try_cpp
2572
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link ()
2577 {
2578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579   rm -f conftest.$ac_objext conftest$ac_exeext
2580   if { { ac_try="$ac_link"
2581 case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587   (eval "$ac_link") 2>conftest.err
2588   ac_status=$?
2589   if test -s conftest.err; then
2590     grep -v '^ *+' conftest.err >conftest.er1
2591     cat conftest.er1 >&5
2592     mv -f conftest.er1 conftest.err
2593   fi
2594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595   test $ac_status = 0; } && {
2596          test -z "$ac_cxx_werror_flag" ||
2597          test ! -s conftest.err
2598        } && test -s conftest$ac_exeext && {
2599          test "$cross_compiling" = yes ||
2600          $as_test_x conftest$ac_exeext
2601        }; then :
2602   ac_retval=0
2603 else
2604   $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607         ac_retval=1
2608 fi
2609   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611   # interfere with the next link command; also delete a directory that is
2612   # left behind by Apple's compiler.  We do this before executing the actions.
2613   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615   return $ac_retval
2616
2617 } # ac_fn_cxx_try_link
2618 cat >config.log <<_ACEOF
2619 This file contains any messages produced by compilers while
2620 running configure, to aid debugging if configure makes a mistake.
2621
2622 It was created by $as_me, which was
2623 generated by GNU Autoconf 2.64.  Invocation command line was
2624
2625   $ $0 $@
2626
2627 _ACEOF
2628 exec 5>>config.log
2629 {
2630 cat <<_ASUNAME
2631 ## --------- ##
2632 ## Platform. ##
2633 ## --------- ##
2634
2635 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2636 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2637 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2638 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2639 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2640
2641 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2642 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2643
2644 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2645 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2646 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2647 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2648 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2649 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2650 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2651
2652 _ASUNAME
2653
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659     $as_echo "PATH: $as_dir"
2660   done
2661 IFS=$as_save_IFS
2662
2663 } >&5
2664
2665 cat >&5 <<_ACEOF
2666
2667
2668 ## ----------- ##
2669 ## Core tests. ##
2670 ## ----------- ##
2671
2672 _ACEOF
2673
2674
2675 # Keep a trace of the command line.
2676 # Strip out --no-create and --no-recursion so they do not pile up.
2677 # Strip out --silent because we don't want to record it for future runs.
2678 # Also quote any args containing shell meta-characters.
2679 # Make two passes to allow for proper duplicate-argument suppression.
2680 ac_configure_args=
2681 ac_configure_args0=
2682 ac_configure_args1=
2683 ac_must_keep_next=false
2684 for ac_pass in 1 2
2685 do
2686   for ac_arg
2687   do
2688     case $ac_arg in
2689     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691     | -silent | --silent | --silen | --sile | --sil)
2692       continue ;;
2693     *\'*)
2694       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2695     esac
2696     case $ac_pass in
2697     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2698     2)
2699       as_fn_append ac_configure_args1 " '$ac_arg'"
2700       if test $ac_must_keep_next = true; then
2701         ac_must_keep_next=false # Got value, back to normal.
2702       else
2703         case $ac_arg in
2704           *=* | --config-cache | -C | -disable-* | --disable-* \
2705           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707           | -with-* | --with-* | -without-* | --without-* | --x)
2708             case "$ac_configure_args0 " in
2709               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2710             esac
2711             ;;
2712           -* ) ac_must_keep_next=true ;;
2713         esac
2714       fi
2715       as_fn_append ac_configure_args " '$ac_arg'"
2716       ;;
2717     esac
2718   done
2719 done
2720 { ac_configure_args0=; unset ac_configure_args0;}
2721 { ac_configure_args1=; unset ac_configure_args1;}
2722
2723 # When interrupted or exit'd, cleanup temporary files, and complete
2724 # config.log.  We remove comments because anyway the quotes in there
2725 # would cause problems or look ugly.
2726 # WARNING: Use '\'' to represent an apostrophe within the trap.
2727 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 trap 'exit_status=$?
2729   # Save into config.log some information that might help in debugging.
2730   {
2731     echo
2732
2733     cat <<\_ASBOX
2734 ## ---------------- ##
2735 ## Cache variables. ##
2736 ## ---------------- ##
2737 _ASBOX
2738     echo
2739     # The following way of writing the cache mishandles newlines in values,
2740 (
2741   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2742     eval ac_val=\$$ac_var
2743     case $ac_val in #(
2744     *${as_nl}*)
2745       case $ac_var in #(
2746       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2748       esac
2749       case $ac_var in #(
2750       _ | IFS | as_nl) ;; #(
2751       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2752       *) { eval $ac_var=; unset $ac_var;} ;;
2753       esac ;;
2754     esac
2755   done
2756   (set) 2>&1 |
2757     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2758     *${as_nl}ac_space=\ *)
2759       sed -n \
2760         "s/'\''/'\''\\\\'\'''\''/g;
2761           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2762       ;; #(
2763     *)
2764       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2765       ;;
2766     esac |
2767     sort
2768 )
2769     echo
2770
2771     cat <<\_ASBOX
2772 ## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##
2775 _ASBOX
2776     echo
2777     for ac_var in $ac_subst_vars
2778     do
2779       eval ac_val=\$$ac_var
2780       case $ac_val in
2781       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782       esac
2783       $as_echo "$ac_var='\''$ac_val'\''"
2784     done | sort
2785     echo
2786
2787     if test -n "$ac_subst_files"; then
2788       cat <<\_ASBOX
2789 ## ------------------- ##
2790 ## File substitutions. ##
2791 ## ------------------- ##
2792 _ASBOX
2793       echo
2794       for ac_var in $ac_subst_files
2795       do
2796         eval ac_val=\$$ac_var
2797         case $ac_val in
2798         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2799         esac
2800         $as_echo "$ac_var='\''$ac_val'\''"
2801       done | sort
2802       echo
2803     fi
2804
2805     if test -s confdefs.h; then
2806       cat <<\_ASBOX
2807 ## ----------- ##
2808 ## confdefs.h. ##
2809 ## ----------- ##
2810 _ASBOX
2811       echo
2812       cat confdefs.h
2813       echo
2814     fi
2815     test "$ac_signal" != 0 &&
2816       $as_echo "$as_me: caught signal $ac_signal"
2817     $as_echo "$as_me: exit $exit_status"
2818   } >&5
2819   rm -f core *.core core.conftest.* &&
2820     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2821     exit $exit_status
2822 ' 0
2823 for ac_signal in 1 2 13 15; do
2824   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2825 done
2826 ac_signal=0
2827
2828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2829 rm -f -r conftest* confdefs.h
2830
2831 $as_echo "/* confdefs.h */" > confdefs.h
2832
2833 # Predefined preprocessor variables.
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_NAME "$PACKAGE_NAME"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2845 _ACEOF
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_STRING "$PACKAGE_STRING"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2853 _ACEOF
2854
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_URL "$PACKAGE_URL"
2857 _ACEOF
2858
2859
2860 # Let the site file select an alternate cache file if it wants to.
2861 # Prefer an explicitly selected file to automatically selected ones.
2862 ac_site_file1=NONE
2863 ac_site_file2=NONE
2864 if test -n "$CONFIG_SITE"; then
2865   ac_site_file1=$CONFIG_SITE
2866 elif test "x$prefix" != xNONE; then
2867   ac_site_file1=$prefix/share/config.site
2868   ac_site_file2=$prefix/etc/config.site
2869 else
2870   ac_site_file1=$ac_default_prefix/share/config.site
2871   ac_site_file2=$ac_default_prefix/etc/config.site
2872 fi
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2874 do
2875   test "x$ac_site_file" = xNONE && continue
2876   if test -r "$ac_site_file"; then
2877     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879     sed 's/^/| /' "$ac_site_file" >&5
2880     . "$ac_site_file"
2881   fi
2882 done
2883
2884 if test -r "$cache_file"; then
2885   # Some versions of bash will fail to source /dev/null (special
2886   # files actually), so we avoid doing that.
2887   if test -f "$cache_file"; then
2888     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2889 $as_echo "$as_me: loading cache $cache_file" >&6;}
2890     case $cache_file in
2891       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2892       *)                      . "./$cache_file";;
2893     esac
2894   fi
2895 else
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2897 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898   >$cache_file
2899 fi
2900
2901 # Check that the precious variables saved in the cache have kept the same
2902 # value.
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906   eval ac_new_set=\$ac_env_${ac_var}_set
2907   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908   eval ac_new_val=\$ac_env_${ac_var}_value
2909   case $ac_old_set,$ac_new_set in
2910     set,)
2911       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913       ac_cache_corrupted=: ;;
2914     ,set)
2915       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917       ac_cache_corrupted=: ;;
2918     ,);;
2919     *)
2920       if test "x$ac_old_val" != "x$ac_new_val"; then
2921         # differences in whitespace do not lead to failure.
2922         ac_old_val_w=`echo x $ac_old_val`
2923         ac_new_val_w=`echo x $ac_new_val`
2924         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927           ac_cache_corrupted=:
2928         else
2929           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931           eval $ac_var=\$ac_old_val
2932         fi
2933         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2934 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2935         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2937       fi;;
2938   esac
2939   # Pass precious variables to config.status.
2940   if test "$ac_new_set" = set; then
2941     case $ac_new_val in
2942     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943     *) ac_arg=$ac_var=$ac_new_val ;;
2944     esac
2945     case " $ac_configure_args " in
2946       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2947       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948     esac
2949   fi
2950 done
2951 if $ac_cache_corrupted; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2957 fi
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2961
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967
2968
2969
2970
2971
2972
2973 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2974
2975
2976 gcc_version=`cat $srcdir/BASE-VER`
2977
2978 # Determine the host, build, and target systems
2979 ac_aux_dir=
2980 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2981   for ac_t in install-sh install.sh shtool; do
2982     if test -f "$ac_dir/$ac_t"; then
2983       ac_aux_dir=$ac_dir
2984       ac_install_sh="$ac_aux_dir/$ac_t -c"
2985       break 2
2986     fi
2987   done
2988 done
2989 if test -z "$ac_aux_dir"; then
2990   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2991 fi
2992
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2999 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3000
3001
3002 # Make sure we can run config.sub.
3003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3004   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3007 $as_echo_n "checking build system type... " >&6; }
3008 if test "${ac_cv_build+set}" = set; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   ac_build_alias=$build_alias
3012 test "x$ac_build_alias" = x &&
3013   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3014 test "x$ac_build_alias" = x &&
3015   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3017   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3018
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3021 $as_echo "$ac_cv_build" >&6; }
3022 case $ac_cv_build in
3023 *-*-*) ;;
3024 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3025 esac
3026 build=$ac_cv_build
3027 ac_save_IFS=$IFS; IFS='-'
3028 set x $ac_cv_build
3029 shift
3030 build_cpu=$1
3031 build_vendor=$2
3032 shift; shift
3033 # Remember, the first character of IFS is used to create $*,
3034 # except with old shells:
3035 build_os=$*
3036 IFS=$ac_save_IFS
3037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3038
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3041 $as_echo_n "checking host system type... " >&6; }
3042 if test "${ac_cv_host+set}" = set; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   if test "x$host_alias" = x; then
3046   ac_cv_host=$ac_cv_build
3047 else
3048   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3049     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3050 fi
3051
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3054 $as_echo "$ac_cv_host" >&6; }
3055 case $ac_cv_host in
3056 *-*-*) ;;
3057 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3058 esac
3059 host=$ac_cv_host
3060 ac_save_IFS=$IFS; IFS='-'
3061 set x $ac_cv_host
3062 shift
3063 host_cpu=$1
3064 host_vendor=$2
3065 shift; shift
3066 # Remember, the first character of IFS is used to create $*,
3067 # except with old shells:
3068 host_os=$*
3069 IFS=$ac_save_IFS
3070 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3071
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074 $as_echo_n "checking target system type... " >&6; }
3075 if test "${ac_cv_target+set}" = set; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test "x$target_alias" = x; then
3079   ac_cv_target=$ac_cv_host
3080 else
3081   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3083 fi
3084
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087 $as_echo "$ac_cv_target" >&6; }
3088 case $ac_cv_target in
3089 *-*-*) ;;
3090 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3091 esac
3092 target=$ac_cv_target
3093 ac_save_IFS=$IFS; IFS='-'
3094 set x $ac_cv_target
3095 shift
3096 target_cpu=$1
3097 target_vendor=$2
3098 shift; shift
3099 # Remember, the first character of IFS is used to create $*,
3100 # except with old shells:
3101 target_os=$*
3102 IFS=$ac_save_IFS
3103 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3104
3105
3106 # The aliases save the names the user supplied, while $host etc.
3107 # will get canonicalized.
3108 test -n "$target_alias" &&
3109   test "$program_prefix$program_suffix$program_transform_name" = \
3110     NONENONEs,x,x, &&
3111   program_prefix=${target_alias}-
3112
3113 # Determine the noncanonical target name, for directory use.
3114  case ${build_alias} in
3115   "") build_noncanonical=${build} ;;
3116   *) build_noncanonical=${build_alias} ;;
3117 esac
3118
3119  case ${host_alias} in
3120   "") host_noncanonical=${build_noncanonical} ;;
3121   *) host_noncanonical=${host_alias} ;;
3122 esac
3123
3124  case ${target_alias} in
3125   "") target_noncanonical=${host_noncanonical} ;;
3126   *) target_noncanonical=${target_alias} ;;
3127 esac
3128
3129
3130
3131
3132 # Determine the target- and build-specific subdirectories
3133
3134 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3135 # have matching libraries, they should use host libraries: Makefile.tpl
3136 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3137 # However, they still use the build modules, because the corresponding
3138 # host modules (e.g. bison) are only built for the host when bootstrap
3139 # finishes. So:
3140 # - build_subdir is where we find build modules, and never changes.
3141 # - build_libsubdir is where we find build libraries, and can be overridden.
3142
3143 # Prefix 'build-' so this never conflicts with target_subdir.
3144 build_subdir="build-${build_noncanonical}"
3145
3146 # Check whether --with-build-libsubdir was given.
3147 if test "${with_build_libsubdir+set}" = set; then :
3148   withval=$with_build_libsubdir; build_libsubdir="$withval"
3149 else
3150   build_libsubdir="$build_subdir"
3151 fi
3152
3153 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3154 if ( test $srcdir = . && test -d gcc ) \
3155    || test -d $srcdir/../host-${host_noncanonical}; then
3156   host_subdir="host-${host_noncanonical}"
3157 else
3158   host_subdir=.
3159 fi
3160 # No prefix.
3161 target_subdir=${target_noncanonical}
3162
3163
3164 # Set program_transform_name
3165 test "$program_prefix" != NONE &&
3166   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s,x,x', remove it if useless.
3172 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3174
3175
3176 # Check for bogus environment variables.
3177 # Test if LIBRARY_PATH contains the notation for the current directory
3178 # since this would lead to problems installing/building glibc.
3179 # LIBRARY_PATH contains the current directory if one of the following
3180 # is true:
3181 # - one of the terminals (":" and ";") is the first or last sign
3182 # - two terminals occur directly after each other
3183 # - the path contains an element with a dot in it
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3185 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3186 case ${LIBRARY_PATH} in
3187   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3188     library_path_setting="contains current directory"
3189     ;;
3190   *)
3191     library_path_setting="ok"
3192     ;;
3193 esac
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3195 $as_echo "$library_path_setting" >&6; }
3196 if test "$library_path_setting" != "ok"; then
3197 as_fn_error "
3198 *** LIBRARY_PATH shouldn't contain the current directory when
3199 *** building gcc. Please change the environment variable
3200 *** and run configure again." "$LINENO" 5
3201 fi
3202
3203 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3204 # since this would lead to problems installing/building glibc.
3205 # GCC_EXEC_PREFIX contains the current directory if one of the following
3206 # is true:
3207 # - one of the terminals (":" and ";") is the first or last sign
3208 # - two terminals occur directly after each other
3209 # - the path contains an element with a dot in it
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3211 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3212 case ${GCC_EXEC_PREFIX} in
3213   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3214     gcc_exec_prefix_setting="contains current directory"
3215     ;;
3216   *)
3217     gcc_exec_prefix_setting="ok"
3218     ;;
3219 esac
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3221 $as_echo "$gcc_exec_prefix_setting" >&6; }
3222 if test "$gcc_exec_prefix_setting" != "ok"; then
3223 as_fn_error "
3224 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3225 *** building gcc. Please change the environment variable
3226 *** and run configure again." "$LINENO" 5
3227 fi
3228
3229 # -----------
3230 # Directories
3231 # -----------
3232
3233 # Specify the local prefix
3234 local_prefix=
3235
3236 # Check whether --with-local-prefix was given.
3237 if test "${with_local_prefix+set}" = set; then :
3238   withval=$with_local_prefix; case "${withval}" in
3239 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3240 no)     ;;
3241 *)      local_prefix=$with_local_prefix ;;
3242 esac
3243 fi
3244
3245
3246 # Default local prefix if it is empty
3247 if test x$local_prefix = x; then
3248         local_prefix=/usr/local
3249 fi
3250
3251 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3252 # passed in by the toplevel make and thus we'd get different behavior
3253 # depending on where we built the sources.
3254 gcc_gxx_include_dir=
3255 # Specify the g++ header file directory
3256
3257 # Check whether --with-gxx-include-dir was given.
3258 if test "${with_gxx_include_dir+set}" = set; then :
3259   withval=$with_gxx_include_dir; case "${withval}" in
3260 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3261 no)     ;;
3262 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3263 esac
3264 fi
3265
3266
3267 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3268 if test x${gcc_gxx_include_dir} = x; then
3269   if test x${enable_version_specific_runtime_libs} = xyes; then
3270     gcc_gxx_include_dir='${libsubdir}/include/c++'
3271   else
3272     libstdcxx_incdir='include/c++/$(version)'
3273     if test x$host != x$target; then
3274        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3275     fi
3276     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3277   fi
3278 fi
3279
3280
3281 # Check whether --with-cpp_install_dir was given.
3282 if test "${with_cpp_install_dir+set}" = set; then :
3283   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3284   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3285 elif test x$withval != xno; then
3286   cpp_install_dir=$withval
3287 fi
3288 fi
3289
3290
3291 # We would like to our source tree to be readonly.  However when releases or
3292 # pre-releases are generated, the flex/bison generated files as well as the
3293 # various formats of manuals need to be included along with the rest of the
3294 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3295 # just that.
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3298 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3299     # Check whether --enable-generated-files-in-srcdir was given.
3300 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3301   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3302 else
3303   generated_files_in_srcdir=no
3304 fi
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3308 $as_echo "$generated_files_in_srcdir" >&6; }
3309
3310 if test "$generated_files_in_srcdir" = "yes"; then
3311   GENINSRC=''
3312 else
3313   GENINSRC='#'
3314 fi
3315
3316
3317 # -------------------
3318 # Find default linker
3319 # -------------------
3320
3321 # With GNU ld
3322
3323 # Check whether --with-gnu-ld was given.
3324 if test "${with_gnu_ld+set}" = set; then :
3325   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3326 else
3327   gnu_ld_flag=no
3328 fi
3329
3330
3331 # With pre-defined ld
3332
3333 # Check whether --with-ld was given.
3334 if test "${with_ld+set}" = set; then :
3335   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3336 fi
3337
3338 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3339   if test ! -x "$DEFAULT_LINKER"; then
3340     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3341   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3342     gnu_ld_flag=yes
3343   fi
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3347 _ACEOF
3348
3349 fi
3350
3351 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3352
3353 cat >>confdefs.h <<_ACEOF
3354 #define HAVE_GNU_LD $gnu_ld
3355 _ACEOF
3356
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3359 $as_echo_n "checking whether a default linker was specified... " >&6; }
3360 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3361   if test x"$gnu_ld_flag" = x"no"; then
3362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3364   else
3365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3366 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3367   fi
3368 else
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 fi
3372
3373 # With demangler in GNU ld
3374
3375 # Check whether --with-demangler-in-ld was given.
3376 if test "${with_demangler_in_ld+set}" = set; then :
3377   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3378 else
3379   demangler_in_ld=no
3380 fi
3381
3382
3383 # ----------------------
3384 # Find default assembler
3385 # ----------------------
3386
3387 # With GNU as
3388
3389 # Check whether --with-gnu-as was given.
3390 if test "${with_gnu_as+set}" = set; then :
3391   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3392 else
3393   gas_flag=no
3394 fi
3395
3396
3397
3398 # Check whether --with-as was given.
3399 if test "${with_as+set}" = set; then :
3400   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3401 fi
3402
3403 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3404   if test ! -x "$DEFAULT_ASSEMBLER"; then
3405     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3406   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3407     gas_flag=yes
3408   fi
3409
3410 cat >>confdefs.h <<_ACEOF
3411 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3412 _ACEOF
3413
3414 fi
3415
3416 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3417
3418 cat >>confdefs.h <<_ACEOF
3419 #define HAVE_GNU_AS $gnu_as
3420 _ACEOF
3421
3422
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3424 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3425 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3426   if test x"$gas_flag" = x"no"; then
3427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3429   else
3430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3431 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3432   fi
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438 # ---------------
3439 # Find C compiler
3440 # ---------------
3441
3442 # If a non-executable a.out is present (e.g. created by GNU as above even if
3443 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3444 # file, even when creating an executable, so an execution test fails.
3445 # Remove possible default executable files to avoid this.
3446 #
3447 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3448 # Autoconf includes it.
3449 rm -f a.out a.exe b.out
3450
3451 # Find the native compiler
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$CC"; then
3466   ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473     for ac_exec_ext in '' $ac_executable_extensions; do
3474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495 fi
3496 if test -z "$ac_cv_prog_CC"; then
3497   ac_ct_CC=$CC
3498   # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   if test -n "$ac_ct_CC"; then
3506   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513     for ac_exec_ext in '' $ac_executable_extensions; do
3514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515     ac_cv_prog_ac_ct_CC="gcc"
3516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520   done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3529 else
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534   if test "x$ac_ct_CC" = x; then
3535     CC=""
3536   else
3537     case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543     CC=$ac_ct_CC
3544   fi
3545 else
3546   CC="$ac_cv_prog_CC"
3547 fi
3548
3549 if test -z "$CC"; then
3550           if test -n "$ac_tool_prefix"; then
3551     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   if test -n "$CC"; then
3559   ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566     for ac_exec_ext in '' $ac_executable_extensions; do
3567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568     ac_cv_prog_CC="${ac_tool_prefix}cc"
3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573   done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588   fi
3589 fi
3590 if test -z "$CC"; then
3591   # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   if test -n "$CC"; then
3599   ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601   ac_prog_rejected=no
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607     for ac_exec_ext in '' $ac_executable_extensions; do
3608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610        ac_prog_rejected=yes
3611        continue
3612      fi
3613     ac_cv_prog_CC="cc"
3614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615     break 2
3616   fi
3617 done
3618   done
3619 IFS=$as_save_IFS
3620
3621 if test $ac_prog_rejected = yes; then
3622   # We found a bogon in the path, so make sure we never use it.
3623   set dummy $ac_cv_prog_CC
3624   shift
3625   if test $# != 0; then
3626     # We chose a different compiler from the bogus one.
3627     # However, it has the same basename, so the bogon will be chosen
3628     # first if we set CC to just the basename; use the full file name.
3629     shift
3630     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3631   fi
3632 fi
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 if test -z "$CC"; then
3647   if test -n "$ac_tool_prefix"; then
3648   for ac_prog in cl.exe
3649   do
3650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657   if test -n "$CC"; then
3658   ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669     break 2
3670   fi
3671 done
3672   done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3681 else
3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687     test -n "$CC" && break
3688   done
3689 fi
3690 if test -z "$CC"; then
3691   ac_ct_CC=$CC
3692   for ac_prog in cl.exe
3693 do
3694   # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$ac_ct_CC"; then
3702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711     ac_cv_prog_ac_ct_CC="$ac_prog"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731   test -n "$ac_ct_CC" && break
3732 done
3733
3734   if test "x$ac_ct_CC" = x; then
3735     CC=""
3736   else
3737     case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743     CC=$ac_ct_CC
3744   fi
3745 fi
3746
3747 fi
3748
3749
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3754
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3757 set X $ac_compile
3758 ac_compiler=$2
3759 for ac_option in --version -v -V -qversion; do
3760   { { ac_try="$ac_compiler $ac_option >&5"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768   ac_status=$?
3769   if test -s conftest.err; then
3770     sed '10a\
3771 ... rest of stderr output deleted ...
3772          10q' conftest.err >conftest.er1
3773     cat conftest.er1 >&5
3774     rm -f conftest.er1 conftest.err
3775   fi
3776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777   test $ac_status = 0; }
3778 done
3779
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3795 # of exeext.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 $as_echo_n "checking for C compiler default output file name... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3799
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3802
3803 ac_rmfiles=
3804 for ac_file in $ac_files
3805 do
3806   case $ac_file in
3807     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809   esac
3810 done
3811 rm -f $ac_rmfiles
3812
3813 if { { ac_try="$ac_link_default"
3814 case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820   (eval "$ac_link_default") 2>&5
3821   ac_status=$?
3822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823   test $ac_status = 0; }; then :
3824   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3830 do
3831   test -f "$ac_file" || continue
3832   case $ac_file in
3833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3834         ;;
3835     [ab].out )
3836         # We found the default executable, but exeext='' is most
3837         # certainly right.
3838         break;;
3839     *.* )
3840         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3841         then :; else
3842            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843         fi
3844         # We set ac_cv_exeext here because the later test for it is not
3845         # safe: cross compilers may not add the suffix if given an `-o'
3846         # argument, so we may need to know it at that point already.
3847         # Even if this section looks crufty: it has the advantage of
3848         # actually working.
3849         break;;
3850     * )
3851         break;;
3852   esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3855
3856 else
3857   ac_file=''
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 if test -z "$ac_file"; then :
3862   $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status 77
3868 as_fn_error "C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3870 fi
3871 ac_exeext=$ac_cv_exeext
3872
3873 # Check that the compiler produces executables we can run.  If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 # If not cross compiling, check that we can run a simple program.
3878 if test "$cross_compiling" != yes; then
3879   if { ac_try='./$ac_file'
3880   { { case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886   (eval "$ac_try") 2>&5
3887   ac_status=$?
3888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889   test $ac_status = 0; }; }; then
3890     cross_compiling=no
3891   else
3892     if test "$cross_compiling" = maybe; then
3893         cross_compiling=yes
3894     else
3895         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error "cannot run C compiled programs.
3898 If you meant to cross compile, use \`--host'.
3899 See \`config.log' for more details." "$LINENO" 5; }
3900     fi
3901   fi
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905
3906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3907 ac_clean_files=$ac_clean_files_save
3908 # Check that the compiler produces executables we can run.  If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920   *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924   (eval "$ac_link") 2>&5
3925   ac_status=$?
3926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927   test $ac_status = 0; }; then :
3928   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3929 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe'), while it won't with
3931 # `rm'.
3932 for ac_file in conftest.exe conftest conftest.*; do
3933   test -f "$ac_file" || continue
3934   case $ac_file in
3935     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937           break;;
3938     * ) break;;
3939   esac
3940 done
3941 else
3942   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3946 fi
3947 rm -f conftest$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3950
3951 rm -f conftest.$ac_ext
3952 EXEEXT=$ac_cv_exeext
3953 ac_exeext=$EXEEXT
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961
3962 int
3963 main ()
3964 {
3965
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3972 case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978   (eval "$ac_compile") 2>&5
3979   ac_status=$?
3980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981   test $ac_status = 0; }; then :
3982   for ac_file in conftest.o conftest.obj conftest.*; do
3983   test -f "$ac_file" || continue;
3984   case $ac_file in
3985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987        break;;
3988   esac
3989 done
3990 else
3991   $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details." "$LINENO" 5; }
3998 fi
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4004 ac_objext=$OBJEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016 #ifndef __GNUC__
4017        choke me
4018 #endif
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025   ac_compiler_gnu=yes
4026 else
4027   ac_compiler_gnu=no
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4036   GCC=yes
4037 else
4038   GCC=
4039 fi
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   ac_save_c_werror_flag=$ac_c_werror_flag
4048    ac_c_werror_flag=yes
4049    ac_cv_prog_cc_g=no
4050    CFLAGS="-g"
4051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h.  */
4053
4054 int
4055 main ()
4056 {
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063   ac_cv_prog_cc_g=yes
4064 else
4065   CFLAGS=""
4066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h.  */
4068
4069 int
4070 main ()
4071 {
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078
4079 else
4080   ac_c_werror_flag=$ac_save_c_werror_flag
4081          CFLAGS="-g"
4082          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094   ac_cv_prog_cc_g=yes
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101    ac_c_werror_flag=$ac_save_c_werror_flag
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106   CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108   if test "$GCC" = yes; then
4109     CFLAGS="-g -O2"
4110   else
4111     CFLAGS="-g"
4112   fi
4113 else
4114   if test "$GCC" = yes; then
4115     CFLAGS="-O2"
4116   else
4117     CFLAGS=
4118   fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   ac_cv_prog_cc_c89=no
4126 ac_save_CC=$CC
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129 #include <stdarg.h>
4130 #include <stdio.h>
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4137      char **p;
4138      int i;
4139 {
4140   return p[i];
4141 }
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4143 {
4144   char *s;
4145   va_list v;
4146   va_start (v,p);
4147   s = g (p, va_arg (v,int));
4148   va_end (v);
4149   return s;
4150 }
4151
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153    function prototypes and stuff, but not '\xHH' hex character constants.
4154    These don't provoke an error unfortunately, instead are silently treated
4155    as 'x'.  The following induces an error, until -std is added to get
4156    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157    array size at least.  It's necessary to write '\x00'==0 to get something
4158    that's true only with -std.  */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162    inside strings and character constants.  */
4163 #define FOO(x) 'x'
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170 int argc;
4171 char **argv;
4172 int
4173 main ()
4174 {
4175 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182 do
4183   CC="$ac_save_CC $ac_arg"
4184   if ac_fn_c_try_compile "$LINENO"; then :
4185   ac_cv_prog_cc_c89=$ac_arg
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext
4188   test "x$ac_cv_prog_cc_c89" != "xno" && break
4189 done
4190 rm -f conftest.$ac_ext
4191 CC=$ac_save_CC
4192
4193 fi
4194 # AC_CACHE_VAL
4195 case "x$ac_cv_prog_cc_c89" in
4196   x)
4197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4199   xno)
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4202   *)
4203     CC="$CC $ac_cv_prog_cc_c89"
4204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206 esac
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4208
4209 fi
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217 if test "x$CC" != xcc; then
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4219 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4220 else
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4222 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4223 fi
4224 set dummy $CC; ac_cc=`$as_echo "$2" |
4225                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231
4232 int
4233 main ()
4234 {
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 # Make sure it works both with $CC and with simple cc.
4241 # We do the test twice because some compilers refuse to overwrite an
4242 # existing .o file with -o, though they will create one.
4243 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4244 rm -f conftest2.*
4245 if { { case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254   test $ac_status = 0; } &&
4255    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261   (eval "$ac_try") 2>&5
4262   ac_status=$?
4263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264   test $ac_status = 0; };
4265 then
4266   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4267   if test "x$CC" != xcc; then
4268     # Test first that cc exists at all.
4269     if { ac_try='cc -c conftest.$ac_ext >&5'
4270   { { case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279   test $ac_status = 0; }; }; then
4280       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281       rm -f conftest2.*
4282       if { { case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; } &&
4292          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; };
4302       then
4303         # cc works too.
4304         :
4305       else
4306         # cc exists but doesn't like -o.
4307         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4308       fi
4309     fi
4310   fi
4311 else
4312   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4313 fi
4314 rm -f core conftest*
4315
4316 fi
4317 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4320 else
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323
4324 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4325
4326 fi
4327
4328 # expand $ac_aux_dir to an absolute path
4329 am_aux_dir=`cd $ac_aux_dir && pwd`
4330
4331 # FIXME: we rely on the cache variable name because
4332 # there is no other way.
4333 set dummy $CC
4334 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4336 if test "$am_t" != yes; then
4337    # Losing compiler, so override with the script.
4338    # FIXME: It is wrong to rewrite CC.
4339    # But if we don't then we get into trouble of one sort or another.
4340    # A longer-term fix would be to have automake use am__CC in this case,
4341    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4342    CC="$am_aux_dir/compile $CC"
4343 fi
4344
4345
4346 ac_ext=cpp
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352   if test -n "$CCC"; then
4353     CXX=$CCC
4354   else
4355     if test -n "$ac_tool_prefix"; then
4356   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4357   do
4358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CXX+set}" = set; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -n "$CXX"; then
4366   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380   done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 CXX=$ac_cv_prog_CXX
4386 if test -n "$CXX"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395     test -n "$CXX" && break
4396   done
4397 fi
4398 if test -z "$CXX"; then
4399   ac_ct_CXX=$CXX
4400   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4401 do
4402   # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$ac_ct_CXX"; then
4410   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419     ac_cv_prog_ac_ct_CXX="$ac_prog"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439   test -n "$ac_ct_CXX" && break
4440 done
4441
4442   if test "x$ac_ct_CXX" = x; then
4443     CXX="g++"
4444   else
4445     case $cross_compiling:$ac_tool_warned in
4446 yes:)
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4450 esac
4451     CXX=$ac_ct_CXX
4452   fi
4453 fi
4454
4455   fi
4456 fi
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4459 set X $ac_compile
4460 ac_compiler=$2
4461 for ac_option in --version -v -V -qversion; do
4462   { { ac_try="$ac_compiler $ac_option >&5"
4463 case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4470   ac_status=$?
4471   if test -s conftest.err; then
4472     sed '10a\
4473 ... rest of stderr output deleted ...
4474          10q' conftest.err >conftest.er1
4475     cat conftest.er1 >&5
4476     rm -f conftest.er1 conftest.err
4477   fi
4478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479   test $ac_status = 0; }
4480 done
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h.  */
4489
4490 int
4491 main ()
4492 {
4493 #ifndef __GNUC__
4494        choke me
4495 #endif
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502   ac_compiler_gnu=yes
4503 else
4504   ac_compiler_gnu=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4508
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4513   GXX=yes
4514 else
4515   GXX=
4516 fi
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525    ac_cxx_werror_flag=yes
4526    ac_cv_prog_cxx_g=no
4527    CXXFLAGS="-g"
4528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530
4531 int
4532 main ()
4533 {
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540   ac_cv_prog_cxx_g=yes
4541 else
4542   CXXFLAGS=""
4543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h.  */
4545
4546 int
4547 main ()
4548 {
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555
4556 else
4557   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4558          CXXFLAGS="-g"
4559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561
4562 int
4563 main ()
4564 {
4565
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571   ac_cv_prog_cxx_g=yes
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583   CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585   if test "$GXX" = yes; then
4586     CXXFLAGS="-g -O2"
4587   else
4588     CXXFLAGS="-g"
4589   fi
4590 else
4591   if test "$GXX" = yes; then
4592     CXXFLAGS="-O2"
4593   else
4594     CXXFLAGS=
4595   fi
4596 fi
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603
4604
4605
4606 if test -n "$ac_tool_prefix"; then
4607   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   if test -n "$GNATBIND"; then
4615   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629   done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 GNATBIND=$ac_cv_prog_GNATBIND
4635 if test -n "$GNATBIND"; then
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4637 $as_echo "$GNATBIND" >&6; }
4638 else
4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if test -z "$ac_cv_prog_GNATBIND"; then
4646   ac_ct_GNATBIND=$GNATBIND
4647   # Extract the first word of "gnatbind", so it can be a program name with args.
4648 set dummy gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if test -n "$ac_ct_GNATBIND"; then
4655   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4675 if test -n "$ac_ct_GNATBIND"; then
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4677 $as_echo "$ac_ct_GNATBIND" >&6; }
4678 else
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683   if test "x$ac_ct_GNATBIND" = x; then
4684     GNATBIND="no"
4685   else
4686     case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4691 esac
4692     GNATBIND=$ac_ct_GNATBIND
4693   fi
4694 else
4695   GNATBIND="$ac_cv_prog_GNATBIND"
4696 fi
4697
4698 if test -n "$ac_tool_prefix"; then
4699   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4704   $as_echo_n "(cached) " >&6
4705 else
4706   if test -n "$GNATMAKE"; then
4707   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714     for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721   done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 GNATMAKE=$ac_cv_prog_GNATMAKE
4727 if test -n "$GNATMAKE"; then
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4729 $as_echo "$GNATMAKE" >&6; }
4730 else
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736 fi
4737 if test -z "$ac_cv_prog_GNATMAKE"; then
4738   ac_ct_GNATMAKE=$GNATMAKE
4739   # Extract the first word of "gnatmake", so it can be a program name with args.
4740 set dummy gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4744   $as_echo_n "(cached) " >&6
4745 else
4746   if test -n "$ac_ct_GNATMAKE"; then
4747   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4767 if test -n "$ac_ct_GNATMAKE"; then
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4769 $as_echo "$ac_ct_GNATMAKE" >&6; }
4770 else
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775   if test "x$ac_ct_GNATMAKE" = x; then
4776     GNATMAKE="no"
4777   else
4778     case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784     GNATMAKE=$ac_ct_GNATMAKE
4785   fi
4786 else
4787   GNATMAKE="$ac_cv_prog_GNATMAKE"
4788 fi
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4791 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4792 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   cat >conftest.adb <<EOF
4796 procedure conftest is begin null; end conftest;
4797 EOF
4798 acx_cv_cc_gcc_supports_ada=no
4799 # There is a bug in old released versions of GCC which causes the
4800 # driver to exit successfully when the appropriate language module
4801 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4802 # Therefore we must check for the error message as well as an
4803 # unsuccessful exit.
4804 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4805 # given a .adb file, but produce no object file.  So we must check
4806 # if an object file was really produced to guard against this.
4807 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4808 if test x"$errors" = x && test -f conftest.$ac_objext; then
4809   acx_cv_cc_gcc_supports_ada=yes
4810 fi
4811 rm -f conftest.*
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4814 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4815
4816 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4817   have_gnat=yes
4818 else
4819   have_gnat=no
4820 fi
4821
4822
4823 # autoconf is lame and doesn't give us any substitution variable for this.
4824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4825   NO_MINUS_C_MINUS_O=yes
4826 else
4827   OUTPUT_OPTION='-o $@'
4828 fi
4829
4830
4831
4832 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4833 # optimizations to be activated explicitly by the toplevel.
4834 case "$CC" in
4835   */prev-gcc/xgcc*) ;;
4836   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4837 esac
4838
4839
4840 # -------------------------
4841 # Check C compiler features
4842 # -------------------------
4843
4844
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4851 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4852 # On Suns, sometimes $CPP names a directory.
4853 if test -n "$CPP" && test -d "$CPP"; then
4854   CPP=
4855 fi
4856 if test -z "$CPP"; then
4857   if test "${ac_cv_prog_CPP+set}" = set; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860       # Double quotes because CPP needs to be expanded
4861     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4862     do
4863       ac_preproc_ok=false
4864 for ac_c_preproc_warn_flag in '' yes
4865 do
4866   # Use a header file that comes with gcc, so configuring glibc
4867   # with a fresh cross-compiler works.
4868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869   # <limits.h> exists even on freestanding compilers.
4870   # On the NeXT, cc -E runs the code through the compiler's parser,
4871   # not just through cpp. "Syntax error" is here to catch this case.
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879                      Syntax error
4880 _ACEOF
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4882
4883 else
4884   # Broken: fails on valid input.
4885 continue
4886 fi
4887 rm -f conftest.err conftest.$ac_ext
4888
4889   # OK, works on sane cases.  Now check whether nonexistent headers
4890   # can be detected and how.
4891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h.  */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896   # Broken: success on invalid input.
4897 continue
4898 else
4899   # Passes both tests.
4900 ac_preproc_ok=:
4901 break
4902 fi
4903 rm -f conftest.err conftest.$ac_ext
4904
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4909   break
4910 fi
4911
4912     done
4913     ac_cv_prog_CPP=$CPP
4914
4915 fi
4916   CPP=$ac_cv_prog_CPP
4917 else
4918   ac_cv_prog_CPP=$CPP
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4921 $as_echo "$CPP" >&6; }
4922 ac_preproc_ok=false
4923 for ac_c_preproc_warn_flag in '' yes
4924 do
4925   # Use a header file that comes with gcc, so configuring glibc
4926   # with a fresh cross-compiler works.
4927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928   # <limits.h> exists even on freestanding compilers.
4929   # On the NeXT, cc -E runs the code through the compiler's parser,
4930   # not just through cpp. "Syntax error" is here to catch this case.
4931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h.  */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938                      Syntax error
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4941
4942 else
4943   # Broken: fails on valid input.
4944 continue
4945 fi
4946 rm -f conftest.err conftest.$ac_ext
4947
4948   # OK, works on sane cases.  Now check whether nonexistent headers
4949   # can be detected and how.
4950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h.  */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if ac_fn_c_try_cpp "$LINENO"; then :
4955   # Broken: success on invalid input.
4956 continue
4957 else
4958   # Passes both tests.
4959 ac_preproc_ok=:
4960 break
4961 fi
4962 rm -f conftest.err conftest.$ac_ext
4963
4964 done
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then :
4968
4969 else
4970   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." "$LINENO" 5; }
4974 fi
4975
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4985 if test "${ac_cv_path_GREP+set}" = set; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -z "$GREP"; then
4989   ac_path_GREP_found=false
4990   # Loop through the user's path and test for each of PROGNAME-LIST
4991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_prog in grep ggrep; do
4997     for ac_exec_ext in '' $ac_executable_extensions; do
4998       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4999       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5000 # Check for GNU ac_path_GREP and select it if it is found.
5001   # Check for GNU $ac_path_GREP
5002 case `"$ac_path_GREP" --version 2>&1` in
5003 *GNU*)
5004   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5005 *)
5006   ac_count=0
5007   $as_echo_n 0123456789 >"conftest.in"
5008   while :
5009   do
5010     cat "conftest.in" "conftest.in" >"conftest.tmp"
5011     mv "conftest.tmp" "conftest.in"
5012     cp "conftest.in" "conftest.nl"
5013     $as_echo 'GREP' >> "conftest.nl"
5014     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016     as_fn_arith $ac_count + 1 && ac_count=$as_val
5017     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5018       # Best one so far, save it but keep looking for a better one
5019       ac_cv_path_GREP="$ac_path_GREP"
5020       ac_path_GREP_max=$ac_count
5021     fi
5022     # 10*(2^10) chars as input seems more than enough
5023     test $ac_count -gt 10 && break
5024   done
5025   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026 esac
5027
5028       $ac_path_GREP_found && break 3
5029     done
5030   done
5031   done
5032 IFS=$as_save_IFS
5033   if test -z "$ac_cv_path_GREP"; then
5034     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035   fi
5036 else
5037   ac_cv_path_GREP=$GREP
5038 fi
5039
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5042 $as_echo "$ac_cv_path_GREP" >&6; }
5043  GREP="$ac_cv_path_GREP"
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5047 $as_echo_n "checking for egrep... " >&6; }
5048 if test "${ac_cv_path_EGREP+set}" = set; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5052    then ac_cv_path_EGREP="$GREP -E"
5053    else
5054      if test -z "$EGREP"; then
5055   ac_path_EGREP_found=false
5056   # Loop through the user's path and test for each of PROGNAME-LIST
5057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062     for ac_prog in egrep; do
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5065       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5066 # Check for GNU ac_path_EGREP and select it if it is found.
5067   # Check for GNU $ac_path_EGREP
5068 case `"$ac_path_EGREP" --version 2>&1` in
5069 *GNU*)
5070   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5071 *)
5072   ac_count=0
5073   $as_echo_n 0123456789 >"conftest.in"
5074   while :
5075   do
5076     cat "conftest.in" "conftest.in" >"conftest.tmp"
5077     mv "conftest.tmp" "conftest.in"
5078     cp "conftest.in" "conftest.nl"
5079     $as_echo 'EGREP' >> "conftest.nl"
5080     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5081     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5082     as_fn_arith $ac_count + 1 && ac_count=$as_val
5083     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5084       # Best one so far, save it but keep looking for a better one
5085       ac_cv_path_EGREP="$ac_path_EGREP"
5086       ac_path_EGREP_max=$ac_count
5087     fi
5088     # 10*(2^10) chars as input seems more than enough
5089     test $ac_count -gt 10 && break
5090   done
5091   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5092 esac
5093
5094       $ac_path_EGREP_found && break 3
5095     done
5096   done
5097   done
5098 IFS=$as_save_IFS
5099   if test -z "$ac_cv_path_EGREP"; then
5100     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101   fi
5102 else
5103   ac_cv_path_EGREP=$EGREP
5104 fi
5105
5106    fi
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5109 $as_echo "$ac_cv_path_EGREP" >&6; }
5110  EGREP="$ac_cv_path_EGREP"
5111
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5114 $as_echo_n "checking for ANSI C header files... " >&6; }
5115 if test "${ac_cv_header_stdc+set}" = set; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h.  */
5120 #include <stdlib.h>
5121 #include <stdarg.h>
5122 #include <string.h>
5123 #include <float.h>
5124
5125 int
5126 main ()
5127 {
5128
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134   ac_cv_header_stdc=yes
5135 else
5136   ac_cv_header_stdc=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139
5140 if test $ac_cv_header_stdc = yes; then
5141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144 #include <string.h>
5145
5146 _ACEOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148   $EGREP "memchr" >/dev/null 2>&1; then :
5149
5150 else
5151   ac_cv_header_stdc=no
5152 fi
5153 rm -f conftest*
5154
5155 fi
5156
5157 if test $ac_cv_header_stdc = yes; then
5158   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h.  */
5161 #include <stdlib.h>
5162
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165   $EGREP "free" >/dev/null 2>&1; then :
5166
5167 else
5168   ac_cv_header_stdc=no
5169 fi
5170 rm -f conftest*
5171
5172 fi
5173
5174 if test $ac_cv_header_stdc = yes; then
5175   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176   if test "$cross_compiling" = yes; then :
5177   :
5178 else
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181 #include <ctype.h>
5182 #include <stdlib.h>
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5186 #else
5187 # define ISLOWER(c) \
5188                    (('a' <= (c) && (c) <= 'i') \
5189                      || ('j' <= (c) && (c) <= 'r') \
5190                      || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192 #endif
5193
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 int
5196 main ()
5197 {
5198   int i;
5199   for (i = 0; i < 256; i++)
5200     if (XOR (islower (i), ISLOWER (i))
5201         || toupper (i) != TOUPPER (i))
5202       return 2;
5203   return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_run "$LINENO"; then :
5207
5208 else
5209   ac_cv_header_stdc=no
5210 fi
5211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212   conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 fi
5214
5215 fi
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5218 $as_echo "$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5220
5221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5222
5223 fi
5224
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5227                   inttypes.h stdint.h unistd.h
5228 do :
5229   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5231 "
5232 eval as_val=\$$as_ac_Header
5233    if test "x$as_val" = x""yes; then :
5234   cat >>confdefs.h <<_ACEOF
5235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 _ACEOF
5237
5238 fi
5239
5240 done
5241
5242
5243
5244   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5246   MINIX=yes
5247 else
5248   MINIX=
5249 fi
5250
5251
5252   if test "$MINIX" = yes; then
5253
5254 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5255
5256
5257 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5258
5259
5260 $as_echo "#define _MINIX 1" >>confdefs.h
5261
5262   fi
5263
5264
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5266 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5267 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h.  */
5272
5273 #         define __EXTENSIONS__ 1
5274           $ac_includes_default
5275 int
5276 main ()
5277 {
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284   ac_cv_safe_to_define___extensions__=yes
5285 else
5286   ac_cv_safe_to_define___extensions__=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5291 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5292   test $ac_cv_safe_to_define___extensions__ = yes &&
5293     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5294
5295   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5296
5297   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5298
5299   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5300
5301   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5302
5303
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5313   CPP=
5314 fi
5315 if test -z "$CPP"; then
5316   if test "${ac_cv_prog_CPP+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319       # Double quotes because CPP needs to be expanded
5320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321     do
5322       ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5324 do
5325   # Use a header file that comes with gcc, so configuring glibc
5326   # with a fresh cross-compiler works.
5327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328   # <limits.h> exists even on freestanding compilers.
5329   # On the NeXT, cc -E runs the code through the compiler's parser,
5330   # not just through cpp. "Syntax error" is here to catch this case.
5331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h.  */
5333 #ifdef __STDC__
5334 # include <limits.h>
5335 #else
5336 # include <assert.h>
5337 #endif
5338                      Syntax error
5339 _ACEOF
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5341
5342 else
5343   # Broken: fails on valid input.
5344 continue
5345 fi
5346 rm -f conftest.err conftest.$ac_ext
5347
5348   # OK, works on sane cases.  Now check whether nonexistent headers
5349   # can be detected and how.
5350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h.  */
5352 #include <ac_nonexistent.h>
5353 _ACEOF
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5355   # Broken: success on invalid input.
5356 continue
5357 else
5358   # Passes both tests.
5359 ac_preproc_ok=:
5360 break
5361 fi
5362 rm -f conftest.err conftest.$ac_ext
5363
5364 done
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.$ac_ext
5367 if $ac_preproc_ok; then :
5368   break
5369 fi
5370
5371     done
5372     ac_cv_prog_CPP=$CPP
5373
5374 fi
5375   CPP=$ac_cv_prog_CPP
5376 else
5377   ac_cv_prog_CPP=$CPP
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5380 $as_echo "$CPP" >&6; }
5381 ac_preproc_ok=false
5382 for ac_c_preproc_warn_flag in '' yes
5383 do
5384   # Use a header file that comes with gcc, so configuring glibc
5385   # with a fresh cross-compiler works.
5386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387   # <limits.h> exists even on freestanding compilers.
5388   # On the NeXT, cc -E runs the code through the compiler's parser,
5389   # not just through cpp. "Syntax error" is here to catch this case.
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392 #ifdef __STDC__
5393 # include <limits.h>
5394 #else
5395 # include <assert.h>
5396 #endif
5397                      Syntax error
5398 _ACEOF
5399 if ac_fn_c_try_cpp "$LINENO"; then :
5400
5401 else
5402   # Broken: fails on valid input.
5403 continue
5404 fi
5405 rm -f conftest.err conftest.$ac_ext
5406
5407   # OK, works on sane cases.  Now check whether nonexistent headers
5408   # can be detected and how.
5409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h.  */
5411 #include <ac_nonexistent.h>
5412 _ACEOF
5413 if ac_fn_c_try_cpp "$LINENO"; then :
5414   # Broken: success on invalid input.
5415 continue
5416 else
5417   # Passes both tests.
5418 ac_preproc_ok=:
5419 break
5420 fi
5421 rm -f conftest.err conftest.$ac_ext
5422
5423 done
5424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5425 rm -f conftest.err conftest.$ac_ext
5426 if $ac_preproc_ok; then :
5427
5428 else
5429   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5431 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." "$LINENO" 5; }
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5442 $as_echo_n "checking for inline... " >&6; }
5443 if test "${ac_cv_c_inline+set}" = set; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   ac_cv_c_inline=no
5447 for ac_kw in inline __inline__ __inline; do
5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h.  */
5450 #ifndef __cplusplus
5451 typedef int foo_t;
5452 static $ac_kw foo_t static_foo () {return 0; }
5453 $ac_kw foo_t foo () {return 0; }
5454 #endif
5455
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458   ac_cv_c_inline=$ac_kw
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461   test "$ac_cv_c_inline" != no && break
5462 done
5463
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5466 $as_echo "$ac_cv_c_inline" >&6; }
5467
5468 case $ac_cv_c_inline in
5469   inline | yes) ;;
5470   *)
5471     case $ac_cv_c_inline in
5472       no) ac_val=;;
5473       *) ac_val=$ac_cv_c_inline;;
5474     esac
5475     cat >>confdefs.h <<_ACEOF
5476 #ifndef __cplusplus
5477 #define inline $ac_val
5478 #endif
5479 _ACEOF
5480     ;;
5481 esac
5482
5483
5484 # sizeof(char) is 1 by definition.
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5490 $as_echo_n "checking size of void *... " >&6; }
5491 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5495
5496 else
5497   if test "$ac_cv_type_void_p" = yes; then
5498      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 { as_fn_set_status 77
5501 as_fn_error "cannot compute sizeof (void *)
5502 See \`config.log' for more details." "$LINENO" 5; }; }
5503    else
5504      ac_cv_sizeof_void_p=0
5505    fi
5506 fi
5507
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5511
5512
5513
5514 cat >>confdefs.h <<_ACEOF
5515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5516 _ACEOF
5517
5518
5519 # The cast to long int works around a bug in the HP C Compiler
5520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5522 # This bug is HP SR number 8606223364.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5524 $as_echo_n "checking size of short... " >&6; }
5525 if test "${ac_cv_sizeof_short+set}" = set; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5529
5530 else
5531   if test "$ac_cv_type_short" = yes; then
5532      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 { as_fn_set_status 77
5535 as_fn_error "cannot compute sizeof (short)
5536 See \`config.log' for more details." "$LINENO" 5; }; }
5537    else
5538      ac_cv_sizeof_short=0
5539    fi
5540 fi
5541
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5544 $as_echo "$ac_cv_sizeof_short" >&6; }
5545
5546
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define SIZEOF_SHORT $ac_cv_sizeof_short
5550 _ACEOF
5551
5552
5553 # The cast to long int works around a bug in the HP C Compiler
5554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5556 # This bug is HP SR number 8606223364.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5558 $as_echo_n "checking size of int... " >&6; }
5559 if test "${ac_cv_sizeof_int+set}" = set; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5563
5564 else
5565   if test "$ac_cv_type_int" = yes; then
5566      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 { as_fn_set_status 77
5569 as_fn_error "cannot compute sizeof (int)
5570 See \`config.log' for more details." "$LINENO" 5; }; }
5571    else
5572      ac_cv_sizeof_int=0
5573    fi
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5578 $as_echo "$ac_cv_sizeof_int" >&6; }
5579
5580
5581
5582 cat >>confdefs.h <<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5584 _ACEOF
5585
5586
5587 # The cast to long int works around a bug in the HP C Compiler
5588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5590 # This bug is HP SR number 8606223364.
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5592 $as_echo_n "checking size of long... " >&6; }
5593 if test "${ac_cv_sizeof_long+set}" = set; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5597
5598 else
5599   if test "$ac_cv_type_long" = yes; then
5600      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 { as_fn_set_status 77
5603 as_fn_error "cannot compute sizeof (long)
5604 See \`config.log' for more details." "$LINENO" 5; }; }
5605    else
5606      ac_cv_sizeof_long=0
5607    fi
5608 fi
5609
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5612 $as_echo "$ac_cv_sizeof_long" >&6; }
5613
5614
5615
5616 cat >>confdefs.h <<_ACEOF
5617 #define SIZEOF_LONG $ac_cv_sizeof_long
5618 _ACEOF
5619
5620
5621 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5622 if test "x$ac_cv_type_long_long" = x""yes; then :
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_LONG_LONG 1
5626 _ACEOF
5627
5628 # The cast to long int works around a bug in the HP C Compiler
5629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5631 # This bug is HP SR number 8606223364.
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5633 $as_echo_n "checking size of long long... " >&6; }
5634 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5638
5639 else
5640   if test "$ac_cv_type_long_long" = yes; then
5641      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 { as_fn_set_status 77
5644 as_fn_error "cannot compute sizeof (long long)
5645 See \`config.log' for more details." "$LINENO" 5; }; }
5646    else
5647      ac_cv_sizeof_long_long=0
5648    fi
5649 fi
5650
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5653 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5654
5655
5656
5657 cat >>confdefs.h <<_ACEOF
5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5659 _ACEOF
5660
5661
5662 fi
5663
5664 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5665 if test "x$ac_cv_type___int64" = x""yes; then :
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5669 _ACEOF
5670
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5676 $as_echo_n "checking size of __int64... " >&6; }
5677 if test "${ac_cv_sizeof___int64+set}" = set; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5681
5682 else
5683   if test "$ac_cv_type___int64" = yes; then
5684      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 { as_fn_set_status 77
5687 as_fn_error "cannot compute sizeof (__int64)
5688 See \`config.log' for more details." "$LINENO" 5; }; }
5689    else
5690      ac_cv_sizeof___int64=0
5691    fi
5692 fi
5693
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5696 $as_echo "$ac_cv_sizeof___int64" >&6; }
5697
5698
5699
5700 cat >>confdefs.h <<_ACEOF
5701 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5702 _ACEOF
5703
5704
5705 fi
5706
5707 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5708 case $ac_cv_c_int8_t in #(
5709   no|yes) ;; #(
5710   *)
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define int8_t $ac_cv_c_int8_t
5714 _ACEOF
5715 ;;
5716 esac
5717
5718 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5719 case $ac_cv_c_int16_t in #(
5720   no|yes) ;; #(
5721   *)
5722
5723 cat >>confdefs.h <<_ACEOF
5724 #define int16_t $ac_cv_c_int16_t
5725 _ACEOF
5726 ;;
5727 esac
5728
5729 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5730 case $ac_cv_c_int32_t in #(
5731   no|yes) ;; #(
5732   *)
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define int32_t $ac_cv_c_int32_t
5736 _ACEOF
5737 ;;
5738 esac
5739
5740 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5741 case $ac_cv_c_int64_t in #(
5742   no|yes) ;; #(
5743   *)
5744
5745 cat >>confdefs.h <<_ACEOF
5746 #define int64_t $ac_cv_c_int64_t
5747 _ACEOF
5748 ;;
5749 esac
5750
5751
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5753 $as_echo_n "checking for long long int... " >&6; }
5754 if test "${ac_cv_type_long_long_int+set}" = set; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h.  */
5759
5760   /* For now, do not test the preprocessor; as of 2007 there are too many
5761          implementations with broken preprocessors.  Perhaps this can
5762          be revisited in 2012.  In the meantime, code should not expect
5763          #if to work with literals wider than 32 bits.  */
5764       /* Test literals.  */
5765       long long int ll = 9223372036854775807ll;
5766       long long int nll = -9223372036854775807LL;
5767       unsigned long long int ull = 18446744073709551615ULL;
5768       /* Test constant expressions.   */
5769       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5770                      ? 1 : -1)];
5771       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5772                      ? 1 : -1)];
5773       int i = 63;
5774 int
5775 main ()
5776 {
5777 /* Test availability of runtime routines for shift and division.  */
5778       long long int llmax = 9223372036854775807ll;
5779       unsigned long long int ullmax = 18446744073709551615ull;
5780       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5781               | (llmax / ll) | (llmax % ll)
5782               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5783               | (ullmax / ull) | (ullmax % ull));
5784   ;
5785   return 0;
5786 }
5787
5788 _ACEOF
5789 if ac_fn_c_try_link "$LINENO"; then :
5790                         if test "$cross_compiling" = yes; then :
5791   ac_cv_type_long_long_int=yes
5792 else
5793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h.  */
5795 #include <limits.h>
5796                #ifndef LLONG_MAX
5797                # define HALF \
5798                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5799                # define LLONG_MAX (HALF - 1 + HALF)
5800                #endif
5801 int
5802 main ()
5803 {
5804 long long int n = 1;
5805                int i;
5806                for (i = 0; ; i++)
5807                  {
5808                    long long int m = n << i;
5809                    if (m >> i != n)
5810                      return 1;
5811                    if (LLONG_MAX / 2 < m)
5812                      break;
5813                  }
5814                return 0;
5815   ;
5816   return 0;
5817 }
5818 _ACEOF
5819 if ac_fn_c_try_run "$LINENO"; then :
5820   ac_cv_type_long_long_int=yes
5821 else
5822   ac_cv_type_long_long_int=no
5823 fi
5824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5825   conftest.$ac_objext conftest.beam conftest.$ac_ext
5826 fi
5827
5828 else
5829   ac_cv_type_long_long_int=no
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext \
5832     conftest$ac_exeext conftest.$ac_ext
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5835 $as_echo "$ac_cv_type_long_long_int" >&6; }
5836   if test $ac_cv_type_long_long_int = yes; then
5837
5838 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5839
5840   fi
5841
5842
5843
5844   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5845 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5846
5847 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5848
5849 else
5850   test $ac_cv_type_long_long_int = yes \
5851        && ac_type='long long int' \
5852        || ac_type='long int'
5853
5854 cat >>confdefs.h <<_ACEOF
5855 #define intmax_t $ac_type
5856 _ACEOF
5857
5858 fi
5859
5860
5861
5862   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5863 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5864
5865 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5866
5867 else
5868   for ac_type in 'int' 'long int' 'long long int'; do
5869        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h.  */
5871 $ac_includes_default
5872 int
5873 main ()
5874 {
5875 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5876 test_array [0] = 0
5877
5878   ;
5879   return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883
5884 cat >>confdefs.h <<_ACEOF
5885 #define intptr_t $ac_type
5886 _ACEOF
5887
5888           ac_type=
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891        test -z "$ac_type" && break
5892      done
5893 fi
5894
5895
5896 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5897 case $ac_cv_c_uint8_t in #(
5898   no|yes) ;; #(
5899   *)
5900
5901 $as_echo "#define _UINT8_T 1" >>confdefs.h
5902
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define uint8_t $ac_cv_c_uint8_t
5906 _ACEOF
5907 ;;
5908   esac
5909
5910 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5911 case $ac_cv_c_uint16_t in #(
5912   no|yes) ;; #(
5913   *)
5914
5915
5916 cat >>confdefs.h <<_ACEOF
5917 #define uint16_t $ac_cv_c_uint16_t
5918 _ACEOF
5919 ;;
5920   esac
5921
5922 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5923 case $ac_cv_c_uint32_t in #(
5924   no|yes) ;; #(
5925   *)
5926
5927 $as_echo "#define _UINT32_T 1" >>confdefs.h
5928
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define uint32_t $ac_cv_c_uint32_t
5932 _ACEOF
5933 ;;
5934   esac
5935
5936 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5937 case $ac_cv_c_uint64_t in #(
5938   no|yes) ;; #(
5939   *)
5940
5941 $as_echo "#define _UINT64_T 1" >>confdefs.h
5942
5943
5944 cat >>confdefs.h <<_ACEOF
5945 #define uint64_t $ac_cv_c_uint64_t
5946 _ACEOF
5947 ;;
5948   esac
5949
5950
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5952 $as_echo_n "checking for unsigned long long int... " >&6; }
5953 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h.  */
5958
5959   /* For now, do not test the preprocessor; as of 2007 there are too many
5960          implementations with broken preprocessors.  Perhaps this can
5961          be revisited in 2012.  In the meantime, code should not expect
5962          #if to work with literals wider than 32 bits.  */
5963       /* Test literals.  */
5964       long long int ll = 9223372036854775807ll;
5965       long long int nll = -9223372036854775807LL;
5966       unsigned long long int ull = 18446744073709551615ULL;
5967       /* Test constant expressions.   */
5968       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5969                      ? 1 : -1)];
5970       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5971                      ? 1 : -1)];
5972       int i = 63;
5973 int
5974 main ()
5975 {
5976 /* Test availability of runtime routines for shift and division.  */
5977       long long int llmax = 9223372036854775807ll;
5978       unsigned long long int ullmax = 18446744073709551615ull;
5979       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5980               | (llmax / ll) | (llmax % ll)
5981               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5982               | (ullmax / ull) | (ullmax % ull));
5983   ;
5984   return 0;
5985 }
5986
5987 _ACEOF
5988 if ac_fn_c_try_link "$LINENO"; then :
5989   ac_cv_type_unsigned_long_long_int=yes
5990 else
5991   ac_cv_type_unsigned_long_long_int=no
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext \
5994     conftest$ac_exeext conftest.$ac_ext
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5997 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5998   if test $ac_cv_type_unsigned_long_long_int = yes; then
5999
6000 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6001
6002   fi
6003
6004
6005
6006   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6008
6009 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6010
6011 else
6012   test $ac_cv_type_unsigned_long_long_int = yes \
6013        && ac_type='unsigned long long int' \
6014        || ac_type='unsigned long int'
6015
6016 cat >>confdefs.h <<_ACEOF
6017 #define uintmax_t $ac_type
6018 _ACEOF
6019
6020 fi
6021
6022
6023
6024   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6026
6027 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6028
6029 else
6030   for ac_type in 'unsigned int' 'unsigned long int' \
6031         'unsigned long long int'; do
6032        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h.  */
6034 $ac_includes_default
6035 int
6036 main ()
6037 {
6038 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6039 test_array [0] = 0
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define uintptr_t $ac_type
6049 _ACEOF
6050
6051           ac_type=
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054        test -z "$ac_type" && break
6055      done
6056 fi
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 # ---------------------
6073 # Warnings and checking
6074 # ---------------------
6075
6076 # Check $CC warning features (if it's GCC).
6077 # We want to use -pedantic, but we don't want warnings about
6078 # * 'long long'
6079 # * variadic macros
6080 # * overlong strings
6081 # So, we only use -pedantic if we can disable those warnings.
6082
6083 loose_warn=
6084 save_CFLAGS="$CFLAGS"
6085 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6086   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6087
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6089 $as_echo_n "checking whether $CC supports $option... " >&6; }
6090 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6091   $as_echo_n "(cached) " >&6
6092 else
6093   CFLAGS="$option"
6094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h.  */
6096
6097 int
6098 main ()
6099 {
6100
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106   eval "$as_acx_Woption=yes"
6107 else
6108   eval "$as_acx_Woption=no"
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111
6112 fi
6113 eval ac_res=\$$as_acx_Woption
6114                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6115 $as_echo "$ac_res" >&6; }
6116   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6117   loose_warn="$loose_warn${loose_warn:+ }$option"
6118 fi
6119   done
6120 CFLAGS="$save_CFLAGS"
6121
6122 c_loose_warn=
6123 save_CFLAGS="$CFLAGS"
6124 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6125   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6126
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6128 $as_echo_n "checking whether $CC supports $option... " >&6; }
6129 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   CFLAGS="$option"
6133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h.  */
6135
6136 int
6137 main ()
6138 {
6139
6140   ;
6141   return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145   eval "$as_acx_Woption=yes"
6146 else
6147   eval "$as_acx_Woption=no"
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150
6151 fi
6152 eval ac_res=\$$as_acx_Woption
6153                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6154 $as_echo "$ac_res" >&6; }
6155   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6156   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6157 fi
6158   done
6159 CFLAGS="$save_CFLAGS"
6160
6161 strict_warn=
6162 save_CFLAGS="$CFLAGS"
6163 for option in -Wmissing-format-attribute; do
6164   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6165
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6167 $as_echo_n "checking whether $CC supports $option... " >&6; }
6168 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   CFLAGS="$option"
6172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h.  */
6174
6175 int
6176 main ()
6177 {
6178
6179   ;
6180   return 0;
6181 }
6182 _ACEOF
6183 if ac_fn_c_try_compile "$LINENO"; then :
6184   eval "$as_acx_Woption=yes"
6185 else
6186   eval "$as_acx_Woption=no"
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189
6190 fi
6191 eval ac_res=\$$as_acx_Woption
6192                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6193 $as_echo "$ac_res" >&6; }
6194   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6195   strict_warn="$strict_warn${strict_warn:+ }$option"
6196 fi
6197   done
6198 CFLAGS="$save_CFLAGS"
6199
6200 c_strict_warn=
6201 save_CFLAGS="$CFLAGS"
6202 for option in -Wold-style-definition -Wc++-compat; do
6203   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6204
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6206 $as_echo_n "checking whether $CC supports $option... " >&6; }
6207 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   CFLAGS="$option"
6211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h.  */
6213
6214 int
6215 main ()
6216 {
6217
6218   ;
6219   return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223   eval "$as_acx_Woption=yes"
6224 else
6225   eval "$as_acx_Woption=no"
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228
6229 fi
6230 eval ac_res=\$$as_acx_Woption
6231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6234   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6235 fi
6236   done
6237 CFLAGS="$save_CFLAGS"
6238
6239 if test "$GCC" = yes; then :
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6241 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6242 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   save_CFLAGS="$CFLAGS"
6246 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h.  */
6249
6250 int
6251 main ()
6252 {
6253
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6260 else
6261   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 CFLAGS="$save_CFLAGS"
6265 fi
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6267 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6268 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6269   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6270 fi
6271
6272 fi
6273
6274 # Check whether --enable-werror-always was given.
6275 if test "${enable_werror_always+set}" = set; then :
6276   enableval=$enable_werror_always;
6277 else
6278   enable_werror_always=no
6279 fi
6280
6281 if test $enable_werror_always = yes; then :
6282   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6283 fi
6284
6285
6286
6287 # The above macros do nothing if the compiler is not GCC.  However, the
6288 # Makefile has more goo to add other flags, so these variables are used
6289 # to enable warnings only for GCC.
6290 warn_cflags=
6291 warn_cxxflags=
6292 if test "x$GCC" = "xyes"; then
6293   warn_cflags='$(GCC_WARN_CFLAGS)'
6294   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6295 fi
6296
6297
6298
6299 # Enable expensive internal checks
6300 is_release=
6301 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6302   is_release=yes
6303 fi
6304
6305 # Check whether --enable-checking was given.
6306 if test "${enable_checking+set}" = set; then :
6307   enableval=$enable_checking; ac_checking_flags="${enableval}"
6308 else
6309
6310 # Determine the default checks.
6311 if test x$is_release = x ; then
6312   ac_checking_flags=yes
6313 else
6314   ac_checking_flags=release
6315 fi
6316 fi
6317
6318 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6319 for check in release $ac_checking_flags
6320 do
6321         case $check in
6322         # these set all the flags to specific states
6323         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6324                         ac_fold_checking= ; ac_gc_checking=1 ;
6325                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6326                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6327                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6328                         ac_types_checking=1 ;;
6329         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6330                         ac_fold_checking= ; ac_gc_checking= ;
6331                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6332                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6333                         ac_tree_checking= ; ac_valgrind_checking= ;
6334                         ac_types_checking= ;;
6335         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6336                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6337                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6338                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6339                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6340                         ac_types_checking=1 ;;
6341         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6342                         ac_fold_checking= ; ac_gc_checking= ;
6343                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6344                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6345                         ac_tree_checking= ; ac_valgrind_checking= ;
6346                         ac_types_checking= ;;
6347         # these enable particular checks
6348         assert)         ac_assert_checking=1 ;;
6349         df)             ac_df_checking=1 ;;
6350         fold)           ac_fold_checking=1 ;;
6351         gc)             ac_gc_checking=1 ;;
6352         gcac)           ac_gc_always_collect=1 ;;
6353         gimple)         ac_gimple_checking=1 ;;
6354         misc)           ac_checking=1 ;;
6355         rtl)            ac_rtl_checking=1 ;;
6356         rtlflag)        ac_rtlflag_checking=1 ;;
6357         runtime)        ac_runtime_checking=1 ;;
6358         tree)           ac_tree_checking=1 ;;
6359         types)          ac_types_checking=1 ;;
6360         valgrind)       ac_valgrind_checking=1 ;;
6361         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6362         esac
6363 done
6364 IFS="$ac_save_IFS"
6365
6366 nocommon_flag=""
6367 if test x$ac_checking != x ; then
6368
6369 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6370
6371   nocommon_flag=-fno-common
6372 fi
6373
6374 if test x$ac_df_checking != x ; then
6375
6376 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6377
6378 fi
6379 if test x$ac_assert_checking != x ; then
6380
6381 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6382
6383 fi
6384 if test x$ac_gimple_checking != x ; then
6385
6386 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6387
6388 fi
6389
6390 if test x$ac_runtime_checking != x ; then
6391
6392 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6393
6394 fi
6395 if test x$ac_tree_checking != x ; then
6396
6397 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6398
6399   TREEBROWSER=tree-browser.o
6400 fi
6401 if test x$ac_types_checking != x ; then
6402
6403 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6404
6405 fi
6406
6407 if test x$ac_rtl_checking != x ; then
6408
6409 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6410
6411 fi
6412 if test x$ac_rtlflag_checking != x ; then
6413
6414 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6415
6416 fi
6417 if test x$ac_gc_checking != x ; then
6418
6419 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6420
6421 fi
6422 if test x$ac_gc_always_collect != x ; then
6423
6424 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6425
6426 fi
6427 if test x$ac_fold_checking != x ; then
6428
6429 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6430
6431 fi
6432 valgrind_path_defines=
6433 valgrind_command=
6434
6435 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6436 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6437   have_valgrind_h=yes
6438 else
6439   have_valgrind_h=no
6440 fi
6441
6442
6443
6444 if test x$ac_valgrind_checking != x ; then
6445   # It is certainly possible that there's valgrind but no valgrind.h.
6446   # GCC relies on making annotations so we must have both.
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6448 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h.  */
6451 #include <valgrind/memcheck.h>
6452 #ifndef VALGRIND_DISCARD
6453 #error VALGRIND_DISCARD not defined
6454 #endif
6455 _ACEOF
6456 if ac_fn_c_try_cpp "$LINENO"; then :
6457   gcc_cv_header_valgrind_memcheck_h=yes
6458 else
6459   gcc_cv_header_valgrind_memcheck_h=no
6460 fi
6461 rm -f conftest.err conftest.$ac_ext
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6463 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6465 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h.  */
6468 #include <memcheck.h>
6469 #ifndef VALGRIND_DISCARD
6470 #error VALGRIND_DISCARD not defined
6471 #endif
6472 _ACEOF
6473 if ac_fn_c_try_cpp "$LINENO"; then :
6474   gcc_cv_header_memcheck_h=yes
6475 else
6476   gcc_cv_header_memcheck_h=no
6477 fi
6478 rm -f conftest.err conftest.$ac_ext
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6480 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6481
6482 # Prepare PATH_SEPARATOR.
6483 # The user is always right.
6484 if test "${PATH_SEPARATOR+set}" != set; then
6485   echo "#! /bin/sh" >conf$$.sh
6486   echo  "exit 0"   >>conf$$.sh
6487   chmod +x conf$$.sh
6488   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6489     PATH_SEPARATOR=';'
6490   else
6491     PATH_SEPARATOR=:
6492   fi
6493   rm -f conf$$.sh
6494 fi
6495
6496 # Find out how to test for executable files. Don't use a zero-byte file,
6497 # as systems may use methods other than mode bits to determine executability.
6498 cat >conf$$.file <<_ASEOF
6499 #! /bin/sh
6500 exit 0
6501 _ASEOF
6502 chmod +x conf$$.file
6503 if test -x conf$$.file >/dev/null 2>&1; then
6504   ac_executable_p="test -x"
6505 else
6506   ac_executable_p="test -f"
6507 fi
6508 rm -f conf$$.file
6509
6510 # Extract the first word of "valgrind", so it can be a program name with args.
6511 set dummy valgrind; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   case "$valgrind_path" in
6518   [\\/]* | ?:[\\/]*)
6519     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6520     ;;
6521   *)
6522     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6523     for ac_dir in $PATH; do
6524       IFS="$ac_save_IFS"
6525       test -z "$ac_dir" && ac_dir=.
6526       for ac_exec_ext in '' $ac_executable_extensions; do
6527         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6528           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6529             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6530             break 2
6531           fi
6532         fi
6533       done
6534     done
6535     IFS="$ac_save_IFS"
6536     ;;
6537 esac
6538 fi
6539 valgrind_path="$ac_cv_path_valgrind_path"
6540 if test -n "$valgrind_path"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6542 $as_echo "$valgrind_path" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548   if test "x$valgrind_path" = "x" \
6549     || (test $have_valgrind_h = no \
6550         && test $gcc_cv_header_memcheck_h = no \
6551         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6552         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6553   fi
6554   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6555   valgrind_command="$valgrind_path -q"
6556
6557 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6558
6559   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6560
6561 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6562
6563   fi
6564   if test $gcc_cv_header_memcheck_h = yes; then
6565
6566 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6567
6568   fi
6569 fi
6570
6571
6572
6573 # Enable code coverage collection
6574 # Check whether --enable-coverage was given.
6575 if test "${enable_coverage+set}" = set; then :
6576   enableval=$enable_coverage; case "${enableval}" in
6577   yes|noopt)
6578     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6579     ;;
6580   opt)
6581     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6582     ;;
6583   no)
6584     # a.k.a. --disable-coverage
6585     coverage_flags=""
6586     ;;
6587   *)
6588     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6589     ;;
6590 esac
6591 else
6592   coverage_flags=""
6593 fi
6594
6595
6596
6597 # Check whether --enable-gather-detailed-mem-stats was given.
6598 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6599   enableval=$enable_gather_detailed_mem_stats;
6600 else
6601   enable_gather_detailed_mem_stats=no
6602 fi
6603
6604 if test x$enable_gather_detailed_mem_stats = xyes ; then
6605
6606 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6607
6608 fi
6609
6610 # -------------------------------
6611 # Miscenalleous configure options
6612 # -------------------------------
6613
6614 # See if we are building gcc with C++.
6615 # Check whether --enable-build-with-cxx was given.
6616 if test "${enable_build_with_cxx+set}" = set; then :
6617   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6618 else
6619   ENABLE_BUILD_WITH_CXX=no
6620 fi
6621
6622
6623
6624 # With stabs
6625
6626 # Check whether --with-stabs was given.
6627 if test "${with_stabs+set}" = set; then :
6628   withval=$with_stabs; stabs="$with_stabs"
6629 else
6630   stabs=no
6631 fi
6632
6633
6634 # Determine whether or not multilibs are enabled.
6635 # Check whether --enable-multilib was given.
6636 if test "${enable_multilib+set}" = set; then :
6637   enableval=$enable_multilib;
6638 else
6639   enable_multilib=yes
6640 fi
6641
6642
6643
6644 # Enable __cxa_atexit for C++.
6645 # Check whether --enable-__cxa_atexit was given.
6646 if test "${enable___cxa_atexit+set}" = set; then :
6647   enableval=$enable___cxa_atexit;
6648 fi
6649
6650
6651 # Enable C extension for decimal float if target supports it.
6652 # Check whether --enable-decimal-float was given.
6653 if test "${enable_decimal_float+set}" = set; then :
6654   enableval=$enable_decimal_float;
6655   case $enable_decimal_float in
6656     yes | no | bid | dpd) ;;
6657     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6658 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6659   esac
6660
6661 else
6662
6663   case $target in
6664     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6665       enable_decimal_float=yes
6666       ;;
6667     *)
6668       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6669 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6670       enable_decimal_float=no
6671       ;;
6672   esac
6673
6674 fi
6675
6676
6677 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6678
6679 cat >>confdefs.h <<_ACEOF
6680 #define ENABLE_DECIMAL_FLOAT $dfp
6681 _ACEOF
6682
6683
6684 # x86's use BID format instead of DPD
6685 case x$enable_decimal_float in
6686   xyes)
6687     case $target in
6688       i?86*-*-linux* | x86_64*-*-linux*)
6689         enable_decimal_float=bid
6690         ;;
6691       *)
6692         enable_decimal_float=dpd
6693         ;;
6694     esac
6695     ;;
6696   xno)
6697     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6698     # dependency on libdecnumber.
6699     enable_decimal_float=dpd
6700     ;;
6701 esac
6702
6703
6704 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6705
6706 cat >>confdefs.h <<_ACEOF
6707 #define ENABLE_DECIMAL_BID_FORMAT $bid
6708 _ACEOF
6709
6710
6711 # Enable C extension for fixed-point arithmetic.
6712 # Check whether --enable-fixed-point was given.
6713 if test "${enable_fixed_point+set}" = set; then :
6714   enableval=$enable_fixed_point;
6715
6716 else
6717
6718   case $target in
6719     mips*-*-*)
6720       case $host in
6721         mips*-sgi-irix*)
6722           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6723 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6724           enable_fixed_point=no
6725           ;;
6726         *)
6727           enable_fixed_point=yes
6728           ;;
6729       esac
6730       ;;
6731     *)
6732       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6733 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6734       enable_fixed_point=no
6735       ;;
6736   esac
6737
6738 fi
6739
6740
6741
6742 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6743
6744 cat >>confdefs.h <<_ACEOF
6745 #define ENABLE_FIXED_POINT $fixedpoint
6746 _ACEOF
6747
6748
6749 # Enable threads
6750 # Pass with no value to take the default
6751 # Pass with a value to specify a thread package
6752 # Check whether --enable-threads was given.
6753 if test "${enable_threads+set}" = set; then :
6754   enableval=$enable_threads;
6755 else
6756   enable_threads=''
6757 fi
6758
6759
6760 # Check whether --enable-tls was given.
6761 if test "${enable_tls+set}" = set; then :
6762   enableval=$enable_tls;
6763   case $enable_tls in
6764     yes | no) ;;
6765     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6766 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6767   esac
6768
6769 else
6770   enable_tls=''
6771 fi
6772
6773
6774 # Check whether --enable-objc-gc was given.
6775 if test "${enable_objc_gc+set}" = set; then :
6776   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6777         objc_boehm_gc=''
6778 else
6779         objc_boehm_gc=1
6780 fi
6781 else
6782   objc_boehm_gc=''
6783 fi
6784
6785
6786
6787 # Check whether --with-dwarf2 was given.
6788 if test "${with_dwarf2+set}" = set; then :
6789   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6790 else
6791   dwarf2=no
6792 fi
6793
6794
6795 # Check whether --enable-shared was given.
6796 if test "${enable_shared+set}" = set; then :
6797   enableval=$enable_shared;
6798   case $enable_shared in
6799   yes | no) ;;
6800   *)
6801     enable_shared=no
6802     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6803     for pkg in $enableval; do
6804       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6805         enable_shared=yes
6806       fi
6807     done
6808     IFS="$ac_save_ifs"
6809     ;;
6810   esac
6811
6812 else
6813   enable_shared=yes
6814 fi
6815
6816
6817
6818
6819 # Check whether --with-build-sysroot was given.
6820 if test "${with_build_sysroot+set}" = set; then :
6821   withval=$with_build_sysroot;
6822 fi
6823
6824
6825
6826 # Check whether --with-sysroot was given.
6827 if test "${with_sysroot+set}" = set; then :
6828   withval=$with_sysroot;
6829  case ${with_sysroot} in
6830  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6831  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6832  esac
6833
6834  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6835  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6836
6837  if test "x$prefix" = xNONE; then
6838   test_prefix=/usr/local
6839  else
6840   test_prefix=$prefix
6841  fi
6842  if test "x$exec_prefix" = xNONE; then
6843   test_exec_prefix=$test_prefix
6844  else
6845   test_exec_prefix=$exec_prefix
6846  fi
6847  case ${TARGET_SYSTEM_ROOT} in
6848  "${test_prefix}"|"${test_prefix}/"*|\
6849  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6850  '${prefix}'|'${prefix}/'*|\
6851  '${exec_prefix}'|'${exec_prefix}/'*)
6852    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6853    TARGET_SYSTEM_ROOT_DEFINE="$t"
6854    ;;
6855  esac
6856
6857 else
6858
6859  TARGET_SYSTEM_ROOT=
6860  TARGET_SYSTEM_ROOT_DEFINE=
6861  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6862
6863 fi
6864
6865
6866
6867
6868
6869
6870 # Check whether --with-specs was given.
6871 if test "${with_specs+set}" = set; then :
6872   withval=$with_specs; CONFIGURE_SPECS=$withval
6873 else
6874   CONFIGURE_SPECS=
6875
6876 fi
6877
6878
6879
6880 # Build with intermodule optimisations
6881 # Check whether --enable-intermodule was given.
6882 if test "${enable_intermodule+set}" = set; then :
6883   enableval=$enable_intermodule; case ${enable_intermodule} in
6884   yes) onestep="-onestep";;
6885   *) onestep="";;
6886 esac
6887 else
6888   onestep=""
6889 fi
6890
6891
6892
6893
6894
6895 # Check whether --with-pkgversion was given.
6896 if test "${with_pkgversion+set}" = set; then :
6897   withval=$with_pkgversion; case "$withval" in
6898       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6899       no)  PKGVERSION= ;;
6900       *)   PKGVERSION="($withval) " ;;
6901      esac
6902 else
6903   PKGVERSION="(GCC) "
6904
6905 fi
6906
6907
6908
6909
6910
6911 # Check whether --with-bugurl was given.
6912 if test "${with_bugurl+set}" = set; then :
6913   withval=$with_bugurl; case "$withval" in
6914       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6915       no)  BUGURL=
6916            ;;
6917       *)   BUGURL="$withval"
6918            ;;
6919      esac
6920 else
6921   BUGURL="http://gcc.gnu.org/bugs.html"
6922
6923 fi
6924
6925   case ${BUGURL} in
6926   "")
6927     REPORT_BUGS_TO=
6928     REPORT_BUGS_TEXI=
6929     ;;
6930   *)
6931     REPORT_BUGS_TO="<$BUGURL>"
6932     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6933     ;;
6934   esac;
6935
6936
6937
6938
6939 # Sanity check enable_languages in case someone does not run the toplevel
6940 # configure # script.
6941 # Check whether --enable-languages was given.
6942 if test "${enable_languages+set}" = set; then :
6943   enableval=$enable_languages; case ,${enable_languages}, in
6944        ,,|,yes,)
6945                 # go safe -- we cannot be much sure without the toplevel
6946                 # configure's
6947                 # analysis of which target libs are present and usable
6948                 enable_languages=c
6949                 ;;
6950          *,all,*)
6951                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6952                 ;;
6953         *,c,*)
6954                 ;;
6955         *)
6956                 enable_languages=c,${enable_languages}
6957                 ;;
6958 esac
6959 else
6960   enable_languages=c
6961 fi
6962
6963
6964
6965 # Check whether --with-multilib-list was given.
6966 if test "${with_multilib_list+set}" = set; then :
6967   withval=$with_multilib_list; :
6968 else
6969   with_multilib_list=default
6970 fi
6971
6972
6973 # -------------------------
6974 # Checks for other programs
6975 # -------------------------
6976
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6978 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6979 set x ${MAKE-make}
6980 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6981 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984   cat >conftest.make <<\_ACEOF
6985 SHELL = /bin/sh
6986 all:
6987         @echo '@@@%%%=$(MAKE)=@@@%%%'
6988 _ACEOF
6989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6991   *@@@%%%=?*=@@@%%%*)
6992     eval ac_cv_prog_make_${ac_make}_set=yes;;
6993   *)
6994     eval ac_cv_prog_make_${ac_make}_set=no;;
6995 esac
6996 rm -f conftest.make
6997 fi
6998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7000 $as_echo "yes" >&6; }
7001   SET_MAKE=
7002 else
7003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005   SET_MAKE="MAKE=${MAKE-make}"
7006 fi
7007
7008
7009 # Find some useful tools
7010 for ac_prog in gawk mawk nawk awk
7011 do
7012   # Extract the first word of "$ac_prog", so it can be a program name with args.
7013 set dummy $ac_prog; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if test "${ac_cv_prog_AWK+set}" = set; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   if test -n "$AWK"; then
7020   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027     for ac_exec_ext in '' $ac_executable_extensions; do
7028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029     ac_cv_prog_AWK="$ac_prog"
7030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034   done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 AWK=$ac_cv_prog_AWK
7040 if test -n "$AWK"; then
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7042 $as_echo "$AWK" >&6; }
7043 else
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048
7049   test -n "$AWK" && break
7050 done
7051
7052 # We need awk to create options.c and options.h.
7053 # Bail out if it's missing.
7054 case ${AWK} in
7055   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7056 esac
7057
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7059 $as_echo_n "checking whether ln -s works... " >&6; }
7060 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   rm -f conftestdata_t
7064 echo >conftestdata_f
7065 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7066 then
7067   gcc_cv_prog_LN_S="ln -s"
7068 else
7069   if ln conftestdata_f conftestdata_t 2>/dev/null
7070   then
7071     gcc_cv_prog_LN_S=ln
7072   else
7073     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7074     then
7075       gcc_cv_prog_LN_S="cp -p"
7076     else
7077       gcc_cv_prog_LN_S=cp
7078     fi
7079   fi
7080 fi
7081 rm -f conftestdata_f conftestdata_t
7082
7083 fi
7084 LN_S="$gcc_cv_prog_LN_S"
7085 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7087 $as_echo "yes" >&6; }
7088 else
7089   if test "$gcc_cv_prog_LN_S" = "ln"; then
7090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7091 $as_echo "no, using ln" >&6; }
7092   else
7093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7094 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7095   fi
7096 fi
7097
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7099 $as_echo_n "checking whether ln works... " >&6; }
7100 if test "${acx_cv_prog_LN+set}" = set; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   rm -f conftestdata_t
7104 echo >conftestdata_f
7105 if ln conftestdata_f conftestdata_t 2>/dev/null
7106 then
7107   acx_cv_prog_LN=ln
7108 else
7109   acx_cv_prog_LN=no
7110 fi
7111 rm -f conftestdata_f conftestdata_t
7112
7113 fi
7114 if test $acx_cv_prog_LN = no; then
7115   LN="$LN_S"
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7117 $as_echo "no, using $LN" >&6; }
7118 else
7119   LN="$acx_cv_prog_LN"
7120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7121 $as_echo "yes" >&6; }
7122 fi
7123
7124 if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -n "$RANLIB"; then
7133   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140     for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147   done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 RANLIB=$ac_cv_prog_RANLIB
7153 if test -n "$RANLIB"; then
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7155 $as_echo "$RANLIB" >&6; }
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_RANLIB"; then
7164   ac_ct_RANLIB=$RANLIB
7165   # Extract the first word of "ranlib", so it can be a program name with args.
7166 set dummy ranlib; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7170   $as_echo_n "(cached) " >&6
7171 else
7172   if test -n "$ac_ct_RANLIB"; then
7173   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180     for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_prog_ac_ct_RANLIB="ranlib"
7183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187   done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7193 if test -n "$ac_ct_RANLIB"; then
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7195 $as_echo "$ac_ct_RANLIB" >&6; }
7196 else
7197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201   if test "x$ac_ct_RANLIB" = x; then
7202     RANLIB=":"
7203   else
7204     case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7209 esac
7210     RANLIB=$ac_ct_RANLIB
7211   fi
7212 else
7213   RANLIB="$ac_cv_prog_RANLIB"
7214 fi
7215
7216 case "${host}" in
7217 *-*-darwin*)
7218   # By default, the Darwin ranlib will not treat common symbols as
7219   # definitions when  building the archive table of contents.  Other
7220   # ranlibs do that; pass an option to the Darwin ranlib that makes
7221   # it behave similarly.
7222   ranlib_flags="-c"
7223   ;;
7224 *)
7225   ranlib_flags=""
7226 esac
7227
7228
7229 # Find a good install program.  We prefer a C program (faster),
7230 # so one script is as good as another.  But avoid the broken or
7231 # incompatible versions:
7232 # SysV /etc/install, /usr/sbin/install
7233 # SunOS /usr/etc/install
7234 # IRIX /sbin/install
7235 # AIX /bin/install
7236 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7237 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7238 # ./install, which can be erroneously created by make from ./install.sh.
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7240 $as_echo_n "checking for a BSD compatible install... " >&6; }
7241 if test -z "$INSTALL"; then
7242 if test "${ac_cv_path_install+set}" = set; then :
7243   $as_echo_n "(cached) " >&6
7244 else
7245     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7246   for ac_dir in $PATH; do
7247     # Account for people who put trailing slashes in PATH elements.
7248     case "$ac_dir/" in
7249     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7250     *)
7251       # OSF1 and SCO ODT 3.0 have their own names for install.
7252       for ac_prog in ginstall scoinst install; do
7253         if test -f $ac_dir/$ac_prog; then
7254           if test $ac_prog = install &&
7255             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7256             # AIX install.  It has an incompatible calling convention.
7257             # OSF/1 installbsd also uses dspmsg, but is usable.
7258             :
7259           else
7260             ac_cv_path_install="$ac_dir/$ac_prog -c"
7261             break 2
7262           fi
7263         fi
7264       done
7265       ;;
7266     esac
7267   done
7268   IFS="$ac_save_IFS"
7269
7270 fi
7271   if test "${ac_cv_path_install+set}" = set; then
7272     INSTALL="$ac_cv_path_install"
7273   else
7274     # As a last resort, use the slow shell script.  We don't cache a
7275     # path for INSTALL within a source directory, because that will
7276     # break other packages using the cache if that directory is
7277     # removed, or if the path is relative.
7278     INSTALL="$ac_install_sh"
7279   fi
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7282 $as_echo "$INSTALL" >&6; }
7283
7284 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7285 # It thinks the first close brace ends the variable substitution.
7286 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7287
7288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7289
7290
7291 # See if cmp has --ignore-initial.
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7293 $as_echo_n "checking for cmp's capabilities... " >&6; }
7294 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7295   $as_echo_n "(cached) " >&6
7296 else
7297    echo abfoo >t1
7298   echo cdfoo >t2
7299   gcc_cv_prog_cmp_skip=slowcompare
7300   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7301     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7302       :
7303     else
7304       gcc_cv_prog_cmp_skip=gnucompare
7305     fi
7306   fi
7307   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7308     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7309       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7310         :
7311       else
7312         gcc_cv_prog_cmp_skip=fastcompare
7313       fi
7314     fi
7315   fi
7316   rm t1 t2
7317
7318 fi
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7320 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7321 make_compare_target=$gcc_cv_prog_cmp_skip
7322
7323
7324
7325 # See if we have the mktemp command.
7326 # Extract the first word of "mktemp", so it can be a program name with args.
7327 set dummy mktemp; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7331   $as_echo_n "(cached) " >&6
7332 else
7333   if test -n "$have_mktemp_command"; then
7334   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341     for ac_exec_ext in '' $ac_executable_extensions; do
7342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343     ac_cv_prog_have_mktemp_command="yes"
7344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348   done
7349 IFS=$as_save_IFS
7350
7351   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7352 fi
7353 fi
7354 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7355 if test -n "$have_mktemp_command"; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7357 $as_echo "$have_mktemp_command" >&6; }
7358 else
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363
7364
7365 # See if makeinfo has been installed and is modern enough
7366 # that we can use it.
7367
7368   # Extract the first word of "makeinfo", so it can be a program name with args.
7369 set dummy makeinfo; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7373   $as_echo_n "(cached) " >&6
7374 else
7375   if test -n "$MAKEINFO"; then
7376   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383     for ac_exec_ext in '' $ac_executable_extensions; do
7384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385     ac_cv_prog_MAKEINFO="makeinfo"
7386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390   done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 MAKEINFO=$ac_cv_prog_MAKEINFO
7396 if test -n "$MAKEINFO"; then
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7398 $as_echo "$MAKEINFO" >&6; }
7399 else
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404
7405   if test -n "$MAKEINFO"; then
7406     # Found it, now check the version.
7407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7408 $as_echo_n "checking for modern makeinfo... " >&6; }
7409 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7410   $as_echo_n "(cached) " >&6
7411 else
7412   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7413                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7414
7415                     case $ac_prog_version in
7416                       '')  gcc_cv_prog_makeinfo_modern=no;;
7417                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7418                       *)   gcc_cv_prog_makeinfo_modern=no;;
7419                     esac
7420
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7423 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7424   else
7425     gcc_cv_prog_makeinfo_modern=no
7426   fi
7427   if test $gcc_cv_prog_makeinfo_modern = no; then
7428     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7429   fi
7430
7431 if test $gcc_cv_prog_makeinfo_modern = no; then
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7433 *** Makeinfo is missing or too old.
7434 *** Info documentation will not be built." >&5
7435 $as_echo "$as_me: WARNING:
7436 *** Makeinfo is missing or too old.
7437 *** Info documentation will not be built." >&2;}
7438   BUILD_INFO=
7439 else
7440   BUILD_INFO=info
7441 fi
7442
7443
7444 # Is pod2man recent enough to regenerate manpages?
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7446 $as_echo_n "checking for recent Pod::Man... " >&6; }
7447 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7450   GENERATED_MANPAGES=generated-manpages
7451 else
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454   GENERATED_MANPAGES=
7455 fi
7456
7457
7458 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7459
7460 # How about lex?
7461 for ac_prog in flex
7462 do
7463   # Extract the first word of "$ac_prog", so it can be a program name with args.
7464 set dummy $ac_prog; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if test "${ac_cv_prog_FLEX+set}" = set; then :
7468   $as_echo_n "(cached) " >&6
7469 else
7470   if test -n "$FLEX"; then
7471   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478     for ac_exec_ext in '' $ac_executable_extensions; do
7479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480     ac_cv_prog_FLEX="$ac_prog"
7481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485   done
7486 IFS=$as_save_IFS
7487
7488 fi
7489 fi
7490 FLEX=$ac_cv_prog_FLEX
7491 if test -n "$FLEX"; then
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7493 $as_echo "$FLEX" >&6; }
7494 else
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 fi
7498
7499
7500   test -n "$FLEX" && break
7501 done
7502 test -n "$FLEX" || FLEX="$MISSING flex"
7503
7504
7505 # Bison?
7506 for ac_prog in bison
7507 do
7508   # Extract the first word of "$ac_prog", so it can be a program name with args.
7509 set dummy $ac_prog; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if test "${ac_cv_prog_BISON+set}" = set; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   if test -n "$BISON"; then
7516   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523     for ac_exec_ext in '' $ac_executable_extensions; do
7524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525     ac_cv_prog_BISON="$ac_prog"
7526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530   done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 BISON=$ac_cv_prog_BISON
7536 if test -n "$BISON"; then
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7538 $as_echo "$BISON" >&6; }
7539 else
7540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544
7545   test -n "$BISON" && break
7546 done
7547 test -n "$BISON" || BISON="$MISSING bison"
7548
7549
7550 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7551 # check for build == host before using them.
7552
7553 # NM
7554 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7555   && test -d ../binutils ; then
7556   NM='${objdir}/../binutils/nm-new'
7557 else
7558   # Extract the first word of "nm", so it can be a program name with args.
7559 set dummy nm; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_NM+set}" = set; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   if test -n "$NM"; then
7566   ac_cv_prog_NM="$NM" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7570 do
7571   IFS=$as_save_IFS
7572   test -z "$as_dir" && as_dir=.
7573     for ac_exec_ext in '' $ac_executable_extensions; do
7574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575     ac_cv_prog_NM="nm"
7576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577     break 2
7578   fi
7579 done
7580   done
7581 IFS=$as_save_IFS
7582
7583   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7584 fi
7585 fi
7586 NM=$ac_cv_prog_NM
7587 if test -n "$NM"; then
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7589 $as_echo "$NM" >&6; }
7590 else
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7593 fi
7594
7595
7596 fi
7597
7598 # AR
7599 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7600   && test -d ../binutils ; then
7601   AR='${objdir}/../binutils/ar'
7602 else
7603   # Extract the first word of "ar", so it can be a program name with args.
7604 set dummy ar; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if test "${ac_cv_prog_AR+set}" = set; then :
7608   $as_echo_n "(cached) " >&6
7609 else
7610   if test -n "$AR"; then
7611   ac_cv_prog_AR="$AR" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618     for ac_exec_ext in '' $ac_executable_extensions; do
7619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620     ac_cv_prog_AR="ar"
7621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625   done
7626 IFS=$as_save_IFS
7627
7628   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7629 fi
7630 fi
7631 AR=$ac_cv_prog_AR
7632 if test -n "$AR"; then
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7634 $as_echo "$AR" >&6; }
7635 else
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640
7641 fi
7642
7643
7644 # --------------------
7645 # Checks for C headers
7646 # --------------------
7647
7648 # Need to reject headers which give warnings, so that the -Werror bootstrap
7649 # works later. *sigh*  This needs to come before all header checks.
7650
7651 ac_c_preproc_warn_flag=yes
7652
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7654 $as_echo_n "checking for ANSI C header files... " >&6; }
7655 if test "${ac_cv_header_stdc+set}" = set; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660 #include <stdlib.h>
7661 #include <stdarg.h>
7662 #include <string.h>
7663 #include <float.h>
7664
7665 int
7666 main ()
7667 {
7668
7669   ;
7670   return 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_compile "$LINENO"; then :
7674   ac_cv_header_stdc=yes
7675 else
7676   ac_cv_header_stdc=no
7677 fi
7678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7679
7680 if test $ac_cv_header_stdc = yes; then
7681   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h.  */
7684 #include <string.h>
7685
7686 _ACEOF
7687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7688   $EGREP "memchr" >/dev/null 2>&1; then :
7689
7690 else
7691   ac_cv_header_stdc=no
7692 fi
7693 rm -f conftest*
7694
7695 fi
7696
7697 if test $ac_cv_header_stdc = yes; then
7698   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h.  */
7701 #include <stdlib.h>
7702
7703 _ACEOF
7704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7705   $EGREP "free" >/dev/null 2>&1; then :
7706
7707 else
7708   ac_cv_header_stdc=no
7709 fi
7710 rm -f conftest*
7711
7712 fi
7713
7714 if test $ac_cv_header_stdc = yes; then
7715   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7716   if test "$cross_compiling" = yes; then :
7717   :
7718 else
7719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h.  */
7721 #include <ctype.h>
7722 #include <stdlib.h>
7723 #if ((' ' & 0x0FF) == 0x020)
7724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7726 #else
7727 # define ISLOWER(c) \
7728                    (('a' <= (c) && (c) <= 'i') \
7729                      || ('j' <= (c) && (c) <= 'r') \
7730                      || ('s' <= (c) && (c) <= 'z'))
7731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7732 #endif
7733
7734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7735 int
7736 main ()
7737 {
7738   int i;
7739   for (i = 0; i < 256; i++)
7740     if (XOR (islower (i), ISLOWER (i))
7741         || toupper (i) != TOUPPER (i))
7742       return 2;
7743   return 0;
7744 }
7745 _ACEOF
7746 if ac_fn_c_try_run "$LINENO"; then :
7747
7748 else
7749   ac_cv_header_stdc=no
7750 fi
7751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7752   conftest.$ac_objext conftest.beam conftest.$ac_ext
7753 fi
7754
7755 fi
7756 fi
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7758 $as_echo "$ac_cv_header_stdc" >&6; }
7759 if test $ac_cv_header_stdc = yes; then
7760
7761 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7762
7763 fi
7764
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7766 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7767 if test "${ac_cv_header_time+set}" = set; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h.  */
7772 #include <sys/types.h>
7773 #include <sys/time.h>
7774 #include <time.h>
7775
7776 int
7777 main ()
7778 {
7779 if ((struct tm *) 0)
7780 return 0;
7781   ;
7782   return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_compile "$LINENO"; then :
7786   ac_cv_header_time=yes
7787 else
7788   ac_cv_header_time=no
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7793 $as_echo "$ac_cv_header_time" >&6; }
7794 if test $ac_cv_header_time = yes; then
7795
7796 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7797
7798 fi
7799
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7801 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7802 if test "${gcc_cv_header_string+set}" = set; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h.  */
7807 #include <string.h>
7808 #include <strings.h>
7809 int
7810 main ()
7811 {
7812
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818   gcc_cv_header_string=yes
7819 else
7820   gcc_cv_header_string=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7825 $as_echo "$gcc_cv_header_string" >&6; }
7826 if test $gcc_cv_header_string = yes; then
7827
7828 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7829
7830 fi
7831
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7833 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7834 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h.  */
7839 #include <sys/types.h>
7840 #include <sys/wait.h>
7841 #ifndef WEXITSTATUS
7842 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7843 #endif
7844 #ifndef WIFEXITED
7845 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7846 #endif
7847
7848 int
7849 main ()
7850 {
7851   int s;
7852   wait (&s);
7853   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_compile "$LINENO"; then :
7859   ac_cv_header_sys_wait_h=yes
7860 else
7861   ac_cv_header_sys_wait_h=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 fi
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7866 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7867 if test $ac_cv_header_sys_wait_h = yes; then
7868
7869 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7870
7871 fi
7872
7873 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7874                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7875                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7876                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7877 do :
7878   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7879 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7880 eval as_val=\$$as_ac_Header
7881    if test "x$as_val" = x""yes; then :
7882   cat >>confdefs.h <<_ACEOF
7883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7884 _ACEOF
7885
7886 fi
7887 done
7888
7889
7890 # Check for thread headers.
7891 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7892 if test "x$ac_cv_header_thread_h" = x""yes; then :
7893   have_thread_h=yes
7894 else
7895   have_thread_h=
7896 fi
7897
7898 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7899 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7900   have_pthread_h=yes
7901 else
7902   have_pthread_h=
7903 fi
7904
7905
7906 # These tests can't be done till we know if we have limits.h.
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7908 $as_echo_n "checking for CHAR_BIT... " >&6; }
7909 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h.  */
7914 #ifdef HAVE_LIMITS_H
7915 #include <limits.h>
7916 #endif
7917 #ifdef CHAR_BIT
7918 found
7919 #endif
7920 _ACEOF
7921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7922   $EGREP "found" >/dev/null 2>&1; then :
7923   gcc_cv_decl_char_bit=yes
7924 else
7925   gcc_cv_decl_char_bit=no
7926 fi
7927 rm -f conftest*
7928
7929
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7932 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7933 if test $gcc_cv_decl_char_bit = no; then
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7935 $as_echo_n "checking number of bits in a byte... " >&6; }
7936 if test "${gcc_cv_c_nbby+set}" = set; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   i=8
7940  gcc_cv_c_nbby=
7941  while test $i -lt 65; do
7942    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h.  */
7944
7945 int
7946 main ()
7947 {
7948 switch(0) {
7949   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7950   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7951   ; }
7952   ;
7953   return 0;
7954 }
7955 _ACEOF
7956 if ac_fn_c_try_compile "$LINENO"; then :
7957   gcc_cv_c_nbby=$i; break
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960    i=`expr $i + 1`
7961  done
7962  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7963
7964 fi
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7966 $as_echo "$gcc_cv_c_nbby" >&6; }
7967 if test $gcc_cv_c_nbby = failed; then
7968   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7969 else
7970
7971 cat >>confdefs.h <<_ACEOF
7972 #define CHAR_BIT $gcc_cv_c_nbby
7973 _ACEOF
7974
7975 fi
7976 fi
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7978 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7979 if test "${ac_cv_c_bigendian+set}" = set; then :
7980   $as_echo_n "(cached) " >&6
7981 else
7982   ac_cv_c_bigendian=unknown
7983     # See if we're dealing with a universal compiler.
7984     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h.  */
7986 #ifndef __APPLE_CC__
7987                not a universal capable compiler
7988              #endif
7989              typedef int dummy;
7990
7991 _ACEOF
7992 if ac_fn_c_try_compile "$LINENO"; then :
7993
7994         # Check for potential -arch flags.  It is not universal unless
7995         # there are at least two -arch flags with different values.
7996         ac_arch=
7997         ac_prev=
7998         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7999          if test -n "$ac_prev"; then
8000            case $ac_word in
8001              i?86 | x86_64 | ppc | ppc64)
8002                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8003                  ac_arch=$ac_word
8004                else
8005                  ac_cv_c_bigendian=universal
8006                  break
8007                fi
8008                ;;
8009            esac
8010            ac_prev=
8011          elif test "x$ac_word" = "x-arch"; then
8012            ac_prev=arch
8013          fi
8014        done
8015 fi
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017     if test $ac_cv_c_bigendian = unknown; then
8018       # See if sys/param.h defines the BYTE_ORDER macro.
8019       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h.  */
8021 #include <sys/types.h>
8022              #include <sys/param.h>
8023
8024 int
8025 main ()
8026 {
8027 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8028                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8029                      && LITTLE_ENDIAN)
8030               bogus endian macros
8031              #endif
8032
8033   ;
8034   return 0;
8035 }
8036 _ACEOF
8037 if ac_fn_c_try_compile "$LINENO"; then :
8038   # It does; now see whether it defined to BIG_ENDIAN or not.
8039          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h.  */
8041 #include <sys/types.h>
8042                 #include <sys/param.h>
8043
8044 int
8045 main ()
8046 {
8047 #if BYTE_ORDER != BIG_ENDIAN
8048                  not big endian
8049                 #endif
8050
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_compile "$LINENO"; then :
8056   ac_cv_c_bigendian=yes
8057 else
8058   ac_cv_c_bigendian=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063     fi
8064     if test $ac_cv_c_bigendian = unknown; then
8065       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h.  */
8068 #include <limits.h>
8069
8070 int
8071 main ()
8072 {
8073 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8074               bogus endian macros
8075              #endif
8076
8077   ;
8078   return 0;
8079 }
8080 _ACEOF
8081 if ac_fn_c_try_compile "$LINENO"; then :
8082   # It does; now see whether it defined to _BIG_ENDIAN or not.
8083          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h.  */
8085 #include <limits.h>
8086
8087 int
8088 main ()
8089 {
8090 #ifndef _BIG_ENDIAN
8091                  not big endian
8092                 #endif
8093
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099   ac_cv_c_bigendian=yes
8100 else
8101   ac_cv_c_bigendian=no
8102 fi
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106     fi
8107     if test $ac_cv_c_bigendian = unknown; then
8108       # Compile a test program.
8109       if test "$cross_compiling" = yes; then :
8110   # Try to guess by grepping values from an object file.
8111          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h.  */
8113 short int ascii_mm[] =
8114                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8115                 short int ascii_ii[] =
8116                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8117                 int use_ascii (int i) {
8118                   return ascii_mm[i] + ascii_ii[i];
8119                 }
8120                 short int ebcdic_ii[] =
8121                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8122                 short int ebcdic_mm[] =
8123                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8124                 int use_ebcdic (int i) {
8125                   return ebcdic_mm[i] + ebcdic_ii[i];
8126                 }
8127                 extern int foo;
8128
8129 int
8130 main ()
8131 {
8132 return use_ascii (foo) == use_ebcdic (foo);
8133   ;
8134   return 0;
8135 }
8136 _ACEOF
8137 if ac_fn_c_try_compile "$LINENO"; then :
8138   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8139               ac_cv_c_bigendian=yes
8140             fi
8141             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8142               if test "$ac_cv_c_bigendian" = unknown; then
8143                 ac_cv_c_bigendian=no
8144               else
8145                 # finding both strings is unlikely to happen, but who knows?
8146                 ac_cv_c_bigendian=unknown
8147               fi
8148             fi
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 else
8152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h.  */
8154 $ac_includes_default
8155 int
8156 main ()
8157 {
8158
8159              /* Are we little or big endian?  From Harbison&Steele.  */
8160              union
8161              {
8162                long int l;
8163                char c[sizeof (long int)];
8164              } u;
8165              u.l = 1;
8166              return u.c[sizeof (long int) - 1] == 1;
8167
8168   ;
8169   return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_run "$LINENO"; then :
8173   ac_cv_c_bigendian=no
8174 else
8175   ac_cv_c_bigendian=yes
8176 fi
8177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8178   conftest.$ac_objext conftest.beam conftest.$ac_ext
8179 fi
8180
8181     fi
8182 fi
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8184 $as_echo "$ac_cv_c_bigendian" >&6; }
8185  case $ac_cv_c_bigendian in #(
8186    yes)
8187      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8188 ;; #(
8189    no)
8190       ;; #(
8191    universal)
8192
8193 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8194
8195      ;; #(
8196    *)
8197      as_fn_error "unknown endianness
8198  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8199  esac
8200
8201
8202 # --------
8203 # UNSORTED
8204 # --------
8205
8206
8207 # These libraries may be used by collect2.
8208 # We may need a special search path to get them linked.
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8210 $as_echo_n "checking for collect2 libraries... " >&6; }
8211 if test "${gcc_cv_collect2_libs+set}" = set; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   save_LIBS="$LIBS"
8215 for libs in '' -lld -lmld \
8216                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8217                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8218 do
8219         LIBS="$libs"
8220         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h.  */
8222
8223 /* Override any GCC internal prototype to avoid an error.
8224    Use char because int might match the return type of a GCC
8225    builtin and then its argument prototype would still apply.  */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 char ldopen ();
8230 int
8231 main ()
8232 {
8233 return ldopen ();
8234   ;
8235   return 0;
8236 }
8237 _ACEOF
8238 if ac_fn_c_try_link "$LINENO"; then :
8239   gcc_cv_collect2_libs="$libs"; break
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext \
8242     conftest$ac_exeext conftest.$ac_ext
8243 done
8244 LIBS="$save_LIBS"
8245 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8248 $as_echo "$gcc_cv_collect2_libs" >&6; }
8249 case $gcc_cv_collect2_libs in
8250         "none required")        ;;
8251         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8252 esac
8253
8254
8255 # When building Ada code on Alpha, we need exc_resume which is usually in
8256 # -lexc.  So test for it.
8257 save_LIBS="$LIBS"
8258 LIBS=
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8260 $as_echo_n "checking for library containing exc_resume... " >&6; }
8261 if test "${ac_cv_search_exc_resume+set}" = set; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   ac_func_search_save_LIBS=$LIBS
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h.  */
8267
8268 /* Override any GCC internal prototype to avoid an error.
8269    Use char because int might match the return type of a GCC
8270    builtin and then its argument prototype would still apply.  */
8271 #ifdef __cplusplus
8272 extern "C"
8273 #endif
8274 char exc_resume ();
8275 int
8276 main ()
8277 {
8278 return exc_resume ();
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 for ac_lib in '' exc; do
8284   if test -z "$ac_lib"; then
8285     ac_res="none required"
8286   else
8287     ac_res=-l$ac_lib
8288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8289   fi
8290   if ac_fn_c_try_link "$LINENO"; then :
8291   ac_cv_search_exc_resume=$ac_res
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext \
8294     conftest$ac_exeext
8295   if test "${ac_cv_search_exc_resume+set}" = set; then :
8296   break
8297 fi
8298 done
8299 if test "${ac_cv_search_exc_resume+set}" = set; then :
8300
8301 else
8302   ac_cv_search_exc_resume=no
8303 fi
8304 rm conftest.$ac_ext
8305 LIBS=$ac_func_search_save_LIBS
8306 fi
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8308 $as_echo "$ac_cv_search_exc_resume" >&6; }
8309 ac_res=$ac_cv_search_exc_resume
8310 if test "$ac_res" != no; then :
8311   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8312
8313 fi
8314
8315 GNAT_LIBEXC="$LIBS"
8316 LIBS="$save_LIBS"
8317
8318
8319 # Some systems put ldexp and frexp in libm instead of libc; assume
8320 # they're both in the same place.  jcf-dump needs them.
8321 save_LIBS="$LIBS"
8322 LIBS=
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8324 $as_echo_n "checking for library containing ldexp... " >&6; }
8325 if test "${ac_cv_search_ldexp+set}" = set; then :
8326   $as_echo_n "(cached) " >&6
8327 else
8328   ac_func_search_save_LIBS=$LIBS
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h.  */
8331
8332 /* Override any GCC internal prototype to avoid an error.
8333    Use char because int might match the return type of a GCC
8334    builtin and then its argument prototype would still apply.  */
8335 #ifdef __cplusplus
8336 extern "C"
8337 #endif
8338 char ldexp ();
8339 int
8340 main ()
8341 {
8342 return ldexp ();
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 for ac_lib in '' m; do
8348   if test -z "$ac_lib"; then
8349     ac_res="none required"
8350   else
8351     ac_res=-l$ac_lib
8352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8353   fi
8354   if ac_fn_c_try_link "$LINENO"; then :
8355   ac_cv_search_ldexp=$ac_res
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext \
8358     conftest$ac_exeext
8359   if test "${ac_cv_search_ldexp+set}" = set; then :
8360   break
8361 fi
8362 done
8363 if test "${ac_cv_search_ldexp+set}" = set; then :
8364
8365 else
8366   ac_cv_search_ldexp=no
8367 fi
8368 rm conftest.$ac_ext
8369 LIBS=$ac_func_search_save_LIBS
8370 fi
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8372 $as_echo "$ac_cv_search_ldexp" >&6; }
8373 ac_res=$ac_cv_search_ldexp
8374 if test "$ac_res" != no; then :
8375   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8376
8377 fi
8378
8379 LDEXP_LIB="$LIBS"
8380 LIBS="$save_LIBS"
8381
8382
8383 # Use <inttypes.h> only if it exists,
8384 # doesn't clash with <sys/types.h>, and declares intmax_t.
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8386 $as_echo_n "checking for inttypes.h... " >&6; }
8387 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8388   $as_echo_n "(cached) " >&6
8389 else
8390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h.  */
8392 #include <sys/types.h>
8393 #include <inttypes.h>
8394 int
8395 main ()
8396 {
8397 intmax_t i = -1;
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 if ac_fn_c_try_compile "$LINENO"; then :
8403   gcc_cv_header_inttypes_h=yes
8404 else
8405   gcc_cv_header_inttypes_h=no
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 fi
8409
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8411 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8412 if test $gcc_cv_header_inttypes_h = yes; then
8413
8414 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8415
8416 fi
8417
8418
8419
8420 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8421         sysconf strsignal getrusage nl_langinfo \
8422         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8423         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
8424 do :
8425   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8427 eval as_val=\$$as_ac_var
8428    if test "x$as_val" = x""yes; then :
8429   cat >>confdefs.h <<_ACEOF
8430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8431 _ACEOF
8432
8433 fi
8434 done
8435
8436
8437 save_CPPFLAGS="$CPPFLAGS"
8438 save_LIBS="$LIBS"
8439 LIBS="$LIBS $LIBELFLIBS"
8440 for ac_func in elf_getshdrstrndx
8441 do :
8442   ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8443 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8444   cat >>confdefs.h <<_ACEOF
8445 #define HAVE_ELF_GETSHDRSTRNDX 1
8446 _ACEOF
8447
8448 else
8449   for ac_func in elf_getshstrndx
8450 do :
8451   ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8452 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8453   cat >>confdefs.h <<_ACEOF
8454 #define HAVE_ELF_GETSHSTRNDX 1
8455 _ACEOF
8456  if test "$cross_compiling" = yes; then :
8457   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8459 as_fn_error "cannot run test program while cross compiling
8460 See \`config.log' for more details." "$LINENO" 5; }
8461 else
8462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h.  */
8464 #include <stdlib.h>
8465 #include <libelf.h>
8466 int main()
8467 {
8468   return elf_getshstrndx (NULL, 0) == 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_run "$LINENO"; then :
8472
8473 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8474
8475 fi
8476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8477   conftest.$ac_objext conftest.beam conftest.$ac_ext
8478 fi
8479
8480 fi
8481 done
8482
8483
8484 fi
8485 done
8486
8487 LIBS="$save_LIBS"
8488 CPPFLAGS="$save_CPPFLAGS"
8489
8490 if test x$ac_cv_func_mbstowcs = xyes; then
8491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8492 $as_echo_n "checking whether mbstowcs works... " >&6; }
8493 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496       if test "$cross_compiling" = yes; then :
8497   gcc_cv_func_mbstowcs_works=yes
8498 else
8499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h.  */
8501 #include <stdlib.h>
8502 int main()
8503 {
8504   mbstowcs(0, "", 0);
8505   return 0;
8506 }
8507 _ACEOF
8508 if ac_fn_c_try_run "$LINENO"; then :
8509   gcc_cv_func_mbstowcs_works=yes
8510 else
8511   gcc_cv_func_mbstowcs_works=no
8512 fi
8513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8514   conftest.$ac_objext conftest.beam conftest.$ac_ext
8515 fi
8516
8517 fi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8519 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8520   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8521
8522 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8523
8524   fi
8525 fi
8526
8527 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8528 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8529
8530 else
8531
8532 cat >>confdefs.h <<_ACEOF
8533 #define ssize_t int
8534 _ACEOF
8535
8536 fi
8537
8538 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8539 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8540
8541 else
8542
8543 cat >>confdefs.h <<_ACEOF
8544 #define caddr_t char *
8545 _ACEOF
8546
8547 fi
8548
8549
8550
8551 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8552 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8553   gcc_header_sys_mman_h=yes
8554 else
8555   gcc_header_sys_mman_h=no
8556 fi
8557
8558 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8559 if test "x$ac_cv_func_mmap" = x""yes; then :
8560   gcc_func_mmap=yes
8561 else
8562   gcc_func_mmap=no
8563 fi
8564
8565 if test "$gcc_header_sys_mman_h" != yes \
8566  || test "$gcc_func_mmap" != yes; then
8567    gcc_cv_func_mmap_file=no
8568    gcc_cv_func_mmap_dev_zero=no
8569    gcc_cv_func_mmap_anon=no
8570 else
8571    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8572 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8573 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8574   $as_echo_n "(cached) " >&6
8575 else
8576   # Add a system to this blacklist if
8577    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8578    # memory area containing the same data that you'd get if you applied
8579    # read() to the same fd.  The only system known to have a problem here
8580    # is VMS, where text files have record structure.
8581    case "$host_os" in
8582      vms* | ultrix*)
8583         gcc_cv_func_mmap_file=no ;;
8584      *)
8585         gcc_cv_func_mmap_file=yes;;
8586    esac
8587 fi
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8589 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8591 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8592 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8593   $as_echo_n "(cached) " >&6
8594 else
8595   # Add a system to this blacklist if it has mmap() but /dev/zero
8596    # does not exist, or if mmapping /dev/zero does not give anonymous
8597    # zeroed pages with both the following properties:
8598    # 1. If you map N consecutive pages in with one call, and then
8599    #    unmap any subset of those pages, the pages that were not
8600    #    explicitly unmapped remain accessible.
8601    # 2. If you map two adjacent blocks of memory and then unmap them
8602    #    both at once, they must both go away.
8603    # Systems known to be in this category are Windows (all variants),
8604    # VMS, and Darwin.
8605    case "$host_os" in
8606      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8607         gcc_cv_func_mmap_dev_zero=no ;;
8608      *)
8609         gcc_cv_func_mmap_dev_zero=yes;;
8610    esac
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8613 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8614
8615    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8616    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8617 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8618 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h.  */
8623 #include <sys/types.h>
8624 #include <sys/mman.h>
8625 #include <unistd.h>
8626
8627 #ifndef MAP_ANONYMOUS
8628 #define MAP_ANONYMOUS MAP_ANON
8629 #endif
8630
8631 int
8632 main ()
8633 {
8634 int n = MAP_ANONYMOUS;
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 if ac_fn_c_try_compile "$LINENO"; then :
8640   gcc_cv_decl_map_anon=yes
8641 else
8642   gcc_cv_decl_map_anon=no
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8647 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8648
8649    if test $gcc_cv_decl_map_anon = no; then
8650      gcc_cv_func_mmap_anon=no
8651    else
8652      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8653 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8654 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8655   $as_echo_n "(cached) " >&6
8656 else
8657   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8658    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8659    # doesn't give anonymous zeroed pages with the same properties listed
8660    # above for use of /dev/zero.
8661    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8662    case "$host_os" in
8663      vms* | cygwin* | pe | mingw* | sco* | udk* )
8664         gcc_cv_func_mmap_anon=no ;;
8665      *)
8666         gcc_cv_func_mmap_anon=yes;;
8667    esac
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8670 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8671    fi
8672 fi
8673
8674 if test $gcc_cv_func_mmap_file = yes; then
8675
8676 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8677
8678 fi
8679 if test $gcc_cv_func_mmap_dev_zero = yes; then
8680
8681 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8682
8683 fi
8684 if test $gcc_cv_func_mmap_anon = yes; then
8685
8686 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8687
8688 fi
8689
8690
8691 case "${host}" in
8692 *-*-*vms*)
8693   # Under VMS, vfork works very differently than on Unix. The standard test
8694   # won't work, and it isn't easily adaptable. It makes more sense to
8695   # just force it.
8696   ac_cv_func_vfork_works=yes
8697   ;;
8698 esac
8699 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8700 if test "x$ac_cv_type_pid_t" = x""yes; then :
8701
8702 else
8703
8704 cat >>confdefs.h <<_ACEOF
8705 #define pid_t int
8706 _ACEOF
8707
8708 fi
8709
8710 for ac_header in vfork.h
8711 do :
8712   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8713 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8714   cat >>confdefs.h <<_ACEOF
8715 #define HAVE_VFORK_H 1
8716 _ACEOF
8717
8718 fi
8719 done
8720
8721 for ac_func in fork vfork
8722 do :
8723   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8725 eval as_val=\$$as_ac_var
8726    if test "x$as_val" = x""yes; then :
8727   cat >>confdefs.h <<_ACEOF
8728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8729 _ACEOF
8730
8731 fi
8732 done
8733
8734 if test "x$ac_cv_func_fork" = xyes; then
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8736 $as_echo_n "checking for working fork... " >&6; }
8737 if test "${ac_cv_func_fork_works+set}" = set; then :
8738   $as_echo_n "(cached) " >&6
8739 else
8740   if test "$cross_compiling" = yes; then :
8741   ac_cv_func_fork_works=cross
8742 else
8743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h.  */
8745 $ac_includes_default
8746 int
8747 main ()
8748 {
8749
8750           /* By Ruediger Kuhlmann. */
8751           return fork () < 0;
8752
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 if ac_fn_c_try_run "$LINENO"; then :
8758   ac_cv_func_fork_works=yes
8759 else
8760   ac_cv_func_fork_works=no
8761 fi
8762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8763   conftest.$ac_objext conftest.beam conftest.$ac_ext
8764 fi
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8768 $as_echo "$ac_cv_func_fork_works" >&6; }
8769
8770 else
8771   ac_cv_func_fork_works=$ac_cv_func_fork
8772 fi
8773 if test "x$ac_cv_func_fork_works" = xcross; then
8774   case $host in
8775     *-*-amigaos* | *-*-msdosdjgpp*)
8776       # Override, as these systems have only a dummy fork() stub
8777       ac_cv_func_fork_works=no
8778       ;;
8779     *)
8780       ac_cv_func_fork_works=yes
8781       ;;
8782   esac
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8784 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8785 fi
8786 ac_cv_func_vfork_works=$ac_cv_func_vfork
8787 if test "x$ac_cv_func_vfork" = xyes; then
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8789 $as_echo_n "checking for working vfork... " >&6; }
8790 if test "${ac_cv_func_vfork_works+set}" = set; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   if test "$cross_compiling" = yes; then :
8794   ac_cv_func_vfork_works=cross
8795 else
8796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h.  */
8798 /* Thanks to Paul Eggert for this test.  */
8799 $ac_includes_default
8800 #include <sys/wait.h>
8801 #ifdef HAVE_VFORK_H
8802 # include <vfork.h>
8803 #endif
8804 /* On some sparc systems, changes by the child to local and incoming
8805    argument registers are propagated back to the parent.  The compiler
8806    is told about this with #include <vfork.h>, but some compilers
8807    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8808    static variable whose address is put into a register that is
8809    clobbered by the vfork.  */
8810 static void
8811 #ifdef __cplusplus
8812 sparc_address_test (int arg)
8813 # else
8814 sparc_address_test (arg) int arg;
8815 #endif
8816 {
8817   static pid_t child;
8818   if (!child) {
8819     child = vfork ();
8820     if (child < 0) {
8821       perror ("vfork");
8822       _exit(2);
8823     }
8824     if (!child) {
8825       arg = getpid();
8826       write(-1, "", 0);
8827       _exit (arg);
8828     }
8829   }
8830 }
8831
8832 int
8833 main ()
8834 {
8835   pid_t parent = getpid ();
8836   pid_t child;
8837
8838   sparc_address_test (0);
8839
8840   child = vfork ();
8841
8842   if (child == 0) {
8843     /* Here is another test for sparc vfork register problems.  This
8844        test uses lots of local variables, at least as many local
8845        variables as main has allocated so far including compiler
8846        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8847        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8848        reuse the register of parent for one of the local variables,
8849        since it will think that parent can't possibly be used any more
8850        in this routine.  Assigning to the local variable will thus
8851        munge parent in the parent process.  */
8852     pid_t
8853       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8854       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8855     /* Convince the compiler that p..p7 are live; otherwise, it might
8856        use the same hardware register for all 8 local variables.  */
8857     if (p != p1 || p != p2 || p != p3 || p != p4
8858         || p != p5 || p != p6 || p != p7)
8859       _exit(1);
8860
8861     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8862        from child file descriptors.  If the child closes a descriptor
8863        before it execs or exits, this munges the parent's descriptor
8864        as well.  Test for this by closing stdout in the child.  */
8865     _exit(close(fileno(stdout)) != 0);
8866   } else {
8867     int status;
8868     struct stat st;
8869
8870     while (wait(&status) != child)
8871       ;
8872     return (
8873          /* Was there some problem with vforking?  */
8874          child < 0
8875
8876          /* Did the child fail?  (This shouldn't happen.)  */
8877          || status
8878
8879          /* Did the vfork/compiler bug occur?  */
8880          || parent != getpid()
8881
8882          /* Did the file descriptor bug occur?  */
8883          || fstat(fileno(stdout), &st) != 0
8884          );
8885   }
8886 }
8887 _ACEOF
8888 if ac_fn_c_try_run "$LINENO"; then :
8889   ac_cv_func_vfork_works=yes
8890 else
8891   ac_cv_func_vfork_works=no
8892 fi
8893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8894   conftest.$ac_objext conftest.beam conftest.$ac_ext
8895 fi
8896
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8899 $as_echo "$ac_cv_func_vfork_works" >&6; }
8900
8901 fi;
8902 if test "x$ac_cv_func_fork_works" = xcross; then
8903   ac_cv_func_vfork_works=$ac_cv_func_vfork
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8905 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8906 fi
8907
8908 if test "x$ac_cv_func_vfork_works" = xyes; then
8909
8910 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8911
8912 else
8913
8914 $as_echo "#define vfork fork" >>confdefs.h
8915
8916 fi
8917 if test "x$ac_cv_func_fork_works" = xyes; then
8918
8919 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8920
8921 fi
8922
8923
8924
8925       if test "X$prefix" = "XNONE"; then
8926     acl_final_prefix="$ac_default_prefix"
8927   else
8928     acl_final_prefix="$prefix"
8929   fi
8930   if test "X$exec_prefix" = "XNONE"; then
8931     acl_final_exec_prefix='${prefix}'
8932   else
8933     acl_final_exec_prefix="$exec_prefix"
8934   fi
8935   acl_save_prefix="$prefix"
8936   prefix="$acl_final_prefix"
8937   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8938   prefix="$acl_save_prefix"
8939
8940
8941 # Check whether --with-gnu-ld was given.
8942 if test "${with_gnu_ld+set}" = set; then :
8943   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8944 else
8945   with_gnu_ld=no
8946 fi
8947
8948 # Prepare PATH_SEPARATOR.
8949 # The user is always right.
8950 if test "${PATH_SEPARATOR+set}" != set; then
8951   echo "#! /bin/sh" >conf$$.sh
8952   echo  "exit 0"   >>conf$$.sh
8953   chmod +x conf$$.sh
8954   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8955     PATH_SEPARATOR=';'
8956   else
8957     PATH_SEPARATOR=:
8958   fi
8959   rm -f conf$$.sh
8960 fi
8961 ac_prog=ld
8962 if test "$GCC" = yes; then
8963   # Check if gcc -print-prog-name=ld gives a path.
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8965 $as_echo_n "checking for ld used by GCC... " >&6; }
8966   case $host in
8967   *-*-mingw*)
8968     # gcc leaves a trailing carriage return which upsets mingw
8969     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8970   *)
8971     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8972   esac
8973   case $ac_prog in
8974     # Accept absolute paths.
8975     [\\/]* | [A-Za-z]:[\\/]*)
8976       re_direlt='/[^/][^/]*/\.\./'
8977       # Canonicalize the path of ld
8978       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8979       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8980         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8981       done
8982       test -z "$LD" && LD="$ac_prog"
8983       ;;
8984   "")
8985     # If it fails, then pretend we aren't using GCC.
8986     ac_prog=ld
8987     ;;
8988   *)
8989     # If it is relative, then search for the first ld in PATH.
8990     with_gnu_ld=unknown
8991     ;;
8992   esac
8993 elif test "$with_gnu_ld" = yes; then
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8995 $as_echo_n "checking for GNU ld... " >&6; }
8996 else
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8998 $as_echo_n "checking for non-GNU ld... " >&6; }
8999 fi
9000 if test "${acl_cv_path_LD+set}" = set; then :
9001   $as_echo_n "(cached) " >&6
9002 else
9003   if test -z "$LD"; then
9004   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9005   for ac_dir in $PATH; do
9006     test -z "$ac_dir" && ac_dir=.
9007     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9008       acl_cv_path_LD="$ac_dir/$ac_prog"
9009       # Check to see if the program is GNU ld.  I'd rather use --version,
9010       # but apparently some GNU ld's only accept -v.
9011       # Break only if it was the GNU/non-GNU ld that we prefer.
9012       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9013         test "$with_gnu_ld" != no && break
9014       else
9015         test "$with_gnu_ld" != yes && break
9016       fi
9017     fi
9018   done
9019   IFS="$ac_save_ifs"
9020 else
9021   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9022 fi
9023 fi
9024
9025 LD="$acl_cv_path_LD"
9026 if test -n "$LD"; then
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9028 $as_echo "$LD" >&6; }
9029 else
9030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9032 fi
9033 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9035 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9036 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9037   $as_echo_n "(cached) " >&6
9038 else
9039   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9040 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9041   acl_cv_prog_gnu_ld=yes
9042 else
9043   acl_cv_prog_gnu_ld=no
9044 fi
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9047 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9048 with_gnu_ld=$acl_cv_prog_gnu_ld
9049
9050
9051
9052                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9053 $as_echo_n "checking for shared library run path origin... " >&6; }
9054 if test "${acl_cv_rpath+set}" = set; then :
9055   $as_echo_n "(cached) " >&6
9056 else
9057
9058     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9059     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9060     . ./conftest.sh
9061     rm -f ./conftest.sh
9062     acl_cv_rpath=done
9063
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9066 $as_echo "$acl_cv_rpath" >&6; }
9067   wl="$acl_cv_wl"
9068   libext="$acl_cv_libext"
9069   shlibext="$acl_cv_shlibext"
9070   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9071   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9072   hardcode_direct="$acl_cv_hardcode_direct"
9073   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9074     # Check whether --enable-rpath was given.
9075 if test "${enable_rpath+set}" = set; then :
9076   enableval=$enable_rpath; :
9077 else
9078   enable_rpath=yes
9079 fi
9080
9081
9082
9083
9084
9085
9086
9087
9088     use_additional=yes
9089
9090   acl_save_prefix="$prefix"
9091   prefix="$acl_final_prefix"
9092   acl_save_exec_prefix="$exec_prefix"
9093   exec_prefix="$acl_final_exec_prefix"
9094
9095     eval additional_includedir=\"$includedir\"
9096     eval additional_libdir=\"$libdir\"
9097
9098   exec_prefix="$acl_save_exec_prefix"
9099   prefix="$acl_save_prefix"
9100
9101
9102 # Check whether --with-libiconv-prefix was given.
9103 if test "${with_libiconv_prefix+set}" = set; then :
9104   withval=$with_libiconv_prefix;
9105     if test "X$withval" = "Xno"; then
9106       use_additional=no
9107     else
9108       if test "X$withval" = "X"; then
9109
9110   acl_save_prefix="$prefix"
9111   prefix="$acl_final_prefix"
9112   acl_save_exec_prefix="$exec_prefix"
9113   exec_prefix="$acl_final_exec_prefix"
9114
9115           eval additional_includedir=\"$includedir\"
9116           eval additional_libdir=\"$libdir\"
9117
9118   exec_prefix="$acl_save_exec_prefix"
9119   prefix="$acl_save_prefix"
9120
9121       else
9122         additional_includedir="$withval/include"
9123         additional_libdir="$withval/lib"
9124       fi
9125     fi
9126
9127 fi
9128
9129       LIBICONV=
9130   LTLIBICONV=
9131   INCICONV=
9132   rpathdirs=
9133   ltrpathdirs=
9134   names_already_handled=
9135   names_next_round='iconv '
9136   while test -n "$names_next_round"; do
9137     names_this_round="$names_next_round"
9138     names_next_round=
9139     for name in $names_this_round; do
9140       already_handled=
9141       for n in $names_already_handled; do
9142         if test "$n" = "$name"; then
9143           already_handled=yes
9144           break
9145         fi
9146       done
9147       if test -z "$already_handled"; then
9148         names_already_handled="$names_already_handled $name"
9149                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9150         eval value=\"\$HAVE_LIB$uppername\"
9151         if test -n "$value"; then
9152           if test "$value" = yes; then
9153             eval value=\"\$LIB$uppername\"
9154             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9155             eval value=\"\$LTLIB$uppername\"
9156             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9157           else
9158                                     :
9159           fi
9160         else
9161                               found_dir=
9162           found_la=
9163           found_so=
9164           found_a=
9165           if test $use_additional = yes; then
9166             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9167               found_dir="$additional_libdir"
9168               found_so="$additional_libdir/lib$name.$shlibext"
9169               if test -f "$additional_libdir/lib$name.la"; then
9170                 found_la="$additional_libdir/lib$name.la"
9171               fi
9172             else
9173               if test -f "$additional_libdir/lib$name.$libext"; then
9174                 found_dir="$additional_libdir"
9175                 found_a="$additional_libdir/lib$name.$libext"
9176                 if test -f "$additional_libdir/lib$name.la"; then
9177                   found_la="$additional_libdir/lib$name.la"
9178                 fi
9179               fi
9180             fi
9181           fi
9182           if test "X$found_dir" = "X"; then
9183             for x in $LDFLAGS $LTLIBICONV; do
9184
9185   acl_save_prefix="$prefix"
9186   prefix="$acl_final_prefix"
9187   acl_save_exec_prefix="$exec_prefix"
9188   exec_prefix="$acl_final_exec_prefix"
9189   eval x=\"$x\"
9190   exec_prefix="$acl_save_exec_prefix"
9191   prefix="$acl_save_prefix"
9192
9193               case "$x" in
9194                 -L*)
9195                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9196                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9197                     found_dir="$dir"
9198                     found_so="$dir/lib$name.$shlibext"
9199                     if test -f "$dir/lib$name.la"; then
9200                       found_la="$dir/lib$name.la"
9201                     fi
9202                   else
9203                     if test -f "$dir/lib$name.$libext"; then
9204                       found_dir="$dir"
9205                       found_a="$dir/lib$name.$libext"
9206                       if test -f "$dir/lib$name.la"; then
9207                         found_la="$dir/lib$name.la"
9208                       fi
9209                     fi
9210                   fi
9211                   ;;
9212               esac
9213               if test "X$found_dir" != "X"; then
9214                 break
9215               fi
9216             done
9217           fi
9218           if test "X$found_dir" != "X"; then
9219                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9220             if test "X$found_so" != "X"; then
9221                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9222                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9223               else
9224                                                                                 haveit=
9225                 for x in $ltrpathdirs; do
9226                   if test "X$x" = "X$found_dir"; then
9227                     haveit=yes
9228                     break
9229                   fi
9230                 done
9231                 if test -z "$haveit"; then
9232                   ltrpathdirs="$ltrpathdirs $found_dir"
9233                 fi
9234                                 if test "$hardcode_direct" = yes; then
9235                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9236                 else
9237                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9238                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9239                                                             haveit=
9240                     for x in $rpathdirs; do
9241                       if test "X$x" = "X$found_dir"; then
9242                         haveit=yes
9243                         break
9244                       fi
9245                     done
9246                     if test -z "$haveit"; then
9247                       rpathdirs="$rpathdirs $found_dir"
9248                     fi
9249                   else
9250                                                                                 haveit=
9251                     for x in $LDFLAGS $LIBICONV; do
9252
9253   acl_save_prefix="$prefix"
9254   prefix="$acl_final_prefix"
9255   acl_save_exec_prefix="$exec_prefix"
9256   exec_prefix="$acl_final_exec_prefix"
9257   eval x=\"$x\"
9258   exec_prefix="$acl_save_exec_prefix"
9259   prefix="$acl_save_prefix"
9260
9261                       if test "X$x" = "X-L$found_dir"; then
9262                         haveit=yes
9263                         break
9264                       fi
9265                     done
9266                     if test -z "$haveit"; then
9267                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9268                     fi
9269                     if test "$hardcode_minus_L" != no; then
9270                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9271                     else
9272                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9273                     fi
9274                   fi
9275                 fi
9276               fi
9277             else
9278               if test "X$found_a" != "X"; then
9279                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9280               else
9281                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9282               fi
9283             fi
9284                         additional_includedir=
9285             case "$found_dir" in
9286               */lib | */lib/)
9287                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9288                 additional_includedir="$basedir/include"
9289                 ;;
9290             esac
9291             if test "X$additional_includedir" != "X"; then
9292                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9293                 haveit=
9294                 if test "X$additional_includedir" = "X/usr/local/include"; then
9295                   if test -n "$GCC"; then
9296                     case $host_os in
9297                       linux*) haveit=yes;;
9298                     esac
9299                   fi
9300                 fi
9301                 if test -z "$haveit"; then
9302                   for x in $CPPFLAGS $INCICONV; do
9303
9304   acl_save_prefix="$prefix"
9305   prefix="$acl_final_prefix"
9306   acl_save_exec_prefix="$exec_prefix"
9307   exec_prefix="$acl_final_exec_prefix"
9308   eval x=\"$x\"
9309   exec_prefix="$acl_save_exec_prefix"
9310   prefix="$acl_save_prefix"
9311
9312                     if test "X$x" = "X-I$additional_includedir"; then
9313                       haveit=yes
9314                       break
9315                     fi
9316                   done
9317                   if test -z "$haveit"; then
9318                     if test -d "$additional_includedir"; then
9319                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9320                     fi
9321                   fi
9322                 fi
9323               fi
9324             fi
9325                         if test -n "$found_la"; then
9326                                                         save_libdir="$libdir"
9327               case "$found_la" in
9328                 */* | *\\*) . "$found_la" ;;
9329                 *) . "./$found_la" ;;
9330               esac
9331               libdir="$save_libdir"
9332                             for dep in $dependency_libs; do
9333                 case "$dep" in
9334                   -L*)
9335                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9336                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9337                       haveit=
9338                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9339                         if test -n "$GCC"; then
9340                           case $host_os in
9341                             linux*) haveit=yes;;
9342                           esac
9343                         fi
9344                       fi
9345                       if test -z "$haveit"; then
9346                         haveit=
9347                         for x in $LDFLAGS $LIBICONV; do
9348
9349   acl_save_prefix="$prefix"
9350   prefix="$acl_final_prefix"
9351   acl_save_exec_prefix="$exec_prefix"
9352   exec_prefix="$acl_final_exec_prefix"
9353   eval x=\"$x\"
9354   exec_prefix="$acl_save_exec_prefix"
9355   prefix="$acl_save_prefix"
9356
9357                           if test "X$x" = "X-L$additional_libdir"; then
9358                             haveit=yes
9359                             break
9360                           fi
9361                         done
9362                         if test -z "$haveit"; then
9363                           if test -d "$additional_libdir"; then
9364                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9365                           fi
9366                         fi
9367                         haveit=
9368                         for x in $LDFLAGS $LTLIBICONV; do
9369
9370   acl_save_prefix="$prefix"
9371   prefix="$acl_final_prefix"
9372   acl_save_exec_prefix="$exec_prefix"
9373   exec_prefix="$acl_final_exec_prefix"
9374   eval x=\"$x\"
9375   exec_prefix="$acl_save_exec_prefix"
9376   prefix="$acl_save_prefix"
9377
9378                           if test "X$x" = "X-L$additional_libdir"; then
9379                             haveit=yes
9380                             break
9381                           fi
9382                         done
9383                         if test -z "$haveit"; then
9384                           if test -d "$additional_libdir"; then
9385                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9386                           fi
9387                         fi
9388                       fi
9389                     fi
9390                     ;;
9391                   -R*)
9392                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9393                     if test "$enable_rpath" != no; then
9394                                                                   haveit=
9395                       for x in $rpathdirs; do
9396                         if test "X$x" = "X$dir"; then
9397                           haveit=yes
9398                           break
9399                         fi
9400                       done
9401                       if test -z "$haveit"; then
9402                         rpathdirs="$rpathdirs $dir"
9403                       fi
9404                                                                   haveit=
9405                       for x in $ltrpathdirs; do
9406                         if test "X$x" = "X$dir"; then
9407                           haveit=yes
9408                           break
9409                         fi
9410                       done
9411                       if test -z "$haveit"; then
9412                         ltrpathdirs="$ltrpathdirs $dir"
9413                       fi
9414                     fi
9415                     ;;
9416                   -l*)
9417                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9418                     ;;
9419                   *.la)
9420                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9421                     ;;
9422                   *)
9423                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9424                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9425                     ;;
9426                 esac
9427               done
9428             fi
9429           else
9430                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9431             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9432           fi
9433         fi
9434       fi
9435     done
9436   done
9437   if test "X$rpathdirs" != "X"; then
9438     if test -n "$hardcode_libdir_separator"; then
9439                         alldirs=
9440       for found_dir in $rpathdirs; do
9441         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9442       done
9443             acl_save_libdir="$libdir"
9444       libdir="$alldirs"
9445       eval flag=\"$hardcode_libdir_flag_spec\"
9446       libdir="$acl_save_libdir"
9447       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9448     else
9449             for found_dir in $rpathdirs; do
9450         acl_save_libdir="$libdir"
9451         libdir="$found_dir"
9452         eval flag=\"$hardcode_libdir_flag_spec\"
9453         libdir="$acl_save_libdir"
9454         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9455       done
9456     fi
9457   fi
9458   if test "X$ltrpathdirs" != "X"; then
9459             for found_dir in $ltrpathdirs; do
9460       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9461     done
9462   fi
9463
9464
9465
9466
9467
9468
9469
9470           am_save_CPPFLAGS="$CPPFLAGS"
9471
9472   for element in $INCICONV; do
9473     haveit=
9474     for x in $CPPFLAGS; do
9475
9476   acl_save_prefix="$prefix"
9477   prefix="$acl_final_prefix"
9478   acl_save_exec_prefix="$exec_prefix"
9479   exec_prefix="$acl_final_exec_prefix"
9480   eval x=\"$x\"
9481   exec_prefix="$acl_save_exec_prefix"
9482   prefix="$acl_save_prefix"
9483
9484       if test "X$x" = "X$element"; then
9485         haveit=yes
9486         break
9487       fi
9488     done
9489     if test -z "$haveit"; then
9490       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9491     fi
9492   done
9493
9494
9495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9496 $as_echo_n "checking for iconv... " >&6; }
9497 if test "${am_cv_func_iconv+set}" = set; then :
9498   $as_echo_n "(cached) " >&6
9499 else
9500
9501     am_cv_func_iconv="no, consider installing GNU libiconv"
9502     am_cv_lib_iconv=no
9503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h.  */
9505 #include <stdlib.h>
9506 #include <iconv.h>
9507 int
9508 main ()
9509 {
9510 iconv_t cd = iconv_open("","");
9511        iconv(cd,NULL,NULL,NULL,NULL);
9512        iconv_close(cd);
9513   ;
9514   return 0;
9515 }
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"; then :
9518   am_cv_func_iconv=yes
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext \
9521     conftest$ac_exeext conftest.$ac_ext
9522     if test "$am_cv_func_iconv" != yes; then
9523       am_save_LIBS="$LIBS"
9524       LIBS="$LIBS $LIBICONV"
9525       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h.  */
9527 #include <stdlib.h>
9528 #include <iconv.h>
9529 int
9530 main ()
9531 {
9532 iconv_t cd = iconv_open("","");
9533          iconv(cd,NULL,NULL,NULL,NULL);
9534          iconv_close(cd);
9535   ;
9536   return 0;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"; then :
9540   am_cv_lib_iconv=yes
9541         am_cv_func_iconv=yes
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext \
9544     conftest$ac_exeext conftest.$ac_ext
9545       LIBS="$am_save_LIBS"
9546     fi
9547
9548 fi
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9550 $as_echo "$am_cv_func_iconv" >&6; }
9551   if test "$am_cv_func_iconv" = yes; then
9552
9553 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9554
9555   fi
9556   if test "$am_cv_lib_iconv" = yes; then
9557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9558 $as_echo_n "checking how to link with libiconv... " >&6; }
9559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9560 $as_echo "$LIBICONV" >&6; }
9561   else
9562             CPPFLAGS="$am_save_CPPFLAGS"
9563     LIBICONV=
9564     LTLIBICONV=
9565   fi
9566
9567
9568
9569   if test "$am_cv_func_iconv" = yes; then
9570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9571 $as_echo_n "checking for iconv declaration... " >&6; }
9572     if test "${am_cv_proto_iconv+set}" = set; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575
9576       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h.  */
9578
9579 #include <stdlib.h>
9580 #include <iconv.h>
9581 extern
9582 #ifdef __cplusplus
9583 "C"
9584 #endif
9585 #if defined(__STDC__) || defined(__cplusplus)
9586 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9587 #else
9588 size_t iconv();
9589 #endif
9590
9591 int
9592 main ()
9593 {
9594
9595   ;
9596   return 0;
9597 }
9598 _ACEOF
9599 if ac_fn_c_try_compile "$LINENO"; then :
9600   am_cv_proto_iconv_arg1=""
9601 else
9602   am_cv_proto_iconv_arg1="const"
9603 fi
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605       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);"
9606 fi
9607
9608     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9610          }$am_cv_proto_iconv" >&5
9611 $as_echo "${ac_t:-
9612          }$am_cv_proto_iconv" >&6; }
9613
9614 cat >>confdefs.h <<_ACEOF
9615 #define ICONV_CONST $am_cv_proto_iconv_arg1
9616 _ACEOF
9617
9618   fi
9619
9620 # Until we have in-tree GNU iconv:
9621 LIBICONV_DEP=
9622
9623
9624
9625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9626 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9627 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9628   $as_echo_n "(cached) " >&6
9629 else
9630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h.  */
9632 #include <locale.h>
9633 int
9634 main ()
9635 {
9636 return LC_MESSAGES
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 if ac_fn_c_try_link "$LINENO"; then :
9642   am_cv_val_LC_MESSAGES=yes
9643 else
9644   am_cv_val_LC_MESSAGES=no
9645 fi
9646 rm -f core conftest.err conftest.$ac_objext \
9647     conftest$ac_exeext conftest.$ac_ext
9648 fi
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9650 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9651   if test $am_cv_val_LC_MESSAGES = yes; then
9652
9653 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9654
9655   fi
9656
9657
9658
9659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9660 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9661 if test "${am_cv_langinfo_codeset+set}" = set; then :
9662   $as_echo_n "(cached) " >&6
9663 else
9664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h.  */
9666 #include <langinfo.h>
9667 int
9668 main ()
9669 {
9670 char* cs = nl_langinfo(CODESET);
9671   ;
9672   return 0;
9673 }
9674 _ACEOF
9675 if ac_fn_c_try_link "$LINENO"; then :
9676   am_cv_langinfo_codeset=yes
9677 else
9678   am_cv_langinfo_codeset=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext \
9681     conftest$ac_exeext conftest.$ac_ext
9682
9683 fi
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9685 $as_echo "$am_cv_langinfo_codeset" >&6; }
9686   if test $am_cv_langinfo_codeset = yes; then
9687
9688 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9689
9690   fi
9691
9692
9693 # We will need to find libiberty.h and ansidecl.h
9694 saved_CFLAGS="$CFLAGS"
9695 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9696 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9697         strsignal strstr strverscmp \
9698         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9699         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
9700 do
9701   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9703 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9704 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9705   $as_echo_n "(cached) " >&6
9706 else
9707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h.  */
9709 #undef $ac_tr_decl
9710 #define $ac_tr_decl 1
9711
9712 #include "ansidecl.h"
9713 #include "system.h"
9714
9715 int
9716 main ()
9717 {
9718 #ifndef $ac_func
9719 char *(*pfn) = (char *(*)) $ac_func ;
9720 #endif
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 if ac_fn_c_try_compile "$LINENO"; then :
9726   eval "gcc_cv_have_decl_$ac_func=yes"
9727 else
9728   eval "gcc_cv_have_decl_$ac_func=no"
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 fi
9732
9733 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9735 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9736 #define $ac_tr_decl 1
9737 _ACEOF
9738
9739 else
9740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9742 #define $ac_tr_decl 0
9743 _ACEOF
9744
9745 fi
9746
9747 done
9748
9749
9750 for ac_func in getrlimit setrlimit getrusage
9751 do
9752   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9754 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9755 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9756   $as_echo_n "(cached) " >&6
9757 else
9758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h.  */
9760 #undef $ac_tr_decl
9761 #define $ac_tr_decl 1
9762
9763 #include "ansidecl.h"
9764 #include "system.h"
9765 #ifdef HAVE_SYS_RESOURCE_H
9766 #include <sys/resource.h>
9767 #endif
9768
9769
9770 int
9771 main ()
9772 {
9773 #ifndef $ac_func
9774 char *(*pfn) = (char *(*)) $ac_func ;
9775 #endif
9776   ;
9777   return 0;
9778 }
9779 _ACEOF
9780 if ac_fn_c_try_compile "$LINENO"; then :
9781   eval "gcc_cv_have_decl_$ac_func=yes"
9782 else
9783   eval "gcc_cv_have_decl_$ac_func=no"
9784 fi
9785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 fi
9787
9788 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9790 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9791 #define $ac_tr_decl 1
9792 _ACEOF
9793
9794 else
9795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9797 #define $ac_tr_decl 0
9798 _ACEOF
9799
9800 fi
9801
9802 done
9803
9804
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h.  */
9807
9808 #include "ansidecl.h"
9809 #include "system.h"
9810 #ifdef HAVE_SYS_RESOURCE_H
9811 #include <sys/resource.h>
9812 #endif
9813
9814 int
9815 main ()
9816 {
9817 rlim_t l = 0;
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 if ac_fn_c_try_compile "$LINENO"; then :
9823
9824 else
9825
9826 $as_echo "#define rlim_t long" >>confdefs.h
9827
9828 fi
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830
9831 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9832 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9833 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9834 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9835 for ac_func in ldgetname
9836 do
9837   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9839 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9840 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9841   $as_echo_n "(cached) " >&6
9842 else
9843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h.  */
9845 #undef $ac_tr_decl
9846 #define $ac_tr_decl 1
9847
9848 #include "ansidecl.h"
9849 #include "system.h"
9850 #ifdef HAVE_LDFCN_H
9851 #undef FREAD
9852 #undef FWRITE
9853 #include <ldfcn.h>
9854 #endif
9855
9856
9857 int
9858 main ()
9859 {
9860 #ifndef $ac_func
9861 char *(*pfn) = (char *(*)) $ac_func ;
9862 #endif
9863   ;
9864   return 0;
9865 }
9866 _ACEOF
9867 if ac_fn_c_try_compile "$LINENO"; then :
9868   eval "gcc_cv_have_decl_$ac_func=yes"
9869 else
9870   eval "gcc_cv_have_decl_$ac_func=no"
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 fi
9874
9875 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9877 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9878 #define $ac_tr_decl 1
9879 _ACEOF
9880
9881 else
9882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9884 #define $ac_tr_decl 0
9885 _ACEOF
9886
9887 fi
9888
9889 done
9890
9891
9892 for ac_func in times
9893 do
9894   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9896 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9897 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9898   $as_echo_n "(cached) " >&6
9899 else
9900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h.  */
9902 #undef $ac_tr_decl
9903 #define $ac_tr_decl 1
9904
9905 #include "ansidecl.h"
9906 #include "system.h"
9907 #ifdef HAVE_SYS_TIMES_H
9908 #include <sys/times.h>
9909 #endif
9910
9911
9912 int
9913 main ()
9914 {
9915 #ifndef $ac_func
9916 char *(*pfn) = (char *(*)) $ac_func ;
9917 #endif
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 if ac_fn_c_try_compile "$LINENO"; then :
9923   eval "gcc_cv_have_decl_$ac_func=yes"
9924 else
9925   eval "gcc_cv_have_decl_$ac_func=no"
9926 fi
9927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9928 fi
9929
9930 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9932 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9933 #define $ac_tr_decl 1
9934 _ACEOF
9935
9936 else
9937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9939 #define $ac_tr_decl 0
9940 _ACEOF
9941
9942 fi
9943
9944 done
9945
9946
9947 for ac_func in sigaltstack
9948 do
9949   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9951 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9952 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h.  */
9957 #undef $ac_tr_decl
9958 #define $ac_tr_decl 1
9959
9960 #include "ansidecl.h"
9961 #include "system.h"
9962 #include <signal.h>
9963
9964
9965 int
9966 main ()
9967 {
9968 #ifndef $ac_func
9969 char *(*pfn) = (char *(*)) $ac_func ;
9970 #endif
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_compile "$LINENO"; then :
9976   eval "gcc_cv_have_decl_$ac_func=yes"
9977 else
9978   eval "gcc_cv_have_decl_$ac_func=no"
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 fi
9982
9983 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9985 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9986 #define $ac_tr_decl 1
9987 _ACEOF
9988
9989 else
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9992 #define $ac_tr_decl 0
9993 _ACEOF
9994
9995 fi
9996
9997 done
9998
9999
10000 # More time-related stuff.
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10002 $as_echo_n "checking for struct tms... " >&6; }
10003 if test "${ac_cv_struct_tms+set}" = set; then :
10004   $as_echo_n "(cached) " >&6
10005 else
10006
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h.  */
10009
10010 #include "ansidecl.h"
10011 #include "system.h"
10012 #ifdef HAVE_SYS_TIMES_H
10013 #include <sys/times.h>
10014 #endif
10015
10016 int
10017 main ()
10018 {
10019 struct tms tms;
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025   ac_cv_struct_tms=yes
10026 else
10027   ac_cv_struct_tms=no
10028 fi
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10032 $as_echo "$ac_cv_struct_tms" >&6; }
10033 if test $ac_cv_struct_tms = yes; then
10034
10035 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10036
10037 fi
10038
10039 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10040 # revisit after autoconf 2.50.
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10042 $as_echo_n "checking for clock_t... " >&6; }
10043 if test "${gcc_cv_type_clock_t+set}" = set; then :
10044   $as_echo_n "(cached) " >&6
10045 else
10046
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h.  */
10049
10050 #include "ansidecl.h"
10051 #include "system.h"
10052
10053 int
10054 main ()
10055 {
10056 clock_t x;
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 if ac_fn_c_try_compile "$LINENO"; then :
10062   gcc_cv_type_clock_t=yes
10063 else
10064   gcc_cv_type_clock_t=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10069 $as_echo "$gcc_cv_type_clock_t" >&6; }
10070 if test $gcc_cv_type_clock_t = yes; then
10071
10072 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10073
10074 fi
10075
10076 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10077 CFLAGS="$saved_CFLAGS"
10078
10079 # Check whether --enable-initfini-array was given.
10080 if test "${enable_initfini_array+set}" = set; then :
10081   enableval=$enable_initfini_array;
10082 else
10083
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10085 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10086 if test "${gcc_cv_initfini_array+set}" = set; then :
10087   $as_echo_n "(cached) " >&6
10088 else
10089     if test "$cross_compiling" = yes; then :
10090   gcc_cv_initfini_array=no
10091 else
10092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h.  */
10094
10095 static int x = -1;
10096 int main (void) { return x; }
10097 int foo (void) { x = 0; }
10098 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10099 _ACEOF
10100 if ac_fn_c_try_run "$LINENO"; then :
10101   gcc_cv_initfini_array=yes
10102 else
10103   gcc_cv_initfini_array=no
10104 fi
10105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10106   conftest.$ac_objext conftest.beam conftest.$ac_ext
10107 fi
10108
10109 fi
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10111 $as_echo "$gcc_cv_initfini_array" >&6; }
10112   enable_initfini_array=$gcc_cv_initfini_array
10113
10114 fi
10115
10116 if test $enable_initfini_array = yes; then
10117
10118 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10119
10120 fi
10121
10122 # mkdir takes a single argument on some systems.
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10124 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10125 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10126   $as_echo_n "(cached) " >&6
10127 else
10128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h.  */
10130
10131 #include <sys/types.h>
10132 #ifdef HAVE_SYS_STAT_H
10133 # include <sys/stat.h>
10134 #endif
10135 #ifdef HAVE_UNISTD_H
10136 # include <unistd.h>
10137 #endif
10138 #ifdef HAVE_DIRECT_H
10139 # include <direct.h>
10140 #endif
10141 int
10142 main ()
10143 {
10144 mkdir ("foo", 0);
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_c_try_compile "$LINENO"; then :
10150   gcc_cv_mkdir_takes_one_arg=no
10151 else
10152   gcc_cv_mkdir_takes_one_arg=yes
10153 fi
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155 fi
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10157 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10158 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10159
10160 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10161
10162 fi
10163
10164
10165 # File extensions
10166 manext='.1'
10167 objext='.o'
10168
10169
10170
10171 # With Setjmp/Longjmp based exception handling.
10172 # Check whether --enable-sjlj-exceptions was given.
10173 if test "${enable_sjlj_exceptions+set}" = set; then :
10174   enableval=$enable_sjlj_exceptions; case $target in
10175   *-*-hpux10*)
10176     if test $enableval != yes; then
10177       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10178 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10179       enableval=yes
10180     fi
10181     ;;
10182 esac
10183 force_sjlj_exceptions=yes
10184 else
10185   case $target in
10186   *-*-hpux10*)
10187     force_sjlj_exceptions=yes
10188     enableval=yes
10189     ;;
10190   *)
10191     force_sjlj_exceptions=no
10192     ;;
10193 esac
10194 fi
10195
10196 if test $force_sjlj_exceptions = yes; then
10197   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10198
10199 cat >>confdefs.h <<_ACEOF
10200 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10201 _ACEOF
10202
10203 fi
10204
10205 # For platforms with the unwind ABI which includes an unwind library,
10206 # libunwind, we can choose to use the system libunwind.
10207 # config.gcc also contains tests of with_system_libunwind.
10208
10209
10210 # Check whether --with-system-libunwind was given.
10211 if test "${with_system_libunwind+set}" = set; then :
10212   withval=$with_system_libunwind;
10213 fi
10214
10215   # If system-libunwind was not specifically set, pick a default setting.
10216   if test x$with_system_libunwind = x; then
10217     case ${target} in
10218       ia64-*-hpux*) with_system_libunwind=yes ;;
10219       *) with_system_libunwind=no ;;
10220     esac
10221   fi
10222   # Based on system-libunwind and target, do we have ipinfo?
10223   if  test x$with_system_libunwind = xyes; then
10224     case ${target} in
10225       ia64-*-*) have_unwind_getipinfo=no ;;
10226       *) have_unwind_getipinfo=yes ;;
10227     esac
10228   else
10229     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10230
10231     case ${target} in
10232       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10233       *) have_unwind_getipinfo=yes ;;
10234     esac
10235
10236   fi
10237
10238   if test x$have_unwind_getipinfo = xyes; then
10239
10240 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10241
10242   fi
10243
10244
10245 # --------------------------------------------------------
10246 # Build, host, and target specific configuration fragments
10247 # --------------------------------------------------------
10248
10249 # Collect build-machine-specific information.
10250 . ${srcdir}/config.build
10251
10252 # Collect host-machine-specific information.
10253 . ${srcdir}/config.host
10254
10255 target_gtfiles=
10256
10257 # Collect target-machine-specific information.
10258 . ${srcdir}/config.gcc
10259
10260 extra_objs="${host_extra_objs} ${extra_objs}"
10261 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10262
10263 # Default the target-machine variables that were not explicitly set.
10264 if test x"$tm_file" = x
10265 then tm_file=$cpu_type/$cpu_type.h; fi
10266
10267 if test x"$extra_headers" = x
10268 then extra_headers=; fi
10269
10270 if test x$md_file = x
10271 then md_file=$cpu_type/$cpu_type.md; fi
10272
10273 if test x$out_file = x
10274 then out_file=$cpu_type/$cpu_type.c; fi
10275
10276 if test x"$tmake_file" = x
10277 then tmake_file=$cpu_type/t-$cpu_type
10278 fi
10279
10280 if test x"$dwarf2" = xyes
10281 then tm_file="$tm_file tm-dwarf2.h"
10282 fi
10283
10284 # Say what files are being used for the output code and MD file.
10285 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10286 echo "Using \`$srcdir/config/$md_file' as machine description file."
10287
10288 # If any of the xm_file variables contain nonexistent files, warn
10289 # about them and drop them.
10290
10291 bx=
10292 for x in $build_xm_file; do
10293   if    test -f $srcdir/config/$x
10294   then      bx="$bx $x"
10295   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10296 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10297   fi
10298 done
10299 build_xm_file="$bx"
10300
10301 hx=
10302 for x in $host_xm_file; do
10303   if    test -f $srcdir/config/$x
10304   then      hx="$hx $x"
10305   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10306 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10307   fi
10308 done
10309 host_xm_file="$hx"
10310
10311 tx=
10312 for x in $xm_file; do
10313   if    test -f $srcdir/config/$x
10314   then      tx="$tx $x"
10315   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10316 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10317   fi
10318 done
10319 xm_file="$tx"
10320
10321 count=a
10322 for f in $tm_file; do
10323         count=${count}x
10324 done
10325 if test $count = ax; then
10326         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10327 else
10328         echo "Using the following target machine macro files:"
10329         for f in $tm_file; do
10330                 echo "  $srcdir/config/$f"
10331         done
10332 fi
10333
10334 if test x$need_64bit_hwint = xyes; then
10335
10336 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10337
10338 fi
10339
10340 if test x$use_long_long_for_widest_fast_int = xyes; then
10341
10342 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10343
10344 fi
10345
10346 count=a
10347 for f in $host_xm_file; do
10348         count=${count}x
10349 done
10350 if test $count = a; then
10351         :
10352 elif test $count = ax; then
10353         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10354 else
10355         echo "Using the following host machine macro files:"
10356         for f in $host_xm_file; do
10357                 echo "  $srcdir/config/$f"
10358         done
10359 fi
10360 echo "Using ${out_host_hook_obj} for host machine hooks."
10361
10362 if test "$host_xm_file" != "$build_xm_file"; then
10363         count=a
10364         for f in $build_xm_file; do
10365                 count=${count}x
10366         done
10367         if test $count = a; then
10368                 :
10369         elif test $count = ax; then
10370                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10371         else
10372                 echo "Using the following build machine macro files:"
10373                 for f in $build_xm_file; do
10374                         echo "  $srcdir/config/$f"
10375                 done
10376         fi
10377 fi
10378
10379 case ${host} in
10380   powerpc*-*-darwin*)
10381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10382 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10383 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10384   $as_echo_n "(cached) " >&6
10385 else
10386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h.  */
10388
10389 #include <sys/cdefs.h>
10390 #include <sys/signal.h>
10391 #include <ucontext.h>
10392 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10393
10394 _ACEOF
10395 if ac_fn_c_try_compile "$LINENO"; then :
10396   gcc_cv_mcontext_underscores=no
10397 else
10398   gcc_cv_mcontext_underscores=yes
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 fi
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10403 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10404       if test $gcc_cv_mcontext_underscores = yes; then
10405
10406 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10407
10408       fi
10409     ;;
10410 esac
10411
10412 # ---------
10413 # Threading
10414 # ---------
10415
10416 # Check if a valid thread package
10417 case ${enable_threads} in
10418   "" | no)
10419     # No threads
10420     target_thread_file='single'
10421     ;;
10422   yes)
10423     # default
10424     target_thread_file='single'
10425     ;;
10426   aix | dce | gnat | irix | posix | posix95 | rtems | \
10427   single | solaris | vxworks | win32 | mipssde)
10428     target_thread_file=${enable_threads}
10429     ;;
10430   *)
10431     echo "${enable_threads} is an unknown thread package" 1>&2
10432     exit 1
10433     ;;
10434 esac
10435
10436 if test x${thread_file} = x; then
10437   # No thread file set by target-specific clauses in config.gcc,
10438   # so use file chosen by default logic above
10439   thread_file=${target_thread_file}
10440 fi
10441
10442 # Make gthr-default.h if we have a thread file.
10443 gthread_flags=
10444 if test $thread_file != single; then
10445   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10446   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10447     rm -f gthr-default.h-t
10448   else
10449     mv -f gthr-default.h-t gthr-default.h
10450   fi
10451   gthread_flags=-DHAVE_GTHR_DEFAULT
10452 fi
10453
10454
10455 # --------
10456 # UNSORTED
10457 # --------
10458
10459 use_cxa_atexit=no
10460 if test x$enable___cxa_atexit = xyes || \
10461    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10462   if test x$host = x$target; then
10463     case $host in
10464       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10465       # keyed to flag_use_cxa_atexit
10466       *-*-mingw32*)
10467         use_cxa_atexit=yes
10468         ;;
10469       *)
10470         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10471 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10472   use_cxa_atexit=yes
10473 else
10474   echo "__cxa_atexit can't be enabled on this target"
10475 fi
10476
10477         ;;
10478     esac
10479   else
10480     # We can't check for __cxa_atexit when building a cross, so assume
10481     # it is available
10482     use_cxa_atexit=yes
10483   fi
10484   if test x$use_cxa_atexit = xyes; then
10485
10486 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10487
10488   fi
10489 fi
10490
10491 # Look for a file containing extra machine modes.
10492 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10493   extra_modes_file='$(srcdir)'/config/${extra_modes}
10494
10495
10496 cat >>confdefs.h <<_ACEOF
10497 #define EXTRA_MODES_FILE "config/$extra_modes"
10498 _ACEOF
10499
10500 fi
10501
10502 # Convert extra_options into a form suitable for Makefile use.
10503 extra_opt_files=
10504 for f in $extra_options; do
10505   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10506 done
10507
10508
10509 # auto-host.h is the file containing items generated by autoconf and is
10510 # the first file included by config.h.
10511 # If host=build, it is correct to have bconfig include auto-host.h
10512 # as well.  If host!=build, we are in error and need to do more
10513 # work to find out the build config parameters.
10514 if test x$host = x$build
10515 then
10516         build_auto=auto-host.h
10517 else
10518         # We create a subdir, then run autoconf in the subdir.
10519         # To prevent recursion we set host and build for the new
10520         # invocation of configure to the build for this invocation
10521         # of configure.
10522         tempdir=build.$$
10523         rm -rf $tempdir
10524         mkdir $tempdir
10525         cd $tempdir
10526         case ${srcdir} in
10527         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10528         *) realsrcdir=../${srcdir};;
10529         esac
10530         saved_CFLAGS="${CFLAGS}"
10531         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10532         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10533         ${realsrcdir}/configure \
10534                 --enable-languages=${enable_languages-all} \
10535                 --target=$target_alias --host=$build_alias --build=$build_alias
10536         CFLAGS="${saved_CFLAGS}"
10537
10538         # We just finished tests for the build machine, so rename
10539         # the file auto-build.h in the gcc directory.
10540         mv auto-host.h ../auto-build.h
10541         cd ..
10542         rm -rf $tempdir
10543         build_auto=auto-build.h
10544 fi
10545
10546
10547 tm_file="${tm_file} defaults.h"
10548 tm_p_file="${tm_p_file} tm-preds.h"
10549 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10550 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10551 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10552 # put this back in temporarily.
10553 xm_file="auto-host.h ansidecl.h ${xm_file}"
10554
10555 # --------
10556 # UNSORTED
10557 # --------
10558
10559 # Compile in configure arguments.
10560 if test -f configargs.h ; then
10561         # Being re-configured.
10562         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10563         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10564 else
10565         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10566 fi
10567
10568 # Double all backslashes and backslash all quotes to turn
10569 # gcc_config_arguments into a C string.
10570 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10571 $gcc_config_arguments
10572 EOF
10573 gcc_config_arguments_str=`cat conftest.out`
10574 rm -f conftest.out
10575
10576 cat > configargs.h <<EOF
10577 /* Generated automatically. */
10578 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10579 static const char thread_model[] = "$thread_file";
10580
10581 static const struct {
10582   const char *name, *value;
10583 } configure_default_options[] = $configure_default_options;
10584 EOF
10585
10586 gcc_BASEVER=`cat $srcdir/BASE-VER`
10587 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10588 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10589 if test -f $srcdir/REVISION ; then
10590         gcc_REVISION=`cat $srcdir/REVISION`
10591 else
10592         gcc_REVISION=""
10593 fi
10594 cat > plugin-version.h <<EOF
10595 #include "configargs.h"
10596
10597 static char basever[] = "$gcc_BASEVER";
10598 static char datestamp[] = "$gcc_DATESTAMP";
10599 static char devphase[] = "$gcc_DEVPHASE";
10600 static char revision[] = "$gcc_REVISION";
10601
10602 /* FIXME plugins: We should make the version information more precise.
10603    One way to do is to add a checksum. */
10604
10605 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10606                                                 devphase, revision,
10607                                                 configuration_arguments};
10608 EOF
10609
10610 # Internationalization
10611 # If we haven't got the data from the intl directory,
10612 # assume NLS is disabled.
10613 USE_NLS=no
10614 LIBINTL=
10615 LIBINTL_DEP=
10616 INCINTL=
10617 XGETTEXT=
10618 GMSGFMT=
10619 POSUB=
10620
10621 if test -f  ../intl/config.intl; then
10622   .  ../intl/config.intl
10623 fi
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10625 $as_echo_n "checking whether NLS is requested... " >&6; }
10626 if test x"$USE_NLS" != xyes; then
10627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628 $as_echo "no" >&6; }
10629 else
10630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10631 $as_echo "yes" >&6; }
10632
10633 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10634
10635
10636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10637 $as_echo_n "checking for catalogs to be installed... " >&6; }
10638   # Look for .po and .gmo files in the source directory.
10639   CATALOGS=
10640   XLINGUAS=
10641   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10642     # If there aren't any .gmo files the shell will give us the
10643     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10644     # weeded out.
10645     case "$cat" in *\**)
10646       continue;;
10647     esac
10648     # The quadruple backslash is collapsed to a double backslash
10649     # by the backticks, then collapsed again by the double quotes,
10650     # leaving us with one backslash in the sed expression (right
10651     # before the dot that mustn't act as a wildcard).
10652     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10653     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10654     # The user is allowed to set LINGUAS to a list of languages to
10655     # install catalogs for.  If it's empty that means "all of them."
10656     if test "x$LINGUAS" = x; then
10657       CATALOGS="$CATALOGS $cat"
10658       XLINGUAS="$XLINGUAS $lang"
10659     else
10660       case "$LINGUAS" in *$lang*)
10661         CATALOGS="$CATALOGS $cat"
10662         XLINGUAS="$XLINGUAS $lang"
10663         ;;
10664       esac
10665     fi
10666   done
10667   LINGUAS="$XLINGUAS"
10668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10669 $as_echo "$LINGUAS" >&6; }
10670
10671
10672     DATADIRNAME=share
10673
10674   INSTOBJEXT=.mo
10675
10676   GENCAT=gencat
10677
10678   CATOBJEXT=.gmo
10679
10680 fi
10681
10682 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10683 # -liconv on the link line twice.
10684 case "$LIBINTL" in *$LIBICONV*)
10685         LIBICONV= ;;
10686 esac
10687
10688 # Check whether --enable-secureplt was given.
10689 if test "${enable_secureplt+set}" = set; then :
10690   enableval=$enable_secureplt;
10691 fi
10692
10693
10694 # Check whether --enable-leading-mingw64-underscores was given.
10695 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10696   enableval=$enable_leading_mingw64_underscores;
10697 fi
10698
10699 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
10700
10701 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10702
10703 fi
10704
10705 # Check whether --enable-cld was given.
10706 if test "${enable_cld+set}" = set; then :
10707   enableval=$enable_cld;
10708 else
10709   enable_cld=no
10710 fi
10711
10712
10713 # Check whether --enable-frame-pointer was given.
10714 if test "${enable_frame_pointer+set}" = set; then :
10715   enableval=$enable_frame_pointer;
10716 else
10717
10718 case $target_os in
10719 linux* | darwin[8912]*)
10720   # Enable -fomit-frame-pointer by default for Linux and Darwin with
10721   # DWARF2.
10722   enable_frame_pointer=no
10723   ;;
10724 *)
10725   enable_frame_pointer=yes
10726   ;;
10727 esac
10728
10729 fi
10730
10731
10732 # Windows32 Registry support for specifying GCC installation paths.
10733 # Check whether --enable-win32-registry was given.
10734 if test "${enable_win32_registry+set}" = set; then :
10735   enableval=$enable_win32_registry;
10736 fi
10737
10738
10739 case $host_os in
10740   win32 | pe | cygwin* | mingw32* | uwin*)
10741     if test "x$enable_win32_registry" != xno; then
10742       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10743 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10744 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10745   $as_echo_n "(cached) " >&6
10746 else
10747   ac_func_search_save_LIBS=$LIBS
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h.  */
10750
10751 /* Override any GCC internal prototype to avoid an error.
10752    Use char because int might match the return type of a GCC
10753    builtin and then its argument prototype would still apply.  */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char RegOpenKeyExA ();
10758 int
10759 main ()
10760 {
10761 return RegOpenKeyExA ();
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 for ac_lib in '' advapi32; do
10767   if test -z "$ac_lib"; then
10768     ac_res="none required"
10769   else
10770     ac_res=-l$ac_lib
10771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10772   fi
10773   if ac_fn_c_try_link "$LINENO"; then :
10774   ac_cv_search_RegOpenKeyExA=$ac_res
10775 fi
10776 rm -f core conftest.err conftest.$ac_objext \
10777     conftest$ac_exeext
10778   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10779   break
10780 fi
10781 done
10782 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10783
10784 else
10785   ac_cv_search_RegOpenKeyExA=no
10786 fi
10787 rm conftest.$ac_ext
10788 LIBS=$ac_func_search_save_LIBS
10789 fi
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10791 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10792 ac_res=$ac_cv_search_RegOpenKeyExA
10793 if test "$ac_res" != no; then :
10794   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10795
10796 else
10797   enable_win32_registry=no
10798 fi
10799
10800     fi
10801
10802     if test "x$enable_win32_registry" != xno; then
10803
10804 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10805
10806
10807       if test "x$enable_win32_registry" != xyes \
10808          && test "x$enable_win32_registry" != x; then
10809
10810 cat >>confdefs.h <<_ACEOF
10811 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10812 _ACEOF
10813
10814       fi
10815     fi
10816   ;;
10817 esac
10818
10819 # Get an absolute path to the GCC top-level source directory
10820 holddir=`${PWDCMD-pwd}`
10821 cd $srcdir
10822 topdir=`${PWDCMD-pwd}`
10823 cd $holddir
10824
10825 # Conditionalize the makefile for this host machine.
10826 xmake_file=
10827 for f in ${host_xmake_file}
10828 do
10829         if test -f ${srcdir}/config/$f
10830         then
10831                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10832         fi
10833 done
10834
10835 # Conditionalize the makefile for this target machine.
10836 tmake_file_=
10837 for f in ${tmake_file}
10838 do
10839         if test -f ${srcdir}/config/$f
10840         then
10841                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10842         fi
10843 done
10844 tmake_file="${tmake_file_}"
10845
10846 out_object_file=`basename $out_file .c`.o
10847
10848 tm_file_list="options.h"
10849 tm_include_list="options.h insn-constants.h"
10850 for f in $tm_file; do
10851   case $f in
10852     ./* )
10853        f=`echo $f | sed 's/^..//'`
10854        tm_file_list="${tm_file_list} $f"
10855        tm_include_list="${tm_include_list} $f"
10856        ;;
10857     defaults.h )
10858        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10859        tm_include_list="${tm_include_list} $f"
10860        ;;
10861     * )
10862        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10863        tm_include_list="${tm_include_list} config/$f"
10864        ;;
10865   esac
10866 done
10867
10868 tm_p_file_list=
10869 tm_p_include_list=
10870 for f in $tm_p_file; do
10871   case $f in
10872     tm-preds.h )
10873        tm_p_file_list="${tm_p_file_list} $f"
10874        tm_p_include_list="${tm_p_include_list} $f"
10875        ;;
10876     * )
10877        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10878        tm_p_include_list="${tm_p_include_list} config/$f"
10879   esac
10880 done
10881
10882 xm_file_list=
10883 xm_include_list=
10884 for f in $xm_file; do
10885   case $f in
10886     ansidecl.h )
10887        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10888        xm_include_list="${xm_include_list} $f"
10889        ;;
10890     auto-host.h )
10891        xm_file_list="${xm_file_list} $f"
10892        xm_include_list="${xm_include_list} $f"
10893        ;;
10894     * )
10895        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10896        xm_include_list="${xm_include_list} config/$f"
10897        ;;
10898   esac
10899 done
10900
10901 host_xm_file_list=
10902 host_xm_include_list=
10903 for f in $host_xm_file; do
10904   case $f in
10905     ansidecl.h )
10906        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10907        host_xm_include_list="${host_xm_include_list} $f"
10908        ;;
10909     auto-host.h )
10910        host_xm_file_list="${host_xm_file_list} $f"
10911        host_xm_include_list="${host_xm_include_list} $f"
10912        ;;
10913     * )
10914        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10915        host_xm_include_list="${host_xm_include_list} config/$f"
10916        ;;
10917   esac
10918 done
10919
10920 build_xm_file_list=
10921 for f in $build_xm_file; do
10922   case $f in
10923     ansidecl.h )
10924        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10925        build_xm_include_list="${build_xm_include_list} $f"
10926        ;;
10927     auto-build.h | auto-host.h )
10928        build_xm_file_list="${build_xm_file_list} $f"
10929        build_xm_include_list="${build_xm_include_list} $f"
10930        ;;
10931     * )
10932        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10933        build_xm_include_list="${build_xm_include_list} config/$f"
10934        ;;
10935   esac
10936 done
10937
10938 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10939 # cross-compiler which does not use the native headers and libraries.
10940 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10941 CROSS=
10942 ALL=all.internal
10943 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10944
10945 if test "x$with_build_sysroot" != x; then
10946   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10947 else
10948   # This value is used, even on a native system, because
10949   # CROSS_SYSTEM_HEADER_DIR is just
10950   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10951   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10952 fi
10953
10954 if test x$host != x$target
10955 then
10956         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10957         ALL=all.cross
10958         SYSTEM_HEADER_DIR=$build_system_header_dir
10959         case "$host","$target" in
10960         # Darwin crosses can use the host system's libraries and headers,
10961         # because of the fat library support.  Of course, it must be the
10962         # same version of Darwin on both sides.  Allow the user to
10963         # just say --target=foo-darwin without a version number to mean
10964         # "the version on this system".
10965             *-*-darwin*,*-*-darwin*)
10966                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10967                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10968                 if test $hostos = $targetos -o $targetos = darwin ; then
10969                     CROSS=
10970                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10971                     with_headers=yes
10972                 fi
10973                 ;;
10974
10975             i?86-*-*,x86_64-*-* \
10976             | powerpc*-*-*,powerpc64*-*-*)
10977                 CROSS="$CROSS -DNATIVE_CROSS" ;;
10978         esac
10979 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10980         SYSTEM_HEADER_DIR=$build_system_header_dir
10981 fi
10982
10983 # If this is a cross-compiler that does not
10984 # have its own set of headers then define
10985 # inhibit_libc
10986
10987 # If this is using newlib, without having the headers available now,
10988 # then define inhibit_libc in LIBGCC2_CFLAGS.
10989 # This prevents libgcc2 from containing any code which requires libc
10990 # support.
10991 : ${inhibit_libc=false}
10992 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10993        test x$with_newlib = xyes ; } &&
10994      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10995        inhibit_libc=true
10996 fi
10997
10998
10999 # When building gcc with a cross-compiler, we need to adjust things so
11000 # that the generator programs are still built with the native compiler.
11001 # Also, we cannot run fixincludes.
11002
11003 # These are the normal (build=host) settings:
11004 CC_FOR_BUILD='$(CC)'
11005 BUILD_CFLAGS='$(ALL_CFLAGS)'
11006 BUILD_LDFLAGS='$(LDFLAGS)'
11007 STMP_FIXINC=stmp-fixinc
11008
11009 # And these apply if build != host, or we are generating coverage data
11010 if test x$build != x$host || test "x$coverage_flags" != x
11011 then
11012     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11013     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11014 fi
11015
11016 # Expand extra_headers to include complete path.
11017 # This substitutes for lots of t-* files.
11018 extra_headers_list=
11019 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11020 for file in ${extra_headers} ; do
11021   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11022 done
11023
11024 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11025 if test x"$use_gcc_tgmath" = xyes
11026 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11027 fi
11028
11029 # Define collect2 in Makefile.
11030 case $host_can_use_collect2 in
11031   no) collect2= ;;
11032   *) collect2='collect2$(exeext)' ;;
11033 esac
11034
11035
11036 # Add a definition of USE_COLLECT2 if system wants one.
11037 case $use_collect2 in
11038   no) use_collect2= ;;
11039   "") ;;
11040   *)
11041     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11042     xm_defines="${xm_defines} USE_COLLECT2"
11043     case $host_can_use_collect2 in
11044       no)
11045         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11046         ;;
11047     esac
11048     ;;
11049 esac
11050
11051 # ---------------------------
11052 # Assembler & linker features
11053 # ---------------------------
11054
11055 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11056 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11057 # However when ld-new is first executed from the build tree, libtool will
11058 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11059 # to the build tree.  While doing this we need to use the previous-stage
11060 # linker, or we have an infinite loop.  The presence of a shell script as
11061 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11062 # the gcc/collect-ld script.  So we need to know how libtool works, or
11063 # exec-tool will fail.
11064
11065
11066 case `pwd` in
11067   *\ * | *\     *)
11068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11069 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11070 esac
11071
11072
11073
11074 macro_version='2.2.7a'
11075 macro_revision='1.3134'
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089 ltmain="$ac_aux_dir/ltmain.sh"
11090
11091 # Backslashify metacharacters that are still active within
11092 # double-quoted strings.
11093 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11094
11095 # Same as above, but do not quote variable references.
11096 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11097
11098 # Sed substitution to delay expansion of an escaped shell variable in a
11099 # double_quote_subst'ed string.
11100 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11101
11102 # Sed substitution to delay expansion of an escaped single quote.
11103 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11104
11105 # Sed substitution to avoid accidental globbing in evaled expressions
11106 no_glob_subst='s/\*/\\\*/g'
11107
11108 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11110 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11111
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11113 $as_echo_n "checking how to print strings... " >&6; }
11114 # Test print first, because it will be a builtin if present.
11115 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11116    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11117   ECHO='print -r --'
11118 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11119   ECHO='printf %s\n'
11120 else
11121   # Use this function as a fallback that always works.
11122   func_fallback_echo ()
11123   {
11124     eval 'cat <<_LTECHO_EOF
11125 $1
11126 _LTECHO_EOF'
11127   }
11128   ECHO='func_fallback_echo'
11129 fi
11130
11131 # func_echo_all arg...
11132 # Invoke $ECHO with all args, space-separated.
11133 func_echo_all ()
11134 {
11135     $ECHO ""
11136 }
11137
11138 case "$ECHO" in
11139   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11140 $as_echo "printf" >&6; } ;;
11141   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11142 $as_echo "print -r" >&6; } ;;
11143   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11144 $as_echo "cat" >&6; } ;;
11145 esac
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11162 if test "${ac_cv_path_SED+set}" = set; then :
11163   $as_echo_n "(cached) " >&6
11164 else
11165             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11166      for ac_i in 1 2 3 4 5 6 7; do
11167        ac_script="$ac_script$as_nl$ac_script"
11168      done
11169      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11170      { ac_script=; unset ac_script;}
11171      if test -z "$SED"; then
11172   ac_path_SED_found=false
11173   # Loop through the user's path and test for each of PROGNAME-LIST
11174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11176 do
11177   IFS=$as_save_IFS
11178   test -z "$as_dir" && as_dir=.
11179     for ac_prog in sed gsed; do
11180     for ac_exec_ext in '' $ac_executable_extensions; do
11181       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11182       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11183 # Check for GNU ac_path_SED and select it if it is found.
11184   # Check for GNU $ac_path_SED
11185 case `"$ac_path_SED" --version 2>&1` in
11186 *GNU*)
11187   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11188 *)
11189   ac_count=0
11190   $as_echo_n 0123456789 >"conftest.in"
11191   while :
11192   do
11193     cat "conftest.in" "conftest.in" >"conftest.tmp"
11194     mv "conftest.tmp" "conftest.in"
11195     cp "conftest.in" "conftest.nl"
11196     $as_echo '' >> "conftest.nl"
11197     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11198     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11199     as_fn_arith $ac_count + 1 && ac_count=$as_val
11200     if test $ac_count -gt ${ac_path_SED_max-0}; then
11201       # Best one so far, save it but keep looking for a better one
11202       ac_cv_path_SED="$ac_path_SED"
11203       ac_path_SED_max=$ac_count
11204     fi
11205     # 10*(2^10) chars as input seems more than enough
11206     test $ac_count -gt 10 && break
11207   done
11208   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11209 esac
11210
11211       $ac_path_SED_found && break 3
11212     done
11213   done
11214   done
11215 IFS=$as_save_IFS
11216   if test -z "$ac_cv_path_SED"; then
11217     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11218   fi
11219 else
11220   ac_cv_path_SED=$SED
11221 fi
11222
11223 fi
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11225 $as_echo "$ac_cv_path_SED" >&6; }
11226  SED="$ac_cv_path_SED"
11227   rm -f conftest.sed
11228
11229 test -z "$SED" && SED=sed
11230 Xsed="$SED -e 1s/^X//"
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11243 $as_echo_n "checking for fgrep... " >&6; }
11244 if test "${ac_cv_path_FGREP+set}" = set; then :
11245   $as_echo_n "(cached) " >&6
11246 else
11247   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11248    then ac_cv_path_FGREP="$GREP -F"
11249    else
11250      if test -z "$FGREP"; then
11251   ac_path_FGREP_found=false
11252   # Loop through the user's path and test for each of PROGNAME-LIST
11253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11255 do
11256   IFS=$as_save_IFS
11257   test -z "$as_dir" && as_dir=.
11258     for ac_prog in fgrep; do
11259     for ac_exec_ext in '' $ac_executable_extensions; do
11260       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11261       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11262 # Check for GNU ac_path_FGREP and select it if it is found.
11263   # Check for GNU $ac_path_FGREP
11264 case `"$ac_path_FGREP" --version 2>&1` in
11265 *GNU*)
11266   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11267 *)
11268   ac_count=0
11269   $as_echo_n 0123456789 >"conftest.in"
11270   while :
11271   do
11272     cat "conftest.in" "conftest.in" >"conftest.tmp"
11273     mv "conftest.tmp" "conftest.in"
11274     cp "conftest.in" "conftest.nl"
11275     $as_echo 'FGREP' >> "conftest.nl"
11276     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11277     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11278     as_fn_arith $ac_count + 1 && ac_count=$as_val
11279     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11280       # Best one so far, save it but keep looking for a better one
11281       ac_cv_path_FGREP="$ac_path_FGREP"
11282       ac_path_FGREP_max=$ac_count
11283     fi
11284     # 10*(2^10) chars as input seems more than enough
11285     test $ac_count -gt 10 && break
11286   done
11287   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11288 esac
11289
11290       $ac_path_FGREP_found && break 3
11291     done
11292   done
11293   done
11294 IFS=$as_save_IFS
11295   if test -z "$ac_cv_path_FGREP"; then
11296     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11297   fi
11298 else
11299   ac_cv_path_FGREP=$FGREP
11300 fi
11301
11302    fi
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11305 $as_echo "$ac_cv_path_FGREP" >&6; }
11306  FGREP="$ac_cv_path_FGREP"
11307
11308
11309 test -z "$GREP" && GREP=grep
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329 # Check whether --with-gnu-ld was given.
11330 if test "${with_gnu_ld+set}" = set; then :
11331   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11332 else
11333   with_gnu_ld=no
11334 fi
11335
11336 ac_prog=ld
11337 if test "$GCC" = yes; then
11338   # Check if gcc -print-prog-name=ld gives a path.
11339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11340 $as_echo_n "checking for ld used by $CC... " >&6; }
11341   case $host in
11342   *-*-mingw*)
11343     # gcc leaves a trailing carriage return which upsets mingw
11344     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11345   *)
11346     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11347   esac
11348   case $ac_prog in
11349     # Accept absolute paths.
11350     [\\/]* | ?:[\\/]*)
11351       re_direlt='/[^/][^/]*/\.\./'
11352       # Canonicalize the pathname of ld
11353       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11354       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11355         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11356       done
11357       test -z "$LD" && LD="$ac_prog"
11358       ;;
11359   "")
11360     # If it fails, then pretend we aren't using GCC.
11361     ac_prog=ld
11362     ;;
11363   *)
11364     # If it is relative, then search for the first ld in PATH.
11365     with_gnu_ld=unknown
11366     ;;
11367   esac
11368 elif test "$with_gnu_ld" = yes; then
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11370 $as_echo_n "checking for GNU ld... " >&6; }
11371 else
11372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11373 $as_echo_n "checking for non-GNU ld... " >&6; }
11374 fi
11375 if test "${lt_cv_path_LD+set}" = set; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   if test -z "$LD"; then
11379   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11380   for ac_dir in $PATH; do
11381     IFS="$lt_save_ifs"
11382     test -z "$ac_dir" && ac_dir=.
11383     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11384       lt_cv_path_LD="$ac_dir/$ac_prog"
11385       # Check to see if the program is GNU ld.  I'd rather use --version,
11386       # but apparently some variants of GNU ld only accept -v.
11387       # Break only if it was the GNU/non-GNU ld that we prefer.
11388       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11389       *GNU* | *'with BFD'*)
11390         test "$with_gnu_ld" != no && break
11391         ;;
11392       *)
11393         test "$with_gnu_ld" != yes && break
11394         ;;
11395       esac
11396     fi
11397   done
11398   IFS="$lt_save_ifs"
11399 else
11400   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11401 fi
11402 fi
11403
11404 LD="$lt_cv_path_LD"
11405 if test -n "$LD"; then
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11407 $as_echo "$LD" >&6; }
11408 else
11409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11411 fi
11412 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11414 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11415 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11419 case `$LD -v 2>&1 </dev/null` in
11420 *GNU* | *'with BFD'*)
11421   lt_cv_prog_gnu_ld=yes
11422   ;;
11423 *)
11424   lt_cv_prog_gnu_ld=no
11425   ;;
11426 esac
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11429 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11430 with_gnu_ld=$lt_cv_prog_gnu_ld
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11441 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11442 if test "${lt_cv_path_NM+set}" = set; then :
11443   $as_echo_n "(cached) " >&6
11444 else
11445   if test -n "$NM"; then
11446   # Let the user override the test.
11447   lt_cv_path_NM="$NM"
11448 else
11449   lt_nm_to_check="${ac_tool_prefix}nm"
11450   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11451     lt_nm_to_check="$lt_nm_to_check nm"
11452   fi
11453   for lt_tmp_nm in $lt_nm_to_check; do
11454     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11455     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11456       IFS="$lt_save_ifs"
11457       test -z "$ac_dir" && ac_dir=.
11458       tmp_nm="$ac_dir/$lt_tmp_nm"
11459       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11460         # Check to see if the nm accepts a BSD-compat flag.
11461         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11462         #   nm: unknown option "B" ignored
11463         # Tru64's nm complains that /dev/null is an invalid object file
11464         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11465         */dev/null* | *'Invalid file or object type'*)
11466           lt_cv_path_NM="$tmp_nm -B"
11467           break
11468           ;;
11469         *)
11470           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11471           */dev/null*)
11472             lt_cv_path_NM="$tmp_nm -p"
11473             break
11474             ;;
11475           *)
11476             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11477             continue # so that we can try to find one that supports BSD flags
11478             ;;
11479           esac
11480           ;;
11481         esac
11482       fi
11483     done
11484     IFS="$lt_save_ifs"
11485   done
11486   : ${lt_cv_path_NM=no}
11487 fi
11488 fi
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11490 $as_echo "$lt_cv_path_NM" >&6; }
11491 if test "$lt_cv_path_NM" != "no"; then
11492   NM="$lt_cv_path_NM"
11493 else
11494   # Didn't find any BSD compatible name lister, look for dumpbin.
11495   if test -n "$DUMPBIN"; then :
11496     # Let the user override the test.
11497   else
11498     if test -n "$ac_tool_prefix"; then
11499   for ac_prog in dumpbin "link -dump"
11500   do
11501     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508   if test -n "$DUMPBIN"; then
11509   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11510 else
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11513 do
11514   IFS=$as_save_IFS
11515   test -z "$as_dir" && as_dir=.
11516     for ac_exec_ext in '' $ac_executable_extensions; do
11517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11518     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520     break 2
11521   fi
11522 done
11523   done
11524 IFS=$as_save_IFS
11525
11526 fi
11527 fi
11528 DUMPBIN=$ac_cv_prog_DUMPBIN
11529 if test -n "$DUMPBIN"; then
11530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11531 $as_echo "$DUMPBIN" >&6; }
11532 else
11533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11535 fi
11536
11537
11538     test -n "$DUMPBIN" && break
11539   done
11540 fi
11541 if test -z "$DUMPBIN"; then
11542   ac_ct_DUMPBIN=$DUMPBIN
11543   for ac_prog in dumpbin "link -dump"
11544 do
11545   # Extract the first word of "$ac_prog", so it can be a program name with args.
11546 set dummy $ac_prog; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11550   $as_echo_n "(cached) " >&6
11551 else
11552   if test -n "$ac_ct_DUMPBIN"; then
11553   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11554 else
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558   IFS=$as_save_IFS
11559   test -z "$as_dir" && as_dir=.
11560     for ac_exec_ext in '' $ac_executable_extensions; do
11561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564     break 2
11565   fi
11566 done
11567   done
11568 IFS=$as_save_IFS
11569
11570 fi
11571 fi
11572 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11573 if test -n "$ac_ct_DUMPBIN"; then
11574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11575 $as_echo "$ac_ct_DUMPBIN" >&6; }
11576 else
11577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11579 fi
11580
11581
11582   test -n "$ac_ct_DUMPBIN" && break
11583 done
11584
11585   if test "x$ac_ct_DUMPBIN" = x; then
11586     DUMPBIN=":"
11587   else
11588     case $cross_compiling:$ac_tool_warned in
11589 yes:)
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11592 ac_tool_warned=yes ;;
11593 esac
11594     DUMPBIN=$ac_ct_DUMPBIN
11595   fi
11596 fi
11597
11598     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11599     *COFF*)
11600       DUMPBIN="$DUMPBIN -symbols"
11601       ;;
11602     *)
11603       DUMPBIN=:
11604       ;;
11605     esac
11606   fi
11607
11608   if test "$DUMPBIN" != ":"; then
11609     NM="$DUMPBIN"
11610   fi
11611 fi
11612 test -z "$NM" && NM=nm
11613
11614
11615
11616
11617
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11620 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11621 if test "${lt_cv_nm_interface+set}" = set; then :
11622   $as_echo_n "(cached) " >&6
11623 else
11624   lt_cv_nm_interface="BSD nm"
11625   echo "int some_variable = 0;" > conftest.$ac_ext
11626   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11627   (eval "$ac_compile" 2>conftest.err)
11628   cat conftest.err >&5
11629   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11630   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11631   cat conftest.err >&5
11632   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11633   cat conftest.out >&5
11634   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11635     lt_cv_nm_interface="MS dumpbin"
11636   fi
11637   rm -f conftest*
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11640 $as_echo "$lt_cv_nm_interface" >&6; }
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11643 $as_echo_n "checking whether ln -s works... " >&6; }
11644 LN_S=$as_ln_s
11645 if test "$LN_S" = "ln -s"; then
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647 $as_echo "yes" >&6; }
11648 else
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11650 $as_echo "no, using $LN_S" >&6; }
11651 fi
11652
11653 # find the maximum length of command line arguments
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11655 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11656 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11657   $as_echo_n "(cached) " >&6
11658 else
11659     i=0
11660   teststring="ABCD"
11661
11662   case $build_os in
11663   msdosdjgpp*)
11664     # On DJGPP, this test can blow up pretty badly due to problems in libc
11665     # (any single argument exceeding 2000 bytes causes a buffer overrun
11666     # during glob expansion).  Even if it were fixed, the result of this
11667     # check would be larger than it should be.
11668     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11669     ;;
11670
11671   gnu*)
11672     # Under GNU Hurd, this test is not required because there is
11673     # no limit to the length of command line arguments.
11674     # Libtool will interpret -1 as no limit whatsoever
11675     lt_cv_sys_max_cmd_len=-1;
11676     ;;
11677
11678   cygwin* | mingw* | cegcc*)
11679     # On Win9x/ME, this test blows up -- it succeeds, but takes
11680     # about 5 minutes as the teststring grows exponentially.
11681     # Worse, since 9x/ME are not pre-emptively multitasking,
11682     # you end up with a "frozen" computer, even though with patience
11683     # the test eventually succeeds (with a max line length of 256k).
11684     # Instead, let's just punt: use the minimum linelength reported by
11685     # all of the supported platforms: 8192 (on NT/2K/XP).
11686     lt_cv_sys_max_cmd_len=8192;
11687     ;;
11688
11689   mint*)
11690     # On MiNT this can take a long time and run out of memory.
11691     lt_cv_sys_max_cmd_len=8192;
11692     ;;
11693
11694   amigaos*)
11695     # On AmigaOS with pdksh, this test takes hours, literally.
11696     # So we just punt and use a minimum line length of 8192.
11697     lt_cv_sys_max_cmd_len=8192;
11698     ;;
11699
11700   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11701     # This has been around since 386BSD, at least.  Likely further.
11702     if test -x /sbin/sysctl; then
11703       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11704     elif test -x /usr/sbin/sysctl; then
11705       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11706     else
11707       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11708     fi
11709     # And add a safety zone
11710     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11711     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11712     ;;
11713
11714   interix*)
11715     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11716     lt_cv_sys_max_cmd_len=196608
11717     ;;
11718
11719   osf*)
11720     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11721     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11722     # nice to cause kernel panics so lets avoid the loop below.
11723     # First set a reasonable default.
11724     lt_cv_sys_max_cmd_len=16384
11725     #
11726     if test -x /sbin/sysconfig; then
11727       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11728         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11729       esac
11730     fi
11731     ;;
11732   sco3.2v5*)
11733     lt_cv_sys_max_cmd_len=102400
11734     ;;
11735   sysv5* | sco5v6* | sysv4.2uw2*)
11736     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11737     if test -n "$kargmax"; then
11738       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11739     else
11740       lt_cv_sys_max_cmd_len=32768
11741     fi
11742     ;;
11743   *)
11744     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11745     if test -n "$lt_cv_sys_max_cmd_len"; then
11746       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11747       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11748     else
11749       # Make teststring a little bigger before we do anything with it.
11750       # a 1K string should be a reasonable start.
11751       for i in 1 2 3 4 5 6 7 8 ; do
11752         teststring=$teststring$teststring
11753       done
11754       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11755       # If test is not a shell built-in, we'll probably end up computing a
11756       # maximum length that is only half of the actual maximum length, but
11757       # we can't tell.
11758       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11759                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11760               test $i != 17 # 1/2 MB should be enough
11761       do
11762         i=`expr $i + 1`
11763         teststring=$teststring$teststring
11764       done
11765       # Only check the string length outside the loop.
11766       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11767       teststring=
11768       # Add a significant safety factor because C++ compilers can tack on
11769       # massive amounts of additional arguments before passing them to the
11770       # linker.  It appears as though 1/2 is a usable value.
11771       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11772     fi
11773     ;;
11774   esac
11775
11776 fi
11777
11778 if test -n $lt_cv_sys_max_cmd_len ; then
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11780 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11781 else
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11783 $as_echo "none" >&6; }
11784 fi
11785 max_cmd_len=$lt_cv_sys_max_cmd_len
11786
11787
11788
11789
11790
11791
11792 : ${CP="cp -f"}
11793 : ${MV="mv -f"}
11794 : ${RM="rm -f"}
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11797 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11798 # Try some XSI features
11799 xsi_shell=no
11800 ( _lt_dummy="a/b/c"
11801   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11802       = c,a/b,, \
11803     && eval 'test $(( 1 + 1 )) -eq 2 \
11804     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11805   && xsi_shell=yes
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11807 $as_echo "$xsi_shell" >&6; }
11808
11809
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11811 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11812 lt_shell_append=no
11813 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11814     >/dev/null 2>&1 \
11815   && lt_shell_append=yes
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11817 $as_echo "$lt_shell_append" >&6; }
11818
11819
11820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11821   lt_unset=unset
11822 else
11823   lt_unset=false
11824 fi
11825
11826
11827
11828
11829
11830 # test EBCDIC or ASCII
11831 case `echo X|tr X '\101'` in
11832  A) # ASCII based system
11833     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11834   lt_SP2NL='tr \040 \012'
11835   lt_NL2SP='tr \015\012 \040\040'
11836   ;;
11837  *) # EBCDIC based system
11838   lt_SP2NL='tr \100 \n'
11839   lt_NL2SP='tr \r\n \100\100'
11840   ;;
11841 esac
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11852 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11853 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   lt_cv_ld_reload_flag='-r'
11857 fi
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11859 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11860 reload_flag=$lt_cv_ld_reload_flag
11861 case $reload_flag in
11862 "" | " "*) ;;
11863 *) reload_flag=" $reload_flag" ;;
11864 esac
11865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11866 case $host_os in
11867   darwin*)
11868     if test "$GCC" = yes; then
11869       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11870     else
11871       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11872     fi
11873     ;;
11874 esac
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884 if test -n "$ac_tool_prefix"; then
11885   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11886 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11890   $as_echo_n "(cached) " >&6
11891 else
11892   if test -n "$OBJDUMP"; then
11893   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11894 else
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898   IFS=$as_save_IFS
11899   test -z "$as_dir" && as_dir=.
11900     for ac_exec_ext in '' $ac_executable_extensions; do
11901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11902     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904     break 2
11905   fi
11906 done
11907   done
11908 IFS=$as_save_IFS
11909
11910 fi
11911 fi
11912 OBJDUMP=$ac_cv_prog_OBJDUMP
11913 if test -n "$OBJDUMP"; then
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11915 $as_echo "$OBJDUMP" >&6; }
11916 else
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919 fi
11920
11921
11922 fi
11923 if test -z "$ac_cv_prog_OBJDUMP"; then
11924   ac_ct_OBJDUMP=$OBJDUMP
11925   # Extract the first word of "objdump", so it can be a program name with args.
11926 set dummy objdump; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11930   $as_echo_n "(cached) " >&6
11931 else
11932   if test -n "$ac_ct_OBJDUMP"; then
11933   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11934 else
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936 for as_dir in $PATH
11937 do
11938   IFS=$as_save_IFS
11939   test -z "$as_dir" && as_dir=.
11940     for ac_exec_ext in '' $ac_executable_extensions; do
11941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11942     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944     break 2
11945   fi
11946 done
11947   done
11948 IFS=$as_save_IFS
11949
11950 fi
11951 fi
11952 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11953 if test -n "$ac_ct_OBJDUMP"; then
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11955 $as_echo "$ac_ct_OBJDUMP" >&6; }
11956 else
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959 fi
11960
11961   if test "x$ac_ct_OBJDUMP" = x; then
11962     OBJDUMP="false"
11963   else
11964     case $cross_compiling:$ac_tool_warned in
11965 yes:)
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11968 ac_tool_warned=yes ;;
11969 esac
11970     OBJDUMP=$ac_ct_OBJDUMP
11971   fi
11972 else
11973   OBJDUMP="$ac_cv_prog_OBJDUMP"
11974 fi
11975
11976 test -z "$OBJDUMP" && OBJDUMP=objdump
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11987 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11988 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   lt_cv_file_magic_cmd='$MAGIC_CMD'
11992 lt_cv_file_magic_test_file=
11993 lt_cv_deplibs_check_method='unknown'
11994 # Need to set the preceding variable on all platforms that support
11995 # interlibrary dependencies.
11996 # 'none' -- dependencies not supported.
11997 # `unknown' -- same as none, but documents that we really don't know.
11998 # 'pass_all' -- all dependencies passed with no checks.
11999 # 'test_compile' -- check by making test program.
12000 # 'file_magic [[regex]]' -- check by looking for files in library path
12001 # which responds to the $file_magic_cmd with a given extended regex.
12002 # If you have `file' or equivalent on your system and you're not sure
12003 # whether `pass_all' will *always* work, you probably want this one.
12004
12005 case $host_os in
12006 aix[4-9]*)
12007   lt_cv_deplibs_check_method=pass_all
12008   ;;
12009
12010 beos*)
12011   lt_cv_deplibs_check_method=pass_all
12012   ;;
12013
12014 bsdi[45]*)
12015   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12016   lt_cv_file_magic_cmd='/usr/bin/file -L'
12017   lt_cv_file_magic_test_file=/shlib/libc.so
12018   ;;
12019
12020 cygwin*)
12021   # func_win32_libid is a shell function defined in ltmain.sh
12022   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12023   lt_cv_file_magic_cmd='func_win32_libid'
12024   ;;
12025
12026 mingw* | pw32*)
12027   # Base MSYS/MinGW do not provide the 'file' command needed by
12028   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12029   # unless we find 'file', for example because we are cross-compiling.
12030   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12031   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12032     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12033     lt_cv_file_magic_cmd='func_win32_libid'
12034   else
12035     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12036     lt_cv_file_magic_cmd='$OBJDUMP -f'
12037   fi
12038   ;;
12039
12040 cegcc*)
12041   # use the weaker test based on 'objdump'. See mingw*.
12042   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12043   lt_cv_file_magic_cmd='$OBJDUMP -f'
12044   ;;
12045
12046 darwin* | rhapsody*)
12047   lt_cv_deplibs_check_method=pass_all
12048   ;;
12049
12050 freebsd* | dragonfly*)
12051   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12052     case $host_cpu in
12053     i*86 )
12054       # Not sure whether the presence of OpenBSD here was a mistake.
12055       # Let's accept both of them until this is cleared up.
12056       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12057       lt_cv_file_magic_cmd=/usr/bin/file
12058       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12059       ;;
12060     esac
12061   else
12062     lt_cv_deplibs_check_method=pass_all
12063   fi
12064   ;;
12065
12066 gnu*)
12067   lt_cv_deplibs_check_method=pass_all
12068   ;;
12069
12070 haiku*)
12071   lt_cv_deplibs_check_method=pass_all
12072   ;;
12073
12074 hpux10.20* | hpux11*)
12075   lt_cv_file_magic_cmd=/usr/bin/file
12076   case $host_cpu in
12077   ia64*)
12078     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12079     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12080     ;;
12081   hppa*64*)
12082     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]'
12083     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12084     ;;
12085   *)
12086     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12087     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12088     ;;
12089   esac
12090   ;;
12091
12092 interix[3-9]*)
12093   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12094   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12095   ;;
12096
12097 irix5* | irix6* | nonstopux*)
12098   case $LD in
12099   *-32|*"-32 ") libmagic=32-bit;;
12100   *-n32|*"-n32 ") libmagic=N32;;
12101   *-64|*"-64 ") libmagic=64-bit;;
12102   *) libmagic=never-match;;
12103   esac
12104   lt_cv_deplibs_check_method=pass_all
12105   ;;
12106
12107 # This must be Linux ELF.
12108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12109   lt_cv_deplibs_check_method=pass_all
12110   ;;
12111
12112 netbsd*)
12113   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12114     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12115   else
12116     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12117   fi
12118   ;;
12119
12120 newos6*)
12121   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12122   lt_cv_file_magic_cmd=/usr/bin/file
12123   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12124   ;;
12125
12126 *nto* | *qnx*)
12127   lt_cv_deplibs_check_method=pass_all
12128   ;;
12129
12130 openbsd*)
12131   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12132     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12133   else
12134     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12135   fi
12136   ;;
12137
12138 osf3* | osf4* | osf5*)
12139   lt_cv_deplibs_check_method=pass_all
12140   ;;
12141
12142 rdos*)
12143   lt_cv_deplibs_check_method=pass_all
12144   ;;
12145
12146 solaris*)
12147   lt_cv_deplibs_check_method=pass_all
12148   ;;
12149
12150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12151   lt_cv_deplibs_check_method=pass_all
12152   ;;
12153
12154 sysv4 | sysv4.3*)
12155   case $host_vendor in
12156   motorola)
12157     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]'
12158     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12159     ;;
12160   ncr)
12161     lt_cv_deplibs_check_method=pass_all
12162     ;;
12163   sequent)
12164     lt_cv_file_magic_cmd='/bin/file'
12165     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12166     ;;
12167   sni)
12168     lt_cv_file_magic_cmd='/bin/file'
12169     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12170     lt_cv_file_magic_test_file=/lib/libc.so
12171     ;;
12172   siemens)
12173     lt_cv_deplibs_check_method=pass_all
12174     ;;
12175   pc)
12176     lt_cv_deplibs_check_method=pass_all
12177     ;;
12178   esac
12179   ;;
12180
12181 tpf*)
12182   lt_cv_deplibs_check_method=pass_all
12183   ;;
12184 esac
12185
12186 fi
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12188 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12189 file_magic_cmd=$lt_cv_file_magic_cmd
12190 deplibs_check_method=$lt_cv_deplibs_check_method
12191 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204 if test -n "$ac_tool_prefix"; then
12205   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12206 set dummy ${ac_tool_prefix}ar; ac_word=$2
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208 $as_echo_n "checking for $ac_word... " >&6; }
12209 if test "${ac_cv_prog_AR+set}" = set; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   if test -n "$AR"; then
12213   ac_cv_prog_AR="$AR" # Let the user override the test.
12214 else
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12217 do
12218   IFS=$as_save_IFS
12219   test -z "$as_dir" && as_dir=.
12220     for ac_exec_ext in '' $ac_executable_extensions; do
12221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222     ac_cv_prog_AR="${ac_tool_prefix}ar"
12223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224     break 2
12225   fi
12226 done
12227   done
12228 IFS=$as_save_IFS
12229
12230 fi
12231 fi
12232 AR=$ac_cv_prog_AR
12233 if test -n "$AR"; then
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12235 $as_echo "$AR" >&6; }
12236 else
12237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12239 fi
12240
12241
12242 fi
12243 if test -z "$ac_cv_prog_AR"; then
12244   ac_ct_AR=$AR
12245   # Extract the first word of "ar", so it can be a program name with args.
12246 set dummy ar; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12250   $as_echo_n "(cached) " >&6
12251 else
12252   if test -n "$ac_ct_AR"; then
12253   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12254 else
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258   IFS=$as_save_IFS
12259   test -z "$as_dir" && as_dir=.
12260     for ac_exec_ext in '' $ac_executable_extensions; do
12261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262     ac_cv_prog_ac_ct_AR="ar"
12263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264     break 2
12265   fi
12266 done
12267   done
12268 IFS=$as_save_IFS
12269
12270 fi
12271 fi
12272 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12273 if test -n "$ac_ct_AR"; then
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12275 $as_echo "$ac_ct_AR" >&6; }
12276 else
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 fi
12280
12281   if test "x$ac_ct_AR" = x; then
12282     AR="false"
12283   else
12284     case $cross_compiling:$ac_tool_warned in
12285 yes:)
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12288 ac_tool_warned=yes ;;
12289 esac
12290     AR=$ac_ct_AR
12291   fi
12292 else
12293   AR="$ac_cv_prog_AR"
12294 fi
12295
12296 test -z "$AR" && AR=ar
12297 test -z "$AR_FLAGS" && AR_FLAGS=cru
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309 if test -n "$ac_tool_prefix"; then
12310   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12311 set dummy ${ac_tool_prefix}strip; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if test "${ac_cv_prog_STRIP+set}" = set; then :
12315   $as_echo_n "(cached) " >&6
12316 else
12317   if test -n "$STRIP"; then
12318   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12319 else
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12322 do
12323   IFS=$as_save_IFS
12324   test -z "$as_dir" && as_dir=.
12325     for ac_exec_ext in '' $ac_executable_extensions; do
12326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329     break 2
12330   fi
12331 done
12332   done
12333 IFS=$as_save_IFS
12334
12335 fi
12336 fi
12337 STRIP=$ac_cv_prog_STRIP
12338 if test -n "$STRIP"; then
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12340 $as_echo "$STRIP" >&6; }
12341 else
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345
12346
12347 fi
12348 if test -z "$ac_cv_prog_STRIP"; then
12349   ac_ct_STRIP=$STRIP
12350   # Extract the first word of "strip", so it can be a program name with args.
12351 set dummy strip; ac_word=$2
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353 $as_echo_n "checking for $ac_word... " >&6; }
12354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12355   $as_echo_n "(cached) " >&6
12356 else
12357   if test -n "$ac_ct_STRIP"; then
12358   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12359 else
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12362 do
12363   IFS=$as_save_IFS
12364   test -z "$as_dir" && as_dir=.
12365     for ac_exec_ext in '' $ac_executable_extensions; do
12366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12367     ac_cv_prog_ac_ct_STRIP="strip"
12368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369     break 2
12370   fi
12371 done
12372   done
12373 IFS=$as_save_IFS
12374
12375 fi
12376 fi
12377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12378 if test -n "$ac_ct_STRIP"; then
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12380 $as_echo "$ac_ct_STRIP" >&6; }
12381 else
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12384 fi
12385
12386   if test "x$ac_ct_STRIP" = x; then
12387     STRIP=":"
12388   else
12389     case $cross_compiling:$ac_tool_warned in
12390 yes:)
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12393 ac_tool_warned=yes ;;
12394 esac
12395     STRIP=$ac_ct_STRIP
12396   fi
12397 else
12398   STRIP="$ac_cv_prog_STRIP"
12399 fi
12400
12401 test -z "$STRIP" && STRIP=:
12402
12403
12404
12405
12406
12407
12408 if test -n "$ac_tool_prefix"; then
12409   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12414   $as_echo_n "(cached) " >&6
12415 else
12416   if test -n "$RANLIB"; then
12417   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12418 else
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12421 do
12422   IFS=$as_save_IFS
12423   test -z "$as_dir" && as_dir=.
12424     for ac_exec_ext in '' $ac_executable_extensions; do
12425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12426     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428     break 2
12429   fi
12430 done
12431   done
12432 IFS=$as_save_IFS
12433
12434 fi
12435 fi
12436 RANLIB=$ac_cv_prog_RANLIB
12437 if test -n "$RANLIB"; then
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12439 $as_echo "$RANLIB" >&6; }
12440 else
12441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444
12445
12446 fi
12447 if test -z "$ac_cv_prog_RANLIB"; then
12448   ac_ct_RANLIB=$RANLIB
12449   # Extract the first word of "ranlib", so it can be a program name with args.
12450 set dummy ranlib; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12454   $as_echo_n "(cached) " >&6
12455 else
12456   if test -n "$ac_ct_RANLIB"; then
12457   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12458 else
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12461 do
12462   IFS=$as_save_IFS
12463   test -z "$as_dir" && as_dir=.
12464     for ac_exec_ext in '' $ac_executable_extensions; do
12465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12466     ac_cv_prog_ac_ct_RANLIB="ranlib"
12467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468     break 2
12469   fi
12470 done
12471   done
12472 IFS=$as_save_IFS
12473
12474 fi
12475 fi
12476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12477 if test -n "$ac_ct_RANLIB"; then
12478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12479 $as_echo "$ac_ct_RANLIB" >&6; }
12480 else
12481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12483 fi
12484
12485   if test "x$ac_ct_RANLIB" = x; then
12486     RANLIB=":"
12487   else
12488     case $cross_compiling:$ac_tool_warned in
12489 yes:)
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12492 ac_tool_warned=yes ;;
12493 esac
12494     RANLIB=$ac_ct_RANLIB
12495   fi
12496 else
12497   RANLIB="$ac_cv_prog_RANLIB"
12498 fi
12499
12500 test -z "$RANLIB" && RANLIB=:
12501
12502
12503
12504
12505
12506
12507 # Determine commands to create old-style static archives.
12508 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12509 old_postinstall_cmds='chmod 644 $oldlib'
12510 old_postuninstall_cmds=
12511
12512 if test -n "$RANLIB"; then
12513   case $host_os in
12514   openbsd*)
12515     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12516     ;;
12517   *)
12518     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12519     ;;
12520   esac
12521   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12522 fi
12523
12524 case $host_os in
12525   darwin*)
12526     lock_old_archive_extraction=yes ;;
12527   *)
12528     lock_old_archive_extraction=no ;;
12529 esac
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569 # If no C compiler was specified, use CC.
12570 LTCC=${LTCC-"$CC"}
12571
12572 # If no C compiler flags were specified, use CFLAGS.
12573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12574
12575 # Allow CC to be a program name with arguments.
12576 compiler=$CC
12577
12578
12579 # Check for command to grab the raw symbol name followed by C symbol from nm.
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12581 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12582 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12583   $as_echo_n "(cached) " >&6
12584 else
12585
12586 # These are sane defaults that work on at least a few old systems.
12587 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12588
12589 # Character class describing NM global symbol codes.
12590 symcode='[BCDEGRST]'
12591
12592 # Regexp to match symbols that can be accessed directly from C.
12593 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12594
12595 # Define system-specific variables.
12596 case $host_os in
12597 aix*)
12598   symcode='[BCDT]'
12599   ;;
12600 cygwin* | mingw* | pw32* | cegcc*)
12601   symcode='[ABCDGISTW]'
12602   ;;
12603 hpux*)
12604   if test "$host_cpu" = ia64; then
12605     symcode='[ABCDEGRST]'
12606   fi
12607   ;;
12608 irix* | nonstopux*)
12609   symcode='[BCDEGRST]'
12610   ;;
12611 osf*)
12612   symcode='[BCDEGQRST]'
12613   ;;
12614 solaris*)
12615   symcode='[BDRT]'
12616   ;;
12617 sco3.2v5*)
12618   symcode='[DT]'
12619   ;;
12620 sysv4.2uw2*)
12621   symcode='[DT]'
12622   ;;
12623 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12624   symcode='[ABDT]'
12625   ;;
12626 sysv4)
12627   symcode='[DFNSTU]'
12628   ;;
12629 esac
12630
12631 # If we're using GNU nm, then use its standard symbol codes.
12632 case `$NM -V 2>&1` in
12633 *GNU* | *'with BFD'*)
12634   symcode='[ABCDGIRSTW]' ;;
12635 esac
12636
12637 # Transform an extracted symbol line into a proper C declaration.
12638 # Some systems (esp. on ia64) link data and code symbols differently,
12639 # so use this general approach.
12640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12641
12642 # Transform an extracted symbol line into symbol name and symbol address
12643 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12644 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'"
12645
12646 # Handle CRLF in mingw tool chain
12647 opt_cr=
12648 case $build_os in
12649 mingw*)
12650   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12651   ;;
12652 esac
12653
12654 # Try without a prefix underscore, then with it.
12655 for ac_symprfx in "" "_"; do
12656
12657   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12658   symxfrm="\\1 $ac_symprfx\\2 \\2"
12659
12660   # Write the raw and C identifiers.
12661   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12662     # Fake it for dumpbin and say T for any non-static function
12663     # and D for any global variable.
12664     # Also find C++ and __fastcall symbols from MSVC++,
12665     # which start with @ or ?.
12666     lt_cv_sys_global_symbol_pipe="$AWK '"\
12667 "     {last_section=section; section=\$ 3};"\
12668 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12669 "     \$ 0!~/External *\|/{next};"\
12670 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12671 "     {if(hide[section]) next};"\
12672 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12673 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12674 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12675 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12676 "     ' prfx=^$ac_symprfx"
12677   else
12678     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12679   fi
12680
12681   # Check to see that the pipe works correctly.
12682   pipe_works=no
12683
12684   rm -f conftest*
12685   cat > conftest.$ac_ext <<_LT_EOF
12686 #ifdef __cplusplus
12687 extern "C" {
12688 #endif
12689 char nm_test_var;
12690 void nm_test_func(void);
12691 void nm_test_func(void){}
12692 #ifdef __cplusplus
12693 }
12694 #endif
12695 int main(){nm_test_var='a';nm_test_func();return(0);}
12696 _LT_EOF
12697
12698   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12699   (eval $ac_compile) 2>&5
12700   ac_status=$?
12701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12702   test $ac_status = 0; }; then
12703     # Now try to grab the symbols.
12704     nlist=conftest.nm
12705     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12706   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12707   ac_status=$?
12708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12709   test $ac_status = 0; } && test -s "$nlist"; then
12710       # Try sorting and uniquifying the output.
12711       if sort "$nlist" | uniq > "$nlist"T; then
12712         mv -f "$nlist"T "$nlist"
12713       else
12714         rm -f "$nlist"T
12715       fi
12716
12717       # Make sure that we snagged all the symbols we need.
12718       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12719         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12720           cat <<_LT_EOF > conftest.$ac_ext
12721 #ifdef __cplusplus
12722 extern "C" {
12723 #endif
12724
12725 _LT_EOF
12726           # Now generate the symbol file.
12727           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12728
12729           cat <<_LT_EOF >> conftest.$ac_ext
12730
12731 /* The mapping between symbol names and symbols.  */
12732 const struct {
12733   const char *name;
12734   void       *address;
12735 }
12736 lt__PROGRAM__LTX_preloaded_symbols[] =
12737 {
12738   { "@PROGRAM@", (void *) 0 },
12739 _LT_EOF
12740           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12741           cat <<\_LT_EOF >> conftest.$ac_ext
12742   {0, (void *) 0}
12743 };
12744
12745 /* This works around a problem in FreeBSD linker */
12746 #ifdef FREEBSD_WORKAROUND
12747 static const void *lt_preloaded_setup() {
12748   return lt__PROGRAM__LTX_preloaded_symbols;
12749 }
12750 #endif
12751
12752 #ifdef __cplusplus
12753 }
12754 #endif
12755 _LT_EOF
12756           # Now try linking the two files.
12757           mv conftest.$ac_objext conftstm.$ac_objext
12758           lt_save_LIBS="$LIBS"
12759           lt_save_CFLAGS="$CFLAGS"
12760           LIBS="conftstm.$ac_objext"
12761           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12762           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12763   (eval $ac_link) 2>&5
12764   ac_status=$?
12765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12766   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12767             pipe_works=yes
12768           fi
12769           LIBS="$lt_save_LIBS"
12770           CFLAGS="$lt_save_CFLAGS"
12771         else
12772           echo "cannot find nm_test_func in $nlist" >&5
12773         fi
12774       else
12775         echo "cannot find nm_test_var in $nlist" >&5
12776       fi
12777     else
12778       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12779     fi
12780   else
12781     echo "$progname: failed program was:" >&5
12782     cat conftest.$ac_ext >&5
12783   fi
12784   rm -rf conftest* conftst*
12785
12786   # Do not use the global_symbol_pipe unless it works.
12787   if test "$pipe_works" = yes; then
12788     break
12789   else
12790     lt_cv_sys_global_symbol_pipe=
12791   fi
12792 done
12793
12794 fi
12795
12796 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12797   lt_cv_sys_global_symbol_to_cdecl=
12798 fi
12799 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12801 $as_echo "failed" >&6; }
12802 else
12803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12804 $as_echo "ok" >&6; }
12805 fi
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828 # Check whether --enable-libtool-lock was given.
12829 if test "${enable_libtool_lock+set}" = set; then :
12830   enableval=$enable_libtool_lock;
12831 fi
12832
12833 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12834
12835 # Some flags need to be propagated to the compiler or linker for good
12836 # libtool support.
12837 case $host in
12838 ia64-*-hpux*)
12839   # Find out which ABI we are using.
12840   echo 'int i;' > conftest.$ac_ext
12841   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12842   (eval $ac_compile) 2>&5
12843   ac_status=$?
12844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845   test $ac_status = 0; }; then
12846     case `/usr/bin/file conftest.$ac_objext` in
12847       *ELF-32*)
12848         HPUX_IA64_MODE="32"
12849         ;;
12850       *ELF-64*)
12851         HPUX_IA64_MODE="64"
12852         ;;
12853     esac
12854   fi
12855   rm -rf conftest*
12856   ;;
12857 *-*-irix6*)
12858   # Find out which ABI we are using.
12859   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12860   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12861   (eval $ac_compile) 2>&5
12862   ac_status=$?
12863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864   test $ac_status = 0; }; then
12865     if test "$lt_cv_prog_gnu_ld" = yes; then
12866       case `/usr/bin/file conftest.$ac_objext` in
12867         *32-bit*)
12868           LD="${LD-ld} -melf32bsmip"
12869           ;;
12870         *N32*)
12871           LD="${LD-ld} -melf32bmipn32"
12872           ;;
12873         *64-bit*)
12874           LD="${LD-ld} -melf64bmip"
12875         ;;
12876       esac
12877     else
12878       case `/usr/bin/file conftest.$ac_objext` in
12879         *32-bit*)
12880           LD="${LD-ld} -32"
12881           ;;
12882         *N32*)
12883           LD="${LD-ld} -n32"
12884           ;;
12885         *64-bit*)
12886           LD="${LD-ld} -64"
12887           ;;
12888       esac
12889     fi
12890   fi
12891   rm -rf conftest*
12892   ;;
12893
12894 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12895 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12896   # Find out which ABI we are using.
12897   echo 'int i;' > conftest.$ac_ext
12898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12899   (eval $ac_compile) 2>&5
12900   ac_status=$?
12901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902   test $ac_status = 0; }; then
12903     case `/usr/bin/file conftest.o` in
12904       *32-bit*)
12905         case $host in
12906           x86_64-*kfreebsd*-gnu)
12907             LD="${LD-ld} -m elf_i386_fbsd"
12908             ;;
12909           x86_64-*linux*)
12910             LD="${LD-ld} -m elf_i386"
12911             ;;
12912           ppc64-*linux*|powerpc64-*linux*)
12913             LD="${LD-ld} -m elf32ppclinux"
12914             ;;
12915           s390x-*linux*)
12916             LD="${LD-ld} -m elf_s390"
12917             ;;
12918           sparc64-*linux*)
12919             LD="${LD-ld} -m elf32_sparc"
12920             ;;
12921         esac
12922         ;;
12923       *64-bit*)
12924         case $host in
12925           x86_64-*kfreebsd*-gnu)
12926             LD="${LD-ld} -m elf_x86_64_fbsd"
12927             ;;
12928           x86_64-*linux*)
12929             LD="${LD-ld} -m elf_x86_64"
12930             ;;
12931           ppc*-*linux*|powerpc*-*linux*)
12932             LD="${LD-ld} -m elf64ppc"
12933             ;;
12934           s390*-*linux*|s390*-*tpf*)
12935             LD="${LD-ld} -m elf64_s390"
12936             ;;
12937           sparc*-*linux*)
12938             LD="${LD-ld} -m elf64_sparc"
12939             ;;
12940         esac
12941         ;;
12942     esac
12943   fi
12944   rm -rf conftest*
12945   ;;
12946
12947 *-*-sco3.2v5*)
12948   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12949   SAVE_CFLAGS="$CFLAGS"
12950   CFLAGS="$CFLAGS -belf"
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12952 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12953 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   ac_ext=c
12957 ac_cpp='$CPP $CPPFLAGS'
12958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12961
12962      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h.  */
12964
12965 int
12966 main ()
12967 {
12968
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974   lt_cv_cc_needs_belf=yes
12975 else
12976   lt_cv_cc_needs_belf=no
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext \
12979     conftest$ac_exeext conftest.$ac_ext
12980      ac_ext=c
12981 ac_cpp='$CPP $CPPFLAGS'
12982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12985
12986 fi
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12988 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12989   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12990     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12991     CFLAGS="$SAVE_CFLAGS"
12992   fi
12993   ;;
12994 sparc*-*solaris*)
12995   # Find out which ABI we are using.
12996   echo 'int i;' > conftest.$ac_ext
12997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12998   (eval $ac_compile) 2>&5
12999   ac_status=$?
13000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001   test $ac_status = 0; }; then
13002     case `/usr/bin/file conftest.o` in
13003     *64-bit*)
13004       case $lt_cv_prog_gnu_ld in
13005       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13006       *)
13007         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13008           LD="${LD-ld} -64"
13009         fi
13010         ;;
13011       esac
13012       ;;
13013     esac
13014   fi
13015   rm -rf conftest*
13016   ;;
13017 esac
13018
13019 need_locks="$enable_libtool_lock"
13020
13021
13022   case $host_os in
13023     rhapsody* | darwin*)
13024     if test -n "$ac_tool_prefix"; then
13025   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13026 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13030   $as_echo_n "(cached) " >&6
13031 else
13032   if test -n "$DSYMUTIL"; then
13033   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13034 else
13035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036 for as_dir in $PATH
13037 do
13038   IFS=$as_save_IFS
13039   test -z "$as_dir" && as_dir=.
13040     for ac_exec_ext in '' $ac_executable_extensions; do
13041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13042     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13044     break 2
13045   fi
13046 done
13047   done
13048 IFS=$as_save_IFS
13049
13050 fi
13051 fi
13052 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13053 if test -n "$DSYMUTIL"; then
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13055 $as_echo "$DSYMUTIL" >&6; }
13056 else
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13059 fi
13060
13061
13062 fi
13063 if test -z "$ac_cv_prog_DSYMUTIL"; then
13064   ac_ct_DSYMUTIL=$DSYMUTIL
13065   # Extract the first word of "dsymutil", so it can be a program name with args.
13066 set dummy dsymutil; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13068 $as_echo_n "checking for $ac_word... " >&6; }
13069 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13070   $as_echo_n "(cached) " >&6
13071 else
13072   if test -n "$ac_ct_DSYMUTIL"; then
13073   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13074 else
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13077 do
13078   IFS=$as_save_IFS
13079   test -z "$as_dir" && as_dir=.
13080     for ac_exec_ext in '' $ac_executable_extensions; do
13081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13082     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13084     break 2
13085   fi
13086 done
13087   done
13088 IFS=$as_save_IFS
13089
13090 fi
13091 fi
13092 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13093 if test -n "$ac_ct_DSYMUTIL"; then
13094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13095 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13096 else
13097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13099 fi
13100
13101   if test "x$ac_ct_DSYMUTIL" = x; then
13102     DSYMUTIL=":"
13103   else
13104     case $cross_compiling:$ac_tool_warned in
13105 yes:)
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13108 ac_tool_warned=yes ;;
13109 esac
13110     DSYMUTIL=$ac_ct_DSYMUTIL
13111   fi
13112 else
13113   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13114 fi
13115
13116     if test -n "$ac_tool_prefix"; then
13117   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13118 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13122   $as_echo_n "(cached) " >&6
13123 else
13124   if test -n "$NMEDIT"; then
13125   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13126 else
13127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13129 do
13130   IFS=$as_save_IFS
13131   test -z "$as_dir" && as_dir=.
13132     for ac_exec_ext in '' $ac_executable_extensions; do
13133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136     break 2
13137   fi
13138 done
13139   done
13140 IFS=$as_save_IFS
13141
13142 fi
13143 fi
13144 NMEDIT=$ac_cv_prog_NMEDIT
13145 if test -n "$NMEDIT"; then
13146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13147 $as_echo "$NMEDIT" >&6; }
13148 else
13149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150 $as_echo "no" >&6; }
13151 fi
13152
13153
13154 fi
13155 if test -z "$ac_cv_prog_NMEDIT"; then
13156   ac_ct_NMEDIT=$NMEDIT
13157   # Extract the first word of "nmedit", so it can be a program name with args.
13158 set dummy nmedit; ac_word=$2
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160 $as_echo_n "checking for $ac_word... " >&6; }
13161 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13162   $as_echo_n "(cached) " >&6
13163 else
13164   if test -n "$ac_ct_NMEDIT"; then
13165   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13166 else
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13169 do
13170   IFS=$as_save_IFS
13171   test -z "$as_dir" && as_dir=.
13172     for ac_exec_ext in '' $ac_executable_extensions; do
13173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13174     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176     break 2
13177   fi
13178 done
13179   done
13180 IFS=$as_save_IFS
13181
13182 fi
13183 fi
13184 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13185 if test -n "$ac_ct_NMEDIT"; then
13186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13187 $as_echo "$ac_ct_NMEDIT" >&6; }
13188 else
13189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191 fi
13192
13193   if test "x$ac_ct_NMEDIT" = x; then
13194     NMEDIT=":"
13195   else
13196     case $cross_compiling:$ac_tool_warned in
13197 yes:)
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13200 ac_tool_warned=yes ;;
13201 esac
13202     NMEDIT=$ac_ct_NMEDIT
13203   fi
13204 else
13205   NMEDIT="$ac_cv_prog_NMEDIT"
13206 fi
13207
13208     if test -n "$ac_tool_prefix"; then
13209   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if test "${ac_cv_prog_LIPO+set}" = set; then :
13214   $as_echo_n "(cached) " >&6
13215 else
13216   if test -n "$LIPO"; then
13217   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222   IFS=$as_save_IFS
13223   test -z "$as_dir" && as_dir=.
13224     for ac_exec_ext in '' $ac_executable_extensions; do
13225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228     break 2
13229   fi
13230 done
13231   done
13232 IFS=$as_save_IFS
13233
13234 fi
13235 fi
13236 LIPO=$ac_cv_prog_LIPO
13237 if test -n "$LIPO"; then
13238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13239 $as_echo "$LIPO" >&6; }
13240 else
13241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13243 fi
13244
13245
13246 fi
13247 if test -z "$ac_cv_prog_LIPO"; then
13248   ac_ct_LIPO=$LIPO
13249   # Extract the first word of "lipo", so it can be a program name with args.
13250 set dummy lipo; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13254   $as_echo_n "(cached) " >&6
13255 else
13256   if test -n "$ac_ct_LIPO"; then
13257   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13261 do
13262   IFS=$as_save_IFS
13263   test -z "$as_dir" && as_dir=.
13264     for ac_exec_ext in '' $ac_executable_extensions; do
13265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266     ac_cv_prog_ac_ct_LIPO="lipo"
13267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268     break 2
13269   fi
13270 done
13271   done
13272 IFS=$as_save_IFS
13273
13274 fi
13275 fi
13276 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13277 if test -n "$ac_ct_LIPO"; then
13278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13279 $as_echo "$ac_ct_LIPO" >&6; }
13280 else
13281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13283 fi
13284
13285   if test "x$ac_ct_LIPO" = x; then
13286     LIPO=":"
13287   else
13288     case $cross_compiling:$ac_tool_warned in
13289 yes:)
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13292 ac_tool_warned=yes ;;
13293 esac
13294     LIPO=$ac_ct_LIPO
13295   fi
13296 else
13297   LIPO="$ac_cv_prog_LIPO"
13298 fi
13299
13300     if test -n "$ac_tool_prefix"; then
13301   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13302 set dummy ${ac_tool_prefix}otool; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   if test -n "$OTOOL"; then
13309   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314   IFS=$as_save_IFS
13315   test -z "$as_dir" && as_dir=.
13316     for ac_exec_ext in '' $ac_executable_extensions; do
13317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320     break 2
13321   fi
13322 done
13323   done
13324 IFS=$as_save_IFS
13325
13326 fi
13327 fi
13328 OTOOL=$ac_cv_prog_OTOOL
13329 if test -n "$OTOOL"; then
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13331 $as_echo "$OTOOL" >&6; }
13332 else
13333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336
13337
13338 fi
13339 if test -z "$ac_cv_prog_OTOOL"; then
13340   ac_ct_OTOOL=$OTOOL
13341   # Extract the first word of "otool", so it can be a program name with args.
13342 set dummy otool; ac_word=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344 $as_echo_n "checking for $ac_word... " >&6; }
13345 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13346   $as_echo_n "(cached) " >&6
13347 else
13348   if test -n "$ac_ct_OTOOL"; then
13349   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13350 else
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13353 do
13354   IFS=$as_save_IFS
13355   test -z "$as_dir" && as_dir=.
13356     for ac_exec_ext in '' $ac_executable_extensions; do
13357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13358     ac_cv_prog_ac_ct_OTOOL="otool"
13359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360     break 2
13361   fi
13362 done
13363   done
13364 IFS=$as_save_IFS
13365
13366 fi
13367 fi
13368 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13369 if test -n "$ac_ct_OTOOL"; then
13370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13371 $as_echo "$ac_ct_OTOOL" >&6; }
13372 else
13373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13375 fi
13376
13377   if test "x$ac_ct_OTOOL" = x; then
13378     OTOOL=":"
13379   else
13380     case $cross_compiling:$ac_tool_warned in
13381 yes:)
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13384 ac_tool_warned=yes ;;
13385 esac
13386     OTOOL=$ac_ct_OTOOL
13387   fi
13388 else
13389   OTOOL="$ac_cv_prog_OTOOL"
13390 fi
13391
13392     if test -n "$ac_tool_prefix"; then
13393   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13394 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13398   $as_echo_n "(cached) " >&6
13399 else
13400   if test -n "$OTOOL64"; then
13401   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13402 else
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13405 do
13406   IFS=$as_save_IFS
13407   test -z "$as_dir" && as_dir=.
13408     for ac_exec_ext in '' $ac_executable_extensions; do
13409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13410     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412     break 2
13413   fi
13414 done
13415   done
13416 IFS=$as_save_IFS
13417
13418 fi
13419 fi
13420 OTOOL64=$ac_cv_prog_OTOOL64
13421 if test -n "$OTOOL64"; then
13422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13423 $as_echo "$OTOOL64" >&6; }
13424 else
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13427 fi
13428
13429
13430 fi
13431 if test -z "$ac_cv_prog_OTOOL64"; then
13432   ac_ct_OTOOL64=$OTOOL64
13433   # Extract the first word of "otool64", so it can be a program name with args.
13434 set dummy otool64; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 $as_echo_n "checking for $ac_word... " >&6; }
13437 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13438   $as_echo_n "(cached) " >&6
13439 else
13440   if test -n "$ac_ct_OTOOL64"; then
13441   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13442 else
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13445 do
13446   IFS=$as_save_IFS
13447   test -z "$as_dir" && as_dir=.
13448     for ac_exec_ext in '' $ac_executable_extensions; do
13449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13450     ac_cv_prog_ac_ct_OTOOL64="otool64"
13451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452     break 2
13453   fi
13454 done
13455   done
13456 IFS=$as_save_IFS
13457
13458 fi
13459 fi
13460 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13461 if test -n "$ac_ct_OTOOL64"; then
13462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13463 $as_echo "$ac_ct_OTOOL64" >&6; }
13464 else
13465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13467 fi
13468
13469   if test "x$ac_ct_OTOOL64" = x; then
13470     OTOOL64=":"
13471   else
13472     case $cross_compiling:$ac_tool_warned in
13473 yes:)
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13476 ac_tool_warned=yes ;;
13477 esac
13478     OTOOL64=$ac_ct_OTOOL64
13479   fi
13480 else
13481   OTOOL64="$ac_cv_prog_OTOOL64"
13482 fi
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13511 $as_echo_n "checking for -single_module linker flag... " >&6; }
13512 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13513   $as_echo_n "(cached) " >&6
13514 else
13515   lt_cv_apple_cc_single_mod=no
13516       if test -z "${LT_MULTI_MODULE}"; then
13517         # By default we will add the -single_module flag. You can override
13518         # by either setting the environment variable LT_MULTI_MODULE
13519         # non-empty at configure time, or by adding -multi_module to the
13520         # link flags.
13521         rm -rf libconftest.dylib*
13522         echo "int foo(void){return 1;}" > conftest.c
13523         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13524 -dynamiclib -Wl,-single_module conftest.c" >&5
13525         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13526           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13527         _lt_result=$?
13528         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13529           lt_cv_apple_cc_single_mod=yes
13530         else
13531           cat conftest.err >&5
13532         fi
13533         rm -rf libconftest.dylib*
13534         rm -f conftest.*
13535       fi
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13538 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13540 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13541 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13542   $as_echo_n "(cached) " >&6
13543 else
13544   lt_cv_ld_exported_symbols_list=no
13545       save_LDFLAGS=$LDFLAGS
13546       echo "_main" > conftest.sym
13547       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13548       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h.  */
13550
13551 int
13552 main ()
13553 {
13554
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560   lt_cv_ld_exported_symbols_list=yes
13561 else
13562   lt_cv_ld_exported_symbols_list=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565     conftest$ac_exeext conftest.$ac_ext
13566         LDFLAGS="$save_LDFLAGS"
13567
13568 fi
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13570 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13572 $as_echo_n "checking for -force_load linker flag... " >&6; }
13573 if test "${lt_cv_ld_force_load+set}" = set; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   lt_cv_ld_force_load=no
13577       cat > conftest.c << _LT_EOF
13578 int forced_loaded() { return 2;}
13579 _LT_EOF
13580       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13581       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13582       echo "$AR cru libconftest.a conftest.o" >&5
13583       $AR cru libconftest.a conftest.o 2>&5
13584       cat > conftest.c << _LT_EOF
13585 int main() { return 0;}
13586 _LT_EOF
13587       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13588       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13589       _lt_result=$?
13590       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13591         lt_cv_ld_force_load=yes
13592       else
13593         cat conftest.err >&5
13594       fi
13595         rm -f conftest.err libconftest.a conftest conftest.c
13596         rm -rf conftest.dSYM
13597
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13600 $as_echo "$lt_cv_ld_force_load" >&6; }
13601     case $host_os in
13602     rhapsody* | darwin1.[012])
13603       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13604     darwin1.*)
13605       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13606     darwin*) # darwin 5.x on
13607       # if running on 10.5 or later, the deployment target defaults
13608       # to the OS version, if on x86, and 10.4, the deployment
13609       # target defaults to 10.4. Don't you love it?
13610       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13611         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13612           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13613         10.[012]*)
13614           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13615         10.*)
13616           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13617       esac
13618     ;;
13619   esac
13620     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13621       _lt_dar_single_mod='$single_module'
13622     fi
13623     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13624       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13625     else
13626       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13627     fi
13628     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13629       _lt_dsymutil='~$DSYMUTIL $lib || :'
13630     else
13631       _lt_dsymutil=
13632     fi
13633     ;;
13634   esac
13635
13636 for ac_header in dlfcn.h
13637 do :
13638   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13639 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13640   cat >>confdefs.h <<_ACEOF
13641 #define HAVE_DLFCN_H 1
13642 _ACEOF
13643
13644 fi
13645 done
13646
13647
13648
13649
13650
13651
13652 # Set options
13653
13654
13655
13656         enable_dlopen=no
13657
13658
13659   enable_win32_dll=no
13660
13661
13662             # Check whether --enable-shared was given.
13663 if test "${enable_shared+set}" = set; then :
13664   enableval=$enable_shared; p=${PACKAGE-default}
13665     case $enableval in
13666     yes) enable_shared=yes ;;
13667     no) enable_shared=no ;;
13668     *)
13669       enable_shared=no
13670       # Look at the argument we got.  We use all the common list separators.
13671       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13672       for pkg in $enableval; do
13673         IFS="$lt_save_ifs"
13674         if test "X$pkg" = "X$p"; then
13675           enable_shared=yes
13676         fi
13677       done
13678       IFS="$lt_save_ifs"
13679       ;;
13680     esac
13681 else
13682   enable_shared=yes
13683 fi
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693   # Check whether --enable-static was given.
13694 if test "${enable_static+set}" = set; then :
13695   enableval=$enable_static; p=${PACKAGE-default}
13696     case $enableval in
13697     yes) enable_static=yes ;;
13698     no) enable_static=no ;;
13699     *)
13700      enable_static=no
13701       # Look at the argument we got.  We use all the common list separators.
13702       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13703       for pkg in $enableval; do
13704         IFS="$lt_save_ifs"
13705         if test "X$pkg" = "X$p"; then
13706           enable_static=yes
13707         fi
13708       done
13709       IFS="$lt_save_ifs"
13710       ;;
13711     esac
13712 else
13713   enable_static=yes
13714 fi
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725 # Check whether --with-pic was given.
13726 if test "${with_pic+set}" = set; then :
13727   withval=$with_pic; pic_mode="$withval"
13728 else
13729   pic_mode=default
13730 fi
13731
13732
13733 test -z "$pic_mode" && pic_mode=default
13734
13735
13736
13737
13738
13739
13740
13741   # Check whether --enable-fast-install was given.
13742 if test "${enable_fast_install+set}" = set; then :
13743   enableval=$enable_fast_install; p=${PACKAGE-default}
13744     case $enableval in
13745     yes) enable_fast_install=yes ;;
13746     no) enable_fast_install=no ;;
13747     *)
13748       enable_fast_install=no
13749       # Look at the argument we got.  We use all the common list separators.
13750       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13751       for pkg in $enableval; do
13752         IFS="$lt_save_ifs"
13753         if test "X$pkg" = "X$p"; then
13754           enable_fast_install=yes
13755         fi
13756       done
13757       IFS="$lt_save_ifs"
13758       ;;
13759     esac
13760 else
13761   enable_fast_install=yes
13762 fi
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774 # This can be used to rebuild libtool when needed
13775 LIBTOOL_DEPS="$ltmain"
13776
13777 # Always use our own libtool.
13778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805 test -z "$LN_S" && LN_S="ln -s"
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820 if test -n "${ZSH_VERSION+set}" ; then
13821    setopt NO_GLOB_SUBST
13822 fi
13823
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13825 $as_echo_n "checking for objdir... " >&6; }
13826 if test "${lt_cv_objdir+set}" = set; then :
13827   $as_echo_n "(cached) " >&6
13828 else
13829   rm -f .libs 2>/dev/null
13830 mkdir .libs 2>/dev/null
13831 if test -d .libs; then
13832   lt_cv_objdir=.libs
13833 else
13834   # MS-DOS does not allow filenames that begin with a dot.
13835   lt_cv_objdir=_libs
13836 fi
13837 rmdir .libs 2>/dev/null
13838 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13840 $as_echo "$lt_cv_objdir" >&6; }
13841 objdir=$lt_cv_objdir
13842
13843
13844
13845
13846
13847 cat >>confdefs.h <<_ACEOF
13848 #define LT_OBJDIR "$lt_cv_objdir/"
13849 _ACEOF
13850
13851
13852
13853
13854 case $host_os in
13855 aix3*)
13856   # AIX sometimes has problems with the GCC collect2 program.  For some
13857   # reason, if we set the COLLECT_NAMES environment variable, the problems
13858   # vanish in a puff of smoke.
13859   if test "X${COLLECT_NAMES+set}" != Xset; then
13860     COLLECT_NAMES=
13861     export COLLECT_NAMES
13862   fi
13863   ;;
13864 esac
13865
13866 # Global variables:
13867 ofile=libtool
13868 can_build_shared=yes
13869
13870 # All known linkers require a `.a' archive for static linking (except MSVC,
13871 # which needs '.lib').
13872 libext=a
13873
13874 with_gnu_ld="$lt_cv_prog_gnu_ld"
13875
13876 old_CC="$CC"
13877 old_CFLAGS="$CFLAGS"
13878
13879 # Set sane defaults for various variables
13880 test -z "$CC" && CC=cc
13881 test -z "$LTCC" && LTCC=$CC
13882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13883 test -z "$LD" && LD=ld
13884 test -z "$ac_objext" && ac_objext=o
13885
13886 for cc_temp in $compiler""; do
13887   case $cc_temp in
13888     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13889     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13890     \-*) ;;
13891     *) break;;
13892   esac
13893 done
13894 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13895
13896
13897 # Only perform the check for file, if the check method requires it
13898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13899 case $deplibs_check_method in
13900 file_magic*)
13901   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13903 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13905   $as_echo_n "(cached) " >&6
13906 else
13907   case $MAGIC_CMD in
13908 [\\/*] |  ?:[\\/]*)
13909   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13910   ;;
13911 *)
13912   lt_save_MAGIC_CMD="$MAGIC_CMD"
13913   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13914   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13915   for ac_dir in $ac_dummy; do
13916     IFS="$lt_save_ifs"
13917     test -z "$ac_dir" && ac_dir=.
13918     if test -f $ac_dir/${ac_tool_prefix}file; then
13919       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13920       if test -n "$file_magic_test_file"; then
13921         case $deplibs_check_method in
13922         "file_magic "*)
13923           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13924           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13925           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13926             $EGREP "$file_magic_regex" > /dev/null; then
13927             :
13928           else
13929             cat <<_LT_EOF 1>&2
13930
13931 *** Warning: the command libtool uses to detect shared libraries,
13932 *** $file_magic_cmd, produces output that libtool cannot recognize.
13933 *** The result is that libtool may fail to recognize shared libraries
13934 *** as such.  This will affect the creation of libtool libraries that
13935 *** depend on shared libraries, but programs linked with such libtool
13936 *** libraries will work regardless of this problem.  Nevertheless, you
13937 *** may want to report the problem to your system manager and/or to
13938 *** bug-libtool@gnu.org
13939
13940 _LT_EOF
13941           fi ;;
13942         esac
13943       fi
13944       break
13945     fi
13946   done
13947   IFS="$lt_save_ifs"
13948   MAGIC_CMD="$lt_save_MAGIC_CMD"
13949   ;;
13950 esac
13951 fi
13952
13953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13954 if test -n "$MAGIC_CMD"; then
13955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13956 $as_echo "$MAGIC_CMD" >&6; }
13957 else
13958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13960 fi
13961
13962
13963
13964
13965
13966 if test -z "$lt_cv_path_MAGIC_CMD"; then
13967   if test -n "$ac_tool_prefix"; then
13968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13969 $as_echo_n "checking for file... " >&6; }
13970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13971   $as_echo_n "(cached) " >&6
13972 else
13973   case $MAGIC_CMD in
13974 [\\/*] |  ?:[\\/]*)
13975   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13976   ;;
13977 *)
13978   lt_save_MAGIC_CMD="$MAGIC_CMD"
13979   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13980   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13981   for ac_dir in $ac_dummy; do
13982     IFS="$lt_save_ifs"
13983     test -z "$ac_dir" && ac_dir=.
13984     if test -f $ac_dir/file; then
13985       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13986       if test -n "$file_magic_test_file"; then
13987         case $deplibs_check_method in
13988         "file_magic "*)
13989           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13990           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13992             $EGREP "$file_magic_regex" > /dev/null; then
13993             :
13994           else
13995             cat <<_LT_EOF 1>&2
13996
13997 *** Warning: the command libtool uses to detect shared libraries,
13998 *** $file_magic_cmd, produces output that libtool cannot recognize.
13999 *** The result is that libtool may fail to recognize shared libraries
14000 *** as such.  This will affect the creation of libtool libraries that
14001 *** depend on shared libraries, but programs linked with such libtool
14002 *** libraries will work regardless of this problem.  Nevertheless, you
14003 *** may want to report the problem to your system manager and/or to
14004 *** bug-libtool@gnu.org
14005
14006 _LT_EOF
14007           fi ;;
14008         esac
14009       fi
14010       break
14011     fi
14012   done
14013   IFS="$lt_save_ifs"
14014   MAGIC_CMD="$lt_save_MAGIC_CMD"
14015   ;;
14016 esac
14017 fi
14018
14019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14020 if test -n "$MAGIC_CMD"; then
14021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14022 $as_echo "$MAGIC_CMD" >&6; }
14023 else
14024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025 $as_echo "no" >&6; }
14026 fi
14027
14028
14029   else
14030     MAGIC_CMD=:
14031   fi
14032 fi
14033
14034   fi
14035   ;;
14036 esac
14037
14038 # Use C for the default configuration in the libtool script
14039
14040 lt_save_CC="$CC"
14041 ac_ext=c
14042 ac_cpp='$CPP $CPPFLAGS'
14043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14046
14047
14048 # Source file extension for C test sources.
14049 ac_ext=c
14050
14051 # Object file extension for compiled C test sources.
14052 objext=o
14053 objext=$objext
14054
14055 # Code to be used in simple compile tests
14056 lt_simple_compile_test_code="int some_variable = 0;"
14057
14058 # Code to be used in simple link tests
14059 lt_simple_link_test_code='int main(){return(0);}'
14060
14061
14062
14063
14064
14065
14066
14067 # If no C compiler was specified, use CC.
14068 LTCC=${LTCC-"$CC"}
14069
14070 # If no C compiler flags were specified, use CFLAGS.
14071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14072
14073 # Allow CC to be a program name with arguments.
14074 compiler=$CC
14075
14076 # Save the default compiler, since it gets overwritten when the other
14077 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14078 compiler_DEFAULT=$CC
14079
14080 # save warnings/boilerplate of simple test code
14081 ac_outfile=conftest.$ac_objext
14082 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14084 _lt_compiler_boilerplate=`cat conftest.err`
14085 $RM conftest*
14086
14087 ac_outfile=conftest.$ac_objext
14088 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14090 _lt_linker_boilerplate=`cat conftest.err`
14091 $RM -r conftest*
14092
14093
14094 ## CAVEAT EMPTOR:
14095 ## There is no encapsulation within the following macros, do not change
14096 ## the running order or otherwise move them around unless you know exactly
14097 ## what you are doing...
14098 if test -n "$compiler"; then
14099
14100 lt_prog_compiler_no_builtin_flag=
14101
14102 if test "$GCC" = yes; then
14103   case $cc_basename in
14104   nvcc*)
14105     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14106   *)
14107     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14108   esac
14109
14110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14111 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14112 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14113   $as_echo_n "(cached) " >&6
14114 else
14115   lt_cv_prog_compiler_rtti_exceptions=no
14116    ac_outfile=conftest.$ac_objext
14117    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14118    lt_compiler_flag="-fno-rtti -fno-exceptions"
14119    # Insert the option either (1) after the last *FLAGS variable, or
14120    # (2) before a word containing "conftest.", or (3) at the end.
14121    # Note that $ac_compile itself does not contain backslashes and begins
14122    # with a dollar sign (not a hyphen), so the echo should work correctly.
14123    # The option is referenced via a variable to avoid confusing sed.
14124    lt_compile=`echo "$ac_compile" | $SED \
14125    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14126    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14127    -e 's:$: $lt_compiler_flag:'`
14128    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14129    (eval "$lt_compile" 2>conftest.err)
14130    ac_status=$?
14131    cat conftest.err >&5
14132    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133    if (exit $ac_status) && test -s "$ac_outfile"; then
14134      # The compiler can only warn and ignore the option if not recognized
14135      # So say no if there are warnings other than the usual output.
14136      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14137      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14138      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14139        lt_cv_prog_compiler_rtti_exceptions=yes
14140      fi
14141    fi
14142    $RM conftest*
14143
14144 fi
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14147
14148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14149     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14150 else
14151     :
14152 fi
14153
14154 fi
14155
14156
14157
14158
14159
14160
14161   lt_prog_compiler_wl=
14162 lt_prog_compiler_pic=
14163 lt_prog_compiler_static=
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14166 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14167
14168   if test "$GCC" = yes; then
14169     lt_prog_compiler_wl='-Wl,'
14170     lt_prog_compiler_static='-static'
14171
14172     case $host_os in
14173       aix*)
14174       # All AIX code is PIC.
14175       if test "$host_cpu" = ia64; then
14176         # AIX 5 now supports IA64 processor
14177         lt_prog_compiler_static='-Bstatic'
14178       fi
14179       ;;
14180
14181     amigaos*)
14182       case $host_cpu in
14183       powerpc)
14184             # see comment about AmigaOS4 .so support
14185             lt_prog_compiler_pic='-fPIC'
14186         ;;
14187       m68k)
14188             # FIXME: we need at least 68020 code to build shared libraries, but
14189             # adding the `-m68020' flag to GCC prevents building anything better,
14190             # like `-m68040'.
14191             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14192         ;;
14193       esac
14194       ;;
14195
14196     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14197       # PIC is the default for these OSes.
14198       ;;
14199
14200     mingw* | cygwin* | pw32* | os2* | cegcc*)
14201       # This hack is so that the source file can tell whether it is being
14202       # built for inclusion in a dll (and should export symbols for example).
14203       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14204       # (--disable-auto-import) libraries
14205       lt_prog_compiler_pic='-DDLL_EXPORT'
14206       ;;
14207
14208     darwin* | rhapsody*)
14209       # PIC is the default on this platform
14210       # Common symbols not allowed in MH_DYLIB files
14211       lt_prog_compiler_pic='-fno-common'
14212       ;;
14213
14214     haiku*)
14215       # PIC is the default for Haiku.
14216       # The "-static" flag exists, but is broken.
14217       lt_prog_compiler_static=
14218       ;;
14219
14220     hpux*)
14221       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14222       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14223       # sets the default TLS model and affects inlining.
14224       case $host_cpu in
14225       hppa*64*)
14226         # +Z the default
14227         ;;
14228       *)
14229         lt_prog_compiler_pic='-fPIC'
14230         ;;
14231       esac
14232       ;;
14233
14234     interix[3-9]*)
14235       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14236       # Instead, we relocate shared libraries at runtime.
14237       ;;
14238
14239     msdosdjgpp*)
14240       # Just because we use GCC doesn't mean we suddenly get shared libraries
14241       # on systems that don't support them.
14242       lt_prog_compiler_can_build_shared=no
14243       enable_shared=no
14244       ;;
14245
14246     *nto* | *qnx*)
14247       # QNX uses GNU C++, but need to define -shared option too, otherwise
14248       # it will coredump.
14249       lt_prog_compiler_pic='-fPIC -shared'
14250       ;;
14251
14252     sysv4*MP*)
14253       if test -d /usr/nec; then
14254         lt_prog_compiler_pic=-Kconform_pic
14255       fi
14256       ;;
14257
14258     *)
14259       lt_prog_compiler_pic='-fPIC'
14260       ;;
14261     esac
14262
14263     case $cc_basename in
14264     nvcc*) # Cuda Compiler Driver 2.2
14265       lt_prog_compiler_wl='-Xlinker '
14266       lt_prog_compiler_pic='-Xcompiler -fPIC'
14267       ;;
14268     esac
14269   else
14270     # PORTME Check for flag to pass linker flags through the system compiler.
14271     case $host_os in
14272     aix*)
14273       lt_prog_compiler_wl='-Wl,'
14274       if test "$host_cpu" = ia64; then
14275         # AIX 5 now supports IA64 processor
14276         lt_prog_compiler_static='-Bstatic'
14277       else
14278         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14279       fi
14280       ;;
14281
14282     mingw* | cygwin* | pw32* | os2* | cegcc*)
14283       # This hack is so that the source file can tell whether it is being
14284       # built for inclusion in a dll (and should export symbols for example).
14285       lt_prog_compiler_pic='-DDLL_EXPORT'
14286       ;;
14287
14288     hpux9* | hpux10* | hpux11*)
14289       lt_prog_compiler_wl='-Wl,'
14290       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14291       # not for PA HP-UX.
14292       case $host_cpu in
14293       hppa*64*|ia64*)
14294         # +Z the default
14295         ;;
14296       *)
14297         lt_prog_compiler_pic='+Z'
14298         ;;
14299       esac
14300       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14301       lt_prog_compiler_static='${wl}-a ${wl}archive'
14302       ;;
14303
14304     irix5* | irix6* | nonstopux*)
14305       lt_prog_compiler_wl='-Wl,'
14306       # PIC (with -KPIC) is the default.
14307       lt_prog_compiler_static='-non_shared'
14308       ;;
14309
14310     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14311       case $cc_basename in
14312       # old Intel for x86_64 which still supported -KPIC.
14313       ecc*)
14314         lt_prog_compiler_wl='-Wl,'
14315         lt_prog_compiler_pic='-KPIC'
14316         lt_prog_compiler_static='-static'
14317         ;;
14318       # icc used to be incompatible with GCC.
14319       # ICC 10 doesn't accept -KPIC any more.
14320       icc* | ifort*)
14321         lt_prog_compiler_wl='-Wl,'
14322         lt_prog_compiler_pic='-fPIC'
14323         lt_prog_compiler_static='-static'
14324         ;;
14325       # Lahey Fortran 8.1.
14326       lf95*)
14327         lt_prog_compiler_wl='-Wl,'
14328         lt_prog_compiler_pic='--shared'
14329         lt_prog_compiler_static='--static'
14330         ;;
14331       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14332         # Portland Group compilers (*not* the Pentium gcc compiler,
14333         # which looks to be a dead project)
14334         lt_prog_compiler_wl='-Wl,'
14335         lt_prog_compiler_pic='-fpic'
14336         lt_prog_compiler_static='-Bstatic'
14337         ;;
14338       ccc*)
14339         lt_prog_compiler_wl='-Wl,'
14340         # All Alpha code is PIC.
14341         lt_prog_compiler_static='-non_shared'
14342         ;;
14343       xl* | bgxl* | bgf* | mpixl*)
14344         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14345         lt_prog_compiler_wl='-Wl,'
14346         lt_prog_compiler_pic='-qpic'
14347         lt_prog_compiler_static='-qstaticlink'
14348         ;;
14349       *)
14350         case `$CC -V 2>&1 | sed 5q` in
14351         *Sun\ F* | *Sun*Fortran*)
14352           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14353           lt_prog_compiler_pic='-KPIC'
14354           lt_prog_compiler_static='-Bstatic'
14355           lt_prog_compiler_wl=''
14356           ;;
14357         *Sun\ C*)
14358           # Sun C 5.9
14359           lt_prog_compiler_pic='-KPIC'
14360           lt_prog_compiler_static='-Bstatic'
14361           lt_prog_compiler_wl='-Wl,'
14362           ;;
14363         esac
14364         ;;
14365       esac
14366       ;;
14367
14368     newsos6)
14369       lt_prog_compiler_pic='-KPIC'
14370       lt_prog_compiler_static='-Bstatic'
14371       ;;
14372
14373     *nto* | *qnx*)
14374       # QNX uses GNU C++, but need to define -shared option too, otherwise
14375       # it will coredump.
14376       lt_prog_compiler_pic='-fPIC -shared'
14377       ;;
14378
14379     osf3* | osf4* | osf5*)
14380       lt_prog_compiler_wl='-Wl,'
14381       # All OSF/1 code is PIC.
14382       lt_prog_compiler_static='-non_shared'
14383       ;;
14384
14385     rdos*)
14386       lt_prog_compiler_static='-non_shared'
14387       ;;
14388
14389     solaris*)
14390       lt_prog_compiler_pic='-KPIC'
14391       lt_prog_compiler_static='-Bstatic'
14392       case $cc_basename in
14393       f77* | f90* | f95*)
14394         lt_prog_compiler_wl='-Qoption ld ';;
14395       *)
14396         lt_prog_compiler_wl='-Wl,';;
14397       esac
14398       ;;
14399
14400     sunos4*)
14401       lt_prog_compiler_wl='-Qoption ld '
14402       lt_prog_compiler_pic='-PIC'
14403       lt_prog_compiler_static='-Bstatic'
14404       ;;
14405
14406     sysv4 | sysv4.2uw2* | sysv4.3*)
14407       lt_prog_compiler_wl='-Wl,'
14408       lt_prog_compiler_pic='-KPIC'
14409       lt_prog_compiler_static='-Bstatic'
14410       ;;
14411
14412     sysv4*MP*)
14413       if test -d /usr/nec ;then
14414         lt_prog_compiler_pic='-Kconform_pic'
14415         lt_prog_compiler_static='-Bstatic'
14416       fi
14417       ;;
14418
14419     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14420       lt_prog_compiler_wl='-Wl,'
14421       lt_prog_compiler_pic='-KPIC'
14422       lt_prog_compiler_static='-Bstatic'
14423       ;;
14424
14425     unicos*)
14426       lt_prog_compiler_wl='-Wl,'
14427       lt_prog_compiler_can_build_shared=no
14428       ;;
14429
14430     uts4*)
14431       lt_prog_compiler_pic='-pic'
14432       lt_prog_compiler_static='-Bstatic'
14433       ;;
14434
14435     *)
14436       lt_prog_compiler_can_build_shared=no
14437       ;;
14438     esac
14439   fi
14440
14441 case $host_os in
14442   # For platforms which do not support PIC, -DPIC is meaningless:
14443   *djgpp*)
14444     lt_prog_compiler_pic=
14445     ;;
14446   *)
14447     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14448     ;;
14449 esac
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14451 $as_echo "$lt_prog_compiler_pic" >&6; }
14452
14453
14454
14455
14456
14457
14458 #
14459 # Check to make sure the PIC flag actually works.
14460 #
14461 if test -n "$lt_prog_compiler_pic"; then
14462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14463 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14464 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14465   $as_echo_n "(cached) " >&6
14466 else
14467   lt_cv_prog_compiler_pic_works=no
14468    ac_outfile=conftest.$ac_objext
14469    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14470    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14471    # Insert the option either (1) after the last *FLAGS variable, or
14472    # (2) before a word containing "conftest.", or (3) at the end.
14473    # Note that $ac_compile itself does not contain backslashes and begins
14474    # with a dollar sign (not a hyphen), so the echo should work correctly.
14475    # The option is referenced via a variable to avoid confusing sed.
14476    lt_compile=`echo "$ac_compile" | $SED \
14477    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14478    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14479    -e 's:$: $lt_compiler_flag:'`
14480    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14481    (eval "$lt_compile" 2>conftest.err)
14482    ac_status=$?
14483    cat conftest.err >&5
14484    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485    if (exit $ac_status) && test -s "$ac_outfile"; then
14486      # The compiler can only warn and ignore the option if not recognized
14487      # So say no if there are warnings other than the usual output.
14488      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14489      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14491        lt_cv_prog_compiler_pic_works=yes
14492      fi
14493    fi
14494    $RM conftest*
14495
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14498 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14499
14500 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14501     case $lt_prog_compiler_pic in
14502      "" | " "*) ;;
14503      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14504      esac
14505 else
14506     lt_prog_compiler_pic=
14507      lt_prog_compiler_can_build_shared=no
14508 fi
14509
14510 fi
14511
14512
14513
14514
14515
14516
14517 #
14518 # Check to make sure the static flag actually works.
14519 #
14520 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14522 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14523 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14524   $as_echo_n "(cached) " >&6
14525 else
14526   lt_cv_prog_compiler_static_works=no
14527    save_LDFLAGS="$LDFLAGS"
14528    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14529    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14530    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14531      # The linker can only warn and ignore the option if not recognized
14532      # So say no if there are warnings
14533      if test -s conftest.err; then
14534        # Append any errors to the config.log.
14535        cat conftest.err 1>&5
14536        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14537        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538        if diff conftest.exp conftest.er2 >/dev/null; then
14539          lt_cv_prog_compiler_static_works=yes
14540        fi
14541      else
14542        lt_cv_prog_compiler_static_works=yes
14543      fi
14544    fi
14545    $RM -r conftest*
14546    LDFLAGS="$save_LDFLAGS"
14547
14548 fi
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14550 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14551
14552 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14553     :
14554 else
14555     lt_prog_compiler_static=
14556 fi
14557
14558
14559
14560
14561
14562
14563
14564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14566 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14567   $as_echo_n "(cached) " >&6
14568 else
14569   lt_cv_prog_compiler_c_o=no
14570    $RM -r conftest 2>/dev/null
14571    mkdir conftest
14572    cd conftest
14573    mkdir out
14574    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14575
14576    lt_compiler_flag="-o out/conftest2.$ac_objext"
14577    # Insert the option either (1) after the last *FLAGS variable, or
14578    # (2) before a word containing "conftest.", or (3) at the end.
14579    # Note that $ac_compile itself does not contain backslashes and begins
14580    # with a dollar sign (not a hyphen), so the echo should work correctly.
14581    lt_compile=`echo "$ac_compile" | $SED \
14582    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14583    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14584    -e 's:$: $lt_compiler_flag:'`
14585    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14586    (eval "$lt_compile" 2>out/conftest.err)
14587    ac_status=$?
14588    cat out/conftest.err >&5
14589    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14591    then
14592      # The compiler can only warn and ignore the option if not recognized
14593      # So say no if there are warnings
14594      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14595      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14596      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14597        lt_cv_prog_compiler_c_o=yes
14598      fi
14599    fi
14600    chmod u+w . 2>&5
14601    $RM conftest*
14602    # SGI C++ compiler will create directory out/ii_files/ for
14603    # template instantiation
14604    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14605    $RM out/* && rmdir out
14606    cd ..
14607    $RM -r conftest
14608    $RM conftest*
14609
14610 fi
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14612 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14613
14614
14615
14616
14617
14618
14619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14621 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14622   $as_echo_n "(cached) " >&6
14623 else
14624   lt_cv_prog_compiler_c_o=no
14625    $RM -r conftest 2>/dev/null
14626    mkdir conftest
14627    cd conftest
14628    mkdir out
14629    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14630
14631    lt_compiler_flag="-o out/conftest2.$ac_objext"
14632    # Insert the option either (1) after the last *FLAGS variable, or
14633    # (2) before a word containing "conftest.", or (3) at the end.
14634    # Note that $ac_compile itself does not contain backslashes and begins
14635    # with a dollar sign (not a hyphen), so the echo should work correctly.
14636    lt_compile=`echo "$ac_compile" | $SED \
14637    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14638    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14639    -e 's:$: $lt_compiler_flag:'`
14640    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14641    (eval "$lt_compile" 2>out/conftest.err)
14642    ac_status=$?
14643    cat out/conftest.err >&5
14644    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14646    then
14647      # The compiler can only warn and ignore the option if not recognized
14648      # So say no if there are warnings
14649      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14650      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14651      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14652        lt_cv_prog_compiler_c_o=yes
14653      fi
14654    fi
14655    chmod u+w . 2>&5
14656    $RM conftest*
14657    # SGI C++ compiler will create directory out/ii_files/ for
14658    # template instantiation
14659    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14660    $RM out/* && rmdir out
14661    cd ..
14662    $RM -r conftest
14663    $RM conftest*
14664
14665 fi
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14667 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14668
14669
14670
14671
14672 hard_links="nottested"
14673 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14674   # do not overwrite the value of need_locks provided by the user
14675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14676 $as_echo_n "checking if we can lock with hard links... " >&6; }
14677   hard_links=yes
14678   $RM conftest*
14679   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14680   touch conftest.a
14681   ln conftest.a conftest.b 2>&5 || hard_links=no
14682   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14684 $as_echo "$hard_links" >&6; }
14685   if test "$hard_links" = no; then
14686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14687 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14688     need_locks=warn
14689   fi
14690 else
14691   need_locks=no
14692 fi
14693
14694
14695
14696
14697
14698
14699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14700 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14701
14702   runpath_var=
14703   allow_undefined_flag=
14704   always_export_symbols=no
14705   archive_cmds=
14706   archive_expsym_cmds=
14707   compiler_needs_object=no
14708   enable_shared_with_static_runtimes=no
14709   export_dynamic_flag_spec=
14710   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14711   hardcode_automatic=no
14712   hardcode_direct=no
14713   hardcode_direct_absolute=no
14714   hardcode_libdir_flag_spec=
14715   hardcode_libdir_flag_spec_ld=
14716   hardcode_libdir_separator=
14717   hardcode_minus_L=no
14718   hardcode_shlibpath_var=unsupported
14719   inherit_rpath=no
14720   link_all_deplibs=unknown
14721   module_cmds=
14722   module_expsym_cmds=
14723   old_archive_from_new_cmds=
14724   old_archive_from_expsyms_cmds=
14725   thread_safe_flag_spec=
14726   whole_archive_flag_spec=
14727   # include_expsyms should be a list of space-separated symbols to be *always*
14728   # included in the symbol list
14729   include_expsyms=
14730   # exclude_expsyms can be an extended regexp of symbols to exclude
14731   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14732   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14733   # as well as any symbol that contains `d'.
14734   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14735   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14736   # platforms (ab)use it in PIC code, but their linkers get confused if
14737   # the symbol is explicitly referenced.  Since portable code cannot
14738   # rely on this symbol name, it's probably fine to never include it in
14739   # preloaded symbol tables.
14740   # Exclude shared library initialization/finalization symbols.
14741   extract_expsyms_cmds=
14742
14743   case $host_os in
14744   cygwin* | mingw* | pw32* | cegcc*)
14745     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14746     # When not using gcc, we currently assume that we are using
14747     # Microsoft Visual C++.
14748     if test "$GCC" != yes; then
14749       with_gnu_ld=no
14750     fi
14751     ;;
14752   interix*)
14753     # we just hope/assume this is gcc and not c89 (= MSVC++)
14754     with_gnu_ld=yes
14755     ;;
14756   openbsd*)
14757     with_gnu_ld=no
14758     ;;
14759   esac
14760
14761   ld_shlibs=yes
14762
14763   # On some targets, GNU ld is compatible enough with the native linker
14764   # that we're better off using the native interface for both.
14765   lt_use_gnu_ld_interface=no
14766   if test "$with_gnu_ld" = yes; then
14767     case $host_os in
14768       aix*)
14769         # The AIX port of GNU ld has always aspired to compatibility
14770         # with the native linker.  However, as the warning in the GNU ld
14771         # block says, versions before 2.19.5* couldn't really create working
14772         # shared libraries, regardless of the interface used.
14773         case `$LD -v 2>&1` in
14774           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14775           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14776           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14777           *)
14778             lt_use_gnu_ld_interface=yes
14779             ;;
14780         esac
14781         ;;
14782       *)
14783         lt_use_gnu_ld_interface=yes
14784         ;;
14785     esac
14786   fi
14787
14788   if test "$lt_use_gnu_ld_interface" = yes; then
14789     # If archive_cmds runs LD, not CC, wlarc should be empty
14790     wlarc='${wl}'
14791
14792     # Set some defaults for GNU ld with shared library support. These
14793     # are reset later if shared libraries are not supported. Putting them
14794     # here allows them to be overridden if necessary.
14795     runpath_var=LD_RUN_PATH
14796     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14797     export_dynamic_flag_spec='${wl}--export-dynamic'
14798     # ancient GNU ld didn't support --whole-archive et. al.
14799     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14800       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14801     else
14802       whole_archive_flag_spec=
14803     fi
14804     supports_anon_versioning=no
14805     case `$LD -v 2>&1` in
14806       *GNU\ gold*) supports_anon_versioning=yes ;;
14807       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14808       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14809       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14810       *\ 2.11.*) ;; # other 2.11 versions
14811       *) supports_anon_versioning=yes ;;
14812     esac
14813
14814     # See if GNU ld supports shared libraries.
14815     case $host_os in
14816     aix[3-9]*)
14817       # On AIX/PPC, the GNU linker is very broken
14818       if test "$host_cpu" != ia64; then
14819         ld_shlibs=no
14820         cat <<_LT_EOF 1>&2
14821
14822 *** Warning: the GNU linker, at least up to release 2.19, is reported
14823 *** to be unable to reliably create shared libraries on AIX.
14824 *** Therefore, libtool is disabling shared libraries support.  If you
14825 *** really care for shared libraries, you may want to install binutils
14826 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14827 *** You will then need to restart the configuration process.
14828
14829 _LT_EOF
14830       fi
14831       ;;
14832
14833     amigaos*)
14834       case $host_cpu in
14835       powerpc)
14836             # see comment about AmigaOS4 .so support
14837             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14838             archive_expsym_cmds=''
14839         ;;
14840       m68k)
14841             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)'
14842             hardcode_libdir_flag_spec='-L$libdir'
14843             hardcode_minus_L=yes
14844         ;;
14845       esac
14846       ;;
14847
14848     beos*)
14849       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14850         allow_undefined_flag=unsupported
14851         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14852         # support --undefined.  This deserves some investigation.  FIXME
14853         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14854       else
14855         ld_shlibs=no
14856       fi
14857       ;;
14858
14859     cygwin* | mingw* | pw32* | cegcc*)
14860       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14861       # as there is no search path for DLLs.
14862       hardcode_libdir_flag_spec='-L$libdir'
14863       export_dynamic_flag_spec='${wl}--export-all-symbols'
14864       allow_undefined_flag=unsupported
14865       always_export_symbols=no
14866       enable_shared_with_static_runtimes=yes
14867       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14868
14869       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14870         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14871         # If the export-symbols file already is a .def file (1st line
14872         # is EXPORTS), use it as is; otherwise, prepend...
14873         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14874           cp $export_symbols $output_objdir/$soname.def;
14875         else
14876           echo EXPORTS > $output_objdir/$soname.def;
14877           cat $export_symbols >> $output_objdir/$soname.def;
14878         fi~
14879         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14880       else
14881         ld_shlibs=no
14882       fi
14883       ;;
14884
14885     haiku*)
14886       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14887       link_all_deplibs=yes
14888       ;;
14889
14890     interix[3-9]*)
14891       hardcode_direct=no
14892       hardcode_shlibpath_var=no
14893       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14894       export_dynamic_flag_spec='${wl}-E'
14895       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14896       # Instead, shared libraries are loaded at an image base (0x10000000 by
14897       # default) and relocated if they conflict, which is a slow very memory
14898       # consuming and fragmenting process.  To avoid this, we pick a random,
14899       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14900       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14901       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14902       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'
14903       ;;
14904
14905     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14906       tmp_diet=no
14907       if test "$host_os" = linux-dietlibc; then
14908         case $cc_basename in
14909           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14910         esac
14911       fi
14912       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14913          && test "$tmp_diet" = no
14914       then
14915         tmp_addflag=
14916         tmp_sharedflag='-shared'
14917         case $cc_basename,$host_cpu in
14918         pgcc*)                          # Portland Group C compiler
14919           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'
14920           tmp_addflag=' $pic_flag'
14921           ;;
14922         pgf77* | pgf90* | pgf95* | pgfortran*)
14923                                         # Portland Group f77 and f90 compilers
14924           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'
14925           tmp_addflag=' $pic_flag -Mnomain' ;;
14926         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14927           tmp_addflag=' -i_dynamic' ;;
14928         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14929           tmp_addflag=' -i_dynamic -nofor_main' ;;
14930         ifc* | ifort*)                  # Intel Fortran compiler
14931           tmp_addflag=' -nofor_main' ;;
14932         lf95*)                          # Lahey Fortran 8.1
14933           whole_archive_flag_spec=
14934           tmp_sharedflag='--shared' ;;
14935         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14936           tmp_sharedflag='-qmkshrobj'
14937           tmp_addflag= ;;
14938         nvcc*)  # Cuda Compiler Driver 2.2
14939           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'
14940           compiler_needs_object=yes
14941           ;;
14942         esac
14943         case `$CC -V 2>&1 | sed 5q` in
14944         *Sun\ C*)                       # Sun C 5.9
14945           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'
14946           compiler_needs_object=yes
14947           tmp_sharedflag='-G' ;;
14948         *Sun\ F*)                       # Sun Fortran 8.3
14949           tmp_sharedflag='-G' ;;
14950         esac
14951         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14952
14953         if test "x$supports_anon_versioning" = xyes; then
14954           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14955             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14956             echo "local: *; };" >> $output_objdir/$libname.ver~
14957             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14958         fi
14959
14960         case $cc_basename in
14961         xlf* | bgf* | bgxlf* | mpixlf*)
14962           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14963           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14964           hardcode_libdir_flag_spec=
14965           hardcode_libdir_flag_spec_ld='-rpath $libdir'
14966           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14967           if test "x$supports_anon_versioning" = xyes; then
14968             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14969               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14970               echo "local: *; };" >> $output_objdir/$libname.ver~
14971               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14972           fi
14973           ;;
14974         esac
14975       else
14976         ld_shlibs=no
14977       fi
14978       ;;
14979
14980     netbsd*)
14981       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14982         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14983         wlarc=
14984       else
14985         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14987       fi
14988       ;;
14989
14990     solaris*)
14991       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14992         ld_shlibs=no
14993         cat <<_LT_EOF 1>&2
14994
14995 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14996 *** create shared libraries on Solaris systems.  Therefore, libtool
14997 *** is disabling shared libraries support.  We urge you to upgrade GNU
14998 *** binutils to release 2.9.1 or newer.  Another option is to modify
14999 *** your PATH or compiler configuration so that the native linker is
15000 *** used, and then restart.
15001
15002 _LT_EOF
15003       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15004         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15006       else
15007         ld_shlibs=no
15008       fi
15009       ;;
15010
15011     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15012       case `$LD -v 2>&1` in
15013         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15014         ld_shlibs=no
15015         cat <<_LT_EOF 1>&2
15016
15017 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15018 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15019 *** is disabling shared libraries support.  We urge you to upgrade GNU
15020 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15021 *** your PATH or compiler configuration so that the native linker is
15022 *** used, and then restart.
15023
15024 _LT_EOF
15025         ;;
15026         *)
15027           # For security reasons, it is highly recommended that you always
15028           # use absolute paths for naming shared libraries, and exclude the
15029           # DT_RUNPATH tag from executables and libraries.  But doing so
15030           # requires that you compile everything twice, which is a pain.
15031           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15032             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15033             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15034             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15035           else
15036             ld_shlibs=no
15037           fi
15038         ;;
15039       esac
15040       ;;
15041
15042     sunos4*)
15043       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15044       wlarc=
15045       hardcode_direct=yes
15046       hardcode_shlibpath_var=no
15047       ;;
15048
15049     *)
15050       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15051         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15053       else
15054         ld_shlibs=no
15055       fi
15056       ;;
15057     esac
15058
15059     if test "$ld_shlibs" = no; then
15060       runpath_var=
15061       hardcode_libdir_flag_spec=
15062       export_dynamic_flag_spec=
15063       whole_archive_flag_spec=
15064     fi
15065   else
15066     # PORTME fill in a description of your system's linker (not GNU ld)
15067     case $host_os in
15068     aix3*)
15069       allow_undefined_flag=unsupported
15070       always_export_symbols=yes
15071       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'
15072       # Note: this linker hardcodes the directories in LIBPATH if there
15073       # are no directories specified by -L.
15074       hardcode_minus_L=yes
15075       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15076         # Neither direct hardcoding nor static linking is supported with a
15077         # broken collect2.
15078         hardcode_direct=unsupported
15079       fi
15080       ;;
15081
15082     aix[4-9]*)
15083       if test "$host_cpu" = ia64; then
15084         # On IA64, the linker does run time linking by default, so we don't
15085         # have to do anything special.
15086         aix_use_runtimelinking=no
15087         exp_sym_flag='-Bexport'
15088         no_entry_flag=""
15089       else
15090         # If we're using GNU nm, then we don't want the "-C" option.
15091         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15092         # Also, AIX nm treats weak defined symbols like other global
15093         # defined symbols, whereas GNU nm marks them as "W".
15094         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15095           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'
15096         else
15097           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'
15098         fi
15099         aix_use_runtimelinking=no
15100
15101         # Test if we are trying to use run time linking or normal
15102         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15103         # need to do runtime linking.
15104         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15105           for ld_flag in $LDFLAGS; do
15106           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15107             aix_use_runtimelinking=yes
15108             break
15109           fi
15110           done
15111           ;;
15112         esac
15113
15114         exp_sym_flag='-bexport'
15115         no_entry_flag='-bnoentry'
15116       fi
15117
15118       # When large executables or shared objects are built, AIX ld can
15119       # have problems creating the table of contents.  If linking a library
15120       # or program results in "error TOC overflow" add -mminimal-toc to
15121       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15122       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15123
15124       archive_cmds=''
15125       hardcode_direct=yes
15126       hardcode_direct_absolute=yes
15127       hardcode_libdir_separator=':'
15128       link_all_deplibs=yes
15129       file_list_spec='${wl}-f,'
15130
15131       if test "$GCC" = yes; then
15132         case $host_os in aix4.[012]|aix4.[012].*)
15133         # We only want to do this on AIX 4.2 and lower, the check
15134         # below for broken collect2 doesn't work under 4.3+
15135           collect2name=`${CC} -print-prog-name=collect2`
15136           if test -f "$collect2name" &&
15137            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15138           then
15139           # We have reworked collect2
15140           :
15141           else
15142           # We have old collect2
15143           hardcode_direct=unsupported
15144           # It fails to find uninstalled libraries when the uninstalled
15145           # path is not listed in the libpath.  Setting hardcode_minus_L
15146           # to unsupported forces relinking
15147           hardcode_minus_L=yes
15148           hardcode_libdir_flag_spec='-L$libdir'
15149           hardcode_libdir_separator=
15150           fi
15151           ;;
15152         esac
15153         shared_flag='-shared'
15154         if test "$aix_use_runtimelinking" = yes; then
15155           shared_flag="$shared_flag "'${wl}-G'
15156         fi
15157       else
15158         # not using gcc
15159         if test "$host_cpu" = ia64; then
15160         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15161         # chokes on -Wl,-G. The following line is correct:
15162           shared_flag='-G'
15163         else
15164           if test "$aix_use_runtimelinking" = yes; then
15165             shared_flag='${wl}-G'
15166           else
15167             shared_flag='${wl}-bM:SRE'
15168           fi
15169         fi
15170       fi
15171
15172       export_dynamic_flag_spec='${wl}-bexpall'
15173       # It seems that -bexpall does not export symbols beginning with
15174       # underscore (_), so it is better to generate a list of symbols to export.
15175       always_export_symbols=yes
15176       if test "$aix_use_runtimelinking" = yes; then
15177         # Warning - without using the other runtime loading flags (-brtl),
15178         # -berok will link without error, but may produce a broken library.
15179         allow_undefined_flag='-berok'
15180         # Determine the default libpath from the value encoded in an
15181         # empty executable.
15182         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h.  */
15184
15185 int
15186 main ()
15187 {
15188
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 if ac_fn_c_try_link "$LINENO"; then :
15194
15195 lt_aix_libpath_sed='
15196     /Import File Strings/,/^$/ {
15197         /^0/ {
15198             s/^0  *\(.*\)$/\1/
15199             p
15200         }
15201     }'
15202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15203 # Check for a 64-bit object if we didn't find anything.
15204 if test -z "$aix_libpath"; then
15205   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15206 fi
15207 fi
15208 rm -f core conftest.err conftest.$ac_objext \
15209     conftest$ac_exeext conftest.$ac_ext
15210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15211
15212         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15213         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"
15214       else
15215         if test "$host_cpu" = ia64; then
15216           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15217           allow_undefined_flag="-z nodefs"
15218           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"
15219         else
15220          # Determine the default libpath from the value encoded in an
15221          # empty executable.
15222          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h.  */
15224
15225 int
15226 main ()
15227 {
15228
15229   ;
15230   return 0;
15231 }
15232 _ACEOF
15233 if ac_fn_c_try_link "$LINENO"; then :
15234
15235 lt_aix_libpath_sed='
15236     /Import File Strings/,/^$/ {
15237         /^0/ {
15238             s/^0  *\(.*\)$/\1/
15239             p
15240         }
15241     }'
15242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243 # Check for a 64-bit object if we didn't find anything.
15244 if test -z "$aix_libpath"; then
15245   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15246 fi
15247 fi
15248 rm -f core conftest.err conftest.$ac_objext \
15249     conftest$ac_exeext conftest.$ac_ext
15250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15251
15252          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15253           # Warning - without using the other run time loading flags,
15254           # -berok will link without error, but may produce a broken library.
15255           no_undefined_flag=' ${wl}-bernotok'
15256           allow_undefined_flag=' ${wl}-berok'
15257           if test "$with_gnu_ld" = yes; then
15258             # We only use this code for GNU lds that support --whole-archive.
15259             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15260           else
15261             # Exported symbols can be pulled into shared objects from archives
15262             whole_archive_flag_spec='$convenience'
15263           fi
15264           archive_cmds_need_lc=yes
15265           # This is similar to how AIX traditionally builds its shared libraries.
15266           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'
15267         fi
15268       fi
15269       ;;
15270
15271     amigaos*)
15272       case $host_cpu in
15273       powerpc)
15274             # see comment about AmigaOS4 .so support
15275             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276             archive_expsym_cmds=''
15277         ;;
15278       m68k)
15279             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)'
15280             hardcode_libdir_flag_spec='-L$libdir'
15281             hardcode_minus_L=yes
15282         ;;
15283       esac
15284       ;;
15285
15286     bsdi[45]*)
15287       export_dynamic_flag_spec=-rdynamic
15288       ;;
15289
15290     cygwin* | mingw* | pw32* | cegcc*)
15291       # When not using gcc, we currently assume that we are using
15292       # Microsoft Visual C++.
15293       # hardcode_libdir_flag_spec is actually meaningless, as there is
15294       # no search path for DLLs.
15295       hardcode_libdir_flag_spec=' '
15296       allow_undefined_flag=unsupported
15297       # Tell ltmain to make .lib files, not .a files.
15298       libext=lib
15299       # Tell ltmain to make .dll files, not .so files.
15300       shrext_cmds=".dll"
15301       # FIXME: Setting linknames here is a bad hack.
15302       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15303       # The linker will automatically build a .lib file if we build a DLL.
15304       old_archive_from_new_cmds='true'
15305       # FIXME: Should let the user specify the lib program.
15306       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15307       fix_srcfile_path='`cygpath -w "$srcfile"`'
15308       enable_shared_with_static_runtimes=yes
15309       ;;
15310
15311     darwin* | rhapsody*)
15312
15313
15314   archive_cmds_need_lc=no
15315   hardcode_direct=no
15316   hardcode_automatic=yes
15317   hardcode_shlibpath_var=unsupported
15318   if test "$lt_cv_ld_force_load" = "yes"; then
15319     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\"`'
15320   else
15321     whole_archive_flag_spec=''
15322   fi
15323   link_all_deplibs=yes
15324   allow_undefined_flag="$_lt_dar_allow_undefined"
15325   case $cc_basename in
15326      ifort*) _lt_dar_can_shared=yes ;;
15327      *) _lt_dar_can_shared=$GCC ;;
15328   esac
15329   if test "$_lt_dar_can_shared" = "yes"; then
15330     output_verbose_link_cmd=func_echo_all
15331     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15332     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15333     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}"
15334     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}"
15335
15336   else
15337   ld_shlibs=no
15338   fi
15339
15340       ;;
15341
15342     dgux*)
15343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344       hardcode_libdir_flag_spec='-L$libdir'
15345       hardcode_shlibpath_var=no
15346       ;;
15347
15348     freebsd1*)
15349       ld_shlibs=no
15350       ;;
15351
15352     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15353     # support.  Future versions do this automatically, but an explicit c++rt0.o
15354     # does not break anything, and helps significantly (at the cost of a little
15355     # extra space).
15356     freebsd2.2*)
15357       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15358       hardcode_libdir_flag_spec='-R$libdir'
15359       hardcode_direct=yes
15360       hardcode_shlibpath_var=no
15361       ;;
15362
15363     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15364     freebsd2*)
15365       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15366       hardcode_direct=yes
15367       hardcode_minus_L=yes
15368       hardcode_shlibpath_var=no
15369       ;;
15370
15371     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15372     freebsd* | dragonfly*)
15373       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15374       hardcode_libdir_flag_spec='-R$libdir'
15375       hardcode_direct=yes
15376       hardcode_shlibpath_var=no
15377       ;;
15378
15379     hpux9*)
15380       if test "$GCC" = yes; then
15381         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'
15382       else
15383         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'
15384       fi
15385       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15386       hardcode_libdir_separator=:
15387       hardcode_direct=yes
15388
15389       # hardcode_minus_L: Not really in the search PATH,
15390       # but as the default location of the library.
15391       hardcode_minus_L=yes
15392       export_dynamic_flag_spec='${wl}-E'
15393       ;;
15394
15395     hpux10*)
15396       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15397         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15398       else
15399         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15400       fi
15401       if test "$with_gnu_ld" = no; then
15402         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15403         hardcode_libdir_flag_spec_ld='+b $libdir'
15404         hardcode_libdir_separator=:
15405         hardcode_direct=yes
15406         hardcode_direct_absolute=yes
15407         export_dynamic_flag_spec='${wl}-E'
15408         # hardcode_minus_L: Not really in the search PATH,
15409         # but as the default location of the library.
15410         hardcode_minus_L=yes
15411       fi
15412       ;;
15413
15414     hpux11*)
15415       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15416         case $host_cpu in
15417         hppa*64*)
15418           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15419           ;;
15420         ia64*)
15421           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15422           ;;
15423         *)
15424           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15425           ;;
15426         esac
15427       else
15428         case $host_cpu in
15429         hppa*64*)
15430           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15431           ;;
15432         ia64*)
15433           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15434           ;;
15435         *)
15436
15437           # Older versions of the 11.00 compiler do not understand -b yet
15438           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15439           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15440 $as_echo_n "checking if $CC understands -b... " >&6; }
15441 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15442   $as_echo_n "(cached) " >&6
15443 else
15444   lt_cv_prog_compiler__b=no
15445    save_LDFLAGS="$LDFLAGS"
15446    LDFLAGS="$LDFLAGS -b"
15447    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15448    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15449      # The linker can only warn and ignore the option if not recognized
15450      # So say no if there are warnings
15451      if test -s conftest.err; then
15452        # Append any errors to the config.log.
15453        cat conftest.err 1>&5
15454        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15455        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15456        if diff conftest.exp conftest.er2 >/dev/null; then
15457          lt_cv_prog_compiler__b=yes
15458        fi
15459      else
15460        lt_cv_prog_compiler__b=yes
15461      fi
15462    fi
15463    $RM -r conftest*
15464    LDFLAGS="$save_LDFLAGS"
15465
15466 fi
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15468 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15469
15470 if test x"$lt_cv_prog_compiler__b" = xyes; then
15471     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15472 else
15473     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15474 fi
15475
15476           ;;
15477         esac
15478       fi
15479       if test "$with_gnu_ld" = no; then
15480         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15481         hardcode_libdir_separator=:
15482
15483         case $host_cpu in
15484         hppa*64*|ia64*)
15485           hardcode_direct=no
15486           hardcode_shlibpath_var=no
15487           ;;
15488         *)
15489           hardcode_direct=yes
15490           hardcode_direct_absolute=yes
15491           export_dynamic_flag_spec='${wl}-E'
15492
15493           # hardcode_minus_L: Not really in the search PATH,
15494           # but as the default location of the library.
15495           hardcode_minus_L=yes
15496           ;;
15497         esac
15498       fi
15499       ;;
15500
15501     irix5* | irix6* | nonstopux*)
15502       if test "$GCC" = yes; then
15503         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'
15504         # Try to use the -exported_symbol ld option, if it does not
15505         # work, assume that -exports_file does not work either and
15506         # implicitly export all symbols.
15507         save_LDFLAGS="$LDFLAGS"
15508         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15509         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h.  */
15511 int foo(void) {}
15512 _ACEOF
15513 if ac_fn_c_try_link "$LINENO"; then :
15514   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'
15515
15516 fi
15517 rm -f core conftest.err conftest.$ac_objext \
15518     conftest$ac_exeext conftest.$ac_ext
15519         LDFLAGS="$save_LDFLAGS"
15520       else
15521         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'
15522         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'
15523       fi
15524       archive_cmds_need_lc='no'
15525       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15526       hardcode_libdir_separator=:
15527       inherit_rpath=yes
15528       link_all_deplibs=yes
15529       ;;
15530
15531     netbsd*)
15532       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15533         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15534       else
15535         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15536       fi
15537       hardcode_libdir_flag_spec='-R$libdir'
15538       hardcode_direct=yes
15539       hardcode_shlibpath_var=no
15540       ;;
15541
15542     newsos6)
15543       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15544       hardcode_direct=yes
15545       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15546       hardcode_libdir_separator=:
15547       hardcode_shlibpath_var=no
15548       ;;
15549
15550     *nto* | *qnx*)
15551       ;;
15552
15553     openbsd*)
15554       if test -f /usr/libexec/ld.so; then
15555         hardcode_direct=yes
15556         hardcode_shlibpath_var=no
15557         hardcode_direct_absolute=yes
15558         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15559           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15560           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15561           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15562           export_dynamic_flag_spec='${wl}-E'
15563         else
15564           case $host_os in
15565            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15566              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15567              hardcode_libdir_flag_spec='-R$libdir'
15568              ;;
15569            *)
15570              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15571              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15572              ;;
15573           esac
15574         fi
15575       else
15576         ld_shlibs=no
15577       fi
15578       ;;
15579
15580     os2*)
15581       hardcode_libdir_flag_spec='-L$libdir'
15582       hardcode_minus_L=yes
15583       allow_undefined_flag=unsupported
15584       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'
15585       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15586       ;;
15587
15588     osf3*)
15589       if test "$GCC" = yes; then
15590         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15591         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'
15592       else
15593         allow_undefined_flag=' -expect_unresolved \*'
15594         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'
15595       fi
15596       archive_cmds_need_lc='no'
15597       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15598       hardcode_libdir_separator=:
15599       ;;
15600
15601     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15602       if test "$GCC" = yes; then
15603         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15604         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'
15605         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15606       else
15607         allow_undefined_flag=' -expect_unresolved \*'
15608         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'
15609         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~
15610         $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'
15611
15612         # Both c and cxx compiler support -rpath directly
15613         hardcode_libdir_flag_spec='-rpath $libdir'
15614       fi
15615       archive_cmds_need_lc='no'
15616       hardcode_libdir_separator=:
15617       ;;
15618
15619     solaris*)
15620       no_undefined_flag=' -z defs'
15621       if test "$GCC" = yes; then
15622         wlarc='${wl}'
15623         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15625           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15626       else
15627         case `$CC -V 2>&1` in
15628         *"Compilers 5.0"*)
15629           wlarc=''
15630           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15632           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15633           ;;
15634         *)
15635           wlarc='${wl}'
15636           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15637           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15638           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15639           ;;
15640         esac
15641       fi
15642       hardcode_libdir_flag_spec='-R$libdir'
15643       hardcode_shlibpath_var=no
15644       case $host_os in
15645       solaris2.[0-5] | solaris2.[0-5].*) ;;
15646       *)
15647         # The compiler driver will combine and reorder linker options,
15648         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15649         # but is careful enough not to reorder.
15650         # Supported since Solaris 2.6 (maybe 2.5.1?)
15651         if test "$GCC" = yes; then
15652           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15653         else
15654           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15655         fi
15656         ;;
15657       esac
15658       link_all_deplibs=yes
15659       ;;
15660
15661     sunos4*)
15662       if test "x$host_vendor" = xsequent; then
15663         # Use $CC to link under sequent, because it throws in some extra .o
15664         # files that make .init and .fini sections work.
15665         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15666       else
15667         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15668       fi
15669       hardcode_libdir_flag_spec='-L$libdir'
15670       hardcode_direct=yes
15671       hardcode_minus_L=yes
15672       hardcode_shlibpath_var=no
15673       ;;
15674
15675     sysv4)
15676       case $host_vendor in
15677         sni)
15678           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679           hardcode_direct=yes # is this really true???
15680         ;;
15681         siemens)
15682           ## LD is ld it makes a PLAMLIB
15683           ## CC just makes a GrossModule.
15684           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15685           reload_cmds='$CC -r -o $output$reload_objs'
15686           hardcode_direct=no
15687         ;;
15688         motorola)
15689           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15691         ;;
15692       esac
15693       runpath_var='LD_RUN_PATH'
15694       hardcode_shlibpath_var=no
15695       ;;
15696
15697     sysv4.3*)
15698       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699       hardcode_shlibpath_var=no
15700       export_dynamic_flag_spec='-Bexport'
15701       ;;
15702
15703     sysv4*MP*)
15704       if test -d /usr/nec; then
15705         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706         hardcode_shlibpath_var=no
15707         runpath_var=LD_RUN_PATH
15708         hardcode_runpath_var=yes
15709         ld_shlibs=yes
15710       fi
15711       ;;
15712
15713     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15714       no_undefined_flag='${wl}-z,text'
15715       archive_cmds_need_lc=no
15716       hardcode_shlibpath_var=no
15717       runpath_var='LD_RUN_PATH'
15718
15719       if test "$GCC" = yes; then
15720         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722       else
15723         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725       fi
15726       ;;
15727
15728     sysv5* | sco3.2v5* | sco5v6*)
15729       # Note: We can NOT use -z defs as we might desire, because we do not
15730       # link with -lc, and that would cause any symbols used from libc to
15731       # always be unresolved, which means just about no library would
15732       # ever link correctly.  If we're not using GNU ld we use -z text
15733       # though, which does catch some bad symbols but isn't as heavy-handed
15734       # as -z defs.
15735       no_undefined_flag='${wl}-z,text'
15736       allow_undefined_flag='${wl}-z,nodefs'
15737       archive_cmds_need_lc=no
15738       hardcode_shlibpath_var=no
15739       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15740       hardcode_libdir_separator=':'
15741       link_all_deplibs=yes
15742       export_dynamic_flag_spec='${wl}-Bexport'
15743       runpath_var='LD_RUN_PATH'
15744
15745       if test "$GCC" = yes; then
15746         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748       else
15749         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15751       fi
15752       ;;
15753
15754     uts4*)
15755       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756       hardcode_libdir_flag_spec='-L$libdir'
15757       hardcode_shlibpath_var=no
15758       ;;
15759
15760     *)
15761       ld_shlibs=no
15762       ;;
15763     esac
15764
15765     if test x$host_vendor = xsni; then
15766       case $host in
15767       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15768         export_dynamic_flag_spec='${wl}-Blargedynsym'
15769         ;;
15770       esac
15771     fi
15772   fi
15773
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15775 $as_echo "$ld_shlibs" >&6; }
15776 test "$ld_shlibs" = no && can_build_shared=no
15777
15778 with_gnu_ld=$with_gnu_ld
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794 #
15795 # Do we need to explicitly link libc?
15796 #
15797 case "x$archive_cmds_need_lc" in
15798 x|xyes)
15799   # Assume -lc should be added
15800   archive_cmds_need_lc=yes
15801
15802   if test "$enable_shared" = yes && test "$GCC" = yes; then
15803     case $archive_cmds in
15804     *'~'*)
15805       # FIXME: we may have to deal with multi-command sequences.
15806       ;;
15807     '$CC '*)
15808       # Test whether the compiler implicitly links with -lc since on some
15809       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15810       # to ld, don't add -lc before -lgcc.
15811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15812 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15813 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15814   $as_echo_n "(cached) " >&6
15815 else
15816   $RM conftest*
15817         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15818
15819         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15820   (eval $ac_compile) 2>&5
15821   ac_status=$?
15822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15823   test $ac_status = 0; } 2>conftest.err; then
15824           soname=conftest
15825           lib=conftest
15826           libobjs=conftest.$ac_objext
15827           deplibs=
15828           wl=$lt_prog_compiler_wl
15829           pic_flag=$lt_prog_compiler_pic
15830           compiler_flags=-v
15831           linker_flags=-v
15832           verstring=
15833           output_objdir=.
15834           libname=conftest
15835           lt_save_allow_undefined_flag=$allow_undefined_flag
15836           allow_undefined_flag=
15837           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15838   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15839   ac_status=$?
15840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15841   test $ac_status = 0; }
15842           then
15843             lt_cv_archive_cmds_need_lc=no
15844           else
15845             lt_cv_archive_cmds_need_lc=yes
15846           fi
15847           allow_undefined_flag=$lt_save_allow_undefined_flag
15848         else
15849           cat conftest.err 1>&5
15850         fi
15851         $RM conftest*
15852
15853 fi
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15855 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15856       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15857       ;;
15858     esac
15859   fi
15860   ;;
15861 esac
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16021
16022 if test "$GCC" = yes; then
16023   case $host_os in
16024     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16025     *) lt_awk_arg="/^libraries:/" ;;
16026   esac
16027   case $host_os in
16028     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16029     *) lt_sed_strip_eq="s,=/,/,g" ;;
16030   esac
16031   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16032   case $lt_search_path_spec in
16033   *\;*)
16034     # if the path contains ";" then we assume it to be the separator
16035     # otherwise default to the standard path separator (i.e. ":") - it is
16036     # assumed that no part of a normal pathname contains ";" but that should
16037     # okay in the real world where ";" in dirpaths is itself problematic.
16038     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16039     ;;
16040   *)
16041     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16042     ;;
16043   esac
16044   # Ok, now we have the path, separated by spaces, we can step through it
16045   # and add multilib dir if necessary.
16046   lt_tmp_lt_search_path_spec=
16047   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16048   for lt_sys_path in $lt_search_path_spec; do
16049     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16050       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16051     else
16052       test -d "$lt_sys_path" && \
16053         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16054     fi
16055   done
16056   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16057 BEGIN {RS=" "; FS="/|\n";} {
16058   lt_foo="";
16059   lt_count=0;
16060   for (lt_i = NF; lt_i > 0; lt_i--) {
16061     if ($lt_i != "" && $lt_i != ".") {
16062       if ($lt_i == "..") {
16063         lt_count++;
16064       } else {
16065         if (lt_count == 0) {
16066           lt_foo="/" $lt_i lt_foo;
16067         } else {
16068           lt_count--;
16069         }
16070       }
16071     }
16072   }
16073   if (lt_foo != "") { lt_freq[lt_foo]++; }
16074   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16075 }'`
16076   # AWK program above erroneously prepends '/' to C:/dos/paths
16077   # for these hosts.
16078   case $host_os in
16079     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16080       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16081   esac
16082   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16083 else
16084   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16085 fi
16086 library_names_spec=
16087 libname_spec='lib$name'
16088 soname_spec=
16089 shrext_cmds=".so"
16090 postinstall_cmds=
16091 postuninstall_cmds=
16092 finish_cmds=
16093 finish_eval=
16094 shlibpath_var=
16095 shlibpath_overrides_runpath=unknown
16096 version_type=none
16097 dynamic_linker="$host_os ld.so"
16098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16099 need_lib_prefix=unknown
16100 hardcode_into_libs=no
16101
16102 # when you set need_version to no, make sure it does not cause -set_version
16103 # flags to be left without arguments
16104 need_version=unknown
16105
16106 case $host_os in
16107 aix3*)
16108   version_type=linux
16109   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16110   shlibpath_var=LIBPATH
16111
16112   # AIX 3 has no versioning support, so we append a major version to the name.
16113   soname_spec='${libname}${release}${shared_ext}$major'
16114   ;;
16115
16116 aix[4-9]*)
16117   version_type=linux
16118   need_lib_prefix=no
16119   need_version=no
16120   hardcode_into_libs=yes
16121   if test "$host_cpu" = ia64; then
16122     # AIX 5 supports IA64
16123     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16124     shlibpath_var=LD_LIBRARY_PATH
16125   else
16126     # With GCC up to 2.95.x, collect2 would create an import file
16127     # for dependence libraries.  The import file would start with
16128     # the line `#! .'.  This would cause the generated library to
16129     # depend on `.', always an invalid library.  This was fixed in
16130     # development snapshots of GCC prior to 3.0.
16131     case $host_os in
16132       aix4 | aix4.[01] | aix4.[01].*)
16133       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16134            echo ' yes '
16135            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16136         :
16137       else
16138         can_build_shared=no
16139       fi
16140       ;;
16141     esac
16142     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16143     # soname into executable. Probably we can add versioning support to
16144     # collect2, so additional links can be useful in future.
16145     if test "$aix_use_runtimelinking" = yes; then
16146       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16147       # instead of lib<name>.a to let people know that these are not
16148       # typical AIX shared libraries.
16149       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150     else
16151       # We preserve .a as extension for shared libraries through AIX4.2
16152       # and later when we are not doing run time linking.
16153       library_names_spec='${libname}${release}.a $libname.a'
16154       soname_spec='${libname}${release}${shared_ext}$major'
16155     fi
16156     shlibpath_var=LIBPATH
16157   fi
16158   ;;
16159
16160 amigaos*)
16161   case $host_cpu in
16162   powerpc)
16163     # Since July 2007 AmigaOS4 officially supports .so libraries.
16164     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166     ;;
16167   m68k)
16168     library_names_spec='$libname.ixlibrary $libname.a'
16169     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16170     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'
16171     ;;
16172   esac
16173   ;;
16174
16175 beos*)
16176   library_names_spec='${libname}${shared_ext}'
16177   dynamic_linker="$host_os ld.so"
16178   shlibpath_var=LIBRARY_PATH
16179   ;;
16180
16181 bsdi[45]*)
16182   version_type=linux
16183   need_version=no
16184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185   soname_spec='${libname}${release}${shared_ext}$major'
16186   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16187   shlibpath_var=LD_LIBRARY_PATH
16188   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16189   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16190   # the default ld.so.conf also contains /usr/contrib/lib and
16191   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16192   # libtool to hard-code these into programs
16193   ;;
16194
16195 cygwin* | mingw* | pw32* | cegcc*)
16196   version_type=windows
16197   shrext_cmds=".dll"
16198   need_version=no
16199   need_lib_prefix=no
16200
16201   case $GCC,$host_os in
16202   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16203     library_names_spec='$libname.dll.a'
16204     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16205     postinstall_cmds='base_file=`basename \${file}`~
16206       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16207       dldir=$destdir/`dirname \$dlpath`~
16208       test -d \$dldir || mkdir -p \$dldir~
16209       $install_prog $dir/$dlname \$dldir/$dlname~
16210       chmod a+x \$dldir/$dlname~
16211       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16212         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16213       fi'
16214     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16215       dlpath=$dir/\$dldll~
16216        $RM \$dlpath'
16217     shlibpath_overrides_runpath=yes
16218
16219     case $host_os in
16220     cygwin*)
16221       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16222       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16223
16224       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16225       ;;
16226     mingw* | cegcc*)
16227       # MinGW DLLs use traditional 'lib' prefix
16228       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16229       ;;
16230     pw32*)
16231       # pw32 DLLs use 'pw' prefix rather than 'lib'
16232       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16233       ;;
16234     esac
16235     ;;
16236
16237   *)
16238     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16239     ;;
16240   esac
16241   dynamic_linker='Win32 ld.exe'
16242   # FIXME: first we should search . and the directory the executable is in
16243   shlibpath_var=PATH
16244   ;;
16245
16246 darwin* | rhapsody*)
16247   dynamic_linker="$host_os dyld"
16248   version_type=darwin
16249   need_lib_prefix=no
16250   need_version=no
16251   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16252   soname_spec='${libname}${release}${major}$shared_ext'
16253   shlibpath_overrides_runpath=yes
16254   shlibpath_var=DYLD_LIBRARY_PATH
16255   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16256
16257   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16258   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16259   ;;
16260
16261 dgux*)
16262   version_type=linux
16263   need_lib_prefix=no
16264   need_version=no
16265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16266   soname_spec='${libname}${release}${shared_ext}$major'
16267   shlibpath_var=LD_LIBRARY_PATH
16268   ;;
16269
16270 freebsd1*)
16271   dynamic_linker=no
16272   ;;
16273
16274 freebsd* | dragonfly*)
16275   # DragonFly does not have aout.  When/if they implement a new
16276   # versioning mechanism, adjust this.
16277   if test -x /usr/bin/objformat; then
16278     objformat=`/usr/bin/objformat`
16279   else
16280     case $host_os in
16281     freebsd[123]*) objformat=aout ;;
16282     *) objformat=elf ;;
16283     esac
16284   fi
16285   version_type=freebsd-$objformat
16286   case $version_type in
16287     freebsd-elf*)
16288       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16289       need_version=no
16290       need_lib_prefix=no
16291       ;;
16292     freebsd-*)
16293       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16294       need_version=yes
16295       ;;
16296   esac
16297   shlibpath_var=LD_LIBRARY_PATH
16298   case $host_os in
16299   freebsd2*)
16300     shlibpath_overrides_runpath=yes
16301     ;;
16302   freebsd3.[01]* | freebsdelf3.[01]*)
16303     shlibpath_overrides_runpath=yes
16304     hardcode_into_libs=yes
16305     ;;
16306   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16307   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16308     shlibpath_overrides_runpath=no
16309     hardcode_into_libs=yes
16310     ;;
16311   *) # from 4.6 on, and DragonFly
16312     shlibpath_overrides_runpath=yes
16313     hardcode_into_libs=yes
16314     ;;
16315   esac
16316   ;;
16317
16318 gnu*)
16319   version_type=linux
16320   need_lib_prefix=no
16321   need_version=no
16322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16323   soname_spec='${libname}${release}${shared_ext}$major'
16324   shlibpath_var=LD_LIBRARY_PATH
16325   hardcode_into_libs=yes
16326   ;;
16327
16328 haiku*)
16329   version_type=linux
16330   need_lib_prefix=no
16331   need_version=no
16332   dynamic_linker="$host_os runtime_loader"
16333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16334   soname_spec='${libname}${release}${shared_ext}$major'
16335   shlibpath_var=LIBRARY_PATH
16336   shlibpath_overrides_runpath=yes
16337   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16338   hardcode_into_libs=yes
16339   ;;
16340
16341 hpux9* | hpux10* | hpux11*)
16342   # Give a soname corresponding to the major version so that dld.sl refuses to
16343   # link against other versions.
16344   version_type=sunos
16345   need_lib_prefix=no
16346   need_version=no
16347   case $host_cpu in
16348   ia64*)
16349     shrext_cmds='.so'
16350     hardcode_into_libs=yes
16351     dynamic_linker="$host_os dld.so"
16352     shlibpath_var=LD_LIBRARY_PATH
16353     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355     soname_spec='${libname}${release}${shared_ext}$major'
16356     if test "X$HPUX_IA64_MODE" = X32; then
16357       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16358     else
16359       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16360     fi
16361     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16362     ;;
16363   hppa*64*)
16364     shrext_cmds='.sl'
16365     hardcode_into_libs=yes
16366     dynamic_linker="$host_os dld.sl"
16367     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16368     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370     soname_spec='${libname}${release}${shared_ext}$major'
16371     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16372     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16373     ;;
16374   *)
16375     shrext_cmds='.sl'
16376     dynamic_linker="$host_os dld.sl"
16377     shlibpath_var=SHLIB_PATH
16378     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380     soname_spec='${libname}${release}${shared_ext}$major'
16381     ;;
16382   esac
16383   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16384   postinstall_cmds='chmod 555 $lib'
16385   # or fails outright, so override atomically:
16386   install_override_mode=555
16387   ;;
16388
16389 interix[3-9]*)
16390   version_type=linux
16391   need_lib_prefix=no
16392   need_version=no
16393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16394   soname_spec='${libname}${release}${shared_ext}$major'
16395   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16396   shlibpath_var=LD_LIBRARY_PATH
16397   shlibpath_overrides_runpath=no
16398   hardcode_into_libs=yes
16399   ;;
16400
16401 irix5* | irix6* | nonstopux*)
16402   case $host_os in
16403     nonstopux*) version_type=nonstopux ;;
16404     *)
16405         if test "$lt_cv_prog_gnu_ld" = yes; then
16406                 version_type=linux
16407         else
16408                 version_type=irix
16409         fi ;;
16410   esac
16411   need_lib_prefix=no
16412   need_version=no
16413   soname_spec='${libname}${release}${shared_ext}$major'
16414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16415   case $host_os in
16416   irix5* | nonstopux*)
16417     libsuff= shlibsuff=
16418     ;;
16419   *)
16420     case $LD in # libtool.m4 will add one of these switches to LD
16421     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16422       libsuff= shlibsuff= libmagic=32-bit;;
16423     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16424       libsuff=32 shlibsuff=N32 libmagic=N32;;
16425     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16426       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16427     *) libsuff= shlibsuff= libmagic=never-match;;
16428     esac
16429     ;;
16430   esac
16431   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16432   shlibpath_overrides_runpath=no
16433   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16434   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16435   hardcode_into_libs=yes
16436   ;;
16437
16438 # No shared lib support for Linux oldld, aout, or coff.
16439 linux*oldld* | linux*aout* | linux*coff*)
16440   dynamic_linker=no
16441   ;;
16442
16443 # This must be Linux ELF.
16444 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16445   version_type=linux
16446   need_lib_prefix=no
16447   need_version=no
16448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449   soname_spec='${libname}${release}${shared_ext}$major'
16450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16451   shlibpath_var=LD_LIBRARY_PATH
16452   shlibpath_overrides_runpath=no
16453
16454   # Some binutils ld are patched to set DT_RUNPATH
16455   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16456   $as_echo_n "(cached) " >&6
16457 else
16458   lt_cv_shlibpath_overrides_runpath=no
16459     save_LDFLAGS=$LDFLAGS
16460     save_libdir=$libdir
16461     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16462          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h.  */
16465
16466 int
16467 main ()
16468 {
16469
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 if ac_fn_c_try_link "$LINENO"; then :
16475   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16476   lt_cv_shlibpath_overrides_runpath=yes
16477 fi
16478 fi
16479 rm -f core conftest.err conftest.$ac_objext \
16480     conftest$ac_exeext conftest.$ac_ext
16481     LDFLAGS=$save_LDFLAGS
16482     libdir=$save_libdir
16483
16484 fi
16485
16486   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16487
16488   # This implies no fast_install, which is unacceptable.
16489   # Some rework will be needed to allow for fast_install
16490   # before this can be enabled.
16491   hardcode_into_libs=yes
16492
16493   # Append ld.so.conf contents to the search path
16494   if test -f /etc/ld.so.conf; then
16495     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' ' '`
16496     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16497   fi
16498
16499   # We used to test for /lib/ld.so.1 and disable shared libraries on
16500   # powerpc, because MkLinux only supported shared libraries with the
16501   # GNU dynamic linker.  Since this was broken with cross compilers,
16502   # most powerpc-linux boxes support dynamic linking these days and
16503   # people can always --disable-shared, the test was removed, and we
16504   # assume the GNU/Linux dynamic linker is in use.
16505   dynamic_linker='GNU/Linux ld.so'
16506   ;;
16507
16508 netbsd*)
16509   version_type=sunos
16510   need_lib_prefix=no
16511   need_version=no
16512   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16514     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16515     dynamic_linker='NetBSD (a.out) ld.so'
16516   else
16517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16518     soname_spec='${libname}${release}${shared_ext}$major'
16519     dynamic_linker='NetBSD ld.elf_so'
16520   fi
16521   shlibpath_var=LD_LIBRARY_PATH
16522   shlibpath_overrides_runpath=yes
16523   hardcode_into_libs=yes
16524   ;;
16525
16526 newsos6)
16527   version_type=linux
16528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529   shlibpath_var=LD_LIBRARY_PATH
16530   shlibpath_overrides_runpath=yes
16531   ;;
16532
16533 *nto* | *qnx*)
16534   version_type=qnx
16535   need_lib_prefix=no
16536   need_version=no
16537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538   soname_spec='${libname}${release}${shared_ext}$major'
16539   shlibpath_var=LD_LIBRARY_PATH
16540   shlibpath_overrides_runpath=no
16541   hardcode_into_libs=yes
16542   dynamic_linker='ldqnx.so'
16543   ;;
16544
16545 openbsd*)
16546   version_type=sunos
16547   sys_lib_dlsearch_path_spec="/usr/lib"
16548   need_lib_prefix=no
16549   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16550   case $host_os in
16551     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16552     *)                          need_version=no  ;;
16553   esac
16554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16555   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16556   shlibpath_var=LD_LIBRARY_PATH
16557   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16558     case $host_os in
16559       openbsd2.[89] | openbsd2.[89].*)
16560         shlibpath_overrides_runpath=no
16561         ;;
16562       *)
16563         shlibpath_overrides_runpath=yes
16564         ;;
16565       esac
16566   else
16567     shlibpath_overrides_runpath=yes
16568   fi
16569   ;;
16570
16571 os2*)
16572   libname_spec='$name'
16573   shrext_cmds=".dll"
16574   need_lib_prefix=no
16575   library_names_spec='$libname${shared_ext} $libname.a'
16576   dynamic_linker='OS/2 ld.exe'
16577   shlibpath_var=LIBPATH
16578   ;;
16579
16580 osf3* | osf4* | osf5*)
16581   version_type=osf
16582   need_lib_prefix=no
16583   need_version=no
16584   soname_spec='${libname}${release}${shared_ext}$major'
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586   shlibpath_var=LD_LIBRARY_PATH
16587   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16588   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16589   ;;
16590
16591 rdos*)
16592   dynamic_linker=no
16593   ;;
16594
16595 solaris*)
16596   version_type=linux
16597   need_lib_prefix=no
16598   need_version=no
16599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600   soname_spec='${libname}${release}${shared_ext}$major'
16601   shlibpath_var=LD_LIBRARY_PATH
16602   shlibpath_overrides_runpath=yes
16603   hardcode_into_libs=yes
16604   # ldd complains unless libraries are executable
16605   postinstall_cmds='chmod +x $lib'
16606   ;;
16607
16608 sunos4*)
16609   version_type=sunos
16610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16611   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16612   shlibpath_var=LD_LIBRARY_PATH
16613   shlibpath_overrides_runpath=yes
16614   if test "$with_gnu_ld" = yes; then
16615     need_lib_prefix=no
16616   fi
16617   need_version=yes
16618   ;;
16619
16620 sysv4 | sysv4.3*)
16621   version_type=linux
16622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623   soname_spec='${libname}${release}${shared_ext}$major'
16624   shlibpath_var=LD_LIBRARY_PATH
16625   case $host_vendor in
16626     sni)
16627       shlibpath_overrides_runpath=no
16628       need_lib_prefix=no
16629       runpath_var=LD_RUN_PATH
16630       ;;
16631     siemens)
16632       need_lib_prefix=no
16633       ;;
16634     motorola)
16635       need_lib_prefix=no
16636       need_version=no
16637       shlibpath_overrides_runpath=no
16638       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16639       ;;
16640   esac
16641   ;;
16642
16643 sysv4*MP*)
16644   if test -d /usr/nec ;then
16645     version_type=linux
16646     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16647     soname_spec='$libname${shared_ext}.$major'
16648     shlibpath_var=LD_LIBRARY_PATH
16649   fi
16650   ;;
16651
16652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16653   version_type=freebsd-elf
16654   need_lib_prefix=no
16655   need_version=no
16656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16657   soname_spec='${libname}${release}${shared_ext}$major'
16658   shlibpath_var=LD_LIBRARY_PATH
16659   shlibpath_overrides_runpath=yes
16660   hardcode_into_libs=yes
16661   if test "$with_gnu_ld" = yes; then
16662     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16663   else
16664     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16665     case $host_os in
16666       sco3.2v5*)
16667         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16668         ;;
16669     esac
16670   fi
16671   sys_lib_dlsearch_path_spec='/usr/lib'
16672   ;;
16673
16674 tpf*)
16675   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16676   version_type=linux
16677   need_lib_prefix=no
16678   need_version=no
16679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680   shlibpath_var=LD_LIBRARY_PATH
16681   shlibpath_overrides_runpath=no
16682   hardcode_into_libs=yes
16683   ;;
16684
16685 uts4*)
16686   version_type=linux
16687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688   soname_spec='${libname}${release}${shared_ext}$major'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   ;;
16691
16692 *)
16693   dynamic_linker=no
16694   ;;
16695 esac
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16697 $as_echo "$dynamic_linker" >&6; }
16698 test "$dynamic_linker" = no && can_build_shared=no
16699
16700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16701 if test "$GCC" = yes; then
16702   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16703 fi
16704
16705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16706   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16707 fi
16708 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16709   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16710 fi
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16804 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16805 hardcode_action=
16806 if test -n "$hardcode_libdir_flag_spec" ||
16807    test -n "$runpath_var" ||
16808    test "X$hardcode_automatic" = "Xyes" ; then
16809
16810   # We can hardcode non-existent directories.
16811   if test "$hardcode_direct" != no &&
16812      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16813      # have to relink, otherwise we might link with an installed library
16814      # when we should be linking with a yet-to-be-installed one
16815      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16816      test "$hardcode_minus_L" != no; then
16817     # Linking always hardcodes the temporary library directory.
16818     hardcode_action=relink
16819   else
16820     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16821     hardcode_action=immediate
16822   fi
16823 else
16824   # We cannot hardcode anything, or else we can only hardcode existing
16825   # directories.
16826   hardcode_action=unsupported
16827 fi
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16829 $as_echo "$hardcode_action" >&6; }
16830
16831 if test "$hardcode_action" = relink ||
16832    test "$inherit_rpath" = yes; then
16833   # Fast installation is not supported
16834   enable_fast_install=no
16835 elif test "$shlibpath_overrides_runpath" = yes ||
16836      test "$enable_shared" = no; then
16837   # Fast installation is not necessary
16838   enable_fast_install=needless
16839 fi
16840
16841
16842
16843
16844
16845
16846   if test "x$enable_dlopen" != xyes; then
16847   enable_dlopen=unknown
16848   enable_dlopen_self=unknown
16849   enable_dlopen_self_static=unknown
16850 else
16851   lt_cv_dlopen=no
16852   lt_cv_dlopen_libs=
16853
16854   case $host_os in
16855   beos*)
16856     lt_cv_dlopen="load_add_on"
16857     lt_cv_dlopen_libs=
16858     lt_cv_dlopen_self=yes
16859     ;;
16860
16861   mingw* | pw32* | cegcc*)
16862     lt_cv_dlopen="LoadLibrary"
16863     lt_cv_dlopen_libs=
16864     ;;
16865
16866   cygwin*)
16867     lt_cv_dlopen="dlopen"
16868     lt_cv_dlopen_libs=
16869     ;;
16870
16871   darwin*)
16872   # if libdl is installed we need to link against it
16873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16876   $as_echo_n "(cached) " >&6
16877 else
16878   ac_check_lib_save_LIBS=$LIBS
16879 LIBS="-ldl  $LIBS"
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h.  */
16882
16883 /* Override any GCC internal prototype to avoid an error.
16884    Use char because int might match the return type of a GCC
16885    builtin and then its argument prototype would still apply.  */
16886 #ifdef __cplusplus
16887 extern "C"
16888 #endif
16889 char dlopen ();
16890 int
16891 main ()
16892 {
16893 return dlopen ();
16894   ;
16895   return 0;
16896 }
16897 _ACEOF
16898 if ac_fn_c_try_link "$LINENO"; then :
16899   ac_cv_lib_dl_dlopen=yes
16900 else
16901   ac_cv_lib_dl_dlopen=no
16902 fi
16903 rm -f core conftest.err conftest.$ac_objext \
16904     conftest$ac_exeext conftest.$ac_ext
16905 LIBS=$ac_check_lib_save_LIBS
16906 fi
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16909 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16910   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16911 else
16912
16913     lt_cv_dlopen="dyld"
16914     lt_cv_dlopen_libs=
16915     lt_cv_dlopen_self=yes
16916
16917 fi
16918
16919     ;;
16920
16921   *)
16922     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16923 if test "x$ac_cv_func_shl_load" = x""yes; then :
16924   lt_cv_dlopen="shl_load"
16925 else
16926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16927 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16928 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16929   $as_echo_n "(cached) " >&6
16930 else
16931   ac_check_lib_save_LIBS=$LIBS
16932 LIBS="-ldld  $LIBS"
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h.  */
16935
16936 /* Override any GCC internal prototype to avoid an error.
16937    Use char because int might match the return type of a GCC
16938    builtin and then its argument prototype would still apply.  */
16939 #ifdef __cplusplus
16940 extern "C"
16941 #endif
16942 char shl_load ();
16943 int
16944 main ()
16945 {
16946 return shl_load ();
16947   ;
16948   return 0;
16949 }
16950 _ACEOF
16951 if ac_fn_c_try_link "$LINENO"; then :
16952   ac_cv_lib_dld_shl_load=yes
16953 else
16954   ac_cv_lib_dld_shl_load=no
16955 fi
16956 rm -f core conftest.err conftest.$ac_objext \
16957     conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16959 fi
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16961 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16962 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16963   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16964 else
16965   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16966 if test "x$ac_cv_func_dlopen" = x""yes; then :
16967   lt_cv_dlopen="dlopen"
16968 else
16969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16972   $as_echo_n "(cached) " >&6
16973 else
16974   ac_check_lib_save_LIBS=$LIBS
16975 LIBS="-ldl  $LIBS"
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h.  */
16978
16979 /* Override any GCC internal prototype to avoid an error.
16980    Use char because int might match the return type of a GCC
16981    builtin and then its argument prototype would still apply.  */
16982 #ifdef __cplusplus
16983 extern "C"
16984 #endif
16985 char dlopen ();
16986 int
16987 main ()
16988 {
16989 return dlopen ();
16990   ;
16991   return 0;
16992 }
16993 _ACEOF
16994 if ac_fn_c_try_link "$LINENO"; then :
16995   ac_cv_lib_dl_dlopen=yes
16996 else
16997   ac_cv_lib_dl_dlopen=no
16998 fi
16999 rm -f core conftest.err conftest.$ac_objext \
17000     conftest$ac_exeext conftest.$ac_ext
17001 LIBS=$ac_check_lib_save_LIBS
17002 fi
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17005 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17006   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17007 else
17008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17011   $as_echo_n "(cached) " >&6
17012 else
17013   ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-lsvld  $LIBS"
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h.  */
17017
17018 /* Override any GCC internal prototype to avoid an error.
17019    Use char because int might match the return type of a GCC
17020    builtin and then its argument prototype would still apply.  */
17021 #ifdef __cplusplus
17022 extern "C"
17023 #endif
17024 char dlopen ();
17025 int
17026 main ()
17027 {
17028 return dlopen ();
17029   ;
17030   return 0;
17031 }
17032 _ACEOF
17033 if ac_fn_c_try_link "$LINENO"; then :
17034   ac_cv_lib_svld_dlopen=yes
17035 else
17036   ac_cv_lib_svld_dlopen=no
17037 fi
17038 rm -f core conftest.err conftest.$ac_objext \
17039     conftest$ac_exeext conftest.$ac_ext
17040 LIBS=$ac_check_lib_save_LIBS
17041 fi
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17043 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17044 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17045   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17046 else
17047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17048 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17050   $as_echo_n "(cached) " >&6
17051 else
17052   ac_check_lib_save_LIBS=$LIBS
17053 LIBS="-ldld  $LIBS"
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h.  */
17056
17057 /* Override any GCC internal prototype to avoid an error.
17058    Use char because int might match the return type of a GCC
17059    builtin and then its argument prototype would still apply.  */
17060 #ifdef __cplusplus
17061 extern "C"
17062 #endif
17063 char dld_link ();
17064 int
17065 main ()
17066 {
17067 return dld_link ();
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 if ac_fn_c_try_link "$LINENO"; then :
17073   ac_cv_lib_dld_dld_link=yes
17074 else
17075   ac_cv_lib_dld_dld_link=no
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext \
17078     conftest$ac_exeext conftest.$ac_ext
17079 LIBS=$ac_check_lib_save_LIBS
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17082 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17083 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17084   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17085 fi
17086
17087
17088 fi
17089
17090
17091 fi
17092
17093
17094 fi
17095
17096
17097 fi
17098
17099
17100 fi
17101
17102     ;;
17103   esac
17104
17105   if test "x$lt_cv_dlopen" != xno; then
17106     enable_dlopen=yes
17107   else
17108     enable_dlopen=no
17109   fi
17110
17111   case $lt_cv_dlopen in
17112   dlopen)
17113     save_CPPFLAGS="$CPPFLAGS"
17114     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17115
17116     save_LDFLAGS="$LDFLAGS"
17117     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17118
17119     save_LIBS="$LIBS"
17120     LIBS="$lt_cv_dlopen_libs $LIBS"
17121
17122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17123 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17124 if test "${lt_cv_dlopen_self+set}" = set; then :
17125   $as_echo_n "(cached) " >&6
17126 else
17127           if test "$cross_compiling" = yes; then :
17128   lt_cv_dlopen_self=cross
17129 else
17130   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17131   lt_status=$lt_dlunknown
17132   cat > conftest.$ac_ext <<_LT_EOF
17133 #line 17133 "configure"
17134 #include "confdefs.h"
17135
17136 #if HAVE_DLFCN_H
17137 #include <dlfcn.h>
17138 #endif
17139
17140 #include <stdio.h>
17141
17142 #ifdef RTLD_GLOBAL
17143 #  define LT_DLGLOBAL           RTLD_GLOBAL
17144 #else
17145 #  ifdef DL_GLOBAL
17146 #    define LT_DLGLOBAL         DL_GLOBAL
17147 #  else
17148 #    define LT_DLGLOBAL         0
17149 #  endif
17150 #endif
17151
17152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17153    find out it does not work in some platform. */
17154 #ifndef LT_DLLAZY_OR_NOW
17155 #  ifdef RTLD_LAZY
17156 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17157 #  else
17158 #    ifdef DL_LAZY
17159 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17160 #    else
17161 #      ifdef RTLD_NOW
17162 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17163 #      else
17164 #        ifdef DL_NOW
17165 #          define LT_DLLAZY_OR_NOW      DL_NOW
17166 #        else
17167 #          define LT_DLLAZY_OR_NOW      0
17168 #        endif
17169 #      endif
17170 #    endif
17171 #  endif
17172 #endif
17173
17174 /* When -fvisbility=hidden is used, assume the code has been annotated
17175    correspondingly for the symbols needed.  */
17176 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17177 void fnord () __attribute__((visibility("default")));
17178 #endif
17179
17180 void fnord () { int i=42; }
17181 int main ()
17182 {
17183   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17184   int status = $lt_dlunknown;
17185
17186   if (self)
17187     {
17188       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17189       else
17190         {
17191           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17192           else puts (dlerror ());
17193         }
17194       /* dlclose (self); */
17195     }
17196   else
17197     puts (dlerror ());
17198
17199   return status;
17200 }
17201 _LT_EOF
17202   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17203   (eval $ac_link) 2>&5
17204   ac_status=$?
17205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17206   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17207     (./conftest; exit; ) >&5 2>/dev/null
17208     lt_status=$?
17209     case x$lt_status in
17210       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17211       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17212       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17213     esac
17214   else :
17215     # compilation failed
17216     lt_cv_dlopen_self=no
17217   fi
17218 fi
17219 rm -fr conftest*
17220
17221
17222 fi
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17224 $as_echo "$lt_cv_dlopen_self" >&6; }
17225
17226     if test "x$lt_cv_dlopen_self" = xyes; then
17227       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17228       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17229 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17230 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17231   $as_echo_n "(cached) " >&6
17232 else
17233           if test "$cross_compiling" = yes; then :
17234   lt_cv_dlopen_self_static=cross
17235 else
17236   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17237   lt_status=$lt_dlunknown
17238   cat > conftest.$ac_ext <<_LT_EOF
17239 #line 17239 "configure"
17240 #include "confdefs.h"
17241
17242 #if HAVE_DLFCN_H
17243 #include <dlfcn.h>
17244 #endif
17245
17246 #include <stdio.h>
17247
17248 #ifdef RTLD_GLOBAL
17249 #  define LT_DLGLOBAL           RTLD_GLOBAL
17250 #else
17251 #  ifdef DL_GLOBAL
17252 #    define LT_DLGLOBAL         DL_GLOBAL
17253 #  else
17254 #    define LT_DLGLOBAL         0
17255 #  endif
17256 #endif
17257
17258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17259    find out it does not work in some platform. */
17260 #ifndef LT_DLLAZY_OR_NOW
17261 #  ifdef RTLD_LAZY
17262 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17263 #  else
17264 #    ifdef DL_LAZY
17265 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17266 #    else
17267 #      ifdef RTLD_NOW
17268 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17269 #      else
17270 #        ifdef DL_NOW
17271 #          define LT_DLLAZY_OR_NOW      DL_NOW
17272 #        else
17273 #          define LT_DLLAZY_OR_NOW      0
17274 #        endif
17275 #      endif
17276 #    endif
17277 #  endif
17278 #endif
17279
17280 /* When -fvisbility=hidden is used, assume the code has been annotated
17281    correspondingly for the symbols needed.  */
17282 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17283 void fnord () __attribute__((visibility("default")));
17284 #endif
17285
17286 void fnord () { int i=42; }
17287 int main ()
17288 {
17289   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17290   int status = $lt_dlunknown;
17291
17292   if (self)
17293     {
17294       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17295       else
17296         {
17297           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17298           else puts (dlerror ());
17299         }
17300       /* dlclose (self); */
17301     }
17302   else
17303     puts (dlerror ());
17304
17305   return status;
17306 }
17307 _LT_EOF
17308   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17309   (eval $ac_link) 2>&5
17310   ac_status=$?
17311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17312   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17313     (./conftest; exit; ) >&5 2>/dev/null
17314     lt_status=$?
17315     case x$lt_status in
17316       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17317       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17318       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17319     esac
17320   else :
17321     # compilation failed
17322     lt_cv_dlopen_self_static=no
17323   fi
17324 fi
17325 rm -fr conftest*
17326
17327
17328 fi
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17331     fi
17332
17333     CPPFLAGS="$save_CPPFLAGS"
17334     LDFLAGS="$save_LDFLAGS"
17335     LIBS="$save_LIBS"
17336     ;;
17337   esac
17338
17339   case $lt_cv_dlopen_self in
17340   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17341   *) enable_dlopen_self=unknown ;;
17342   esac
17343
17344   case $lt_cv_dlopen_self_static in
17345   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17346   *) enable_dlopen_self_static=unknown ;;
17347   esac
17348 fi
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366 striplib=
17367 old_striplib=
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17371   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17372   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17374 $as_echo "yes" >&6; }
17375 else
17376 # FIXME - insert some real tests, host_os isn't really good enough
17377   case $host_os in
17378   darwin*)
17379     if test -n "$STRIP" ; then
17380       striplib="$STRIP -x"
17381       old_striplib="$STRIP -S"
17382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17383 $as_echo "yes" >&6; }
17384     else
17385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17386 $as_echo "no" >&6; }
17387     fi
17388     ;;
17389   *)
17390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17391 $as_echo "no" >&6; }
17392     ;;
17393   esac
17394 fi
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407   # Report which library types will actually be built
17408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17411 $as_echo "$can_build_shared" >&6; }
17412
17413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17414 $as_echo_n "checking whether to build shared libraries... " >&6; }
17415   test "$can_build_shared" = "no" && enable_shared=no
17416
17417   # On AIX, shared libraries and static libraries use the same namespace, and
17418   # are all built from PIC.
17419   case $host_os in
17420   aix3*)
17421     test "$enable_shared" = yes && enable_static=no
17422     if test -n "$RANLIB"; then
17423       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17424       postinstall_cmds='$RANLIB $lib'
17425     fi
17426     ;;
17427
17428   aix[4-9]*)
17429     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17430       test "$enable_shared" = yes && enable_static=no
17431     fi
17432     ;;
17433   esac
17434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17435 $as_echo "$enable_shared" >&6; }
17436
17437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17438 $as_echo_n "checking whether to build static libraries... " >&6; }
17439   # Make sure either enable_shared or enable_static is yes.
17440   test "$enable_shared" = yes || enable_static=yes
17441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17442 $as_echo "$enable_static" >&6; }
17443
17444
17445
17446
17447 fi
17448 ac_ext=c
17449 ac_cpp='$CPP $CPPFLAGS'
17450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17453
17454 CC="$lt_save_CC"
17455
17456       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17457     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17458     (test "X$CXX" != "Xg++"))) ; then
17459   ac_ext=cpp
17460 ac_cpp='$CXXCPP $CPPFLAGS'
17461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17465 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17466 if test -z "$CXXCPP"; then
17467   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17468   $as_echo_n "(cached) " >&6
17469 else
17470       # Double quotes because CXXCPP needs to be expanded
17471     for CXXCPP in "$CXX -E" "/lib/cpp"
17472     do
17473       ac_preproc_ok=false
17474 for ac_cxx_preproc_warn_flag in '' yes
17475 do
17476   # Use a header file that comes with gcc, so configuring glibc
17477   # with a fresh cross-compiler works.
17478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479   # <limits.h> exists even on freestanding compilers.
17480   # On the NeXT, cc -E runs the code through the compiler's parser,
17481   # not just through cpp. "Syntax error" is here to catch this case.
17482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483 /* end confdefs.h.  */
17484 #ifdef __STDC__
17485 # include <limits.h>
17486 #else
17487 # include <assert.h>
17488 #endif
17489                      Syntax error
17490 _ACEOF
17491 if ac_fn_cxx_try_cpp "$LINENO"; then :
17492
17493 else
17494   # Broken: fails on valid input.
17495 continue
17496 fi
17497 rm -f conftest.err conftest.$ac_ext
17498
17499   # OK, works on sane cases.  Now check whether nonexistent headers
17500   # can be detected and how.
17501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502 /* end confdefs.h.  */
17503 #include <ac_nonexistent.h>
17504 _ACEOF
17505 if ac_fn_cxx_try_cpp "$LINENO"; then :
17506   # Broken: success on invalid input.
17507 continue
17508 else
17509   # Passes both tests.
17510 ac_preproc_ok=:
17511 break
17512 fi
17513 rm -f conftest.err conftest.$ac_ext
17514
17515 done
17516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17517 rm -f conftest.err conftest.$ac_ext
17518 if $ac_preproc_ok; then :
17519   break
17520 fi
17521
17522     done
17523     ac_cv_prog_CXXCPP=$CXXCPP
17524
17525 fi
17526   CXXCPP=$ac_cv_prog_CXXCPP
17527 else
17528   ac_cv_prog_CXXCPP=$CXXCPP
17529 fi
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17531 $as_echo "$CXXCPP" >&6; }
17532 ac_preproc_ok=false
17533 for ac_cxx_preproc_warn_flag in '' yes
17534 do
17535   # Use a header file that comes with gcc, so configuring glibc
17536   # with a fresh cross-compiler works.
17537   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538   # <limits.h> exists even on freestanding compilers.
17539   # On the NeXT, cc -E runs the code through the compiler's parser,
17540   # not just through cpp. "Syntax error" is here to catch this case.
17541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h.  */
17543 #ifdef __STDC__
17544 # include <limits.h>
17545 #else
17546 # include <assert.h>
17547 #endif
17548                      Syntax error
17549 _ACEOF
17550 if ac_fn_cxx_try_cpp "$LINENO"; then :
17551
17552 else
17553   # Broken: fails on valid input.
17554 continue
17555 fi
17556 rm -f conftest.err conftest.$ac_ext
17557
17558   # OK, works on sane cases.  Now check whether nonexistent headers
17559   # can be detected and how.
17560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h.  */
17562 #include <ac_nonexistent.h>
17563 _ACEOF
17564 if ac_fn_cxx_try_cpp "$LINENO"; then :
17565   # Broken: success on invalid input.
17566 continue
17567 else
17568   # Passes both tests.
17569 ac_preproc_ok=:
17570 break
17571 fi
17572 rm -f conftest.err conftest.$ac_ext
17573
17574 done
17575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17576 rm -f conftest.err conftest.$ac_ext
17577 if $ac_preproc_ok; then :
17578
17579 else
17580   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17582 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17583 See \`config.log' for more details." "$LINENO" 5; }
17584 fi
17585
17586 ac_ext=c
17587 ac_cpp='$CPP $CPPFLAGS'
17588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17591
17592 else
17593   _lt_caught_CXX_error=yes
17594 fi
17595
17596 ac_ext=cpp
17597 ac_cpp='$CXXCPP $CPPFLAGS'
17598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17601
17602 archive_cmds_need_lc_CXX=no
17603 allow_undefined_flag_CXX=
17604 always_export_symbols_CXX=no
17605 archive_expsym_cmds_CXX=
17606 compiler_needs_object_CXX=no
17607 export_dynamic_flag_spec_CXX=
17608 hardcode_direct_CXX=no
17609 hardcode_direct_absolute_CXX=no
17610 hardcode_libdir_flag_spec_CXX=
17611 hardcode_libdir_flag_spec_ld_CXX=
17612 hardcode_libdir_separator_CXX=
17613 hardcode_minus_L_CXX=no
17614 hardcode_shlibpath_var_CXX=unsupported
17615 hardcode_automatic_CXX=no
17616 inherit_rpath_CXX=no
17617 module_cmds_CXX=
17618 module_expsym_cmds_CXX=
17619 link_all_deplibs_CXX=unknown
17620 old_archive_cmds_CXX=$old_archive_cmds
17621 reload_flag_CXX=$reload_flag
17622 reload_cmds_CXX=$reload_cmds
17623 no_undefined_flag_CXX=
17624 whole_archive_flag_spec_CXX=
17625 enable_shared_with_static_runtimes_CXX=no
17626
17627 # Source file extension for C++ test sources.
17628 ac_ext=cpp
17629
17630 # Object file extension for compiled C++ test sources.
17631 objext=o
17632 objext_CXX=$objext
17633
17634 # No sense in running all these tests if we already determined that
17635 # the CXX compiler isn't working.  Some variables (like enable_shared)
17636 # are currently assumed to apply to all compilers on this platform,
17637 # and will be corrupted by setting them based on a non-working compiler.
17638 if test "$_lt_caught_CXX_error" != yes; then
17639   # Code to be used in simple compile tests
17640   lt_simple_compile_test_code="int some_variable = 0;"
17641
17642   # Code to be used in simple link tests
17643   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17644
17645   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17646
17647
17648
17649
17650
17651
17652 # If no C compiler was specified, use CC.
17653 LTCC=${LTCC-"$CC"}
17654
17655 # If no C compiler flags were specified, use CFLAGS.
17656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17657
17658 # Allow CC to be a program name with arguments.
17659 compiler=$CC
17660
17661
17662   # save warnings/boilerplate of simple test code
17663   ac_outfile=conftest.$ac_objext
17664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17666 _lt_compiler_boilerplate=`cat conftest.err`
17667 $RM conftest*
17668
17669   ac_outfile=conftest.$ac_objext
17670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17672 _lt_linker_boilerplate=`cat conftest.err`
17673 $RM -r conftest*
17674
17675
17676   # Allow CC to be a program name with arguments.
17677   lt_save_CC=$CC
17678   lt_save_LD=$LD
17679   lt_save_GCC=$GCC
17680   GCC=$GXX
17681   lt_save_with_gnu_ld=$with_gnu_ld
17682   lt_save_path_LD=$lt_cv_path_LD
17683   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17684     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17685   else
17686     $as_unset lt_cv_prog_gnu_ld
17687   fi
17688   if test -n "${lt_cv_path_LDCXX+set}"; then
17689     lt_cv_path_LD=$lt_cv_path_LDCXX
17690   else
17691     $as_unset lt_cv_path_LD
17692   fi
17693   test -z "${LDCXX+set}" || LD=$LDCXX
17694   CC=${CXX-"c++"}
17695   compiler=$CC
17696   compiler_CXX=$CC
17697   for cc_temp in $compiler""; do
17698   case $cc_temp in
17699     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17700     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17701     \-*) ;;
17702     *) break;;
17703   esac
17704 done
17705 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17706
17707
17708   if test -n "$compiler"; then
17709     # We don't want -fno-exception when compiling C++ code, so set the
17710     # no_builtin_flag separately
17711     if test "$GXX" = yes; then
17712       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17713     else
17714       lt_prog_compiler_no_builtin_flag_CXX=
17715     fi
17716
17717     if test "$GXX" = yes; then
17718       # Set up default GNU C++ configuration
17719
17720
17721
17722 # Check whether --with-gnu-ld was given.
17723 if test "${with_gnu_ld+set}" = set; then :
17724   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17725 else
17726   with_gnu_ld=no
17727 fi
17728
17729 ac_prog=ld
17730 if test "$GCC" = yes; then
17731   # Check if gcc -print-prog-name=ld gives a path.
17732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17733 $as_echo_n "checking for ld used by $CC... " >&6; }
17734   case $host in
17735   *-*-mingw*)
17736     # gcc leaves a trailing carriage return which upsets mingw
17737     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17738   *)
17739     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17740   esac
17741   case $ac_prog in
17742     # Accept absolute paths.
17743     [\\/]* | ?:[\\/]*)
17744       re_direlt='/[^/][^/]*/\.\./'
17745       # Canonicalize the pathname of ld
17746       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17747       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17748         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17749       done
17750       test -z "$LD" && LD="$ac_prog"
17751       ;;
17752   "")
17753     # If it fails, then pretend we aren't using GCC.
17754     ac_prog=ld
17755     ;;
17756   *)
17757     # If it is relative, then search for the first ld in PATH.
17758     with_gnu_ld=unknown
17759     ;;
17760   esac
17761 elif test "$with_gnu_ld" = yes; then
17762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17763 $as_echo_n "checking for GNU ld... " >&6; }
17764 else
17765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17766 $as_echo_n "checking for non-GNU ld... " >&6; }
17767 fi
17768 if test "${lt_cv_path_LD+set}" = set; then :
17769   $as_echo_n "(cached) " >&6
17770 else
17771   if test -z "$LD"; then
17772   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17773   for ac_dir in $PATH; do
17774     IFS="$lt_save_ifs"
17775     test -z "$ac_dir" && ac_dir=.
17776     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17777       lt_cv_path_LD="$ac_dir/$ac_prog"
17778       # Check to see if the program is GNU ld.  I'd rather use --version,
17779       # but apparently some variants of GNU ld only accept -v.
17780       # Break only if it was the GNU/non-GNU ld that we prefer.
17781       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17782       *GNU* | *'with BFD'*)
17783         test "$with_gnu_ld" != no && break
17784         ;;
17785       *)
17786         test "$with_gnu_ld" != yes && break
17787         ;;
17788       esac
17789     fi
17790   done
17791   IFS="$lt_save_ifs"
17792 else
17793   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17794 fi
17795 fi
17796
17797 LD="$lt_cv_path_LD"
17798 if test -n "$LD"; then
17799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17800 $as_echo "$LD" >&6; }
17801 else
17802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 $as_echo "no" >&6; }
17804 fi
17805 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17809   $as_echo_n "(cached) " >&6
17810 else
17811   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17812 case `$LD -v 2>&1 </dev/null` in
17813 *GNU* | *'with BFD'*)
17814   lt_cv_prog_gnu_ld=yes
17815   ;;
17816 *)
17817   lt_cv_prog_gnu_ld=no
17818   ;;
17819 esac
17820 fi
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17823 with_gnu_ld=$lt_cv_prog_gnu_ld
17824
17825
17826
17827
17828
17829
17830
17831       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17832       # archiving commands below assume that GNU ld is being used.
17833       if test "$with_gnu_ld" = yes; then
17834         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17835         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'
17836
17837         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17838         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17839
17840         # If archive_cmds runs LD, not CC, wlarc should be empty
17841         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17842         #     investigate it a little bit more. (MM)
17843         wlarc='${wl}'
17844
17845         # ancient GNU ld didn't support --whole-archive et. al.
17846         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17847           $GREP 'no-whole-archive' > /dev/null; then
17848           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17849         else
17850           whole_archive_flag_spec_CXX=
17851         fi
17852       else
17853         with_gnu_ld=no
17854         wlarc=
17855
17856         # A generic and very simple default shared library creation
17857         # command for GNU C++ for the case where it uses the native
17858         # linker, instead of GNU ld.  If possible, this setting should
17859         # overridden to take advantage of the native linker features on
17860         # the platform it is being used on.
17861         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17862       fi
17863
17864       # Commands to make compiler produce verbose output that lists
17865       # what "hidden" libraries, object files and flags are used when
17866       # linking a shared library.
17867       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17868
17869     else
17870       GXX=no
17871       with_gnu_ld=no
17872       wlarc=
17873     fi
17874
17875     # PORTME: fill in a description of your system's C++ link characteristics
17876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17877 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17878     ld_shlibs_CXX=yes
17879     case $host_os in
17880       aix3*)
17881         # FIXME: insert proper C++ library support
17882         ld_shlibs_CXX=no
17883         ;;
17884       aix[4-9]*)
17885         if test "$host_cpu" = ia64; then
17886           # On IA64, the linker does run time linking by default, so we don't
17887           # have to do anything special.
17888           aix_use_runtimelinking=no
17889           exp_sym_flag='-Bexport'
17890           no_entry_flag=""
17891         else
17892           aix_use_runtimelinking=no
17893
17894           # Test if we are trying to use run time linking or normal
17895           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17896           # need to do runtime linking.
17897           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17898             for ld_flag in $LDFLAGS; do
17899               case $ld_flag in
17900               *-brtl*)
17901                 aix_use_runtimelinking=yes
17902                 break
17903                 ;;
17904               esac
17905             done
17906             ;;
17907           esac
17908
17909           exp_sym_flag='-bexport'
17910           no_entry_flag='-bnoentry'
17911         fi
17912
17913         # When large executables or shared objects are built, AIX ld can
17914         # have problems creating the table of contents.  If linking a library
17915         # or program results in "error TOC overflow" add -mminimal-toc to
17916         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17917         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17918
17919         archive_cmds_CXX=''
17920         hardcode_direct_CXX=yes
17921         hardcode_direct_absolute_CXX=yes
17922         hardcode_libdir_separator_CXX=':'
17923         link_all_deplibs_CXX=yes
17924         file_list_spec_CXX='${wl}-f,'
17925
17926         if test "$GXX" = yes; then
17927           case $host_os in aix4.[012]|aix4.[012].*)
17928           # We only want to do this on AIX 4.2 and lower, the check
17929           # below for broken collect2 doesn't work under 4.3+
17930           collect2name=`${CC} -print-prog-name=collect2`
17931           if test -f "$collect2name" &&
17932              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17933           then
17934             # We have reworked collect2
17935             :
17936           else
17937             # We have old collect2
17938             hardcode_direct_CXX=unsupported
17939             # It fails to find uninstalled libraries when the uninstalled
17940             # path is not listed in the libpath.  Setting hardcode_minus_L
17941             # to unsupported forces relinking
17942             hardcode_minus_L_CXX=yes
17943             hardcode_libdir_flag_spec_CXX='-L$libdir'
17944             hardcode_libdir_separator_CXX=
17945           fi
17946           esac
17947           shared_flag='-shared'
17948           if test "$aix_use_runtimelinking" = yes; then
17949             shared_flag="$shared_flag "'${wl}-G'
17950           fi
17951         else
17952           # not using gcc
17953           if test "$host_cpu" = ia64; then
17954           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17955           # chokes on -Wl,-G. The following line is correct:
17956           shared_flag='-G'
17957           else
17958             if test "$aix_use_runtimelinking" = yes; then
17959               shared_flag='${wl}-G'
17960             else
17961               shared_flag='${wl}-bM:SRE'
17962             fi
17963           fi
17964         fi
17965
17966         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17967         # It seems that -bexpall does not export symbols beginning with
17968         # underscore (_), so it is better to generate a list of symbols to
17969         # export.
17970         always_export_symbols_CXX=yes
17971         if test "$aix_use_runtimelinking" = yes; then
17972           # Warning - without using the other runtime loading flags (-brtl),
17973           # -berok will link without error, but may produce a broken library.
17974           allow_undefined_flag_CXX='-berok'
17975           # Determine the default libpath from the value encoded in an empty
17976           # executable.
17977           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h.  */
17979
17980 int
17981 main ()
17982 {
17983
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 if ac_fn_cxx_try_link "$LINENO"; then :
17989
17990 lt_aix_libpath_sed='
17991     /Import File Strings/,/^$/ {
17992         /^0/ {
17993             s/^0  *\(.*\)$/\1/
17994             p
17995         }
17996     }'
17997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17998 # Check for a 64-bit object if we didn't find anything.
17999 if test -z "$aix_libpath"; then
18000   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18001 fi
18002 fi
18003 rm -f core conftest.err conftest.$ac_objext \
18004     conftest$ac_exeext conftest.$ac_ext
18005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18006
18007           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18008
18009           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"
18010         else
18011           if test "$host_cpu" = ia64; then
18012             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18013             allow_undefined_flag_CXX="-z nodefs"
18014             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"
18015           else
18016             # Determine the default libpath from the value encoded in an
18017             # empty executable.
18018             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h.  */
18020
18021 int
18022 main ()
18023 {
18024
18025   ;
18026   return 0;
18027 }
18028 _ACEOF
18029 if ac_fn_cxx_try_link "$LINENO"; then :
18030
18031 lt_aix_libpath_sed='
18032     /Import File Strings/,/^$/ {
18033         /^0/ {
18034             s/^0  *\(.*\)$/\1/
18035             p
18036         }
18037     }'
18038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18039 # Check for a 64-bit object if we didn't find anything.
18040 if test -z "$aix_libpath"; then
18041   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18042 fi
18043 fi
18044 rm -f core conftest.err conftest.$ac_objext \
18045     conftest$ac_exeext conftest.$ac_ext
18046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18047
18048             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18049             # Warning - without using the other run time loading flags,
18050             # -berok will link without error, but may produce a broken library.
18051             no_undefined_flag_CXX=' ${wl}-bernotok'
18052             allow_undefined_flag_CXX=' ${wl}-berok'
18053             if test "$with_gnu_ld" = yes; then
18054               # We only use this code for GNU lds that support --whole-archive.
18055               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18056             else
18057               # Exported symbols can be pulled into shared objects from archives
18058               whole_archive_flag_spec_CXX='$convenience'
18059             fi
18060             archive_cmds_need_lc_CXX=yes
18061             # This is similar to how AIX traditionally builds its shared
18062             # libraries.
18063             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'
18064           fi
18065         fi
18066         ;;
18067
18068       beos*)
18069         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18070           allow_undefined_flag_CXX=unsupported
18071           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18072           # support --undefined.  This deserves some investigation.  FIXME
18073           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18074         else
18075           ld_shlibs_CXX=no
18076         fi
18077         ;;
18078
18079       chorus*)
18080         case $cc_basename in
18081           *)
18082           # FIXME: insert proper C++ library support
18083           ld_shlibs_CXX=no
18084           ;;
18085         esac
18086         ;;
18087
18088       cygwin* | mingw* | pw32* | cegcc*)
18089         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18090         # as there is no search path for DLLs.
18091         hardcode_libdir_flag_spec_CXX='-L$libdir'
18092         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18093         allow_undefined_flag_CXX=unsupported
18094         always_export_symbols_CXX=no
18095         enable_shared_with_static_runtimes_CXX=yes
18096
18097         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18098           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'
18099           # If the export-symbols file already is a .def file (1st line
18100           # is EXPORTS), use it as is; otherwise, prepend...
18101           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18102             cp $export_symbols $output_objdir/$soname.def;
18103           else
18104             echo EXPORTS > $output_objdir/$soname.def;
18105             cat $export_symbols >> $output_objdir/$soname.def;
18106           fi~
18107           $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'
18108         else
18109           ld_shlibs_CXX=no
18110         fi
18111         ;;
18112       darwin* | rhapsody*)
18113
18114
18115   archive_cmds_need_lc_CXX=no
18116   hardcode_direct_CXX=no
18117   hardcode_automatic_CXX=yes
18118   hardcode_shlibpath_var_CXX=unsupported
18119   if test "$lt_cv_ld_force_load" = "yes"; then
18120     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\"`'
18121   else
18122     whole_archive_flag_spec_CXX=''
18123   fi
18124   link_all_deplibs_CXX=yes
18125   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18126   case $cc_basename in
18127      ifort*) _lt_dar_can_shared=yes ;;
18128      *) _lt_dar_can_shared=$GCC ;;
18129   esac
18130   if test "$_lt_dar_can_shared" = "yes"; then
18131     output_verbose_link_cmd=func_echo_all
18132     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}"
18133     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18134     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}"
18135     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}"
18136        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18137       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}"
18138       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}"
18139     fi
18140
18141   else
18142   ld_shlibs_CXX=no
18143   fi
18144
18145         ;;
18146
18147       dgux*)
18148         case $cc_basename in
18149           ec++*)
18150             # FIXME: insert proper C++ library support
18151             ld_shlibs_CXX=no
18152             ;;
18153           ghcx*)
18154             # Green Hills C++ Compiler
18155             # FIXME: insert proper C++ library support
18156             ld_shlibs_CXX=no
18157             ;;
18158           *)
18159             # FIXME: insert proper C++ library support
18160             ld_shlibs_CXX=no
18161             ;;
18162         esac
18163         ;;
18164
18165       freebsd[12]*)
18166         # C++ shared libraries reported to be fairly broken before
18167         # switch to ELF
18168         ld_shlibs_CXX=no
18169         ;;
18170
18171       freebsd-elf*)
18172         archive_cmds_need_lc_CXX=no
18173         ;;
18174
18175       freebsd* | dragonfly*)
18176         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18177         # conventions
18178         ld_shlibs_CXX=yes
18179         ;;
18180
18181       gnu*)
18182         ;;
18183
18184       haiku*)
18185         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18186         link_all_deplibs_CXX=yes
18187         ;;
18188
18189       hpux9*)
18190         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18191         hardcode_libdir_separator_CXX=:
18192         export_dynamic_flag_spec_CXX='${wl}-E'
18193         hardcode_direct_CXX=yes
18194         hardcode_minus_L_CXX=yes # Not in the search PATH,
18195                                              # but as the default
18196                                              # location of the library.
18197
18198         case $cc_basename in
18199           CC*)
18200             # FIXME: insert proper C++ library support
18201             ld_shlibs_CXX=no
18202             ;;
18203           aCC*)
18204             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'
18205             # Commands to make compiler produce verbose output that lists
18206             # what "hidden" libraries, object files and flags are used when
18207             # linking a shared library.
18208             #
18209             # There doesn't appear to be a way to prevent this compiler from
18210             # explicitly linking system object files so we need to strip them
18211             # from the output so that they don't get included in the library
18212             # dependencies.
18213             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"'
18214             ;;
18215           *)
18216             if test "$GXX" = yes; then
18217               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'
18218             else
18219               # FIXME: insert proper C++ library support
18220               ld_shlibs_CXX=no
18221             fi
18222             ;;
18223         esac
18224         ;;
18225
18226       hpux10*|hpux11*)
18227         if test $with_gnu_ld = no; then
18228           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18229           hardcode_libdir_separator_CXX=:
18230
18231           case $host_cpu in
18232             hppa*64*|ia64*)
18233               ;;
18234             *)
18235               export_dynamic_flag_spec_CXX='${wl}-E'
18236               ;;
18237           esac
18238         fi
18239         case $host_cpu in
18240           hppa*64*|ia64*)
18241             hardcode_direct_CXX=no
18242             hardcode_shlibpath_var_CXX=no
18243             ;;
18244           *)
18245             hardcode_direct_CXX=yes
18246             hardcode_direct_absolute_CXX=yes
18247             hardcode_minus_L_CXX=yes # Not in the search PATH,
18248                                                  # but as the default
18249                                                  # location of the library.
18250             ;;
18251         esac
18252
18253         case $cc_basename in
18254           CC*)
18255             # FIXME: insert proper C++ library support
18256             ld_shlibs_CXX=no
18257             ;;
18258           aCC*)
18259             case $host_cpu in
18260               hppa*64*)
18261                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18262                 ;;
18263               ia64*)
18264                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18265                 ;;
18266               *)
18267                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18268                 ;;
18269             esac
18270             # Commands to make compiler produce verbose output that lists
18271             # what "hidden" libraries, object files and flags are used when
18272             # linking a shared library.
18273             #
18274             # There doesn't appear to be a way to prevent this compiler from
18275             # explicitly linking system object files so we need to strip them
18276             # from the output so that they don't get included in the library
18277             # dependencies.
18278             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"'
18279             ;;
18280           *)
18281             if test "$GXX" = yes; then
18282               if test $with_gnu_ld = no; then
18283                 case $host_cpu in
18284                   hppa*64*)
18285                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18286                     ;;
18287                   ia64*)
18288                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18289                     ;;
18290                   *)
18291                     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'
18292                     ;;
18293                 esac
18294               fi
18295             else
18296               # FIXME: insert proper C++ library support
18297               ld_shlibs_CXX=no
18298             fi
18299             ;;
18300         esac
18301         ;;
18302
18303       interix[3-9]*)
18304         hardcode_direct_CXX=no
18305         hardcode_shlibpath_var_CXX=no
18306         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18307         export_dynamic_flag_spec_CXX='${wl}-E'
18308         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18309         # Instead, shared libraries are loaded at an image base (0x10000000 by
18310         # default) and relocated if they conflict, which is a slow very memory
18311         # consuming and fragmenting process.  To avoid this, we pick a random,
18312         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18313         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18314         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'
18315         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'
18316         ;;
18317       irix5* | irix6*)
18318         case $cc_basename in
18319           CC*)
18320             # SGI C++
18321             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'
18322
18323             # Archives containing C++ object files must be created using
18324             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18325             # necessary to make sure instantiated templates are included
18326             # in the archive.
18327             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18328             ;;
18329           *)
18330             if test "$GXX" = yes; then
18331               if test "$with_gnu_ld" = no; then
18332                 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'
18333               else
18334                 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'
18335               fi
18336             fi
18337             link_all_deplibs_CXX=yes
18338             ;;
18339         esac
18340         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18341         hardcode_libdir_separator_CXX=:
18342         inherit_rpath_CXX=yes
18343         ;;
18344
18345       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18346         case $cc_basename in
18347           KCC*)
18348             # Kuck and Associates, Inc. (KAI) C++ Compiler
18349
18350             # KCC will only create a shared library if the output file
18351             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18352             # to its proper name (with version) after linking.
18353             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'
18354             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'
18355             # Commands to make compiler produce verbose output that lists
18356             # what "hidden" libraries, object files and flags are used when
18357             # linking a shared library.
18358             #
18359             # There doesn't appear to be a way to prevent this compiler from
18360             # explicitly linking system object files so we need to strip them
18361             # from the output so that they don't get included in the library
18362             # dependencies.
18363             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"'
18364
18365             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18366             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18367
18368             # Archives containing C++ object files must be created using
18369             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18370             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18371             ;;
18372           icpc* | ecpc* )
18373             # Intel C++
18374             with_gnu_ld=yes
18375             # version 8.0 and above of icpc choke on multiply defined symbols
18376             # if we add $predep_objects and $postdep_objects, however 7.1 and
18377             # earlier do not add the objects themselves.
18378             case `$CC -V 2>&1` in
18379               *"Version 7."*)
18380                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18381                 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'
18382                 ;;
18383               *)  # Version 8.0 or newer
18384                 tmp_idyn=
18385                 case $host_cpu in
18386                   ia64*) tmp_idyn=' -i_dynamic';;
18387                 esac
18388                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18389                 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'
18390                 ;;
18391             esac
18392             archive_cmds_need_lc_CXX=no
18393             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18394             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18395             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18396             ;;
18397           pgCC* | pgcpp*)
18398             # Portland Group C++ compiler
18399             case `$CC -V` in
18400             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18401               prelink_cmds_CXX='tpldir=Template.dir~
18402                 rm -rf $tpldir~
18403                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18404                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18405               old_archive_cmds_CXX='tpldir=Template.dir~
18406                 rm -rf $tpldir~
18407                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18408                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18409                 $RANLIB $oldlib'
18410               archive_cmds_CXX='tpldir=Template.dir~
18411                 rm -rf $tpldir~
18412                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18413                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18414               archive_expsym_cmds_CXX='tpldir=Template.dir~
18415                 rm -rf $tpldir~
18416                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18417                 $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'
18418               ;;
18419             *) # Version 6 and above use weak symbols
18420               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18421               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'
18422               ;;
18423             esac
18424
18425             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18426             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18427             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'
18428             ;;
18429           cxx*)
18430             # Compaq C++
18431             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18432             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'
18433
18434             runpath_var=LD_RUN_PATH
18435             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18436             hardcode_libdir_separator_CXX=:
18437
18438             # Commands to make compiler produce verbose output that lists
18439             # what "hidden" libraries, object files and flags are used when
18440             # linking a shared library.
18441             #
18442             # There doesn't appear to be a way to prevent this compiler from
18443             # explicitly linking system object files so we need to strip them
18444             # from the output so that they don't get included in the library
18445             # dependencies.
18446             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'
18447             ;;
18448           xl* | mpixl* | bgxl*)
18449             # IBM XL 8.0 on PPC, with GNU ld
18450             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18451             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18452             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18453             if test "x$supports_anon_versioning" = xyes; then
18454               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18455                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18456                 echo "local: *; };" >> $output_objdir/$libname.ver~
18457                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18458             fi
18459             ;;
18460           *)
18461             case `$CC -V 2>&1 | sed 5q` in
18462             *Sun\ C*)
18463               # Sun C++ 5.9
18464               no_undefined_flag_CXX=' -zdefs'
18465               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18466               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'
18467               hardcode_libdir_flag_spec_CXX='-R$libdir'
18468               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'
18469               compiler_needs_object_CXX=yes
18470
18471               # Not sure whether something based on
18472               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18473               # would be better.
18474               output_verbose_link_cmd='func_echo_all'
18475
18476               # Archives containing C++ object files must be created using
18477               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18478               # necessary to make sure instantiated templates are included
18479               # in the archive.
18480               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18481               ;;
18482             esac
18483             ;;
18484         esac
18485         ;;
18486
18487       lynxos*)
18488         # FIXME: insert proper C++ library support
18489         ld_shlibs_CXX=no
18490         ;;
18491
18492       m88k*)
18493         # FIXME: insert proper C++ library support
18494         ld_shlibs_CXX=no
18495         ;;
18496
18497       mvs*)
18498         case $cc_basename in
18499           cxx*)
18500             # FIXME: insert proper C++ library support
18501             ld_shlibs_CXX=no
18502             ;;
18503           *)
18504             # FIXME: insert proper C++ library support
18505             ld_shlibs_CXX=no
18506             ;;
18507         esac
18508         ;;
18509
18510       netbsd*)
18511         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18512           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18513           wlarc=
18514           hardcode_libdir_flag_spec_CXX='-R$libdir'
18515           hardcode_direct_CXX=yes
18516           hardcode_shlibpath_var_CXX=no
18517         fi
18518         # Workaround some broken pre-1.5 toolchains
18519         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18520         ;;
18521
18522       *nto* | *qnx*)
18523         ld_shlibs_CXX=yes
18524         ;;
18525
18526       openbsd2*)
18527         # C++ shared libraries are fairly broken
18528         ld_shlibs_CXX=no
18529         ;;
18530
18531       openbsd*)
18532         if test -f /usr/libexec/ld.so; then
18533           hardcode_direct_CXX=yes
18534           hardcode_shlibpath_var_CXX=no
18535           hardcode_direct_absolute_CXX=yes
18536           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18537           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18538           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18539             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18540             export_dynamic_flag_spec_CXX='${wl}-E'
18541             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18542           fi
18543           output_verbose_link_cmd=func_echo_all
18544         else
18545           ld_shlibs_CXX=no
18546         fi
18547         ;;
18548
18549       osf3* | osf4* | osf5*)
18550         case $cc_basename in
18551           KCC*)
18552             # Kuck and Associates, Inc. (KAI) C++ Compiler
18553
18554             # KCC will only create a shared library if the output file
18555             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18556             # to its proper name (with version) after linking.
18557             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'
18558
18559             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18560             hardcode_libdir_separator_CXX=:
18561
18562             # Archives containing C++ object files must be created using
18563             # the KAI C++ compiler.
18564             case $host in
18565               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18566               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18567             esac
18568             ;;
18569           RCC*)
18570             # Rational C++ 2.4.1
18571             # FIXME: insert proper C++ library support
18572             ld_shlibs_CXX=no
18573             ;;
18574           cxx*)
18575             case $host in
18576               osf3*)
18577                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18578                 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'
18579                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18580                 ;;
18581               *)
18582                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18583                 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'
18584                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18585                   echo "-hidden">> $lib.exp~
18586                   $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~
18587                   $RM $lib.exp'
18588                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18589                 ;;
18590             esac
18591
18592             hardcode_libdir_separator_CXX=:
18593
18594             # Commands to make compiler produce verbose output that lists
18595             # what "hidden" libraries, object files and flags are used when
18596             # linking a shared library.
18597             #
18598             # There doesn't appear to be a way to prevent this compiler from
18599             # explicitly linking system object files so we need to strip them
18600             # from the output so that they don't get included in the library
18601             # dependencies.
18602             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $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"'
18603             ;;
18604           *)
18605             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18606               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18607               case $host in
18608                 osf3*)
18609                   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'
18610                   ;;
18611                 *)
18612                   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'
18613                   ;;
18614               esac
18615
18616               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18617               hardcode_libdir_separator_CXX=:
18618
18619               # Commands to make compiler produce verbose output that lists
18620               # what "hidden" libraries, object files and flags are used when
18621               # linking a shared library.
18622               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18623
18624             else
18625               # FIXME: insert proper C++ library support
18626               ld_shlibs_CXX=no
18627             fi
18628             ;;
18629         esac
18630         ;;
18631
18632       psos*)
18633         # FIXME: insert proper C++ library support
18634         ld_shlibs_CXX=no
18635         ;;
18636
18637       sunos4*)
18638         case $cc_basename in
18639           CC*)
18640             # Sun C++ 4.x
18641             # FIXME: insert proper C++ library support
18642             ld_shlibs_CXX=no
18643             ;;
18644           lcc*)
18645             # Lucid
18646             # FIXME: insert proper C++ library support
18647             ld_shlibs_CXX=no
18648             ;;
18649           *)
18650             # FIXME: insert proper C++ library support
18651             ld_shlibs_CXX=no
18652             ;;
18653         esac
18654         ;;
18655
18656       solaris*)
18657         case $cc_basename in
18658           CC*)
18659             # Sun C++ 4.2, 5.x and Centerline C++
18660             archive_cmds_need_lc_CXX=yes
18661             no_undefined_flag_CXX=' -zdefs'
18662             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18663             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18664               $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'
18665
18666             hardcode_libdir_flag_spec_CXX='-R$libdir'
18667             hardcode_shlibpath_var_CXX=no
18668             case $host_os in
18669               solaris2.[0-5] | solaris2.[0-5].*) ;;
18670               *)
18671                 # The compiler driver will combine and reorder linker options,
18672                 # but understands `-z linker_flag'.
18673                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18674                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18675                 ;;
18676             esac
18677             link_all_deplibs_CXX=yes
18678
18679             output_verbose_link_cmd='func_echo_all'
18680
18681             # Archives containing C++ object files must be created using
18682             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18683             # necessary to make sure instantiated templates are included
18684             # in the archive.
18685             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18686             ;;
18687           gcx*)
18688             # Green Hills C++ Compiler
18689             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18690
18691             # The C++ compiler must be used to create the archive.
18692             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18693             ;;
18694           *)
18695             # GNU C++ compiler with Solaris linker
18696             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18697               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18698               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18699                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18700                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18701                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18702
18703                 # Commands to make compiler produce verbose output that lists
18704                 # what "hidden" libraries, object files and flags are used when
18705                 # linking a shared library.
18706                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18707               else
18708                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18709                 # platform.
18710                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18711                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18712                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18713
18714                 # Commands to make compiler produce verbose output that lists
18715                 # what "hidden" libraries, object files and flags are used when
18716                 # linking a shared library.
18717                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18718               fi
18719
18720               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18721               case $host_os in
18722                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18723                 *)
18724                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18725                   ;;
18726               esac
18727             fi
18728             ;;
18729         esac
18730         ;;
18731
18732     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18733       no_undefined_flag_CXX='${wl}-z,text'
18734       archive_cmds_need_lc_CXX=no
18735       hardcode_shlibpath_var_CXX=no
18736       runpath_var='LD_RUN_PATH'
18737
18738       case $cc_basename in
18739         CC*)
18740           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18741           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18742           ;;
18743         *)
18744           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18745           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18746           ;;
18747       esac
18748       ;;
18749
18750       sysv5* | sco3.2v5* | sco5v6*)
18751         # Note: We can NOT use -z defs as we might desire, because we do not
18752         # link with -lc, and that would cause any symbols used from libc to
18753         # always be unresolved, which means just about no library would
18754         # ever link correctly.  If we're not using GNU ld we use -z text
18755         # though, which does catch some bad symbols but isn't as heavy-handed
18756         # as -z defs.
18757         no_undefined_flag_CXX='${wl}-z,text'
18758         allow_undefined_flag_CXX='${wl}-z,nodefs'
18759         archive_cmds_need_lc_CXX=no
18760         hardcode_shlibpath_var_CXX=no
18761         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18762         hardcode_libdir_separator_CXX=':'
18763         link_all_deplibs_CXX=yes
18764         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18765         runpath_var='LD_RUN_PATH'
18766
18767         case $cc_basename in
18768           CC*)
18769             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18770             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18771             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18772               '"$old_archive_cmds_CXX"
18773             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18774               '"$reload_cmds_CXX"
18775             ;;
18776           *)
18777             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18778             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18779             ;;
18780         esac
18781       ;;
18782
18783       tandem*)
18784         case $cc_basename in
18785           NCC*)
18786             # NonStop-UX NCC 3.20
18787             # FIXME: insert proper C++ library support
18788             ld_shlibs_CXX=no
18789             ;;
18790           *)
18791             # FIXME: insert proper C++ library support
18792             ld_shlibs_CXX=no
18793             ;;
18794         esac
18795         ;;
18796
18797       vxworks*)
18798         # FIXME: insert proper C++ library support
18799         ld_shlibs_CXX=no
18800         ;;
18801
18802       *)
18803         # FIXME: insert proper C++ library support
18804         ld_shlibs_CXX=no
18805         ;;
18806     esac
18807
18808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18809 $as_echo "$ld_shlibs_CXX" >&6; }
18810     test "$ld_shlibs_CXX" = no && can_build_shared=no
18811
18812     GCC_CXX="$GXX"
18813     LD_CXX="$LD"
18814
18815     ## CAVEAT EMPTOR:
18816     ## There is no encapsulation within the following macros, do not change
18817     ## the running order or otherwise move them around unless you know exactly
18818     ## what you are doing...
18819     # Dependencies to place before and after the object being linked:
18820 predep_objects_CXX=
18821 postdep_objects_CXX=
18822 predeps_CXX=
18823 postdeps_CXX=
18824 compiler_lib_search_path_CXX=
18825
18826 cat > conftest.$ac_ext <<_LT_EOF
18827 class Foo
18828 {
18829 public:
18830   Foo (void) { a = 0; }
18831 private:
18832   int a;
18833 };
18834 _LT_EOF
18835
18836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18837   (eval $ac_compile) 2>&5
18838   ac_status=$?
18839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18840   test $ac_status = 0; }; then
18841   # Parse the compiler output and extract the necessary
18842   # objects, libraries and library flags.
18843
18844   # Sentinel used to keep track of whether or not we are before
18845   # the conftest object file.
18846   pre_test_object_deps_done=no
18847
18848   for p in `eval "$output_verbose_link_cmd"`; do
18849     case $p in
18850
18851     -L* | -R* | -l*)
18852        # Some compilers place space between "-{L,R}" and the path.
18853        # Remove the space.
18854        if test $p = "-L" ||
18855           test $p = "-R"; then
18856          prev=$p
18857          continue
18858        else
18859          prev=
18860        fi
18861
18862        if test "$pre_test_object_deps_done" = no; then
18863          case $p in
18864          -L* | -R*)
18865            # Internal compiler library paths should come after those
18866            # provided the user.  The postdeps already come after the
18867            # user supplied libs so there is no need to process them.
18868            if test -z "$compiler_lib_search_path_CXX"; then
18869              compiler_lib_search_path_CXX="${prev}${p}"
18870            else
18871              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18872            fi
18873            ;;
18874          # The "-l" case would never come before the object being
18875          # linked, so don't bother handling this case.
18876          esac
18877        else
18878          if test -z "$postdeps_CXX"; then
18879            postdeps_CXX="${prev}${p}"
18880          else
18881            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18882          fi
18883        fi
18884        ;;
18885
18886     *.$objext)
18887        # This assumes that the test object file only shows up
18888        # once in the compiler output.
18889        if test "$p" = "conftest.$objext"; then
18890          pre_test_object_deps_done=yes
18891          continue
18892        fi
18893
18894        if test "$pre_test_object_deps_done" = no; then
18895          if test -z "$predep_objects_CXX"; then
18896            predep_objects_CXX="$p"
18897          else
18898            predep_objects_CXX="$predep_objects_CXX $p"
18899          fi
18900        else
18901          if test -z "$postdep_objects_CXX"; then
18902            postdep_objects_CXX="$p"
18903          else
18904            postdep_objects_CXX="$postdep_objects_CXX $p"
18905          fi
18906        fi
18907        ;;
18908
18909     *) ;; # Ignore the rest.
18910
18911     esac
18912   done
18913
18914   # Clean up.
18915   rm -f a.out a.exe
18916 else
18917   echo "libtool.m4: error: problem compiling CXX test program"
18918 fi
18919
18920 $RM -f confest.$objext
18921
18922 # PORTME: override above test on systems where it is broken
18923 case $host_os in
18924 interix[3-9]*)
18925   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18926   # hack all around it, let's just trust "g++" to DTRT.
18927   predep_objects_CXX=
18928   postdep_objects_CXX=
18929   postdeps_CXX=
18930   ;;
18931
18932 linux*)
18933   case `$CC -V 2>&1 | sed 5q` in
18934   *Sun\ C*)
18935     # Sun C++ 5.9
18936
18937     # The more standards-conforming stlport4 library is
18938     # incompatible with the Cstd library. Avoid specifying
18939     # it if it's in CXXFLAGS. Ignore libCrun as
18940     # -library=stlport4 depends on it.
18941     case " $CXX $CXXFLAGS " in
18942     *" -library=stlport4 "*)
18943       solaris_use_stlport4=yes
18944       ;;
18945     esac
18946
18947     if test "$solaris_use_stlport4" != yes; then
18948       postdeps_CXX='-library=Cstd -library=Crun'
18949     fi
18950     ;;
18951   esac
18952   ;;
18953
18954 solaris*)
18955   case $cc_basename in
18956   CC*)
18957     # The more standards-conforming stlport4 library is
18958     # incompatible with the Cstd library. Avoid specifying
18959     # it if it's in CXXFLAGS. Ignore libCrun as
18960     # -library=stlport4 depends on it.
18961     case " $CXX $CXXFLAGS " in
18962     *" -library=stlport4 "*)
18963       solaris_use_stlport4=yes
18964       ;;
18965     esac
18966
18967     # Adding this requires a known-good setup of shared libraries for
18968     # Sun compiler versions before 5.6, else PIC objects from an old
18969     # archive will be linked into the output, leading to subtle bugs.
18970     if test "$solaris_use_stlport4" != yes; then
18971       postdeps_CXX='-library=Cstd -library=Crun'
18972     fi
18973     ;;
18974   esac
18975   ;;
18976 esac
18977
18978
18979 case " $postdeps_CXX " in
18980 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18981 esac
18982  compiler_lib_search_dirs_CXX=
18983 if test -n "${compiler_lib_search_path_CXX}"; then
18984  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18985 fi
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017     lt_prog_compiler_wl_CXX=
19018 lt_prog_compiler_pic_CXX=
19019 lt_prog_compiler_static_CXX=
19020
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19022 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19023
19024   # C++ specific cases for pic, static, wl, etc.
19025   if test "$GXX" = yes; then
19026     lt_prog_compiler_wl_CXX='-Wl,'
19027     lt_prog_compiler_static_CXX='-static'
19028
19029     case $host_os in
19030     aix*)
19031       # All AIX code is PIC.
19032       if test "$host_cpu" = ia64; then
19033         # AIX 5 now supports IA64 processor
19034         lt_prog_compiler_static_CXX='-Bstatic'
19035       fi
19036       ;;
19037
19038     amigaos*)
19039       case $host_cpu in
19040       powerpc)
19041             # see comment about AmigaOS4 .so support
19042             lt_prog_compiler_pic_CXX='-fPIC'
19043         ;;
19044       m68k)
19045             # FIXME: we need at least 68020 code to build shared libraries, but
19046             # adding the `-m68020' flag to GCC prevents building anything better,
19047             # like `-m68040'.
19048             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19049         ;;
19050       esac
19051       ;;
19052
19053     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19054       # PIC is the default for these OSes.
19055       ;;
19056     mingw* | cygwin* | os2* | pw32* | cegcc*)
19057       # This hack is so that the source file can tell whether it is being
19058       # built for inclusion in a dll (and should export symbols for example).
19059       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19060       # (--disable-auto-import) libraries
19061       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19062       ;;
19063     darwin* | rhapsody*)
19064       # PIC is the default on this platform
19065       # Common symbols not allowed in MH_DYLIB files
19066       lt_prog_compiler_pic_CXX='-fno-common'
19067       ;;
19068     *djgpp*)
19069       # DJGPP does not support shared libraries at all
19070       lt_prog_compiler_pic_CXX=
19071       ;;
19072     haiku*)
19073       # PIC is the default for Haiku.
19074       # The "-static" flag exists, but is broken.
19075       lt_prog_compiler_static_CXX=
19076       ;;
19077     interix[3-9]*)
19078       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19079       # Instead, we relocate shared libraries at runtime.
19080       ;;
19081     sysv4*MP*)
19082       if test -d /usr/nec; then
19083         lt_prog_compiler_pic_CXX=-Kconform_pic
19084       fi
19085       ;;
19086     hpux*)
19087       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19088       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19089       # sets the default TLS model and affects inlining.
19090       case $host_cpu in
19091       hppa*64*)
19092         ;;
19093       *)
19094         lt_prog_compiler_pic_CXX='-fPIC'
19095         ;;
19096       esac
19097       ;;
19098     *qnx* | *nto*)
19099       # QNX uses GNU C++, but need to define -shared option too, otherwise
19100       # it will coredump.
19101       lt_prog_compiler_pic_CXX='-fPIC -shared'
19102       ;;
19103     *)
19104       lt_prog_compiler_pic_CXX='-fPIC'
19105       ;;
19106     esac
19107   else
19108     case $host_os in
19109       aix[4-9]*)
19110         # All AIX code is PIC.
19111         if test "$host_cpu" = ia64; then
19112           # AIX 5 now supports IA64 processor
19113           lt_prog_compiler_static_CXX='-Bstatic'
19114         else
19115           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19116         fi
19117         ;;
19118       chorus*)
19119         case $cc_basename in
19120         cxch68*)
19121           # Green Hills C++ Compiler
19122           # _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"
19123           ;;
19124         esac
19125         ;;
19126       dgux*)
19127         case $cc_basename in
19128           ec++*)
19129             lt_prog_compiler_pic_CXX='-KPIC'
19130             ;;
19131           ghcx*)
19132             # Green Hills C++ Compiler
19133             lt_prog_compiler_pic_CXX='-pic'
19134             ;;
19135           *)
19136             ;;
19137         esac
19138         ;;
19139       freebsd* | dragonfly*)
19140         # FreeBSD uses GNU C++
19141         ;;
19142       hpux9* | hpux10* | hpux11*)
19143         case $cc_basename in
19144           CC*)
19145             lt_prog_compiler_wl_CXX='-Wl,'
19146             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19147             if test "$host_cpu" != ia64; then
19148               lt_prog_compiler_pic_CXX='+Z'
19149             fi
19150             ;;
19151           aCC*)
19152             lt_prog_compiler_wl_CXX='-Wl,'
19153             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19154             case $host_cpu in
19155             hppa*64*|ia64*)
19156               # +Z the default
19157               ;;
19158             *)
19159               lt_prog_compiler_pic_CXX='+Z'
19160               ;;
19161             esac
19162             ;;
19163           *)
19164             ;;
19165         esac
19166         ;;
19167       interix*)
19168         # This is c89, which is MS Visual C++ (no shared libs)
19169         # Anyone wants to do a port?
19170         ;;
19171       irix5* | irix6* | nonstopux*)
19172         case $cc_basename in
19173           CC*)
19174             lt_prog_compiler_wl_CXX='-Wl,'
19175             lt_prog_compiler_static_CXX='-non_shared'
19176             # CC pic flag -KPIC is the default.
19177             ;;
19178           *)
19179             ;;
19180         esac
19181         ;;
19182       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19183         case $cc_basename in
19184           KCC*)
19185             # KAI C++ Compiler
19186             lt_prog_compiler_wl_CXX='--backend -Wl,'
19187             lt_prog_compiler_pic_CXX='-fPIC'
19188             ;;
19189           ecpc* )
19190             # old Intel C++ for x86_64 which still supported -KPIC.
19191             lt_prog_compiler_wl_CXX='-Wl,'
19192             lt_prog_compiler_pic_CXX='-KPIC'
19193             lt_prog_compiler_static_CXX='-static'
19194             ;;
19195           icpc* )
19196             # Intel C++, used to be incompatible with GCC.
19197             # ICC 10 doesn't accept -KPIC any more.
19198             lt_prog_compiler_wl_CXX='-Wl,'
19199             lt_prog_compiler_pic_CXX='-fPIC'
19200             lt_prog_compiler_static_CXX='-static'
19201             ;;
19202           pgCC* | pgcpp*)
19203             # Portland Group C++ compiler
19204             lt_prog_compiler_wl_CXX='-Wl,'
19205             lt_prog_compiler_pic_CXX='-fpic'
19206             lt_prog_compiler_static_CXX='-Bstatic'
19207             ;;
19208           cxx*)
19209             # Compaq C++
19210             # Make sure the PIC flag is empty.  It appears that all Alpha
19211             # Linux and Compaq Tru64 Unix objects are PIC.
19212             lt_prog_compiler_pic_CXX=
19213             lt_prog_compiler_static_CXX='-non_shared'
19214             ;;
19215           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19216             # IBM XL 8.0, 9.0 on PPC and BlueGene
19217             lt_prog_compiler_wl_CXX='-Wl,'
19218             lt_prog_compiler_pic_CXX='-qpic'
19219             lt_prog_compiler_static_CXX='-qstaticlink'
19220             ;;
19221           *)
19222             case `$CC -V 2>&1 | sed 5q` in
19223             *Sun\ C*)
19224               # Sun C++ 5.9
19225               lt_prog_compiler_pic_CXX='-KPIC'
19226               lt_prog_compiler_static_CXX='-Bstatic'
19227               lt_prog_compiler_wl_CXX='-Qoption ld '
19228               ;;
19229             esac
19230             ;;
19231         esac
19232         ;;
19233       lynxos*)
19234         ;;
19235       m88k*)
19236         ;;
19237       mvs*)
19238         case $cc_basename in
19239           cxx*)
19240             lt_prog_compiler_pic_CXX='-W c,exportall'
19241             ;;
19242           *)
19243             ;;
19244         esac
19245         ;;
19246       netbsd*)
19247         ;;
19248       *qnx* | *nto*)
19249         # QNX uses GNU C++, but need to define -shared option too, otherwise
19250         # it will coredump.
19251         lt_prog_compiler_pic_CXX='-fPIC -shared'
19252         ;;
19253       osf3* | osf4* | osf5*)
19254         case $cc_basename in
19255           KCC*)
19256             lt_prog_compiler_wl_CXX='--backend -Wl,'
19257             ;;
19258           RCC*)
19259             # Rational C++ 2.4.1
19260             lt_prog_compiler_pic_CXX='-pic'
19261             ;;
19262           cxx*)
19263             # Digital/Compaq C++
19264             lt_prog_compiler_wl_CXX='-Wl,'
19265             # Make sure the PIC flag is empty.  It appears that all Alpha
19266             # Linux and Compaq Tru64 Unix objects are PIC.
19267             lt_prog_compiler_pic_CXX=
19268             lt_prog_compiler_static_CXX='-non_shared'
19269             ;;
19270           *)
19271             ;;
19272         esac
19273         ;;
19274       psos*)
19275         ;;
19276       solaris*)
19277         case $cc_basename in
19278           CC*)
19279             # Sun C++ 4.2, 5.x and Centerline C++
19280             lt_prog_compiler_pic_CXX='-KPIC'
19281             lt_prog_compiler_static_CXX='-Bstatic'
19282             lt_prog_compiler_wl_CXX='-Qoption ld '
19283             ;;
19284           gcx*)
19285             # Green Hills C++ Compiler
19286             lt_prog_compiler_pic_CXX='-PIC'
19287             ;;
19288           *)
19289             ;;
19290         esac
19291         ;;
19292       sunos4*)
19293         case $cc_basename in
19294           CC*)
19295             # Sun C++ 4.x
19296             lt_prog_compiler_pic_CXX='-pic'
19297             lt_prog_compiler_static_CXX='-Bstatic'
19298             ;;
19299           lcc*)
19300             # Lucid
19301             lt_prog_compiler_pic_CXX='-pic'
19302             ;;
19303           *)
19304             ;;
19305         esac
19306         ;;
19307       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19308         case $cc_basename in
19309           CC*)
19310             lt_prog_compiler_wl_CXX='-Wl,'
19311             lt_prog_compiler_pic_CXX='-KPIC'
19312             lt_prog_compiler_static_CXX='-Bstatic'
19313             ;;
19314         esac
19315         ;;
19316       tandem*)
19317         case $cc_basename in
19318           NCC*)
19319             # NonStop-UX NCC 3.20
19320             lt_prog_compiler_pic_CXX='-KPIC'
19321             ;;
19322           *)
19323             ;;
19324         esac
19325         ;;
19326       vxworks*)
19327         ;;
19328       *)
19329         lt_prog_compiler_can_build_shared_CXX=no
19330         ;;
19331     esac
19332   fi
19333
19334 case $host_os in
19335   # For platforms which do not support PIC, -DPIC is meaningless:
19336   *djgpp*)
19337     lt_prog_compiler_pic_CXX=
19338     ;;
19339   *)
19340     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19341     ;;
19342 esac
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19344 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19345
19346
19347
19348 #
19349 # Check to make sure the PIC flag actually works.
19350 #
19351 if test -n "$lt_prog_compiler_pic_CXX"; then
19352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19353 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19354 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19355   $as_echo_n "(cached) " >&6
19356 else
19357   lt_cv_prog_compiler_pic_works_CXX=no
19358    ac_outfile=conftest.$ac_objext
19359    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19360    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19361    # Insert the option either (1) after the last *FLAGS variable, or
19362    # (2) before a word containing "conftest.", or (3) at the end.
19363    # Note that $ac_compile itself does not contain backslashes and begins
19364    # with a dollar sign (not a hyphen), so the echo should work correctly.
19365    # The option is referenced via a variable to avoid confusing sed.
19366    lt_compile=`echo "$ac_compile" | $SED \
19367    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19368    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19369    -e 's:$: $lt_compiler_flag:'`
19370    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19371    (eval "$lt_compile" 2>conftest.err)
19372    ac_status=$?
19373    cat conftest.err >&5
19374    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375    if (exit $ac_status) && test -s "$ac_outfile"; then
19376      # The compiler can only warn and ignore the option if not recognized
19377      # So say no if there are warnings other than the usual output.
19378      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19379      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19380      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19381        lt_cv_prog_compiler_pic_works_CXX=yes
19382      fi
19383    fi
19384    $RM conftest*
19385
19386 fi
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19388 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19389
19390 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19391     case $lt_prog_compiler_pic_CXX in
19392      "" | " "*) ;;
19393      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19394      esac
19395 else
19396     lt_prog_compiler_pic_CXX=
19397      lt_prog_compiler_can_build_shared_CXX=no
19398 fi
19399
19400 fi
19401
19402
19403
19404 #
19405 # Check to make sure the static flag actually works.
19406 #
19407 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19409 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19410 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19411   $as_echo_n "(cached) " >&6
19412 else
19413   lt_cv_prog_compiler_static_works_CXX=no
19414    save_LDFLAGS="$LDFLAGS"
19415    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19416    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19417    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19418      # The linker can only warn and ignore the option if not recognized
19419      # So say no if there are warnings
19420      if test -s conftest.err; then
19421        # Append any errors to the config.log.
19422        cat conftest.err 1>&5
19423        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19424        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19425        if diff conftest.exp conftest.er2 >/dev/null; then
19426          lt_cv_prog_compiler_static_works_CXX=yes
19427        fi
19428      else
19429        lt_cv_prog_compiler_static_works_CXX=yes
19430      fi
19431    fi
19432    $RM -r conftest*
19433    LDFLAGS="$save_LDFLAGS"
19434
19435 fi
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19437 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19438
19439 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19440     :
19441 else
19442     lt_prog_compiler_static_CXX=
19443 fi
19444
19445
19446
19447
19448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19450 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19451   $as_echo_n "(cached) " >&6
19452 else
19453   lt_cv_prog_compiler_c_o_CXX=no
19454    $RM -r conftest 2>/dev/null
19455    mkdir conftest
19456    cd conftest
19457    mkdir out
19458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19459
19460    lt_compiler_flag="-o out/conftest2.$ac_objext"
19461    # Insert the option either (1) after the last *FLAGS variable, or
19462    # (2) before a word containing "conftest.", or (3) at the end.
19463    # Note that $ac_compile itself does not contain backslashes and begins
19464    # with a dollar sign (not a hyphen), so the echo should work correctly.
19465    lt_compile=`echo "$ac_compile" | $SED \
19466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19468    -e 's:$: $lt_compiler_flag:'`
19469    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19470    (eval "$lt_compile" 2>out/conftest.err)
19471    ac_status=$?
19472    cat out/conftest.err >&5
19473    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19475    then
19476      # The compiler can only warn and ignore the option if not recognized
19477      # So say no if there are warnings
19478      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19479      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19480      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19481        lt_cv_prog_compiler_c_o_CXX=yes
19482      fi
19483    fi
19484    chmod u+w . 2>&5
19485    $RM conftest*
19486    # SGI C++ compiler will create directory out/ii_files/ for
19487    # template instantiation
19488    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19489    $RM out/* && rmdir out
19490    cd ..
19491    $RM -r conftest
19492    $RM conftest*
19493
19494 fi
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19496 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19497
19498
19499
19500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19502 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19503   $as_echo_n "(cached) " >&6
19504 else
19505   lt_cv_prog_compiler_c_o_CXX=no
19506    $RM -r conftest 2>/dev/null
19507    mkdir conftest
19508    cd conftest
19509    mkdir out
19510    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19511
19512    lt_compiler_flag="-o out/conftest2.$ac_objext"
19513    # Insert the option either (1) after the last *FLAGS variable, or
19514    # (2) before a word containing "conftest.", or (3) at the end.
19515    # Note that $ac_compile itself does not contain backslashes and begins
19516    # with a dollar sign (not a hyphen), so the echo should work correctly.
19517    lt_compile=`echo "$ac_compile" | $SED \
19518    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19520    -e 's:$: $lt_compiler_flag:'`
19521    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19522    (eval "$lt_compile" 2>out/conftest.err)
19523    ac_status=$?
19524    cat out/conftest.err >&5
19525    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19527    then
19528      # The compiler can only warn and ignore the option if not recognized
19529      # So say no if there are warnings
19530      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19531      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19532      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19533        lt_cv_prog_compiler_c_o_CXX=yes
19534      fi
19535    fi
19536    chmod u+w . 2>&5
19537    $RM conftest*
19538    # SGI C++ compiler will create directory out/ii_files/ for
19539    # template instantiation
19540    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19541    $RM out/* && rmdir out
19542    cd ..
19543    $RM -r conftest
19544    $RM conftest*
19545
19546 fi
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19548 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19549
19550
19551
19552
19553 hard_links="nottested"
19554 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19555   # do not overwrite the value of need_locks provided by the user
19556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19557 $as_echo_n "checking if we can lock with hard links... " >&6; }
19558   hard_links=yes
19559   $RM conftest*
19560   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19561   touch conftest.a
19562   ln conftest.a conftest.b 2>&5 || hard_links=no
19563   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19565 $as_echo "$hard_links" >&6; }
19566   if test "$hard_links" = no; then
19567     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19568 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19569     need_locks=warn
19570   fi
19571 else
19572   need_locks=no
19573 fi
19574
19575
19576
19577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19578 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19579
19580   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19581   case $host_os in
19582   aix[4-9]*)
19583     # If we're using GNU nm, then we don't want the "-C" option.
19584     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19585     # Also, AIX nm treats weak defined symbols like other global defined
19586     # symbols, whereas GNU nm marks them as "W".
19587     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19588       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'
19589     else
19590       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'
19591     fi
19592     ;;
19593   pw32*)
19594     export_symbols_cmds_CXX="$ltdll_cmds"
19595   ;;
19596   cygwin* | mingw* | cegcc*)
19597     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'
19598   ;;
19599   *)
19600     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19601   ;;
19602   esac
19603   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19604
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19606 $as_echo "$ld_shlibs_CXX" >&6; }
19607 test "$ld_shlibs_CXX" = no && can_build_shared=no
19608
19609 with_gnu_ld_CXX=$with_gnu_ld
19610
19611
19612
19613
19614
19615
19616 #
19617 # Do we need to explicitly link libc?
19618 #
19619 case "x$archive_cmds_need_lc_CXX" in
19620 x|xyes)
19621   # Assume -lc should be added
19622   archive_cmds_need_lc_CXX=yes
19623
19624   if test "$enable_shared" = yes && test "$GCC" = yes; then
19625     case $archive_cmds_CXX in
19626     *'~'*)
19627       # FIXME: we may have to deal with multi-command sequences.
19628       ;;
19629     '$CC '*)
19630       # Test whether the compiler implicitly links with -lc since on some
19631       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19632       # to ld, don't add -lc before -lgcc.
19633       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19635 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19636   $as_echo_n "(cached) " >&6
19637 else
19638   $RM conftest*
19639         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19640
19641         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19642   (eval $ac_compile) 2>&5
19643   ac_status=$?
19644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19645   test $ac_status = 0; } 2>conftest.err; then
19646           soname=conftest
19647           lib=conftest
19648           libobjs=conftest.$ac_objext
19649           deplibs=
19650           wl=$lt_prog_compiler_wl_CXX
19651           pic_flag=$lt_prog_compiler_pic_CXX
19652           compiler_flags=-v
19653           linker_flags=-v
19654           verstring=
19655           output_objdir=.
19656           libname=conftest
19657           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19658           allow_undefined_flag_CXX=
19659           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19660   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19661   ac_status=$?
19662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663   test $ac_status = 0; }
19664           then
19665             lt_cv_archive_cmds_need_lc_CXX=no
19666           else
19667             lt_cv_archive_cmds_need_lc_CXX=yes
19668           fi
19669           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19670         else
19671           cat conftest.err 1>&5
19672         fi
19673         $RM conftest*
19674
19675 fi
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19677 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19678       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19679       ;;
19680     esac
19681   fi
19682   ;;
19683 esac
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19750
19751 library_names_spec=
19752 libname_spec='lib$name'
19753 soname_spec=
19754 shrext_cmds=".so"
19755 postinstall_cmds=
19756 postuninstall_cmds=
19757 finish_cmds=
19758 finish_eval=
19759 shlibpath_var=
19760 shlibpath_overrides_runpath=unknown
19761 version_type=none
19762 dynamic_linker="$host_os ld.so"
19763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19764 need_lib_prefix=unknown
19765 hardcode_into_libs=no
19766
19767 # when you set need_version to no, make sure it does not cause -set_version
19768 # flags to be left without arguments
19769 need_version=unknown
19770
19771 case $host_os in
19772 aix3*)
19773   version_type=linux
19774   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19775   shlibpath_var=LIBPATH
19776
19777   # AIX 3 has no versioning support, so we append a major version to the name.
19778   soname_spec='${libname}${release}${shared_ext}$major'
19779   ;;
19780
19781 aix[4-9]*)
19782   version_type=linux
19783   need_lib_prefix=no
19784   need_version=no
19785   hardcode_into_libs=yes
19786   if test "$host_cpu" = ia64; then
19787     # AIX 5 supports IA64
19788     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19789     shlibpath_var=LD_LIBRARY_PATH
19790   else
19791     # With GCC up to 2.95.x, collect2 would create an import file
19792     # for dependence libraries.  The import file would start with
19793     # the line `#! .'.  This would cause the generated library to
19794     # depend on `.', always an invalid library.  This was fixed in
19795     # development snapshots of GCC prior to 3.0.
19796     case $host_os in
19797       aix4 | aix4.[01] | aix4.[01].*)
19798       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19799            echo ' yes '
19800            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19801         :
19802       else
19803         can_build_shared=no
19804       fi
19805       ;;
19806     esac
19807     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19808     # soname into executable. Probably we can add versioning support to
19809     # collect2, so additional links can be useful in future.
19810     if test "$aix_use_runtimelinking" = yes; then
19811       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19812       # instead of lib<name>.a to let people know that these are not
19813       # typical AIX shared libraries.
19814       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19815     else
19816       # We preserve .a as extension for shared libraries through AIX4.2
19817       # and later when we are not doing run time linking.
19818       library_names_spec='${libname}${release}.a $libname.a'
19819       soname_spec='${libname}${release}${shared_ext}$major'
19820     fi
19821     shlibpath_var=LIBPATH
19822   fi
19823   ;;
19824
19825 amigaos*)
19826   case $host_cpu in
19827   powerpc)
19828     # Since July 2007 AmigaOS4 officially supports .so libraries.
19829     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19831     ;;
19832   m68k)
19833     library_names_spec='$libname.ixlibrary $libname.a'
19834     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19835     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'
19836     ;;
19837   esac
19838   ;;
19839
19840 beos*)
19841   library_names_spec='${libname}${shared_ext}'
19842   dynamic_linker="$host_os ld.so"
19843   shlibpath_var=LIBRARY_PATH
19844   ;;
19845
19846 bsdi[45]*)
19847   version_type=linux
19848   need_version=no
19849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19850   soname_spec='${libname}${release}${shared_ext}$major'
19851   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19852   shlibpath_var=LD_LIBRARY_PATH
19853   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19854   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19855   # the default ld.so.conf also contains /usr/contrib/lib and
19856   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19857   # libtool to hard-code these into programs
19858   ;;
19859
19860 cygwin* | mingw* | pw32* | cegcc*)
19861   version_type=windows
19862   shrext_cmds=".dll"
19863   need_version=no
19864   need_lib_prefix=no
19865
19866   case $GCC,$host_os in
19867   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19868     library_names_spec='$libname.dll.a'
19869     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19870     postinstall_cmds='base_file=`basename \${file}`~
19871       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19872       dldir=$destdir/`dirname \$dlpath`~
19873       test -d \$dldir || mkdir -p \$dldir~
19874       $install_prog $dir/$dlname \$dldir/$dlname~
19875       chmod a+x \$dldir/$dlname~
19876       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19877         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19878       fi'
19879     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19880       dlpath=$dir/\$dldll~
19881        $RM \$dlpath'
19882     shlibpath_overrides_runpath=yes
19883
19884     case $host_os in
19885     cygwin*)
19886       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19887       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19888
19889       ;;
19890     mingw* | cegcc*)
19891       # MinGW DLLs use traditional 'lib' prefix
19892       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19893       ;;
19894     pw32*)
19895       # pw32 DLLs use 'pw' prefix rather than 'lib'
19896       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19897       ;;
19898     esac
19899     ;;
19900
19901   *)
19902     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19903     ;;
19904   esac
19905   dynamic_linker='Win32 ld.exe'
19906   # FIXME: first we should search . and the directory the executable is in
19907   shlibpath_var=PATH
19908   ;;
19909
19910 darwin* | rhapsody*)
19911   dynamic_linker="$host_os dyld"
19912   version_type=darwin
19913   need_lib_prefix=no
19914   need_version=no
19915   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19916   soname_spec='${libname}${release}${major}$shared_ext'
19917   shlibpath_overrides_runpath=yes
19918   shlibpath_var=DYLD_LIBRARY_PATH
19919   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19920
19921   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19922   ;;
19923
19924 dgux*)
19925   version_type=linux
19926   need_lib_prefix=no
19927   need_version=no
19928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19929   soname_spec='${libname}${release}${shared_ext}$major'
19930   shlibpath_var=LD_LIBRARY_PATH
19931   ;;
19932
19933 freebsd1*)
19934   dynamic_linker=no
19935   ;;
19936
19937 freebsd* | dragonfly*)
19938   # DragonFly does not have aout.  When/if they implement a new
19939   # versioning mechanism, adjust this.
19940   if test -x /usr/bin/objformat; then
19941     objformat=`/usr/bin/objformat`
19942   else
19943     case $host_os in
19944     freebsd[123]*) objformat=aout ;;
19945     *) objformat=elf ;;
19946     esac
19947   fi
19948   version_type=freebsd-$objformat
19949   case $version_type in
19950     freebsd-elf*)
19951       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19952       need_version=no
19953       need_lib_prefix=no
19954       ;;
19955     freebsd-*)
19956       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19957       need_version=yes
19958       ;;
19959   esac
19960   shlibpath_var=LD_LIBRARY_PATH
19961   case $host_os in
19962   freebsd2*)
19963     shlibpath_overrides_runpath=yes
19964     ;;
19965   freebsd3.[01]* | freebsdelf3.[01]*)
19966     shlibpath_overrides_runpath=yes
19967     hardcode_into_libs=yes
19968     ;;
19969   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19970   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19971     shlibpath_overrides_runpath=no
19972     hardcode_into_libs=yes
19973     ;;
19974   *) # from 4.6 on, and DragonFly
19975     shlibpath_overrides_runpath=yes
19976     hardcode_into_libs=yes
19977     ;;
19978   esac
19979   ;;
19980
19981 gnu*)
19982   version_type=linux
19983   need_lib_prefix=no
19984   need_version=no
19985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19986   soname_spec='${libname}${release}${shared_ext}$major'
19987   shlibpath_var=LD_LIBRARY_PATH
19988   hardcode_into_libs=yes
19989   ;;
19990
19991 haiku*)
19992   version_type=linux
19993   need_lib_prefix=no
19994   need_version=no
19995   dynamic_linker="$host_os runtime_loader"
19996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19997   soname_spec='${libname}${release}${shared_ext}$major'
19998   shlibpath_var=LIBRARY_PATH
19999   shlibpath_overrides_runpath=yes
20000   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20001   hardcode_into_libs=yes
20002   ;;
20003
20004 hpux9* | hpux10* | hpux11*)
20005   # Give a soname corresponding to the major version so that dld.sl refuses to
20006   # link against other versions.
20007   version_type=sunos
20008   need_lib_prefix=no
20009   need_version=no
20010   case $host_cpu in
20011   ia64*)
20012     shrext_cmds='.so'
20013     hardcode_into_libs=yes
20014     dynamic_linker="$host_os dld.so"
20015     shlibpath_var=LD_LIBRARY_PATH
20016     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018     soname_spec='${libname}${release}${shared_ext}$major'
20019     if test "X$HPUX_IA64_MODE" = X32; then
20020       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20021     else
20022       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20023     fi
20024     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20025     ;;
20026   hppa*64*)
20027     shrext_cmds='.sl'
20028     hardcode_into_libs=yes
20029     dynamic_linker="$host_os dld.sl"
20030     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20031     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033     soname_spec='${libname}${release}${shared_ext}$major'
20034     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20035     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20036     ;;
20037   *)
20038     shrext_cmds='.sl'
20039     dynamic_linker="$host_os dld.sl"
20040     shlibpath_var=SHLIB_PATH
20041     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043     soname_spec='${libname}${release}${shared_ext}$major'
20044     ;;
20045   esac
20046   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20047   postinstall_cmds='chmod 555 $lib'
20048   # or fails outright, so override atomically:
20049   install_override_mode=555
20050   ;;
20051
20052 interix[3-9]*)
20053   version_type=linux
20054   need_lib_prefix=no
20055   need_version=no
20056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20057   soname_spec='${libname}${release}${shared_ext}$major'
20058   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20059   shlibpath_var=LD_LIBRARY_PATH
20060   shlibpath_overrides_runpath=no
20061   hardcode_into_libs=yes
20062   ;;
20063
20064 irix5* | irix6* | nonstopux*)
20065   case $host_os in
20066     nonstopux*) version_type=nonstopux ;;
20067     *)
20068         if test "$lt_cv_prog_gnu_ld" = yes; then
20069                 version_type=linux
20070         else
20071                 version_type=irix
20072         fi ;;
20073   esac
20074   need_lib_prefix=no
20075   need_version=no
20076   soname_spec='${libname}${release}${shared_ext}$major'
20077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20078   case $host_os in
20079   irix5* | nonstopux*)
20080     libsuff= shlibsuff=
20081     ;;
20082   *)
20083     case $LD in # libtool.m4 will add one of these switches to LD
20084     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20085       libsuff= shlibsuff= libmagic=32-bit;;
20086     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20087       libsuff=32 shlibsuff=N32 libmagic=N32;;
20088     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20089       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20090     *) libsuff= shlibsuff= libmagic=never-match;;
20091     esac
20092     ;;
20093   esac
20094   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20095   shlibpath_overrides_runpath=no
20096   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20097   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20098   hardcode_into_libs=yes
20099   ;;
20100
20101 # No shared lib support for Linux oldld, aout, or coff.
20102 linux*oldld* | linux*aout* | linux*coff*)
20103   dynamic_linker=no
20104   ;;
20105
20106 # This must be Linux ELF.
20107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20108   version_type=linux
20109   need_lib_prefix=no
20110   need_version=no
20111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20112   soname_spec='${libname}${release}${shared_ext}$major'
20113   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20114   shlibpath_var=LD_LIBRARY_PATH
20115   shlibpath_overrides_runpath=no
20116
20117   # Some binutils ld are patched to set DT_RUNPATH
20118   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20119   $as_echo_n "(cached) " >&6
20120 else
20121   lt_cv_shlibpath_overrides_runpath=no
20122     save_LDFLAGS=$LDFLAGS
20123     save_libdir=$libdir
20124     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20125          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20126     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h.  */
20128
20129 int
20130 main ()
20131 {
20132
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 if ac_fn_cxx_try_link "$LINENO"; then :
20138   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20139   lt_cv_shlibpath_overrides_runpath=yes
20140 fi
20141 fi
20142 rm -f core conftest.err conftest.$ac_objext \
20143     conftest$ac_exeext conftest.$ac_ext
20144     LDFLAGS=$save_LDFLAGS
20145     libdir=$save_libdir
20146
20147 fi
20148
20149   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20150
20151   # This implies no fast_install, which is unacceptable.
20152   # Some rework will be needed to allow for fast_install
20153   # before this can be enabled.
20154   hardcode_into_libs=yes
20155
20156   # Append ld.so.conf contents to the search path
20157   if test -f /etc/ld.so.conf; then
20158     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' ' '`
20159     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20160   fi
20161
20162   # We used to test for /lib/ld.so.1 and disable shared libraries on
20163   # powerpc, because MkLinux only supported shared libraries with the
20164   # GNU dynamic linker.  Since this was broken with cross compilers,
20165   # most powerpc-linux boxes support dynamic linking these days and
20166   # people can always --disable-shared, the test was removed, and we
20167   # assume the GNU/Linux dynamic linker is in use.
20168   dynamic_linker='GNU/Linux ld.so'
20169   ;;
20170
20171 netbsd*)
20172   version_type=sunos
20173   need_lib_prefix=no
20174   need_version=no
20175   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20177     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20178     dynamic_linker='NetBSD (a.out) ld.so'
20179   else
20180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20181     soname_spec='${libname}${release}${shared_ext}$major'
20182     dynamic_linker='NetBSD ld.elf_so'
20183   fi
20184   shlibpath_var=LD_LIBRARY_PATH
20185   shlibpath_overrides_runpath=yes
20186   hardcode_into_libs=yes
20187   ;;
20188
20189 newsos6)
20190   version_type=linux
20191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20192   shlibpath_var=LD_LIBRARY_PATH
20193   shlibpath_overrides_runpath=yes
20194   ;;
20195
20196 *nto* | *qnx*)
20197   version_type=qnx
20198   need_lib_prefix=no
20199   need_version=no
20200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20201   soname_spec='${libname}${release}${shared_ext}$major'
20202   shlibpath_var=LD_LIBRARY_PATH
20203   shlibpath_overrides_runpath=no
20204   hardcode_into_libs=yes
20205   dynamic_linker='ldqnx.so'
20206   ;;
20207
20208 openbsd*)
20209   version_type=sunos
20210   sys_lib_dlsearch_path_spec="/usr/lib"
20211   need_lib_prefix=no
20212   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20213   case $host_os in
20214     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20215     *)                          need_version=no  ;;
20216   esac
20217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20218   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20219   shlibpath_var=LD_LIBRARY_PATH
20220   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20221     case $host_os in
20222       openbsd2.[89] | openbsd2.[89].*)
20223         shlibpath_overrides_runpath=no
20224         ;;
20225       *)
20226         shlibpath_overrides_runpath=yes
20227         ;;
20228       esac
20229   else
20230     shlibpath_overrides_runpath=yes
20231   fi
20232   ;;
20233
20234 os2*)
20235   libname_spec='$name'
20236   shrext_cmds=".dll"
20237   need_lib_prefix=no
20238   library_names_spec='$libname${shared_ext} $libname.a'
20239   dynamic_linker='OS/2 ld.exe'
20240   shlibpath_var=LIBPATH
20241   ;;
20242
20243 osf3* | osf4* | osf5*)
20244   version_type=osf
20245   need_lib_prefix=no
20246   need_version=no
20247   soname_spec='${libname}${release}${shared_ext}$major'
20248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249   shlibpath_var=LD_LIBRARY_PATH
20250   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20251   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20252   ;;
20253
20254 rdos*)
20255   dynamic_linker=no
20256   ;;
20257
20258 solaris*)
20259   version_type=linux
20260   need_lib_prefix=no
20261   need_version=no
20262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20263   soname_spec='${libname}${release}${shared_ext}$major'
20264   shlibpath_var=LD_LIBRARY_PATH
20265   shlibpath_overrides_runpath=yes
20266   hardcode_into_libs=yes
20267   # ldd complains unless libraries are executable
20268   postinstall_cmds='chmod +x $lib'
20269   ;;
20270
20271 sunos4*)
20272   version_type=sunos
20273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20274   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20275   shlibpath_var=LD_LIBRARY_PATH
20276   shlibpath_overrides_runpath=yes
20277   if test "$with_gnu_ld" = yes; then
20278     need_lib_prefix=no
20279   fi
20280   need_version=yes
20281   ;;
20282
20283 sysv4 | sysv4.3*)
20284   version_type=linux
20285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286   soname_spec='${libname}${release}${shared_ext}$major'
20287   shlibpath_var=LD_LIBRARY_PATH
20288   case $host_vendor in
20289     sni)
20290       shlibpath_overrides_runpath=no
20291       need_lib_prefix=no
20292       runpath_var=LD_RUN_PATH
20293       ;;
20294     siemens)
20295       need_lib_prefix=no
20296       ;;
20297     motorola)
20298       need_lib_prefix=no
20299       need_version=no
20300       shlibpath_overrides_runpath=no
20301       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20302       ;;
20303   esac
20304   ;;
20305
20306 sysv4*MP*)
20307   if test -d /usr/nec ;then
20308     version_type=linux
20309     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20310     soname_spec='$libname${shared_ext}.$major'
20311     shlibpath_var=LD_LIBRARY_PATH
20312   fi
20313   ;;
20314
20315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20316   version_type=freebsd-elf
20317   need_lib_prefix=no
20318   need_version=no
20319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20320   soname_spec='${libname}${release}${shared_ext}$major'
20321   shlibpath_var=LD_LIBRARY_PATH
20322   shlibpath_overrides_runpath=yes
20323   hardcode_into_libs=yes
20324   if test "$with_gnu_ld" = yes; then
20325     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20326   else
20327     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20328     case $host_os in
20329       sco3.2v5*)
20330         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20331         ;;
20332     esac
20333   fi
20334   sys_lib_dlsearch_path_spec='/usr/lib'
20335   ;;
20336
20337 tpf*)
20338   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20339   version_type=linux
20340   need_lib_prefix=no
20341   need_version=no
20342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343   shlibpath_var=LD_LIBRARY_PATH
20344   shlibpath_overrides_runpath=no
20345   hardcode_into_libs=yes
20346   ;;
20347
20348 uts4*)
20349   version_type=linux
20350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20351   soname_spec='${libname}${release}${shared_ext}$major'
20352   shlibpath_var=LD_LIBRARY_PATH
20353   ;;
20354
20355 *)
20356   dynamic_linker=no
20357   ;;
20358 esac
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20360 $as_echo "$dynamic_linker" >&6; }
20361 test "$dynamic_linker" = no && can_build_shared=no
20362
20363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20364 if test "$GCC" = yes; then
20365   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20366 fi
20367
20368 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20369   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20370 fi
20371 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20372   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20373 fi
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20413 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20414 hardcode_action_CXX=
20415 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20416    test -n "$runpath_var_CXX" ||
20417    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20418
20419   # We can hardcode non-existent directories.
20420   if test "$hardcode_direct_CXX" != no &&
20421      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20422      # have to relink, otherwise we might link with an installed library
20423      # when we should be linking with a yet-to-be-installed one
20424      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20425      test "$hardcode_minus_L_CXX" != no; then
20426     # Linking always hardcodes the temporary library directory.
20427     hardcode_action_CXX=relink
20428   else
20429     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20430     hardcode_action_CXX=immediate
20431   fi
20432 else
20433   # We cannot hardcode anything, or else we can only hardcode existing
20434   # directories.
20435   hardcode_action_CXX=unsupported
20436 fi
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20438 $as_echo "$hardcode_action_CXX" >&6; }
20439
20440 if test "$hardcode_action_CXX" = relink ||
20441    test "$inherit_rpath_CXX" = yes; then
20442   # Fast installation is not supported
20443   enable_fast_install=no
20444 elif test "$shlibpath_overrides_runpath" = yes ||
20445      test "$enable_shared" = no; then
20446   # Fast installation is not necessary
20447   enable_fast_install=needless
20448 fi
20449
20450
20451
20452
20453
20454
20455
20456   fi # test -n "$compiler"
20457
20458   CC=$lt_save_CC
20459   LDCXX=$LD
20460   LD=$lt_save_LD
20461   GCC=$lt_save_GCC
20462   with_gnu_ld=$lt_save_with_gnu_ld
20463   lt_cv_path_LDCXX=$lt_cv_path_LD
20464   lt_cv_path_LD=$lt_save_path_LD
20465   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20466   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20467 fi # test "$_lt_caught_CXX_error" != yes
20468
20469 ac_ext=c
20470 ac_cpp='$CPP $CPPFLAGS'
20471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490 # Only expand once:
20491
20492
20493
20494
20495
20496 # Identify the assembler which will work hand-in-glove with the newly
20497 # built GCC, so that we can examine its features.  This is the assembler
20498 # which will be driven by the driver program.
20499 #
20500 # If build != host, and we aren't building gas in-tree, we identify a
20501 # build->target assembler and hope that it will have the same features
20502 # as the host->target assembler we'll be using.
20503 gcc_cv_gas_major_version=
20504 gcc_cv_gas_minor_version=
20505 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20506
20507 if test "${gcc_cv_as+set}" = set; then :
20508
20509 else
20510
20511 if test -x "$DEFAULT_ASSEMBLER"; then
20512         gcc_cv_as="$DEFAULT_ASSEMBLER"
20513 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20514      && test -f ../gas/Makefile \
20515      && test x$build = x$host; then
20516         gcc_cv_as=../gas/as-new$build_exeext
20517 elif test -x as$build_exeext; then
20518         # Build using assembler in the current directory.
20519         gcc_cv_as=./as$build_exeext
20520 elif test -x $AS_FOR_TARGET; then
20521         gcc_cv_as="$AS_FOR_TARGET"
20522 else
20523         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20524 set dummy $AS_FOR_TARGET; ac_word=$2
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20526 $as_echo_n "checking for $ac_word... " >&6; }
20527 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20528   $as_echo_n "(cached) " >&6
20529 else
20530   case $gcc_cv_as in
20531   [\\/]* | ?:[\\/]*)
20532   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20533   ;;
20534   *)
20535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20536 for as_dir in $PATH
20537 do
20538   IFS=$as_save_IFS
20539   test -z "$as_dir" && as_dir=.
20540     for ac_exec_ext in '' $ac_executable_extensions; do
20541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20542     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20544     break 2
20545   fi
20546 done
20547   done
20548 IFS=$as_save_IFS
20549
20550   ;;
20551 esac
20552 fi
20553 gcc_cv_as=$ac_cv_path_gcc_cv_as
20554 if test -n "$gcc_cv_as"; then
20555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20556 $as_echo "$gcc_cv_as" >&6; }
20557 else
20558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20559 $as_echo "no" >&6; }
20560 fi
20561
20562
20563 fi
20564 fi
20565
20566 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20567
20568 case "$ORIGINAL_AS_FOR_TARGET" in
20569   ./as | ./as$build_exeext) ;;
20570   *) ac_config_files="$ac_config_files as:exec-tool.in"
20571  ;;
20572 esac
20573
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20575 $as_echo_n "checking what assembler to use... " >&6; }
20576 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20577   # Single tree build which includes gas.  We want to prefer it
20578   # over whatever linker top-level may have detected, since
20579   # we'll use what we're building after installation anyway.
20580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20581 $as_echo "newly built gas" >&6; }
20582   in_tree_gas=yes
20583   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20584 for f in $gcc_cv_as_bfd_srcdir/configure \
20585          $gcc_cv_as_gas_srcdir/configure \
20586          $gcc_cv_as_gas_srcdir/configure.in \
20587          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20588   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20589   if test x$gcc_cv_gas_version != x; then
20590     break
20591   fi
20592 done
20593 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20594 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20595 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20596 case $gcc_cv_gas_patch_version in
20597   "") gcc_cv_gas_patch_version="0" ;;
20598 esac
20599 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20600                             + $gcc_cv_gas_minor_version \) \* 1000 \
20601                             + $gcc_cv_gas_patch_version`
20602
20603   in_tree_gas_is_elf=no
20604   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20605      || (grep 'obj_format = multi' ../gas/Makefile \
20606          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20607   then
20608     in_tree_gas_is_elf=yes
20609   fi
20610 else
20611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20612 $as_echo "$gcc_cv_as" >&6; }
20613   in_tree_gas=no
20614 fi
20615
20616 # Identify the linker which will work hand-in-glove with the newly
20617 # built GCC, so that we can examine its features.  This is the linker
20618 # which will be driven by the driver program.
20619 #
20620 # If build != host, and we aren't building gas in-tree, we identify a
20621 # build->target linker and hope that it will have the same features
20622 # as the host->target linker we'll be using.
20623 gcc_cv_gld_major_version=
20624 gcc_cv_gld_minor_version=
20625 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20626 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20627
20628 if test "${gcc_cv_ld+set}" = set; then :
20629
20630 else
20631
20632 if test -x "$DEFAULT_LINKER"; then
20633         gcc_cv_ld="$DEFAULT_LINKER"
20634 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20635      && test -f ../ld/Makefile \
20636      && test x$build = x$host; then
20637         gcc_cv_ld=../ld/ld-new$build_exeext
20638 elif test -x collect-ld$build_exeext; then
20639         # Build using linker in the current directory.
20640         gcc_cv_ld=./collect-ld$build_exeext
20641 elif test -x $LD_FOR_TARGET; then
20642         gcc_cv_ld="$LD_FOR_TARGET"
20643 else
20644         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20645 set dummy $LD_FOR_TARGET; ac_word=$2
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20647 $as_echo_n "checking for $ac_word... " >&6; }
20648 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20649   $as_echo_n "(cached) " >&6
20650 else
20651   case $gcc_cv_ld in
20652   [\\/]* | ?:[\\/]*)
20653   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20654   ;;
20655   *)
20656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20657 for as_dir in $PATH
20658 do
20659   IFS=$as_save_IFS
20660   test -z "$as_dir" && as_dir=.
20661     for ac_exec_ext in '' $ac_executable_extensions; do
20662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20663     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20665     break 2
20666   fi
20667 done
20668   done
20669 IFS=$as_save_IFS
20670
20671   ;;
20672 esac
20673 fi
20674 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20675 if test -n "$gcc_cv_ld"; then
20676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20677 $as_echo "$gcc_cv_ld" >&6; }
20678 else
20679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20680 $as_echo "no" >&6; }
20681 fi
20682
20683
20684 fi
20685 fi
20686
20687 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20688 PLUGIN_LD=`basename $gcc_cv_ld`
20689
20690 # Check whether --with-plugin-ld was given.
20691 if test "${with_plugin_ld+set}" = set; then :
20692   withval=$with_plugin_ld; if test x"$withval" != x; then
20693    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20694    PLUGIN_LD="$withval"
20695  fi
20696 fi
20697
20698
20699
20700 cat >>confdefs.h <<_ACEOF
20701 #define PLUGIN_LD "$PLUGIN_LD"
20702 _ACEOF
20703
20704
20705 # Check to see if we are using gold instead of ld
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20707 $as_echo_n "checking whether we are using gold... " >&6; }
20708 ld_is_gold=no
20709 if test x$gcc_cv_ld != x; then
20710   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20711      | grep "GNU gold" > /dev/null; then
20712     ld_is_gold=yes
20713   fi
20714 fi
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20716 $as_echo "$ld_is_gold" >&6; }
20717
20718 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20719
20720 case "$ORIGINAL_LD_FOR_TARGET" in
20721   ./collect-ld | ./collect-ld$build_exeext) ;;
20722   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20723  ;;
20724 esac
20725
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20727 $as_echo_n "checking what linker to use... " >&6; }
20728 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20729         # Single tree build which includes ld.  We want to prefer it
20730         # over whatever linker top-level may have detected, since
20731         # we'll use what we're building after installation anyway.
20732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20733 $as_echo "newly built ld" >&6; }
20734         in_tree_ld=yes
20735         in_tree_ld_is_elf=no
20736         if (grep 'EMUL = .*elf' ../ld/Makefile \
20737             || grep 'EMUL = .*linux' ../ld/Makefile \
20738             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20739           in_tree_ld_is_elf=yes
20740         fi
20741         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
20742         do
20743                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20744                 if test x$gcc_cv_gld_version != x; then
20745                         break
20746                 fi
20747         done
20748         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20749         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20750 else
20751         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20752 $as_echo "$gcc_cv_ld" >&6; }
20753         in_tree_ld=no
20754 fi
20755
20756 # Figure out what nm we will be using.
20757 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20758 if test "${gcc_cv_nm+set}" = set; then :
20759
20760 else
20761
20762 if test -f $gcc_cv_binutils_srcdir/configure.in \
20763      && test -f ../binutils/Makefile \
20764      && test x$build = x$host; then
20765         gcc_cv_nm=../binutils/nm-new$build_exeext
20766 elif test -x nm$build_exeext; then
20767         gcc_cv_nm=./nm$build_exeext
20768 elif test -x $NM_FOR_TARGET; then
20769         gcc_cv_nm="$NM_FOR_TARGET"
20770 else
20771         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20772 set dummy $NM_FOR_TARGET; ac_word=$2
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20774 $as_echo_n "checking for $ac_word... " >&6; }
20775 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20776   $as_echo_n "(cached) " >&6
20777 else
20778   case $gcc_cv_nm in
20779   [\\/]* | ?:[\\/]*)
20780   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20781   ;;
20782   *)
20783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20784 for as_dir in $PATH
20785 do
20786   IFS=$as_save_IFS
20787   test -z "$as_dir" && as_dir=.
20788     for ac_exec_ext in '' $ac_executable_extensions; do
20789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20790     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20792     break 2
20793   fi
20794 done
20795   done
20796 IFS=$as_save_IFS
20797
20798   ;;
20799 esac
20800 fi
20801 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20802 if test -n "$gcc_cv_nm"; then
20803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20804 $as_echo "$gcc_cv_nm" >&6; }
20805 else
20806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20807 $as_echo "no" >&6; }
20808 fi
20809
20810
20811 fi
20812 fi
20813
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20815 $as_echo_n "checking what nm to use... " >&6; }
20816 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20817         # Single tree build which includes binutils.
20818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20819 $as_echo "newly built nm" >&6; }
20820         in_tree_nm=yes
20821 else
20822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20823 $as_echo "$gcc_cv_nm" >&6; }
20824         in_tree_nm=no
20825 fi
20826
20827 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20828
20829 case "$ORIGINAL_NM_FOR_TARGET" in
20830   ./nm | ./nm$build_exeext) ;;
20831   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20832  ;;
20833 esac
20834
20835
20836 # Figure out what objdump we will be using.
20837 if test "${gcc_cv_objdump+set}" = set; then :
20838
20839 else
20840
20841 if test -f $gcc_cv_binutils_srcdir/configure.in \
20842      && test -f ../binutils/Makefile \
20843      && test x$build = x$host; then
20844         # Single tree build which includes binutils.
20845         gcc_cv_objdump=../binutils/objdump$build_exeext
20846 elif test -x objdump$build_exeext; then
20847         gcc_cv_objdump=./objdump$build_exeext
20848 elif test -x $OBJDUMP_FOR_TARGET; then
20849         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20850 else
20851         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20852 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20854 $as_echo_n "checking for $ac_word... " >&6; }
20855 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20856   $as_echo_n "(cached) " >&6
20857 else
20858   case $gcc_cv_objdump in
20859   [\\/]* | ?:[\\/]*)
20860   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20861   ;;
20862   *)
20863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20864 for as_dir in $PATH
20865 do
20866   IFS=$as_save_IFS
20867   test -z "$as_dir" && as_dir=.
20868     for ac_exec_ext in '' $ac_executable_extensions; do
20869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20870     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20872     break 2
20873   fi
20874 done
20875   done
20876 IFS=$as_save_IFS
20877
20878   ;;
20879 esac
20880 fi
20881 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20882 if test -n "$gcc_cv_objdump"; then
20883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20884 $as_echo "$gcc_cv_objdump" >&6; }
20885 else
20886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20887 $as_echo "no" >&6; }
20888 fi
20889
20890
20891 fi
20892 fi
20893
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20895 $as_echo_n "checking what objdump to use... " >&6; }
20896 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20897         # Single tree build which includes binutils.
20898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20899 $as_echo "newly built objdump" >&6; }
20900 elif test x$gcc_cv_objdump = x; then
20901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20902 $as_echo "not found" >&6; }
20903 else
20904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20905 $as_echo "$gcc_cv_objdump" >&6; }
20906 fi
20907
20908 # Figure out what readelf we will be using.
20909 if test "${gcc_cv_readelf+set}" = set; then :
20910
20911 else
20912
20913 if test -f $gcc_cv_binutils_srcdir/configure.in \
20914      && test -f ../binutils/Makefile \
20915      && test x$build = x$host; then
20916         # Single tree build which includes binutils.
20917         gcc_cv_readelf=../binutils/readelf$build_exeext
20918 elif test -x readelf$build_exeext; then
20919         gcc_cv_readelf=./readelf$build_exeext
20920 else
20921         # Extract the first word of "readelf", so it can be a program name with args.
20922 set dummy readelf; ac_word=$2
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20924 $as_echo_n "checking for $ac_word... " >&6; }
20925 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20926   $as_echo_n "(cached) " >&6
20927 else
20928   case $gcc_cv_readelf in
20929   [\\/]* | ?:[\\/]*)
20930   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20931   ;;
20932   *)
20933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20934 for as_dir in $PATH
20935 do
20936   IFS=$as_save_IFS
20937   test -z "$as_dir" && as_dir=.
20938     for ac_exec_ext in '' $ac_executable_extensions; do
20939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20940     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20942     break 2
20943   fi
20944 done
20945   done
20946 IFS=$as_save_IFS
20947
20948   ;;
20949 esac
20950 fi
20951 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20952 if test -n "$gcc_cv_readelf"; then
20953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20954 $as_echo "$gcc_cv_readelf" >&6; }
20955 else
20956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20957 $as_echo "no" >&6; }
20958 fi
20959
20960
20961 fi
20962 fi
20963
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20965 $as_echo_n "checking what readelf to use... " >&6; }
20966 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20967         # Single tree build which includes binutils.
20968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20969 $as_echo "newly built readelf" >&6; }
20970 elif test x$gcc_cv_readelf = x; then
20971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20972 $as_echo "not found" >&6; }
20973 else
20974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20975 $as_echo "$gcc_cv_readelf" >&6; }
20976 fi
20977
20978 # Figure out what assembler alignment features are present.
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20980 $as_echo_n "checking assembler flags... " >&6; }
20981 if test "${gcc_cv_as_flags+set}" = set; then :
20982   $as_echo_n "(cached) " >&6
20983 else
20984    case "$target" in
20985   i[34567]86-*-linux*)
20986         gcc_cv_as_flags="--32"
20987     ;;
20988   *)
20989     gcc_cv_as_flags=" "
20990     ;;
20991   esac
20992 fi
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20994 $as_echo "$gcc_cv_as_flags" >&6; }
20995
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20997 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20998 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20999   $as_echo_n "(cached) " >&6
21000 else
21001   gcc_cv_as_balign_and_p2align=no
21002     if test $in_tree_gas = yes; then
21003     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21004   then gcc_cv_as_balign_and_p2align=yes
21005 fi
21006   elif test x$gcc_cv_as != x; then
21007     echo '.balign 4
21008 .p2align 2' > conftest.s
21009     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21010   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21011   (eval $ac_try) 2>&5
21012   ac_status=$?
21013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21014   test $ac_status = 0; }; }
21015     then
21016         gcc_cv_as_balign_and_p2align=yes
21017     else
21018       echo "configure: failed program was" >&5
21019       cat conftest.s >&5
21020     fi
21021     rm -f conftest.o conftest.s
21022   fi
21023 fi
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21025 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21026 if test $gcc_cv_as_balign_and_p2align = yes; then
21027
21028 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21029
21030 fi
21031
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21033 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21034 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21035   $as_echo_n "(cached) " >&6
21036 else
21037   gcc_cv_as_max_skip_p2align=no
21038     if test $in_tree_gas = yes; then
21039     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21040   then gcc_cv_as_max_skip_p2align=yes
21041 fi
21042   elif test x$gcc_cv_as != x; then
21043     echo '.p2align 4,,7' > conftest.s
21044     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21045   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21046   (eval $ac_try) 2>&5
21047   ac_status=$?
21048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21049   test $ac_status = 0; }; }
21050     then
21051         gcc_cv_as_max_skip_p2align=yes
21052     else
21053       echo "configure: failed program was" >&5
21054       cat conftest.s >&5
21055     fi
21056     rm -f conftest.o conftest.s
21057   fi
21058 fi
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21060 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21061 if test $gcc_cv_as_max_skip_p2align = yes; then
21062
21063 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21064
21065 fi
21066
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21068 $as_echo_n "checking assembler for .literal16... " >&6; }
21069 if test "${gcc_cv_as_literal16+set}" = set; then :
21070   $as_echo_n "(cached) " >&6
21071 else
21072   gcc_cv_as_literal16=no
21073     if test $in_tree_gas = yes; then
21074     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21075   then gcc_cv_as_literal16=yes
21076 fi
21077   elif test x$gcc_cv_as != x; then
21078     echo '.literal16' > conftest.s
21079     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21080   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21081   (eval $ac_try) 2>&5
21082   ac_status=$?
21083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21084   test $ac_status = 0; }; }
21085     then
21086         gcc_cv_as_literal16=yes
21087     else
21088       echo "configure: failed program was" >&5
21089       cat conftest.s >&5
21090     fi
21091     rm -f conftest.o conftest.s
21092   fi
21093 fi
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21095 $as_echo "$gcc_cv_as_literal16" >&6; }
21096 if test $gcc_cv_as_literal16 = yes; then
21097
21098 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21099
21100 fi
21101
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21103 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21104 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21105   $as_echo_n "(cached) " >&6
21106 else
21107   gcc_cv_as_subsection_m1=no
21108     if test $in_tree_gas = yes; then
21109     if test $in_tree_gas_is_elf = yes \
21110   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21111   then gcc_cv_as_subsection_m1=yes
21112 fi
21113   elif test x$gcc_cv_as != x; then
21114     echo 'conftest_label1: .word 0
21115 .subsection -1
21116 conftest_label2: .word 0
21117 .previous' > conftest.s
21118     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21119   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21120   (eval $ac_try) 2>&5
21121   ac_status=$?
21122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21123   test $ac_status = 0; }; }
21124     then
21125         if test x$gcc_cv_nm != x; then
21126     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21127     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21128     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21129     then :
21130     else gcc_cv_as_subsection_m1=yes
21131     fi
21132     rm -f conftest.nm1 conftest.nm2
21133   fi
21134     else
21135       echo "configure: failed program was" >&5
21136       cat conftest.s >&5
21137     fi
21138     rm -f conftest.o conftest.s
21139   fi
21140 fi
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21142 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21143 if test $gcc_cv_as_subsection_m1 = yes; then
21144
21145 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21146
21147 fi
21148
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21150 $as_echo_n "checking assembler for .weak... " >&6; }
21151 if test "${gcc_cv_as_weak+set}" = set; then :
21152   $as_echo_n "(cached) " >&6
21153 else
21154   gcc_cv_as_weak=no
21155     if test $in_tree_gas = yes; then
21156     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21157   then gcc_cv_as_weak=yes
21158 fi
21159   elif test x$gcc_cv_as != x; then
21160     echo '      .weak foobar' > conftest.s
21161     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21162   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21163   (eval $ac_try) 2>&5
21164   ac_status=$?
21165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21166   test $ac_status = 0; }; }
21167     then
21168         gcc_cv_as_weak=yes
21169     else
21170       echo "configure: failed program was" >&5
21171       cat conftest.s >&5
21172     fi
21173     rm -f conftest.o conftest.s
21174   fi
21175 fi
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21177 $as_echo "$gcc_cv_as_weak" >&6; }
21178 if test $gcc_cv_as_weak = yes; then
21179
21180 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21181
21182 fi
21183
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21185 $as_echo_n "checking assembler for .weakref... " >&6; }
21186 if test "${gcc_cv_as_weakref+set}" = set; then :
21187   $as_echo_n "(cached) " >&6
21188 else
21189   gcc_cv_as_weakref=no
21190     if test $in_tree_gas = yes; then
21191     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21192   then gcc_cv_as_weakref=yes
21193 fi
21194   elif test x$gcc_cv_as != x; then
21195     echo '      .weakref foobar, barfnot' > conftest.s
21196     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21197   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21198   (eval $ac_try) 2>&5
21199   ac_status=$?
21200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21201   test $ac_status = 0; }; }
21202     then
21203         gcc_cv_as_weakref=yes
21204     else
21205       echo "configure: failed program was" >&5
21206       cat conftest.s >&5
21207     fi
21208     rm -f conftest.o conftest.s
21209   fi
21210 fi
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21212 $as_echo "$gcc_cv_as_weakref" >&6; }
21213 if test $gcc_cv_as_weakref = yes; then
21214
21215 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21216
21217 fi
21218
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21220 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21221 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21222   $as_echo_n "(cached) " >&6
21223 else
21224   gcc_cv_as_nsubspa_comdat=no
21225     if test $in_tree_gas = yes; then
21226     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21227   then gcc_cv_as_nsubspa_comdat=yes
21228 fi
21229   elif test x$gcc_cv_as != x; then
21230     echo '      .SPACE $TEXT$
21231         .NSUBSPA $CODE$,COMDAT' > conftest.s
21232     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21233   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21234   (eval $ac_try) 2>&5
21235   ac_status=$?
21236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21237   test $ac_status = 0; }; }
21238     then
21239         gcc_cv_as_nsubspa_comdat=yes
21240     else
21241       echo "configure: failed program was" >&5
21242       cat conftest.s >&5
21243     fi
21244     rm -f conftest.o conftest.s
21245   fi
21246 fi
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21248 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21249 if test $gcc_cv_as_nsubspa_comdat = yes; then
21250
21251 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21252
21253 fi
21254
21255 # .hidden needs to be supported in both the assembler and the linker,
21256 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21257 # This is irritatingly difficult to feature test for; we have to check the
21258 # date string after the version number.  If we've got an in-tree
21259 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21260 # to be safe.
21261 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21263 $as_echo_n "checking assembler for .hidden... " >&6; }
21264 if test "${gcc_cv_as_hidden+set}" = set; then :
21265   $as_echo_n "(cached) " >&6
21266 else
21267   gcc_cv_as_hidden=no
21268     if test $in_tree_gas = yes; then
21269     if test $in_tree_gas_is_elf = yes \
21270   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21271   then gcc_cv_as_hidden=yes
21272 fi
21273   elif test x$gcc_cv_as != x; then
21274     echo '      .hidden foobar
21275 foobar:' > conftest.s
21276     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21277   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21278   (eval $ac_try) 2>&5
21279   ac_status=$?
21280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21281   test $ac_status = 0; }; }
21282     then
21283
21284 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21285 # STV_HIDDEN, so disable .hidden support if so.
21286 case "${target}" in
21287   i?86-*-solaris2*)
21288     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21289       cat > conftest.s <<EOF
21290 .globl hidden
21291         .hidden hidden
21292 hidden:
21293 .globl default
21294         .set    default,hidden
21295 EOF
21296       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21297         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21298         grep '\.hidden default' > /dev/null; then
21299         gcc_cv_as_hidden=no
21300       else
21301         gcc_cv_as_hidden=yes
21302       fi
21303     else
21304       # Assume bug is present if objdump is missing.
21305       gcc_cv_as_hidden=no
21306     fi
21307     ;;
21308   *)
21309     gcc_cv_as_hidden=yes
21310     ;;
21311 esac
21312     else
21313       echo "configure: failed program was" >&5
21314       cat conftest.s >&5
21315     fi
21316     rm -f conftest.o conftest.s
21317   fi
21318 fi
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21320 $as_echo "$gcc_cv_as_hidden" >&6; }
21321
21322
21323 if test $in_tree_ld != yes ; then
21324   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21325   if test x"$ld_is_gold" = xyes; then
21326     gcc_cv_ld_hidden=yes
21327   elif echo "$ld_ver" | grep GNU > /dev/null; then
21328     ld_vers=`echo $ld_ver | sed -n \
21329         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21330     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'`
21331     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21332     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21333     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21334   else
21335     case "${target}" in
21336       *-*-solaris2*)
21337         #
21338         # Solaris 2 ld -V output looks like this for a regular version:
21339         #
21340         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21341         #
21342         # but test versions add stuff at the end:
21343         #
21344         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21345         #
21346         ld_ver=`$gcc_cv_ld -V 2>&1`
21347         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21348           ld_vers=`echo $ld_ver | sed -n \
21349             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21350           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21351           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21352         fi
21353         ;;
21354     esac
21355   fi
21356 fi
21357
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21359 $as_echo_n "checking linker for .hidden support... " >&6; }
21360 if test "${gcc_cv_ld_hidden+set}" = set; then :
21361   $as_echo_n "(cached) " >&6
21362 else
21363   if test $in_tree_ld = yes ; then
21364   gcc_cv_ld_hidden=no
21365   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 \
21366      && test $in_tree_ld_is_elf = yes; then
21367      gcc_cv_ld_hidden=yes
21368   fi
21369 else
21370   gcc_cv_ld_hidden=yes
21371   if echo "$ld_ver" | grep GNU > /dev/null; then
21372     if test 0"$ld_date" -lt 20020404; then
21373       if test -n "$ld_date"; then
21374         # If there was date string, but was earlier than 2002-04-04, fail
21375         gcc_cv_ld_hidden=no
21376       elif test -z "$ld_vers"; then
21377         # If there was no date string nor ld version number, something is wrong
21378         gcc_cv_ld_hidden=no
21379       else
21380         test -z "$ld_vers_patch" && ld_vers_patch=0
21381         if test "$ld_vers_major" -lt 2; then
21382           gcc_cv_ld_hidden=no
21383         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21384           gcc_cv_ld_hidden="no"
21385         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21386           gcc_cv_ld_hidden=no
21387         fi
21388       fi
21389     fi
21390   else
21391     case "${target}" in
21392       hppa64*-*-hpux* | ia64*-*-hpux*)
21393         gcc_cv_ld_hidden=yes
21394         ;;
21395       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21396         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21397         # .symbolic was only added in Solaris 9 12/02.
21398         gcc_cv_ld_hidden=yes
21399         ;;
21400       *)
21401         gcc_cv_ld_hidden=no
21402         ;;
21403     esac
21404   fi
21405 fi
21406 fi
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21408 $as_echo "$gcc_cv_ld_hidden" >&6; }
21409 libgcc_visibility=no
21410
21411
21412 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21413   libgcc_visibility=yes
21414
21415 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21416
21417 fi
21418
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21420 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21421 gcc_cv_ld_ro_rw_mix=unknown
21422 if test $in_tree_ld = yes ; then
21423   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 \
21424      && test $in_tree_ld_is_elf = yes; then
21425     gcc_cv_ld_ro_rw_mix=read-write
21426   fi
21427 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21428   echo '.section myfoosect, "a"' > conftest1.s
21429   echo '.section myfoosect, "aw"' > conftest2.s
21430   echo '.byte 1' >> conftest2.s
21431   echo '.section myfoosect, "a"' > conftest3.s
21432   echo '.byte 0' >> conftest3.s
21433   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21434      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21435      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21436      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21437         conftest2.o conftest3.o > /dev/null 2>&1; then
21438     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21439                          | sed -e '/myfoosect/!d' -e N`
21440     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21441       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21442         gcc_cv_ld_ro_rw_mix=read-only
21443       else
21444         gcc_cv_ld_ro_rw_mix=read-write
21445       fi
21446     fi
21447   fi
21448   rm -f conftest.* conftest[123].*
21449 fi
21450 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21451
21452 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21453
21454 fi
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21456 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21457
21458 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21460 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21461 if test "${gcc_cv_as_leb128+set}" = set; then :
21462   $as_echo_n "(cached) " >&6
21463 else
21464   gcc_cv_as_leb128=no
21465     if test $in_tree_gas = yes; then
21466     if test $in_tree_gas_is_elf = yes \
21467   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21468   then gcc_cv_as_leb128=yes
21469 fi
21470   elif test x$gcc_cv_as != x; then
21471     echo '      .data
21472         .uleb128 L2 - L1
21473 L1:
21474         .uleb128 1280
21475         .sleb128 -1010
21476 L2:' > conftest.s
21477     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -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         # GAS versions before 2.11 do not support uleb128,
21485   # despite appearing to.
21486   # ??? There exists an elf-specific test that will crash
21487   # the assembler.  Perhaps it's better to figure out whether
21488   # arbitrary sections are supported and try the test.
21489   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21490   if echo "$as_ver" | grep GNU > /dev/null; then
21491     as_vers=`echo $as_ver | sed -n \
21492         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21493     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21494     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21495     if test $as_major -eq 2 && test $as_minor -lt 11
21496     then :
21497     else gcc_cv_as_leb128=yes
21498     fi
21499   fi
21500     else
21501       echo "configure: failed program was" >&5
21502       cat conftest.s >&5
21503     fi
21504     rm -f conftest.o conftest.s
21505   fi
21506 fi
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21508 $as_echo "$gcc_cv_as_leb128" >&6; }
21509 if test $gcc_cv_as_leb128 = yes; then
21510
21511 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21512
21513 fi
21514
21515 # Check if we have assembler support for unwind directives.
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21517 $as_echo_n "checking assembler for cfi directives... " >&6; }
21518 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21519   $as_echo_n "(cached) " >&6
21520 else
21521   gcc_cv_as_cfi_directive=no
21522   if test x$gcc_cv_as != x; then
21523     echo '      .text
21524         .cfi_startproc
21525         .cfi_offset 0, 0
21526         .cfi_same_value 1
21527         .cfi_def_cfa 1, 2
21528         .cfi_escape 1, 2, 3, 4, 5
21529         .cfi_endproc' > conftest.s
21530     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21531   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21532   (eval $ac_try) 2>&5
21533   ac_status=$?
21534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21535   test $ac_status = 0; }; }
21536     then
21537         case "$target" in
21538   *-*-solaris*)
21539     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21540     # read-only and read-write sections, we need to make sure that the
21541     # assembler used emits read-write .eh_frame sections.
21542     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21543       if test "x$gcc_cv_objdump" != x; then
21544         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21545                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21546           gcc_cv_as_cfi_directive=no
21547         else
21548           case "$target" in
21549             i?86-*-solaris2.1[0-9]*)
21550               # On Solaris/x86, make sure that GCC and gas agree on using
21551               # read-only .eh_frame sections for 64-bit.
21552               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21553                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21554                         sed -e /.eh_frame/!d -e N | \
21555                         grep READONLY > /dev/null; then
21556                 gcc_cv_as_cfi_directive=yes
21557               else
21558                 gcc_cv_as_cfi_directive=no
21559               fi
21560               ;;
21561             *)
21562               gcc_cv_as_cfi_directive=yes
21563               ;;
21564           esac
21565         fi
21566       else
21567         # no objdump, err on the side of caution
21568         gcc_cv_as_cfi_directive=no
21569       fi
21570     else
21571       gcc_cv_as_cfi_directive=yes
21572     fi
21573     ;;
21574   *-*-*)
21575     gcc_cv_as_cfi_directive=yes
21576     ;;
21577 esac
21578     else
21579       echo "configure: failed program was" >&5
21580       cat conftest.s >&5
21581     fi
21582     rm -f conftest.o conftest.s
21583   fi
21584 fi
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21586 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21587
21588 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21590 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21591 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21592   $as_echo_n "(cached) " >&6
21593 else
21594   gcc_cv_as_cfi_advance_working=no
21595   if test x$gcc_cv_as != x; then
21596     echo '      .text
21597         .cfi_startproc
21598         .cfi_adjust_cfa_offset 64
21599         .skip 75040, 0
21600         .cfi_adjust_cfa_offset 128
21601         .cfi_endproc' > conftest.s
21602     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21603   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21604   (eval $ac_try) 2>&5
21605   ac_status=$?
21606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21607   test $ac_status = 0; }; }
21608     then
21609
21610 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21611     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
21612    gcc_cv_as_cfi_advance_working=yes
21613 fi
21614
21615     else
21616       echo "configure: failed program was" >&5
21617       cat conftest.s >&5
21618     fi
21619     rm -f conftest.o conftest.s
21620   fi
21621 fi
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21623 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21624
21625 else
21626   # no readelf, err on the side of caution
21627   gcc_cv_as_cfi_advance_working=no
21628 fi
21629
21630 cat >>confdefs.h <<_ACEOF
21631 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21632        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21633 _ACEOF
21634
21635
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21637 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21638 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21639   $as_echo_n "(cached) " >&6
21640 else
21641   gcc_cv_as_cfi_personality_directive=no
21642   if test x$gcc_cv_as != x; then
21643     echo '      .text
21644         .cfi_startproc
21645         .cfi_personality 0, symbol
21646         .cfi_endproc' > conftest.s
21647     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21648   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21649   (eval $ac_try) 2>&5
21650   ac_status=$?
21651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21652   test $ac_status = 0; }; }
21653     then
21654         gcc_cv_as_cfi_personality_directive=yes
21655     else
21656       echo "configure: failed program was" >&5
21657       cat conftest.s >&5
21658     fi
21659     rm -f conftest.o conftest.s
21660   fi
21661 fi
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21663 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21664
21665
21666 cat >>confdefs.h <<_ACEOF
21667 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21668     then echo 1; else echo 0; fi`
21669 _ACEOF
21670
21671
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21673 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21674 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21675   $as_echo_n "(cached) " >&6
21676 else
21677   gcc_cv_as_cfi_sections_directive=no
21678   if test x$gcc_cv_as != x; then
21679     echo '      .text
21680         .cfi_sections .debug_frame, .eh_frame
21681         .cfi_startproc
21682         .cfi_endproc' > conftest.s
21683     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21684   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21685   (eval $ac_try) 2>&5
21686   ac_status=$?
21687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21688   test $ac_status = 0; }; }
21689     then
21690         gcc_cv_as_cfi_sections_directive=yes
21691     else
21692       echo "configure: failed program was" >&5
21693       cat conftest.s >&5
21694     fi
21695     rm -f conftest.o conftest.s
21696   fi
21697 fi
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21699 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21700
21701
21702 cat >>confdefs.h <<_ACEOF
21703 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21704     then echo 1; else echo 0; fi`
21705 _ACEOF
21706
21707
21708 # GAS versions up to and including 2.11.0 may mis-optimize
21709 # .eh_frame data.
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21711 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21712 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21713   $as_echo_n "(cached) " >&6
21714 else
21715   gcc_cv_as_eh_frame=no
21716     if test $in_tree_gas = yes; then
21717     if test $in_tree_gas_is_elf = yes \
21718   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21719   then gcc_cv_as_eh_frame=yes
21720 fi
21721   elif test x$gcc_cv_as != x; then
21722     echo '      .text
21723 .LFB1:
21724         .4byte  0
21725 .L1:
21726         .4byte  0
21727 .LFE1:
21728         .section        .eh_frame,"aw",@progbits
21729 __FRAME_BEGIN__:
21730         .4byte  .LECIE1-.LSCIE1
21731 .LSCIE1:
21732         .4byte  0x0
21733         .byte   0x1
21734         .ascii "z\0"
21735         .byte   0x1
21736         .byte   0x78
21737         .byte   0x1a
21738         .byte   0x0
21739         .byte   0x4
21740         .4byte  1
21741         .p2align 1
21742 .LECIE1:
21743 .LSFDE1:
21744         .4byte  .LEFDE1-.LASFDE1
21745 .LASFDE1:
21746         .4byte  .LASFDE1-__FRAME_BEGIN__
21747         .4byte  .LFB1
21748         .4byte  .LFE1-.LFB1
21749         .byte   0x4
21750         .4byte  .LFE1-.LFB1
21751         .byte   0x4
21752         .4byte  .L1-.LFB1
21753 .LEFDE1:' > conftest.s
21754     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21755   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21756   (eval $ac_try) 2>&5
21757   ac_status=$?
21758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21759   test $ac_status = 0; }; }
21760     then
21761           cat > conftest.lit <<EOF
21762  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21763  0010 01000000 12000000 18000000 00000000  ................
21764  0020 08000000 04080000 0044               .........D      
21765 EOF
21766 cat > conftest.big <<EOF
21767  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21768  0010 00000001 00000012 00000018 00000000  ................
21769  0020 00000008 04000000 0844               .........D      
21770 EOF
21771   # If the assembler didn't choke, and we can objdump,
21772   # and we got the correct data, then succeed.
21773   # The text in the here-document typically retains its unix-style line
21774   # endings, while the output of objdump will use host line endings.
21775   # Therefore, use diff -b for the comparisons.
21776   if test x$gcc_cv_objdump != x \
21777   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21778      | tail -3 > conftest.got \
21779   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21780     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21781   then
21782     gcc_cv_as_eh_frame=yes
21783   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21784   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21785   (eval $ac_try) 2>&5
21786   ac_status=$?
21787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21788   test $ac_status = 0; }; }; then
21789     gcc_cv_as_eh_frame=buggy
21790   else
21791     # Uh oh, what do we do now?
21792     gcc_cv_as_eh_frame=no
21793   fi
21794     else
21795       echo "configure: failed program was" >&5
21796       cat conftest.s >&5
21797     fi
21798     rm -f conftest.o conftest.s
21799   fi
21800 fi
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21802 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21803
21804
21805 if test $gcc_cv_as_eh_frame = buggy; then
21806
21807 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21808
21809 fi
21810
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21812 $as_echo_n "checking assembler for section merging support... " >&6; }
21813 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21814   $as_echo_n "(cached) " >&6
21815 else
21816   gcc_cv_as_shf_merge=no
21817     if test $in_tree_gas = yes; then
21818     if test $in_tree_gas_is_elf = yes \
21819   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21820   then gcc_cv_as_shf_merge=yes
21821 fi
21822   elif test x$gcc_cv_as != x; then
21823     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21824     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21825   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21826   (eval $ac_try) 2>&5
21827   ac_status=$?
21828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21829   test $ac_status = 0; }; }
21830     then
21831         gcc_cv_as_shf_merge=yes
21832     else
21833       echo "configure: failed program was" >&5
21834       cat conftest.s >&5
21835     fi
21836     rm -f conftest.o conftest.s
21837   fi
21838 fi
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21840 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21841
21842 if test $gcc_cv_as_shf_merge = no; then
21843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21844 $as_echo_n "checking assembler for section merging support... " >&6; }
21845 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21846   $as_echo_n "(cached) " >&6
21847 else
21848   gcc_cv_as_shf_merge=no
21849     if test $in_tree_gas = yes; then
21850     if test $in_tree_gas_is_elf = yes \
21851   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21852   then gcc_cv_as_shf_merge=yes
21853 fi
21854   elif test x$gcc_cv_as != x; then
21855     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21856     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21857   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21858   (eval $ac_try) 2>&5
21859   ac_status=$?
21860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21861   test $ac_status = 0; }; }
21862     then
21863         gcc_cv_as_shf_merge=yes
21864     else
21865       echo "configure: failed program was" >&5
21866       cat conftest.s >&5
21867     fi
21868     rm -f conftest.o conftest.s
21869   fi
21870 fi
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21872 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21873
21874 fi
21875
21876 cat >>confdefs.h <<_ACEOF
21877 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21878 _ACEOF
21879
21880
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21882 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21883 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21884   $as_echo_n "(cached) " >&6
21885 else
21886   gcc_cv_as_comdat_group=no
21887     if test $in_tree_gas = yes; then
21888     if test $in_tree_gas_is_elf = yes \
21889   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21890   then gcc_cv_as_comdat_group=yes
21891 fi
21892   elif test x$gcc_cv_as != x; then
21893     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21894     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21895   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21896   (eval $ac_try) 2>&5
21897   ac_status=$?
21898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21899   test $ac_status = 0; }; }
21900     then
21901         gcc_cv_as_comdat_group=yes
21902     else
21903       echo "configure: failed program was" >&5
21904       cat conftest.s >&5
21905     fi
21906     rm -f conftest.o conftest.s
21907   fi
21908 fi
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21910 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21911
21912 if test $gcc_cv_as_comdat_group = yes; then
21913   gcc_cv_as_comdat_group_percent=no
21914 else
21915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21916 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21917 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21918   $as_echo_n "(cached) " >&6
21919 else
21920   gcc_cv_as_comdat_group_percent=no
21921     if test $in_tree_gas = yes; then
21922     if test $in_tree_gas_is_elf = yes \
21923   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21924   then gcc_cv_as_comdat_group_percent=yes
21925 fi
21926   elif test x$gcc_cv_as != x; then
21927     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21928     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21929   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21930   (eval $ac_try) 2>&5
21931   ac_status=$?
21932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21933   test $ac_status = 0; }; }
21934     then
21935         gcc_cv_as_comdat_group_percent=yes
21936     else
21937       echo "configure: failed program was" >&5
21938       cat conftest.s >&5
21939     fi
21940     rm -f conftest.o conftest.s
21941   fi
21942 fi
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21944 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21945
21946 fi
21947 if test x"$ld_is_gold" = xyes; then
21948   comdat_group=yes
21949 elif test $in_tree_ld = yes ; then
21950   comdat_group=no
21951   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 \
21952      && test $in_tree_ld_is_elf = yes; then
21953      comdat_group=yes
21954   fi
21955 elif echo "$ld_ver" | grep GNU > /dev/null; then
21956   comdat_group=yes
21957   if test 0"$ld_date" -lt 20050308; then
21958     if test -n "$ld_date"; then
21959       # If there was date string, but was earlier than 2005-03-08, fail
21960       comdat_group=no
21961     elif test "$ld_vers_major" -lt 2; then
21962       comdat_group=no
21963     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21964       comdat_group=no
21965     fi
21966   fi
21967 else
21968   case "${target}" in
21969     *-*-solaris2.1[1-9]*)
21970       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21971       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21972       # version 1.688.
21973       #
21974       # FIXME: Maybe need to refine later when COMDAT group support with
21975       # Sun as is implemented.
21976       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21977         comdat_group=yes
21978       else
21979         comdat_group=no
21980       fi
21981       ;;
21982     *)
21983       # Assume linkers other than GNU ld don't support COMDAT group.
21984       comdat_group=no
21985       ;;
21986   esac
21987 fi
21988 # Allow overriding the automatic COMDAT group tests above.
21989 # Check whether --enable-comdat was given.
21990 if test "${enable_comdat+set}" = set; then :
21991   enableval=$enable_comdat; comdat_group="$enable_comdat"
21992 fi
21993
21994 if test $comdat_group = no; then
21995   gcc_cv_as_comdat_group=no
21996   gcc_cv_as_comdat_group_percent=no
21997 fi
21998
21999 cat >>confdefs.h <<_ACEOF
22000 #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`
22001 _ACEOF
22002
22003
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22005 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22006 if test "${gcc_cv_as_discriminator+set}" = set; then :
22007   $as_echo_n "(cached) " >&6
22008 else
22009   gcc_cv_as_discriminator=no
22010     if test $in_tree_gas = yes; then
22011     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22012   then gcc_cv_as_discriminator=yes
22013 fi
22014   elif test x$gcc_cv_as != x; then
22015     echo '      .text
22016         .file 1 "conf.c"
22017         .loc 1 1 0 discriminator 1' > conftest.s
22018     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22019   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22020   (eval $ac_try) 2>&5
22021   ac_status=$?
22022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22023   test $ac_status = 0; }; }
22024     then
22025         gcc_cv_as_discriminator=yes
22026     else
22027       echo "configure: failed program was" >&5
22028       cat conftest.s >&5
22029     fi
22030     rm -f conftest.o conftest.s
22031   fi
22032 fi
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22034 $as_echo "$gcc_cv_as_discriminator" >&6; }
22035 if test $gcc_cv_as_discriminator = yes; then
22036
22037 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22038
22039 fi
22040
22041 # Thread-local storage - the check is heavily parameterized.
22042 conftest_s=
22043 tls_first_major=
22044 tls_first_minor=
22045 tls_as_opt=
22046 case "$target" in
22047   alpha*-*-*)
22048     conftest_s='
22049         .section ".tdata","awT",@progbits
22050 foo:    .long   25
22051         .text
22052         ldq     $27,__tls_get_addr($29)         !literal!1
22053         lda     $16,foo($29)                    !tlsgd!1
22054         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22055         ldq     $27,__tls_get_addr($29)         !literal!2
22056         lda     $16,foo($29)                    !tlsldm!2
22057         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22058         ldq     $1,foo($29)                     !gotdtprel
22059         ldah    $2,foo($29)                     !dtprelhi
22060         lda     $3,foo($2)                      !dtprello
22061         lda     $4,foo($29)                     !dtprel
22062         ldq     $1,foo($29)                     !gottprel
22063         ldah    $2,foo($29)                     !tprelhi
22064         lda     $3,foo($2)                      !tprello
22065         lda     $4,foo($29)                     !tprel'
22066         tls_first_major=2
22067         tls_first_minor=13
22068         tls_as_opt=--fatal-warnings
22069         ;;
22070   cris-*-*|crisv32-*-*)
22071     conftest_s='
22072         .section ".tdata","awT",@progbits
22073 x:      .long   25
22074         .text
22075         move.d x:IE,$r10
22076         nop'
22077         tls_first_major=2
22078         tls_first_minor=20
22079         tls_as_opt=--fatal-warnings
22080         ;;
22081   frv*-*-*)
22082     conftest_s='
22083         .section ".tdata","awT",@progbits
22084 x:      .long   25
22085         .text
22086         call    #gettlsoff(x)'
22087         tls_first_major=2
22088         tls_first_minor=14
22089         ;;
22090   hppa*-*-linux*)
22091     conftest_s='
22092 t1:     .reg    %r20
22093 t2:     .reg    %r21
22094 gp:     .reg    %r19
22095         .section ".tdata","awT",@progbits
22096 foo:    .long   25
22097         .text
22098         .align  4
22099         addil LT%foo-$tls_gdidx$,gp
22100         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22101         b __tls_get_addr
22102         nop
22103         addil LT%foo-$tls_ldidx$,gp
22104         b __tls_get_addr
22105         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22106         addil LR%foo-$tls_dtpoff$,%ret0
22107         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22108         mfctl %cr27,%t1
22109         addil LT%foo-$tls_ieoff$,gp
22110         ldw RT%foo-$tls_ieoff$(%r1),%t2
22111         add %t1,%t2,%t3
22112         mfctl %cr27,%t1
22113         addil LR%foo-$tls_leoff$,%t1
22114         ldo RR%foo-$tls_leoff$(%r1),%t2'
22115         tls_first_major=2
22116         tls_first_minor=15
22117         tls_as_opt=--fatal-warnings
22118         ;;
22119   arm*-*-*)
22120     conftest_s='
22121         .section ".tdata","awT",%progbits
22122 foo:    .long   25
22123         .text
22124 .word foo(gottpoff)
22125 .word foo(tpoff)
22126 .word foo(tlsgd)
22127 .word foo(tlsldm)
22128 .word foo(tlsldo)'
22129         tls_first_major=2
22130         tls_first_minor=17
22131         ;;
22132   i[34567]86-*-*)
22133     case "$target" in
22134       i[34567]86-*-solaris2.*)
22135         on_solaris=yes
22136         tga_func=___tls_get_addr
22137         ;;
22138       *)
22139         on_solaris=no
22140         ;;
22141     esac
22142     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22143       conftest_s='
22144         .section .tdata,"awt",@progbits'
22145       tls_first_major=0
22146       tls_first_minor=0
22147
22148 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22149
22150     else
22151       conftest_s='
22152         .section ".tdata","awT",@progbits'
22153       tls_first_major=2
22154       tls_first_minor=14
22155       tls_as_opt="--fatal-warnings"
22156     fi
22157     conftest_s="$conftest_s
22158 foo:    .long   25
22159         .text
22160         movl    %gs:0, %eax
22161         leal    foo@tlsgd(,%ebx,1), %eax
22162         leal    foo@tlsldm(%ebx), %eax
22163         leal    foo@dtpoff(%eax), %edx
22164         movl    foo@gottpoff(%ebx), %eax
22165         subl    foo@gottpoff(%ebx), %eax
22166         addl    foo@gotntpoff(%ebx), %eax
22167         movl    foo@indntpoff, %eax
22168         movl    \$foo@tpoff, %eax
22169         subl    \$foo@tpoff, %eax
22170         leal    foo@ntpoff(%ecx), %eax"
22171     ;;
22172   x86_64-*-*)
22173     conftest_s='
22174         .section ".tdata","awT",@progbits
22175 foo:    .long   25
22176         .text
22177         movq    %fs:0, %rax
22178         leaq    foo@TLSGD(%rip), %rdi
22179         leaq    foo@TLSLD(%rip), %rdi
22180         leaq    foo@DTPOFF(%rax), %rdx
22181         movq    foo@GOTTPOFF(%rip), %rax
22182         movq    $foo@TPOFF, %rax'
22183         tls_first_major=2
22184         tls_first_minor=14
22185         tls_as_opt=--fatal-warnings
22186         ;;
22187   ia64-*-*)
22188     conftest_s='
22189         .section ".tdata","awT",@progbits
22190 foo:    data8   25
22191         .text
22192         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22193         addl    r17 = @ltoff(@dtprel(foo#)), gp
22194         addl    r18 = @ltoff(@tprel(foo#)), gp
22195         addl    r19 = @dtprel(foo#), gp
22196         adds    r21 = @dtprel(foo#), r13
22197         movl    r23 = @dtprel(foo#)
22198         addl    r20 = @tprel(foo#), gp
22199         adds    r22 = @tprel(foo#), r13
22200         movl    r24 = @tprel(foo#)'
22201         tls_first_major=2
22202         tls_first_minor=13
22203         tls_as_opt=--fatal-warnings
22204         ;;
22205   mips*-*-*)
22206     conftest_s='
22207         .section .tdata,"awT",@progbits
22208 x:
22209         .word 2
22210         .text
22211         addiu $4, $28, %tlsgd(x)
22212         addiu $4, $28, %tlsldm(x)
22213         lui $4, %dtprel_hi(x)
22214         addiu $4, $4, %dtprel_lo(x)
22215         lw $4, %gottprel(x)($28)
22216         lui $4, %tprel_hi(x)
22217         addiu $4, $4, %tprel_lo(x)'
22218         tls_first_major=2
22219         tls_first_minor=16
22220         tls_as_opt='-32 --fatal-warnings'
22221         ;;
22222   m68k-*-*)
22223     conftest_s='
22224         .section .tdata,"awT",@progbits
22225 x:
22226         .word 2
22227         .text
22228 foo:
22229         move.l x@TLSGD(%a5),%a0
22230         move.l x@TLSLDM(%a5),%a0
22231         move.l x@TLSLDO(%a5),%a0
22232         move.l x@TLSIE(%a5),%a0
22233         move.l x@TLSLE(%a5),%a0'
22234         tls_first_major=2
22235         tls_first_minor=19
22236         tls_as_opt='--fatal-warnings'
22237         ;;
22238   powerpc-*-*)
22239     conftest_s='
22240         .section ".tdata","awT",@progbits
22241         .align 2
22242 ld0:    .space 4
22243 ld1:    .space 4
22244 x1:     .space 4
22245 x2:     .space 4
22246 x3:     .space 4
22247         .text
22248         addi 3,31,ld0@got@tlsgd
22249         bl __tls_get_addr
22250         addi 3,31,x1@got@tlsld
22251         bl __tls_get_addr
22252         addi 9,3,x1@dtprel
22253         addis 9,3,x2@dtprel@ha
22254         addi 9,9,x2@dtprel@l
22255         lwz 9,x3@got@tprel(31)
22256         add 9,9,x@tls
22257         addi 9,2,x1@tprel
22258         addis 9,2,x2@tprel@ha
22259         addi 9,9,x2@tprel@l'
22260         tls_first_major=2
22261         tls_first_minor=14
22262         tls_as_opt="-a32 --fatal-warnings"
22263         ;;
22264   powerpc64-*-*)
22265     conftest_s='
22266         .section ".tdata","awT",@progbits
22267         .align 3
22268 ld0:    .space 8
22269 ld1:    .space 8
22270 x1:     .space 8
22271 x2:     .space 8
22272 x3:     .space 8
22273         .text
22274         addi 3,2,ld0@got@tlsgd
22275         bl .__tls_get_addr
22276         nop
22277         addi 3,2,ld1@toc
22278         bl .__tls_get_addr
22279         nop
22280         addi 3,2,x1@got@tlsld
22281         bl .__tls_get_addr
22282         nop
22283         addi 9,3,x1@dtprel
22284         bl .__tls_get_addr
22285         nop
22286         addis 9,3,x2@dtprel@ha
22287         addi 9,9,x2@dtprel@l
22288         bl .__tls_get_addr
22289         nop
22290         ld 9,x3@got@dtprel(2)
22291         add 9,9,3
22292         bl .__tls_get_addr
22293         nop'
22294         tls_first_major=2
22295         tls_first_minor=14
22296         tls_as_opt="-a64 --fatal-warnings"
22297         ;;
22298   s390-*-*)
22299     conftest_s='
22300         .section ".tdata","awT",@progbits
22301 foo:    .long   25
22302         .text
22303         .long   foo@TLSGD
22304         .long   foo@TLSLDM
22305         .long   foo@DTPOFF
22306         .long   foo@NTPOFF
22307         .long   foo@GOTNTPOFF
22308         .long   foo@INDNTPOFF
22309         l       %r1,foo@GOTNTPOFF(%r12)
22310         l       %r1,0(%r1):tls_load:foo
22311         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22312         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22313         tls_first_major=2
22314         tls_first_minor=14
22315         tls_as_opt="-m31 --fatal-warnings"
22316         ;;
22317   s390x-*-*)
22318     conftest_s='
22319         .section ".tdata","awT",@progbits
22320 foo:    .long   25
22321         .text
22322         .quad   foo@TLSGD
22323         .quad   foo@TLSLDM
22324         .quad   foo@DTPOFF
22325         .quad   foo@NTPOFF
22326         .quad   foo@GOTNTPOFF
22327         lg      %r1,foo@GOTNTPOFF(%r12)
22328         larl    %r1,foo@INDNTPOFF
22329         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22330         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22331         tls_first_major=2
22332         tls_first_minor=14
22333         tls_as_opt="-m64 -Aesame --fatal-warnings"
22334         ;;
22335   sh-*-* | sh[34]-*-*)
22336     conftest_s='
22337         .section ".tdata","awT",@progbits
22338 foo:    .long   25
22339         .text
22340         .long   foo@TLSGD
22341         .long   foo@TLSLDM
22342         .long   foo@DTPOFF
22343         .long   foo@GOTTPOFF
22344         .long   foo@TPOFF'
22345         tls_first_major=2
22346         tls_first_minor=13
22347         tls_as_opt=--fatal-warnings
22348         ;;
22349   sparc*-*-*)
22350     case "$target" in
22351       sparc*-sun-solaris2.*)
22352         on_solaris=yes
22353         tga_func=__tls_get_addr
22354         ;;
22355       *)
22356         on_solaris=no
22357         ;;
22358     esac
22359     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22360       conftest_s='
22361         .section ".tdata",#alloc,#write,#tls'
22362         tls_first_major=0
22363         tls_first_minor=0
22364     else
22365       conftest_s='
22366         .section ".tdata","awT",@progbits'
22367         tls_first_major=2
22368         tls_first_minor=14
22369         tls_as_opt="-32 --fatal-warnings"
22370     fi
22371     conftest_s="$conftest_s
22372 foo:    .long   25
22373         .text
22374         sethi   %tgd_hi22(foo), %o0
22375         add     %o0, %tgd_lo10(foo), %o1
22376         add     %l7, %o1, %o0, %tgd_add(foo)
22377         call    __tls_get_addr, %tgd_call(foo)
22378         sethi   %tldm_hi22(foo), %l1
22379         add     %l1, %tldm_lo10(foo), %l2
22380         add     %l7, %l2, %o0, %tldm_add(foo)
22381         call    __tls_get_addr, %tldm_call(foo)
22382         sethi   %tldo_hix22(foo), %l3
22383         xor     %l3, %tldo_lox10(foo), %l4
22384         add     %o0, %l4, %l5, %tldo_add(foo)
22385         sethi   %tie_hi22(foo), %o3
22386         add     %o3, %tie_lo10(foo), %o3
22387         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22388         add     %g7, %o2, %o4, %tie_add(foo)
22389         sethi   %tle_hix22(foo), %l1
22390         xor     %l1, %tle_lox10(foo), %o5
22391         ld      [%g7 + %o5], %o1"
22392         ;;
22393   xtensa*-*-*)
22394     conftest_s='
22395         .section ".tdata","awT",@progbits
22396 foo:    .long   25
22397         .text
22398         movi    a8, foo@TLSFUNC
22399         movi    a10, foo@TLSARG
22400         callx8.tls a8, foo@TLSCALL'
22401         tls_first_major=2
22402         tls_first_minor=19
22403         ;;
22404 esac
22405 set_have_as_tls=no
22406 if test "x$enable_tls" = xno ; then
22407   : # TLS explicitly disabled.
22408 elif test "x$enable_tls" = xyes ; then
22409   set_have_as_tls=yes # TLS explicitly enabled.
22410 elif test -z "$tls_first_major"; then
22411   : # If we don't have a check, assume no support.
22412 else
22413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22414 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22415 if test "${gcc_cv_as_tls+set}" = set; then :
22416   $as_echo_n "(cached) " >&6
22417 else
22418   gcc_cv_as_tls=no
22419     if test $in_tree_gas = yes; then
22420     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22421   then gcc_cv_as_tls=yes
22422 fi
22423   elif test x$gcc_cv_as != x; then
22424     echo "$conftest_s" > conftest.s
22425     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22426   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22427   (eval $ac_try) 2>&5
22428   ac_status=$?
22429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22430   test $ac_status = 0; }; }
22431     then
22432         gcc_cv_as_tls=yes
22433     else
22434       echo "configure: failed program was" >&5
22435       cat conftest.s >&5
22436     fi
22437     rm -f conftest.o conftest.s
22438   fi
22439 fi
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22441 $as_echo "$gcc_cv_as_tls" >&6; }
22442 if test $gcc_cv_as_tls = yes; then
22443   set_have_as_tls=yes
22444 fi
22445 fi
22446 case "$target" in
22447   # TLS was introduced in the Solaris 9 FCS release and backported to
22448   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22449   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22450   # ld and GCC don't support any longer.
22451   *-*-solaris2.*)
22452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22453 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22454     ld_tls_support=no
22455     # Check ld and ld.so.1 TLS support.
22456     if echo "$ld_ver" | grep GNU > /dev/null; then
22457       # Assume all interesting versions of GNU ld have TLS support.
22458       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22459       ld_tls_support=yes
22460     else
22461       case "$target" in
22462         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22463         i?86-*-solaris2.8)
22464           min_tls_ld_vers_minor=280
22465           ;;
22466         # Solaris 8/SPARC ld has TLS support since version 1.272.
22467         sparc*-*-solaris2.8)
22468           min_tls_ld_vers_minor=272
22469           ;;
22470         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22471         i?86-*-solaris2.9)
22472           min_tls_ld_vers_minor=374
22473           ;;
22474         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22475         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22476           min_tls_ld_vers_minor=343
22477           ;;
22478       esac
22479       if test "$ls_vers_major" -gt 1 || \
22480         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22481         ld_tls_support=yes
22482       else
22483         set_have_as_tls=no
22484       fi
22485     fi
22486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22487 $as_echo "$ld_tls_support" >&6; }
22488
22489     save_LIBS="$LIBS"
22490     save_LDFLAGS="$LDFLAGS"
22491     LIBS=
22492     LDFLAGS=
22493
22494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22495 $as_echo_n "checking alternate thread library... " >&6; }
22496     case "$target" in
22497       # TLS support was backported to Solaris 8 patches, but only lives in
22498       # the alternate thread library which became the default in Solaris 9.
22499       # We want to always use that, irrespective of TLS support.
22500       *-*-solaris2.8)
22501         # Take multilib subdir into account.  There's no spec to handle
22502         # this.  The 64 symlink exists since Solaris 8.
22503         lwp_dir=/usr/lib/lwp
22504         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22505         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22506         ;;
22507       *-*-solaris2*)
22508         lwp_dir="none"
22509         lwp_spec=""
22510         ;;
22511     esac
22512     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22513
22514 cat >>confdefs.h <<_ACEOF
22515 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22516 _ACEOF
22517
22518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22519 $as_echo "$lwp_dir" >&6; }
22520
22521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22522 $as_echo_n "checking library containing $tga_func... " >&6; }
22523     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22524     # (32-bit x86) only lived in libthread, so check for that.  Keep
22525     # set_have_as_tls if found, disable if not.
22526     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22528 $as_echo_n "checking for library containing $tga_func... " >&6; }
22529 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22530   $as_echo_n "(cached) " >&6
22531 else
22532   ac_func_search_save_LIBS=$LIBS
22533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22534 /* end confdefs.h.  */
22535
22536 /* Override any GCC internal prototype to avoid an error.
22537    Use char because int might match the return type of a GCC
22538    builtin and then its argument prototype would still apply.  */
22539 #ifdef __cplusplus
22540 extern "C"
22541 #endif
22542 char $tga_func ();
22543 int
22544 main ()
22545 {
22546 return $tga_func ();
22547   ;
22548   return 0;
22549 }
22550 _ACEOF
22551 for ac_lib in '' thread; do
22552   if test -z "$ac_lib"; then
22553     ac_res="none required"
22554   else
22555     ac_res=-l$ac_lib
22556     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22557   fi
22558   if ac_fn_c_try_link "$LINENO"; then :
22559   eval "$as_ac_Search=\$ac_res"
22560 fi
22561 rm -f core conftest.err conftest.$ac_objext \
22562     conftest$ac_exeext
22563   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22564   break
22565 fi
22566 done
22567 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22568
22569 else
22570   eval "$as_ac_Search=no"
22571 fi
22572 rm conftest.$ac_ext
22573 LIBS=$ac_func_search_save_LIBS
22574 fi
22575 eval ac_res=\$$as_ac_Search
22576                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22577 $as_echo "$ac_res" >&6; }
22578 eval ac_res=\$$as_ac_Search
22579 if test "$ac_res" != no; then :
22580   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22581
22582 else
22583   set_have_as_tls=no
22584 fi
22585
22586     # Clear LIBS if we cannot support TLS.
22587     if test $set_have_as_tls = no; then
22588       LIBS=
22589     fi
22590     # Always define LIB_TLS_SPEC, even without TLS support.
22591
22592 cat >>confdefs.h <<_ACEOF
22593 #define LIB_TLS_SPEC "$LIBS"
22594 _ACEOF
22595
22596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22597 $as_echo "$LIBS" >&6; }
22598
22599     LIBS="$save_LIBS"
22600     LDFLAGS="$save_LDFLAGS"
22601     ;;
22602 esac
22603 if test $set_have_as_tls = yes ; then
22604
22605 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22606
22607 fi
22608
22609 # Target-specific assembler checks.
22610
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22612 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22613 gcc_cv_ld_static_dynamic=no
22614 if test $in_tree_ld = yes ; then
22615   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
22616     gcc_cv_ld_static_dynamic=yes
22617   fi
22618 elif test x$gcc_cv_ld != x; then
22619         # Check if linker supports -Bstatic/-Bdynamic option
22620         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22621           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22622                 gcc_cv_ld_static_dynamic=yes
22623         fi
22624 fi
22625 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22626
22627 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22628
22629 fi
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22631 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22632
22633 if test x"$demangler_in_ld" = xyes; then
22634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22635 $as_echo_n "checking linker --demangle support... " >&6; }
22636   gcc_cv_ld_demangle=no
22637   if test $in_tree_ld = yes; then
22638     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 \
22639       gcc_cv_ld_demangle=yes
22640     fi
22641   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22642     # Check if the GNU linker supports --demangle option
22643     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22644       gcc_cv_ld_demangle=yes
22645     fi
22646   fi
22647   if test x"$gcc_cv_ld_demangle" = xyes; then
22648
22649 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22650
22651   fi
22652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22653 $as_echo "$gcc_cv_ld_demangle" >&6; }
22654 fi
22655
22656 case "$target" in
22657   # All TARGET_ABI_OSF targets.
22658   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22660 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22661 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22662   $as_echo_n "(cached) " >&6
22663 else
22664   gcc_cv_as_alpha_explicit_relocs=no
22665     if test $in_tree_gas = yes; then
22666     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22667   then gcc_cv_as_alpha_explicit_relocs=yes
22668 fi
22669   elif test x$gcc_cv_as != x; then
22670     echo '      .set nomacro
22671         .text
22672         extbl   $3, $2, $3      !lituse_bytoff!1
22673         ldq     $2, a($29)      !literal!1
22674         ldq     $4, b($29)      !literal!2
22675         ldq_u   $3, 0($2)       !lituse_base!1
22676         ldq     $27, f($29)     !literal!5
22677         jsr     $26, ($27), f   !lituse_jsr!5
22678         ldah    $29, 0($26)     !gpdisp!3
22679         lda     $0, c($29)      !gprel
22680         ldah    $1, d($29)      !gprelhigh
22681         lda     $1, d($1)       !gprellow
22682         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22683     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22684   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22685   (eval $ac_try) 2>&5
22686   ac_status=$?
22687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22688   test $ac_status = 0; }; }
22689     then
22690         gcc_cv_as_alpha_explicit_relocs=yes
22691     else
22692       echo "configure: failed program was" >&5
22693       cat conftest.s >&5
22694     fi
22695     rm -f conftest.o conftest.s
22696   fi
22697 fi
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22699 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22700 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22701
22702 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22703
22704 fi
22705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22706 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22707 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22708   $as_echo_n "(cached) " >&6
22709 else
22710   gcc_cv_as_alpha_jsrdirect_relocs=no
22711     if test $in_tree_gas = yes; then
22712     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22713   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22714 fi
22715   elif test x$gcc_cv_as != x; then
22716     echo '      .set nomacro
22717         .text
22718         ldq     $27, a($29)     !literal!1
22719         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22720     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22721   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722   (eval $ac_try) 2>&5
22723   ac_status=$?
22724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725   test $ac_status = 0; }; }
22726     then
22727         gcc_cv_as_alpha_jsrdirect_relocs=yes
22728     else
22729       echo "configure: failed program was" >&5
22730       cat conftest.s >&5
22731     fi
22732     rm -f conftest.o conftest.s
22733   fi
22734 fi
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22736 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22737 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22738
22739 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22740
22741 fi
22742     ;;
22743
22744   cris-*-*)
22745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22746 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22747 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22748   $as_echo_n "(cached) " >&6
22749 else
22750   gcc_cv_as_cris_no_mul_bug=no
22751     if test $in_tree_gas = yes; then
22752     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22753   then gcc_cv_as_cris_no_mul_bug=yes
22754 fi
22755   elif test x$gcc_cv_as != x; then
22756     echo '.text' > conftest.s
22757     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22758   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759   (eval $ac_try) 2>&5
22760   ac_status=$?
22761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762   test $ac_status = 0; }; }
22763     then
22764         gcc_cv_as_cris_no_mul_bug=yes
22765     else
22766       echo "configure: failed program was" >&5
22767       cat conftest.s >&5
22768     fi
22769     rm -f conftest.o conftest.s
22770   fi
22771 fi
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22773 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22774 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22775
22776 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22777
22778 fi
22779     ;;
22780
22781   sparc*-*-*)
22782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22783 $as_echo_n "checking assembler for .register... " >&6; }
22784 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22785   $as_echo_n "(cached) " >&6
22786 else
22787   gcc_cv_as_sparc_register_op=no
22788   if test x$gcc_cv_as != x; then
22789     echo '.register %g2, #scratch' > conftest.s
22790     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22791   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22792   (eval $ac_try) 2>&5
22793   ac_status=$?
22794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22795   test $ac_status = 0; }; }
22796     then
22797         gcc_cv_as_sparc_register_op=yes
22798     else
22799       echo "configure: failed program was" >&5
22800       cat conftest.s >&5
22801     fi
22802     rm -f conftest.o conftest.s
22803   fi
22804 fi
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22806 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22807 if test $gcc_cv_as_sparc_register_op = yes; then
22808
22809 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22810
22811 fi
22812
22813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22814 $as_echo_n "checking assembler for -relax option... " >&6; }
22815 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22816   $as_echo_n "(cached) " >&6
22817 else
22818   gcc_cv_as_sparc_relax=no
22819   if test x$gcc_cv_as != x; then
22820     echo '.text' > conftest.s
22821     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22822   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22823   (eval $ac_try) 2>&5
22824   ac_status=$?
22825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22826   test $ac_status = 0; }; }
22827     then
22828         gcc_cv_as_sparc_relax=yes
22829     else
22830       echo "configure: failed program was" >&5
22831       cat conftest.s >&5
22832     fi
22833     rm -f conftest.o conftest.s
22834   fi
22835 fi
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22837 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22838 if test $gcc_cv_as_sparc_relax = yes; then
22839
22840 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22841
22842 fi
22843
22844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22845 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22846 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22847   $as_echo_n "(cached) " >&6
22848 else
22849   gcc_cv_as_sparc_gotdata_op=no
22850   if test x$gcc_cv_as != x; then
22851     echo '.text
22852 foo:
22853         nop
22854 bar:
22855         sethi %gdop_hix22(foo), %g1
22856         xor    %g1, %gdop_lox10(foo), %g1
22857         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22858     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22859   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22860   (eval $ac_try) 2>&5
22861   ac_status=$?
22862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22863   test $ac_status = 0; }; }
22864     then
22865         if test x$gcc_cv_ld != x \
22866        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22867          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22868            if test x$gcc_cv_objdump != x; then
22869              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22870                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22871                gcc_cv_as_sparc_gotdata_op=no
22872              else
22873                gcc_cv_as_sparc_gotdata_op=yes
22874              fi
22875            fi
22876          else
22877            gcc_cv_as_sparc_gotdata_op=yes
22878          fi
22879        fi
22880        rm -f conftest
22881     else
22882       echo "configure: failed program was" >&5
22883       cat conftest.s >&5
22884     fi
22885     rm -f conftest.o conftest.s
22886   fi
22887 fi
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22889 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22890 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22891
22892 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22893
22894 fi
22895
22896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22897 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22898 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22899   $as_echo_n "(cached) " >&6
22900 else
22901   gcc_cv_as_sparc_ua_pcrel=no
22902   if test x$gcc_cv_as != x; then
22903     echo '.text
22904 foo:
22905         nop
22906 .data
22907 .align 4
22908 .byte 0
22909 .uaword %r_disp32(foo)' > conftest.s
22910     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22911   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22912   (eval $ac_try) 2>&5
22913   ac_status=$?
22914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22915   test $ac_status = 0; }; }
22916     then
22917         if test x$gcc_cv_ld != x \
22918        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22919          gcc_cv_as_sparc_ua_pcrel=yes
22920        fi
22921        rm -f conftest
22922     else
22923       echo "configure: failed program was" >&5
22924       cat conftest.s >&5
22925     fi
22926     rm -f conftest.o conftest.s
22927   fi
22928 fi
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22930 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22931 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22932
22933 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22934
22935
22936       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22937 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22938 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22939   $as_echo_n "(cached) " >&6
22940 else
22941   gcc_cv_as_sparc_ua_pcrel_hidden=no
22942   if test x$gcc_cv_as != x; then
22943     echo '.data
22944 .align 4
22945 .byte 0x31
22946 .uaword %r_disp32(foo)
22947 .byte 0x32, 0x33, 0x34
22948 .global foo
22949 .hidden foo
22950 foo:
22951 .skip 4' > conftest.s
22952     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22953   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22954   (eval $ac_try) 2>&5
22955   ac_status=$?
22956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957   test $ac_status = 0; }; }
22958     then
22959         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22960          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22961          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22962             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22963             if $gcc_cv_objdump -R conftest 2> /dev/null \
22964                | grep 'DISP32' > /dev/null 2>&1; then
22965                 :
22966             else
22967                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22968             fi
22969          fi
22970          rm -f conftest
22971     else
22972       echo "configure: failed program was" >&5
22973       cat conftest.s >&5
22974     fi
22975     rm -f conftest.o conftest.s
22976   fi
22977 fi
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22979 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22980 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22981
22982 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22983
22984 fi
22985
22986 fi # unaligned pcrel relocs
22987
22988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22989 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22990 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22991   $as_echo_n "(cached) " >&6
22992 else
22993   gcc_cv_as_sparc_offsetable_lo10=no
22994   if test x$gcc_cv_as != x; then
22995     echo '.text
22996         or %g1, %lo(ab) + 12, %g1
22997         or %g1, %lo(ab + 12), %g1' > conftest.s
22998     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22999   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23000   (eval $ac_try) 2>&5
23001   ac_status=$?
23002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23003   test $ac_status = 0; }; }
23004     then
23005         if test x$gcc_cv_objdump != x \
23006        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23007           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23008          gcc_cv_as_sparc_offsetable_lo10=yes
23009        fi
23010     else
23011       echo "configure: failed program was" >&5
23012       cat conftest.s >&5
23013     fi
23014     rm -f conftest.o conftest.s
23015   fi
23016 fi
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23018 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23019 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23020
23021 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23022
23023 fi
23024     ;;
23025
23026   i[34567]86-*-* | x86_64-*-*)
23027     case $target_os in
23028       cygwin*)
23029         # Full C++ conformance when using a shared libstdc++-v3 requires some
23030         # support from the Cygwin DLL, which in more recent versions exports
23031         # wrappers to aid in interposing and redirecting operators new, delete,
23032         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23033         # are configuring for a version of Cygwin that exports the wrappers.
23034         if test x$host = x$target; then
23035           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23036 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23037   gcc_ac_cygwin_dll_wrappers=yes
23038 else
23039   gcc_ac_cygwin_dll_wrappers=no
23040 fi
23041
23042         else
23043           # Can't check presence of libc functions during cross-compile, so
23044           # we just have to assume we're building for an up-to-date target.
23045           gcc_ac_cygwin_dll_wrappers=yes
23046         fi
23047
23048 cat >>confdefs.h <<_ACEOF
23049 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23050 _ACEOF
23051
23052     esac
23053     case $target_os in
23054       cygwin* | pe | mingw32*)
23055         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23056         # definition is used unconditionally to initialise the default state of
23057         # the target option variable that governs usage of the feature.
23058         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23059 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23060 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23061   $as_echo_n "(cached) " >&6
23062 else
23063   gcc_cv_as_comm_has_align=no
23064     if test $in_tree_gas = yes; then
23065     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23066   then gcc_cv_as_comm_has_align=yes
23067 fi
23068   elif test x$gcc_cv_as != x; then
23069     echo '.comm foo,1,32' > conftest.s
23070     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23071   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23072   (eval $ac_try) 2>&5
23073   ac_status=$?
23074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23075   test $ac_status = 0; }; }
23076     then
23077         gcc_cv_as_comm_has_align=yes
23078     else
23079       echo "configure: failed program was" >&5
23080       cat conftest.s >&5
23081     fi
23082     rm -f conftest.o conftest.s
23083   fi
23084 fi
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23086 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23087
23088
23089 cat >>confdefs.h <<_ACEOF
23090 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23091 _ACEOF
23092
23093         # Used for DWARF 2 in PE
23094         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23095 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23096 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23097   $as_echo_n "(cached) " >&6
23098 else
23099   gcc_cv_as_ix86_pe_secrel32=no
23100     if test $in_tree_gas = yes; then
23101     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23102   then gcc_cv_as_ix86_pe_secrel32=yes
23103 fi
23104   elif test x$gcc_cv_as != x; then
23105     echo '.text
23106 foo:    nop
23107 .data
23108         .secrel32 foo' > conftest.s
23109     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23110   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23114   test $ac_status = 0; }; }
23115     then
23116         if test x$gcc_cv_ld != x \
23117            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23118              gcc_cv_as_ix86_pe_secrel32=yes
23119            fi
23120            rm -f conftest
23121     else
23122       echo "configure: failed program was" >&5
23123       cat conftest.s >&5
23124     fi
23125     rm -f conftest.o conftest.s
23126   fi
23127 fi
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23129 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23130 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23131
23132 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23133
23134 fi
23135         # Test if the assembler supports the extended form of the .section
23136         # directive that specifies section alignment.  LTO support uses this,
23137         # but normally only after installation, so we warn but don't fail the
23138         # configure if LTO is enabled but the assembler does not support it.
23139         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23140 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23141 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23142   $as_echo_n "(cached) " >&6
23143 else
23144   gcc_cv_as_section_has_align=no
23145     if test $in_tree_gas = yes; then
23146     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23147   then gcc_cv_as_section_has_align=yes
23148 fi
23149   elif test x$gcc_cv_as != x; then
23150     echo '.section lto_test,"dr0"' > conftest.s
23151     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23152   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23153   (eval $ac_try) 2>&5
23154   ac_status=$?
23155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23156   test $ac_status = 0; }; }
23157     then
23158         gcc_cv_as_section_has_align=yes
23159     else
23160       echo "configure: failed program was" >&5
23161       cat conftest.s >&5
23162     fi
23163     rm -f conftest.o conftest.s
23164   fi
23165 fi
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23167 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23168
23169         if test x$gcc_cv_as_section_has_align != xyes; then
23170           case ",$enable_languages," in
23171             *,lto,*)
23172               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
23173 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
23174               ;;
23175           esac
23176         fi
23177         ;;
23178     esac
23179
23180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23181 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23182 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23183   $as_echo_n "(cached) " >&6
23184 else
23185   gcc_cv_as_ix86_filds=no
23186   if test x$gcc_cv_as != x; then
23187     echo 'filds mem; fists mem' > conftest.s
23188     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23189   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23190   (eval $ac_try) 2>&5
23191   ac_status=$?
23192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23193   test $ac_status = 0; }; }
23194     then
23195         gcc_cv_as_ix86_filds=yes
23196     else
23197       echo "configure: failed program was" >&5
23198       cat conftest.s >&5
23199     fi
23200     rm -f conftest.o conftest.s
23201   fi
23202 fi
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23204 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23205 if test $gcc_cv_as_ix86_filds = yes; then
23206
23207 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23208
23209 fi
23210
23211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23212 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23213 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23214   $as_echo_n "(cached) " >&6
23215 else
23216   gcc_cv_as_ix86_fildq=no
23217   if test x$gcc_cv_as != x; then
23218     echo 'fildq mem; fistpq mem' > conftest.s
23219     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23220   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23221   (eval $ac_try) 2>&5
23222   ac_status=$?
23223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23224   test $ac_status = 0; }; }
23225     then
23226         gcc_cv_as_ix86_fildq=yes
23227     else
23228       echo "configure: failed program was" >&5
23229       cat conftest.s >&5
23230     fi
23231     rm -f conftest.o conftest.s
23232   fi
23233 fi
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23235 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23236 if test $gcc_cv_as_ix86_fildq = yes; then
23237
23238 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23239
23240 fi
23241
23242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23243 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23244 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23245   $as_echo_n "(cached) " >&6
23246 else
23247   gcc_cv_as_ix86_cmov_sun_syntax=no
23248   if test x$gcc_cv_as != x; then
23249     echo 'cmovl.l %edx, %eax' > conftest.s
23250     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23251   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23252   (eval $ac_try) 2>&5
23253   ac_status=$?
23254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23255   test $ac_status = 0; }; }
23256     then
23257         gcc_cv_as_ix86_cmov_sun_syntax=yes
23258     else
23259       echo "configure: failed program was" >&5
23260       cat conftest.s >&5
23261     fi
23262     rm -f conftest.o conftest.s
23263   fi
23264 fi
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23266 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23267 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23268
23269 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23270
23271 fi
23272
23273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23274 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23275 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23276   $as_echo_n "(cached) " >&6
23277 else
23278   gcc_cv_as_ix86_ffreep=no
23279   if test x$gcc_cv_as != x; then
23280     echo 'ffreep %st(1)' > conftest.s
23281     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23282   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23283   (eval $ac_try) 2>&5
23284   ac_status=$?
23285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23286   test $ac_status = 0; }; }
23287     then
23288         gcc_cv_as_ix86_ffreep=yes
23289     else
23290       echo "configure: failed program was" >&5
23291       cat conftest.s >&5
23292     fi
23293     rm -f conftest.o conftest.s
23294   fi
23295 fi
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23297 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23298 if test $gcc_cv_as_ix86_ffreep = yes; then
23299
23300 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23301
23302 fi
23303
23304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23305 $as_echo_n "checking assembler for .quad directive... " >&6; }
23306 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23307   $as_echo_n "(cached) " >&6
23308 else
23309   gcc_cv_as_ix86_quad=no
23310   if test x$gcc_cv_as != x; then
23311     echo '.quad 0' > conftest.s
23312     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23313   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23314   (eval $ac_try) 2>&5
23315   ac_status=$?
23316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23317   test $ac_status = 0; }; }
23318     then
23319         gcc_cv_as_ix86_quad=yes
23320     else
23321       echo "configure: failed program was" >&5
23322       cat conftest.s >&5
23323     fi
23324     rm -f conftest.o conftest.s
23325   fi
23326 fi
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23328 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23329 if test $gcc_cv_as_ix86_quad = yes; then
23330
23331 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23332
23333 fi
23334
23335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23336 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23337 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23338   $as_echo_n "(cached) " >&6
23339 else
23340   gcc_cv_as_ix86_sahf=no
23341   if test x$gcc_cv_as != x; then
23342     echo '.code64
23343        sahf' > conftest.s
23344     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23345   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23346   (eval $ac_try) 2>&5
23347   ac_status=$?
23348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23349   test $ac_status = 0; }; }
23350     then
23351         gcc_cv_as_ix86_sahf=yes
23352     else
23353       echo "configure: failed program was" >&5
23354       cat conftest.s >&5
23355     fi
23356     rm -f conftest.o conftest.s
23357   fi
23358 fi
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23360 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23361 if test $gcc_cv_as_ix86_sahf = yes; then
23362
23363 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23364
23365 fi
23366
23367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23368 $as_echo_n "checking assembler for swap suffix... " >&6; }
23369 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23370   $as_echo_n "(cached) " >&6
23371 else
23372   gcc_cv_as_ix86_swap=no
23373   if test x$gcc_cv_as != x; then
23374     echo 'movl.s %esp, %ebp' > conftest.s
23375     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23376   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23377   (eval $ac_try) 2>&5
23378   ac_status=$?
23379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23380   test $ac_status = 0; }; }
23381     then
23382         gcc_cv_as_ix86_swap=yes
23383     else
23384       echo "configure: failed program was" >&5
23385       cat conftest.s >&5
23386     fi
23387     rm -f conftest.o conftest.s
23388   fi
23389 fi
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23391 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23392 if test $gcc_cv_as_ix86_swap = yes; then
23393
23394 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23395
23396 fi
23397
23398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23399 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23400 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23401   $as_echo_n "(cached) " >&6
23402 else
23403   gcc_cv_as_ix86_diff_sect_delta=no
23404   if test x$gcc_cv_as != x; then
23405     echo '.section .rodata
23406 .L1:
23407         .long .L2-.L1
23408         .long .L3-.L1
23409         .text
23410 .L3:    nop
23411 .L2:    nop' > conftest.s
23412     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23413   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23414   (eval $ac_try) 2>&5
23415   ac_status=$?
23416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23417   test $ac_status = 0; }; }
23418     then
23419         gcc_cv_as_ix86_diff_sect_delta=yes
23420     else
23421       echo "configure: failed program was" >&5
23422       cat conftest.s >&5
23423     fi
23424     rm -f conftest.o conftest.s
23425   fi
23426 fi
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23428 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23429 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23430
23431 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23432
23433 fi
23434
23435     # These two are used unconditionally by i386.[ch]; it is to be defined
23436     # to 1 if the feature is present, 0 otherwise.
23437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23438 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23439 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23440   $as_echo_n "(cached) " >&6
23441 else
23442   gcc_cv_as_ix86_gotoff_in_data=no
23443     if test $in_tree_gas = yes; then
23444     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23445   then gcc_cv_as_ix86_gotoff_in_data=yes
23446 fi
23447   elif test x$gcc_cv_as != x; then
23448     echo '      .text
23449 .L0:
23450         nop
23451         .data
23452         .long .L0@GOTOFF' > conftest.s
23453     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23454   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23455   (eval $ac_try) 2>&5
23456   ac_status=$?
23457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23458   test $ac_status = 0; }; }
23459     then
23460         gcc_cv_as_ix86_gotoff_in_data=yes
23461     else
23462       echo "configure: failed program was" >&5
23463       cat conftest.s >&5
23464     fi
23465     rm -f conftest.o conftest.s
23466   fi
23467 fi
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23469 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23470
23471
23472 cat >>confdefs.h <<_ACEOF
23473 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23474 _ACEOF
23475
23476
23477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23478 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23479 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23480   $as_echo_n "(cached) " >&6
23481 else
23482   gcc_cv_as_ix86_rep_lock_prefix=no
23483   if test x$gcc_cv_as != x; then
23484     echo 'rep movsl
23485          lock addl %edi, (%eax,%esi)
23486          lock orl $0, (%esp)' > conftest.s
23487     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23488   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23489   (eval $ac_try) 2>&5
23490   ac_status=$?
23491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23492   test $ac_status = 0; }; }
23493     then
23494         gcc_cv_as_ix86_rep_lock_prefix=yes
23495     else
23496       echo "configure: failed program was" >&5
23497       cat conftest.s >&5
23498     fi
23499     rm -f conftest.o conftest.s
23500   fi
23501 fi
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23503 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23504 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23505
23506 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23507
23508 fi
23509
23510     ;;
23511
23512   ia64*-*-*)
23513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23514 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23515 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23516   $as_echo_n "(cached) " >&6
23517 else
23518   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23519     if test $in_tree_gas = yes; then
23520     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23521   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23522 fi
23523   elif test x$gcc_cv_as != x; then
23524     echo '      .text
23525         addl r15 = @ltoffx(x#), gp
23526         ;;
23527         ld8.mov r16 = [r15], x#' > conftest.s
23528     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23529   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23530   (eval $ac_try) 2>&5
23531   ac_status=$?
23532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23533   test $ac_status = 0; }; }
23534     then
23535         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23536     else
23537       echo "configure: failed program was" >&5
23538       cat conftest.s >&5
23539     fi
23540     rm -f conftest.o conftest.s
23541   fi
23542 fi
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23544 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23545 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23546
23547 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23548
23549 fi
23550
23551     ;;
23552
23553   powerpc*-*-*)
23554     case $target in
23555       *-*-aix*) conftest_s='    .machine "pwr5"
23556         .csect .text[PR]
23557         mfcr 3,128';;
23558       *-*-darwin*)
23559         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23560 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23561 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23562   $as_echo_n "(cached) " >&6
23563 else
23564   gcc_cv_as_machine_directive=no
23565   if test x$gcc_cv_as != x; then
23566     echo '      .machine ppc7400' > conftest.s
23567     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23568   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23569   (eval $ac_try) 2>&5
23570   ac_status=$?
23571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23572   test $ac_status = 0; }; }
23573     then
23574         gcc_cv_as_machine_directive=yes
23575     else
23576       echo "configure: failed program was" >&5
23577       cat conftest.s >&5
23578     fi
23579     rm -f conftest.o conftest.s
23580   fi
23581 fi
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23583 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23584
23585         if test x$gcc_cv_as_machine_directive != xyes; then
23586           echo "*** This target requires an assembler supporting \".machine\"" >&2
23587           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23588           test x$build = x$target && exit 1
23589         fi
23590         conftest_s='    .text
23591         mfcr r3,128';;
23592       *) conftest_s='   .machine power4
23593         .text
23594         mfcr 3,128';;
23595     esac
23596
23597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23598 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23599 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23600   $as_echo_n "(cached) " >&6
23601 else
23602   gcc_cv_as_powerpc_mfcrf=no
23603     if test $in_tree_gas = yes; then
23604     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23605   then gcc_cv_as_powerpc_mfcrf=yes
23606 fi
23607   elif test x$gcc_cv_as != x; then
23608     echo "$conftest_s" > conftest.s
23609     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23610   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23611   (eval $ac_try) 2>&5
23612   ac_status=$?
23613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23614   test $ac_status = 0; }; }
23615     then
23616         gcc_cv_as_powerpc_mfcrf=yes
23617     else
23618       echo "configure: failed program was" >&5
23619       cat conftest.s >&5
23620     fi
23621     rm -f conftest.o conftest.s
23622   fi
23623 fi
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23625 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23626 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23627
23628 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23629
23630 fi
23631
23632     case $target in
23633       *-*-aix*) conftest_s='    .machine "pwr5"
23634         .csect .text[PR]
23635         popcntb 3,3';;
23636       *) conftest_s='   .machine power5
23637         .text
23638         popcntb 3,3';;
23639     esac
23640
23641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23642 $as_echo_n "checking assembler for popcntb support... " >&6; }
23643 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23644   $as_echo_n "(cached) " >&6
23645 else
23646   gcc_cv_as_powerpc_popcntb=no
23647     if test $in_tree_gas = yes; then
23648     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23649   then gcc_cv_as_powerpc_popcntb=yes
23650 fi
23651   elif test x$gcc_cv_as != x; then
23652     echo "$conftest_s" > conftest.s
23653     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23654   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23655   (eval $ac_try) 2>&5
23656   ac_status=$?
23657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23658   test $ac_status = 0; }; }
23659     then
23660         gcc_cv_as_powerpc_popcntb=yes
23661     else
23662       echo "configure: failed program was" >&5
23663       cat conftest.s >&5
23664     fi
23665     rm -f conftest.o conftest.s
23666   fi
23667 fi
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23669 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23670 if test $gcc_cv_as_powerpc_popcntb = yes; then
23671
23672 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23673
23674 fi
23675
23676     case $target in
23677       *-*-aix*) conftest_s='    .machine "pwr5x"
23678         .csect .text[PR]
23679         frin 1,1';;
23680       *) conftest_s='   .machine power5
23681         .text
23682         frin 1,1';;
23683     esac
23684
23685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23686 $as_echo_n "checking assembler for fp round support... " >&6; }
23687 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23688   $as_echo_n "(cached) " >&6
23689 else
23690   gcc_cv_as_powerpc_fprnd=no
23691     if test $in_tree_gas = yes; then
23692     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23693   then gcc_cv_as_powerpc_fprnd=yes
23694 fi
23695   elif test x$gcc_cv_as != x; then
23696     echo "$conftest_s" > conftest.s
23697     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23698   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23699   (eval $ac_try) 2>&5
23700   ac_status=$?
23701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23702   test $ac_status = 0; }; }
23703     then
23704         gcc_cv_as_powerpc_fprnd=yes
23705     else
23706       echo "configure: failed program was" >&5
23707       cat conftest.s >&5
23708     fi
23709     rm -f conftest.o conftest.s
23710   fi
23711 fi
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23713 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23714 if test $gcc_cv_as_powerpc_fprnd = yes; then
23715
23716 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23717
23718 fi
23719
23720     case $target in
23721       *-*-aix*) conftest_s='    .machine "pwr6"
23722         .csect .text[PR]
23723         mffgpr 1,3';;
23724       *) conftest_s='   .machine power6
23725         .text
23726         mffgpr 1,3';;
23727     esac
23728
23729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23730 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23731 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23732   $as_echo_n "(cached) " >&6
23733 else
23734   gcc_cv_as_powerpc_mfpgpr=no
23735     if test $in_tree_gas = yes; then
23736     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23737   then gcc_cv_as_powerpc_mfpgpr=yes
23738 fi
23739   elif test x$gcc_cv_as != x; then
23740     echo "$conftest_s" > conftest.s
23741     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23742   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23743   (eval $ac_try) 2>&5
23744   ac_status=$?
23745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23746   test $ac_status = 0; }; }
23747     then
23748         gcc_cv_as_powerpc_mfpgpr=yes
23749     else
23750       echo "configure: failed program was" >&5
23751       cat conftest.s >&5
23752     fi
23753     rm -f conftest.o conftest.s
23754   fi
23755 fi
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23757 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23758 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23759
23760 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23761
23762 fi
23763
23764     case $target in
23765       *-*-aix*) conftest_s='    .csect .text[PR]
23766 LCF..0:
23767         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23768       *-*-darwin*)
23769         conftest_s='    .text
23770 LCF0:
23771         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23772       *) conftest_s='   .text
23773 .LCF0:
23774         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23775     esac
23776
23777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23778 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23779 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23780   $as_echo_n "(cached) " >&6
23781 else
23782   gcc_cv_as_powerpc_rel16=no
23783     if test $in_tree_gas = yes; then
23784     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23785   then gcc_cv_as_powerpc_rel16=yes
23786 fi
23787   elif test x$gcc_cv_as != x; then
23788     echo "$conftest_s" > conftest.s
23789     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23790   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23791   (eval $ac_try) 2>&5
23792   ac_status=$?
23793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23794   test $ac_status = 0; }; }
23795     then
23796         gcc_cv_as_powerpc_rel16=yes
23797     else
23798       echo "configure: failed program was" >&5
23799       cat conftest.s >&5
23800     fi
23801     rm -f conftest.o conftest.s
23802   fi
23803 fi
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23805 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23806 if test $gcc_cv_as_powerpc_rel16 = yes; then
23807
23808 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23809
23810 fi
23811
23812     case $target in
23813       *-*-aix*) conftest_s='    .machine "pwr6"
23814         .csect .text[PR]
23815         cmpb 3,4,5';;
23816       *) conftest_s='   .machine power6
23817         .text
23818         cmpb 3,4,5';;
23819     esac
23820
23821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23822 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23823 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23824   $as_echo_n "(cached) " >&6
23825 else
23826   gcc_cv_as_powerpc_cmpb=no
23827     if test $in_tree_gas = yes; then
23828     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23829   then gcc_cv_as_powerpc_cmpb=yes
23830 fi
23831   elif test x$gcc_cv_as != x; then
23832     echo "$conftest_s" > conftest.s
23833     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23834   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835   (eval $ac_try) 2>&5
23836   ac_status=$?
23837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838   test $ac_status = 0; }; }
23839     then
23840         gcc_cv_as_powerpc_cmpb=yes
23841     else
23842       echo "configure: failed program was" >&5
23843       cat conftest.s >&5
23844     fi
23845     rm -f conftest.o conftest.s
23846   fi
23847 fi
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23849 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23850 if test $gcc_cv_as_powerpc_cmpb = yes; then
23851
23852 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23853
23854 fi
23855
23856     case $target in
23857       *-*-aix*) conftest_s='    .machine "pwr6"
23858         .csect .text[PR]
23859         dadd 1,2,3';;
23860       *) conftest_s='   .machine power6
23861         .text
23862         dadd 1,2,3';;
23863     esac
23864
23865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23866 $as_echo_n "checking assembler for decimal float support... " >&6; }
23867 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23868   $as_echo_n "(cached) " >&6
23869 else
23870   gcc_cv_as_powerpc_dfp=no
23871     if test $in_tree_gas = yes; then
23872     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23873   then gcc_cv_as_powerpc_dfp=yes
23874 fi
23875   elif test x$gcc_cv_as != x; then
23876     echo "$conftest_s" > conftest.s
23877     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23878   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879   (eval $ac_try) 2>&5
23880   ac_status=$?
23881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882   test $ac_status = 0; }; }
23883     then
23884         gcc_cv_as_powerpc_dfp=yes
23885     else
23886       echo "configure: failed program was" >&5
23887       cat conftest.s >&5
23888     fi
23889     rm -f conftest.o conftest.s
23890   fi
23891 fi
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23893 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23894 if test $gcc_cv_as_powerpc_dfp = yes; then
23895
23896 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23897
23898 fi
23899
23900     case $target in
23901       *-*-aix*) conftest_s='    .machine "pwr7"
23902         .csect .text[PR]
23903         lxvd2x 1,2,3';;
23904       *) conftest_s='   .machine power7
23905         .text
23906         lxvd2x 1,2,3';;
23907     esac
23908
23909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23910 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23911 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23912   $as_echo_n "(cached) " >&6
23913 else
23914   gcc_cv_as_powerpc_vsx=no
23915     if test $in_tree_gas = yes; then
23916     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23917   then gcc_cv_as_powerpc_vsx=yes
23918 fi
23919   elif test x$gcc_cv_as != x; then
23920     echo "$conftest_s" > conftest.s
23921     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23922   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923   (eval $ac_try) 2>&5
23924   ac_status=$?
23925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926   test $ac_status = 0; }; }
23927     then
23928         gcc_cv_as_powerpc_vsx=yes
23929     else
23930       echo "configure: failed program was" >&5
23931       cat conftest.s >&5
23932     fi
23933     rm -f conftest.o conftest.s
23934   fi
23935 fi
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23937 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23938 if test $gcc_cv_as_powerpc_vsx = yes; then
23939
23940 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23941
23942 fi
23943
23944     case $target in
23945       *-*-aix*) conftest_s='    .machine "pwr7"
23946         .csect .text[PR]
23947         popcntd 3,3';;
23948       *) conftest_s='   .machine power7
23949         .text
23950         popcntd 3,3';;
23951     esac
23952
23953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23954 $as_echo_n "checking assembler for popcntd support... " >&6; }
23955 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23956   $as_echo_n "(cached) " >&6
23957 else
23958   gcc_cv_as_powerpc_popcntd=no
23959     if test $in_tree_gas = yes; then
23960     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23961   then gcc_cv_as_powerpc_popcntd=yes
23962 fi
23963   elif test x$gcc_cv_as != x; then
23964     echo "$conftest_s" > conftest.s
23965     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23966   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23967   (eval $ac_try) 2>&5
23968   ac_status=$?
23969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23970   test $ac_status = 0; }; }
23971     then
23972         gcc_cv_as_powerpc_popcntd=yes
23973     else
23974       echo "configure: failed program was" >&5
23975       cat conftest.s >&5
23976     fi
23977     rm -f conftest.o conftest.s
23978   fi
23979 fi
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23981 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23982 if test $gcc_cv_as_powerpc_popcntd = yes; then
23983
23984 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23985
23986 fi
23987
23988     case $target in
23989       *-*-aix*) conftest_s='    .csect .text[PR]
23990         lwsync';;
23991       *) conftest_s='   .text
23992         lwsync';;
23993     esac
23994
23995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23996 $as_echo_n "checking assembler for lwsync support... " >&6; }
23997 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23998   $as_echo_n "(cached) " >&6
23999 else
24000   gcc_cv_as_powerpc_lwsync=no
24001     if test $in_tree_gas = yes; then
24002     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24003   then gcc_cv_as_powerpc_lwsync=yes
24004 fi
24005   elif test x$gcc_cv_as != x; then
24006     echo "$conftest_s" > conftest.s
24007     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24008   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24009   (eval $ac_try) 2>&5
24010   ac_status=$?
24011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24012   test $ac_status = 0; }; }
24013     then
24014         gcc_cv_as_powerpc_lwsync=yes
24015     else
24016       echo "configure: failed program was" >&5
24017       cat conftest.s >&5
24018     fi
24019     rm -f conftest.o conftest.s
24020   fi
24021 fi
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24023 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24024 if test $gcc_cv_as_powerpc_lwsync = yes; then
24025
24026 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24027
24028 fi
24029
24030     case $target in
24031       *-*-aix*) conftest_s='    .machine "476"
24032         .csect .text[PR]
24033         dci 0';;
24034       *) conftest_s='   .machine "476"
24035         .text
24036         dci 0';;
24037     esac
24038
24039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24040 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24041 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24042   $as_echo_n "(cached) " >&6
24043 else
24044   gcc_cv_as_powerpc_dci=no
24045     if test $in_tree_gas = yes; then
24046     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24047   then gcc_cv_as_powerpc_dci=yes
24048 fi
24049   elif test x$gcc_cv_as != x; then
24050     echo "$conftest_s" > conftest.s
24051     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24052   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24053   (eval $ac_try) 2>&5
24054   ac_status=$?
24055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24056   test $ac_status = 0; }; }
24057     then
24058         gcc_cv_as_powerpc_dci=yes
24059     else
24060       echo "configure: failed program was" >&5
24061       cat conftest.s >&5
24062     fi
24063     rm -f conftest.o conftest.s
24064   fi
24065 fi
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24067 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24068 if test $gcc_cv_as_powerpc_dci = yes; then
24069
24070 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24071
24072 fi
24073
24074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24075 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24076 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24077   $as_echo_n "(cached) " >&6
24078 else
24079   gcc_cv_as_powerpc_gnu_attribute=no
24080     if test $in_tree_gas = yes; then
24081     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24082   then gcc_cv_as_powerpc_gnu_attribute=yes
24083 fi
24084   elif test x$gcc_cv_as != x; then
24085     echo '.gnu_attribute 4,1' > conftest.s
24086     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24087   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24088   (eval $ac_try) 2>&5
24089   ac_status=$?
24090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24091   test $ac_status = 0; }; }
24092     then
24093         gcc_cv_as_powerpc_gnu_attribute=yes
24094     else
24095       echo "configure: failed program was" >&5
24096       cat conftest.s >&5
24097     fi
24098     rm -f conftest.o conftest.s
24099   fi
24100 fi
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24102 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24103 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24104
24105 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24106
24107 fi
24108
24109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24110 $as_echo_n "checking assembler for tls marker support... " >&6; }
24111 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24112   $as_echo_n "(cached) " >&6
24113 else
24114   gcc_cv_as_powerpc_tls_markers=no
24115     if test $in_tree_gas = yes; then
24116     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24117   then gcc_cv_as_powerpc_tls_markers=yes
24118 fi
24119   elif test x$gcc_cv_as != x; then
24120     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24121     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24122   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123   (eval $ac_try) 2>&5
24124   ac_status=$?
24125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126   test $ac_status = 0; }; }
24127     then
24128         gcc_cv_as_powerpc_tls_markers=yes
24129     else
24130       echo "configure: failed program was" >&5
24131       cat conftest.s >&5
24132     fi
24133     rm -f conftest.o conftest.s
24134   fi
24135 fi
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24137 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24138 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24139
24140 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24141
24142 fi
24143
24144     case $target in
24145       *-*-aix*)
24146         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24147 $as_echo_n "checking assembler for .ref support... " >&6; }
24148 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24149   $as_echo_n "(cached) " >&6
24150 else
24151   gcc_cv_as_aix_ref=no
24152     if test $in_tree_gas = yes; then
24153     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24154   then :
24155 fi
24156   elif test x$gcc_cv_as != x; then
24157     echo '      .csect stuff[rw]
24158              stuff:
24159                 .long 1
24160                 .extern sym
24161                 .ref sym
24162           ' > conftest.s
24163     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24164   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24165   (eval $ac_try) 2>&5
24166   ac_status=$?
24167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24168   test $ac_status = 0; }; }
24169     then
24170         gcc_cv_as_aix_ref=yes
24171     else
24172       echo "configure: failed program was" >&5
24173       cat conftest.s >&5
24174     fi
24175     rm -f conftest.o conftest.s
24176   fi
24177 fi
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24179 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24180 if test $gcc_cv_as_aix_ref = yes; then
24181
24182 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24183
24184 fi
24185         ;;
24186     esac
24187     ;;
24188
24189   mips*-*-*)
24190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24191 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24192 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24193   $as_echo_n "(cached) " >&6
24194 else
24195   gcc_cv_as_mips_explicit_relocs=no
24196     if test $in_tree_gas = yes; then
24197     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24198   then gcc_cv_as_mips_explicit_relocs=yes
24199 fi
24200   elif test x$gcc_cv_as != x; then
24201     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24202     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24203   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204   (eval $ac_try) 2>&5
24205   ac_status=$?
24206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207   test $ac_status = 0; }; }
24208     then
24209         gcc_cv_as_mips_explicit_relocs=yes
24210     else
24211       echo "configure: failed program was" >&5
24212       cat conftest.s >&5
24213     fi
24214     rm -f conftest.o conftest.s
24215   fi
24216 fi
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24218 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24219 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24220   if test x$target_cpu_default = x
24221        then target_cpu_default=MASK_EXPLICIT_RELOCS
24222        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24223        fi
24224 fi
24225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24226 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24227 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24228   $as_echo_n "(cached) " >&6
24229 else
24230   gcc_cv_as_mips_no_shared=no
24231     if test $in_tree_gas = yes; then
24232     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24233   then gcc_cv_as_mips_no_shared=yes
24234 fi
24235   elif test x$gcc_cv_as != x; then
24236     echo 'nop' > conftest.s
24237     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24238   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24239   (eval $ac_try) 2>&5
24240   ac_status=$?
24241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24242   test $ac_status = 0; }; }
24243     then
24244         gcc_cv_as_mips_no_shared=yes
24245     else
24246       echo "configure: failed program was" >&5
24247       cat conftest.s >&5
24248     fi
24249     rm -f conftest.o conftest.s
24250   fi
24251 fi
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24253 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24254 if test $gcc_cv_as_mips_no_shared = yes; then
24255
24256 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24257
24258 fi
24259
24260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24261 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24262 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24263   $as_echo_n "(cached) " >&6
24264 else
24265   gcc_cv_as_mips_gnu_attribute=no
24266     if test $in_tree_gas = yes; then
24267     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24268   then gcc_cv_as_mips_gnu_attribute=yes
24269 fi
24270   elif test x$gcc_cv_as != x; then
24271     echo '.gnu_attribute 4,1' > conftest.s
24272     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24273   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274   (eval $ac_try) 2>&5
24275   ac_status=$?
24276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277   test $ac_status = 0; }; }
24278     then
24279         gcc_cv_as_mips_gnu_attribute=yes
24280     else
24281       echo "configure: failed program was" >&5
24282       cat conftest.s >&5
24283     fi
24284     rm -f conftest.o conftest.s
24285   fi
24286 fi
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24288 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24289 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24290
24291 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24292
24293 fi
24294
24295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24296 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24297 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24298   $as_echo_n "(cached) " >&6
24299 else
24300   gcc_cv_as_mips_dtprelword=no
24301     if test $in_tree_gas = yes; then
24302     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24303   then gcc_cv_as_mips_dtprelword=yes
24304 fi
24305   elif test x$gcc_cv_as != x; then
24306     echo '.section .tdata,"awT",@progbits
24307 x:
24308         .word 2
24309         .text
24310         .dtprelword x+0x8000' > conftest.s
24311     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24312   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24313   (eval $ac_try) 2>&5
24314   ac_status=$?
24315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24316   test $ac_status = 0; }; }
24317     then
24318         gcc_cv_as_mips_dtprelword=yes
24319     else
24320       echo "configure: failed program was" >&5
24321       cat conftest.s >&5
24322     fi
24323     rm -f conftest.o conftest.s
24324   fi
24325 fi
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24327 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24328 if test $gcc_cv_as_mips_dtprelword = yes; then
24329
24330 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24331
24332 fi
24333
24334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24335 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24336     gcc_cv_as_ld_jalr_reloc=no
24337     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24338       if test $in_tree_ld = yes ; then
24339         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 \
24340            && test $in_tree_ld_is_elf = yes; then
24341           gcc_cv_as_ld_jalr_reloc=yes
24342         fi
24343       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24344         echo '  .ent x' > conftest.s
24345         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24346         echo '  ld $25,%call16(y)($28)' >> conftest.s
24347         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24348         echo '1:        jalr $25' >> conftest.s
24349         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24350         echo '1:        jalr $25' >> conftest.s
24351         echo '  .end x' >> conftest.s
24352         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24353            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24354           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24355              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24356             gcc_cv_as_ld_jalr_reloc=yes
24357           fi
24358         fi
24359         rm -f conftest.*
24360       fi
24361     fi
24362     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24363       if test x$target_cpu_default = x; then
24364         target_cpu_default=MASK_RELAX_PIC_CALLS
24365       else
24366         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24367       fi
24368     fi
24369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24370 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24371
24372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24373 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24374 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24375   $as_echo_n "(cached) " >&6
24376 else
24377   gcc_cv_ld_mips_personality_relaxation=no
24378        if test $in_tree_ld = yes ; then
24379          if test "$gcc_cv_gld_major_version" -eq 2 \
24380                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24381                  -o "$gcc_cv_gld_major_version" -gt 2; then
24382            gcc_cv_ld_mips_personality_relaxation=yes
24383          fi
24384        elif test x$gcc_cv_as != x \
24385                  -a x$gcc_cv_ld != x \
24386                  -a x$gcc_cv_readelf != x ; then
24387          cat > conftest.s <<EOF
24388         .cfi_startproc
24389         .cfi_personality 0x80,indirect_ptr
24390         .ent test
24391 test:
24392         nop
24393         .end test
24394         .cfi_endproc
24395
24396         .section .data,"aw",@progbits
24397 indirect_ptr:
24398         .dc.a personality
24399 EOF
24400          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24401             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24402            if $gcc_cv_readelf -d conftest 2>&1 \
24403               | grep TEXTREL > /dev/null 2>&1; then
24404              :
24405            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24406                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24407              :
24408            else
24409              gcc_cv_ld_mips_personality_relaxation=yes
24410            fi
24411          fi
24412        fi
24413        rm -f conftest.s conftest.o conftest
24414 fi
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24416 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24417     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24418
24419 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24420
24421     fi
24422     ;;
24423 esac
24424
24425 # Mips and HP-UX need the GNU assembler.
24426 # Linux on IA64 might be able to use the Intel assembler.
24427
24428 case "$target" in
24429   mips*-*-* | *-*-hpux* )
24430     if test x$gas_flag = xyes \
24431        || test x"$host" != x"$build" \
24432        || test ! -x "$gcc_cv_as" \
24433        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24434       :
24435     else
24436       echo "*** This configuration requires the GNU assembler" >&2
24437       exit 1
24438     fi
24439     ;;
24440 esac
24441
24442 # ??? Not all targets support dwarf2 debug_line, even within a version
24443 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24444 # info to the output file.  So, as supported targets are added to gas 2.11,
24445 # add some instruction here to (also) show we expect this might work.
24446 # ??? Once 2.11 is released, probably need to add first known working
24447 # version to the per-target configury.
24448 case "$target" in
24449   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24450   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24451   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24452   | spu-*-* | fido*-*-* | m32c-*-*)
24453     insn="nop"
24454     ;;
24455   ia64*-*-* | s390*-*-*)
24456     insn="nop 0"
24457     ;;
24458   mmix-*-*)
24459     insn="swym 0"
24460     ;;
24461 esac
24462 if test x"$insn" != x; then
24463  conftest_s="\
24464         .file 1 \"conftest.s\"
24465         .loc 1 3 0
24466         $insn"
24467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24468 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24469 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24470   $as_echo_n "(cached) " >&6
24471 else
24472   gcc_cv_as_dwarf2_debug_line=no
24473     if test $in_tree_gas = yes; then
24474     if test $in_tree_gas_is_elf = yes \
24475   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24476   then gcc_cv_as_dwarf2_debug_line=yes
24477 fi
24478   elif test x$gcc_cv_as != x; then
24479     echo "$conftest_s" > conftest.s
24480     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24481   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24482   (eval $ac_try) 2>&5
24483   ac_status=$?
24484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24485   test $ac_status = 0; }; }
24486     then
24487         if test x$gcc_cv_objdump != x \
24488    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24489       | grep debug_line > /dev/null 2>&1; then
24490      gcc_cv_as_dwarf2_debug_line=yes
24491    fi
24492     else
24493       echo "configure: failed program was" >&5
24494       cat conftest.s >&5
24495     fi
24496     rm -f conftest.o conftest.s
24497   fi
24498 fi
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24500 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24501
24502
24503 # The .debug_line file table must be in the exact order that
24504 # we specified the files, since these indices are also used
24505 # by DW_AT_decl_file.  Approximate this test by testing if
24506 # the assembler bitches if the same index is assigned twice.
24507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24508 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24509 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24510   $as_echo_n "(cached) " >&6
24511 else
24512   gcc_cv_as_dwarf2_file_buggy=no
24513   if test x$gcc_cv_as != x; then
24514     echo '      .file 1 "foo.s"
24515         .file 1 "bar.s"' > conftest.s
24516     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24517   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24518   (eval $ac_try) 2>&5
24519   ac_status=$?
24520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24521   test $ac_status = 0; }; }
24522     then
24523         gcc_cv_as_dwarf2_file_buggy=yes
24524     else
24525       echo "configure: failed program was" >&5
24526       cat conftest.s >&5
24527     fi
24528     rm -f conftest.o conftest.s
24529   fi
24530 fi
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24532 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24533
24534
24535  if test $gcc_cv_as_dwarf2_debug_line = yes \
24536  && test $gcc_cv_as_dwarf2_file_buggy = no; then
24537
24538 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24539
24540  fi
24541
24542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24543 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24544 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24545   $as_echo_n "(cached) " >&6
24546 else
24547   gcc_cv_as_gdwarf2_flag=no
24548     if test $in_tree_gas = yes; then
24549     if test $in_tree_gas_is_elf = yes \
24550   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24551   then gcc_cv_as_gdwarf2_flag=yes
24552 fi
24553   elif test x$gcc_cv_as != x; then
24554     echo "$insn" > conftest.s
24555     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24556   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557   (eval $ac_try) 2>&5
24558   ac_status=$?
24559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560   test $ac_status = 0; }; }
24561     then
24562         gcc_cv_as_gdwarf2_flag=yes
24563     else
24564       echo "configure: failed program was" >&5
24565       cat conftest.s >&5
24566     fi
24567     rm -f conftest.o conftest.s
24568   fi
24569 fi
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24571 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24572 if test $gcc_cv_as_gdwarf2_flag = yes; then
24573
24574 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24575
24576 fi
24577
24578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24579 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24580 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24581   $as_echo_n "(cached) " >&6
24582 else
24583   gcc_cv_as_gstabs_flag=no
24584     if test $in_tree_gas = yes; then
24585     if test $in_tree_gas_is_elf = yes \
24586   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24587   then gcc_cv_as_gstabs_flag=yes
24588 fi
24589   elif test x$gcc_cv_as != x; then
24590     echo "$insn" > conftest.s
24591     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24592   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24593   (eval $ac_try) 2>&5
24594   ac_status=$?
24595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24596   test $ac_status = 0; }; }
24597     then
24598         # The native Solaris 9/Intel assembler doesn't understand --gstabs
24599    # and warns about it, but still exits successfully.  So check for
24600    # this.
24601    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24602   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24603   (eval $ac_try) 2>&5
24604   ac_status=$?
24605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24606   test $ac_status = 0; }; }
24607    then :
24608    else gcc_cv_as_gstabs_flag=yes
24609    fi
24610     else
24611       echo "configure: failed program was" >&5
24612       cat conftest.s >&5
24613     fi
24614     rm -f conftest.o conftest.s
24615   fi
24616 fi
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24618 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24619 if test $gcc_cv_as_gstabs_flag = yes; then
24620
24621 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24622
24623 fi
24624
24625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24626 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24627 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24628   $as_echo_n "(cached) " >&6
24629 else
24630   gcc_cv_as_debug_prefix_map_flag=no
24631     if test $in_tree_gas = yes; then
24632     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24633   then gcc_cv_as_debug_prefix_map_flag=yes
24634 fi
24635   elif test x$gcc_cv_as != x; then
24636     echo "$insn" > conftest.s
24637     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24638   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639   (eval $ac_try) 2>&5
24640   ac_status=$?
24641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642   test $ac_status = 0; }; }
24643     then
24644         gcc_cv_as_debug_prefix_map_flag=yes
24645     else
24646       echo "configure: failed program was" >&5
24647       cat conftest.s >&5
24648     fi
24649     rm -f conftest.o conftest.s
24650   fi
24651 fi
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24653 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24654 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24655
24656 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24657
24658 fi
24659 fi
24660
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24662 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24663 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24664   $as_echo_n "(cached) " >&6
24665 else
24666   gcc_cv_as_lcomm_with_alignment=no
24667   if test x$gcc_cv_as != x; then
24668     echo '.lcomm bar,4,16' > conftest.s
24669     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24670   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24674   test $ac_status = 0; }; }
24675     then
24676         gcc_cv_as_lcomm_with_alignment=yes
24677     else
24678       echo "configure: failed program was" >&5
24679       cat conftest.s >&5
24680     fi
24681     rm -f conftest.o conftest.s
24682   fi
24683 fi
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24685 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24686 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24687
24688 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24689
24690 fi
24691
24692 # Check whether --enable-gnu-unique-object was given.
24693 if test "${enable_gnu_unique_object+set}" = set; then :
24694   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24695     yes | no) ;;
24696     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24697 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24698   esac
24699 else
24700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24701 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24702 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24703   $as_echo_n "(cached) " >&6
24704 else
24705   gcc_cv_as_gnu_unique_object=no
24706     if test $in_tree_gas = yes; then
24707     if test $in_tree_gas_is_elf = yes \
24708   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24709   then gcc_cv_as_gnu_unique_object=yes
24710 fi
24711   elif test x$gcc_cv_as != x; then
24712     echo '.type foo, @gnu_unique_object' > conftest.s
24713     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24714   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715   (eval $ac_try) 2>&5
24716   ac_status=$?
24717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718   test $ac_status = 0; }; }
24719     then
24720         gcc_cv_as_gnu_unique_object=yes
24721     else
24722       echo "configure: failed program was" >&5
24723       cat conftest.s >&5
24724     fi
24725     rm -f conftest.o conftest.s
24726   fi
24727 fi
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24729 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24730 if test $gcc_cv_as_gnu_unique_object = yes; then
24731   # Also check for ld.so support, i.e. glibc 2.11 or higher.
24732    if test x$host = x$build -a x$host = x$target &&
24733        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24734       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24735       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24736       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24737       if test "$glibcnum" -ge 2011 ; then
24738         enable_gnu_unique_object=yes
24739       fi
24740     fi
24741 fi
24742 fi
24743
24744 if test x$enable_gnu_unique_object = xyes; then
24745
24746 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24747
24748 fi
24749
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24751 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24752 if test "${gcc_cv_as_line_zero+set}" = set; then :
24753   $as_echo_n "(cached) " >&6
24754 else
24755   gcc_cv_as_line_zero=no
24756   if test $in_tree_gas = yes; then
24757     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24758   then gcc_cv_as_line_zero=yes
24759 fi
24760   elif test "x$gcc_cv_as" != x; then
24761     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24762     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24763   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764   (eval $ac_try) 2>&5
24765   ac_status=$?
24766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767   test $ac_status = 0; }; } &&
24768        test "x`cat conftest.out`" = x
24769     then
24770       gcc_cv_as_line_zero=yes
24771     else
24772       echo "configure: failed program was" >&5
24773       cat conftest.s >&5
24774       echo "configure: error output was" >&5
24775       cat conftest.out >&5
24776     fi
24777     rm -f conftest.o conftest.s conftest.out
24778   fi
24779 fi
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24781 $as_echo "$gcc_cv_as_line_zero" >&6; }
24782 if test "x$gcc_cv_as_line_zero" = xyes; then
24783
24784 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24785
24786 fi
24787
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24789 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24790 gcc_cv_ld_eh_frame_hdr=no
24791 if test $in_tree_ld = yes ; then
24792   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
24793      && test $in_tree_ld_is_elf = yes; then
24794     gcc_cv_ld_eh_frame_hdr=yes
24795   fi
24796 elif test x$gcc_cv_ld != x; then
24797         # Check if linker supports --eh-frame-hdr option
24798         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24799                 gcc_cv_ld_eh_frame_hdr=yes
24800         fi
24801 fi
24802
24803 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24804
24805 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24806
24807 fi
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24809 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24810
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24812 $as_echo_n "checking linker position independent executable support... " >&6; }
24813 gcc_cv_ld_pie=no
24814 if test $in_tree_ld = yes ; then
24815   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 \
24816      && test $in_tree_ld_is_elf = yes; then
24817     gcc_cv_ld_pie=yes
24818   fi
24819 elif test x$gcc_cv_ld != x; then
24820         # Check if linker supports -pie option
24821         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24822                 gcc_cv_ld_pie=yes
24823         fi
24824 fi
24825 if test x"$gcc_cv_ld_pie" = xyes; then
24826
24827 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24828
24829 fi
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24831 $as_echo "$gcc_cv_ld_pie" >&6; }
24832
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24834 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24835 gcc_cv_ld_eh_gc_sections=no
24836 if test $in_tree_ld = yes ; then
24837   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 \
24838      && test $in_tree_ld_is_elf = yes; then
24839     gcc_cv_ld_eh_gc_sections=yes
24840   fi
24841 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24842   cat > conftest.s <<EOF
24843         .section        .text
24844 .globl _start
24845         .type _start, @function
24846 _start:
24847         .long foo
24848         .size _start, .-_start
24849         .section        .text.foo,"ax",@progbits
24850         .type foo, @function
24851 foo:
24852         .long 0
24853         .size foo, .-foo
24854         .section        .gcc_except_table.foo,"a",@progbits
24855 .L0:
24856         .long 0
24857         .section        .eh_frame,"a",@progbits
24858         .long .L0
24859 EOF
24860   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24861     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24862          | grep "gc-sections option ignored" > /dev/null; then
24863       gcc_cv_ld_eh_gc_sections=no
24864     elif $gcc_cv_objdump -h conftest 2> /dev/null \
24865          | grep gcc_except_table > /dev/null; then
24866       gcc_cv_ld_eh_gc_sections=yes
24867       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24868       if test x$gcc_cv_as_comdat_group != xyes; then
24869         gcc_cv_ld_eh_gc_sections=no
24870         cat > conftest.s <<EOF
24871         .section        .text
24872 .globl _start
24873         .type _start, @function
24874 _start:
24875         .long foo
24876         .size _start, .-_start
24877         .section        .gnu.linkonce.t.foo,"ax",@progbits
24878         .type foo, @function
24879 foo:
24880         .long 0
24881         .size foo, .-foo
24882         .section        .gcc_except_table.foo,"a",@progbits
24883 .L0:
24884         .long 0
24885         .section        .eh_frame,"a",@progbits
24886         .long .L0
24887 EOF
24888         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24889           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24890                | grep "gc-sections option ignored" > /dev/null; then
24891             gcc_cv_ld_eh_gc_sections=no
24892           elif $gcc_cv_objdump -h conftest 2> /dev/null \
24893                | grep gcc_except_table > /dev/null; then
24894             gcc_cv_ld_eh_gc_sections=yes
24895           fi
24896         fi
24897       fi
24898     fi
24899   fi
24900   rm -f conftest.s conftest.o conftest
24901 fi
24902 case "$target" in
24903   hppa*-*-linux*)
24904     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24905     gcc_cv_ld_eh_gc_sections=no
24906     ;;
24907 esac
24908 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24909
24910 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24911
24912 fi
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24914 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24915
24916 # --------
24917 # UNSORTED
24918 # --------
24919
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24921 $as_echo_n "checking linker --as-needed support... " >&6; }
24922 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24923   $as_echo_n "(cached) " >&6
24924 else
24925   gcc_cv_ld_as_needed=no
24926 if test $in_tree_ld = yes ; then
24927   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 \
24928      && test $in_tree_ld_is_elf = yes; then
24929     gcc_cv_ld_as_needed=yes
24930   fi
24931 elif test x$gcc_cv_ld != x; then
24932         # Check if linker supports --as-needed and --no-as-needed options
24933         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24934                 gcc_cv_ld_as_needed=yes
24935         fi
24936 fi
24937
24938 fi
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24940 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24941 if test x"$gcc_cv_ld_as_needed" = xyes; then
24942
24943 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24944
24945 fi
24946
24947 case "$target:$tm_file" in
24948   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24950 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24951 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24952   $as_echo_n "(cached) " >&6
24953 else
24954   gcc_cv_ld_no_dot_syms=no
24955     if test $in_tree_ld = yes ; then
24956       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
24957         gcc_cv_ld_no_dot_syms=yes
24958       fi
24959     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24960       cat > conftest1.s <<EOF
24961         .text
24962         bl .foo
24963 EOF
24964       cat > conftest2.s <<EOF
24965         .section ".opd","aw"
24966         .align 3
24967         .globl foo
24968         .type foo,@function
24969 foo:
24970         .quad .LEfoo,.TOC.@tocbase,0
24971         .text
24972 .LEfoo:
24973         blr
24974         .size foo,.-.LEfoo
24975 EOF
24976       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24977          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24978          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24979         gcc_cv_ld_no_dot_syms=yes
24980       fi
24981       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24982     fi
24983
24984 fi
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24986 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24987     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24988
24989 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24990
24991     fi
24992
24993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
24994 $as_echo_n "checking linker large toc support... " >&6; }
24995 if test "${gcc_cv_ld_large_toc+set}" = set; then :
24996   $as_echo_n "(cached) " >&6
24997 else
24998   gcc_cv_ld_large_toc=no
24999     if test $in_tree_ld = yes ; then
25000       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
25001         gcc_cv_ld_large_toc=yes
25002       fi
25003     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25004       cat > conftest.s <<EOF
25005         .section ".tbss","awT",@nobits
25006         .align 3
25007 ie0:    .space 8
25008         .global _start
25009         .text
25010 _start:
25011         addis 9,13,ie0@got@tprel@ha
25012         ld 9,ie0@got@tprel@l(9)
25013 EOF
25014       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25015          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25016         gcc_cv_ld_large_toc=yes
25017       fi
25018       rm -f conftest conftest.o conftest.s
25019     fi
25020
25021 fi
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25023 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25024     if test x"$gcc_cv_ld_large_toc" = xyes; then
25025
25026 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25027
25028     fi
25029     ;;
25030 esac
25031
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25033 $as_echo_n "checking linker --build-id support... " >&6; }
25034 if test "${gcc_cv_ld_buildid+set}" = set; then :
25035   $as_echo_n "(cached) " >&6
25036 else
25037   gcc_cv_ld_buildid=no
25038   if test $in_tree_ld = yes ; then
25039     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25040        "$gcc_cv_gld_minor_version" -ge 18 -o \
25041        "$gcc_cv_gld_major_version" -gt 2 \
25042        && test $in_tree_ld_is_elf = yes; then
25043       gcc_cv_ld_buildid=yes
25044     fi
25045   elif test x$gcc_cv_ld != x; then
25046     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25047       gcc_cv_ld_buildid=yes
25048     fi
25049   fi
25050 fi
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25052 $as_echo "$gcc_cv_ld_buildid" >&6; }
25053 if test x"$gcc_cv_ld_buildid" = xyes; then
25054
25055 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25056
25057 fi
25058
25059 # Check whether --enable-linker-build-id was given.
25060 if test "${enable_linker_build_id+set}" = set; then :
25061   enableval=$enable_linker_build_id;
25062 else
25063   enable_linker_build_id=no
25064 fi
25065
25066
25067 if test x"$enable_linker_build_id" = xyes; then
25068   if test x"$gcc_cv_ld_buildid" = xyes; then
25069
25070 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25071
25072   else
25073     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25074 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25075   fi
25076 fi
25077
25078 # In binutils 2.21, GNU ld gained support for new emulations fully
25079 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25081 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25082 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25083   $as_echo_n "(cached) " >&6
25084 else
25085   gcc_cv_ld_sol2_emulation=no
25086   if test $in_tree_ld = yes ; then
25087     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25088        "$gcc_cv_gld_minor_version" -ge 21 -o \
25089        "$gcc_cv_gld_major_version" -gt 2 \
25090        && test $in_tree_ld_is_elf = yes; then
25091       gcc_cv_ld_sol2_emulation=yes
25092     fi
25093   elif test x$gcc_cv_ld != x; then
25094     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25095        grep _sol2 > /dev/null; then
25096       gcc_cv_ld_sol2_emulation=yes
25097     fi
25098   fi
25099 fi
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25101 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25102 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25103
25104 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25105
25106 fi
25107
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25109 $as_echo_n "checking linker --sysroot support... " >&6; }
25110 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25111   $as_echo_n "(cached) " >&6
25112 else
25113   gcc_cv_ld_sysroot=no
25114   if test $in_tree_ld = yes ; then
25115       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
25116         gcc_cv_ld_sysroot=yes
25117       fi
25118   elif test x$gcc_cv_ld != x; then
25119     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25120       gcc_cv_ld_sysroot=yes
25121     fi
25122   fi
25123 fi
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25125 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25126 if test x"$gcc_cv_ld_sysroot" = xyes; then
25127
25128 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25129
25130 fi
25131
25132 if test x$with_sysroot = x && test x$host = x$target \
25133    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25134    && test "$prefix" != "NONE"; then
25135
25136 cat >>confdefs.h <<_ACEOF
25137 #define PREFIX_INCLUDE_DIR "$prefix/include"
25138 _ACEOF
25139
25140 fi
25141
25142 # Test for stack protector support in target C library.
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25144 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25145 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25146   $as_echo_n "(cached) " >&6
25147 else
25148   gcc_cv_libc_provides_ssp=no
25149     case "$target" in
25150        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25151       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25152         if test "x$with_headers" != x; then
25153           glibc_header_dir=$with_headers
25154         elif test "x$with_sysroot" = x; then
25155           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25156         elif test "x$with_build_sysroot" != "x"; then
25157           glibc_header_dir="${with_build_sysroot}/usr/include"
25158         elif test "x$with_sysroot" = xyes; then
25159           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25160         else
25161           glibc_header_dir="${with_sysroot}/usr/include"
25162         fi
25163       else
25164         glibc_header_dir=/usr/include
25165       fi
25166       # glibc 2.4 and later provides __stack_chk_fail and
25167       # either __stack_chk_guard, or TLS access to stack guard canary.
25168       if test -f $glibc_header_dir/features.h \
25169          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25170             $glibc_header_dir/features.h > /dev/null; then
25171         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25172            $glibc_header_dir/features.h > /dev/null; then
25173           gcc_cv_libc_provides_ssp=yes
25174         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25175              $glibc_header_dir/features.h > /dev/null \
25176              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25177              $glibc_header_dir/features.h > /dev/null; then
25178           gcc_cv_libc_provides_ssp=yes
25179         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25180              $glibc_header_dir/features.h > /dev/null && \
25181              test -f $glibc_header_dir/bits/uClibc_config.h && \
25182              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25183              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25184           gcc_cv_libc_provides_ssp=yes
25185         fi
25186       fi
25187         ;;
25188        *-*-gnu*)
25189          # Avoid complicated tests (see
25190          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25191          # simply assert that glibc does provide this, which is true for all
25192          # realistically usable GNU/Hurd configurations.
25193          gcc_cv_libc_provides_ssp=yes;;
25194        *-*-darwin* | *-*-freebsd*)
25195          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25196 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25197   gcc_cv_libc_provides_ssp=yes
25198 else
25199   echo "no __stack_chk_fail on this target"
25200 fi
25201
25202         ;;
25203   *) gcc_cv_libc_provides_ssp=no ;;
25204     esac
25205 fi
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25207 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25208
25209 if test x$gcc_cv_libc_provides_ssp = xyes; then
25210
25211 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25212
25213 fi
25214
25215 # Check if TFmode long double should be used by default or not.
25216 # Some glibc targets used DFmode long double, but with glibc 2.4
25217 # and later they can use TFmode.
25218 case "$target" in
25219   powerpc*-*-linux* | \
25220   powerpc*-*-gnu* | \
25221   sparc*-*-linux* | \
25222   s390*-*-linux* | \
25223   alpha*-*-linux*)
25224
25225 # Check whether --with-long-double-128 was given.
25226 if test "${with_long_double_128+set}" = set; then :
25227   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25228 else
25229   gcc_cv_target_ldbl128=no
25230       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25231         if test "x$with_sysroot" = x; then
25232           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25233         elif test "x$with_build_sysroot" != "x"; then
25234           glibc_header_dir="${with_build_sysroot}/usr/include"
25235         elif test "x$with_sysroot" = xyes; then
25236           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25237         else
25238           glibc_header_dir="${with_sysroot}/usr/include"
25239         fi
25240       else
25241         glibc_header_dir=/usr/include
25242       fi
25243       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25244         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25245       && gcc_cv_target_ldbl128=yes
25246
25247 fi
25248
25249     ;;
25250 esac
25251 if test x$gcc_cv_target_ldbl128 = xyes; then
25252
25253 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25254
25255 fi
25256
25257 # Find out what GC implementation we want, or may, use.
25258
25259 # Check whether --with-gc was given.
25260 if test "${with_gc+set}" = set; then :
25261   withval=$with_gc; case "$withval" in
25262   page)
25263     GGC=ggc-$withval
25264     ;;
25265   zone)
25266     GGC=ggc-$withval
25267
25268 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25269
25270     ;;
25271   *)
25272     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25273     ;;
25274 esac
25275 else
25276   GGC=ggc-page
25277 fi
25278
25279
25280 echo "Using $GGC for garbage collection."
25281
25282 # Libraries to use on the host.  This will normally be set by the top
25283 # level Makefile.  Here we simply capture the value for our Makefile.
25284 if test -z "${HOST_LIBS+set}"; then
25285   HOST_LIBS=
25286 fi
25287
25288
25289 # Use the system's zlib library.
25290 zlibdir=-L../zlib
25291 zlibinc="-I\$(srcdir)/../zlib"
25292
25293 # Check whether --with-system-zlib was given.
25294 if test "${with_system_zlib+set}" = set; then :
25295   withval=$with_system_zlib; zlibdir=
25296 zlibinc=
25297
25298 fi
25299
25300
25301
25302
25303
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25305 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25306     # Check whether --enable-maintainer-mode was given.
25307 if test "${enable_maintainer_mode+set}" = set; then :
25308   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25309 else
25310   maintainer_mode=no
25311 fi
25312
25313
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25315 $as_echo "$maintainer_mode" >&6; }
25316
25317 if test "$maintainer_mode" = "yes"; then
25318   MAINT=''
25319 else
25320   MAINT='#'
25321 fi
25322
25323 # --------------
25324 # Language hooks
25325 # --------------
25326
25327 # Make empty files to contain the specs and options for each language.
25328 # Then add #include lines to for a compiler that has specs and/or options.
25329
25330 subdirs=
25331 lang_opt_files=
25332 lang_specs_files=
25333 lang_tree_files=
25334 # These (without "all_") are set in each config-lang.in.
25335 # `language' must be a single word so is spelled singularly.
25336 all_languages=
25337 all_compilers=
25338 all_outputs='Makefile gccbug'
25339 # List of language makefile fragments.
25340 all_lang_makefrags=
25341 # Additional files for gengtype
25342 all_gtfiles="$target_gtfiles"
25343
25344 # These are the languages that are set in --enable-languages,
25345 # and are available in the GCC tree.
25346 all_selected_languages=
25347
25348 # Add the language fragments.
25349 # Languages are added via two mechanisms.  Some information must be
25350 # recorded in makefile variables, these are defined in config-lang.in.
25351 # We accumulate them and plug them into the main Makefile.
25352 # The other mechanism is a set of hooks for each of the main targets
25353 # like `clean', `install', etc.
25354
25355 language_hooks="Make-hooks"
25356
25357 for lang in ${srcdir}/*/config-lang.in
25358 do
25359         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25360
25361         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25362         if test "x$lang_alias" = x
25363         then
25364               echo "$lang doesn't set \$language." 1>&2
25365               exit 1
25366         fi
25367         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25368         subdirs="$subdirs $subdir"
25369
25370         # $gcc_subdir is where the gcc integration files are to be found
25371         # for a language, both for internal compiler purposes (compiler
25372         # sources implementing front-end to GCC tree converters), and for
25373         # build infrastructure purposes (Make-lang.in, etc.)
25374         #
25375         # This will be <subdir> (relative to $srcdir) if a line like
25376         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25377         # is found in <langdir>/config-lang.in, and will remain <langdir>
25378         # otherwise.
25379         #
25380         # Except for the language alias (fetched above), the regular
25381         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25382         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25383         # only this and the language alias.
25384
25385         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25386         if [ "$gcc_subdir" = "" ]; then
25387            gcc_subdir="$subdir"
25388         fi
25389
25390         case ",$enable_languages," in
25391         *,$lang_alias,*)
25392             all_selected_languages="$all_selected_languages $lang_alias"
25393             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25394                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25395             fi
25396             ;;
25397         esac
25398
25399         language=
25400         boot_language=
25401         compilers=
25402         outputs=
25403         gtfiles=
25404         subdir_requires=
25405         . ${srcdir}/$gcc_subdir/config-lang.in
25406         if test "x$language" = x
25407         then
25408                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25409                 exit 1
25410         fi
25411
25412         ok=:
25413         case ",$enable_languages," in
25414                 *,$lang_alias,*) ;;
25415                 *)
25416                         for i in $subdir_requires; do
25417                                 test -f "${srcdir}/$i/config-lang.in" && continue
25418                                 ok=false
25419                                 break
25420                         done
25421                 ;;
25422         esac
25423         $ok || continue
25424
25425         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25426         if test -f $srcdir/$gcc_subdir/lang.opt; then
25427             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25428         fi
25429         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25430             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25431         fi
25432         all_languages="$all_languages $language"
25433         all_compilers="$all_compilers $compilers"
25434         all_outputs="$all_outputs $outputs"
25435         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25436         case ",$enable_languages," in
25437                 *,lto,*)
25438
25439 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25440
25441                     enable_lto=yes
25442
25443                     # LTO needs to speak the platform's object file format, and has a
25444                     # number of implementations of the required binary file access APIs.
25445                     # ELF is the most common, and default.  We only link libelf if ELF
25446                     # is indeed the selected format.
25447                     LTO_BINARY_READER=${lto_binary_reader}
25448                     LTO_USE_LIBELF=-lelf
25449                     if test "x$lto_binary_reader" != "xlto-elf" ; then
25450                       LTO_USE_LIBELF=
25451                     fi
25452
25453
25454                     ;;
25455                 *) ;;
25456         esac
25457 done
25458
25459 # Pick up gtfiles for c
25460 gtfiles=
25461 . ${srcdir}/c-config-lang.in
25462 all_gtfiles="$all_gtfiles [c] $gtfiles"
25463
25464 check_languages=
25465 for language in $all_selected_languages
25466 do
25467         check_languages="$check_languages check-$language"
25468 done
25469
25470 # We link each language in with a set of hooks, reached indirectly via
25471 # lang.${target}.  Only do so for selected languages.
25472
25473 rm -f Make-hooks
25474 touch Make-hooks
25475 target_list="all.cross start.encap rest.encap tags \
25476         install-common install-man install-info install-pdf install-html dvi \
25477         pdf html uninstall info man srcextra srcman srcinfo \
25478         mostlyclean clean distclean maintainer-clean install-plugin"
25479
25480 for t in $target_list
25481 do
25482         x=
25483         for lang in $all_selected_languages
25484         do
25485                 x="$x $lang.$t"
25486         done
25487         echo "lang.$t: $x" >> Make-hooks
25488 done
25489
25490 # --------
25491 # UNSORTED
25492 # --------
25493
25494 # Create .gdbinit.
25495
25496 echo "dir ." > .gdbinit
25497 echo "dir ${srcdir}" >> .gdbinit
25498 if test x$gdb_needs_out_file_path = xyes
25499 then
25500         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25501 fi
25502 if test "x$subdirs" != x; then
25503         for s in $subdirs
25504         do
25505                 echo "dir ${srcdir}/$s" >> .gdbinit
25506         done
25507 fi
25508 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25509
25510 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25511
25512
25513
25514 # Find a directory in which to install a shared libgcc.
25515
25516 # Check whether --enable-version-specific-runtime-libs was given.
25517 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25518   enableval=$enable_version_specific_runtime_libs;
25519 fi
25520
25521
25522
25523 # Check whether --with-slibdir was given.
25524 if test "${with_slibdir+set}" = set; then :
25525   withval=$with_slibdir; slibdir="$with_slibdir"
25526 else
25527   if test "${enable_version_specific_runtime_libs+set}" = set; then
25528   slibdir='$(libsubdir)'
25529 elif test "$host" != "$target"; then
25530   slibdir='$(build_tooldir)/lib'
25531 else
25532   slibdir='$(libdir)'
25533 fi
25534 fi
25535
25536
25537
25538 # Substitute configuration variables
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601 # Echo link setup.
25602 if test x${build} = x${host} ; then
25603   if test x${host} = x${target} ; then
25604     echo "Links are now set up to build a native compiler for ${target}." 1>&2
25605   else
25606     echo "Links are now set up to build a cross-compiler" 1>&2
25607     echo " from ${host} to ${target}." 1>&2
25608   fi
25609 else
25610   if test x${host} = x${target} ; then
25611     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25612     echo " for ${target}." 1>&2
25613   else
25614     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25615     echo " from ${host} to ${target}." 1>&2
25616   fi
25617 fi
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627 if test "x${CLOOGLIBS}" != "x" ; then
25628
25629 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25630
25631 fi
25632
25633
25634
25635 if test "x${LIBELFLIBS}" != "x" ; then
25636
25637 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25638
25639 fi
25640
25641 # Check for plugin support
25642 # Check whether --enable-plugin was given.
25643 if test "${enable_plugin+set}" = set; then :
25644   enableval=$enable_plugin; enable_plugin=$enableval
25645 else
25646   enable_plugin=yes; default_plugin=yes
25647 fi
25648
25649
25650 pluginlibs=
25651 if test x"$enable_plugin" = x"yes"; then
25652
25653   case "${host}" in
25654     *-*-darwin*)
25655       export_sym_check="$gcc_cv_nm -g"
25656     ;;
25657     *)
25658       export_sym_check="$gcc_cv_objdump -T"
25659     ;;
25660   esac
25661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25662 $as_echo_n "checking for exported symbols... " >&6; }
25663   echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25664   ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25665   if $export_sym_check conftest | grep foobar > /dev/null; then
25666     : # No need to use a flag
25667   else
25668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25669 $as_echo_n "checking for -rdynamic... " >&6; }
25670     ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25671     if $export_sym_check conftest | grep foobar > /dev/null; then
25672       plugin_rdynamic=yes
25673       pluginlibs="-rdynamic"
25674     else
25675       plugin_rdynamic=no
25676       enable_plugin=no
25677     fi
25678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25679 $as_echo "$plugin_rdynamic" >&6; }
25680   fi
25681
25682   # Check -ldl
25683   saved_LIBS="$LIBS"
25684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25685 $as_echo_n "checking for library containing dlopen... " >&6; }
25686 if test "${ac_cv_search_dlopen+set}" = set; then :
25687   $as_echo_n "(cached) " >&6
25688 else
25689   ac_func_search_save_LIBS=$LIBS
25690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25691 /* end confdefs.h.  */
25692
25693 /* Override any GCC internal prototype to avoid an error.
25694    Use char because int might match the return type of a GCC
25695    builtin and then its argument prototype would still apply.  */
25696 #ifdef __cplusplus
25697 extern "C"
25698 #endif
25699 char dlopen ();
25700 int
25701 main ()
25702 {
25703 return dlopen ();
25704   ;
25705   return 0;
25706 }
25707 _ACEOF
25708 for ac_lib in '' dl; do
25709   if test -z "$ac_lib"; then
25710     ac_res="none required"
25711   else
25712     ac_res=-l$ac_lib
25713     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25714   fi
25715   if ac_fn_c_try_link "$LINENO"; then :
25716   ac_cv_search_dlopen=$ac_res
25717 fi
25718 rm -f core conftest.err conftest.$ac_objext \
25719     conftest$ac_exeext
25720   if test "${ac_cv_search_dlopen+set}" = set; then :
25721   break
25722 fi
25723 done
25724 if test "${ac_cv_search_dlopen+set}" = set; then :
25725
25726 else
25727   ac_cv_search_dlopen=no
25728 fi
25729 rm conftest.$ac_ext
25730 LIBS=$ac_func_search_save_LIBS
25731 fi
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25733 $as_echo "$ac_cv_search_dlopen" >&6; }
25734 ac_res=$ac_cv_search_dlopen
25735 if test "$ac_res" != no; then :
25736   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25737
25738 fi
25739
25740   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25741     pluginlibs="$pluginlibs -ldl"
25742   fi
25743   LIBS="$saved_LIBS"
25744
25745   # Check that we can build shared objects with -fPIC -shared
25746   saved_LDFLAGS="$LDFLAGS"
25747   case "${host}" in
25748     *-*-darwin*)
25749       LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25750     ;;
25751     *)
25752       LDFLAGS="$LDFLAGS -fPIC -shared"
25753     ;;
25754   esac
25755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25756 $as_echo_n "checking for -fPIC -shared... " >&6; }
25757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25758 /* end confdefs.h.  */
25759 extern int X;
25760 int
25761 main ()
25762 {
25763 return X == 0;
25764   ;
25765   return 0;
25766 }
25767 _ACEOF
25768 if ac_fn_c_try_link "$LINENO"; then :
25769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25770 $as_echo "yes" >&6; }; have_pic_shared=yes
25771 else
25772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25773 $as_echo "no" >&6; }; have_pic_shared=no
25774 fi
25775 rm -f core conftest.err conftest.$ac_objext \
25776     conftest$ac_exeext conftest.$ac_ext
25777   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25778     pluginlibs=
25779     enable_plugin=no
25780   fi
25781   LDFLAGS="$saved_LDFLAGS"
25782
25783   # If plugin support had been requested but not available, fail.
25784   if test x"$enable_plugin" = x"no" ; then
25785     if test x"$default_plugin" != x"yes"; then
25786       as_fn_error "
25787 Building GCC with plugin support requires a host that supports
25788 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25789     fi
25790   fi
25791 fi
25792
25793
25794
25795 if test x"$enable_plugin" = x"yes"; then
25796
25797 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25798
25799 fi
25800
25801 # Configure the subdirectories
25802 # AC_CONFIG_SUBDIRS($subdirs)
25803
25804 # Create the Makefile
25805 # and configure language subdirectories
25806 ac_config_files="$ac_config_files $all_outputs"
25807
25808
25809 ac_config_commands="$ac_config_commands default"
25810
25811 cat >confcache <<\_ACEOF
25812 # This file is a shell script that caches the results of configure
25813 # tests run on this system so they can be shared between configure
25814 # scripts and configure runs, see configure's option --config-cache.
25815 # It is not useful on other systems.  If it contains results you don't
25816 # want to keep, you may remove or edit it.
25817 #
25818 # config.status only pays attention to the cache file if you give it
25819 # the --recheck option to rerun configure.
25820 #
25821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25823 # following values.
25824
25825 _ACEOF
25826
25827 # The following way of writing the cache mishandles newlines in values,
25828 # but we know of no workaround that is simple, portable, and efficient.
25829 # So, we kill variables containing newlines.
25830 # Ultrix sh set writes to stderr and can't be redirected directly,
25831 # and sets the high bit in the cache file unless we assign to the vars.
25832 (
25833   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25834     eval ac_val=\$$ac_var
25835     case $ac_val in #(
25836     *${as_nl}*)
25837       case $ac_var in #(
25838       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25839 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25840       esac
25841       case $ac_var in #(
25842       _ | IFS | as_nl) ;; #(
25843       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25844       *) { eval $ac_var=; unset $ac_var;} ;;
25845       esac ;;
25846     esac
25847   done
25848
25849   (set) 2>&1 |
25850     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25851     *${as_nl}ac_space=\ *)
25852       # `set' does not quote correctly, so add quotes: double-quote
25853       # substitution turns \\\\ into \\, and sed turns \\ into \.
25854       sed -n \
25855         "s/'/'\\\\''/g;
25856           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25857       ;; #(
25858     *)
25859       # `set' quotes correctly as required by POSIX, so do not add quotes.
25860       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25861       ;;
25862     esac |
25863     sort
25864 ) |
25865   sed '
25866      /^ac_cv_env_/b end
25867      t clear
25868      :clear
25869      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25870      t end
25871      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25872      :end' >>confcache
25873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25874   if test -w "$cache_file"; then
25875     test "x$cache_file" != "x/dev/null" &&
25876       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25877 $as_echo "$as_me: updating cache $cache_file" >&6;}
25878     cat confcache >$cache_file
25879   else
25880     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25881 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25882   fi
25883 fi
25884 rm -f confcache
25885
25886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25887 # Let make expand exec_prefix.
25888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25889
25890 DEFS=-DHAVE_CONFIG_H
25891
25892 ac_libobjs=
25893 ac_ltlibobjs=
25894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25895   # 1. Remove the extension, and $U if already installed.
25896   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25897   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25898   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25899   #    will be set to the directory where LIBOBJS objects are built.
25900   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25901   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25902 done
25903 LIBOBJS=$ac_libobjs
25904
25905 LTLIBOBJS=$ac_ltlibobjs
25906
25907
25908
25909
25910 : ${CONFIG_STATUS=./config.status}
25911 ac_write_fail=0
25912 ac_clean_files_save=$ac_clean_files
25913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25915 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25916 as_write_fail=0
25917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25918 #! $SHELL
25919 # Generated by $as_me.
25920 # Run this file to recreate the current configuration.
25921 # Compiler output produced by configure, useful for debugging
25922 # configure, is in config.log if it exists.
25923
25924 debug=false
25925 ac_cs_recheck=false
25926 ac_cs_silent=false
25927
25928 SHELL=\${CONFIG_SHELL-$SHELL}
25929 export SHELL
25930 _ASEOF
25931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25932 ## -------------------- ##
25933 ## M4sh Initialization. ##
25934 ## -------------------- ##
25935
25936 # Be more Bourne compatible
25937 DUALCASE=1; export DUALCASE # for MKS sh
25938 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25939   emulate sh
25940   NULLCMD=:
25941   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25942   # is contrary to our usage.  Disable this feature.
25943   alias -g '${1+"$@"}'='"$@"'
25944   setopt NO_GLOB_SUBST
25945 else
25946   case `(set -o) 2>/dev/null` in #(
25947   *posix*) :
25948     set -o posix ;; #(
25949   *) :
25950      ;;
25951 esac
25952 fi
25953
25954
25955 as_nl='
25956 '
25957 export as_nl
25958 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25959 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25961 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25962 # Prefer a ksh shell builtin over an external printf program on Solaris,
25963 # but without wasting forks for bash or zsh.
25964 if test -z "$BASH_VERSION$ZSH_VERSION" \
25965     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25966   as_echo='print -r --'
25967   as_echo_n='print -rn --'
25968 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25969   as_echo='printf %s\n'
25970   as_echo_n='printf %s'
25971 else
25972   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25973     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25974     as_echo_n='/usr/ucb/echo -n'
25975   else
25976     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25977     as_echo_n_body='eval
25978       arg=$1;
25979       case $arg in #(
25980       *"$as_nl"*)
25981         expr "X$arg" : "X\\(.*\\)$as_nl";
25982         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25983       esac;
25984       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25985     '
25986     export as_echo_n_body
25987     as_echo_n='sh -c $as_echo_n_body as_echo'
25988   fi
25989   export as_echo_body
25990   as_echo='sh -c $as_echo_body as_echo'
25991 fi
25992
25993 # The user is always right.
25994 if test "${PATH_SEPARATOR+set}" != set; then
25995   PATH_SEPARATOR=:
25996   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25997     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25998       PATH_SEPARATOR=';'
25999   }
26000 fi
26001
26002
26003 # IFS
26004 # We need space, tab and new line, in precisely that order.  Quoting is
26005 # there to prevent editors from complaining about space-tab.
26006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26007 # splitting by setting IFS to empty value.)
26008 IFS=" ""        $as_nl"
26009
26010 # Find who we are.  Look in the path if we contain no directory separator.
26011 case $0 in #((
26012   *[\\/]* ) as_myself=$0 ;;
26013   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26014 for as_dir in $PATH
26015 do
26016   IFS=$as_save_IFS
26017   test -z "$as_dir" && as_dir=.
26018     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26019   done
26020 IFS=$as_save_IFS
26021
26022      ;;
26023 esac
26024 # We did not find ourselves, most probably we were run as `sh COMMAND'
26025 # in which case we are not to be found in the path.
26026 if test "x$as_myself" = x; then
26027   as_myself=$0
26028 fi
26029 if test ! -f "$as_myself"; then
26030   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26031   exit 1
26032 fi
26033
26034 # Unset variables that we do not need and which cause bugs (e.g. in
26035 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26036 # suppresses any "Segmentation fault" message there.  '((' could
26037 # trigger a bug in pdksh 5.2.14.
26038 for as_var in BASH_ENV ENV MAIL MAILPATH
26039 do eval test x\${$as_var+set} = xset \
26040   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26041 done
26042 PS1='$ '
26043 PS2='> '
26044 PS4='+ '
26045
26046 # NLS nuisances.
26047 LC_ALL=C
26048 export LC_ALL
26049 LANGUAGE=C
26050 export LANGUAGE
26051
26052 # CDPATH.
26053 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26054
26055
26056 # as_fn_error ERROR [LINENO LOG_FD]
26057 # ---------------------------------
26058 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26059 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26060 # script with status $?, using 1 if that was 0.
26061 as_fn_error ()
26062 {
26063   as_status=$?; test $as_status -eq 0 && as_status=1
26064   if test "$3"; then
26065     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26066     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26067   fi
26068   $as_echo "$as_me: error: $1" >&2
26069   as_fn_exit $as_status
26070 } # as_fn_error
26071
26072
26073 # as_fn_set_status STATUS
26074 # -----------------------
26075 # Set $? to STATUS, without forking.
26076 as_fn_set_status ()
26077 {
26078   return $1
26079 } # as_fn_set_status
26080
26081 # as_fn_exit STATUS
26082 # -----------------
26083 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26084 as_fn_exit ()
26085 {
26086   set +e
26087   as_fn_set_status $1
26088   exit $1
26089 } # as_fn_exit
26090
26091 # as_fn_unset VAR
26092 # ---------------
26093 # Portably unset VAR.
26094 as_fn_unset ()
26095 {
26096   { eval $1=; unset $1;}
26097 }
26098 as_unset=as_fn_unset
26099 # as_fn_append VAR VALUE
26100 # ----------------------
26101 # Append the text in VALUE to the end of the definition contained in VAR. Take
26102 # advantage of any shell optimizations that allow amortized linear growth over
26103 # repeated appends, instead of the typical quadratic growth present in naive
26104 # implementations.
26105 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26106   eval 'as_fn_append ()
26107   {
26108     eval $1+=\$2
26109   }'
26110 else
26111   as_fn_append ()
26112   {
26113     eval $1=\$$1\$2
26114   }
26115 fi # as_fn_append
26116
26117 # as_fn_arith ARG...
26118 # ------------------
26119 # Perform arithmetic evaluation on the ARGs, and store the result in the
26120 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26121 # must be portable across $(()) and expr.
26122 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26123   eval 'as_fn_arith ()
26124   {
26125     as_val=$(( $* ))
26126   }'
26127 else
26128   as_fn_arith ()
26129   {
26130     as_val=`expr "$@" || test $? -eq 1`
26131   }
26132 fi # as_fn_arith
26133
26134
26135 if expr a : '\(a\)' >/dev/null 2>&1 &&
26136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26137   as_expr=expr
26138 else
26139   as_expr=false
26140 fi
26141
26142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26143   as_basename=basename
26144 else
26145   as_basename=false
26146 fi
26147
26148 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26149   as_dirname=dirname
26150 else
26151   as_dirname=false
26152 fi
26153
26154 as_me=`$as_basename -- "$0" ||
26155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26156          X"$0" : 'X\(//\)$' \| \
26157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26158 $as_echo X/"$0" |
26159     sed '/^.*\/\([^/][^/]*\)\/*$/{
26160             s//\1/
26161             q
26162           }
26163           /^X\/\(\/\/\)$/{
26164             s//\1/
26165             q
26166           }
26167           /^X\/\(\/\).*/{
26168             s//\1/
26169             q
26170           }
26171           s/.*/./; q'`
26172
26173 # Avoid depending upon Character Ranges.
26174 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26175 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26176 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26177 as_cr_digits='0123456789'
26178 as_cr_alnum=$as_cr_Letters$as_cr_digits
26179
26180 ECHO_C= ECHO_N= ECHO_T=
26181 case `echo -n x` in #(((((
26182 -n*)
26183   case `echo 'xy\c'` in
26184   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26185   xy)  ECHO_C='\c';;
26186   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26187        ECHO_T=' ';;
26188   esac;;
26189 *)
26190   ECHO_N='-n';;
26191 esac
26192
26193 rm -f conf$$ conf$$.exe conf$$.file
26194 if test -d conf$$.dir; then
26195   rm -f conf$$.dir/conf$$.file
26196 else
26197   rm -f conf$$.dir
26198   mkdir conf$$.dir 2>/dev/null
26199 fi
26200 if (echo >conf$$.file) 2>/dev/null; then
26201   if ln -s conf$$.file conf$$ 2>/dev/null; then
26202     as_ln_s='ln -s'
26203     # ... but there are two gotchas:
26204     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26205     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26206     # In both cases, we have to default to `cp -p'.
26207     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26208       as_ln_s='cp -p'
26209   elif ln conf$$.file conf$$ 2>/dev/null; then
26210     as_ln_s=ln
26211   else
26212     as_ln_s='cp -p'
26213   fi
26214 else
26215   as_ln_s='cp -p'
26216 fi
26217 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26218 rmdir conf$$.dir 2>/dev/null
26219
26220
26221 # as_fn_mkdir_p
26222 # -------------
26223 # Create "$as_dir" as a directory, including parents if necessary.
26224 as_fn_mkdir_p ()
26225 {
26226
26227   case $as_dir in #(
26228   -*) as_dir=./$as_dir;;
26229   esac
26230   test -d "$as_dir" || eval $as_mkdir_p || {
26231     as_dirs=
26232     while :; do
26233       case $as_dir in #(
26234       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26235       *) as_qdir=$as_dir;;
26236       esac
26237       as_dirs="'$as_qdir' $as_dirs"
26238       as_dir=`$as_dirname -- "$as_dir" ||
26239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26240          X"$as_dir" : 'X\(//\)[^/]' \| \
26241          X"$as_dir" : 'X\(//\)$' \| \
26242          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26243 $as_echo X"$as_dir" |
26244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26245             s//\1/
26246             q
26247           }
26248           /^X\(\/\/\)[^/].*/{
26249             s//\1/
26250             q
26251           }
26252           /^X\(\/\/\)$/{
26253             s//\1/
26254             q
26255           }
26256           /^X\(\/\).*/{
26257             s//\1/
26258             q
26259           }
26260           s/.*/./; q'`
26261       test -d "$as_dir" && break
26262     done
26263     test -z "$as_dirs" || eval "mkdir $as_dirs"
26264   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26265
26266
26267 } # as_fn_mkdir_p
26268 if mkdir -p . 2>/dev/null; then
26269   as_mkdir_p='mkdir -p "$as_dir"'
26270 else
26271   test -d ./-p && rmdir ./-p
26272   as_mkdir_p=false
26273 fi
26274
26275 if test -x / >/dev/null 2>&1; then
26276   as_test_x='test -x'
26277 else
26278   if ls -dL / >/dev/null 2>&1; then
26279     as_ls_L_option=L
26280   else
26281     as_ls_L_option=
26282   fi
26283   as_test_x='
26284     eval sh -c '\''
26285       if test -d "$1"; then
26286         test -d "$1/.";
26287       else
26288         case $1 in #(
26289         -*)set "./$1";;
26290         esac;
26291         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26292         ???[sx]*):;;*)false;;esac;fi
26293     '\'' sh
26294   '
26295 fi
26296 as_executable_p=$as_test_x
26297
26298 # Sed expression to map a string onto a valid CPP name.
26299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26300
26301 # Sed expression to map a string onto a valid variable name.
26302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26303
26304
26305 exec 6>&1
26306 ## ----------------------------------- ##
26307 ## Main body of $CONFIG_STATUS script. ##
26308 ## ----------------------------------- ##
26309 _ASEOF
26310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26311
26312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26313 # Save the log message, to keep $0 and so on meaningful, and to
26314 # report actual input values of CONFIG_FILES etc. instead of their
26315 # values after options handling.
26316 ac_log="
26317 This file was extended by $as_me, which was
26318 generated by GNU Autoconf 2.64.  Invocation command line was
26319
26320   CONFIG_FILES    = $CONFIG_FILES
26321   CONFIG_HEADERS  = $CONFIG_HEADERS
26322   CONFIG_LINKS    = $CONFIG_LINKS
26323   CONFIG_COMMANDS = $CONFIG_COMMANDS
26324   $ $0 $@
26325
26326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26327 "
26328
26329 _ACEOF
26330
26331 case $ac_config_files in *"
26332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26333 esac
26334
26335 case $ac_config_headers in *"
26336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26337 esac
26338
26339
26340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26341 # Files that config.status was made for.
26342 config_files="$ac_config_files"
26343 config_headers="$ac_config_headers"
26344 config_commands="$ac_config_commands"
26345
26346 _ACEOF
26347
26348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26349 ac_cs_usage="\
26350 \`$as_me' instantiates files and other configuration actions
26351 from templates according to the current configuration.  Unless the files
26352 and actions are specified as TAGs, all are instantiated by default.
26353
26354 Usage: $0 [OPTION]... [TAG]...
26355
26356   -h, --help       print this help, then exit
26357   -V, --version    print version number and configuration settings, then exit
26358   -q, --quiet, --silent
26359                    do not print progress messages
26360   -d, --debug      don't remove temporary files
26361       --recheck    update $as_me by reconfiguring in the same conditions
26362       --file=FILE[:TEMPLATE]
26363                    instantiate the configuration file FILE
26364       --header=FILE[:TEMPLATE]
26365                    instantiate the configuration header FILE
26366
26367 Configuration files:
26368 $config_files
26369
26370 Configuration headers:
26371 $config_headers
26372
26373 Configuration commands:
26374 $config_commands
26375
26376 Report bugs to the package provider."
26377
26378 _ACEOF
26379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26380 ac_cs_version="\\
26381 config.status
26382 configured by $0, generated by GNU Autoconf 2.64,
26383   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26384
26385 Copyright (C) 2009 Free Software Foundation, Inc.
26386 This config.status script is free software; the Free Software Foundation
26387 gives unlimited permission to copy, distribute and modify it."
26388
26389 ac_pwd='$ac_pwd'
26390 srcdir='$srcdir'
26391 AWK='$AWK'
26392 test -n "\$AWK" || AWK=awk
26393 _ACEOF
26394
26395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26396 # The default lists apply if the user does not specify any file.
26397 ac_need_defaults=:
26398 while test $# != 0
26399 do
26400   case $1 in
26401   --*=*)
26402     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26403     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26404     ac_shift=:
26405     ;;
26406   *)
26407     ac_option=$1
26408     ac_optarg=$2
26409     ac_shift=shift
26410     ;;
26411   esac
26412
26413   case $ac_option in
26414   # Handling of the options.
26415   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26416     ac_cs_recheck=: ;;
26417   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26418     $as_echo "$ac_cs_version"; exit ;;
26419   --debug | --debu | --deb | --de | --d | -d )
26420     debug=: ;;
26421   --file | --fil | --fi | --f )
26422     $ac_shift
26423     case $ac_optarg in
26424     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26425     esac
26426     as_fn_append CONFIG_FILES " '$ac_optarg'"
26427     ac_need_defaults=false;;
26428   --header | --heade | --head | --hea )
26429     $ac_shift
26430     case $ac_optarg in
26431     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26432     esac
26433     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26434     ac_need_defaults=false;;
26435   --he | --h)
26436     # Conflict between --help and --header
26437     as_fn_error "ambiguous option: \`$1'
26438 Try \`$0 --help' for more information.";;
26439   --help | --hel | -h )
26440     $as_echo "$ac_cs_usage"; exit ;;
26441   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26442   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26443     ac_cs_silent=: ;;
26444
26445   # This is an error.
26446   -*) as_fn_error "unrecognized option: \`$1'
26447 Try \`$0 --help' for more information." ;;
26448
26449   *) as_fn_append ac_config_targets " $1"
26450      ac_need_defaults=false ;;
26451
26452   esac
26453   shift
26454 done
26455
26456 ac_configure_extra_args=
26457
26458 if $ac_cs_silent; then
26459   exec 6>/dev/null
26460   ac_configure_extra_args="$ac_configure_extra_args --silent"
26461 fi
26462
26463 _ACEOF
26464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26465 if \$ac_cs_recheck; then
26466   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26467   shift
26468   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26469   CONFIG_SHELL='$SHELL'
26470   export CONFIG_SHELL
26471   exec "\$@"
26472 fi
26473
26474 _ACEOF
26475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26476 exec 5>>config.log
26477 {
26478   echo
26479   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26480 ## Running $as_me. ##
26481 _ASBOX
26482   $as_echo "$ac_log"
26483 } >&5
26484
26485 _ACEOF
26486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26487 #
26488 # INIT-COMMANDS
26489 #
26490 subdirs='$subdirs'
26491
26492 _ACEOF
26493
26494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26495
26496 # Handling of arguments.
26497 for ac_config_target in $ac_config_targets
26498 do
26499   case $ac_config_target in
26500     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26501     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26502     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26503     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26504     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26505     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26506
26507   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26508   esac
26509 done
26510
26511
26512 # If the user did not use the arguments to specify the items to instantiate,
26513 # then the envvar interface is used.  Set only those that are not.
26514 # We use the long form for the default assignment because of an extremely
26515 # bizarre bug on SunOS 4.1.3.
26516 if $ac_need_defaults; then
26517   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26518   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26519   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26520 fi
26521
26522 # Have a temporary directory for convenience.  Make it in the build tree
26523 # simply because there is no reason against having it here, and in addition,
26524 # creating and moving files from /tmp can sometimes cause problems.
26525 # Hook for its removal unless debugging.
26526 # Note that there is a small window in which the directory will not be cleaned:
26527 # after its creation but before its name has been assigned to `$tmp'.
26528 $debug ||
26529 {
26530   tmp=
26531   trap 'exit_status=$?
26532   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26533 ' 0
26534   trap 'as_fn_exit 1' 1 2 13 15
26535 }
26536 # Create a (secure) tmp directory for tmp files.
26537
26538 {
26539   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26540   test -n "$tmp" && test -d "$tmp"
26541 }  ||
26542 {
26543   tmp=./conf$$-$RANDOM
26544   (umask 077 && mkdir "$tmp")
26545 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26546
26547 # Set up the scripts for CONFIG_FILES section.
26548 # No need to generate them if there are no CONFIG_FILES.
26549 # This happens for instance with `./config.status config.h'.
26550 if test -n "$CONFIG_FILES"; then
26551
26552 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26553   ac_cs_awk_getline=:
26554   ac_cs_awk_pipe_init=
26555   ac_cs_awk_read_file='
26556       while ((getline aline < (F[key])) > 0)
26557         print(aline)
26558       close(F[key])'
26559   ac_cs_awk_pipe_fini=
26560 else
26561   ac_cs_awk_getline=false
26562   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26563   ac_cs_awk_read_file='
26564       print "|#_!!_#|"
26565       print "cat " F[key] " &&"
26566       '$ac_cs_awk_pipe_init
26567   # The final `:' finishes the AND list.
26568   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26569 fi
26570 ac_cr=`echo X | tr X '\015'`
26571 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26572 # But we know of no other shell where ac_cr would be empty at this
26573 # point, so we can use a bashism as a fallback.
26574 if test "x$ac_cr" = x; then
26575   eval ac_cr=\$\'\\r\'
26576 fi
26577 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26578 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26579   ac_cs_awk_cr='\r'
26580 else
26581   ac_cs_awk_cr=$ac_cr
26582 fi
26583
26584 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26585 _ACEOF
26586
26587 # Create commands to substitute file output variables.
26588 {
26589   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26590   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26591   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26592   echo "_ACAWK" &&
26593   echo "_ACEOF"
26594 } >conf$$files.sh &&
26595 . ./conf$$files.sh ||
26596   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26597 rm -f conf$$files.sh
26598
26599 {
26600   echo "cat >conf$$subs.awk <<_ACEOF" &&
26601   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26602   echo "_ACEOF"
26603 } >conf$$subs.sh ||
26604   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26605 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26606 ac_delim='%!_!# '
26607 for ac_last_try in false false false false false :; do
26608   . ./conf$$subs.sh ||
26609     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26610
26611   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26612   if test $ac_delim_n = $ac_delim_num; then
26613     break
26614   elif $ac_last_try; then
26615     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26616   else
26617     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26618   fi
26619 done
26620 rm -f conf$$subs.sh
26621
26622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26623 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26624 _ACEOF
26625 sed -n '
26626 h
26627 s/^/S["/; s/!.*/"]=/
26628 p
26629 g
26630 s/^[^!]*!//
26631 :repl
26632 t repl
26633 s/'"$ac_delim"'$//
26634 t delim
26635 :nl
26636 h
26637 s/\(.\{148\}\).*/\1/
26638 t more1
26639 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26640 p
26641 n
26642 b repl
26643 :more1
26644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26645 p
26646 g
26647 s/.\{148\}//
26648 t nl
26649 :delim
26650 h
26651 s/\(.\{148\}\).*/\1/
26652 t more2
26653 s/["\\]/\\&/g; s/^/"/; s/$/"/
26654 p
26655 b
26656 :more2
26657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26658 p
26659 g
26660 s/.\{148\}//
26661 t delim
26662 ' <conf$$subs.awk | sed '
26663 /^[^""]/{
26664   N
26665   s/\n//
26666 }
26667 ' >>$CONFIG_STATUS || ac_write_fail=1
26668 rm -f conf$$subs.awk
26669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26670 _ACAWK
26671 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26672   for (key in S) S_is_set[key] = 1
26673   FS = "\a"
26674   \$ac_cs_awk_pipe_init
26675 }
26676 {
26677   line = $ 0
26678   nfields = split(line, field, "@")
26679   substed = 0
26680   len = length(field[1])
26681   for (i = 2; i < nfields; i++) {
26682     key = field[i]
26683     keylen = length(key)
26684     if (S_is_set[key]) {
26685       value = S[key]
26686       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26687       len += length(value) + length(field[++i])
26688       substed = 1
26689     } else
26690       len += 1 + keylen
26691   }
26692   if (nfields == 3 && !substed) {
26693     key = field[2]
26694     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
26695       \$ac_cs_awk_read_file
26696       next
26697     }
26698   }
26699   print line
26700 }
26701 \$ac_cs_awk_pipe_fini
26702 _ACAWK
26703 _ACEOF
26704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26705 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26706   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26707 else
26708   cat
26709 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26710   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26711 _ACEOF
26712
26713 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26714 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26715 # trailing colons and then remove the whole line if VPATH becomes empty
26716 # (actually we leave an empty line to preserve line numbers).
26717 if test "x$srcdir" = x.; then
26718   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26719 s/:*\$(srcdir):*/:/
26720 s/:*\${srcdir}:*/:/
26721 s/:*@srcdir@:*/:/
26722 s/^\([^=]*=[     ]*\):*/\1/
26723 s/:*$//
26724 s/^[^=]*=[       ]*$//
26725 }'
26726 fi
26727
26728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26729 fi # test -n "$CONFIG_FILES"
26730
26731 # Set up the scripts for CONFIG_HEADERS section.
26732 # No need to generate them if there are no CONFIG_HEADERS.
26733 # This happens for instance with `./config.status Makefile'.
26734 if test -n "$CONFIG_HEADERS"; then
26735 cat >"$tmp/defines.awk" <<\_ACAWK ||
26736 BEGIN {
26737 _ACEOF
26738
26739 # Transform confdefs.h into an awk script `defines.awk', embedded as
26740 # here-document in config.status, that substitutes the proper values into
26741 # config.h.in to produce config.h.
26742
26743 # Create a delimiter string that does not exist in confdefs.h, to ease
26744 # handling of long lines.
26745 ac_delim='%!_!# '
26746 for ac_last_try in false false :; do
26747   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26748   if test -z "$ac_t"; then
26749     break
26750   elif $ac_last_try; then
26751     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26752   else
26753     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26754   fi
26755 done
26756
26757 # For the awk script, D is an array of macro values keyed by name,
26758 # likewise P contains macro parameters if any.  Preserve backslash
26759 # newline sequences.
26760
26761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26762 sed -n '
26763 s/.\{148\}/&'"$ac_delim"'/g
26764 t rset
26765 :rset
26766 s/^[     ]*#[    ]*define[       ][      ]*/ /
26767 t def
26768 d
26769 :def
26770 s/\\$//
26771 t bsnl
26772 s/["\\]/\\&/g
26773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26774 D["\1"]=" \3"/p
26775 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26776 d
26777 :bsnl
26778 s/["\\]/\\&/g
26779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26780 D["\1"]=" \3\\\\\\n"\\/p
26781 t cont
26782 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26783 t cont
26784 d
26785 :cont
26786 n
26787 s/.\{148\}/&'"$ac_delim"'/g
26788 t clear
26789 :clear
26790 s/\\$//
26791 t bsnlc
26792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26793 d
26794 :bsnlc
26795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26796 b cont
26797 ' <confdefs.h | sed '
26798 s/'"$ac_delim"'/"\\\
26799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26800
26801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26802   for (key in D) D_is_set[key] = 1
26803   FS = "\a"
26804 }
26805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26806   line = \$ 0
26807   split(line, arg, " ")
26808   if (arg[1] == "#") {
26809     defundef = arg[2]
26810     mac1 = arg[3]
26811   } else {
26812     defundef = substr(arg[1], 2)
26813     mac1 = arg[2]
26814   }
26815   split(mac1, mac2, "(") #)
26816   macro = mac2[1]
26817   prefix = substr(line, 1, index(line, defundef) - 1)
26818   if (D_is_set[macro]) {
26819     # Preserve the white space surrounding the "#".
26820     print prefix "define", macro P[macro] D[macro]
26821     next
26822   } else {
26823     # Replace #undef with comments.  This is necessary, for example,
26824     # in the case of _POSIX_SOURCE, which is predefined and required
26825     # on some systems where configure will not decide to define it.
26826     if (defundef == "undef") {
26827       print "/*", prefix defundef, macro, "*/"
26828       next
26829     }
26830   }
26831 }
26832 { print }
26833 _ACAWK
26834 _ACEOF
26835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26836   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26837 fi # test -n "$CONFIG_HEADERS"
26838
26839
26840 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26841 shift
26842 for ac_tag
26843 do
26844   case $ac_tag in
26845   :[FHLC]) ac_mode=$ac_tag; continue;;
26846   esac
26847   case $ac_mode$ac_tag in
26848   :[FHL]*:*);;
26849   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26850   :[FH]-) ac_tag=-:-;;
26851   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26852   esac
26853   ac_save_IFS=$IFS
26854   IFS=:
26855   set x $ac_tag
26856   IFS=$ac_save_IFS
26857   shift
26858   ac_file=$1
26859   shift
26860
26861   case $ac_mode in
26862   :L) ac_source=$1;;
26863   :[FH])
26864     ac_file_inputs=
26865     for ac_f
26866     do
26867       case $ac_f in
26868       -) ac_f="$tmp/stdin";;
26869       *) # Look for the file first in the build tree, then in the source tree
26870          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26871          # because $ac_f cannot contain `:'.
26872          test -f "$ac_f" ||
26873            case $ac_f in
26874            [\\/$]*) false;;
26875            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26876            esac ||
26877            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26878       esac
26879       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26880       as_fn_append ac_file_inputs " '$ac_f'"
26881     done
26882
26883     # Let's still pretend it is `configure' which instantiates (i.e., don't
26884     # use $as_me), people would be surprised to read:
26885     #    /* config.h.  Generated by config.status.  */
26886     configure_input='Generated from '`
26887           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26888         `' by configure.'
26889     if test x"$ac_file" != x-; then
26890       configure_input="$ac_file.  $configure_input"
26891       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26892 $as_echo "$as_me: creating $ac_file" >&6;}
26893     fi
26894     # Neutralize special characters interpreted by sed in replacement strings.
26895     case $configure_input in #(
26896     *\&* | *\|* | *\\* )
26897        ac_sed_conf_input=`$as_echo "$configure_input" |
26898        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26899     *) ac_sed_conf_input=$configure_input;;
26900     esac
26901
26902     case $ac_tag in
26903     *:-:* | *:-) cat >"$tmp/stdin" \
26904       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26905     esac
26906     ;;
26907   esac
26908
26909   ac_dir=`$as_dirname -- "$ac_file" ||
26910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26911          X"$ac_file" : 'X\(//\)[^/]' \| \
26912          X"$ac_file" : 'X\(//\)$' \| \
26913          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26914 $as_echo X"$ac_file" |
26915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26916             s//\1/
26917             q
26918           }
26919           /^X\(\/\/\)[^/].*/{
26920             s//\1/
26921             q
26922           }
26923           /^X\(\/\/\)$/{
26924             s//\1/
26925             q
26926           }
26927           /^X\(\/\).*/{
26928             s//\1/
26929             q
26930           }
26931           s/.*/./; q'`
26932   as_dir="$ac_dir"; as_fn_mkdir_p
26933   ac_builddir=.
26934
26935 case "$ac_dir" in
26936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26937 *)
26938   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26939   # A ".." for each directory in $ac_dir_suffix.
26940   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26941   case $ac_top_builddir_sub in
26942   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26943   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26944   esac ;;
26945 esac
26946 ac_abs_top_builddir=$ac_pwd
26947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26948 # for backward compatibility:
26949 ac_top_builddir=$ac_top_build_prefix
26950
26951 case $srcdir in
26952   .)  # We are building in place.
26953     ac_srcdir=.
26954     ac_top_srcdir=$ac_top_builddir_sub
26955     ac_abs_top_srcdir=$ac_pwd ;;
26956   [\\/]* | ?:[\\/]* )  # Absolute name.
26957     ac_srcdir=$srcdir$ac_dir_suffix;
26958     ac_top_srcdir=$srcdir
26959     ac_abs_top_srcdir=$srcdir ;;
26960   *) # Relative name.
26961     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26962     ac_top_srcdir=$ac_top_build_prefix$srcdir
26963     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26964 esac
26965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26966
26967
26968   case $ac_mode in
26969   :F)
26970   #
26971   # CONFIG_FILE
26972   #
26973
26974 _ACEOF
26975
26976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26977 # If the template does not know about datarootdir, expand it.
26978 # FIXME: This hack should be removed a few years after 2.60.
26979 ac_datarootdir_hack=; ac_datarootdir_seen=
26980 ac_sed_dataroot='
26981 /datarootdir/ {
26982   p
26983   q
26984 }
26985 /@datadir@/p
26986 /@docdir@/p
26987 /@infodir@/p
26988 /@localedir@/p
26989 /@mandir@/p'
26990 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26991 *datarootdir*) ac_datarootdir_seen=yes;;
26992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26993   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26994 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26995 _ACEOF
26996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26997   ac_datarootdir_hack='
26998   s&@datadir@&$datadir&g
26999   s&@docdir@&$docdir&g
27000   s&@infodir@&$infodir&g
27001   s&@localedir@&$localedir&g
27002   s&@mandir@&$mandir&g
27003   s&\\\${datarootdir}&$datarootdir&g' ;;
27004 esac
27005 _ACEOF
27006
27007 # Neutralize VPATH when `$srcdir' = `.'.
27008 # Shell code in configure.ac might set extrasub.
27009 # FIXME: do we really want to maintain this feature?
27010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27011 ac_sed_extra="$ac_vpsub
27012 $extrasub
27013 _ACEOF
27014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27015 :t
27016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27017 s|@configure_input@|$ac_sed_conf_input|;t t
27018 s&@top_builddir@&$ac_top_builddir_sub&;t t
27019 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27020 s&@srcdir@&$ac_srcdir&;t t
27021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27022 s&@top_srcdir@&$ac_top_srcdir&;t t
27023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27024 s&@builddir@&$ac_builddir&;t t
27025 s&@abs_builddir@&$ac_abs_builddir&;t t
27026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27027 $ac_datarootdir_hack
27028 "
27029 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27030 if $ac_cs_awk_getline; then
27031   $AWK -f "$tmp/subs.awk"
27032 else
27033   $AWK -f "$tmp/subs.awk" | $SHELL
27034 fi >$tmp/out \
27035   || as_fn_error "could not create $ac_file" "$LINENO" 5
27036
27037 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27038   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27039   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27040   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27041 which seems to be undefined.  Please make sure it is defined." >&5
27042 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27043 which seems to be undefined.  Please make sure it is defined." >&2;}
27044
27045   rm -f "$tmp/stdin"
27046   case $ac_file in
27047   -) cat "$tmp/out" && rm -f "$tmp/out";;
27048   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27049   esac \
27050   || as_fn_error "could not create $ac_file" "$LINENO" 5
27051  ;;
27052   :H)
27053   #
27054   # CONFIG_HEADER
27055   #
27056   if test x"$ac_file" != x-; then
27057     {
27058       $as_echo "/* $configure_input  */" \
27059       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27060     } >"$tmp/config.h" \
27061       || as_fn_error "could not create $ac_file" "$LINENO" 5
27062     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27063       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27064 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27065     else
27066       rm -f "$ac_file"
27067       mv "$tmp/config.h" "$ac_file" \
27068         || as_fn_error "could not create $ac_file" "$LINENO" 5
27069     fi
27070   else
27071     $as_echo "/* $configure_input  */" \
27072       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27073       || as_fn_error "could not create -" "$LINENO" 5
27074   fi
27075  ;;
27076
27077   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27078 $as_echo "$as_me: executing $ac_file commands" >&6;}
27079  ;;
27080   esac
27081
27082
27083   case $ac_file$ac_mode in
27084     "as":F) chmod +x as ;;
27085     "collect-ld":F) chmod +x collect-ld ;;
27086     "nm":F) chmod +x nm ;;
27087     "default":C)
27088 case ${CONFIG_HEADERS} in
27089   *auto-host.h:config.in*)
27090   echo > cstamp-h ;;
27091 esac
27092 # Make sure all the subdirs exist.
27093 for d in $subdirs doc build c-family
27094 do
27095     test -d $d || mkdir $d
27096 done
27097  ;;
27098
27099   esac
27100 done # for ac_tag
27101
27102
27103 as_fn_exit 0
27104 _ACEOF
27105 ac_clean_files=$ac_clean_files_save
27106
27107 test $ac_write_fail = 0 ||
27108   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27109
27110
27111 # configure is writing to config.log, and then calls config.status.
27112 # config.status does its own redirection, appending to config.log.
27113 # Unfortunately, on DOS this fails, as config.log is still kept open
27114 # by configure, so config.status won't be able to write to it; its
27115 # output is simply discarded.  So we exec the FD to /dev/null,
27116 # effectively closing config.log, so it can be properly (re)opened and
27117 # appended to by config.status.  When coming back to configure, we
27118 # need to make the FD available again.
27119 if test "$no_create" != yes; then
27120   ac_cs_success=:
27121   ac_config_status_args=
27122   test "$silent" = yes &&
27123     ac_config_status_args="$ac_config_status_args --quiet"
27124   exec 5>/dev/null
27125   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27126   exec 5>>config.log
27127   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27128   # would make configure fail if this is the last instruction.
27129   $ac_cs_success || as_fn_exit $?
27130 fi
27131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27132   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27134 fi
27135