OSDN Git Service

* common/common-target-def.h, common/common-target.def,
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
715 ALL
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXCPP
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 CONFIGURE_SPECS
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
765 TARGET_SYSTEM_ROOT
766 enable_shared
767 enable_fixed_point
768 enable_decimal_float
769 enable_multilib
770 ENABLE_BUILD_WITH_CXX
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREEBROWSER
776 nocommon_flag
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
785 CPP
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
792 CXX
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='option_includes
857 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_largefile
871 enable_werror_always
872 enable_checking
873 enable_coverage
874 enable_gather_detailed_mem_stats
875 enable_build_with_cxx
876 with_stabs
877 enable_multilib
878 enable___cxa_atexit
879 enable_decimal_float
880 enable_fixed_point
881 enable_threads
882 enable_tls
883 enable_objc_gc
884 with_dwarf2
885 enable_shared
886 with_build_sysroot
887 with_sysroot
888 with_specs
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_gnu_indirect_function
909 enable_comdat
910 enable_gnu_unique_object
911 enable_linker_build_id
912 with_long_double_128
913 with_gc
914 with_system_zlib
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
917 with_slibdir
918 enable_plugin
919 enable_libquadmath_support
920 with_linker_hash_style
921 '
922       ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 CXX
931 CXXFLAGS
932 CCC
933 CPP
934 CXXCPP
935 GMPLIBS
936 GMPINC
937 PPLLIBS
938 PPLINC
939 CLOOGLIBS
940 CLOOGINC'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995   # If the previous option needs an argument, assign it.
996   if test -n "$ac_prev"; then
997     eval $ac_prev=\$ac_option
998     ac_prev=
999     continue
1000   fi
1001
1002   case $ac_option in
1003   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004   *)    ac_optarg=yes ;;
1005   esac
1006
1007   # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009   case $ac_dashdash$ac_option in
1010   --)
1011     ac_dashdash=yes ;;
1012
1013   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014     ac_prev=bindir ;;
1015   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016     bindir=$ac_optarg ;;
1017
1018   -build | --build | --buil | --bui | --bu)
1019     ac_prev=build_alias ;;
1020   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021     build_alias=$ac_optarg ;;
1022
1023   -cache-file | --cache-file | --cache-fil | --cache-fi \
1024   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025     ac_prev=cache_file ;;
1026   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028     cache_file=$ac_optarg ;;
1029
1030   --config-cache | -C)
1031     cache_file=config.cache ;;
1032
1033   -datadir | --datadir | --datadi | --datad)
1034     ac_prev=datadir ;;
1035   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036     datadir=$ac_optarg ;;
1037
1038   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039   | --dataroo | --dataro | --datar)
1040     ac_prev=datarootdir ;;
1041   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043     datarootdir=$ac_optarg ;;
1044
1045   -disable-* | --disable-*)
1046     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049       as_fn_error "invalid feature name: $ac_useropt"
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       as_fn_error "invalid feature name: $ac_useropt"
1076     ac_useropt_orig=$ac_useropt
1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078     case $ac_user_opts in
1079       *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083          ac_unrecognized_sep=', ';;
1084     esac
1085     eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089   | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093   | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1095
1096   -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1099
1100   -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1106
1107   -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109   -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1111
1112   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115   | --ht=*)
1116     htmldir=$ac_optarg ;;
1117
1118   -includedir | --includedir | --includedi | --included | --include \
1119   | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122   | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1124
1125   -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1129
1130   -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1134
1135   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136   | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139   | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1141
1142   -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1146
1147   -localstatedir | --localstatedir | --localstatedi | --localstated \
1148   | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1153
1154   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1158
1159   -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1162
1163   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164   | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1166
1167   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1170
1171   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173   | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1179
1180   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1184
1185   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186   | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1191
1192   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193   | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1198
1199   -program-transform-name | --program-transform-name \
1200   | --program-transform-nam | --program-transform-na \
1201   | --program-transform-n | --program-transform- \
1202   | --program-transform | --program-transfor \
1203   | --program-transfo | --program-transf \
1204   | --program-trans | --program-tran \
1205   | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207   -program-transform-name=* | --program-transform-name=* \
1208   | --program-transform-nam=* | --program-transform-na=* \
1209   | --program-transform-n=* | --program-transform-=* \
1210   | --program-transform=* | --program-transfor=* \
1211   | --program-transfo=* | --program-transf=* \
1212   | --program-trans=* | --program-tran=* \
1213   | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1215
1216   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1220
1221   -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1225
1226   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227   | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1229
1230   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231     ac_prev=sbindir ;;
1232   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233   | --sbi=* | --sb=*)
1234     sbindir=$ac_optarg ;;
1235
1236   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238   | --sharedst | --shareds | --shared | --share | --shar \
1239   | --sha | --sh)
1240     ac_prev=sharedstatedir ;;
1241   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244   | --sha=* | --sh=*)
1245     sharedstatedir=$ac_optarg ;;
1246
1247   -site | --site | --sit)
1248     ac_prev=site ;;
1249   -site=* | --site=* | --sit=*)
1250     site=$ac_optarg ;;
1251
1252   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253     ac_prev=srcdir ;;
1254   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255     srcdir=$ac_optarg ;;
1256
1257   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258   | --syscon | --sysco | --sysc | --sys | --sy)
1259     ac_prev=sysconfdir ;;
1260   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262     sysconfdir=$ac_optarg ;;
1263
1264   -target | --target | --targe | --targ | --tar | --ta | --t)
1265     ac_prev=target_alias ;;
1266   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267     target_alias=$ac_optarg ;;
1268
1269   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270     verbose=yes ;;
1271
1272   -version | --version | --versio | --versi | --vers | -V)
1273     ac_init_version=: ;;
1274
1275   -with-* | --with-*)
1276     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279       as_fn_error "invalid package name: $ac_useropt"
1280     ac_useropt_orig=$ac_useropt
1281     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282     case $ac_user_opts in
1283       *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287          ac_unrecognized_sep=', ';;
1288     esac
1289     eval with_$ac_useropt=\$ac_optarg ;;
1290
1291   -without-* | --without-*)
1292     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295       as_fn_error "invalid package name: $ac_useropt"
1296     ac_useropt_orig=$ac_useropt
1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298     case $ac_user_opts in
1299       *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303          ac_unrecognized_sep=', ';;
1304     esac
1305     eval with_$ac_useropt=no ;;
1306
1307   --x)
1308     # Obsolete; use --with-x.
1309     with_x=yes ;;
1310
1311   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312   | --x-incl | --x-inc | --x-in | --x-i)
1313     ac_prev=x_includes ;;
1314   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316     x_includes=$ac_optarg ;;
1317
1318   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320     ac_prev=x_libraries ;;
1321   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323     x_libraries=$ac_optarg ;;
1324
1325   -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     case $ac_envvar in #(
1333       '' | [0-9]* | *[!_$as_cr_alnum]* )
1334       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335     esac
1336     eval $ac_envvar=\$ac_optarg
1337     export $ac_envvar ;;
1338
1339   *)
1340     # FIXME: should be removed in autoconf 3.0.
1341     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345     ;;
1346
1347   esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352   as_fn_error "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356   case $enable_option_checking in
1357     no) ;;
1358     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360   esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365                 datadir sysconfdir sharedstatedir localstatedir includedir \
1366                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367                 libdir localedir mandir
1368 do
1369   eval ac_val=\$$ac_var
1370   # Remove trailing slashes.
1371   case $ac_val in
1372     */ )
1373       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374       eval $ac_var=\$ac_val;;
1375   esac
1376   # Be sure to have absolute directory names.
1377   case $ac_val in
1378     [\\/$]* | ?:[\\/]* )  continue;;
1379     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380   esac
1381   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393   if test "x$build_alias" = x; then
1394     cross_compiling=maybe
1395     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396     If a cross compiler is detected then cross compile mode will be used." >&2
1397   elif test "x$build_alias" != "x$host_alias"; then
1398     cross_compiling=yes
1399   fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411   as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413   as_fn_error "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418   ac_srcdir_defaulted=yes
1419   # Try the directory containing this script, then the parent directory.
1420   ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422          X"$as_myself" : 'X\(//\)[^/]' \| \
1423          X"$as_myself" : 'X\(//\)$' \| \
1424          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\/\)[^/].*/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\).*/{
1439             s//\1/
1440             q
1441           }
1442           s/.*/./; q'`
1443   srcdir=$ac_confdir
1444   if test ! -r "$srcdir/$ac_unique_file"; then
1445     srcdir=..
1446   fi
1447 else
1448   ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457         pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460   srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_env_${ac_var}_value=\$${ac_var}
1471   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479   # Omit some internal or obsolete options to make the list less imposing.
1480   # This message is too long to be a string in the A/UX 3.1 sh.
1481   cat <<_ACEOF
1482 \`configure' configures this package to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE.  See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492   -h, --help              display this help and exit
1493       --help=short        display options specific to this package
1494       --help=recursive    display the short help of all the included packages
1495   -V, --version           display version information and exit
1496   -q, --quiet, --silent   do not print \`checking...' messages
1497       --cache-file=FILE   cache test results in FILE [disabled]
1498   -C, --config-cache      alias for \`--cache-file=config.cache'
1499   -n, --no-create         do not create output files
1500       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503   --prefix=PREFIX         install architecture-independent files in PREFIX
1504                           [$ac_default_prefix]
1505   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1506                           [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516   --bindir=DIR            user executables [EPREFIX/bin]
1517   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1518   --libexecdir=DIR        program executables [EPREFIX/libexec]
1519   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1520   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1521   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1522   --libdir=DIR            object code libraries [EPREFIX/lib]
1523   --includedir=DIR        C header files [PREFIX/include]
1524   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1525   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1526   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1527   --infodir=DIR           info documentation [DATAROOTDIR/info]
1528   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1529   --mandir=DIR            man documentation [DATAROOTDIR/man]
1530   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1531   --htmldir=DIR           html documentation [DOCDIR]
1532   --dvidir=DIR            dvi documentation [DOCDIR]
1533   --pdfdir=DIR            pdf documentation [DOCDIR]
1534   --psdir=DIR             ps documentation [DOCDIR]
1535 _ACEOF
1536
1537   cat <<\_ACEOF
1538
1539 Program names:
1540   --program-prefix=PREFIX            prepend PREFIX to installed program names
1541   --program-suffix=SUFFIX            append SUFFIX to installed program names
1542   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1543
1544 System types:
1545   --build=BUILD     configure for building on BUILD [guessed]
1546   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1547   --target=TARGET   configure for building compilers for TARGET [HOST]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553   cat <<\_ACEOF
1554
1555 Optional Features:
1556   --disable-option-checking  ignore unrecognized --enable/--with options
1557   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559   --enable-generated-files-in-srcdir
1560                           put copies of generated files in source dir intended
1561                           for creating source tarballs for users without
1562                           texinfo bison or flex
1563   --disable-largefile     omit support for large files
1564   --enable-werror-always  enable -Werror despite compiler version
1565   --enable-checking[=LIST]
1566                           enable expensive run-time checks. With LIST, enable
1567                           only specific categories of checks. Categories are:
1568                           yes,no,all,none,release. Flags are:
1569                           assert,df,fold,gc,gcac,gimple,misc,
1570                           rtlflag,rtl,runtime,tree,valgrind,types
1571   --enable-coverage[=LEVEL]
1572                           enable compiler's code coverage collection. Use to
1573                           measure compiler performance and locate unused parts
1574                           of the compiler. With LEVEL, specify optimization.
1575                           Values are opt, noopt, default is noopt
1576   --enable-gather-detailed-mem-stats
1577                           enable detailed memory allocation stats gathering
1578   --enable-build-with-cxx build with C++ compiler instead of C compiler
1579   --enable-multilib       enable library support for multiple ABIs
1580   --enable-__cxa_atexit   enable __cxa_atexit for C++
1581   --enable-decimal-float={no,yes,bid,dpd}
1582                         enable decimal float extension to C.  Selecting 'bid'
1583                         or 'dpd' choses which decimal floating point format
1584                         to use
1585   --enable-fixed-point    enable fixed-point arithmetic extension to C
1586   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1587                           package
1588   --enable-tls            enable or disable generation of tls code overriding
1589                           the assembler check for tls support
1590   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1591                           GNU Objective-C runtime
1592   --disable-shared        don't provide a shared libgcc
1593   --enable-languages=LIST specify which front-ends to build
1594   --disable-rpath         do not hardcode runtime library paths
1595   --enable-initfini-array       use .init_array/.fini_array sections
1596   --enable-sjlj-exceptions
1597                           arrange to use setjmp/longjmp exception handling
1598   --enable-secureplt      enable -msecure-plt by default for PowerPC
1599   --enable-leading-mingw64-underscores
1600                           enable leading underscores on 64 bit mingw targets
1601   --enable-cld            enable -mcld by default for 32bit x86
1602   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1603                           x86
1604   --disable-win32-registry
1605                           disable lookup of installation paths in the Registry
1606                           on Windows hosts
1607   --enable-win32-registry enable registry lookup (default)
1608   --enable-win32-registry=KEY
1609                           use KEY instead of GCC version as the last portion
1610                           of the registry key
1611   --enable-shared[=PKGS]  build shared libraries [default=yes]
1612   --enable-static[=PKGS]  build static libraries [default=yes]
1613   --enable-fast-install[=PKGS]
1614                           optimize for fast installation [default=yes]
1615   --disable-libtool-lock  avoid locking (might break parallel builds)
1616   --enable-gnu-indirect-function
1617                           enable the use of the @gnu_indirect_function to
1618                           glibc systems
1619   --enable-comdat         enable COMDAT group support
1620   --enable-gnu-unique-object
1621                           enable the use of the @gnu_unique_object ELF
1622                           extension on glibc systems
1623   --enable-linker-build-id
1624                           compiler will always pass --build-id to linker
1625   --enable-maintainer-mode
1626                           enable make rules and dependencies not useful (and
1627                           sometimes confusing) to the casual installer
1628   --enable-version-specific-runtime-libs
1629                           specify that runtime libraries should be installed
1630                           in a compiler-specific directory
1631   --enable-plugin         enable plugin support
1632   --disable-libquadmath-support
1633                           disable libquadmath support for Fortran
1634
1635 Optional Packages:
1636   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1637   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1638   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1639   --with-local-prefix=DIR specifies directory to put local include
1640   --with-gxx-include-dir=DIR
1641                           specifies directory to put g++ header files
1642   --with-cpp-install-dir=DIR
1643                           install the user visible C preprocessor in DIR
1644                           (relative to PREFIX) as well as PREFIX/bin
1645   --with-gnu-ld           arrange to work with GNU ld
1646   --with-ld               arrange to use the specified ld (full pathname)
1647   --with-demangler-in-ld  try to use demangler in GNU ld
1648   --with-gnu-as           arrange to work with GNU as
1649   --with-as               arrange to use the specified as (full pathname)
1650   --with-stabs            arrange to use stabs instead of host debug format
1651   --with-dwarf2           force the default debug format to be DWARF 2
1652   --with-build-sysroot=sysroot
1653                           use sysroot as the system root during the build
1654   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1655   --with-specs=SPECS      add SPECS to driver command-line processing
1656   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1657   --with-bugurl=URL       Direct users to URL to report a bug
1658   --with-multilib-list    select multilibs (SH only)
1659   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1660   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1661   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1662   --with-system-libunwind use installed libunwind
1663   --with-pic              try to use only PIC/non-PIC objects [default=use
1664                           both]
1665   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1666   --with-plugin-ld=[ARG]  specify the plugin linker
1667   --with-long-double-128  use 128-bit long double by default
1668   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1669                           the compiler
1670   --with-system-zlib      use installed libz
1671   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1672   --with-linker-hash-style={sysv,gnu,both}
1673                           specify the linker hash style
1674
1675 Some influential environment variables:
1676   CC          C compiler command
1677   CFLAGS      C compiler flags
1678   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1679               nonstandard directory <lib dir>
1680   LIBS        libraries to pass to the linker, e.g. -l<library>
1681   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682               you have headers in a nonstandard directory <include dir>
1683   CXX         C++ compiler command
1684   CXXFLAGS    C++ compiler flags
1685   CPP         C preprocessor
1686   CXXCPP      C++ preprocessor
1687   GMPLIBS     How to link GMP
1688   GMPINC      How to find GMP include files
1689   PPLLIBS     How to link PPL
1690   PPLINC      How to find PPL include files
1691   CLOOGLIBS   How to link CLOOG
1692   CLOOGINC    How to find CLOOG include files
1693
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1696
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703   # If there are subdirs, report their specific --help.
1704   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705     test -d "$ac_dir" ||
1706       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707       continue
1708     ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714   # A ".." for each directory in $ac_dir_suffix.
1715   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716   case $ac_top_builddir_sub in
1717   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719   esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727   .)  # We are building in place.
1728     ac_srcdir=.
1729     ac_top_srcdir=$ac_top_builddir_sub
1730     ac_abs_top_srcdir=$ac_pwd ;;
1731   [\\/]* | ?:[\\/]* )  # Absolute name.
1732     ac_srcdir=$srcdir$ac_dir_suffix;
1733     ac_top_srcdir=$srcdir
1734     ac_abs_top_srcdir=$srcdir ;;
1735   *) # Relative name.
1736     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737     ac_top_srcdir=$ac_top_build_prefix$srcdir
1738     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742     cd "$ac_dir" || { ac_status=$?; continue; }
1743     # Check for guested configure.
1744     if test -f "$ac_srcdir/configure.gnu"; then
1745       echo &&
1746       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747     elif test -f "$ac_srcdir/configure"; then
1748       echo &&
1749       $SHELL "$ac_srcdir/configure" --help=recursive
1750     else
1751       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752     fi || ac_status=$?
1753     cd "$ac_pwd" || { ac_status=$?; break; }
1754   done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759   cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.64
1762
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767   exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780   rm -f conftest.$ac_objext
1781   if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784   *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788   (eval "$ac_compile") 2>conftest.err
1789   ac_status=$?
1790   if test -s conftest.err; then
1791     grep -v '^ *+' conftest.err >conftest.er1
1792     cat conftest.er1 >&5
1793     mv -f conftest.er1 conftest.err
1794   fi
1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796   test $ac_status = 0; } && {
1797          test -z "$ac_c_werror_flag" ||
1798          test ! -s conftest.err
1799        } && test -s conftest.$ac_objext; then :
1800   ac_retval=0
1801 else
1802   $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805         ac_retval=1
1806 fi
1807   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808   return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   rm -f conftest.$ac_objext
1819   if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822   *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826   (eval "$ac_compile") 2>conftest.err
1827   ac_status=$?
1828   if test -s conftest.err; then
1829     grep -v '^ *+' conftest.err >conftest.er1
1830     cat conftest.er1 >&5
1831     mv -f conftest.er1 conftest.err
1832   fi
1833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834   test $ac_status = 0; } && {
1835          test -z "$ac_cxx_werror_flag" ||
1836          test ! -s conftest.err
1837        } && test -s conftest.$ac_objext; then :
1838   ac_retval=0
1839 else
1840   $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843         ac_retval=1
1844 fi
1845   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846   return $ac_retval
1847
1848 } # ac_fn_cxx_try_compile
1849
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_cpp ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 case "(($ac_try" in
1858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859   *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864   ac_status=$?
1865   if test -s conftest.err; then
1866     grep -v '^ *+' conftest.err >conftest.er1
1867     cat conftest.er1 >&5
1868     mv -f conftest.er1 conftest.err
1869   fi
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; } >/dev/null && {
1872          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873          test ! -s conftest.err
1874        }; then :
1875   ac_retval=0
1876 else
1877   $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880     ac_retval=1
1881 fi
1882   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883   return $ac_retval
1884
1885 } # ac_fn_c_try_cpp
1886
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899   $as_echo_n "(cached) " >&6
1900 fi
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905   # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   ac_header_compiler=yes
1915 else
1916   ac_header_compiler=no
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1921
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930   ac_header_preproc=yes
1931 else
1932   ac_header_preproc=no
1933 fi
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1937
1938 # So?  What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940   yes:no: )
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945     ;;
1946   no:yes:* )
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957     ;;
1958 esac
1959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962   $as_echo_n "(cached) " >&6
1963 else
1964   eval "$3=\$ac_header_compiler"
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 fi
1970   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
1972 } # ac_fn_c_check_header_mongrel
1973
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1978 ac_fn_c_try_run ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984   *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988   (eval "$ac_link") 2>&5
1989   ac_status=$?
1990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992   { { case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_try") 2>&5
1999   ac_status=$?
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; }; }; then :
2002   ac_retval=0
2003 else
2004   $as_echo "$as_me: program exited with status $ac_status" >&5
2005        $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008        ac_retval=$ac_status
2009 fi
2010   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012   return $ac_retval
2013
2014 } # ac_fn_c_try_run
2015
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026   $as_echo_n "(cached) " >&6
2027 else
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 $4
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034   eval "$3=yes"
2035 else
2036   eval "$3=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045 } # ac_fn_c_check_header_compile
2046
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 # computed
2052 ac_fn_c_compute_int ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   if test "$cross_compiling" = yes; then
2056     # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2064 test_array [0] = 0
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   ac_lo=0 ac_mid=0
2072   while :; do
2073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h.  */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 test_array [0] = 0
2081
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087   ac_hi=$ac_mid; break
2088 else
2089   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2090                         if test $ac_lo -le $ac_mid; then
2091                           ac_lo= ac_hi=
2092                           break
2093                         fi
2094                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097   done
2098 else
2099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h.  */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) < 0)];
2106 test_array [0] = 0
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   ac_hi=-1 ac_mid=-1
2114   while :; do
2115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2122 test_array [0] = 0
2123
2124   ;
2125   return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129   ac_lo=$ac_mid; break
2130 else
2131   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132                         if test $ac_mid -le $ac_hi; then
2133                           ac_lo= ac_hi=
2134                           break
2135                         fi
2136                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139   done
2140 else
2141   ac_lo= ac_hi=
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 test_array [0] = 0
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163   ac_hi=$ac_mid
2164 else
2165   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169 case $ac_lo in #((
2170 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2171 '') ac_retval=1 ;;
2172 esac
2173   else
2174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2179 #include <stdio.h>
2180 #include <stdlib.h>
2181 int
2182 main ()
2183 {
2184
2185   FILE *f = fopen ("conftest.val", "w");
2186   if (! f)
2187     return 1;
2188   if (($2) < 0)
2189     {
2190       long int i = longval ();
2191       if (i != ($2))
2192         return 1;
2193       fprintf (f, "%ld", i);
2194     }
2195   else
2196     {
2197       unsigned long int i = ulongval ();
2198       if (i != ($2))
2199         return 1;
2200       fprintf (f, "%lu", i);
2201     }
2202   /* Do not output a trailing newline, as this causes \r\n confusion
2203      on some platforms.  */
2204   return ferror (f) || fclose (f) != 0;
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_run "$LINENO"; then :
2211   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2212 else
2213   ac_retval=1
2214 fi
2215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2216   conftest.$ac_objext conftest.beam conftest.$ac_ext
2217 rm -f conftest.val
2218
2219   fi
2220   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221   return $ac_retval
2222
2223 } # ac_fn_c_compute_int
2224
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235   $as_echo_n "(cached) " >&6
2236 else
2237   eval "$3=no"
2238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h.  */
2240 $4
2241 int
2242 main ()
2243 {
2244 if (sizeof ($2))
2245          return 0;
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 int
2255 main ()
2256 {
2257 if (sizeof (($2)))
2258             return 0;
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264
2265 else
2266   eval "$3=yes"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276
2277 } # ac_fn_c_check_type
2278
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 # accordingly.
2283 ac_fn_c_find_intX_t ()
2284 {
2285   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289   $as_echo_n "(cached) " >&6
2290 else
2291   eval "$3=no"
2292      for ac_type in int$2_t 'int' 'long int' \
2293          'long long int' 'short int' 'signed char'; do
2294        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h.  */
2296 $ac_includes_default
2297 int
2298 main ()
2299 {
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2301 test_array [0] = 0
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $ac_includes_default
2311 int
2312 main ()
2313 {
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2316 test_array [0] = 0
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323
2324 else
2325   case $ac_type in #(
2326   int$2_t) :
2327     eval "$3=yes" ;; #(
2328   *) :
2329     eval "$3=\$ac_type" ;;
2330 esac
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335        eval as_val=\$$3
2336    if test "x$as_val" = x""no; then :
2337
2338 else
2339   break
2340 fi
2341      done
2342 fi
2343 eval ac_res=\$$3
2344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347
2348 } # ac_fn_c_find_intX_t
2349
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 ac_fn_c_try_link ()
2354 {
2355   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356   rm -f conftest.$ac_objext conftest$ac_exeext
2357   if { { ac_try="$ac_link"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364   (eval "$ac_link") 2>conftest.err
2365   ac_status=$?
2366   if test -s conftest.err; then
2367     grep -v '^ *+' conftest.err >conftest.er1
2368     cat conftest.er1 >&5
2369     mv -f conftest.er1 conftest.err
2370   fi
2371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372   test $ac_status = 0; } && {
2373          test -z "$ac_c_werror_flag" ||
2374          test ! -s conftest.err
2375        } && test -s conftest$ac_exeext && {
2376          test "$cross_compiling" = yes ||
2377          $as_test_x conftest$ac_exeext
2378        }; then :
2379   ac_retval=0
2380 else
2381   $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384         ac_retval=1
2385 fi
2386   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388   # interfere with the next link command; also delete a directory that is
2389   # left behind by Apple's compiler.  We do this before executing the actions.
2390   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392   return $ac_retval
2393
2394 } # ac_fn_c_try_link
2395
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 # accordingly.
2400 ac_fn_c_find_uintX_t ()
2401 {
2402   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406   $as_echo_n "(cached) " >&6
2407 else
2408   eval "$3=no"
2409      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h.  */
2413 $ac_includes_default
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2418 test_array [0] = 0
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425   case $ac_type in #(
2426   uint$2_t) :
2427     eval "$3=yes" ;; #(
2428   *) :
2429     eval "$3=\$ac_type" ;;
2430 esac
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433        eval as_val=\$$3
2434    if test "x$as_val" = x""no; then :
2435
2436 else
2437   break
2438 fi
2439      done
2440 fi
2441 eval ac_res=\$$3
2442                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445
2446 } # ac_fn_c_find_uintX_t
2447
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2452 {
2453   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457   $as_echo_n "(cached) " >&6
2458 else
2459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h.  */
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2464   eval "$3=yes"
2465 else
2466   eval "$3=no"
2467 fi
2468 rm -f conftest.err conftest.$ac_ext
2469 fi
2470 eval ac_res=\$$3
2471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474
2475 } # ac_fn_c_check_header_preproc
2476
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2481 {
2482   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483   if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491   ac_status=$?
2492   if test -s conftest.err; then
2493     grep -v '^ *+' conftest.err >conftest.er1
2494     cat conftest.er1 >&5
2495     mv -f conftest.er1 conftest.err
2496   fi
2497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498   test $ac_status = 0; } >/dev/null && {
2499          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500          test ! -s conftest.err
2501        }; then :
2502   ac_retval=0
2503 else
2504   $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507     ac_retval=1
2508 fi
2509   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510   return $ac_retval
2511
2512 } # ac_fn_cxx_try_cpp
2513
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc ()
2518 {
2519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 #include <$2>
2528 _ACEOF
2529 if ac_fn_cxx_try_cpp "$LINENO"; then :
2530   eval "$3=yes"
2531 else
2532   eval "$3=no"
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535 fi
2536 eval ac_res=\$$3
2537                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_cxx_check_header_preproc
2542
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2547 {
2548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552   $as_echo_n "(cached) " >&6
2553 else
2554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h.  */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2558 #define $2 innocuous_$2
2559
2560 /* System header to define __stub macros and hopefully few prototypes,
2561     which can conflict with char $2 (); below.
2562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563     <limits.h> exists even on freestanding compilers.  */
2564
2565 #ifdef __STDC__
2566 # include <limits.h>
2567 #else
2568 # include <assert.h>
2569 #endif
2570
2571 #undef $2
2572
2573 /* Override any GCC internal prototype to avoid an error.
2574    Use char because int might match the return type of a GCC
2575    builtin and then its argument prototype would still apply.  */
2576 #ifdef __cplusplus
2577 extern "C"
2578 #endif
2579 char $2 ();
2580 /* The GNU C library defines this for functions which it implements
2581     to always fail with ENOSYS.  Some functions are actually named
2582     something starting with __ and the normal name is an alias.  */
2583 #if defined __stub_$2 || defined __stub___$2
2584 choke me
2585 #endif
2586
2587 int
2588 main ()
2589 {
2590 return $2 ();
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_link "$LINENO"; then :
2596   eval "$3=yes"
2597 else
2598   eval "$3=no"
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext \
2601     conftest$ac_exeext conftest.$ac_ext
2602 fi
2603 eval ac_res=\$$3
2604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607
2608 } # ac_fn_c_check_func
2609
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link ()
2614 {
2615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616   rm -f conftest.$ac_objext conftest$ac_exeext
2617   if { { ac_try="$ac_link"
2618 case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624   (eval "$ac_link") 2>conftest.err
2625   ac_status=$?
2626   if test -s conftest.err; then
2627     grep -v '^ *+' conftest.err >conftest.er1
2628     cat conftest.er1 >&5
2629     mv -f conftest.er1 conftest.err
2630   fi
2631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632   test $ac_status = 0; } && {
2633          test -z "$ac_cxx_werror_flag" ||
2634          test ! -s conftest.err
2635        } && test -s conftest$ac_exeext && {
2636          test "$cross_compiling" = yes ||
2637          $as_test_x conftest$ac_exeext
2638        }; then :
2639   ac_retval=0
2640 else
2641   $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644         ac_retval=1
2645 fi
2646   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648   # interfere with the next link command; also delete a directory that is
2649   # left behind by Apple's compiler.  We do this before executing the actions.
2650   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652   return $ac_retval
2653
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2658
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64.  Invocation command line was
2661
2662   $ $0 $@
2663
2664 _ACEOF
2665 exec 5>>config.log
2666 {
2667 cat <<_ASUNAME
2668 ## --------- ##
2669 ## Platform. ##
2670 ## --------- ##
2671
2672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2677
2678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2680
2681 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2682 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2685 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2686 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2687 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2688
2689 _ASUNAME
2690
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696     $as_echo "PATH: $as_dir"
2697   done
2698 IFS=$as_save_IFS
2699
2700 } >&5
2701
2702 cat >&5 <<_ACEOF
2703
2704
2705 ## ----------- ##
2706 ## Core tests. ##
2707 ## ----------- ##
2708
2709 _ACEOF
2710
2711
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2717 ac_configure_args=
2718 ac_configure_args0=
2719 ac_configure_args1=
2720 ac_must_keep_next=false
2721 for ac_pass in 1 2
2722 do
2723   for ac_arg
2724   do
2725     case $ac_arg in
2726     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728     | -silent | --silent | --silen | --sile | --sil)
2729       continue ;;
2730     *\'*)
2731       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732     esac
2733     case $ac_pass in
2734     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735     2)
2736       as_fn_append ac_configure_args1 " '$ac_arg'"
2737       if test $ac_must_keep_next = true; then
2738         ac_must_keep_next=false # Got value, back to normal.
2739       else
2740         case $ac_arg in
2741           *=* | --config-cache | -C | -disable-* | --disable-* \
2742           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744           | -with-* | --with-* | -without-* | --without-* | --x)
2745             case "$ac_configure_args0 " in
2746               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747             esac
2748             ;;
2749           -* ) ac_must_keep_next=true ;;
2750         esac
2751       fi
2752       as_fn_append ac_configure_args " '$ac_arg'"
2753       ;;
2754     esac
2755   done
2756 done
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2759
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log.  We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766   # Save into config.log some information that might help in debugging.
2767   {
2768     echo
2769
2770     cat <<\_ASBOX
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2774 _ASBOX
2775     echo
2776     # The following way of writing the cache mishandles newlines in values,
2777 (
2778   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779     eval ac_val=\$$ac_var
2780     case $ac_val in #(
2781     *${as_nl}*)
2782       case $ac_var in #(
2783       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785       esac
2786       case $ac_var in #(
2787       _ | IFS | as_nl) ;; #(
2788       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789       *) { eval $ac_var=; unset $ac_var;} ;;
2790       esac ;;
2791     esac
2792   done
2793   (set) 2>&1 |
2794     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795     *${as_nl}ac_space=\ *)
2796       sed -n \
2797         "s/'\''/'\''\\\\'\'''\''/g;
2798           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799       ;; #(
2800     *)
2801       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2802       ;;
2803     esac |
2804     sort
2805 )
2806     echo
2807
2808     cat <<\_ASBOX
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2812 _ASBOX
2813     echo
2814     for ac_var in $ac_subst_vars
2815     do
2816       eval ac_val=\$$ac_var
2817       case $ac_val in
2818       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819       esac
2820       $as_echo "$ac_var='\''$ac_val'\''"
2821     done | sort
2822     echo
2823
2824     if test -n "$ac_subst_files"; then
2825       cat <<\_ASBOX
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2829 _ASBOX
2830       echo
2831       for ac_var in $ac_subst_files
2832       do
2833         eval ac_val=\$$ac_var
2834         case $ac_val in
2835         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836         esac
2837         $as_echo "$ac_var='\''$ac_val'\''"
2838       done | sort
2839       echo
2840     fi
2841
2842     if test -s confdefs.h; then
2843       cat <<\_ASBOX
2844 ## ----------- ##
2845 ## confdefs.h. ##
2846 ## ----------- ##
2847 _ASBOX
2848       echo
2849       cat confdefs.h
2850       echo
2851     fi
2852     test "$ac_signal" != 0 &&
2853       $as_echo "$as_me: caught signal $ac_signal"
2854     $as_echo "$as_me: exit $exit_status"
2855   } >&5
2856   rm -f core *.core core.conftest.* &&
2857     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858     exit $exit_status
2859 ' 0
2860 for ac_signal in 1 2 13 15; do
2861   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2862 done
2863 ac_signal=0
2864
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2867
2868 $as_echo "/* confdefs.h */" > confdefs.h
2869
2870 # Predefined preprocessor variables.
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 _ACEOF
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 _ACEOF
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 _ACEOF
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2894 _ACEOF
2895
2896
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2899 ac_site_file1=NONE
2900 ac_site_file2=NONE
2901 if test -n "$CONFIG_SITE"; then
2902   ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904   ac_site_file1=$prefix/share/config.site
2905   ac_site_file2=$prefix/etc/config.site
2906 else
2907   ac_site_file1=$ac_default_prefix/share/config.site
2908   ac_site_file2=$ac_default_prefix/etc/config.site
2909 fi
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 do
2912   test "x$ac_site_file" = xNONE && continue
2913   if test -r "$ac_site_file"; then
2914     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916     sed 's/^/| /' "$ac_site_file" >&5
2917     . "$ac_site_file"
2918   fi
2919 done
2920
2921 if test -r "$cache_file"; then
2922   # Some versions of bash will fail to source /dev/null (special
2923   # files actually), so we avoid doing that.
2924   if test -f "$cache_file"; then
2925     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927     case $cache_file in
2928       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929       *)                      . "./$cache_file";;
2930     esac
2931   fi
2932 else
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2935   >$cache_file
2936 fi
2937
2938 # Check that the precious variables saved in the cache have kept the same
2939 # value.
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943   eval ac_new_set=\$ac_env_${ac_var}_set
2944   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945   eval ac_new_val=\$ac_env_${ac_var}_value
2946   case $ac_old_set,$ac_new_set in
2947     set,)
2948       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950       ac_cache_corrupted=: ;;
2951     ,set)
2952       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2954       ac_cache_corrupted=: ;;
2955     ,);;
2956     *)
2957       if test "x$ac_old_val" != "x$ac_new_val"; then
2958         # differences in whitespace do not lead to failure.
2959         ac_old_val_w=`echo x $ac_old_val`
2960         ac_new_val_w=`echo x $ac_new_val`
2961         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2964           ac_cache_corrupted=:
2965         else
2966           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968           eval $ac_var=\$ac_old_val
2969         fi
2970         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2971 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2972         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2974       fi;;
2975   esac
2976   # Pass precious variables to config.status.
2977   if test "$ac_new_set" = set; then
2978     case $ac_new_val in
2979     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2980     *) ac_arg=$ac_var=$ac_new_val ;;
2981     esac
2982     case " $ac_configure_args " in
2983       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2984       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2985     esac
2986   fi
2987 done
2988 if $ac_cache_corrupted; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2994 fi
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
2998
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004
3005
3006
3007
3008
3009
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011
3012
3013 gcc_version=`cat $srcdir/BASE-VER`
3014
3015 # Determine the host, build, and target systems
3016 ac_aux_dir=
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018   for ac_t in install-sh install.sh shtool; do
3019     if test -f "$ac_dir/$ac_t"; then
3020       ac_aux_dir=$ac_dir
3021       ac_install_sh="$ac_aux_dir/$ac_t -c"
3022       break 2
3023     fi
3024   done
3025 done
3026 if test -z "$ac_aux_dir"; then
3027   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 fi
3029
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3037
3038
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3060 *-*-*) ;;
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 esac
3063 build=$ac_cv_build
3064 ac_save_IFS=$IFS; IFS='-'
3065 set x $ac_cv_build
3066 shift
3067 build_cpu=$1
3068 build_vendor=$2
3069 shift; shift
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3072 build_os=$*
3073 IFS=$ac_save_IFS
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3075
3076
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test "x$host_alias" = x; then
3083   ac_cv_host=$ac_cv_build
3084 else
3085   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3087 fi
3088
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3092 case $ac_cv_host in
3093 *-*-*) ;;
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 esac
3096 host=$ac_cv_host
3097 ac_save_IFS=$IFS; IFS='-'
3098 set x $ac_cv_host
3099 shift
3100 host_cpu=$1
3101 host_vendor=$2
3102 shift; shift
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3105 host_os=$*
3106 IFS=$ac_save_IFS
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113   $as_echo_n "(cached) " >&6
3114 else
3115   if test "x$target_alias" = x; then
3116   ac_cv_target=$ac_cv_host
3117 else
3118   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3120 fi
3121
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3126 *-*-*) ;;
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 esac
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3131 set x $ac_cv_target
3132 shift
3133 target_cpu=$1
3134 target_vendor=$2
3135 shift; shift
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3138 target_os=$*
3139 IFS=$ac_save_IFS
3140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3141
3142
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146   test "$program_prefix$program_suffix$program_transform_name" = \
3147     NONENONEs,x,x, &&
3148   program_prefix=${target_alias}-
3149
3150 # Determine the noncanonical target name, for directory use.
3151  case ${build_alias} in
3152   "") build_noncanonical=${build} ;;
3153   *) build_noncanonical=${build_alias} ;;
3154 esac
3155
3156  case ${host_alias} in
3157   "") host_noncanonical=${build_noncanonical} ;;
3158   *) host_noncanonical=${host_alias} ;;
3159 esac
3160
3161  case ${target_alias} in
3162   "") target_noncanonical=${host_noncanonical} ;;
3163   *) target_noncanonical=${target_alias} ;;
3164 esac
3165
3166
3167
3168
3169 # Determine the target- and build-specific subdirectories
3170
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # finishes. So:
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3179
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3182
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185   withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 else
3187   build_libsubdir="$build_subdir"
3188 fi
3189
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192    || test -d $srcdir/../host-${host_noncanonical}; then
3193   host_subdir="host-${host_noncanonical}"
3194 else
3195   host_subdir=.
3196 fi
3197 # No prefix.
3198 target_subdir=${target_noncanonical}
3199
3200
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211
3212
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3217 # is true:
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225     library_path_setting="contains current directory"
3226     ;;
3227   *)
3228     library_path_setting="ok"
3229     ;;
3230 esac
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3234 as_fn_error "
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again." "$LINENO" 5
3238 fi
3239
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # is true:
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251     gcc_exec_prefix_setting="contains current directory"
3252     ;;
3253   *)
3254     gcc_exec_prefix_setting="ok"
3255     ;;
3256 esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok"; then
3260 as_fn_error "
3261 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3264 fi
3265
3266 # -----------
3267 # Directories
3268 # -----------
3269
3270 # Specify the local prefix
3271 local_prefix=
3272
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275   withval=$with_local_prefix; case "${withval}" in
3276 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 no)     ;;
3278 *)      local_prefix=$with_local_prefix ;;
3279 esac
3280 fi
3281
3282
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285         local_prefix=/usr/local
3286 fi
3287
3288 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir=
3292 # Specify the g++ header file directory
3293
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296   withval=$with_gxx_include_dir; case "${withval}" in
3297 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 no)     ;;
3299 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3300 esac
3301 fi
3302
3303
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x${gcc_gxx_include_dir} = x; then
3306   if test x${enable_version_specific_runtime_libs} = xyes; then
3307     gcc_gxx_include_dir='${libsubdir}/include/c++'
3308   else
3309     libstdcxx_incdir='include/c++/$(version)'
3310     if test x$host != x$target; then
3311        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3312     fi
3313     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3314   fi
3315 fi
3316
3317
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3321   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x$withval != xno; then
3323   cpp_install_dir=$withval
3324 fi
3325 fi
3326
3327
3328 # We would like to our source tree to be readonly.  However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3332 # just that.
3333
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336     # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3339 else
3340   generated_files_in_srcdir=no
3341 fi
3342
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3346
3347 if test "$generated_files_in_srcdir" = "yes"; then
3348   GENINSRC=''
3349 else
3350   GENINSRC='#'
3351 fi
3352
3353
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3357
3358 # With GNU ld
3359
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3363 else
3364   gnu_ld_flag=no
3365 fi
3366
3367
3368 # With pre-defined ld
3369
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3373 fi
3374
3375 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3376   if test ! -x "$DEFAULT_LINKER"; then
3377     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3379     gnu_ld_flag=yes
3380   fi
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3384 _ACEOF
3385
3386 fi
3387
3388 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3389
3390 cat >>confdefs.h <<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3392 _ACEOF
3393
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398   if test x"$gnu_ld_flag" = x"no"; then
3399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401   else
3402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404   fi
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410 # With demangler in GNU ld
3411
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3415 else
3416   demangler_in_ld=no
3417 fi
3418
3419
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3423
3424 # With GNU as
3425
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 else
3430   gas_flag=no
3431 fi
3432
3433
3434
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3438 fi
3439
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441   if test ! -x "$DEFAULT_ASSEMBLER"; then
3442     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3444     gas_flag=yes
3445   fi
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3449 _ACEOF
3450
3451 fi
3452
3453 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3457 _ACEOF
3458
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3463   if test x"$gas_flag" = x"no"; then
3464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466   else
3467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469   fi
3470 else
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475 # ---------------
3476 # Find C compiler
3477 # ---------------
3478
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3483 #
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3487
3488 # Find the native compiler
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$CC"; then
3503   ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$ac_cv_prog_CC"; then
3534   ac_ct_CC=$CC
3535   # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -n "$ac_ct_CC"; then
3543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_exec_ext in '' $ac_executable_extensions; do
3551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552     ac_cv_prog_ac_ct_CC="gcc"
3553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557   done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571   if test "x$ac_ct_CC" = x; then
3572     CC=""
3573   else
3574     case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580     CC=$ac_ct_CC
3581   fi
3582 else
3583   CC="$ac_cv_prog_CC"
3584 fi
3585
3586 if test -z "$CC"; then
3587           if test -n "$ac_tool_prefix"; then
3588     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test -n "$CC"; then
3596   ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605     ac_cv_prog_CC="${ac_tool_prefix}cc"
3606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610   done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625   fi
3626 fi
3627 if test -z "$CC"; then
3628   # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   if test -n "$CC"; then
3636   ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638   ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644     for ac_exec_ext in '' $ac_executable_extensions; do
3645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647        ac_prog_rejected=yes
3648        continue
3649      fi
3650     ac_cv_prog_CC="cc"
3651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652     break 2
3653   fi
3654 done
3655   done
3656 IFS=$as_save_IFS
3657
3658 if test $ac_prog_rejected = yes; then
3659   # We found a bogon in the path, so make sure we never use it.
3660   set dummy $ac_cv_prog_CC
3661   shift
3662   if test $# != 0; then
3663     # We chose a different compiler from the bogus one.
3664     # However, it has the same basename, so the bogon will be chosen
3665     # first if we set CC to just the basename; use the full file name.
3666     shift
3667     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668   fi
3669 fi
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 if test -z "$CC"; then
3684   if test -n "$ac_tool_prefix"; then
3685   for ac_prog in cl.exe
3686   do
3687     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692   $as_echo_n "(cached) " >&6
3693 else
3694   if test -n "$CC"; then
3695   ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700   IFS=$as_save_IFS
3701   test -z "$as_dir" && as_dir=.
3702     for ac_exec_ext in '' $ac_executable_extensions; do
3703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706     break 2
3707   fi
3708 done
3709   done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723
3724     test -n "$CC" && break
3725   done
3726 fi
3727 if test -z "$CC"; then
3728   ac_ct_CC=$CC
3729   for ac_prog in cl.exe
3730 do
3731   # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736   $as_echo_n "(cached) " >&6
3737 else
3738   if test -n "$ac_ct_CC"; then
3739   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746     for ac_exec_ext in '' $ac_executable_extensions; do
3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748     ac_cv_prog_ac_ct_CC="$ac_prog"
3749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753   done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768   test -n "$ac_ct_CC" && break
3769 done
3770
3771   if test "x$ac_ct_CC" = x; then
3772     CC=""
3773   else
3774     case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780     CC=$ac_ct_CC
3781   fi
3782 fi
3783
3784 fi
3785
3786
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3791
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797   { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805   ac_status=$?
3806   if test -s conftest.err; then
3807     sed '10a\
3808 ... rest of stderr output deleted ...
3809          10q' conftest.err >conftest.er1
3810     cat conftest.er1 >&5
3811     rm -f conftest.er1 conftest.err
3812   fi
3813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814   test $ac_status = 0; }
3815 done
3816
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819
3820 int
3821 main ()
3822 {
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3842 do
3843   case $ac_file in
3844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846   esac
3847 done
3848 rm -f $ac_rmfiles
3849
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857   (eval "$ac_link_default") 2>&5
3858   ac_status=$?
3859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860   test $ac_status = 0; }; then :
3861   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3867 do
3868   test -f "$ac_file" || continue
3869   case $ac_file in
3870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871         ;;
3872     [ab].out )
3873         # We found the default executable, but exeext='' is most
3874         # certainly right.
3875         break;;
3876     *.* )
3877         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878         then :; else
3879            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880         fi
3881         # We set ac_cv_exeext here because the later test for it is not
3882         # safe: cross compilers may not add the suffix if given an `-o'
3883         # argument, so we may need to know it at that point already.
3884         # Even if this section looks crufty: it has the advantage of
3885         # actually working.
3886         break;;
3887     * )
3888         break;;
3889   esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892
3893 else
3894   ac_file=''
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899   $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3907 fi
3908 ac_exeext=$ac_cv_exeext
3909
3910 # Check that the compiler produces executables we can run.  If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916   if { ac_try='./$ac_file'
3917   { { case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923   (eval "$ac_try") 2>&5
3924   ac_status=$?
3925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926   test $ac_status = 0; }; }; then
3927     cross_compiling=no
3928   else
3929     if test "$cross_compiling" = maybe; then
3930         cross_compiling=yes
3931     else
3932         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile, use \`--host'.
3936 See \`config.log' for more details." "$LINENO" 5; }
3937     fi
3938   fi
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3942
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run.  If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961   (eval "$ac_link") 2>&5
3962   ac_status=$?
3963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964   test $ac_status = 0; }; then :
3965   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970   test -f "$ac_file" || continue
3971   case $ac_file in
3972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974           break;;
3975     * ) break;;
3976   esac
3977 done
3978 else
3979   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3983 fi
3984 rm -f conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3987
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h.  */
3998
3999 int
4000 main ()
4001 {
4002
4003   ;
4004   return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015   (eval "$ac_compile") 2>&5
4016   ac_status=$?
4017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018   test $ac_status = 0; }; then :
4019   for ac_file in conftest.o conftest.obj conftest.*; do
4020   test -f "$ac_file" || continue;
4021   case $ac_file in
4022     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024        break;;
4025   esac
4026 done
4027 else
4028   $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4035 fi
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053 #ifndef __GNUC__
4054        choke me
4055 #endif
4056
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062   ac_compiler_gnu=yes
4063 else
4064   ac_compiler_gnu=no
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073   GCC=yes
4074 else
4075   GCC=
4076 fi
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082   $as_echo_n "(cached) " >&6
4083 else
4084   ac_save_c_werror_flag=$ac_c_werror_flag
4085    ac_c_werror_flag=yes
4086    ac_cv_prog_cc_g=no
4087    CFLAGS="-g"
4088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100   ac_cv_prog_cc_g=yes
4101 else
4102   CFLAGS=""
4103       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105
4106 int
4107 main ()
4108 {
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115
4116 else
4117   ac_c_werror_flag=$ac_save_c_werror_flag
4118          CFLAGS="-g"
4119          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h.  */
4121
4122 int
4123 main ()
4124 {
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131   ac_cv_prog_cc_g=yes
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138    ac_c_werror_flag=$ac_save_c_werror_flag
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143   CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145   if test "$GCC" = yes; then
4146     CFLAGS="-g -O2"
4147   else
4148     CFLAGS="-g"
4149   fi
4150 else
4151   if test "$GCC" = yes; then
4152     CFLAGS="-O2"
4153   else
4154     CFLAGS=
4155   fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174      char **p;
4175      int i;
4176 {
4177   return p[i];
4178 }
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4180 {
4181   char *s;
4182   va_list v;
4183   va_start (v,p);
4184   s = g (p, va_arg (v,int));
4185   va_end (v);
4186   return s;
4187 }
4188
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4190    function prototypes and stuff, but not '\xHH' hex character constants.
4191    These don't provoke an error unfortunately, instead are silently treated
4192    as 'x'.  The following induces an error, until -std is added to get
4193    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4194    array size at least.  It's necessary to write '\x00'==0 to get something
4195    that's true only with -std.  */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199    inside strings and character constants.  */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4209 int
4210 main ()
4211 {
4212 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4213   ;
4214   return 0;
4215 }
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 do
4220   CC="$ac_save_CC $ac_arg"
4221   if ac_fn_c_try_compile "$LINENO"; then :
4222   ac_cv_prog_cc_c89=$ac_arg
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225   test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4229
4230 fi
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4233   x)
4234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236   xno)
4237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4239   *)
4240     CC="$CC $ac_cv_prog_cc_c89"
4241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254 if test "x$CC" != xcc; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 fi
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; } &&
4292    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; };
4302 then
4303   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304   if test "x$CC" != xcc; then
4305     # Test first that cc exists at all.
4306     if { ac_try='cc -c conftest.$ac_ext >&5'
4307   { { case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313   (eval "$ac_try") 2>&5
4314   ac_status=$?
4315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316   test $ac_status = 0; }; }; then
4317       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318       rm -f conftest2.*
4319       if { { case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328   test $ac_status = 0; } &&
4329          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335   (eval "$ac_try") 2>&5
4336   ac_status=$?
4337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338   test $ac_status = 0; };
4339       then
4340         # cc works too.
4341         :
4342       else
4343         # cc exists but doesn't like -o.
4344         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345       fi
4346     fi
4347   fi
4348 else
4349   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 fi
4351 rm -f core conftest*
4352
4353 fi
4354 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4362
4363 fi
4364
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir=`cd $ac_aux_dir && pwd`
4367
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4370 set dummy $CC
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374    # Losing compiler, so override with the script.
4375    # FIXME: It is wrong to rewrite CC.
4376    # But if we don't then we get into trouble of one sort or another.
4377    # A longer-term fix would be to have automake use am__CC in this case,
4378    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379    CC="$am_aux_dir/compile $CC"
4380 fi
4381
4382
4383 ac_ext=cpp
4384 ac_cpp='$CXXCPP $CPPFLAGS'
4385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389   if test -n "$CCC"; then
4390     CXX=$CCC
4391   else
4392     if test -n "$ac_tool_prefix"; then
4393   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394   do
4395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400   $as_echo_n "(cached) " >&6
4401 else
4402   if test -n "$CXX"; then
4403   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410     for ac_exec_ext in '' $ac_executable_extensions; do
4411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417   done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 CXX=$ac_cv_prog_CXX
4423 if test -n "$CXX"; then
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4426 else
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432     test -n "$CXX" && break
4433   done
4434 fi
4435 if test -z "$CXX"; then
4436   ac_ct_CXX=$CXX
4437   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4438 do
4439   # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   if test -n "$ac_ct_CXX"; then
4447   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454     for ac_exec_ext in '' $ac_executable_extensions; do
4455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456     ac_cv_prog_ac_ct_CXX="$ac_prog"
4457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461   done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4470 else
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476   test -n "$ac_ct_CXX" && break
4477 done
4478
4479   if test "x$ac_ct_CXX" = x; then
4480     CXX="g++"
4481   else
4482     case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488     CXX=$ac_ct_CXX
4489   fi
4490 fi
4491
4492   fi
4493 fi
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 set X $ac_compile
4497 ac_compiler=$2
4498 for ac_option in --version -v -V -qversion; do
4499   { { ac_try="$ac_compiler $ac_option >&5"
4500 case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507   ac_status=$?
4508   if test -s conftest.err; then
4509     sed '10a\
4510 ... rest of stderr output deleted ...
4511          10q' conftest.err >conftest.er1
4512     cat conftest.er1 >&5
4513     rm -f conftest.er1 conftest.err
4514   fi
4515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516   test $ac_status = 0; }
4517 done
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530 #ifndef __GNUC__
4531        choke me
4532 #endif
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539   ac_compiler_gnu=yes
4540 else
4541   ac_compiler_gnu=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550   GXX=yes
4551 else
4552   GXX=
4553 fi
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562    ac_cxx_werror_flag=yes
4563    ac_cv_prog_cxx_g=no
4564    CXXFLAGS="-g"
4565    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567
4568 int
4569 main ()
4570 {
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577   ac_cv_prog_cxx_g=yes
4578 else
4579   CXXFLAGS=""
4580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h.  */
4582
4583 int
4584 main ()
4585 {
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592
4593 else
4594   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595          CXXFLAGS="-g"
4596          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608   ac_cv_prog_cxx_g=yes
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620   CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622   if test "$GXX" = yes; then
4623     CXXFLAGS="-g -O2"
4624   else
4625     CXXFLAGS="-g"
4626   fi
4627 else
4628   if test "$GXX" = yes; then
4629     CXXFLAGS="-O2"
4630   else
4631     CXXFLAGS=
4632   fi
4633 fi
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
4640
4641
4642
4643 if test -n "$ac_tool_prefix"; then
4644   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   if test -n "$GNATBIND"; then
4652   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659     for ac_exec_ext in '' $ac_executable_extensions; do
4660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666   done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4675 else
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 fi
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683   ac_ct_GNATBIND=$GNATBIND
4684   # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$ac_ct_GNATBIND"; then
4692   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720   if test "x$ac_ct_GNATBIND" = x; then
4721     GNATBIND="no"
4722   else
4723     case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729     GNATBIND=$ac_ct_GNATBIND
4730   fi
4731 else
4732   GNATBIND="$ac_cv_prog_GNATBIND"
4733 fi
4734
4735 if test -n "$ac_tool_prefix"; then
4736   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if test -n "$GNATMAKE"; then
4744   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4767 else
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775   ac_ct_GNATMAKE=$GNATMAKE
4776   # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781   $as_echo_n "(cached) " >&6
4782 else
4783   if test -n "$ac_ct_GNATMAKE"; then
4784   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791     for ac_exec_ext in '' $ac_executable_extensions; do
4792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798   done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 else
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812   if test "x$ac_ct_GNATMAKE" = x; then
4813     GNATMAKE="no"
4814   else
4815     case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821     GNATMAKE=$ac_ct_GNATMAKE
4822   fi
4823 else
4824   GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 fi
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4834 EOF
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file.  So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846   acx_cv_cc_gcc_supports_ada=yes
4847 fi
4848 rm -f conftest.*
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4854   have_gnat=yes
4855 else
4856   have_gnat=no
4857 fi
4858
4859
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4862   NO_MINUS_C_MINUS_O=yes
4863 else
4864   OUTPUT_OPTION='-o $@'
4865 fi
4866
4867
4868
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4871 case "$CC" in
4872   */prev-gcc/xgcc*) ;;
4873   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4874 esac
4875
4876
4877 # -------------------------
4878 # Check C compiler features
4879 # -------------------------
4880
4881
4882 ac_ext=c
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4888 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4889 # On Suns, sometimes $CPP names a directory.
4890 if test -n "$CPP" && test -d "$CPP"; then
4891   CPP=
4892 fi
4893 if test -z "$CPP"; then
4894   if test "${ac_cv_prog_CPP+set}" = set; then :
4895   $as_echo_n "(cached) " >&6
4896 else
4897       # Double quotes because CPP needs to be expanded
4898     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4899     do
4900       ac_preproc_ok=false
4901 for ac_c_preproc_warn_flag in '' yes
4902 do
4903   # Use a header file that comes with gcc, so configuring glibc
4904   # with a fresh cross-compiler works.
4905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906   # <limits.h> exists even on freestanding compilers.
4907   # On the NeXT, cc -E runs the code through the compiler's parser,
4908   # not just through cpp. "Syntax error" is here to catch this case.
4909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h.  */
4911 #ifdef __STDC__
4912 # include <limits.h>
4913 #else
4914 # include <assert.h>
4915 #endif
4916                      Syntax error
4917 _ACEOF
4918 if ac_fn_c_try_cpp "$LINENO"; then :
4919
4920 else
4921   # Broken: fails on valid input.
4922 continue
4923 fi
4924 rm -f conftest.err conftest.$ac_ext
4925
4926   # OK, works on sane cases.  Now check whether nonexistent headers
4927   # can be detected and how.
4928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h.  */
4930 #include <ac_nonexistent.h>
4931 _ACEOF
4932 if ac_fn_c_try_cpp "$LINENO"; then :
4933   # Broken: success on invalid input.
4934 continue
4935 else
4936   # Passes both tests.
4937 ac_preproc_ok=:
4938 break
4939 fi
4940 rm -f conftest.err conftest.$ac_ext
4941
4942 done
4943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944 rm -f conftest.err conftest.$ac_ext
4945 if $ac_preproc_ok; then :
4946   break
4947 fi
4948
4949     done
4950     ac_cv_prog_CPP=$CPP
4951
4952 fi
4953   CPP=$ac_cv_prog_CPP
4954 else
4955   ac_cv_prog_CPP=$CPP
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4958 $as_echo "$CPP" >&6; }
4959 ac_preproc_ok=false
4960 for ac_c_preproc_warn_flag in '' yes
4961 do
4962   # Use a header file that comes with gcc, so configuring glibc
4963   # with a fresh cross-compiler works.
4964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965   # <limits.h> exists even on freestanding compilers.
4966   # On the NeXT, cc -E runs the code through the compiler's parser,
4967   # not just through cpp. "Syntax error" is here to catch this case.
4968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h.  */
4970 #ifdef __STDC__
4971 # include <limits.h>
4972 #else
4973 # include <assert.h>
4974 #endif
4975                      Syntax error
4976 _ACEOF
4977 if ac_fn_c_try_cpp "$LINENO"; then :
4978
4979 else
4980   # Broken: fails on valid input.
4981 continue
4982 fi
4983 rm -f conftest.err conftest.$ac_ext
4984
4985   # OK, works on sane cases.  Now check whether nonexistent headers
4986   # can be detected and how.
4987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h.  */
4989 #include <ac_nonexistent.h>
4990 _ACEOF
4991 if ac_fn_c_try_cpp "$LINENO"; then :
4992   # Broken: success on invalid input.
4993 continue
4994 else
4995   # Passes both tests.
4996 ac_preproc_ok=:
4997 break
4998 fi
4999 rm -f conftest.err conftest.$ac_ext
5000
5001 done
5002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003 rm -f conftest.err conftest.$ac_ext
5004 if $ac_preproc_ok; then :
5005
5006 else
5007   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5009 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5010 See \`config.log' for more details." "$LINENO" 5; }
5011 fi
5012
5013 ac_ext=c
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5021 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5022 if test "${ac_cv_path_GREP+set}" = set; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   if test -z "$GREP"; then
5026   ac_path_GREP_found=false
5027   # Loop through the user's path and test for each of PROGNAME-LIST
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_prog in grep ggrep; do
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5036       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5037 # Check for GNU ac_path_GREP and select it if it is found.
5038   # Check for GNU $ac_path_GREP
5039 case `"$ac_path_GREP" --version 2>&1` in
5040 *GNU*)
5041   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5042 *)
5043   ac_count=0
5044   $as_echo_n 0123456789 >"conftest.in"
5045   while :
5046   do
5047     cat "conftest.in" "conftest.in" >"conftest.tmp"
5048     mv "conftest.tmp" "conftest.in"
5049     cp "conftest.in" "conftest.nl"
5050     $as_echo 'GREP' >> "conftest.nl"
5051     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053     as_fn_arith $ac_count + 1 && ac_count=$as_val
5054     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5055       # Best one so far, save it but keep looking for a better one
5056       ac_cv_path_GREP="$ac_path_GREP"
5057       ac_path_GREP_max=$ac_count
5058     fi
5059     # 10*(2^10) chars as input seems more than enough
5060     test $ac_count -gt 10 && break
5061   done
5062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063 esac
5064
5065       $ac_path_GREP_found && break 3
5066     done
5067   done
5068   done
5069 IFS=$as_save_IFS
5070   if test -z "$ac_cv_path_GREP"; then
5071     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5072   fi
5073 else
5074   ac_cv_path_GREP=$GREP
5075 fi
5076
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5079 $as_echo "$ac_cv_path_GREP" >&6; }
5080  GREP="$ac_cv_path_GREP"
5081
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5084 $as_echo_n "checking for egrep... " >&6; }
5085 if test "${ac_cv_path_EGREP+set}" = set; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5089    then ac_cv_path_EGREP="$GREP -E"
5090    else
5091      if test -z "$EGREP"; then
5092   ac_path_EGREP_found=false
5093   # Loop through the user's path and test for each of PROGNAME-LIST
5094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099     for ac_prog in egrep; do
5100     for ac_exec_ext in '' $ac_executable_extensions; do
5101       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5102       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5103 # Check for GNU ac_path_EGREP and select it if it is found.
5104   # Check for GNU $ac_path_EGREP
5105 case `"$ac_path_EGREP" --version 2>&1` in
5106 *GNU*)
5107   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5108 *)
5109   ac_count=0
5110   $as_echo_n 0123456789 >"conftest.in"
5111   while :
5112   do
5113     cat "conftest.in" "conftest.in" >"conftest.tmp"
5114     mv "conftest.tmp" "conftest.in"
5115     cp "conftest.in" "conftest.nl"
5116     $as_echo 'EGREP' >> "conftest.nl"
5117     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119     as_fn_arith $ac_count + 1 && ac_count=$as_val
5120     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5121       # Best one so far, save it but keep looking for a better one
5122       ac_cv_path_EGREP="$ac_path_EGREP"
5123       ac_path_EGREP_max=$ac_count
5124     fi
5125     # 10*(2^10) chars as input seems more than enough
5126     test $ac_count -gt 10 && break
5127   done
5128   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129 esac
5130
5131       $ac_path_EGREP_found && break 3
5132     done
5133   done
5134   done
5135 IFS=$as_save_IFS
5136   if test -z "$ac_cv_path_EGREP"; then
5137     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138   fi
5139 else
5140   ac_cv_path_EGREP=$EGREP
5141 fi
5142
5143    fi
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5146 $as_echo "$ac_cv_path_EGREP" >&6; }
5147  EGREP="$ac_cv_path_EGREP"
5148
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5151 $as_echo_n "checking for ANSI C header files... " >&6; }
5152 if test "${ac_cv_header_stdc+set}" = set; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #include <stdlib.h>
5158 #include <stdarg.h>
5159 #include <string.h>
5160 #include <float.h>
5161
5162 int
5163 main ()
5164 {
5165
5166   ;
5167   return 0;
5168 }
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171   ac_cv_header_stdc=yes
5172 else
5173   ac_cv_header_stdc=no
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176
5177 if test $ac_cv_header_stdc = yes; then
5178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181 #include <string.h>
5182
5183 _ACEOF
5184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5185   $EGREP "memchr" >/dev/null 2>&1; then :
5186
5187 else
5188   ac_cv_header_stdc=no
5189 fi
5190 rm -f conftest*
5191
5192 fi
5193
5194 if test $ac_cv_header_stdc = yes; then
5195   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h.  */
5198 #include <stdlib.h>
5199
5200 _ACEOF
5201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5202   $EGREP "free" >/dev/null 2>&1; then :
5203
5204 else
5205   ac_cv_header_stdc=no
5206 fi
5207 rm -f conftest*
5208
5209 fi
5210
5211 if test $ac_cv_header_stdc = yes; then
5212   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213   if test "$cross_compiling" = yes; then :
5214   :
5215 else
5216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h.  */
5218 #include <ctype.h>
5219 #include <stdlib.h>
5220 #if ((' ' & 0x0FF) == 0x020)
5221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5223 #else
5224 # define ISLOWER(c) \
5225                    (('a' <= (c) && (c) <= 'i') \
5226                      || ('j' <= (c) && (c) <= 'r') \
5227                      || ('s' <= (c) && (c) <= 'z'))
5228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5229 #endif
5230
5231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5232 int
5233 main ()
5234 {
5235   int i;
5236   for (i = 0; i < 256; i++)
5237     if (XOR (islower (i), ISLOWER (i))
5238         || toupper (i) != TOUPPER (i))
5239       return 2;
5240   return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_c_try_run "$LINENO"; then :
5244
5245 else
5246   ac_cv_header_stdc=no
5247 fi
5248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5249   conftest.$ac_objext conftest.beam conftest.$ac_ext
5250 fi
5251
5252 fi
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5255 $as_echo "$ac_cv_header_stdc" >&6; }
5256 if test $ac_cv_header_stdc = yes; then
5257
5258 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5259
5260 fi
5261
5262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5264                   inttypes.h stdint.h unistd.h
5265 do :
5266   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5268 "
5269 eval as_val=\$$as_ac_Header
5270    if test "x$as_val" = x""yes; then :
5271   cat >>confdefs.h <<_ACEOF
5272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5273 _ACEOF
5274
5275 fi
5276
5277 done
5278
5279
5280
5281   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5282 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5283   MINIX=yes
5284 else
5285   MINIX=
5286 fi
5287
5288
5289   if test "$MINIX" = yes; then
5290
5291 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5292
5293
5294 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5295
5296
5297 $as_echo "#define _MINIX 1" >>confdefs.h
5298
5299   fi
5300
5301
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5303 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5304 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5305   $as_echo_n "(cached) " >&6
5306 else
5307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h.  */
5309
5310 #         define __EXTENSIONS__ 1
5311           $ac_includes_default
5312 int
5313 main ()
5314 {
5315
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321   ac_cv_safe_to_define___extensions__=yes
5322 else
5323   ac_cv_safe_to_define___extensions__=no
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5328 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5329   test $ac_cv_safe_to_define___extensions__ = yes &&
5330     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5331
5332   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5333
5334   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5335
5336   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5337
5338   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5339
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5348 # On Suns, sometimes $CPP names a directory.
5349 if test -n "$CPP" && test -d "$CPP"; then
5350   CPP=
5351 fi
5352 if test -z "$CPP"; then
5353   if test "${ac_cv_prog_CPP+set}" = set; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356       # Double quotes because CPP needs to be expanded
5357     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5358     do
5359       ac_preproc_ok=false
5360 for ac_c_preproc_warn_flag in '' yes
5361 do
5362   # Use a header file that comes with gcc, so configuring glibc
5363   # with a fresh cross-compiler works.
5364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365   # <limits.h> exists even on freestanding compilers.
5366   # On the NeXT, cc -E runs the code through the compiler's parser,
5367   # not just through cpp. "Syntax error" is here to catch this case.
5368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h.  */
5370 #ifdef __STDC__
5371 # include <limits.h>
5372 #else
5373 # include <assert.h>
5374 #endif
5375                      Syntax error
5376 _ACEOF
5377 if ac_fn_c_try_cpp "$LINENO"; then :
5378
5379 else
5380   # Broken: fails on valid input.
5381 continue
5382 fi
5383 rm -f conftest.err conftest.$ac_ext
5384
5385   # OK, works on sane cases.  Now check whether nonexistent headers
5386   # can be detected and how.
5387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h.  */
5389 #include <ac_nonexistent.h>
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392   # Broken: success on invalid input.
5393 continue
5394 else
5395   # Passes both tests.
5396 ac_preproc_ok=:
5397 break
5398 fi
5399 rm -f conftest.err conftest.$ac_ext
5400
5401 done
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then :
5405   break
5406 fi
5407
5408     done
5409     ac_cv_prog_CPP=$CPP
5410
5411 fi
5412   CPP=$ac_cv_prog_CPP
5413 else
5414   ac_cv_prog_CPP=$CPP
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5417 $as_echo "$CPP" >&6; }
5418 ac_preproc_ok=false
5419 for ac_c_preproc_warn_flag in '' yes
5420 do
5421   # Use a header file that comes with gcc, so configuring glibc
5422   # with a fresh cross-compiler works.
5423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424   # <limits.h> exists even on freestanding compilers.
5425   # On the NeXT, cc -E runs the code through the compiler's parser,
5426   # not just through cpp. "Syntax error" is here to catch this case.
5427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h.  */
5429 #ifdef __STDC__
5430 # include <limits.h>
5431 #else
5432 # include <assert.h>
5433 #endif
5434                      Syntax error
5435 _ACEOF
5436 if ac_fn_c_try_cpp "$LINENO"; then :
5437
5438 else
5439   # Broken: fails on valid input.
5440 continue
5441 fi
5442 rm -f conftest.err conftest.$ac_ext
5443
5444   # OK, works on sane cases.  Now check whether nonexistent headers
5445   # can be detected and how.
5446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448 #include <ac_nonexistent.h>
5449 _ACEOF
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5451   # Broken: success on invalid input.
5452 continue
5453 else
5454   # Passes both tests.
5455 ac_preproc_ok=:
5456 break
5457 fi
5458 rm -f conftest.err conftest.$ac_ext
5459
5460 done
5461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462 rm -f conftest.err conftest.$ac_ext
5463 if $ac_preproc_ok; then :
5464
5465 else
5466   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5468 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5469 See \`config.log' for more details." "$LINENO" 5; }
5470 fi
5471
5472 ac_ext=c
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5479 $as_echo_n "checking for inline... " >&6; }
5480 if test "${ac_cv_c_inline+set}" = set; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   ac_cv_c_inline=no
5484 for ac_kw in inline __inline__ __inline; do
5485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h.  */
5487 #ifndef __cplusplus
5488 typedef int foo_t;
5489 static $ac_kw foo_t static_foo () {return 0; }
5490 $ac_kw foo_t foo () {return 0; }
5491 #endif
5492
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495   ac_cv_c_inline=$ac_kw
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498   test "$ac_cv_c_inline" != no && break
5499 done
5500
5501 fi
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5503 $as_echo "$ac_cv_c_inline" >&6; }
5504
5505 case $ac_cv_c_inline in
5506   inline | yes) ;;
5507   *)
5508     case $ac_cv_c_inline in
5509       no) ac_val=;;
5510       *) ac_val=$ac_cv_c_inline;;
5511     esac
5512     cat >>confdefs.h <<_ACEOF
5513 #ifndef __cplusplus
5514 #define inline $ac_val
5515 #endif
5516 _ACEOF
5517     ;;
5518 esac
5519
5520
5521 # Check whether --enable-largefile was given.
5522 if test "${enable_largefile+set}" = set; then :
5523   enableval=$enable_largefile;
5524 fi
5525
5526 if test "$enable_largefile" != no; then
5527
5528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5529 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5530 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533   ac_cv_sys_largefile_CC=no
5534      if test "$GCC" != yes; then
5535        ac_save_CC=$CC
5536        while :; do
5537          # IRIX 6.2 and later do not support large files by default,
5538          # so use the C compiler's -n32 option if that helps.
5539          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h.  */
5541 #include <sys/types.h>
5542  /* Check that off_t can represent 2**63 - 1 correctly.
5543     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5544     since some C++ compilers masquerading as C compilers
5545     incorrectly reject 9223372036854775807.  */
5546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5547   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5548                        && LARGE_OFF_T % 2147483647 == 1)
5549                       ? 1 : -1];
5550 int
5551 main ()
5552 {
5553
5554   ;
5555   return 0;
5556 }
5557 _ACEOF
5558          if ac_fn_c_try_compile "$LINENO"; then :
5559   break
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext
5562          CC="$CC -n32"
5563          if ac_fn_c_try_compile "$LINENO"; then :
5564   ac_cv_sys_largefile_CC=' -n32'; break
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext
5567          break
5568        done
5569        CC=$ac_save_CC
5570        rm -f conftest.$ac_ext
5571     fi
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5574 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5575   if test "$ac_cv_sys_largefile_CC" != no; then
5576     CC=$CC$ac_cv_sys_largefile_CC
5577   fi
5578
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5580 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5581 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   while :; do
5585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h.  */
5587 #include <sys/types.h>
5588  /* Check that off_t can represent 2**63 - 1 correctly.
5589     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5590     since some C++ compilers masquerading as C compilers
5591     incorrectly reject 9223372036854775807.  */
5592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5593   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5594                        && LARGE_OFF_T % 2147483647 == 1)
5595                       ? 1 : -1];
5596 int
5597 main ()
5598 {
5599
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605   ac_cv_sys_file_offset_bits=no; break
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h.  */
5610 #define _FILE_OFFSET_BITS 64
5611 #include <sys/types.h>
5612  /* Check that off_t can represent 2**63 - 1 correctly.
5613     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5614     since some C++ compilers masquerading as C compilers
5615     incorrectly reject 9223372036854775807.  */
5616 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5617   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5618                        && LARGE_OFF_T % 2147483647 == 1)
5619                       ? 1 : -1];
5620 int
5621 main ()
5622 {
5623
5624   ;
5625   return 0;
5626 }
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629   ac_cv_sys_file_offset_bits=64; break
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632   ac_cv_sys_file_offset_bits=unknown
5633   break
5634 done
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5637 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5638 case $ac_cv_sys_file_offset_bits in #(
5639   no | unknown) ;;
5640   *)
5641 cat >>confdefs.h <<_ACEOF
5642 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5643 _ACEOF
5644 ;;
5645 esac
5646 rm -rf conftest*
5647   if test $ac_cv_sys_file_offset_bits = unknown; then
5648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5649 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5650 if test "${ac_cv_sys_large_files+set}" = set; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653   while :; do
5654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h.  */
5656 #include <sys/types.h>
5657  /* Check that off_t can represent 2**63 - 1 correctly.
5658     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659     since some C++ compilers masquerading as C compilers
5660     incorrectly reject 9223372036854775807.  */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663                        && LARGE_OFF_T % 2147483647 == 1)
5664                       ? 1 : -1];
5665 int
5666 main ()
5667 {
5668
5669   ;
5670   return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674   ac_cv_sys_large_files=no; break
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h.  */
5679 #define _LARGE_FILES 1
5680 #include <sys/types.h>
5681  /* Check that off_t can represent 2**63 - 1 correctly.
5682     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5683     since some C++ compilers masquerading as C compilers
5684     incorrectly reject 9223372036854775807.  */
5685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5686   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5687                        && LARGE_OFF_T % 2147483647 == 1)
5688                       ? 1 : -1];
5689 int
5690 main ()
5691 {
5692
5693   ;
5694   return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698   ac_cv_sys_large_files=1; break
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701   ac_cv_sys_large_files=unknown
5702   break
5703 done
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5706 $as_echo "$ac_cv_sys_large_files" >&6; }
5707 case $ac_cv_sys_large_files in #(
5708   no | unknown) ;;
5709   *)
5710 cat >>confdefs.h <<_ACEOF
5711 #define _LARGE_FILES $ac_cv_sys_large_files
5712 _ACEOF
5713 ;;
5714 esac
5715 rm -rf conftest*
5716   fi
5717 fi
5718
5719
5720 # sizeof(char) is 1 by definition.
5721 # The cast to long int works around a bug in the HP C Compiler
5722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5724 # This bug is HP SR number 8606223364.
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5726 $as_echo_n "checking size of void *... " >&6; }
5727 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5731
5732 else
5733   if test "$ac_cv_type_void_p" = yes; then
5734      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5736 { as_fn_set_status 77
5737 as_fn_error "cannot compute sizeof (void *)
5738 See \`config.log' for more details." "$LINENO" 5; }; }
5739    else
5740      ac_cv_sizeof_void_p=0
5741    fi
5742 fi
5743
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5746 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5747
5748
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5752 _ACEOF
5753
5754
5755 # The cast to long int works around a bug in the HP C Compiler
5756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5758 # This bug is HP SR number 8606223364.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5760 $as_echo_n "checking size of short... " >&6; }
5761 if test "${ac_cv_sizeof_short+set}" = set; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5765
5766 else
5767   if test "$ac_cv_type_short" = yes; then
5768      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5770 { as_fn_set_status 77
5771 as_fn_error "cannot compute sizeof (short)
5772 See \`config.log' for more details." "$LINENO" 5; }; }
5773    else
5774      ac_cv_sizeof_short=0
5775    fi
5776 fi
5777
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5780 $as_echo "$ac_cv_sizeof_short" >&6; }
5781
5782
5783
5784 cat >>confdefs.h <<_ACEOF
5785 #define SIZEOF_SHORT $ac_cv_sizeof_short
5786 _ACEOF
5787
5788
5789 # The cast to long int works around a bug in the HP C Compiler
5790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5792 # This bug is HP SR number 8606223364.
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5794 $as_echo_n "checking size of int... " >&6; }
5795 if test "${ac_cv_sizeof_int+set}" = set; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5799
5800 else
5801   if test "$ac_cv_type_int" = yes; then
5802      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5804 { as_fn_set_status 77
5805 as_fn_error "cannot compute sizeof (int)
5806 See \`config.log' for more details." "$LINENO" 5; }; }
5807    else
5808      ac_cv_sizeof_int=0
5809    fi
5810 fi
5811
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5814 $as_echo "$ac_cv_sizeof_int" >&6; }
5815
5816
5817
5818 cat >>confdefs.h <<_ACEOF
5819 #define SIZEOF_INT $ac_cv_sizeof_int
5820 _ACEOF
5821
5822
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5828 $as_echo_n "checking size of long... " >&6; }
5829 if test "${ac_cv_sizeof_long+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5833
5834 else
5835   if test "$ac_cv_type_long" = yes; then
5836      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { as_fn_set_status 77
5839 as_fn_error "cannot compute sizeof (long)
5840 See \`config.log' for more details." "$LINENO" 5; }; }
5841    else
5842      ac_cv_sizeof_long=0
5843    fi
5844 fi
5845
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5848 $as_echo "$ac_cv_sizeof_long" >&6; }
5849
5850
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define SIZEOF_LONG $ac_cv_sizeof_long
5854 _ACEOF
5855
5856
5857 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5858 if test "x$ac_cv_type_long_long" = x""yes; then :
5859
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_LONG_LONG 1
5862 _ACEOF
5863
5864 # The cast to long int works around a bug in the HP C Compiler
5865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5867 # This bug is HP SR number 8606223364.
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5869 $as_echo_n "checking size of long long... " >&6; }
5870 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5874
5875 else
5876   if test "$ac_cv_type_long_long" = yes; then
5877      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 { as_fn_set_status 77
5880 as_fn_error "cannot compute sizeof (long long)
5881 See \`config.log' for more details." "$LINENO" 5; }; }
5882    else
5883      ac_cv_sizeof_long_long=0
5884    fi
5885 fi
5886
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5889 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5890
5891
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5895 _ACEOF
5896
5897
5898 fi
5899
5900 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5901 if test "x$ac_cv_type___int64" = x""yes; then :
5902
5903 cat >>confdefs.h <<_ACEOF
5904 #define HAVE___INT64 1
5905 _ACEOF
5906
5907 # The cast to long int works around a bug in the HP C Compiler
5908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5910 # This bug is HP SR number 8606223364.
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5912 $as_echo_n "checking size of __int64... " >&6; }
5913 if test "${ac_cv_sizeof___int64+set}" = set; then :
5914   $as_echo_n "(cached) " >&6
5915 else
5916   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5917
5918 else
5919   if test "$ac_cv_type___int64" = yes; then
5920      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5922 { as_fn_set_status 77
5923 as_fn_error "cannot compute sizeof (__int64)
5924 See \`config.log' for more details." "$LINENO" 5; }; }
5925    else
5926      ac_cv_sizeof___int64=0
5927    fi
5928 fi
5929
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5932 $as_echo "$ac_cv_sizeof___int64" >&6; }
5933
5934
5935
5936 cat >>confdefs.h <<_ACEOF
5937 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5938 _ACEOF
5939
5940
5941 fi
5942
5943 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5944 case $ac_cv_c_int8_t in #(
5945   no|yes) ;; #(
5946   *)
5947
5948 cat >>confdefs.h <<_ACEOF
5949 #define int8_t $ac_cv_c_int8_t
5950 _ACEOF
5951 ;;
5952 esac
5953
5954 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5955 case $ac_cv_c_int16_t in #(
5956   no|yes) ;; #(
5957   *)
5958
5959 cat >>confdefs.h <<_ACEOF
5960 #define int16_t $ac_cv_c_int16_t
5961 _ACEOF
5962 ;;
5963 esac
5964
5965 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5966 case $ac_cv_c_int32_t in #(
5967   no|yes) ;; #(
5968   *)
5969
5970 cat >>confdefs.h <<_ACEOF
5971 #define int32_t $ac_cv_c_int32_t
5972 _ACEOF
5973 ;;
5974 esac
5975
5976 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5977 case $ac_cv_c_int64_t in #(
5978   no|yes) ;; #(
5979   *)
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define int64_t $ac_cv_c_int64_t
5983 _ACEOF
5984 ;;
5985 esac
5986
5987
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5989 $as_echo_n "checking for long long int... " >&6; }
5990 if test "${ac_cv_type_long_long_int+set}" = set; then :
5991   $as_echo_n "(cached) " >&6
5992 else
5993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h.  */
5995
5996   /* For now, do not test the preprocessor; as of 2007 there are too many
5997          implementations with broken preprocessors.  Perhaps this can
5998          be revisited in 2012.  In the meantime, code should not expect
5999          #if to work with literals wider than 32 bits.  */
6000       /* Test literals.  */
6001       long long int ll = 9223372036854775807ll;
6002       long long int nll = -9223372036854775807LL;
6003       unsigned long long int ull = 18446744073709551615ULL;
6004       /* Test constant expressions.   */
6005       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6006                      ? 1 : -1)];
6007       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6008                      ? 1 : -1)];
6009       int i = 63;
6010 int
6011 main ()
6012 {
6013 /* Test availability of runtime routines for shift and division.  */
6014       long long int llmax = 9223372036854775807ll;
6015       unsigned long long int ullmax = 18446744073709551615ull;
6016       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6017               | (llmax / ll) | (llmax % ll)
6018               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6019               | (ullmax / ull) | (ullmax % ull));
6020   ;
6021   return 0;
6022 }
6023
6024 _ACEOF
6025 if ac_fn_c_try_link "$LINENO"; then :
6026                         if test "$cross_compiling" = yes; then :
6027   ac_cv_type_long_long_int=yes
6028 else
6029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h.  */
6031 #include <limits.h>
6032                #ifndef LLONG_MAX
6033                # define HALF \
6034                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6035                # define LLONG_MAX (HALF - 1 + HALF)
6036                #endif
6037 int
6038 main ()
6039 {
6040 long long int n = 1;
6041                int i;
6042                for (i = 0; ; i++)
6043                  {
6044                    long long int m = n << i;
6045                    if (m >> i != n)
6046                      return 1;
6047                    if (LLONG_MAX / 2 < m)
6048                      break;
6049                  }
6050                return 0;
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_run "$LINENO"; then :
6056   ac_cv_type_long_long_int=yes
6057 else
6058   ac_cv_type_long_long_int=no
6059 fi
6060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6061   conftest.$ac_objext conftest.beam conftest.$ac_ext
6062 fi
6063
6064 else
6065   ac_cv_type_long_long_int=no
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext \
6068     conftest$ac_exeext conftest.$ac_ext
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6071 $as_echo "$ac_cv_type_long_long_int" >&6; }
6072   if test $ac_cv_type_long_long_int = yes; then
6073
6074 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6075
6076   fi
6077
6078
6079
6080   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6081 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6082
6083 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6084
6085 else
6086   test $ac_cv_type_long_long_int = yes \
6087        && ac_type='long long int' \
6088        || ac_type='long int'
6089
6090 cat >>confdefs.h <<_ACEOF
6091 #define intmax_t $ac_type
6092 _ACEOF
6093
6094 fi
6095
6096
6097
6098   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6099 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6100
6101 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6102
6103 else
6104   for ac_type in 'int' 'long int' 'long long int'; do
6105        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h.  */
6107 $ac_includes_default
6108 int
6109 main ()
6110 {
6111 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6112 test_array [0] = 0
6113
6114   ;
6115   return 0;
6116 }
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define intptr_t $ac_type
6122 _ACEOF
6123
6124           ac_type=
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127        test -z "$ac_type" && break
6128      done
6129 fi
6130
6131
6132 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6133 case $ac_cv_c_uint8_t in #(
6134   no|yes) ;; #(
6135   *)
6136
6137 $as_echo "#define _UINT8_T 1" >>confdefs.h
6138
6139
6140 cat >>confdefs.h <<_ACEOF
6141 #define uint8_t $ac_cv_c_uint8_t
6142 _ACEOF
6143 ;;
6144   esac
6145
6146 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6147 case $ac_cv_c_uint16_t in #(
6148   no|yes) ;; #(
6149   *)
6150
6151
6152 cat >>confdefs.h <<_ACEOF
6153 #define uint16_t $ac_cv_c_uint16_t
6154 _ACEOF
6155 ;;
6156   esac
6157
6158 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6159 case $ac_cv_c_uint32_t in #(
6160   no|yes) ;; #(
6161   *)
6162
6163 $as_echo "#define _UINT32_T 1" >>confdefs.h
6164
6165
6166 cat >>confdefs.h <<_ACEOF
6167 #define uint32_t $ac_cv_c_uint32_t
6168 _ACEOF
6169 ;;
6170   esac
6171
6172 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6173 case $ac_cv_c_uint64_t in #(
6174   no|yes) ;; #(
6175   *)
6176
6177 $as_echo "#define _UINT64_T 1" >>confdefs.h
6178
6179
6180 cat >>confdefs.h <<_ACEOF
6181 #define uint64_t $ac_cv_c_uint64_t
6182 _ACEOF
6183 ;;
6184   esac
6185
6186
6187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6188 $as_echo_n "checking for unsigned long long int... " >&6; }
6189 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h.  */
6194
6195   /* For now, do not test the preprocessor; as of 2007 there are too many
6196          implementations with broken preprocessors.  Perhaps this can
6197          be revisited in 2012.  In the meantime, code should not expect
6198          #if to work with literals wider than 32 bits.  */
6199       /* Test literals.  */
6200       long long int ll = 9223372036854775807ll;
6201       long long int nll = -9223372036854775807LL;
6202       unsigned long long int ull = 18446744073709551615ULL;
6203       /* Test constant expressions.   */
6204       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6205                      ? 1 : -1)];
6206       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6207                      ? 1 : -1)];
6208       int i = 63;
6209 int
6210 main ()
6211 {
6212 /* Test availability of runtime routines for shift and division.  */
6213       long long int llmax = 9223372036854775807ll;
6214       unsigned long long int ullmax = 18446744073709551615ull;
6215       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6216               | (llmax / ll) | (llmax % ll)
6217               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6218               | (ullmax / ull) | (ullmax % ull));
6219   ;
6220   return 0;
6221 }
6222
6223 _ACEOF
6224 if ac_fn_c_try_link "$LINENO"; then :
6225   ac_cv_type_unsigned_long_long_int=yes
6226 else
6227   ac_cv_type_unsigned_long_long_int=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext \
6230     conftest$ac_exeext conftest.$ac_ext
6231 fi
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6233 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6234   if test $ac_cv_type_unsigned_long_long_int = yes; then
6235
6236 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6237
6238   fi
6239
6240
6241
6242   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6243 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6244
6245 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6246
6247 else
6248   test $ac_cv_type_unsigned_long_long_int = yes \
6249        && ac_type='unsigned long long int' \
6250        || ac_type='unsigned long int'
6251
6252 cat >>confdefs.h <<_ACEOF
6253 #define uintmax_t $ac_type
6254 _ACEOF
6255
6256 fi
6257
6258
6259
6260   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6261 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6262
6263 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6264
6265 else
6266   for ac_type in 'unsigned int' 'unsigned long int' \
6267         'unsigned long long int'; do
6268        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h.  */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
6274 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6275 test_array [0] = 0
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_c_try_compile "$LINENO"; then :
6282
6283 cat >>confdefs.h <<_ACEOF
6284 #define uintptr_t $ac_type
6285 _ACEOF
6286
6287           ac_type=
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290        test -z "$ac_type" && break
6291      done
6292 fi
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308 # ---------------------
6309 # Warnings and checking
6310 # ---------------------
6311
6312 # Check $CC warning features (if it's GCC).
6313 # We want to use -pedantic, but we don't want warnings about
6314 # * 'long long'
6315 # * variadic macros
6316 # * overlong strings
6317 # So, we only use -pedantic if we can disable those warnings.
6318
6319 loose_warn=
6320 save_CFLAGS="$CFLAGS"
6321 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6322   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6323
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6325 $as_echo_n "checking whether $CC supports $option... " >&6; }
6326 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329   CFLAGS="$option"
6330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h.  */
6332
6333 int
6334 main ()
6335 {
6336
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342   eval "$as_acx_Woption=yes"
6343 else
6344   eval "$as_acx_Woption=no"
6345 fi
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347
6348 fi
6349 eval ac_res=\$$as_acx_Woption
6350                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6351 $as_echo "$ac_res" >&6; }
6352   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6353   loose_warn="$loose_warn${loose_warn:+ }$option"
6354 fi
6355   done
6356 CFLAGS="$save_CFLAGS"
6357
6358 c_loose_warn=
6359 save_CFLAGS="$CFLAGS"
6360 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6361   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6362
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6364 $as_echo_n "checking whether $CC supports $option... " >&6; }
6365 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6366   $as_echo_n "(cached) " >&6
6367 else
6368   CFLAGS="$option"
6369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h.  */
6371
6372 int
6373 main ()
6374 {
6375
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381   eval "$as_acx_Woption=yes"
6382 else
6383   eval "$as_acx_Woption=no"
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386
6387 fi
6388 eval ac_res=\$$as_acx_Woption
6389                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6390 $as_echo "$ac_res" >&6; }
6391   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6392   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6393 fi
6394   done
6395 CFLAGS="$save_CFLAGS"
6396
6397 strict_warn=
6398 save_CFLAGS="$CFLAGS"
6399 for option in -Wmissing-format-attribute; do
6400   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6401
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6403 $as_echo_n "checking whether $CC supports $option... " >&6; }
6404 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6405   $as_echo_n "(cached) " >&6
6406 else
6407   CFLAGS="$option"
6408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h.  */
6410
6411 int
6412 main ()
6413 {
6414
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_compile "$LINENO"; then :
6420   eval "$as_acx_Woption=yes"
6421 else
6422   eval "$as_acx_Woption=no"
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425
6426 fi
6427 eval ac_res=\$$as_acx_Woption
6428                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6429 $as_echo "$ac_res" >&6; }
6430   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6431   strict_warn="$strict_warn${strict_warn:+ }$option"
6432 fi
6433   done
6434 CFLAGS="$save_CFLAGS"
6435
6436 c_strict_warn=
6437 save_CFLAGS="$CFLAGS"
6438 for option in -Wold-style-definition -Wc++-compat; do
6439   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6440
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6442 $as_echo_n "checking whether $CC supports $option... " >&6; }
6443 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   CFLAGS="$option"
6447     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h.  */
6449
6450 int
6451 main ()
6452 {
6453
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 if ac_fn_c_try_compile "$LINENO"; then :
6459   eval "$as_acx_Woption=yes"
6460 else
6461   eval "$as_acx_Woption=no"
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464
6465 fi
6466 eval ac_res=\$$as_acx_Woption
6467                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6468 $as_echo "$ac_res" >&6; }
6469   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6470   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6471 fi
6472   done
6473 CFLAGS="$save_CFLAGS"
6474
6475 if test "$GCC" = yes; then :
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6477 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6478 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   save_CFLAGS="$CFLAGS"
6482 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h.  */
6485
6486 int
6487 main ()
6488 {
6489
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_c_try_compile "$LINENO"; then :
6495   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6496 else
6497   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 CFLAGS="$save_CFLAGS"
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6503 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6504 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6505   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6506 fi
6507
6508 fi
6509
6510 # Check whether --enable-werror-always was given.
6511 if test "${enable_werror_always+set}" = set; then :
6512   enableval=$enable_werror_always;
6513 else
6514   enable_werror_always=no
6515 fi
6516
6517 if test $enable_werror_always = yes; then :
6518   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6519 fi
6520
6521
6522
6523 # The above macros do nothing if the compiler is not GCC.  However, the
6524 # Makefile has more goo to add other flags, so these variables are used
6525 # to enable warnings only for GCC.
6526 warn_cflags=
6527 warn_cxxflags=
6528 if test "x$GCC" = "xyes"; then
6529   warn_cflags='$(GCC_WARN_CFLAGS)'
6530   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6531 fi
6532
6533
6534
6535 # Enable expensive internal checks
6536 is_release=
6537 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6538   is_release=yes
6539 fi
6540
6541 # Check whether --enable-checking was given.
6542 if test "${enable_checking+set}" = set; then :
6543   enableval=$enable_checking; ac_checking_flags="${enableval}"
6544 else
6545
6546 # Determine the default checks.
6547 if test x$is_release = x ; then
6548   ac_checking_flags=yes
6549 else
6550   ac_checking_flags=release
6551 fi
6552 fi
6553
6554 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6555 for check in release $ac_checking_flags
6556 do
6557         case $check in
6558         # these set all the flags to specific states
6559         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6560                         ac_fold_checking= ; ac_gc_checking=1 ;
6561                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6562                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6563                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6564                         ac_types_checking=1 ;;
6565         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6566                         ac_fold_checking= ; ac_gc_checking= ;
6567                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6568                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6569                         ac_tree_checking= ; ac_valgrind_checking= ;
6570                         ac_types_checking= ;;
6571         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6572                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6573                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6574                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6575                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6576                         ac_types_checking=1 ;;
6577         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6578                         ac_fold_checking= ; ac_gc_checking= ;
6579                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6580                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6581                         ac_tree_checking= ; ac_valgrind_checking= ;
6582                         ac_types_checking= ;;
6583         # these enable particular checks
6584         assert)         ac_assert_checking=1 ;;
6585         df)             ac_df_checking=1 ;;
6586         fold)           ac_fold_checking=1 ;;
6587         gc)             ac_gc_checking=1 ;;
6588         gcac)           ac_gc_always_collect=1 ;;
6589         gimple)         ac_gimple_checking=1 ;;
6590         misc)           ac_checking=1 ;;
6591         rtl)            ac_rtl_checking=1 ;;
6592         rtlflag)        ac_rtlflag_checking=1 ;;
6593         runtime)        ac_runtime_checking=1 ;;
6594         tree)           ac_tree_checking=1 ;;
6595         types)          ac_types_checking=1 ;;
6596         valgrind)       ac_valgrind_checking=1 ;;
6597         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6598         esac
6599 done
6600 IFS="$ac_save_IFS"
6601
6602 nocommon_flag=""
6603 if test x$ac_checking != x ; then
6604
6605 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6606
6607   nocommon_flag=-fno-common
6608 fi
6609
6610 if test x$ac_df_checking != x ; then
6611
6612 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6613
6614 fi
6615 if test x$ac_assert_checking != x ; then
6616
6617 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6618
6619 fi
6620 if test x$ac_gimple_checking != x ; then
6621
6622 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6623
6624 fi
6625
6626 if test x$ac_runtime_checking != x ; then
6627
6628 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6629
6630 fi
6631 if test x$ac_tree_checking != x ; then
6632
6633 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6634
6635   TREEBROWSER=tree-browser.o
6636 fi
6637 if test x$ac_types_checking != x ; then
6638
6639 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6640
6641 fi
6642
6643 if test x$ac_rtl_checking != x ; then
6644
6645 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6646
6647 fi
6648 if test x$ac_rtlflag_checking != x ; then
6649
6650 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6651
6652 fi
6653 if test x$ac_gc_checking != x ; then
6654
6655 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6656
6657 fi
6658 if test x$ac_gc_always_collect != x ; then
6659
6660 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6661
6662 fi
6663 if test x$ac_fold_checking != x ; then
6664
6665 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6666
6667 fi
6668 valgrind_path_defines=
6669 valgrind_command=
6670
6671 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6672 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6673   have_valgrind_h=yes
6674 else
6675   have_valgrind_h=no
6676 fi
6677
6678
6679
6680 if test x$ac_valgrind_checking != x ; then
6681   # It is certainly possible that there's valgrind but no valgrind.h.
6682   # GCC relies on making annotations so we must have both.
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6684 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h.  */
6687 #include <valgrind/memcheck.h>
6688 #ifndef VALGRIND_DISCARD
6689 #error VALGRIND_DISCARD not defined
6690 #endif
6691 _ACEOF
6692 if ac_fn_c_try_cpp "$LINENO"; then :
6693   gcc_cv_header_valgrind_memcheck_h=yes
6694 else
6695   gcc_cv_header_valgrind_memcheck_h=no
6696 fi
6697 rm -f conftest.err conftest.$ac_ext
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6699 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6701 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h.  */
6704 #include <memcheck.h>
6705 #ifndef VALGRIND_DISCARD
6706 #error VALGRIND_DISCARD not defined
6707 #endif
6708 _ACEOF
6709 if ac_fn_c_try_cpp "$LINENO"; then :
6710   gcc_cv_header_memcheck_h=yes
6711 else
6712   gcc_cv_header_memcheck_h=no
6713 fi
6714 rm -f conftest.err conftest.$ac_ext
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6716 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6717
6718 # Prepare PATH_SEPARATOR.
6719 # The user is always right.
6720 if test "${PATH_SEPARATOR+set}" != set; then
6721   echo "#! /bin/sh" >conf$$.sh
6722   echo  "exit 0"   >>conf$$.sh
6723   chmod +x conf$$.sh
6724   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6725     PATH_SEPARATOR=';'
6726   else
6727     PATH_SEPARATOR=:
6728   fi
6729   rm -f conf$$.sh
6730 fi
6731
6732 # Find out how to test for executable files. Don't use a zero-byte file,
6733 # as systems may use methods other than mode bits to determine executability.
6734 cat >conf$$.file <<_ASEOF
6735 #! /bin/sh
6736 exit 0
6737 _ASEOF
6738 chmod +x conf$$.file
6739 if test -x conf$$.file >/dev/null 2>&1; then
6740   ac_executable_p="test -x"
6741 else
6742   ac_executable_p="test -f"
6743 fi
6744 rm -f conf$$.file
6745
6746 # Extract the first word of "valgrind", so it can be a program name with args.
6747 set dummy valgrind; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   case "$valgrind_path" in
6754   [\\/]* | ?:[\\/]*)
6755     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6756     ;;
6757   *)
6758     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6759     for ac_dir in $PATH; do
6760       IFS="$ac_save_IFS"
6761       test -z "$ac_dir" && ac_dir=.
6762       for ac_exec_ext in '' $ac_executable_extensions; do
6763         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6764           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6765             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6766             break 2
6767           fi
6768         fi
6769       done
6770     done
6771     IFS="$ac_save_IFS"
6772     ;;
6773 esac
6774 fi
6775 valgrind_path="$ac_cv_path_valgrind_path"
6776 if test -n "$valgrind_path"; then
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6778 $as_echo "$valgrind_path" >&6; }
6779 else
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784   if test "x$valgrind_path" = "x" \
6785     || (test $have_valgrind_h = no \
6786         && test $gcc_cv_header_memcheck_h = no \
6787         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6788         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6789   fi
6790   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6791   valgrind_command="$valgrind_path -q"
6792
6793 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6794
6795   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6796
6797 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6798
6799   fi
6800   if test $gcc_cv_header_memcheck_h = yes; then
6801
6802 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6803
6804   fi
6805 fi
6806
6807
6808
6809 # Enable code coverage collection
6810 # Check whether --enable-coverage was given.
6811 if test "${enable_coverage+set}" = set; then :
6812   enableval=$enable_coverage; case "${enableval}" in
6813   yes|noopt)
6814     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6815     ;;
6816   opt)
6817     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6818     ;;
6819   no)
6820     # a.k.a. --disable-coverage
6821     coverage_flags=""
6822     ;;
6823   *)
6824     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6825     ;;
6826 esac
6827 else
6828   coverage_flags=""
6829 fi
6830
6831
6832
6833 # Check whether --enable-gather-detailed-mem-stats was given.
6834 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6835   enableval=$enable_gather_detailed_mem_stats;
6836 else
6837   enable_gather_detailed_mem_stats=no
6838 fi
6839
6840 if test x$enable_gather_detailed_mem_stats = xyes ; then
6841
6842 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6843
6844 fi
6845
6846 # -------------------------------
6847 # Miscenalleous configure options
6848 # -------------------------------
6849
6850 # See if we are building gcc with C++.
6851 # Check whether --enable-build-with-cxx was given.
6852 if test "${enable_build_with_cxx+set}" = set; then :
6853   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6854 else
6855   ENABLE_BUILD_WITH_CXX=no
6856 fi
6857
6858
6859 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6860
6861 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6862
6863 fi
6864
6865 # With stabs
6866
6867 # Check whether --with-stabs was given.
6868 if test "${with_stabs+set}" = set; then :
6869   withval=$with_stabs; stabs="$with_stabs"
6870 else
6871   stabs=no
6872 fi
6873
6874
6875 # Determine whether or not multilibs are enabled.
6876 # Check whether --enable-multilib was given.
6877 if test "${enable_multilib+set}" = set; then :
6878   enableval=$enable_multilib;
6879 else
6880   enable_multilib=yes
6881 fi
6882
6883
6884
6885 # Enable __cxa_atexit for C++.
6886 # Check whether --enable-__cxa_atexit was given.
6887 if test "${enable___cxa_atexit+set}" = set; then :
6888   enableval=$enable___cxa_atexit;
6889 fi
6890
6891
6892 # Enable C extension for decimal float if target supports it.
6893
6894 # Check whether --enable-decimal-float was given.
6895 if test "${enable_decimal_float+set}" = set; then :
6896   enableval=$enable_decimal_float;
6897   case $enable_decimal_float in
6898     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6899     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6900 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6901   esac
6902
6903 else
6904
6905   case $target in
6906     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6907     i?86*-*-mingw* | x86_64*-*-mingw* | \
6908     i?86*-*-cygwin*)
6909       enable_decimal_float=yes
6910       ;;
6911     *)
6912       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6913 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6914       enable_decimal_float=no
6915       ;;
6916   esac
6917
6918 fi
6919
6920
6921 # x86's use BID format instead of DPD
6922 case x$enable_decimal_float in
6923   xyes)
6924     case $target in
6925       i?86*-*-* | x86_64*-*-*)
6926         enable_decimal_float=bid
6927         ;;
6928       *)
6929         enable_decimal_float=dpd
6930         ;;
6931     esac
6932     default_decimal_float=$enable_decimal_float
6933     ;;
6934   xno)
6935     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6936     # dependency on libdecnumber.
6937     default_decimal_float=dpd
6938     ;;
6939 esac
6940
6941
6942
6943
6944 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6945
6946 cat >>confdefs.h <<_ACEOF
6947 #define ENABLE_DECIMAL_FLOAT $dfp
6948 _ACEOF
6949
6950
6951 # Use default_decimal_float for dependency.
6952 enable_decimal_float=$default_decimal_float
6953
6954 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6955
6956 cat >>confdefs.h <<_ACEOF
6957 #define ENABLE_DECIMAL_BID_FORMAT $bid
6958 _ACEOF
6959
6960
6961 # Enable C extension for fixed-point arithmetic.
6962 # Check whether --enable-fixed-point was given.
6963 if test "${enable_fixed_point+set}" = set; then :
6964   enableval=$enable_fixed_point;
6965 else
6966
6967   case $target in
6968     mips*-*-*)
6969       case $host in
6970         mips*-sgi-irix*)
6971           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6972 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6973           enable_fixed_point=no
6974           ;;
6975         *)
6976           enable_fixed_point=yes
6977           ;;
6978       esac
6979       ;;
6980     *)
6981       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6982 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6983       enable_fixed_point=no
6984       ;;
6985   esac
6986
6987 fi
6988
6989
6990
6991 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6992
6993 cat >>confdefs.h <<_ACEOF
6994 #define ENABLE_FIXED_POINT $fixedpoint
6995 _ACEOF
6996
6997
6998 # Enable threads
6999 # Pass with no value to take the default
7000 # Pass with a value to specify a thread package
7001 # Check whether --enable-threads was given.
7002 if test "${enable_threads+set}" = set; then :
7003   enableval=$enable_threads;
7004 else
7005   enable_threads=''
7006 fi
7007
7008
7009 # Check whether --enable-tls was given.
7010 if test "${enable_tls+set}" = set; then :
7011   enableval=$enable_tls;
7012   case $enable_tls in
7013     yes | no) ;;
7014     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7015 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7016   esac
7017
7018 else
7019   enable_tls=''
7020 fi
7021
7022
7023 # Check whether --enable-objc-gc was given.
7024 if test "${enable_objc_gc+set}" = set; then :
7025   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7026         objc_boehm_gc=''
7027 else
7028         objc_boehm_gc=1
7029 fi
7030 else
7031   objc_boehm_gc=''
7032 fi
7033
7034
7035
7036 # Check whether --with-dwarf2 was given.
7037 if test "${with_dwarf2+set}" = set; then :
7038   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7039 else
7040   dwarf2=no
7041 fi
7042
7043
7044 # Check whether --enable-shared was given.
7045 if test "${enable_shared+set}" = set; then :
7046   enableval=$enable_shared;
7047   case $enable_shared in
7048   yes | no) ;;
7049   *)
7050     enable_shared=no
7051     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7052     for pkg in $enableval; do
7053       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7054         enable_shared=yes
7055       fi
7056     done
7057     IFS="$ac_save_ifs"
7058     ;;
7059   esac
7060
7061 else
7062   enable_shared=yes
7063 fi
7064
7065
7066
7067
7068 # Check whether --with-build-sysroot was given.
7069 if test "${with_build_sysroot+set}" = set; then :
7070   withval=$with_build_sysroot;
7071 fi
7072
7073
7074
7075 # Check whether --with-sysroot was given.
7076 if test "${with_sysroot+set}" = set; then :
7077   withval=$with_sysroot;
7078  case ${with_sysroot} in
7079  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7080  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7081  esac
7082
7083  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7084  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7085
7086  if test "x$prefix" = xNONE; then
7087   test_prefix=/usr/local
7088  else
7089   test_prefix=$prefix
7090  fi
7091  if test "x$exec_prefix" = xNONE; then
7092   test_exec_prefix=$test_prefix
7093  else
7094   test_exec_prefix=$exec_prefix
7095  fi
7096  case ${TARGET_SYSTEM_ROOT} in
7097  "${test_prefix}"|"${test_prefix}/"*|\
7098  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7099  '${prefix}'|'${prefix}/'*|\
7100  '${exec_prefix}'|'${exec_prefix}/'*)
7101    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7102    TARGET_SYSTEM_ROOT_DEFINE="$t"
7103    ;;
7104  esac
7105
7106 else
7107
7108  TARGET_SYSTEM_ROOT=
7109  TARGET_SYSTEM_ROOT_DEFINE=
7110  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7111
7112 fi
7113
7114
7115
7116
7117
7118
7119 # Check whether --with-specs was given.
7120 if test "${with_specs+set}" = set; then :
7121   withval=$with_specs; CONFIGURE_SPECS=$withval
7122 else
7123   CONFIGURE_SPECS=
7124
7125 fi
7126
7127
7128
7129
7130
7131 # Check whether --with-pkgversion was given.
7132 if test "${with_pkgversion+set}" = set; then :
7133   withval=$with_pkgversion; case "$withval" in
7134       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7135       no)  PKGVERSION= ;;
7136       *)   PKGVERSION="($withval) " ;;
7137      esac
7138 else
7139   PKGVERSION="(GCC) "
7140
7141 fi
7142
7143
7144
7145
7146
7147 # Check whether --with-bugurl was given.
7148 if test "${with_bugurl+set}" = set; then :
7149   withval=$with_bugurl; case "$withval" in
7150       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7151       no)  BUGURL=
7152            ;;
7153       *)   BUGURL="$withval"
7154            ;;
7155      esac
7156 else
7157   BUGURL="http://gcc.gnu.org/bugs.html"
7158
7159 fi
7160
7161   case ${BUGURL} in
7162   "")
7163     REPORT_BUGS_TO=
7164     REPORT_BUGS_TEXI=
7165     ;;
7166   *)
7167     REPORT_BUGS_TO="<$BUGURL>"
7168     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7169     ;;
7170   esac;
7171
7172
7173
7174
7175 # Sanity check enable_languages in case someone does not run the toplevel
7176 # configure # script.
7177 # Check whether --enable-languages was given.
7178 if test "${enable_languages+set}" = set; then :
7179   enableval=$enable_languages; case ,${enable_languages}, in
7180        ,,|,yes,)
7181                 # go safe -- we cannot be much sure without the toplevel
7182                 # configure's
7183                 # analysis of which target libs are present and usable
7184                 enable_languages=c
7185                 ;;
7186          *,all,*)
7187                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7188                 ;;
7189         *,c,*)
7190                 ;;
7191         *)
7192                 enable_languages=c,${enable_languages}
7193                 ;;
7194 esac
7195 else
7196   enable_languages=c
7197 fi
7198
7199
7200
7201 # Check whether --with-multilib-list was given.
7202 if test "${with_multilib_list+set}" = set; then :
7203   withval=$with_multilib_list; :
7204 else
7205   with_multilib_list=default
7206 fi
7207
7208
7209 # -------------------------
7210 # Checks for other programs
7211 # -------------------------
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7215 set x ${MAKE-make}
7216 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   cat >conftest.make <<\_ACEOF
7221 SHELL = /bin/sh
7222 all:
7223         @echo '@@@%%%=$(MAKE)=@@@%%%'
7224 _ACEOF
7225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7227   *@@@%%%=?*=@@@%%%*)
7228     eval ac_cv_prog_make_${ac_make}_set=yes;;
7229   *)
7230     eval ac_cv_prog_make_${ac_make}_set=no;;
7231 esac
7232 rm -f conftest.make
7233 fi
7234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7236 $as_echo "yes" >&6; }
7237   SET_MAKE=
7238 else
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241   SET_MAKE="MAKE=${MAKE-make}"
7242 fi
7243
7244
7245 # Find some useful tools
7246 for ac_prog in gawk mawk nawk awk
7247 do
7248   # Extract the first word of "$ac_prog", so it can be a program name with args.
7249 set dummy $ac_prog; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if test "${ac_cv_prog_AWK+set}" = set; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   if test -n "$AWK"; then
7256   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265     ac_cv_prog_AWK="$ac_prog"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270   done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 AWK=$ac_cv_prog_AWK
7276 if test -n "$AWK"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7278 $as_echo "$AWK" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284
7285   test -n "$AWK" && break
7286 done
7287
7288 # We need awk to create options.c and options.h.
7289 # Bail out if it's missing.
7290 case ${AWK} in
7291   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7292 esac
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7295 $as_echo_n "checking whether ln -s works... " >&6; }
7296 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   rm -f conftestdata_t
7300 echo >conftestdata_f
7301 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7302 then
7303   gcc_cv_prog_LN_S="ln -s"
7304 else
7305   if ln conftestdata_f conftestdata_t 2>/dev/null
7306   then
7307     gcc_cv_prog_LN_S=ln
7308   else
7309     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7310     then
7311       gcc_cv_prog_LN_S="cp -p"
7312     else
7313       gcc_cv_prog_LN_S=cp
7314     fi
7315   fi
7316 fi
7317 rm -f conftestdata_f conftestdata_t
7318
7319 fi
7320 LN_S="$gcc_cv_prog_LN_S"
7321 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7323 $as_echo "yes" >&6; }
7324 else
7325   if test "$gcc_cv_prog_LN_S" = "ln"; then
7326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7327 $as_echo "no, using ln" >&6; }
7328   else
7329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7330 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7331   fi
7332 fi
7333
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7335 $as_echo_n "checking whether ln works... " >&6; }
7336 if test "${acx_cv_prog_LN+set}" = set; then :
7337   $as_echo_n "(cached) " >&6
7338 else
7339   rm -f conftestdata_t
7340 echo >conftestdata_f
7341 if ln conftestdata_f conftestdata_t 2>/dev/null
7342 then
7343   acx_cv_prog_LN=ln
7344 else
7345   acx_cv_prog_LN=no
7346 fi
7347 rm -f conftestdata_f conftestdata_t
7348
7349 fi
7350 if test $acx_cv_prog_LN = no; then
7351   LN="$LN_S"
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7353 $as_echo "no, using $LN" >&6; }
7354 else
7355   LN="$acx_cv_prog_LN"
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7357 $as_echo "yes" >&6; }
7358 fi
7359
7360 if test -n "$ac_tool_prefix"; then
7361   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$RANLIB"; then
7369   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 RANLIB=$ac_cv_prog_RANLIB
7389 if test -n "$RANLIB"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7391 $as_echo "$RANLIB" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398 fi
7399 if test -z "$ac_cv_prog_RANLIB"; then
7400   ac_ct_RANLIB=$RANLIB
7401   # Extract the first word of "ranlib", so it can be a program name with args.
7402 set dummy ranlib; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$ac_ct_RANLIB"; then
7409   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_prog_ac_ct_RANLIB="ranlib"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7429 if test -n "$ac_ct_RANLIB"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7431 $as_echo "$ac_ct_RANLIB" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437   if test "x$ac_ct_RANLIB" = x; then
7438     RANLIB=":"
7439   else
7440     case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446     RANLIB=$ac_ct_RANLIB
7447   fi
7448 else
7449   RANLIB="$ac_cv_prog_RANLIB"
7450 fi
7451
7452 case "${host}" in
7453 *-*-darwin*)
7454   # By default, the Darwin ranlib will not treat common symbols as
7455   # definitions when  building the archive table of contents.  Other
7456   # ranlibs do that; pass an option to the Darwin ranlib that makes
7457   # it behave similarly.
7458   ranlib_flags="-c"
7459   ;;
7460 *)
7461   ranlib_flags=""
7462 esac
7463
7464
7465 # Find a good install program.  We prefer a C program (faster),
7466 # so one script is as good as another.  But avoid the broken or
7467 # incompatible versions:
7468 # SysV /etc/install, /usr/sbin/install
7469 # SunOS /usr/etc/install
7470 # IRIX /sbin/install
7471 # AIX /bin/install
7472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7474 # ./install, which can be erroneously created by make from ./install.sh.
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7476 $as_echo_n "checking for a BSD compatible install... " >&6; }
7477 if test -z "$INSTALL"; then
7478 if test "${ac_cv_path_install+set}" = set; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7482   for ac_dir in $PATH; do
7483     # Account for people who put trailing slashes in PATH elements.
7484     case "$ac_dir/" in
7485     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7486     *)
7487       # OSF1 and SCO ODT 3.0 have their own names for install.
7488       for ac_prog in ginstall scoinst install; do
7489         if test -f $ac_dir/$ac_prog; then
7490           if test $ac_prog = install &&
7491             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7492             # AIX install.  It has an incompatible calling convention.
7493             # OSF/1 installbsd also uses dspmsg, but is usable.
7494             :
7495           else
7496             ac_cv_path_install="$ac_dir/$ac_prog -c"
7497             break 2
7498           fi
7499         fi
7500       done
7501       ;;
7502     esac
7503   done
7504   IFS="$ac_save_IFS"
7505
7506 fi
7507   if test "${ac_cv_path_install+set}" = set; then
7508     INSTALL="$ac_cv_path_install"
7509   else
7510     # As a last resort, use the slow shell script.  We don't cache a
7511     # path for INSTALL within a source directory, because that will
7512     # break other packages using the cache if that directory is
7513     # removed, or if the path is relative.
7514     INSTALL="$ac_install_sh"
7515   fi
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7518 $as_echo "$INSTALL" >&6; }
7519
7520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7521 # It thinks the first close brace ends the variable substitution.
7522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7523
7524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7525
7526
7527 # See if cmp has --ignore-initial.
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7529 $as_echo_n "checking for cmp's capabilities... " >&6; }
7530 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533    echo abfoo >t1
7534   echo cdfoo >t2
7535   gcc_cv_prog_cmp_skip=slowcompare
7536   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7537     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7538       :
7539     else
7540       gcc_cv_prog_cmp_skip=gnucompare
7541     fi
7542   fi
7543   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7544     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7545       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7546         :
7547       else
7548         gcc_cv_prog_cmp_skip=fastcompare
7549       fi
7550     fi
7551   fi
7552   rm t1 t2
7553
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7556 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7557 make_compare_target=$gcc_cv_prog_cmp_skip
7558
7559
7560
7561 # See if we have the mktemp command.
7562 # Extract the first word of "mktemp", so it can be a program name with args.
7563 set dummy mktemp; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   if test -n "$have_mktemp_command"; then
7570   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575   IFS=$as_save_IFS
7576   test -z "$as_dir" && as_dir=.
7577     for ac_exec_ext in '' $ac_executable_extensions; do
7578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579     ac_cv_prog_have_mktemp_command="yes"
7580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581     break 2
7582   fi
7583 done
7584   done
7585 IFS=$as_save_IFS
7586
7587   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7588 fi
7589 fi
7590 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7591 if test -n "$have_mktemp_command"; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7593 $as_echo "$have_mktemp_command" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599
7600
7601 # See if makeinfo has been installed and is modern enough
7602 # that we can use it.
7603
7604   # Extract the first word of "makeinfo", so it can be a program name with args.
7605 set dummy makeinfo; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   if test -n "$MAKEINFO"; then
7612   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617   IFS=$as_save_IFS
7618   test -z "$as_dir" && as_dir=.
7619     for ac_exec_ext in '' $ac_executable_extensions; do
7620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621     ac_cv_prog_MAKEINFO="makeinfo"
7622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623     break 2
7624   fi
7625 done
7626   done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 MAKEINFO=$ac_cv_prog_MAKEINFO
7632 if test -n "$MAKEINFO"; then
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7634 $as_echo "$MAKEINFO" >&6; }
7635 else
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640
7641   if test -n "$MAKEINFO"; then
7642     # Found it, now check the version.
7643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7644 $as_echo_n "checking for modern makeinfo... " >&6; }
7645 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7649                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7650
7651                     case $ac_prog_version in
7652                       '')  gcc_cv_prog_makeinfo_modern=no;;
7653                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7654                       *)   gcc_cv_prog_makeinfo_modern=no;;
7655                     esac
7656
7657 fi
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7659 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7660   else
7661     gcc_cv_prog_makeinfo_modern=no
7662   fi
7663   if test $gcc_cv_prog_makeinfo_modern = no; then
7664     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7665   fi
7666
7667 if test $gcc_cv_prog_makeinfo_modern = no; then
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7669 *** Makeinfo is missing or too old.
7670 *** Info documentation will not be built." >&5
7671 $as_echo "$as_me: WARNING:
7672 *** Makeinfo is missing or too old.
7673 *** Info documentation will not be built." >&2;}
7674   BUILD_INFO=
7675 else
7676   BUILD_INFO=info
7677 fi
7678
7679
7680 # Is pod2man recent enough to regenerate manpages?
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7682 $as_echo_n "checking for recent Pod::Man... " >&6; }
7683 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7685 $as_echo "yes" >&6; }
7686   GENERATED_MANPAGES=generated-manpages
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690   GENERATED_MANPAGES=
7691 fi
7692
7693
7694 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7695
7696 # How about lex?
7697 for ac_prog in flex
7698 do
7699   # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if test "${ac_cv_prog_FLEX+set}" = set; then :
7704   $as_echo_n "(cached) " >&6
7705 else
7706   if test -n "$FLEX"; then
7707   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714     for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_prog_FLEX="$ac_prog"
7717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721   done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 FLEX=$ac_cv_prog_FLEX
7727 if test -n "$FLEX"; then
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7729 $as_echo "$FLEX" >&6; }
7730 else
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735
7736   test -n "$FLEX" && break
7737 done
7738 test -n "$FLEX" || FLEX="$MISSING flex"
7739
7740
7741 # Bison?
7742 for ac_prog in bison
7743 do
7744   # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_BISON+set}" = set; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   if test -n "$BISON"; then
7752   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759     for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_prog_BISON="$ac_prog"
7762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766   done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 BISON=$ac_cv_prog_BISON
7772 if test -n "$BISON"; then
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7774 $as_echo "$BISON" >&6; }
7775 else
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780
7781   test -n "$BISON" && break
7782 done
7783 test -n "$BISON" || BISON="$MISSING bison"
7784
7785
7786 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7787 # check for build == host before using them.
7788
7789 # NM
7790 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7791   && test -d ../binutils ; then
7792   NM='${objdir}/../binutils/nm-new'
7793 else
7794   # Extract the first word of "nm", so it can be a program name with args.
7795 set dummy nm; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_NM+set}" = set; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   if test -n "$NM"; then
7802   ac_cv_prog_NM="$NM" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809     for ac_exec_ext in '' $ac_executable_extensions; do
7810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811     ac_cv_prog_NM="nm"
7812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816   done
7817 IFS=$as_save_IFS
7818
7819   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7820 fi
7821 fi
7822 NM=$ac_cv_prog_NM
7823 if test -n "$NM"; then
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7825 $as_echo "$NM" >&6; }
7826 else
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831
7832 fi
7833
7834 # AR
7835 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7836   && test -d ../binutils ; then
7837   AR='${objdir}/../binutils/ar'
7838 else
7839   # Extract the first word of "ar", so it can be a program name with args.
7840 set dummy ar; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if test "${ac_cv_prog_AR+set}" = set; then :
7844   $as_echo_n "(cached) " >&6
7845 else
7846   if test -n "$AR"; then
7847   ac_cv_prog_AR="$AR" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852   IFS=$as_save_IFS
7853   test -z "$as_dir" && as_dir=.
7854     for ac_exec_ext in '' $ac_executable_extensions; do
7855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856     ac_cv_prog_AR="ar"
7857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858     break 2
7859   fi
7860 done
7861   done
7862 IFS=$as_save_IFS
7863
7864   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7865 fi
7866 fi
7867 AR=$ac_cv_prog_AR
7868 if test -n "$AR"; then
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7870 $as_echo "$AR" >&6; }
7871 else
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877 fi
7878
7879
7880 # --------------------
7881 # Checks for C headers
7882 # --------------------
7883
7884 # Need to reject headers which give warnings, so that the -Werror bootstrap
7885 # works later. *sigh*  This needs to come before all header checks.
7886
7887 ac_c_preproc_warn_flag=yes
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7890 $as_echo_n "checking for ANSI C header files... " >&6; }
7891 if test "${ac_cv_header_stdc+set}" = set; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h.  */
7896 #include <stdlib.h>
7897 #include <stdarg.h>
7898 #include <string.h>
7899 #include <float.h>
7900
7901 int
7902 main ()
7903 {
7904
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_compile "$LINENO"; then :
7910   ac_cv_header_stdc=yes
7911 else
7912   ac_cv_header_stdc=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915
7916 if test $ac_cv_header_stdc = yes; then
7917   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h.  */
7920 #include <string.h>
7921
7922 _ACEOF
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924   $EGREP "memchr" >/dev/null 2>&1; then :
7925
7926 else
7927   ac_cv_header_stdc=no
7928 fi
7929 rm -f conftest*
7930
7931 fi
7932
7933 if test $ac_cv_header_stdc = yes; then
7934   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h.  */
7937 #include <stdlib.h>
7938
7939 _ACEOF
7940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7941   $EGREP "free" >/dev/null 2>&1; then :
7942
7943 else
7944   ac_cv_header_stdc=no
7945 fi
7946 rm -f conftest*
7947
7948 fi
7949
7950 if test $ac_cv_header_stdc = yes; then
7951   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7952   if test "$cross_compiling" = yes; then :
7953   :
7954 else
7955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957 #include <ctype.h>
7958 #include <stdlib.h>
7959 #if ((' ' & 0x0FF) == 0x020)
7960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7962 #else
7963 # define ISLOWER(c) \
7964                    (('a' <= (c) && (c) <= 'i') \
7965                      || ('j' <= (c) && (c) <= 'r') \
7966                      || ('s' <= (c) && (c) <= 'z'))
7967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7968 #endif
7969
7970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7971 int
7972 main ()
7973 {
7974   int i;
7975   for (i = 0; i < 256; i++)
7976     if (XOR (islower (i), ISLOWER (i))
7977         || toupper (i) != TOUPPER (i))
7978       return 2;
7979   return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_run "$LINENO"; then :
7983
7984 else
7985   ac_cv_header_stdc=no
7986 fi
7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7988   conftest.$ac_objext conftest.beam conftest.$ac_ext
7989 fi
7990
7991 fi
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7994 $as_echo "$ac_cv_header_stdc" >&6; }
7995 if test $ac_cv_header_stdc = yes; then
7996
7997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7998
7999 fi
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8002 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8003 if test "${ac_cv_header_time+set}" = set; then :
8004   $as_echo_n "(cached) " >&6
8005 else
8006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008 #include <sys/types.h>
8009 #include <sys/time.h>
8010 #include <time.h>
8011
8012 int
8013 main ()
8014 {
8015 if ((struct tm *) 0)
8016 return 0;
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_compile "$LINENO"; then :
8022   ac_cv_header_time=yes
8023 else
8024   ac_cv_header_time=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 fi
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8029 $as_echo "$ac_cv_header_time" >&6; }
8030 if test $ac_cv_header_time = yes; then
8031
8032 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8033
8034 fi
8035
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8037 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8038 if test "${gcc_cv_header_string+set}" = set; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h.  */
8043 #include <string.h>
8044 #include <strings.h>
8045 int
8046 main ()
8047 {
8048
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054   gcc_cv_header_string=yes
8055 else
8056   gcc_cv_header_string=no
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8061 $as_echo "$gcc_cv_header_string" >&6; }
8062 if test $gcc_cv_header_string = yes; then
8063
8064 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8065
8066 fi
8067
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8069 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8070 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8071   $as_echo_n "(cached) " >&6
8072 else
8073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h.  */
8075 #include <sys/types.h>
8076 #include <sys/wait.h>
8077 #ifndef WEXITSTATUS
8078 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8079 #endif
8080 #ifndef WIFEXITED
8081 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8082 #endif
8083
8084 int
8085 main ()
8086 {
8087   int s;
8088   wait (&s);
8089   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8090   ;
8091   return 0;
8092 }
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095   ac_cv_header_sys_wait_h=yes
8096 else
8097   ac_cv_header_sys_wait_h=no
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8102 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8103 if test $ac_cv_header_sys_wait_h = yes; then
8104
8105 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8106
8107 fi
8108
8109 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8110                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8111                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8112                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8113 do :
8114   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8115 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8116 eval as_val=\$$as_ac_Header
8117    if test "x$as_val" = x""yes; then :
8118   cat >>confdefs.h <<_ACEOF
8119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8120 _ACEOF
8121
8122 fi
8123 done
8124
8125
8126 # Check for thread headers.
8127 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8128 if test "x$ac_cv_header_thread_h" = x""yes; then :
8129   have_thread_h=yes
8130 else
8131   have_thread_h=
8132 fi
8133
8134 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8135 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8136   have_pthread_h=yes
8137 else
8138   have_pthread_h=
8139 fi
8140
8141
8142 # These tests can't be done till we know if we have limits.h.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8144 $as_echo_n "checking for CHAR_BIT... " >&6; }
8145 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h.  */
8150 #ifdef HAVE_LIMITS_H
8151 #include <limits.h>
8152 #endif
8153 #ifdef CHAR_BIT
8154 found
8155 #endif
8156 _ACEOF
8157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8158   $EGREP "found" >/dev/null 2>&1; then :
8159   gcc_cv_decl_char_bit=yes
8160 else
8161   gcc_cv_decl_char_bit=no
8162 fi
8163 rm -f conftest*
8164
8165
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8168 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8169 if test $gcc_cv_decl_char_bit = no; then
8170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8171 $as_echo_n "checking number of bits in a byte... " >&6; }
8172 if test "${gcc_cv_c_nbby+set}" = set; then :
8173   $as_echo_n "(cached) " >&6
8174 else
8175   i=8
8176  gcc_cv_c_nbby=
8177  while test $i -lt 65; do
8178    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h.  */
8180
8181 int
8182 main ()
8183 {
8184 switch(0) {
8185   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8186   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8187   ; }
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193   gcc_cv_c_nbby=$i; break
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196    i=`expr $i + 1`
8197  done
8198  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8199
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8202 $as_echo "$gcc_cv_c_nbby" >&6; }
8203 if test $gcc_cv_c_nbby = failed; then
8204   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8205 else
8206
8207 cat >>confdefs.h <<_ACEOF
8208 #define CHAR_BIT $gcc_cv_c_nbby
8209 _ACEOF
8210
8211 fi
8212 fi
8213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8214 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8215 if test "${ac_cv_c_bigendian+set}" = set; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   ac_cv_c_bigendian=unknown
8219     # See if we're dealing with a universal compiler.
8220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h.  */
8222 #ifndef __APPLE_CC__
8223                not a universal capable compiler
8224              #endif
8225              typedef int dummy;
8226
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229
8230         # Check for potential -arch flags.  It is not universal unless
8231         # there are at least two -arch flags with different values.
8232         ac_arch=
8233         ac_prev=
8234         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8235          if test -n "$ac_prev"; then
8236            case $ac_word in
8237              i?86 | x86_64 | ppc | ppc64)
8238                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8239                  ac_arch=$ac_word
8240                else
8241                  ac_cv_c_bigendian=universal
8242                  break
8243                fi
8244                ;;
8245            esac
8246            ac_prev=
8247          elif test "x$ac_word" = "x-arch"; then
8248            ac_prev=arch
8249          fi
8250        done
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253     if test $ac_cv_c_bigendian = unknown; then
8254       # See if sys/param.h defines the BYTE_ORDER macro.
8255       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h.  */
8257 #include <sys/types.h>
8258              #include <sys/param.h>
8259
8260 int
8261 main ()
8262 {
8263 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8264                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8265                      && LITTLE_ENDIAN)
8266               bogus endian macros
8267              #endif
8268
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"; then :
8274   # It does; now see whether it defined to BIG_ENDIAN or not.
8275          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h.  */
8277 #include <sys/types.h>
8278                 #include <sys/param.h>
8279
8280 int
8281 main ()
8282 {
8283 #if BYTE_ORDER != BIG_ENDIAN
8284                  not big endian
8285                 #endif
8286
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292   ac_cv_c_bigendian=yes
8293 else
8294   ac_cv_c_bigendian=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299     fi
8300     if test $ac_cv_c_bigendian = unknown; then
8301       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8302       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304 #include <limits.h>
8305
8306 int
8307 main ()
8308 {
8309 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8310               bogus endian macros
8311              #endif
8312
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318   # It does; now see whether it defined to _BIG_ENDIAN or not.
8319          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h.  */
8321 #include <limits.h>
8322
8323 int
8324 main ()
8325 {
8326 #ifndef _BIG_ENDIAN
8327                  not big endian
8328                 #endif
8329
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335   ac_cv_c_bigendian=yes
8336 else
8337   ac_cv_c_bigendian=no
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342     fi
8343     if test $ac_cv_c_bigendian = unknown; then
8344       # Compile a test program.
8345       if test "$cross_compiling" = yes; then :
8346   # Try to guess by grepping values from an object file.
8347          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h.  */
8349 short int ascii_mm[] =
8350                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8351                 short int ascii_ii[] =
8352                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8353                 int use_ascii (int i) {
8354                   return ascii_mm[i] + ascii_ii[i];
8355                 }
8356                 short int ebcdic_ii[] =
8357                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8358                 short int ebcdic_mm[] =
8359                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8360                 int use_ebcdic (int i) {
8361                   return ebcdic_mm[i] + ebcdic_ii[i];
8362                 }
8363                 extern int foo;
8364
8365 int
8366 main ()
8367 {
8368 return use_ascii (foo) == use_ebcdic (foo);
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8375               ac_cv_c_bigendian=yes
8376             fi
8377             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8378               if test "$ac_cv_c_bigendian" = unknown; then
8379                 ac_cv_c_bigendian=no
8380               else
8381                 # finding both strings is unlikely to happen, but who knows?
8382                 ac_cv_c_bigendian=unknown
8383               fi
8384             fi
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 else
8388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h.  */
8390 $ac_includes_default
8391 int
8392 main ()
8393 {
8394
8395              /* Are we little or big endian?  From Harbison&Steele.  */
8396              union
8397              {
8398                long int l;
8399                char c[sizeof (long int)];
8400              } u;
8401              u.l = 1;
8402              return u.c[sizeof (long int) - 1] == 1;
8403
8404   ;
8405   return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_run "$LINENO"; then :
8409   ac_cv_c_bigendian=no
8410 else
8411   ac_cv_c_bigendian=yes
8412 fi
8413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8414   conftest.$ac_objext conftest.beam conftest.$ac_ext
8415 fi
8416
8417     fi
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8420 $as_echo "$ac_cv_c_bigendian" >&6; }
8421  case $ac_cv_c_bigendian in #(
8422    yes)
8423      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8424 ;; #(
8425    no)
8426       ;; #(
8427    universal)
8428
8429 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8430
8431      ;; #(
8432    *)
8433      as_fn_error "unknown endianness
8434  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8435  esac
8436
8437
8438 # ----------------------
8439 # Checks for C++ headers
8440 # ----------------------
8441
8442 ac_ext=cpp
8443 ac_cpp='$CXXCPP $CPPFLAGS'
8444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8448 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8449 if test -z "$CXXCPP"; then
8450   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8451   $as_echo_n "(cached) " >&6
8452 else
8453       # Double quotes because CXXCPP needs to be expanded
8454     for CXXCPP in "$CXX -E" "/lib/cpp"
8455     do
8456       ac_preproc_ok=false
8457 for ac_cxx_preproc_warn_flag in '' yes
8458 do
8459   # Use a header file that comes with gcc, so configuring glibc
8460   # with a fresh cross-compiler works.
8461   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8462   # <limits.h> exists even on freestanding compilers.
8463   # On the NeXT, cc -E runs the code through the compiler's parser,
8464   # not just through cpp. "Syntax error" is here to catch this case.
8465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h.  */
8467 #ifdef __STDC__
8468 # include <limits.h>
8469 #else
8470 # include <assert.h>
8471 #endif
8472                      Syntax error
8473 _ACEOF
8474 if ac_fn_cxx_try_cpp "$LINENO"; then :
8475
8476 else
8477   # Broken: fails on valid input.
8478 continue
8479 fi
8480 rm -f conftest.err conftest.$ac_ext
8481
8482   # OK, works on sane cases.  Now check whether nonexistent headers
8483   # can be detected and how.
8484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h.  */
8486 #include <ac_nonexistent.h>
8487 _ACEOF
8488 if ac_fn_cxx_try_cpp "$LINENO"; then :
8489   # Broken: success on invalid input.
8490 continue
8491 else
8492   # Passes both tests.
8493 ac_preproc_ok=:
8494 break
8495 fi
8496 rm -f conftest.err conftest.$ac_ext
8497
8498 done
8499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8500 rm -f conftest.err conftest.$ac_ext
8501 if $ac_preproc_ok; then :
8502   break
8503 fi
8504
8505     done
8506     ac_cv_prog_CXXCPP=$CXXCPP
8507
8508 fi
8509   CXXCPP=$ac_cv_prog_CXXCPP
8510 else
8511   ac_cv_prog_CXXCPP=$CXXCPP
8512 fi
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8514 $as_echo "$CXXCPP" >&6; }
8515 ac_preproc_ok=false
8516 for ac_cxx_preproc_warn_flag in '' yes
8517 do
8518   # Use a header file that comes with gcc, so configuring glibc
8519   # with a fresh cross-compiler works.
8520   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8521   # <limits.h> exists even on freestanding compilers.
8522   # On the NeXT, cc -E runs the code through the compiler's parser,
8523   # not just through cpp. "Syntax error" is here to catch this case.
8524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h.  */
8526 #ifdef __STDC__
8527 # include <limits.h>
8528 #else
8529 # include <assert.h>
8530 #endif
8531                      Syntax error
8532 _ACEOF
8533 if ac_fn_cxx_try_cpp "$LINENO"; then :
8534
8535 else
8536   # Broken: fails on valid input.
8537 continue
8538 fi
8539 rm -f conftest.err conftest.$ac_ext
8540
8541   # OK, works on sane cases.  Now check whether nonexistent headers
8542   # can be detected and how.
8543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h.  */
8545 #include <ac_nonexistent.h>
8546 _ACEOF
8547 if ac_fn_cxx_try_cpp "$LINENO"; then :
8548   # Broken: success on invalid input.
8549 continue
8550 else
8551   # Passes both tests.
8552 ac_preproc_ok=:
8553 break
8554 fi
8555 rm -f conftest.err conftest.$ac_ext
8556
8557 done
8558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8559 rm -f conftest.err conftest.$ac_ext
8560 if $ac_preproc_ok; then :
8561
8562 else
8563   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8566 See \`config.log' for more details." >&5
8567 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8568 See \`config.log' for more details." >&2;}; }
8569 fi
8570
8571 ac_ext=c
8572 ac_cpp='$CPP $CPPFLAGS'
8573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8576
8577
8578 ac_ext=cpp
8579 ac_cpp='$CXXCPP $CPPFLAGS'
8580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8583
8584
8585
8586
8587 for ac_header in unordered_map
8588 do :
8589   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8590 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8591   cat >>confdefs.h <<_ACEOF
8592 #define HAVE_UNORDERED_MAP 1
8593 _ACEOF
8594
8595 fi
8596 done
8597
8598 for ac_header in tr1/unordered_map
8599 do :
8600   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8601 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8602   cat >>confdefs.h <<_ACEOF
8603 #define HAVE_TR1_UNORDERED_MAP 1
8604 _ACEOF
8605
8606 fi
8607 done
8608
8609 for ac_header in ext/hash_map
8610 do :
8611   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8612 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8613   cat >>confdefs.h <<_ACEOF
8614 #define HAVE_EXT_HASH_MAP 1
8615 _ACEOF
8616
8617 fi
8618 done
8619
8620
8621 ac_ext=c
8622 ac_cpp='$CPP $CPPFLAGS'
8623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8626
8627
8628 # --------
8629 # UNSORTED
8630 # --------
8631
8632
8633 # These libraries may be used by collect2.
8634 # We may need a special search path to get them linked.
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8636 $as_echo_n "checking for collect2 libraries... " >&6; }
8637 if test "${gcc_cv_collect2_libs+set}" = set; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   save_LIBS="$LIBS"
8641 for libs in '' -lld -lmld \
8642                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8643                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8644 do
8645         LIBS="$libs"
8646         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h.  */
8648
8649 /* Override any GCC internal prototype to avoid an error.
8650    Use char because int might match the return type of a GCC
8651    builtin and then its argument prototype would still apply.  */
8652 #ifdef __cplusplus
8653 extern "C"
8654 #endif
8655 char ldopen ();
8656 int
8657 main ()
8658 {
8659 return ldopen ();
8660   ;
8661   return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_link "$LINENO"; then :
8665   gcc_cv_collect2_libs="$libs"; break
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668     conftest$ac_exeext conftest.$ac_ext
8669 done
8670 LIBS="$save_LIBS"
8671 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8674 $as_echo "$gcc_cv_collect2_libs" >&6; }
8675 case $gcc_cv_collect2_libs in
8676         "none required")        ;;
8677         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8678 esac
8679
8680
8681 # When building Ada code on Alpha, we need exc_resume which is usually in
8682 # -lexc.  So test for it.
8683 save_LIBS="$LIBS"
8684 LIBS=
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8686 $as_echo_n "checking for library containing exc_resume... " >&6; }
8687 if test "${ac_cv_search_exc_resume+set}" = set; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   ac_func_search_save_LIBS=$LIBS
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h.  */
8693
8694 /* Override any GCC internal prototype to avoid an error.
8695    Use char because int might match the return type of a GCC
8696    builtin and then its argument prototype would still apply.  */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 char exc_resume ();
8701 int
8702 main ()
8703 {
8704 return exc_resume ();
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 for ac_lib in '' exc; do
8710   if test -z "$ac_lib"; then
8711     ac_res="none required"
8712   else
8713     ac_res=-l$ac_lib
8714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8715   fi
8716   if ac_fn_c_try_link "$LINENO"; then :
8717   ac_cv_search_exc_resume=$ac_res
8718 fi
8719 rm -f core conftest.err conftest.$ac_objext \
8720     conftest$ac_exeext
8721   if test "${ac_cv_search_exc_resume+set}" = set; then :
8722   break
8723 fi
8724 done
8725 if test "${ac_cv_search_exc_resume+set}" = set; then :
8726
8727 else
8728   ac_cv_search_exc_resume=no
8729 fi
8730 rm conftest.$ac_ext
8731 LIBS=$ac_func_search_save_LIBS
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8734 $as_echo "$ac_cv_search_exc_resume" >&6; }
8735 ac_res=$ac_cv_search_exc_resume
8736 if test "$ac_res" != no; then :
8737   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8738
8739 fi
8740
8741 GNAT_LIBEXC="$LIBS"
8742 LIBS="$save_LIBS"
8743
8744
8745 # Some systems put ldexp and frexp in libm instead of libc; assume
8746 # they're both in the same place.  jcf-dump needs them.
8747 save_LIBS="$LIBS"
8748 LIBS=
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8750 $as_echo_n "checking for library containing ldexp... " >&6; }
8751 if test "${ac_cv_search_ldexp+set}" = set; then :
8752   $as_echo_n "(cached) " >&6
8753 else
8754   ac_func_search_save_LIBS=$LIBS
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h.  */
8757
8758 /* Override any GCC internal prototype to avoid an error.
8759    Use char because int might match the return type of a GCC
8760    builtin and then its argument prototype would still apply.  */
8761 #ifdef __cplusplus
8762 extern "C"
8763 #endif
8764 char ldexp ();
8765 int
8766 main ()
8767 {
8768 return ldexp ();
8769   ;
8770   return 0;
8771 }
8772 _ACEOF
8773 for ac_lib in '' m; do
8774   if test -z "$ac_lib"; then
8775     ac_res="none required"
8776   else
8777     ac_res=-l$ac_lib
8778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8779   fi
8780   if ac_fn_c_try_link "$LINENO"; then :
8781   ac_cv_search_ldexp=$ac_res
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext \
8784     conftest$ac_exeext
8785   if test "${ac_cv_search_ldexp+set}" = set; then :
8786   break
8787 fi
8788 done
8789 if test "${ac_cv_search_ldexp+set}" = set; then :
8790
8791 else
8792   ac_cv_search_ldexp=no
8793 fi
8794 rm conftest.$ac_ext
8795 LIBS=$ac_func_search_save_LIBS
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8798 $as_echo "$ac_cv_search_ldexp" >&6; }
8799 ac_res=$ac_cv_search_ldexp
8800 if test "$ac_res" != no; then :
8801   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8802
8803 fi
8804
8805 LDEXP_LIB="$LIBS"
8806 LIBS="$save_LIBS"
8807
8808
8809 # Use <inttypes.h> only if it exists,
8810 # doesn't clash with <sys/types.h>, and declares intmax_t.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8812 $as_echo_n "checking for inttypes.h... " >&6; }
8813 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8814   $as_echo_n "(cached) " >&6
8815 else
8816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h.  */
8818 #include <sys/types.h>
8819 #include <inttypes.h>
8820 int
8821 main ()
8822 {
8823 intmax_t i = -1;
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829   gcc_cv_header_inttypes_h=yes
8830 else
8831   gcc_cv_header_inttypes_h=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8837 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8838 if test $gcc_cv_header_inttypes_h = yes; then
8839
8840 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8841
8842 fi
8843
8844
8845
8846 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8847         sysconf strsignal getrusage nl_langinfo \
8848         gettimeofday mbstowcs wcswidth mmap setlocale \
8849         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
8850 do :
8851   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8853 eval as_val=\$$as_ac_var
8854    if test "x$as_val" = x""yes; then :
8855   cat >>confdefs.h <<_ACEOF
8856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8857 _ACEOF
8858
8859 fi
8860 done
8861
8862
8863 if test x$ac_cv_func_mbstowcs = xyes; then
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8865 $as_echo_n "checking whether mbstowcs works... " >&6; }
8866 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8867   $as_echo_n "(cached) " >&6
8868 else
8869       if test "$cross_compiling" = yes; then :
8870   gcc_cv_func_mbstowcs_works=yes
8871 else
8872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h.  */
8874 #include <stdlib.h>
8875 int main()
8876 {
8877   mbstowcs(0, "", 0);
8878   return 0;
8879 }
8880 _ACEOF
8881 if ac_fn_c_try_run "$LINENO"; then :
8882   gcc_cv_func_mbstowcs_works=yes
8883 else
8884   gcc_cv_func_mbstowcs_works=no
8885 fi
8886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8887   conftest.$ac_objext conftest.beam conftest.$ac_ext
8888 fi
8889
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8892 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8893   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8894
8895 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8896
8897   fi
8898 fi
8899
8900 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8901 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8902
8903 else
8904
8905 cat >>confdefs.h <<_ACEOF
8906 #define ssize_t int
8907 _ACEOF
8908
8909 fi
8910
8911 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8912 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8913
8914 else
8915
8916 cat >>confdefs.h <<_ACEOF
8917 #define caddr_t char *
8918 _ACEOF
8919
8920 fi
8921
8922
8923
8924 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8925 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8926   gcc_header_sys_mman_h=yes
8927 else
8928   gcc_header_sys_mman_h=no
8929 fi
8930
8931 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8932 if test "x$ac_cv_func_mmap" = x""yes; then :
8933   gcc_func_mmap=yes
8934 else
8935   gcc_func_mmap=no
8936 fi
8937
8938 if test "$gcc_header_sys_mman_h" != yes \
8939  || test "$gcc_func_mmap" != yes; then
8940    gcc_cv_func_mmap_file=no
8941    gcc_cv_func_mmap_dev_zero=no
8942    gcc_cv_func_mmap_anon=no
8943 else
8944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8945 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8946 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8947   $as_echo_n "(cached) " >&6
8948 else
8949   # Add a system to this blacklist if
8950    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8951    # memory area containing the same data that you'd get if you applied
8952    # read() to the same fd.  The only system known to have a problem here
8953    # is VMS, where text files have record structure.
8954    case "$host_os" in
8955      vms* | ultrix*)
8956         gcc_cv_func_mmap_file=no ;;
8957      *)
8958         gcc_cv_func_mmap_file=yes;;
8959    esac
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8962 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8964 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8965 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   # Add a system to this blacklist if it has mmap() but /dev/zero
8969    # does not exist, or if mmapping /dev/zero does not give anonymous
8970    # zeroed pages with both the following properties:
8971    # 1. If you map N consecutive pages in with one call, and then
8972    #    unmap any subset of those pages, the pages that were not
8973    #    explicitly unmapped remain accessible.
8974    # 2. If you map two adjacent blocks of memory and then unmap them
8975    #    both at once, they must both go away.
8976    # Systems known to be in this category are Windows (all variants),
8977    # VMS, and Darwin.
8978    case "$host_os" in
8979      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8980         gcc_cv_func_mmap_dev_zero=no ;;
8981      *)
8982         gcc_cv_func_mmap_dev_zero=yes;;
8983    esac
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8986 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8987
8988    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8990 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8991 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8992   $as_echo_n "(cached) " >&6
8993 else
8994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h.  */
8996 #include <sys/types.h>
8997 #include <sys/mman.h>
8998 #include <unistd.h>
8999
9000 #ifndef MAP_ANONYMOUS
9001 #define MAP_ANONYMOUS MAP_ANON
9002 #endif
9003
9004 int
9005 main ()
9006 {
9007 int n = MAP_ANONYMOUS;
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_c_try_compile "$LINENO"; then :
9013   gcc_cv_decl_map_anon=yes
9014 else
9015   gcc_cv_decl_map_anon=no
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9020 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9021
9022    if test $gcc_cv_decl_map_anon = no; then
9023      gcc_cv_func_mmap_anon=no
9024    else
9025      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9026 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9027 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9028   $as_echo_n "(cached) " >&6
9029 else
9030   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9031    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9032    # doesn't give anonymous zeroed pages with the same properties listed
9033    # above for use of /dev/zero.
9034    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9035    case "$host_os" in
9036      vms* | cygwin* | pe | mingw* | sco* | udk* )
9037         gcc_cv_func_mmap_anon=no ;;
9038      *)
9039         gcc_cv_func_mmap_anon=yes;;
9040    esac
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9043 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9044    fi
9045 fi
9046
9047 if test $gcc_cv_func_mmap_file = yes; then
9048
9049 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9050
9051 fi
9052 if test $gcc_cv_func_mmap_dev_zero = yes; then
9053
9054 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9055
9056 fi
9057 if test $gcc_cv_func_mmap_anon = yes; then
9058
9059 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9060
9061 fi
9062
9063
9064 case "${host}" in
9065 *-*-*vms*)
9066   # Under VMS, vfork works very differently than on Unix. The standard test
9067   # won't work, and it isn't easily adaptable. It makes more sense to
9068   # just force it.
9069   ac_cv_func_vfork_works=yes
9070   ;;
9071 esac
9072 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9073 if test "x$ac_cv_type_pid_t" = x""yes; then :
9074
9075 else
9076
9077 cat >>confdefs.h <<_ACEOF
9078 #define pid_t int
9079 _ACEOF
9080
9081 fi
9082
9083 for ac_header in vfork.h
9084 do :
9085   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9086 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9087   cat >>confdefs.h <<_ACEOF
9088 #define HAVE_VFORK_H 1
9089 _ACEOF
9090
9091 fi
9092 done
9093
9094 for ac_func in fork vfork
9095 do :
9096   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9098 eval as_val=\$$as_ac_var
9099    if test "x$as_val" = x""yes; then :
9100   cat >>confdefs.h <<_ACEOF
9101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9102 _ACEOF
9103
9104 fi
9105 done
9106
9107 if test "x$ac_cv_func_fork" = xyes; then
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9109 $as_echo_n "checking for working fork... " >&6; }
9110 if test "${ac_cv_func_fork_works+set}" = set; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   if test "$cross_compiling" = yes; then :
9114   ac_cv_func_fork_works=cross
9115 else
9116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h.  */
9118 $ac_includes_default
9119 int
9120 main ()
9121 {
9122
9123           /* By Ruediger Kuhlmann. */
9124           return fork () < 0;
9125
9126   ;
9127   return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_run "$LINENO"; then :
9131   ac_cv_func_fork_works=yes
9132 else
9133   ac_cv_func_fork_works=no
9134 fi
9135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9136   conftest.$ac_objext conftest.beam conftest.$ac_ext
9137 fi
9138
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9141 $as_echo "$ac_cv_func_fork_works" >&6; }
9142
9143 else
9144   ac_cv_func_fork_works=$ac_cv_func_fork
9145 fi
9146 if test "x$ac_cv_func_fork_works" = xcross; then
9147   case $host in
9148     *-*-amigaos* | *-*-msdosdjgpp*)
9149       # Override, as these systems have only a dummy fork() stub
9150       ac_cv_func_fork_works=no
9151       ;;
9152     *)
9153       ac_cv_func_fork_works=yes
9154       ;;
9155   esac
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9157 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9158 fi
9159 ac_cv_func_vfork_works=$ac_cv_func_vfork
9160 if test "x$ac_cv_func_vfork" = xyes; then
9161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9162 $as_echo_n "checking for working vfork... " >&6; }
9163 if test "${ac_cv_func_vfork_works+set}" = set; then :
9164   $as_echo_n "(cached) " >&6
9165 else
9166   if test "$cross_compiling" = yes; then :
9167   ac_cv_func_vfork_works=cross
9168 else
9169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h.  */
9171 /* Thanks to Paul Eggert for this test.  */
9172 $ac_includes_default
9173 #include <sys/wait.h>
9174 #ifdef HAVE_VFORK_H
9175 # include <vfork.h>
9176 #endif
9177 /* On some sparc systems, changes by the child to local and incoming
9178    argument registers are propagated back to the parent.  The compiler
9179    is told about this with #include <vfork.h>, but some compilers
9180    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9181    static variable whose address is put into a register that is
9182    clobbered by the vfork.  */
9183 static void
9184 #ifdef __cplusplus
9185 sparc_address_test (int arg)
9186 # else
9187 sparc_address_test (arg) int arg;
9188 #endif
9189 {
9190   static pid_t child;
9191   if (!child) {
9192     child = vfork ();
9193     if (child < 0) {
9194       perror ("vfork");
9195       _exit(2);
9196     }
9197     if (!child) {
9198       arg = getpid();
9199       write(-1, "", 0);
9200       _exit (arg);
9201     }
9202   }
9203 }
9204
9205 int
9206 main ()
9207 {
9208   pid_t parent = getpid ();
9209   pid_t child;
9210
9211   sparc_address_test (0);
9212
9213   child = vfork ();
9214
9215   if (child == 0) {
9216     /* Here is another test for sparc vfork register problems.  This
9217        test uses lots of local variables, at least as many local
9218        variables as main has allocated so far including compiler
9219        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9220        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9221        reuse the register of parent for one of the local variables,
9222        since it will think that parent can't possibly be used any more
9223        in this routine.  Assigning to the local variable will thus
9224        munge parent in the parent process.  */
9225     pid_t
9226       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9227       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9228     /* Convince the compiler that p..p7 are live; otherwise, it might
9229        use the same hardware register for all 8 local variables.  */
9230     if (p != p1 || p != p2 || p != p3 || p != p4
9231         || p != p5 || p != p6 || p != p7)
9232       _exit(1);
9233
9234     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9235        from child file descriptors.  If the child closes a descriptor
9236        before it execs or exits, this munges the parent's descriptor
9237        as well.  Test for this by closing stdout in the child.  */
9238     _exit(close(fileno(stdout)) != 0);
9239   } else {
9240     int status;
9241     struct stat st;
9242
9243     while (wait(&status) != child)
9244       ;
9245     return (
9246          /* Was there some problem with vforking?  */
9247          child < 0
9248
9249          /* Did the child fail?  (This shouldn't happen.)  */
9250          || status
9251
9252          /* Did the vfork/compiler bug occur?  */
9253          || parent != getpid()
9254
9255          /* Did the file descriptor bug occur?  */
9256          || fstat(fileno(stdout), &st) != 0
9257          );
9258   }
9259 }
9260 _ACEOF
9261 if ac_fn_c_try_run "$LINENO"; then :
9262   ac_cv_func_vfork_works=yes
9263 else
9264   ac_cv_func_vfork_works=no
9265 fi
9266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9267   conftest.$ac_objext conftest.beam conftest.$ac_ext
9268 fi
9269
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9272 $as_echo "$ac_cv_func_vfork_works" >&6; }
9273
9274 fi;
9275 if test "x$ac_cv_func_fork_works" = xcross; then
9276   ac_cv_func_vfork_works=$ac_cv_func_vfork
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9278 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9279 fi
9280
9281 if test "x$ac_cv_func_vfork_works" = xyes; then
9282
9283 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9284
9285 else
9286
9287 $as_echo "#define vfork fork" >>confdefs.h
9288
9289 fi
9290 if test "x$ac_cv_func_fork_works" = xyes; then
9291
9292 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9293
9294 fi
9295
9296
9297
9298       if test "X$prefix" = "XNONE"; then
9299     acl_final_prefix="$ac_default_prefix"
9300   else
9301     acl_final_prefix="$prefix"
9302   fi
9303   if test "X$exec_prefix" = "XNONE"; then
9304     acl_final_exec_prefix='${prefix}'
9305   else
9306     acl_final_exec_prefix="$exec_prefix"
9307   fi
9308   acl_save_prefix="$prefix"
9309   prefix="$acl_final_prefix"
9310   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9311   prefix="$acl_save_prefix"
9312
9313
9314 # Check whether --with-gnu-ld was given.
9315 if test "${with_gnu_ld+set}" = set; then :
9316   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9317 else
9318   with_gnu_ld=no
9319 fi
9320
9321 # Prepare PATH_SEPARATOR.
9322 # The user is always right.
9323 if test "${PATH_SEPARATOR+set}" != set; then
9324   echo "#! /bin/sh" >conf$$.sh
9325   echo  "exit 0"   >>conf$$.sh
9326   chmod +x conf$$.sh
9327   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9328     PATH_SEPARATOR=';'
9329   else
9330     PATH_SEPARATOR=:
9331   fi
9332   rm -f conf$$.sh
9333 fi
9334 ac_prog=ld
9335 if test "$GCC" = yes; then
9336   # Check if gcc -print-prog-name=ld gives a path.
9337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9338 $as_echo_n "checking for ld used by GCC... " >&6; }
9339   case $host in
9340   *-*-mingw*)
9341     # gcc leaves a trailing carriage return which upsets mingw
9342     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9343   *)
9344     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9345   esac
9346   case $ac_prog in
9347     # Accept absolute paths.
9348     [\\/]* | [A-Za-z]:[\\/]*)
9349       re_direlt='/[^/][^/]*/\.\./'
9350       # Canonicalize the path of ld
9351       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9352       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9353         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9354       done
9355       test -z "$LD" && LD="$ac_prog"
9356       ;;
9357   "")
9358     # If it fails, then pretend we aren't using GCC.
9359     ac_prog=ld
9360     ;;
9361   *)
9362     # If it is relative, then search for the first ld in PATH.
9363     with_gnu_ld=unknown
9364     ;;
9365   esac
9366 elif test "$with_gnu_ld" = yes; then
9367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9368 $as_echo_n "checking for GNU ld... " >&6; }
9369 else
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9371 $as_echo_n "checking for non-GNU ld... " >&6; }
9372 fi
9373 if test "${acl_cv_path_LD+set}" = set; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   if test -z "$LD"; then
9377   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9378   for ac_dir in $PATH; do
9379     test -z "$ac_dir" && ac_dir=.
9380     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9381       acl_cv_path_LD="$ac_dir/$ac_prog"
9382       # Check to see if the program is GNU ld.  I'd rather use --version,
9383       # but apparently some GNU ld's only accept -v.
9384       # Break only if it was the GNU/non-GNU ld that we prefer.
9385       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9386         test "$with_gnu_ld" != no && break
9387       else
9388         test "$with_gnu_ld" != yes && break
9389       fi
9390     fi
9391   done
9392   IFS="$ac_save_ifs"
9393 else
9394   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9395 fi
9396 fi
9397
9398 LD="$acl_cv_path_LD"
9399 if test -n "$LD"; then
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9401 $as_echo "$LD" >&6; }
9402 else
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9408 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9409 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9410   $as_echo_n "(cached) " >&6
9411 else
9412   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9413 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9414   acl_cv_prog_gnu_ld=yes
9415 else
9416   acl_cv_prog_gnu_ld=no
9417 fi
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9420 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9421 with_gnu_ld=$acl_cv_prog_gnu_ld
9422
9423
9424
9425                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9426 $as_echo_n "checking for shared library run path origin... " >&6; }
9427 if test "${acl_cv_rpath+set}" = set; then :
9428   $as_echo_n "(cached) " >&6
9429 else
9430
9431     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9432     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9433     . ./conftest.sh
9434     rm -f ./conftest.sh
9435     acl_cv_rpath=done
9436
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9439 $as_echo "$acl_cv_rpath" >&6; }
9440   wl="$acl_cv_wl"
9441   libext="$acl_cv_libext"
9442   shlibext="$acl_cv_shlibext"
9443   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9444   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9445   hardcode_direct="$acl_cv_hardcode_direct"
9446   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9447     # Check whether --enable-rpath was given.
9448 if test "${enable_rpath+set}" = set; then :
9449   enableval=$enable_rpath; :
9450 else
9451   enable_rpath=yes
9452 fi
9453
9454
9455
9456
9457
9458
9459
9460
9461     use_additional=yes
9462
9463   acl_save_prefix="$prefix"
9464   prefix="$acl_final_prefix"
9465   acl_save_exec_prefix="$exec_prefix"
9466   exec_prefix="$acl_final_exec_prefix"
9467
9468     eval additional_includedir=\"$includedir\"
9469     eval additional_libdir=\"$libdir\"
9470
9471   exec_prefix="$acl_save_exec_prefix"
9472   prefix="$acl_save_prefix"
9473
9474
9475 # Check whether --with-libiconv-prefix was given.
9476 if test "${with_libiconv_prefix+set}" = set; then :
9477   withval=$with_libiconv_prefix;
9478     if test "X$withval" = "Xno"; then
9479       use_additional=no
9480     else
9481       if test "X$withval" = "X"; then
9482
9483   acl_save_prefix="$prefix"
9484   prefix="$acl_final_prefix"
9485   acl_save_exec_prefix="$exec_prefix"
9486   exec_prefix="$acl_final_exec_prefix"
9487
9488           eval additional_includedir=\"$includedir\"
9489           eval additional_libdir=\"$libdir\"
9490
9491   exec_prefix="$acl_save_exec_prefix"
9492   prefix="$acl_save_prefix"
9493
9494       else
9495         additional_includedir="$withval/include"
9496         additional_libdir="$withval/lib"
9497       fi
9498     fi
9499
9500 fi
9501
9502       LIBICONV=
9503   LTLIBICONV=
9504   INCICONV=
9505   rpathdirs=
9506   ltrpathdirs=
9507   names_already_handled=
9508   names_next_round='iconv '
9509   while test -n "$names_next_round"; do
9510     names_this_round="$names_next_round"
9511     names_next_round=
9512     for name in $names_this_round; do
9513       already_handled=
9514       for n in $names_already_handled; do
9515         if test "$n" = "$name"; then
9516           already_handled=yes
9517           break
9518         fi
9519       done
9520       if test -z "$already_handled"; then
9521         names_already_handled="$names_already_handled $name"
9522                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9523         eval value=\"\$HAVE_LIB$uppername\"
9524         if test -n "$value"; then
9525           if test "$value" = yes; then
9526             eval value=\"\$LIB$uppername\"
9527             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9528             eval value=\"\$LTLIB$uppername\"
9529             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9530           else
9531                                     :
9532           fi
9533         else
9534                               found_dir=
9535           found_la=
9536           found_so=
9537           found_a=
9538           if test $use_additional = yes; then
9539             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9540               found_dir="$additional_libdir"
9541               found_so="$additional_libdir/lib$name.$shlibext"
9542               if test -f "$additional_libdir/lib$name.la"; then
9543                 found_la="$additional_libdir/lib$name.la"
9544               fi
9545             else
9546               if test -f "$additional_libdir/lib$name.$libext"; then
9547                 found_dir="$additional_libdir"
9548                 found_a="$additional_libdir/lib$name.$libext"
9549                 if test -f "$additional_libdir/lib$name.la"; then
9550                   found_la="$additional_libdir/lib$name.la"
9551                 fi
9552               fi
9553             fi
9554           fi
9555           if test "X$found_dir" = "X"; then
9556             for x in $LDFLAGS $LTLIBICONV; do
9557
9558   acl_save_prefix="$prefix"
9559   prefix="$acl_final_prefix"
9560   acl_save_exec_prefix="$exec_prefix"
9561   exec_prefix="$acl_final_exec_prefix"
9562   eval x=\"$x\"
9563   exec_prefix="$acl_save_exec_prefix"
9564   prefix="$acl_save_prefix"
9565
9566               case "$x" in
9567                 -L*)
9568                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9569                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9570                     found_dir="$dir"
9571                     found_so="$dir/lib$name.$shlibext"
9572                     if test -f "$dir/lib$name.la"; then
9573                       found_la="$dir/lib$name.la"
9574                     fi
9575                   else
9576                     if test -f "$dir/lib$name.$libext"; then
9577                       found_dir="$dir"
9578                       found_a="$dir/lib$name.$libext"
9579                       if test -f "$dir/lib$name.la"; then
9580                         found_la="$dir/lib$name.la"
9581                       fi
9582                     fi
9583                   fi
9584                   ;;
9585               esac
9586               if test "X$found_dir" != "X"; then
9587                 break
9588               fi
9589             done
9590           fi
9591           if test "X$found_dir" != "X"; then
9592                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9593             if test "X$found_so" != "X"; then
9594                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9595                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9596               else
9597                                                                                 haveit=
9598                 for x in $ltrpathdirs; do
9599                   if test "X$x" = "X$found_dir"; then
9600                     haveit=yes
9601                     break
9602                   fi
9603                 done
9604                 if test -z "$haveit"; then
9605                   ltrpathdirs="$ltrpathdirs $found_dir"
9606                 fi
9607                                 if test "$hardcode_direct" = yes; then
9608                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9609                 else
9610                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9611                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9612                                                             haveit=
9613                     for x in $rpathdirs; do
9614                       if test "X$x" = "X$found_dir"; then
9615                         haveit=yes
9616                         break
9617                       fi
9618                     done
9619                     if test -z "$haveit"; then
9620                       rpathdirs="$rpathdirs $found_dir"
9621                     fi
9622                   else
9623                                                                                 haveit=
9624                     for x in $LDFLAGS $LIBICONV; do
9625
9626   acl_save_prefix="$prefix"
9627   prefix="$acl_final_prefix"
9628   acl_save_exec_prefix="$exec_prefix"
9629   exec_prefix="$acl_final_exec_prefix"
9630   eval x=\"$x\"
9631   exec_prefix="$acl_save_exec_prefix"
9632   prefix="$acl_save_prefix"
9633
9634                       if test "X$x" = "X-L$found_dir"; then
9635                         haveit=yes
9636                         break
9637                       fi
9638                     done
9639                     if test -z "$haveit"; then
9640                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9641                     fi
9642                     if test "$hardcode_minus_L" != no; then
9643                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9644                     else
9645                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9646                     fi
9647                   fi
9648                 fi
9649               fi
9650             else
9651               if test "X$found_a" != "X"; then
9652                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9653               else
9654                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9655               fi
9656             fi
9657                         additional_includedir=
9658             case "$found_dir" in
9659               */lib | */lib/)
9660                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9661                 additional_includedir="$basedir/include"
9662                 ;;
9663             esac
9664             if test "X$additional_includedir" != "X"; then
9665                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9666                 haveit=
9667                 if test "X$additional_includedir" = "X/usr/local/include"; then
9668                   if test -n "$GCC"; then
9669                     case $host_os in
9670                       linux*) haveit=yes;;
9671                     esac
9672                   fi
9673                 fi
9674                 if test -z "$haveit"; then
9675                   for x in $CPPFLAGS $INCICONV; do
9676
9677   acl_save_prefix="$prefix"
9678   prefix="$acl_final_prefix"
9679   acl_save_exec_prefix="$exec_prefix"
9680   exec_prefix="$acl_final_exec_prefix"
9681   eval x=\"$x\"
9682   exec_prefix="$acl_save_exec_prefix"
9683   prefix="$acl_save_prefix"
9684
9685                     if test "X$x" = "X-I$additional_includedir"; then
9686                       haveit=yes
9687                       break
9688                     fi
9689                   done
9690                   if test -z "$haveit"; then
9691                     if test -d "$additional_includedir"; then
9692                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9693                     fi
9694                   fi
9695                 fi
9696               fi
9697             fi
9698                         if test -n "$found_la"; then
9699                                                         save_libdir="$libdir"
9700               case "$found_la" in
9701                 */* | *\\*) . "$found_la" ;;
9702                 *) . "./$found_la" ;;
9703               esac
9704               libdir="$save_libdir"
9705                             for dep in $dependency_libs; do
9706                 case "$dep" in
9707                   -L*)
9708                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9709                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9710                       haveit=
9711                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9712                         if test -n "$GCC"; then
9713                           case $host_os in
9714                             linux*) haveit=yes;;
9715                           esac
9716                         fi
9717                       fi
9718                       if test -z "$haveit"; then
9719                         haveit=
9720                         for x in $LDFLAGS $LIBICONV; do
9721
9722   acl_save_prefix="$prefix"
9723   prefix="$acl_final_prefix"
9724   acl_save_exec_prefix="$exec_prefix"
9725   exec_prefix="$acl_final_exec_prefix"
9726   eval x=\"$x\"
9727   exec_prefix="$acl_save_exec_prefix"
9728   prefix="$acl_save_prefix"
9729
9730                           if test "X$x" = "X-L$additional_libdir"; then
9731                             haveit=yes
9732                             break
9733                           fi
9734                         done
9735                         if test -z "$haveit"; then
9736                           if test -d "$additional_libdir"; then
9737                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9738                           fi
9739                         fi
9740                         haveit=
9741                         for x in $LDFLAGS $LTLIBICONV; do
9742
9743   acl_save_prefix="$prefix"
9744   prefix="$acl_final_prefix"
9745   acl_save_exec_prefix="$exec_prefix"
9746   exec_prefix="$acl_final_exec_prefix"
9747   eval x=\"$x\"
9748   exec_prefix="$acl_save_exec_prefix"
9749   prefix="$acl_save_prefix"
9750
9751                           if test "X$x" = "X-L$additional_libdir"; then
9752                             haveit=yes
9753                             break
9754                           fi
9755                         done
9756                         if test -z "$haveit"; then
9757                           if test -d "$additional_libdir"; then
9758                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9759                           fi
9760                         fi
9761                       fi
9762                     fi
9763                     ;;
9764                   -R*)
9765                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9766                     if test "$enable_rpath" != no; then
9767                                                                   haveit=
9768                       for x in $rpathdirs; do
9769                         if test "X$x" = "X$dir"; then
9770                           haveit=yes
9771                           break
9772                         fi
9773                       done
9774                       if test -z "$haveit"; then
9775                         rpathdirs="$rpathdirs $dir"
9776                       fi
9777                                                                   haveit=
9778                       for x in $ltrpathdirs; do
9779                         if test "X$x" = "X$dir"; then
9780                           haveit=yes
9781                           break
9782                         fi
9783                       done
9784                       if test -z "$haveit"; then
9785                         ltrpathdirs="$ltrpathdirs $dir"
9786                       fi
9787                     fi
9788                     ;;
9789                   -l*)
9790                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9791                     ;;
9792                   *.la)
9793                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9794                     ;;
9795                   *)
9796                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9797                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9798                     ;;
9799                 esac
9800               done
9801             fi
9802           else
9803                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9804             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9805           fi
9806         fi
9807       fi
9808     done
9809   done
9810   if test "X$rpathdirs" != "X"; then
9811     if test -n "$hardcode_libdir_separator"; then
9812                         alldirs=
9813       for found_dir in $rpathdirs; do
9814         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9815       done
9816             acl_save_libdir="$libdir"
9817       libdir="$alldirs"
9818       eval flag=\"$hardcode_libdir_flag_spec\"
9819       libdir="$acl_save_libdir"
9820       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9821     else
9822             for found_dir in $rpathdirs; do
9823         acl_save_libdir="$libdir"
9824         libdir="$found_dir"
9825         eval flag=\"$hardcode_libdir_flag_spec\"
9826         libdir="$acl_save_libdir"
9827         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9828       done
9829     fi
9830   fi
9831   if test "X$ltrpathdirs" != "X"; then
9832             for found_dir in $ltrpathdirs; do
9833       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9834     done
9835   fi
9836
9837
9838
9839
9840
9841
9842
9843           am_save_CPPFLAGS="$CPPFLAGS"
9844
9845   for element in $INCICONV; do
9846     haveit=
9847     for x in $CPPFLAGS; do
9848
9849   acl_save_prefix="$prefix"
9850   prefix="$acl_final_prefix"
9851   acl_save_exec_prefix="$exec_prefix"
9852   exec_prefix="$acl_final_exec_prefix"
9853   eval x=\"$x\"
9854   exec_prefix="$acl_save_exec_prefix"
9855   prefix="$acl_save_prefix"
9856
9857       if test "X$x" = "X$element"; then
9858         haveit=yes
9859         break
9860       fi
9861     done
9862     if test -z "$haveit"; then
9863       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9864     fi
9865   done
9866
9867
9868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9869 $as_echo_n "checking for iconv... " >&6; }
9870 if test "${am_cv_func_iconv+set}" = set; then :
9871   $as_echo_n "(cached) " >&6
9872 else
9873
9874     am_cv_func_iconv="no, consider installing GNU libiconv"
9875     am_cv_lib_iconv=no
9876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h.  */
9878 #include <stdlib.h>
9879 #include <iconv.h>
9880 int
9881 main ()
9882 {
9883 iconv_t cd = iconv_open("","");
9884        iconv(cd,NULL,NULL,NULL,NULL);
9885        iconv_close(cd);
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_link "$LINENO"; then :
9891   am_cv_func_iconv=yes
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext \
9894     conftest$ac_exeext conftest.$ac_ext
9895     if test "$am_cv_func_iconv" != yes; then
9896       am_save_LIBS="$LIBS"
9897       LIBS="$LIBS $LIBICONV"
9898       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h.  */
9900 #include <stdlib.h>
9901 #include <iconv.h>
9902 int
9903 main ()
9904 {
9905 iconv_t cd = iconv_open("","");
9906          iconv(cd,NULL,NULL,NULL,NULL);
9907          iconv_close(cd);
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"; then :
9913   am_cv_lib_iconv=yes
9914         am_cv_func_iconv=yes
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext \
9917     conftest$ac_exeext conftest.$ac_ext
9918       LIBS="$am_save_LIBS"
9919     fi
9920
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9923 $as_echo "$am_cv_func_iconv" >&6; }
9924   if test "$am_cv_func_iconv" = yes; then
9925
9926 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9927
9928   fi
9929   if test "$am_cv_lib_iconv" = yes; then
9930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9931 $as_echo_n "checking how to link with libiconv... " >&6; }
9932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9933 $as_echo "$LIBICONV" >&6; }
9934   else
9935             CPPFLAGS="$am_save_CPPFLAGS"
9936     LIBICONV=
9937     LTLIBICONV=
9938   fi
9939
9940
9941
9942   if test "$am_cv_func_iconv" = yes; then
9943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9944 $as_echo_n "checking for iconv declaration... " >&6; }
9945     if test "${am_cv_proto_iconv+set}" = set; then :
9946   $as_echo_n "(cached) " >&6
9947 else
9948
9949       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h.  */
9951
9952 #include <stdlib.h>
9953 #include <iconv.h>
9954 extern
9955 #ifdef __cplusplus
9956 "C"
9957 #endif
9958 #if defined(__STDC__) || defined(__cplusplus)
9959 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9960 #else
9961 size_t iconv();
9962 #endif
9963
9964 int
9965 main ()
9966 {
9967
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973   am_cv_proto_iconv_arg1=""
9974 else
9975   am_cv_proto_iconv_arg1="const"
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978       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);"
9979 fi
9980
9981     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9983          }$am_cv_proto_iconv" >&5
9984 $as_echo "${ac_t:-
9985          }$am_cv_proto_iconv" >&6; }
9986
9987 cat >>confdefs.h <<_ACEOF
9988 #define ICONV_CONST $am_cv_proto_iconv_arg1
9989 _ACEOF
9990
9991   fi
9992
9993 # Until we have in-tree GNU iconv:
9994 LIBICONV_DEP=
9995
9996
9997
9998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9999 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10000 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10001   $as_echo_n "(cached) " >&6
10002 else
10003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h.  */
10005 #include <locale.h>
10006 int
10007 main ()
10008 {
10009 return LC_MESSAGES
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 if ac_fn_c_try_link "$LINENO"; then :
10015   am_cv_val_LC_MESSAGES=yes
10016 else
10017   am_cv_val_LC_MESSAGES=no
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext \
10020     conftest$ac_exeext conftest.$ac_ext
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10023 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10024   if test $am_cv_val_LC_MESSAGES = yes; then
10025
10026 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10027
10028   fi
10029
10030
10031
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10033 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10034 if test "${am_cv_langinfo_codeset+set}" = set; then :
10035   $as_echo_n "(cached) " >&6
10036 else
10037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h.  */
10039 #include <langinfo.h>
10040 int
10041 main ()
10042 {
10043 char* cs = nl_langinfo(CODESET);
10044   ;
10045   return 0;
10046 }
10047 _ACEOF
10048 if ac_fn_c_try_link "$LINENO"; then :
10049   am_cv_langinfo_codeset=yes
10050 else
10051   am_cv_langinfo_codeset=no
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext \
10054     conftest$ac_exeext conftest.$ac_ext
10055
10056 fi
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10058 $as_echo "$am_cv_langinfo_codeset" >&6; }
10059   if test $am_cv_langinfo_codeset = yes; then
10060
10061 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10062
10063   fi
10064
10065
10066 # We will need to find libiberty.h and ansidecl.h
10067 saved_CFLAGS="$CFLAGS"
10068 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10069 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10070         strsignal strstr strverscmp \
10071         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10072         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
10073 do
10074   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10076 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10077 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10078   $as_echo_n "(cached) " >&6
10079 else
10080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h.  */
10082 #undef $ac_tr_decl
10083 #define $ac_tr_decl 1
10084
10085 #include "ansidecl.h"
10086 #include "system.h"
10087
10088 int
10089 main ()
10090 {
10091 #ifndef $ac_func
10092 char *(*pfn) = (char *(*)) $ac_func ;
10093 #endif
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 if ac_fn_c_try_compile "$LINENO"; then :
10099   eval "gcc_cv_have_decl_$ac_func=yes"
10100 else
10101   eval "gcc_cv_have_decl_$ac_func=no"
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104 fi
10105
10106 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10108 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10109 #define $ac_tr_decl 1
10110 _ACEOF
10111
10112 else
10113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10115 #define $ac_tr_decl 0
10116 _ACEOF
10117
10118 fi
10119
10120 done
10121
10122
10123 for ac_func in getrlimit setrlimit getrusage
10124 do
10125   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10127 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10128 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10129   $as_echo_n "(cached) " >&6
10130 else
10131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h.  */
10133 #undef $ac_tr_decl
10134 #define $ac_tr_decl 1
10135
10136 #include "ansidecl.h"
10137 #include "system.h"
10138 #ifdef HAVE_SYS_RESOURCE_H
10139 #include <sys/resource.h>
10140 #endif
10141
10142
10143 int
10144 main ()
10145 {
10146 #ifndef $ac_func
10147 char *(*pfn) = (char *(*)) $ac_func ;
10148 #endif
10149   ;
10150   return 0;
10151 }
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154   eval "gcc_cv_have_decl_$ac_func=yes"
10155 else
10156   eval "gcc_cv_have_decl_$ac_func=no"
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 fi
10160
10161 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10163 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10164 #define $ac_tr_decl 1
10165 _ACEOF
10166
10167 else
10168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10170 #define $ac_tr_decl 0
10171 _ACEOF
10172
10173 fi
10174
10175 done
10176
10177
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h.  */
10180
10181 #include "ansidecl.h"
10182 #include "system.h"
10183 #ifdef HAVE_SYS_RESOURCE_H
10184 #include <sys/resource.h>
10185 #endif
10186
10187 int
10188 main ()
10189 {
10190 rlim_t l = 0;
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 if ac_fn_c_try_compile "$LINENO"; then :
10196
10197 else
10198
10199 $as_echo "#define rlim_t long" >>confdefs.h
10200
10201 fi
10202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10203
10204 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10205 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10206 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10207 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10208 for ac_func in ldgetname
10209 do
10210   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10212 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10213 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h.  */
10218 #undef $ac_tr_decl
10219 #define $ac_tr_decl 1
10220
10221 #include "ansidecl.h"
10222 #include "system.h"
10223 #ifdef HAVE_LDFCN_H
10224 #undef FREAD
10225 #undef FWRITE
10226 #include <ldfcn.h>
10227 #endif
10228
10229
10230 int
10231 main ()
10232 {
10233 #ifndef $ac_func
10234 char *(*pfn) = (char *(*)) $ac_func ;
10235 #endif
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 if ac_fn_c_try_compile "$LINENO"; then :
10241   eval "gcc_cv_have_decl_$ac_func=yes"
10242 else
10243   eval "gcc_cv_have_decl_$ac_func=no"
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10246 fi
10247
10248 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10250 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10251 #define $ac_tr_decl 1
10252 _ACEOF
10253
10254 else
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10257 #define $ac_tr_decl 0
10258 _ACEOF
10259
10260 fi
10261
10262 done
10263
10264
10265 for ac_func in times
10266 do
10267   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10269 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10270 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10271   $as_echo_n "(cached) " >&6
10272 else
10273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h.  */
10275 #undef $ac_tr_decl
10276 #define $ac_tr_decl 1
10277
10278 #include "ansidecl.h"
10279 #include "system.h"
10280 #ifdef HAVE_SYS_TIMES_H
10281 #include <sys/times.h>
10282 #endif
10283
10284
10285 int
10286 main ()
10287 {
10288 #ifndef $ac_func
10289 char *(*pfn) = (char *(*)) $ac_func ;
10290 #endif
10291   ;
10292   return 0;
10293 }
10294 _ACEOF
10295 if ac_fn_c_try_compile "$LINENO"; then :
10296   eval "gcc_cv_have_decl_$ac_func=yes"
10297 else
10298   eval "gcc_cv_have_decl_$ac_func=no"
10299 fi
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301 fi
10302
10303 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10306 #define $ac_tr_decl 1
10307 _ACEOF
10308
10309 else
10310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10312 #define $ac_tr_decl 0
10313 _ACEOF
10314
10315 fi
10316
10317 done
10318
10319
10320 for ac_func in sigaltstack
10321 do
10322   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10324 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10325 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10326   $as_echo_n "(cached) " >&6
10327 else
10328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h.  */
10330 #undef $ac_tr_decl
10331 #define $ac_tr_decl 1
10332
10333 #include "ansidecl.h"
10334 #include "system.h"
10335 #include <signal.h>
10336
10337
10338 int
10339 main ()
10340 {
10341 #ifndef $ac_func
10342 char *(*pfn) = (char *(*)) $ac_func ;
10343 #endif
10344   ;
10345   return 0;
10346 }
10347 _ACEOF
10348 if ac_fn_c_try_compile "$LINENO"; then :
10349   eval "gcc_cv_have_decl_$ac_func=yes"
10350 else
10351   eval "gcc_cv_have_decl_$ac_func=no"
10352 fi
10353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10354 fi
10355
10356 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10358 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10359 #define $ac_tr_decl 1
10360 _ACEOF
10361
10362 else
10363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10365 #define $ac_tr_decl 0
10366 _ACEOF
10367
10368 fi
10369
10370 done
10371
10372
10373 # More time-related stuff.
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10375 $as_echo_n "checking for struct tms... " >&6; }
10376 if test "${ac_cv_struct_tms+set}" = set; then :
10377   $as_echo_n "(cached) " >&6
10378 else
10379
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h.  */
10382
10383 #include "ansidecl.h"
10384 #include "system.h"
10385 #ifdef HAVE_SYS_TIMES_H
10386 #include <sys/times.h>
10387 #endif
10388
10389 int
10390 main ()
10391 {
10392 struct tms tms;
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 if ac_fn_c_try_compile "$LINENO"; then :
10398   ac_cv_struct_tms=yes
10399 else
10400   ac_cv_struct_tms=no
10401 fi
10402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10403 fi
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10405 $as_echo "$ac_cv_struct_tms" >&6; }
10406 if test $ac_cv_struct_tms = yes; then
10407
10408 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10409
10410 fi
10411
10412 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10413 # revisit after autoconf 2.50.
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10415 $as_echo_n "checking for clock_t... " >&6; }
10416 if test "${gcc_cv_type_clock_t+set}" = set; then :
10417   $as_echo_n "(cached) " >&6
10418 else
10419
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h.  */
10422
10423 #include "ansidecl.h"
10424 #include "system.h"
10425
10426 int
10427 main ()
10428 {
10429 clock_t x;
10430   ;
10431   return 0;
10432 }
10433 _ACEOF
10434 if ac_fn_c_try_compile "$LINENO"; then :
10435   gcc_cv_type_clock_t=yes
10436 else
10437   gcc_cv_type_clock_t=no
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 fi
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10442 $as_echo "$gcc_cv_type_clock_t" >&6; }
10443 if test $gcc_cv_type_clock_t = yes; then
10444
10445 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10446
10447 fi
10448
10449 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10450 CFLAGS="$saved_CFLAGS"
10451
10452 # Check whether --enable-initfini-array was given.
10453 if test "${enable_initfini_array+set}" = set; then :
10454   enableval=$enable_initfini_array;
10455 else
10456
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10458 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10459 if test "${gcc_cv_initfini_array+set}" = set; then :
10460   $as_echo_n "(cached) " >&6
10461 else
10462     if test "$cross_compiling" = yes; then :
10463   gcc_cv_initfini_array=no
10464 else
10465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h.  */
10467
10468 static int x = -1;
10469 int main (void) { return x; }
10470 int foo (void) { x = 0; }
10471 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10472 _ACEOF
10473 if ac_fn_c_try_run "$LINENO"; then :
10474   gcc_cv_initfini_array=yes
10475 else
10476   gcc_cv_initfini_array=no
10477 fi
10478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10479   conftest.$ac_objext conftest.beam conftest.$ac_ext
10480 fi
10481
10482 fi
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10484 $as_echo "$gcc_cv_initfini_array" >&6; }
10485   enable_initfini_array=$gcc_cv_initfini_array
10486
10487 fi
10488
10489 if test $enable_initfini_array = yes; then
10490
10491 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10492
10493 fi
10494
10495 # mkdir takes a single argument on some systems.
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10497 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10498 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10499   $as_echo_n "(cached) " >&6
10500 else
10501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h.  */
10503
10504 #include <sys/types.h>
10505 #ifdef HAVE_SYS_STAT_H
10506 # include <sys/stat.h>
10507 #endif
10508 #ifdef HAVE_UNISTD_H
10509 # include <unistd.h>
10510 #endif
10511 #ifdef HAVE_DIRECT_H
10512 # include <direct.h>
10513 #endif
10514 int
10515 main ()
10516 {
10517 mkdir ("foo", 0);
10518   ;
10519   return 0;
10520 }
10521 _ACEOF
10522 if ac_fn_c_try_compile "$LINENO"; then :
10523   gcc_cv_mkdir_takes_one_arg=no
10524 else
10525   gcc_cv_mkdir_takes_one_arg=yes
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10528 fi
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10530 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10531 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10532
10533 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10534
10535 fi
10536
10537
10538 # File extensions
10539 manext='.1'
10540 objext='.o'
10541
10542
10543
10544 # With Setjmp/Longjmp based exception handling.
10545 # Check whether --enable-sjlj-exceptions was given.
10546 if test "${enable_sjlj_exceptions+set}" = set; then :
10547   enableval=$enable_sjlj_exceptions; case $target in
10548   *-*-hpux10*)
10549     if test $enableval != yes; then
10550       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10551 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10552       enableval=yes
10553     fi
10554     ;;
10555 esac
10556 force_sjlj_exceptions=yes
10557 else
10558   case $target in
10559   *-*-hpux10*)
10560     force_sjlj_exceptions=yes
10561     enableval=yes
10562     ;;
10563   *)
10564     force_sjlj_exceptions=no
10565     ;;
10566 esac
10567 fi
10568
10569 if test $force_sjlj_exceptions = yes; then
10570   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10571
10572 cat >>confdefs.h <<_ACEOF
10573 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10574 _ACEOF
10575
10576 fi
10577
10578 # For platforms with the unwind ABI which includes an unwind library,
10579 # libunwind, we can choose to use the system libunwind.
10580 # config.gcc also contains tests of with_system_libunwind.
10581
10582
10583 # Check whether --with-system-libunwind was given.
10584 if test "${with_system_libunwind+set}" = set; then :
10585   withval=$with_system_libunwind;
10586 fi
10587
10588   # If system-libunwind was not specifically set, pick a default setting.
10589   if test x$with_system_libunwind = x; then
10590     case ${target} in
10591       ia64-*-hpux*) with_system_libunwind=yes ;;
10592       *) with_system_libunwind=no ;;
10593     esac
10594   fi
10595   # Based on system-libunwind and target, do we have ipinfo?
10596   if  test x$with_system_libunwind = xyes; then
10597     case ${target} in
10598       ia64-*-*) have_unwind_getipinfo=no ;;
10599       *) have_unwind_getipinfo=yes ;;
10600     esac
10601   else
10602     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10603
10604     case ${target} in
10605       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10606       *) have_unwind_getipinfo=yes ;;
10607     esac
10608
10609   fi
10610
10611   if test x$have_unwind_getipinfo = xyes; then
10612
10613 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10614
10615   fi
10616
10617
10618 # --------------------------------------------------------
10619 # Build, host, and target specific configuration fragments
10620 # --------------------------------------------------------
10621
10622 # Collect build-machine-specific information.
10623 . ${srcdir}/config.build
10624
10625 # Collect host-machine-specific information.
10626 . ${srcdir}/config.host
10627
10628 target_gtfiles=
10629
10630 # Collect target-machine-specific information.
10631 . ${srcdir}/config.gcc
10632
10633 extra_objs="${host_extra_objs} ${extra_objs}"
10634 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10635
10636 # Default the target-machine variables that were not explicitly set.
10637 if test x"$tm_file" = x
10638 then tm_file=$cpu_type/$cpu_type.h; fi
10639
10640 if test x"$extra_headers" = x
10641 then extra_headers=; fi
10642
10643 if test x$md_file = x
10644 then md_file=$cpu_type/$cpu_type.md; fi
10645
10646 if test x$out_file = x
10647 then out_file=$cpu_type/$cpu_type.c; fi
10648
10649 if test x"$tmake_file" = x
10650 then tmake_file=$cpu_type/t-$cpu_type
10651 fi
10652
10653 if test x"$dwarf2" = xyes
10654 then tm_file="$tm_file tm-dwarf2.h"
10655 fi
10656
10657 # Say what files are being used for the output code and MD file.
10658 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10659 echo "Using \`$srcdir/config/$md_file' as machine description file."
10660
10661 # If any of the xm_file variables contain nonexistent files, warn
10662 # about them and drop them.
10663
10664 bx=
10665 for x in $build_xm_file; do
10666   if    test -f $srcdir/config/$x
10667   then      bx="$bx $x"
10668   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10669 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10670   fi
10671 done
10672 build_xm_file="$bx"
10673
10674 hx=
10675 for x in $host_xm_file; do
10676   if    test -f $srcdir/config/$x
10677   then      hx="$hx $x"
10678   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10679 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10680   fi
10681 done
10682 host_xm_file="$hx"
10683
10684 tx=
10685 for x in $xm_file; do
10686   if    test -f $srcdir/config/$x
10687   then      tx="$tx $x"
10688   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10689 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10690   fi
10691 done
10692 xm_file="$tx"
10693
10694 count=a
10695 for f in $tm_file; do
10696         count=${count}x
10697 done
10698 if test $count = ax; then
10699         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10700 else
10701         echo "Using the following target machine macro files:"
10702         for f in $tm_file; do
10703                 echo "  $srcdir/config/$f"
10704         done
10705 fi
10706
10707 if test x$need_64bit_hwint = xyes; then
10708
10709 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10710
10711 fi
10712
10713 if test x$use_long_long_for_widest_fast_int = xyes; then
10714
10715 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10716
10717 fi
10718
10719 count=a
10720 for f in $host_xm_file; do
10721         count=${count}x
10722 done
10723 if test $count = a; then
10724         :
10725 elif test $count = ax; then
10726         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10727 else
10728         echo "Using the following host machine macro files:"
10729         for f in $host_xm_file; do
10730                 echo "  $srcdir/config/$f"
10731         done
10732 fi
10733 echo "Using ${out_host_hook_obj} for host machine hooks."
10734
10735 if test "$host_xm_file" != "$build_xm_file"; then
10736         count=a
10737         for f in $build_xm_file; do
10738                 count=${count}x
10739         done
10740         if test $count = a; then
10741                 :
10742         elif test $count = ax; then
10743                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10744         else
10745                 echo "Using the following build machine macro files:"
10746                 for f in $build_xm_file; do
10747                         echo "  $srcdir/config/$f"
10748                 done
10749         fi
10750 fi
10751
10752 case ${host} in
10753   powerpc*-*-darwin*)
10754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10755 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10756 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10757   $as_echo_n "(cached) " >&6
10758 else
10759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h.  */
10761
10762 #include <sys/cdefs.h>
10763 #include <sys/signal.h>
10764 #include <ucontext.h>
10765 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10766
10767 _ACEOF
10768 if ac_fn_c_try_compile "$LINENO"; then :
10769   gcc_cv_mcontext_underscores=no
10770 else
10771   gcc_cv_mcontext_underscores=yes
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 fi
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10776 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10777       if test $gcc_cv_mcontext_underscores = yes; then
10778
10779 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10780
10781       fi
10782     ;;
10783 esac
10784
10785 # ---------
10786 # Threading
10787 # ---------
10788
10789 # Check if a valid thread package
10790 case ${enable_threads} in
10791   "" | no)
10792     # No threads
10793     target_thread_file='single'
10794     ;;
10795   yes)
10796     # default
10797     target_thread_file='single'
10798     ;;
10799   aix | dce | lynx | mipssde | nks | posix | posix95 | rtems | \
10800   single | tpf | vxworks | win32)
10801     target_thread_file=${enable_threads}
10802     ;;
10803   *)
10804     echo "${enable_threads} is an unknown thread package" 1>&2
10805     exit 1
10806     ;;
10807 esac
10808
10809 if test x${thread_file} = x; then
10810   # No thread file set by target-specific clauses in config.gcc,
10811   # so use file chosen by default logic above
10812   thread_file=${target_thread_file}
10813 fi
10814
10815 # Make gthr-default.h if we have a thread file.
10816 gthread_flags=
10817 if test $thread_file != single; then
10818   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10819   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10820     rm -f gthr-default.h-t
10821   else
10822     mv -f gthr-default.h-t gthr-default.h
10823   fi
10824   gthread_flags=-DHAVE_GTHR_DEFAULT
10825 fi
10826
10827
10828 # --------
10829 # UNSORTED
10830 # --------
10831
10832 use_cxa_atexit=no
10833 if test x$enable___cxa_atexit = xyes || \
10834    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10835   if test x$host = x$target; then
10836     case $host in
10837       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10838       # keyed to flag_use_cxa_atexit
10839       *-*-mingw32*)
10840         use_cxa_atexit=yes
10841         ;;
10842       *)
10843         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10844 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10845   use_cxa_atexit=yes
10846 else
10847   echo "__cxa_atexit can't be enabled on this target"
10848 fi
10849
10850         ;;
10851     esac
10852   else
10853     # We can't check for __cxa_atexit when building a cross, so assume
10854     # it is available
10855     use_cxa_atexit=yes
10856   fi
10857   if test x$use_cxa_atexit = xyes; then
10858
10859 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10860
10861   fi
10862 fi
10863
10864 # Look for a file containing extra machine modes.
10865 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10866   extra_modes_file='$(srcdir)'/config/${extra_modes}
10867
10868
10869 cat >>confdefs.h <<_ACEOF
10870 #define EXTRA_MODES_FILE "config/$extra_modes"
10871 _ACEOF
10872
10873 fi
10874
10875 # Convert extra_options into a form suitable for Makefile use.
10876 extra_opt_files=
10877 all_opt_files=
10878 for f in $extra_options; do
10879   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10880   all_opt_files="$all_opt_files $srcdir/config/$f"
10881 done
10882
10883
10884 # auto-host.h is the file containing items generated by autoconf and is
10885 # the first file included by config.h.
10886 # If host=build, it is correct to have bconfig include auto-host.h
10887 # as well.  If host!=build, we are in error and need to do more
10888 # work to find out the build config parameters.
10889 if test x$host = x$build
10890 then
10891         build_auto=auto-host.h
10892 else
10893         # We create a subdir, then run autoconf in the subdir.
10894         # To prevent recursion we set host and build for the new
10895         # invocation of configure to the build for this invocation
10896         # of configure.
10897         tempdir=build.$$
10898         rm -rf $tempdir
10899         mkdir $tempdir
10900         cd $tempdir
10901         case ${srcdir} in
10902         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10903         *) realsrcdir=../${srcdir};;
10904         esac
10905         saved_CFLAGS="${CFLAGS}"
10906         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10907         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10908         ${realsrcdir}/configure \
10909                 --enable-languages=${enable_languages-all} \
10910                 --target=$target_alias --host=$build_alias --build=$build_alias
10911         CFLAGS="${saved_CFLAGS}"
10912
10913         # We just finished tests for the build machine, so rename
10914         # the file auto-build.h in the gcc directory.
10915         mv auto-host.h ../auto-build.h
10916         cd ..
10917         rm -rf $tempdir
10918         build_auto=auto-build.h
10919 fi
10920
10921
10922 tm_file="${tm_file} defaults.h"
10923 tm_p_file="${tm_p_file} tm-preds.h"
10924 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10925 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10926 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10927 # put this back in temporarily.
10928 xm_file="auto-host.h ansidecl.h ${xm_file}"
10929
10930 # --------
10931 # UNSORTED
10932 # --------
10933
10934 # Compile in configure arguments.
10935 if test -f configargs.h ; then
10936         # Being re-configured.
10937         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10938         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10939 else
10940         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10941 fi
10942
10943 # Double all backslashes and backslash all quotes to turn
10944 # gcc_config_arguments into a C string.
10945 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10946 $gcc_config_arguments
10947 EOF
10948 gcc_config_arguments_str=`cat conftest.out`
10949 rm -f conftest.out
10950
10951 cat > configargs.h <<EOF
10952 /* Generated automatically. */
10953 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10954 static const char thread_model[] = "$thread_file";
10955
10956 static const struct {
10957   const char *name, *value;
10958 } configure_default_options[] = $configure_default_options;
10959 EOF
10960
10961 gcc_BASEVER=`cat $srcdir/BASE-VER`
10962 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10963 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10964 if test -f $srcdir/REVISION ; then
10965         gcc_REVISION=`cat $srcdir/REVISION`
10966 else
10967         gcc_REVISION=""
10968 fi
10969 cat > plugin-version.h <<EOF
10970 #include "configargs.h"
10971
10972 static char basever[] = "$gcc_BASEVER";
10973 static char datestamp[] = "$gcc_DATESTAMP";
10974 static char devphase[] = "$gcc_DEVPHASE";
10975 static char revision[] = "$gcc_REVISION";
10976
10977 /* FIXME plugins: We should make the version information more precise.
10978    One way to do is to add a checksum. */
10979
10980 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10981                                                 devphase, revision,
10982                                                 configuration_arguments};
10983 EOF
10984
10985 # Internationalization
10986 # If we haven't got the data from the intl directory,
10987 # assume NLS is disabled.
10988 USE_NLS=no
10989 LIBINTL=
10990 LIBINTL_DEP=
10991 INCINTL=
10992 XGETTEXT=
10993 GMSGFMT=
10994 POSUB=
10995
10996 if test -f  ../intl/config.intl; then
10997   .  ../intl/config.intl
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11000 $as_echo_n "checking whether NLS is requested... " >&6; }
11001 if test x"$USE_NLS" != xyes; then
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003 $as_echo "no" >&6; }
11004 else
11005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11006 $as_echo "yes" >&6; }
11007
11008 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11009
11010
11011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11012 $as_echo_n "checking for catalogs to be installed... " >&6; }
11013   # Look for .po and .gmo files in the source directory.
11014   CATALOGS=
11015   XLINGUAS=
11016   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11017     # If there aren't any .gmo files the shell will give us the
11018     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11019     # weeded out.
11020     case "$cat" in *\**)
11021       continue;;
11022     esac
11023     # The quadruple backslash is collapsed to a double backslash
11024     # by the backticks, then collapsed again by the double quotes,
11025     # leaving us with one backslash in the sed expression (right
11026     # before the dot that mustn't act as a wildcard).
11027     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11028     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11029     # The user is allowed to set LINGUAS to a list of languages to
11030     # install catalogs for.  If it's empty that means "all of them."
11031     if test "x$LINGUAS" = x; then
11032       CATALOGS="$CATALOGS $cat"
11033       XLINGUAS="$XLINGUAS $lang"
11034     else
11035       case "$LINGUAS" in *$lang*)
11036         CATALOGS="$CATALOGS $cat"
11037         XLINGUAS="$XLINGUAS $lang"
11038         ;;
11039       esac
11040     fi
11041   done
11042   LINGUAS="$XLINGUAS"
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11044 $as_echo "$LINGUAS" >&6; }
11045
11046
11047     DATADIRNAME=share
11048
11049   INSTOBJEXT=.mo
11050
11051   GENCAT=gencat
11052
11053   CATOBJEXT=.gmo
11054
11055 fi
11056
11057 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11058 # -liconv on the link line twice.
11059 case "$LIBINTL" in *$LIBICONV*)
11060         LIBICONV= ;;
11061 esac
11062
11063 # Check whether --enable-secureplt was given.
11064 if test "${enable_secureplt+set}" = set; then :
11065   enableval=$enable_secureplt;
11066 fi
11067
11068
11069 # Check whether --enable-leading-mingw64-underscores was given.
11070 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11071   enableval=$enable_leading_mingw64_underscores;
11072 fi
11073
11074 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11075
11076 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11077
11078 fi
11079
11080 # Check whether --enable-cld was given.
11081 if test "${enable_cld+set}" = set; then :
11082   enableval=$enable_cld;
11083 else
11084   enable_cld=no
11085 fi
11086
11087
11088 # Check whether --enable-frame-pointer was given.
11089 if test "${enable_frame_pointer+set}" = set; then :
11090   enableval=$enable_frame_pointer;
11091 else
11092
11093 case $target_os in
11094 linux* | darwin[8912]*)
11095   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11096   # DWARF2.
11097   enable_frame_pointer=no
11098   ;;
11099 *)
11100   enable_frame_pointer=yes
11101   ;;
11102 esac
11103
11104 fi
11105
11106
11107 # Windows32 Registry support for specifying GCC installation paths.
11108 # Check whether --enable-win32-registry was given.
11109 if test "${enable_win32_registry+set}" = set; then :
11110   enableval=$enable_win32_registry;
11111 fi
11112
11113
11114 case $host_os in
11115   win32 | pe | cygwin* | mingw32* | uwin*)
11116     if test "x$enable_win32_registry" != xno; then
11117       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11118 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11119 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11120   $as_echo_n "(cached) " >&6
11121 else
11122   ac_func_search_save_LIBS=$LIBS
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h.  */
11125
11126 /* Override any GCC internal prototype to avoid an error.
11127    Use char because int might match the return type of a GCC
11128    builtin and then its argument prototype would still apply.  */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char RegOpenKeyExA ();
11133 int
11134 main ()
11135 {
11136 return RegOpenKeyExA ();
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 for ac_lib in '' advapi32; do
11142   if test -z "$ac_lib"; then
11143     ac_res="none required"
11144   else
11145     ac_res=-l$ac_lib
11146     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11147   fi
11148   if ac_fn_c_try_link "$LINENO"; then :
11149   ac_cv_search_RegOpenKeyExA=$ac_res
11150 fi
11151 rm -f core conftest.err conftest.$ac_objext \
11152     conftest$ac_exeext
11153   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11154   break
11155 fi
11156 done
11157 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11158
11159 else
11160   ac_cv_search_RegOpenKeyExA=no
11161 fi
11162 rm conftest.$ac_ext
11163 LIBS=$ac_func_search_save_LIBS
11164 fi
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11166 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11167 ac_res=$ac_cv_search_RegOpenKeyExA
11168 if test "$ac_res" != no; then :
11169   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11170
11171 else
11172   enable_win32_registry=no
11173 fi
11174
11175     fi
11176
11177     if test "x$enable_win32_registry" != xno; then
11178
11179 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11180
11181
11182       if test "x$enable_win32_registry" != xyes \
11183          && test "x$enable_win32_registry" != x; then
11184
11185 cat >>confdefs.h <<_ACEOF
11186 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11187 _ACEOF
11188
11189       fi
11190     fi
11191   ;;
11192 esac
11193
11194 # Get an absolute path to the GCC top-level source directory
11195 holddir=`${PWDCMD-pwd}`
11196 cd $srcdir
11197 topdir=`${PWDCMD-pwd}`
11198 cd $holddir
11199
11200 # Conditionalize the makefile for this host machine.
11201 xmake_file=
11202 for f in ${host_xmake_file}
11203 do
11204         if test -f ${srcdir}/config/$f
11205         then
11206                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11207         fi
11208 done
11209
11210 # Conditionalize the makefile for this target machine.
11211 tmake_file_=
11212 for f in ${tmake_file}
11213 do
11214         if test -f ${srcdir}/config/$f
11215         then
11216                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11217         fi
11218 done
11219 tmake_file="${tmake_file_}"
11220
11221 out_object_file=`basename $out_file .c`.o
11222 common_out_object_file=`basename $common_out_file .c`.o
11223
11224 tm_file_list="options.h"
11225 tm_include_list="options.h insn-constants.h"
11226 for f in $tm_file; do
11227   case $f in
11228     ./* )
11229        f=`echo $f | sed 's/^..//'`
11230        tm_file_list="${tm_file_list} $f"
11231        tm_include_list="${tm_include_list} $f"
11232        ;;
11233     defaults.h )
11234        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11235        tm_include_list="${tm_include_list} $f"
11236        ;;
11237     * )
11238        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11239        tm_include_list="${tm_include_list} config/$f"
11240        ;;
11241   esac
11242 done
11243
11244 libgcc_tm_file_list=
11245 libgcc_tm_include_list=
11246 for f in $libgcc_tm_file; do
11247   libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11248   libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11249 done
11250
11251 tm_p_file_list=
11252 tm_p_include_list=
11253 for f in $tm_p_file; do
11254   case $f in
11255     tm-preds.h )
11256        tm_p_file_list="${tm_p_file_list} $f"
11257        tm_p_include_list="${tm_p_include_list} $f"
11258        ;;
11259     * )
11260        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11261        tm_p_include_list="${tm_p_include_list} config/$f"
11262   esac
11263 done
11264
11265 xm_file_list=
11266 xm_include_list=
11267 for f in $xm_file; do
11268   case $f in
11269     ansidecl.h )
11270        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11271        xm_include_list="${xm_include_list} $f"
11272        ;;
11273     auto-host.h )
11274        xm_file_list="${xm_file_list} $f"
11275        xm_include_list="${xm_include_list} $f"
11276        ;;
11277     * )
11278        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11279        xm_include_list="${xm_include_list} config/$f"
11280        ;;
11281   esac
11282 done
11283
11284 host_xm_file_list=
11285 host_xm_include_list=
11286 for f in $host_xm_file; do
11287   case $f in
11288     ansidecl.h )
11289        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11290        host_xm_include_list="${host_xm_include_list} $f"
11291        ;;
11292     auto-host.h )
11293        host_xm_file_list="${host_xm_file_list} $f"
11294        host_xm_include_list="${host_xm_include_list} $f"
11295        ;;
11296     * )
11297        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11298        host_xm_include_list="${host_xm_include_list} config/$f"
11299        ;;
11300   esac
11301 done
11302
11303 build_xm_file_list=
11304 for f in $build_xm_file; do
11305   case $f in
11306     ansidecl.h )
11307        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11308        build_xm_include_list="${build_xm_include_list} $f"
11309        ;;
11310     auto-build.h | auto-host.h )
11311        build_xm_file_list="${build_xm_file_list} $f"
11312        build_xm_include_list="${build_xm_include_list} $f"
11313        ;;
11314     * )
11315        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11316        build_xm_include_list="${build_xm_include_list} config/$f"
11317        ;;
11318   esac
11319 done
11320
11321 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11322 # cross-compiler which does not use the native headers and libraries.
11323 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11324 CROSS=
11325 ALL=all.internal
11326 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11327
11328 if test "x$with_build_sysroot" != x; then
11329   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11330 else
11331   # This value is used, even on a native system, because
11332   # CROSS_SYSTEM_HEADER_DIR is just
11333   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11334   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11335 fi
11336
11337 if test x$host != x$target
11338 then
11339         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11340         ALL=all.cross
11341         SYSTEM_HEADER_DIR=$build_system_header_dir
11342         case "$host","$target" in
11343         # Darwin crosses can use the host system's libraries and headers,
11344         # because of the fat library support.  Of course, it must be the
11345         # same version of Darwin on both sides.  Allow the user to
11346         # just say --target=foo-darwin without a version number to mean
11347         # "the version on this system".
11348             *-*-darwin*,*-*-darwin*)
11349                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11350                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11351                 if test $hostos = $targetos -o $targetos = darwin ; then
11352                     CROSS=
11353                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11354                     with_headers=yes
11355                 fi
11356                 ;;
11357
11358             i?86-*-*,x86_64-*-* \
11359             | powerpc*-*-*,powerpc64*-*-*)
11360                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11361         esac
11362
11363         case $target in
11364                 *-*-mingw*)
11365                         if test "x$with_headers" = x; then
11366                                 with_headers=yes
11367                         fi
11368                         ;;
11369                 *)
11370                         ;;
11371         esac
11372 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11373         SYSTEM_HEADER_DIR=$build_system_header_dir
11374 fi
11375
11376 # If this is a cross-compiler that does not
11377 # have its own set of headers then define
11378 # inhibit_libc
11379
11380 # If this is using newlib, without having the headers available now,
11381 # then define inhibit_libc in LIBGCC2_CFLAGS.
11382 # This prevents libgcc2 from containing any code which requires libc
11383 # support.
11384 : ${inhibit_libc=false}
11385 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11386        test x$with_newlib = xyes ; } &&
11387      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11388        inhibit_libc=true
11389 fi
11390
11391
11392 # When building gcc with a cross-compiler, we need to adjust things so
11393 # that the generator programs are still built with the native compiler.
11394 # Also, we cannot run fixincludes.
11395
11396 # These are the normal (build=host) settings:
11397 CC_FOR_BUILD='$(CC)'
11398 BUILD_CFLAGS='$(ALL_CFLAGS)'
11399 BUILD_LDFLAGS='$(LDFLAGS)'
11400 STMP_FIXINC=stmp-fixinc
11401
11402 # And these apply if build != host, or we are generating coverage data
11403 if test x$build != x$host || test "x$coverage_flags" != x
11404 then
11405     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11406     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11407 fi
11408
11409 # Expand extra_headers to include complete path.
11410 # This substitutes for lots of t-* files.
11411 extra_headers_list=
11412 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11413 for file in ${extra_headers} ; do
11414   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11415 done
11416
11417 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11418 if test x"$use_gcc_tgmath" = xyes
11419 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11420 fi
11421
11422 # Define collect2 in Makefile.
11423 case $host_can_use_collect2 in
11424   no) collect2= ;;
11425   *) collect2='collect2$(exeext)' ;;
11426 esac
11427
11428
11429 # Add a definition of USE_COLLECT2 if system wants one.
11430 case $use_collect2 in
11431   no) use_collect2= ;;
11432   "") ;;
11433   *)
11434     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11435     xm_defines="${xm_defines} USE_COLLECT2"
11436     case $host_can_use_collect2 in
11437       no)
11438         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11439         ;;
11440     esac
11441     ;;
11442 esac
11443
11444
11445 cat >>confdefs.h <<_ACEOF
11446 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11447 _ACEOF
11448
11449
11450 # ---------------------------
11451 # Assembler & linker features
11452 # ---------------------------
11453
11454 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11455 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11456 # However when ld-new is first executed from the build tree, libtool will
11457 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11458 # to the build tree.  While doing this we need to use the previous-stage
11459 # linker, or we have an infinite loop.  The presence of a shell script as
11460 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11461 # the gcc/collect-ld script.  So we need to know how libtool works, or
11462 # exec-tool will fail.
11463
11464
11465 case `pwd` in
11466   *\ * | *\     *)
11467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11468 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11469 esac
11470
11471
11472
11473 macro_version='2.2.7a'
11474 macro_revision='1.3134'
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488 ltmain="$ac_aux_dir/ltmain.sh"
11489
11490 # Backslashify metacharacters that are still active within
11491 # double-quoted strings.
11492 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11493
11494 # Same as above, but do not quote variable references.
11495 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11496
11497 # Sed substitution to delay expansion of an escaped shell variable in a
11498 # double_quote_subst'ed string.
11499 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11500
11501 # Sed substitution to delay expansion of an escaped single quote.
11502 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11503
11504 # Sed substitution to avoid accidental globbing in evaled expressions
11505 no_glob_subst='s/\*/\\\*/g'
11506
11507 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11508 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11509 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11510
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11512 $as_echo_n "checking how to print strings... " >&6; }
11513 # Test print first, because it will be a builtin if present.
11514 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11515    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11516   ECHO='print -r --'
11517 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11518   ECHO='printf %s\n'
11519 else
11520   # Use this function as a fallback that always works.
11521   func_fallback_echo ()
11522   {
11523     eval 'cat <<_LTECHO_EOF
11524 $1
11525 _LTECHO_EOF'
11526   }
11527   ECHO='func_fallback_echo'
11528 fi
11529
11530 # func_echo_all arg...
11531 # Invoke $ECHO with all args, space-separated.
11532 func_echo_all ()
11533 {
11534     $ECHO ""
11535 }
11536
11537 case "$ECHO" in
11538   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11539 $as_echo "printf" >&6; } ;;
11540   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11541 $as_echo "print -r" >&6; } ;;
11542   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11543 $as_echo "cat" >&6; } ;;
11544 esac
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11560 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11561 if test "${ac_cv_path_SED+set}" = set; then :
11562   $as_echo_n "(cached) " >&6
11563 else
11564             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11565      for ac_i in 1 2 3 4 5 6 7; do
11566        ac_script="$ac_script$as_nl$ac_script"
11567      done
11568      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11569      { ac_script=; unset ac_script;}
11570      if test -z "$SED"; then
11571   ac_path_SED_found=false
11572   # Loop through the user's path and test for each of PROGNAME-LIST
11573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11575 do
11576   IFS=$as_save_IFS
11577   test -z "$as_dir" && as_dir=.
11578     for ac_prog in sed gsed; do
11579     for ac_exec_ext in '' $ac_executable_extensions; do
11580       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11581       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11582 # Check for GNU ac_path_SED and select it if it is found.
11583   # Check for GNU $ac_path_SED
11584 case `"$ac_path_SED" --version 2>&1` in
11585 *GNU*)
11586   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11587 *)
11588   ac_count=0
11589   $as_echo_n 0123456789 >"conftest.in"
11590   while :
11591   do
11592     cat "conftest.in" "conftest.in" >"conftest.tmp"
11593     mv "conftest.tmp" "conftest.in"
11594     cp "conftest.in" "conftest.nl"
11595     $as_echo '' >> "conftest.nl"
11596     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11597     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11598     as_fn_arith $ac_count + 1 && ac_count=$as_val
11599     if test $ac_count -gt ${ac_path_SED_max-0}; then
11600       # Best one so far, save it but keep looking for a better one
11601       ac_cv_path_SED="$ac_path_SED"
11602       ac_path_SED_max=$ac_count
11603     fi
11604     # 10*(2^10) chars as input seems more than enough
11605     test $ac_count -gt 10 && break
11606   done
11607   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11608 esac
11609
11610       $ac_path_SED_found && break 3
11611     done
11612   done
11613   done
11614 IFS=$as_save_IFS
11615   if test -z "$ac_cv_path_SED"; then
11616     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11617   fi
11618 else
11619   ac_cv_path_SED=$SED
11620 fi
11621
11622 fi
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11624 $as_echo "$ac_cv_path_SED" >&6; }
11625  SED="$ac_cv_path_SED"
11626   rm -f conftest.sed
11627
11628 test -z "$SED" && SED=sed
11629 Xsed="$SED -e 1s/^X//"
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11642 $as_echo_n "checking for fgrep... " >&6; }
11643 if test "${ac_cv_path_FGREP+set}" = set; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11647    then ac_cv_path_FGREP="$GREP -F"
11648    else
11649      if test -z "$FGREP"; then
11650   ac_path_FGREP_found=false
11651   # Loop through the user's path and test for each of PROGNAME-LIST
11652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11654 do
11655   IFS=$as_save_IFS
11656   test -z "$as_dir" && as_dir=.
11657     for ac_prog in fgrep; do
11658     for ac_exec_ext in '' $ac_executable_extensions; do
11659       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11660       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11661 # Check for GNU ac_path_FGREP and select it if it is found.
11662   # Check for GNU $ac_path_FGREP
11663 case `"$ac_path_FGREP" --version 2>&1` in
11664 *GNU*)
11665   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11666 *)
11667   ac_count=0
11668   $as_echo_n 0123456789 >"conftest.in"
11669   while :
11670   do
11671     cat "conftest.in" "conftest.in" >"conftest.tmp"
11672     mv "conftest.tmp" "conftest.in"
11673     cp "conftest.in" "conftest.nl"
11674     $as_echo 'FGREP' >> "conftest.nl"
11675     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11676     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11677     as_fn_arith $ac_count + 1 && ac_count=$as_val
11678     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11679       # Best one so far, save it but keep looking for a better one
11680       ac_cv_path_FGREP="$ac_path_FGREP"
11681       ac_path_FGREP_max=$ac_count
11682     fi
11683     # 10*(2^10) chars as input seems more than enough
11684     test $ac_count -gt 10 && break
11685   done
11686   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11687 esac
11688
11689       $ac_path_FGREP_found && break 3
11690     done
11691   done
11692   done
11693 IFS=$as_save_IFS
11694   if test -z "$ac_cv_path_FGREP"; then
11695     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11696   fi
11697 else
11698   ac_cv_path_FGREP=$FGREP
11699 fi
11700
11701    fi
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11704 $as_echo "$ac_cv_path_FGREP" >&6; }
11705  FGREP="$ac_cv_path_FGREP"
11706
11707
11708 test -z "$GREP" && GREP=grep
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728 # Check whether --with-gnu-ld was given.
11729 if test "${with_gnu_ld+set}" = set; then :
11730   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11731 else
11732   with_gnu_ld=no
11733 fi
11734
11735 ac_prog=ld
11736 if test "$GCC" = yes; then
11737   # Check if gcc -print-prog-name=ld gives a path.
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11739 $as_echo_n "checking for ld used by $CC... " >&6; }
11740   case $host in
11741   *-*-mingw*)
11742     # gcc leaves a trailing carriage return which upsets mingw
11743     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11744   *)
11745     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11746   esac
11747   case $ac_prog in
11748     # Accept absolute paths.
11749     [\\/]* | ?:[\\/]*)
11750       re_direlt='/[^/][^/]*/\.\./'
11751       # Canonicalize the pathname of ld
11752       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11753       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11754         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11755       done
11756       test -z "$LD" && LD="$ac_prog"
11757       ;;
11758   "")
11759     # If it fails, then pretend we aren't using GCC.
11760     ac_prog=ld
11761     ;;
11762   *)
11763     # If it is relative, then search for the first ld in PATH.
11764     with_gnu_ld=unknown
11765     ;;
11766   esac
11767 elif test "$with_gnu_ld" = yes; then
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11769 $as_echo_n "checking for GNU ld... " >&6; }
11770 else
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11772 $as_echo_n "checking for non-GNU ld... " >&6; }
11773 fi
11774 if test "${lt_cv_path_LD+set}" = set; then :
11775   $as_echo_n "(cached) " >&6
11776 else
11777   if test -z "$LD"; then
11778   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11779   for ac_dir in $PATH; do
11780     IFS="$lt_save_ifs"
11781     test -z "$ac_dir" && ac_dir=.
11782     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11783       lt_cv_path_LD="$ac_dir/$ac_prog"
11784       # Check to see if the program is GNU ld.  I'd rather use --version,
11785       # but apparently some variants of GNU ld only accept -v.
11786       # Break only if it was the GNU/non-GNU ld that we prefer.
11787       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11788       *GNU* | *'with BFD'*)
11789         test "$with_gnu_ld" != no && break
11790         ;;
11791       *)
11792         test "$with_gnu_ld" != yes && break
11793         ;;
11794       esac
11795     fi
11796   done
11797   IFS="$lt_save_ifs"
11798 else
11799   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11800 fi
11801 fi
11802
11803 LD="$lt_cv_path_LD"
11804 if test -n "$LD"; then
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11806 $as_echo "$LD" >&6; }
11807 else
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 fi
11811 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11813 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11814 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11815   $as_echo_n "(cached) " >&6
11816 else
11817   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11818 case `$LD -v 2>&1 </dev/null` in
11819 *GNU* | *'with BFD'*)
11820   lt_cv_prog_gnu_ld=yes
11821   ;;
11822 *)
11823   lt_cv_prog_gnu_ld=no
11824   ;;
11825 esac
11826 fi
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11828 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11829 with_gnu_ld=$lt_cv_prog_gnu_ld
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11840 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11841 if test "${lt_cv_path_NM+set}" = set; then :
11842   $as_echo_n "(cached) " >&6
11843 else
11844   if test -n "$NM"; then
11845   # Let the user override the test.
11846   lt_cv_path_NM="$NM"
11847 else
11848   lt_nm_to_check="${ac_tool_prefix}nm"
11849   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11850     lt_nm_to_check="$lt_nm_to_check nm"
11851   fi
11852   for lt_tmp_nm in $lt_nm_to_check; do
11853     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11854     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11855       IFS="$lt_save_ifs"
11856       test -z "$ac_dir" && ac_dir=.
11857       tmp_nm="$ac_dir/$lt_tmp_nm"
11858       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11859         # Check to see if the nm accepts a BSD-compat flag.
11860         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11861         #   nm: unknown option "B" ignored
11862         # Tru64's nm complains that /dev/null is an invalid object file
11863         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11864         */dev/null* | *'Invalid file or object type'*)
11865           lt_cv_path_NM="$tmp_nm -B"
11866           break
11867           ;;
11868         *)
11869           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11870           */dev/null*)
11871             lt_cv_path_NM="$tmp_nm -p"
11872             break
11873             ;;
11874           *)
11875             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11876             continue # so that we can try to find one that supports BSD flags
11877             ;;
11878           esac
11879           ;;
11880         esac
11881       fi
11882     done
11883     IFS="$lt_save_ifs"
11884   done
11885   : ${lt_cv_path_NM=no}
11886 fi
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11889 $as_echo "$lt_cv_path_NM" >&6; }
11890 if test "$lt_cv_path_NM" != "no"; then
11891   NM="$lt_cv_path_NM"
11892 else
11893   # Didn't find any BSD compatible name lister, look for dumpbin.
11894   if test -n "$DUMPBIN"; then :
11895     # Let the user override the test.
11896   else
11897     if test -n "$ac_tool_prefix"; then
11898   for ac_prog in dumpbin "link -dump"
11899   do
11900     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11905   $as_echo_n "(cached) " >&6
11906 else
11907   if test -n "$DUMPBIN"; then
11908   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11909 else
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11912 do
11913   IFS=$as_save_IFS
11914   test -z "$as_dir" && as_dir=.
11915     for ac_exec_ext in '' $ac_executable_extensions; do
11916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919     break 2
11920   fi
11921 done
11922   done
11923 IFS=$as_save_IFS
11924
11925 fi
11926 fi
11927 DUMPBIN=$ac_cv_prog_DUMPBIN
11928 if test -n "$DUMPBIN"; then
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11930 $as_echo "$DUMPBIN" >&6; }
11931 else
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934 fi
11935
11936
11937     test -n "$DUMPBIN" && break
11938   done
11939 fi
11940 if test -z "$DUMPBIN"; then
11941   ac_ct_DUMPBIN=$DUMPBIN
11942   for ac_prog in dumpbin "link -dump"
11943 do
11944   # Extract the first word of "$ac_prog", so it can be a program name with args.
11945 set dummy $ac_prog; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947 $as_echo_n "checking for $ac_word... " >&6; }
11948 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   if test -n "$ac_ct_DUMPBIN"; then
11952   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11953 else
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11956 do
11957   IFS=$as_save_IFS
11958   test -z "$as_dir" && as_dir=.
11959     for ac_exec_ext in '' $ac_executable_extensions; do
11960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11961     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963     break 2
11964   fi
11965 done
11966   done
11967 IFS=$as_save_IFS
11968
11969 fi
11970 fi
11971 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11972 if test -n "$ac_ct_DUMPBIN"; then
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11974 $as_echo "$ac_ct_DUMPBIN" >&6; }
11975 else
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11978 fi
11979
11980
11981   test -n "$ac_ct_DUMPBIN" && break
11982 done
11983
11984   if test "x$ac_ct_DUMPBIN" = x; then
11985     DUMPBIN=":"
11986   else
11987     case $cross_compiling:$ac_tool_warned in
11988 yes:)
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11991 ac_tool_warned=yes ;;
11992 esac
11993     DUMPBIN=$ac_ct_DUMPBIN
11994   fi
11995 fi
11996
11997     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11998     *COFF*)
11999       DUMPBIN="$DUMPBIN -symbols"
12000       ;;
12001     *)
12002       DUMPBIN=:
12003       ;;
12004     esac
12005   fi
12006
12007   if test "$DUMPBIN" != ":"; then
12008     NM="$DUMPBIN"
12009   fi
12010 fi
12011 test -z "$NM" && NM=nm
12012
12013
12014
12015
12016
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12019 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12020 if test "${lt_cv_nm_interface+set}" = set; then :
12021   $as_echo_n "(cached) " >&6
12022 else
12023   lt_cv_nm_interface="BSD nm"
12024   echo "int some_variable = 0;" > conftest.$ac_ext
12025   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12026   (eval "$ac_compile" 2>conftest.err)
12027   cat conftest.err >&5
12028   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12029   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12030   cat conftest.err >&5
12031   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12032   cat conftest.out >&5
12033   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12034     lt_cv_nm_interface="MS dumpbin"
12035   fi
12036   rm -f conftest*
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12039 $as_echo "$lt_cv_nm_interface" >&6; }
12040
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12042 $as_echo_n "checking whether ln -s works... " >&6; }
12043 LN_S=$as_ln_s
12044 if test "$LN_S" = "ln -s"; then
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12046 $as_echo "yes" >&6; }
12047 else
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12049 $as_echo "no, using $LN_S" >&6; }
12050 fi
12051
12052 # find the maximum length of command line arguments
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12054 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12055 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12056   $as_echo_n "(cached) " >&6
12057 else
12058     i=0
12059   teststring="ABCD"
12060
12061   case $build_os in
12062   msdosdjgpp*)
12063     # On DJGPP, this test can blow up pretty badly due to problems in libc
12064     # (any single argument exceeding 2000 bytes causes a buffer overrun
12065     # during glob expansion).  Even if it were fixed, the result of this
12066     # check would be larger than it should be.
12067     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12068     ;;
12069
12070   gnu*)
12071     # Under GNU Hurd, this test is not required because there is
12072     # no limit to the length of command line arguments.
12073     # Libtool will interpret -1 as no limit whatsoever
12074     lt_cv_sys_max_cmd_len=-1;
12075     ;;
12076
12077   cygwin* | mingw* | cegcc*)
12078     # On Win9x/ME, this test blows up -- it succeeds, but takes
12079     # about 5 minutes as the teststring grows exponentially.
12080     # Worse, since 9x/ME are not pre-emptively multitasking,
12081     # you end up with a "frozen" computer, even though with patience
12082     # the test eventually succeeds (with a max line length of 256k).
12083     # Instead, let's just punt: use the minimum linelength reported by
12084     # all of the supported platforms: 8192 (on NT/2K/XP).
12085     lt_cv_sys_max_cmd_len=8192;
12086     ;;
12087
12088   mint*)
12089     # On MiNT this can take a long time and run out of memory.
12090     lt_cv_sys_max_cmd_len=8192;
12091     ;;
12092
12093   amigaos*)
12094     # On AmigaOS with pdksh, this test takes hours, literally.
12095     # So we just punt and use a minimum line length of 8192.
12096     lt_cv_sys_max_cmd_len=8192;
12097     ;;
12098
12099   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12100     # This has been around since 386BSD, at least.  Likely further.
12101     if test -x /sbin/sysctl; then
12102       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12103     elif test -x /usr/sbin/sysctl; then
12104       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12105     else
12106       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12107     fi
12108     # And add a safety zone
12109     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12110     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12111     ;;
12112
12113   interix*)
12114     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12115     lt_cv_sys_max_cmd_len=196608
12116     ;;
12117
12118   osf*)
12119     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12120     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12121     # nice to cause kernel panics so lets avoid the loop below.
12122     # First set a reasonable default.
12123     lt_cv_sys_max_cmd_len=16384
12124     #
12125     if test -x /sbin/sysconfig; then
12126       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12127         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12128       esac
12129     fi
12130     ;;
12131   sco3.2v5*)
12132     lt_cv_sys_max_cmd_len=102400
12133     ;;
12134   sysv5* | sco5v6* | sysv4.2uw2*)
12135     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12136     if test -n "$kargmax"; then
12137       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12138     else
12139       lt_cv_sys_max_cmd_len=32768
12140     fi
12141     ;;
12142   *)
12143     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12144     if test -n "$lt_cv_sys_max_cmd_len"; then
12145       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12146       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12147     else
12148       # Make teststring a little bigger before we do anything with it.
12149       # a 1K string should be a reasonable start.
12150       for i in 1 2 3 4 5 6 7 8 ; do
12151         teststring=$teststring$teststring
12152       done
12153       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12154       # If test is not a shell built-in, we'll probably end up computing a
12155       # maximum length that is only half of the actual maximum length, but
12156       # we can't tell.
12157       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12158                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12159               test $i != 17 # 1/2 MB should be enough
12160       do
12161         i=`expr $i + 1`
12162         teststring=$teststring$teststring
12163       done
12164       # Only check the string length outside the loop.
12165       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12166       teststring=
12167       # Add a significant safety factor because C++ compilers can tack on
12168       # massive amounts of additional arguments before passing them to the
12169       # linker.  It appears as though 1/2 is a usable value.
12170       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12171     fi
12172     ;;
12173   esac
12174
12175 fi
12176
12177 if test -n $lt_cv_sys_max_cmd_len ; then
12178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12179 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12180 else
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12182 $as_echo "none" >&6; }
12183 fi
12184 max_cmd_len=$lt_cv_sys_max_cmd_len
12185
12186
12187
12188
12189
12190
12191 : ${CP="cp -f"}
12192 : ${MV="mv -f"}
12193 : ${RM="rm -f"}
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12196 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12197 # Try some XSI features
12198 xsi_shell=no
12199 ( _lt_dummy="a/b/c"
12200   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12201       = c,a/b,, \
12202     && eval 'test $(( 1 + 1 )) -eq 2 \
12203     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12204   && xsi_shell=yes
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12206 $as_echo "$xsi_shell" >&6; }
12207
12208
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12210 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12211 lt_shell_append=no
12212 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12213     >/dev/null 2>&1 \
12214   && lt_shell_append=yes
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12216 $as_echo "$lt_shell_append" >&6; }
12217
12218
12219 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12220   lt_unset=unset
12221 else
12222   lt_unset=false
12223 fi
12224
12225
12226
12227
12228
12229 # test EBCDIC or ASCII
12230 case `echo X|tr X '\101'` in
12231  A) # ASCII based system
12232     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12233   lt_SP2NL='tr \040 \012'
12234   lt_NL2SP='tr \015\012 \040\040'
12235   ;;
12236  *) # EBCDIC based system
12237   lt_SP2NL='tr \100 \n'
12238   lt_NL2SP='tr \r\n \100\100'
12239   ;;
12240 esac
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12251 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12252 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12253   $as_echo_n "(cached) " >&6
12254 else
12255   lt_cv_ld_reload_flag='-r'
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12258 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12259 reload_flag=$lt_cv_ld_reload_flag
12260 case $reload_flag in
12261 "" | " "*) ;;
12262 *) reload_flag=" $reload_flag" ;;
12263 esac
12264 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12265 case $host_os in
12266   darwin*)
12267     if test "$GCC" = yes; then
12268       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12269     else
12270       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12271     fi
12272     ;;
12273 esac
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283 if test -n "$ac_tool_prefix"; then
12284   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12285 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287 $as_echo_n "checking for $ac_word... " >&6; }
12288 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12289   $as_echo_n "(cached) " >&6
12290 else
12291   if test -n "$OBJDUMP"; then
12292   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12293 else
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12296 do
12297   IFS=$as_save_IFS
12298   test -z "$as_dir" && as_dir=.
12299     for ac_exec_ext in '' $ac_executable_extensions; do
12300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12301     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303     break 2
12304   fi
12305 done
12306   done
12307 IFS=$as_save_IFS
12308
12309 fi
12310 fi
12311 OBJDUMP=$ac_cv_prog_OBJDUMP
12312 if test -n "$OBJDUMP"; then
12313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12314 $as_echo "$OBJDUMP" >&6; }
12315 else
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317 $as_echo "no" >&6; }
12318 fi
12319
12320
12321 fi
12322 if test -z "$ac_cv_prog_OBJDUMP"; then
12323   ac_ct_OBJDUMP=$OBJDUMP
12324   # Extract the first word of "objdump", so it can be a program name with args.
12325 set dummy objdump; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12329   $as_echo_n "(cached) " >&6
12330 else
12331   if test -n "$ac_ct_OBJDUMP"; then
12332   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12333 else
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12336 do
12337   IFS=$as_save_IFS
12338   test -z "$as_dir" && as_dir=.
12339     for ac_exec_ext in '' $ac_executable_extensions; do
12340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12341     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343     break 2
12344   fi
12345 done
12346   done
12347 IFS=$as_save_IFS
12348
12349 fi
12350 fi
12351 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12352 if test -n "$ac_ct_OBJDUMP"; then
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12354 $as_echo "$ac_ct_OBJDUMP" >&6; }
12355 else
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359
12360   if test "x$ac_ct_OBJDUMP" = x; then
12361     OBJDUMP="false"
12362   else
12363     case $cross_compiling:$ac_tool_warned in
12364 yes:)
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12367 ac_tool_warned=yes ;;
12368 esac
12369     OBJDUMP=$ac_ct_OBJDUMP
12370   fi
12371 else
12372   OBJDUMP="$ac_cv_prog_OBJDUMP"
12373 fi
12374
12375 test -z "$OBJDUMP" && OBJDUMP=objdump
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12386 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12387 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390   lt_cv_file_magic_cmd='$MAGIC_CMD'
12391 lt_cv_file_magic_test_file=
12392 lt_cv_deplibs_check_method='unknown'
12393 # Need to set the preceding variable on all platforms that support
12394 # interlibrary dependencies.
12395 # 'none' -- dependencies not supported.
12396 # `unknown' -- same as none, but documents that we really don't know.
12397 # 'pass_all' -- all dependencies passed with no checks.
12398 # 'test_compile' -- check by making test program.
12399 # 'file_magic [[regex]]' -- check by looking for files in library path
12400 # which responds to the $file_magic_cmd with a given extended regex.
12401 # If you have `file' or equivalent on your system and you're not sure
12402 # whether `pass_all' will *always* work, you probably want this one.
12403
12404 case $host_os in
12405 aix[4-9]*)
12406   lt_cv_deplibs_check_method=pass_all
12407   ;;
12408
12409 beos*)
12410   lt_cv_deplibs_check_method=pass_all
12411   ;;
12412
12413 bsdi[45]*)
12414   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12415   lt_cv_file_magic_cmd='/usr/bin/file -L'
12416   lt_cv_file_magic_test_file=/shlib/libc.so
12417   ;;
12418
12419 cygwin*)
12420   # func_win32_libid is a shell function defined in ltmain.sh
12421   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12422   lt_cv_file_magic_cmd='func_win32_libid'
12423   ;;
12424
12425 mingw* | pw32*)
12426   # Base MSYS/MinGW do not provide the 'file' command needed by
12427   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12428   # unless we find 'file', for example because we are cross-compiling.
12429   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12430   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12431     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12432     lt_cv_file_magic_cmd='func_win32_libid'
12433   else
12434     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12435     lt_cv_file_magic_cmd='$OBJDUMP -f'
12436   fi
12437   ;;
12438
12439 cegcc*)
12440   # use the weaker test based on 'objdump'. See mingw*.
12441   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12442   lt_cv_file_magic_cmd='$OBJDUMP -f'
12443   ;;
12444
12445 darwin* | rhapsody*)
12446   lt_cv_deplibs_check_method=pass_all
12447   ;;
12448
12449 freebsd* | dragonfly*)
12450   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12451     case $host_cpu in
12452     i*86 )
12453       # Not sure whether the presence of OpenBSD here was a mistake.
12454       # Let's accept both of them until this is cleared up.
12455       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12456       lt_cv_file_magic_cmd=/usr/bin/file
12457       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12458       ;;
12459     esac
12460   else
12461     lt_cv_deplibs_check_method=pass_all
12462   fi
12463   ;;
12464
12465 gnu*)
12466   lt_cv_deplibs_check_method=pass_all
12467   ;;
12468
12469 haiku*)
12470   lt_cv_deplibs_check_method=pass_all
12471   ;;
12472
12473 hpux10.20* | hpux11*)
12474   lt_cv_file_magic_cmd=/usr/bin/file
12475   case $host_cpu in
12476   ia64*)
12477     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12478     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12479     ;;
12480   hppa*64*)
12481     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]'
12482     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12483     ;;
12484   *)
12485     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12486     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12487     ;;
12488   esac
12489   ;;
12490
12491 interix[3-9]*)
12492   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12493   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12494   ;;
12495
12496 irix5* | irix6* | nonstopux*)
12497   case $LD in
12498   *-32|*"-32 ") libmagic=32-bit;;
12499   *-n32|*"-n32 ") libmagic=N32;;
12500   *-64|*"-64 ") libmagic=64-bit;;
12501   *) libmagic=never-match;;
12502   esac
12503   lt_cv_deplibs_check_method=pass_all
12504   ;;
12505
12506 # This must be Linux ELF.
12507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12508   lt_cv_deplibs_check_method=pass_all
12509   ;;
12510
12511 netbsd*)
12512   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12513     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12514   else
12515     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12516   fi
12517   ;;
12518
12519 newos6*)
12520   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12521   lt_cv_file_magic_cmd=/usr/bin/file
12522   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12523   ;;
12524
12525 *nto* | *qnx*)
12526   lt_cv_deplibs_check_method=pass_all
12527   ;;
12528
12529 openbsd*)
12530   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12532   else
12533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12534   fi
12535   ;;
12536
12537 osf3* | osf4* | osf5*)
12538   lt_cv_deplibs_check_method=pass_all
12539   ;;
12540
12541 rdos*)
12542   lt_cv_deplibs_check_method=pass_all
12543   ;;
12544
12545 solaris*)
12546   lt_cv_deplibs_check_method=pass_all
12547   ;;
12548
12549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12550   lt_cv_deplibs_check_method=pass_all
12551   ;;
12552
12553 sysv4 | sysv4.3*)
12554   case $host_vendor in
12555   motorola)
12556     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]'
12557     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12558     ;;
12559   ncr)
12560     lt_cv_deplibs_check_method=pass_all
12561     ;;
12562   sequent)
12563     lt_cv_file_magic_cmd='/bin/file'
12564     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12565     ;;
12566   sni)
12567     lt_cv_file_magic_cmd='/bin/file'
12568     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12569     lt_cv_file_magic_test_file=/lib/libc.so
12570     ;;
12571   siemens)
12572     lt_cv_deplibs_check_method=pass_all
12573     ;;
12574   pc)
12575     lt_cv_deplibs_check_method=pass_all
12576     ;;
12577   esac
12578   ;;
12579
12580 tpf*)
12581   lt_cv_deplibs_check_method=pass_all
12582   ;;
12583 esac
12584
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12587 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12588 file_magic_cmd=$lt_cv_file_magic_cmd
12589 deplibs_check_method=$lt_cv_deplibs_check_method
12590 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603 if test -n "$ac_tool_prefix"; then
12604   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12605 set dummy ${ac_tool_prefix}ar; ac_word=$2
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607 $as_echo_n "checking for $ac_word... " >&6; }
12608 if test "${ac_cv_prog_AR+set}" = set; then :
12609   $as_echo_n "(cached) " >&6
12610 else
12611   if test -n "$AR"; then
12612   ac_cv_prog_AR="$AR" # Let the user override the test.
12613 else
12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12616 do
12617   IFS=$as_save_IFS
12618   test -z "$as_dir" && as_dir=.
12619     for ac_exec_ext in '' $ac_executable_extensions; do
12620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12621     ac_cv_prog_AR="${ac_tool_prefix}ar"
12622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623     break 2
12624   fi
12625 done
12626   done
12627 IFS=$as_save_IFS
12628
12629 fi
12630 fi
12631 AR=$ac_cv_prog_AR
12632 if test -n "$AR"; then
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12634 $as_echo "$AR" >&6; }
12635 else
12636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12638 fi
12639
12640
12641 fi
12642 if test -z "$ac_cv_prog_AR"; then
12643   ac_ct_AR=$AR
12644   # Extract the first word of "ar", so it can be a program name with args.
12645 set dummy ar; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   if test -n "$ac_ct_AR"; then
12652   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12653 else
12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12656 do
12657   IFS=$as_save_IFS
12658   test -z "$as_dir" && as_dir=.
12659     for ac_exec_ext in '' $ac_executable_extensions; do
12660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12661     ac_cv_prog_ac_ct_AR="ar"
12662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663     break 2
12664   fi
12665 done
12666   done
12667 IFS=$as_save_IFS
12668
12669 fi
12670 fi
12671 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12672 if test -n "$ac_ct_AR"; then
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12674 $as_echo "$ac_ct_AR" >&6; }
12675 else
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12678 fi
12679
12680   if test "x$ac_ct_AR" = x; then
12681     AR="false"
12682   else
12683     case $cross_compiling:$ac_tool_warned in
12684 yes:)
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12687 ac_tool_warned=yes ;;
12688 esac
12689     AR=$ac_ct_AR
12690   fi
12691 else
12692   AR="$ac_cv_prog_AR"
12693 fi
12694
12695 test -z "$AR" && AR=ar
12696 test -z "$AR_FLAGS" && AR_FLAGS=cru
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708 if test -n "$ac_tool_prefix"; then
12709   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12710 set dummy ${ac_tool_prefix}strip; ac_word=$2
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if test "${ac_cv_prog_STRIP+set}" = set; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   if test -n "$STRIP"; then
12717   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12718 else
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720 for as_dir in $PATH
12721 do
12722   IFS=$as_save_IFS
12723   test -z "$as_dir" && as_dir=.
12724     for ac_exec_ext in '' $ac_executable_extensions; do
12725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12726     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728     break 2
12729   fi
12730 done
12731   done
12732 IFS=$as_save_IFS
12733
12734 fi
12735 fi
12736 STRIP=$ac_cv_prog_STRIP
12737 if test -n "$STRIP"; then
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12739 $as_echo "$STRIP" >&6; }
12740 else
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 fi
12744
12745
12746 fi
12747 if test -z "$ac_cv_prog_STRIP"; then
12748   ac_ct_STRIP=$STRIP
12749   # Extract the first word of "strip", so it can be a program name with args.
12750 set dummy strip; ac_word=$2
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12752 $as_echo_n "checking for $ac_word... " >&6; }
12753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12754   $as_echo_n "(cached) " >&6
12755 else
12756   if test -n "$ac_ct_STRIP"; then
12757   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12758 else
12759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760 for as_dir in $PATH
12761 do
12762   IFS=$as_save_IFS
12763   test -z "$as_dir" && as_dir=.
12764     for ac_exec_ext in '' $ac_executable_extensions; do
12765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12766     ac_cv_prog_ac_ct_STRIP="strip"
12767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12768     break 2
12769   fi
12770 done
12771   done
12772 IFS=$as_save_IFS
12773
12774 fi
12775 fi
12776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12777 if test -n "$ac_ct_STRIP"; then
12778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12779 $as_echo "$ac_ct_STRIP" >&6; }
12780 else
12781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12783 fi
12784
12785   if test "x$ac_ct_STRIP" = x; then
12786     STRIP=":"
12787   else
12788     case $cross_compiling:$ac_tool_warned in
12789 yes:)
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12792 ac_tool_warned=yes ;;
12793 esac
12794     STRIP=$ac_ct_STRIP
12795   fi
12796 else
12797   STRIP="$ac_cv_prog_STRIP"
12798 fi
12799
12800 test -z "$STRIP" && STRIP=:
12801
12802
12803
12804
12805
12806
12807 if test -n "$ac_tool_prefix"; then
12808   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12811 $as_echo_n "checking for $ac_word... " >&6; }
12812 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12813   $as_echo_n "(cached) " >&6
12814 else
12815   if test -n "$RANLIB"; then
12816   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12817 else
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12820 do
12821   IFS=$as_save_IFS
12822   test -z "$as_dir" && as_dir=.
12823     for ac_exec_ext in '' $ac_executable_extensions; do
12824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12825     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827     break 2
12828   fi
12829 done
12830   done
12831 IFS=$as_save_IFS
12832
12833 fi
12834 fi
12835 RANLIB=$ac_cv_prog_RANLIB
12836 if test -n "$RANLIB"; then
12837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12838 $as_echo "$RANLIB" >&6; }
12839 else
12840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12842 fi
12843
12844
12845 fi
12846 if test -z "$ac_cv_prog_RANLIB"; then
12847   ac_ct_RANLIB=$RANLIB
12848   # Extract the first word of "ranlib", so it can be a program name with args.
12849 set dummy ranlib; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851 $as_echo_n "checking for $ac_word... " >&6; }
12852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12853   $as_echo_n "(cached) " >&6
12854 else
12855   if test -n "$ac_ct_RANLIB"; then
12856   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12857 else
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12860 do
12861   IFS=$as_save_IFS
12862   test -z "$as_dir" && as_dir=.
12863     for ac_exec_ext in '' $ac_executable_extensions; do
12864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12865     ac_cv_prog_ac_ct_RANLIB="ranlib"
12866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867     break 2
12868   fi
12869 done
12870   done
12871 IFS=$as_save_IFS
12872
12873 fi
12874 fi
12875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12876 if test -n "$ac_ct_RANLIB"; then
12877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12878 $as_echo "$ac_ct_RANLIB" >&6; }
12879 else
12880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881 $as_echo "no" >&6; }
12882 fi
12883
12884   if test "x$ac_ct_RANLIB" = x; then
12885     RANLIB=":"
12886   else
12887     case $cross_compiling:$ac_tool_warned in
12888 yes:)
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12891 ac_tool_warned=yes ;;
12892 esac
12893     RANLIB=$ac_ct_RANLIB
12894   fi
12895 else
12896   RANLIB="$ac_cv_prog_RANLIB"
12897 fi
12898
12899 test -z "$RANLIB" && RANLIB=:
12900
12901
12902
12903
12904
12905
12906 # Determine commands to create old-style static archives.
12907 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12908 old_postinstall_cmds='chmod 644 $oldlib'
12909 old_postuninstall_cmds=
12910
12911 if test -n "$RANLIB"; then
12912   case $host_os in
12913   openbsd*)
12914     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12915     ;;
12916   *)
12917     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12918     ;;
12919   esac
12920   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12921 fi
12922
12923 case $host_os in
12924   darwin*)
12925     lock_old_archive_extraction=yes ;;
12926   *)
12927     lock_old_archive_extraction=no ;;
12928 esac
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968 # If no C compiler was specified, use CC.
12969 LTCC=${LTCC-"$CC"}
12970
12971 # If no C compiler flags were specified, use CFLAGS.
12972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12973
12974 # Allow CC to be a program name with arguments.
12975 compiler=$CC
12976
12977
12978 # Check for command to grab the raw symbol name followed by C symbol from nm.
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12980 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12981 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12982   $as_echo_n "(cached) " >&6
12983 else
12984
12985 # These are sane defaults that work on at least a few old systems.
12986 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12987
12988 # Character class describing NM global symbol codes.
12989 symcode='[BCDEGRST]'
12990
12991 # Regexp to match symbols that can be accessed directly from C.
12992 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12993
12994 # Define system-specific variables.
12995 case $host_os in
12996 aix*)
12997   symcode='[BCDT]'
12998   ;;
12999 cygwin* | mingw* | pw32* | cegcc*)
13000   symcode='[ABCDGISTW]'
13001   ;;
13002 hpux*)
13003   if test "$host_cpu" = ia64; then
13004     symcode='[ABCDEGRST]'
13005   fi
13006   ;;
13007 irix* | nonstopux*)
13008   symcode='[BCDEGRST]'
13009   ;;
13010 osf*)
13011   symcode='[BCDEGQRST]'
13012   ;;
13013 solaris*)
13014   symcode='[BDRT]'
13015   ;;
13016 sco3.2v5*)
13017   symcode='[DT]'
13018   ;;
13019 sysv4.2uw2*)
13020   symcode='[DT]'
13021   ;;
13022 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13023   symcode='[ABDT]'
13024   ;;
13025 sysv4)
13026   symcode='[DFNSTU]'
13027   ;;
13028 esac
13029
13030 # If we're using GNU nm, then use its standard symbol codes.
13031 case `$NM -V 2>&1` in
13032 *GNU* | *'with BFD'*)
13033   symcode='[ABCDGIRSTW]' ;;
13034 esac
13035
13036 # Transform an extracted symbol line into a proper C declaration.
13037 # Some systems (esp. on ia64) link data and code symbols differently,
13038 # so use this general approach.
13039 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13040
13041 # Transform an extracted symbol line into symbol name and symbol address
13042 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13043 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'"
13044
13045 # Handle CRLF in mingw tool chain
13046 opt_cr=
13047 case $build_os in
13048 mingw*)
13049   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13050   ;;
13051 esac
13052
13053 # Try without a prefix underscore, then with it.
13054 for ac_symprfx in "" "_"; do
13055
13056   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13057   symxfrm="\\1 $ac_symprfx\\2 \\2"
13058
13059   # Write the raw and C identifiers.
13060   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13061     # Fake it for dumpbin and say T for any non-static function
13062     # and D for any global variable.
13063     # Also find C++ and __fastcall symbols from MSVC++,
13064     # which start with @ or ?.
13065     lt_cv_sys_global_symbol_pipe="$AWK '"\
13066 "     {last_section=section; section=\$ 3};"\
13067 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13068 "     \$ 0!~/External *\|/{next};"\
13069 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13070 "     {if(hide[section]) next};"\
13071 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13072 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13073 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13074 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13075 "     ' prfx=^$ac_symprfx"
13076   else
13077     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13078   fi
13079
13080   # Check to see that the pipe works correctly.
13081   pipe_works=no
13082
13083   rm -f conftest*
13084   cat > conftest.$ac_ext <<_LT_EOF
13085 #ifdef __cplusplus
13086 extern "C" {
13087 #endif
13088 char nm_test_var;
13089 void nm_test_func(void);
13090 void nm_test_func(void){}
13091 #ifdef __cplusplus
13092 }
13093 #endif
13094 int main(){nm_test_var='a';nm_test_func();return(0);}
13095 _LT_EOF
13096
13097   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13098   (eval $ac_compile) 2>&5
13099   ac_status=$?
13100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13101   test $ac_status = 0; }; then
13102     # Now try to grab the symbols.
13103     nlist=conftest.nm
13104     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13105   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13106   ac_status=$?
13107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108   test $ac_status = 0; } && test -s "$nlist"; then
13109       # Try sorting and uniquifying the output.
13110       if sort "$nlist" | uniq > "$nlist"T; then
13111         mv -f "$nlist"T "$nlist"
13112       else
13113         rm -f "$nlist"T
13114       fi
13115
13116       # Make sure that we snagged all the symbols we need.
13117       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13118         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13119           cat <<_LT_EOF > conftest.$ac_ext
13120 #ifdef __cplusplus
13121 extern "C" {
13122 #endif
13123
13124 _LT_EOF
13125           # Now generate the symbol file.
13126           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13127
13128           cat <<_LT_EOF >> conftest.$ac_ext
13129
13130 /* The mapping between symbol names and symbols.  */
13131 const struct {
13132   const char *name;
13133   void       *address;
13134 }
13135 lt__PROGRAM__LTX_preloaded_symbols[] =
13136 {
13137   { "@PROGRAM@", (void *) 0 },
13138 _LT_EOF
13139           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13140           cat <<\_LT_EOF >> conftest.$ac_ext
13141   {0, (void *) 0}
13142 };
13143
13144 /* This works around a problem in FreeBSD linker */
13145 #ifdef FREEBSD_WORKAROUND
13146 static const void *lt_preloaded_setup() {
13147   return lt__PROGRAM__LTX_preloaded_symbols;
13148 }
13149 #endif
13150
13151 #ifdef __cplusplus
13152 }
13153 #endif
13154 _LT_EOF
13155           # Now try linking the two files.
13156           mv conftest.$ac_objext conftstm.$ac_objext
13157           lt_save_LIBS="$LIBS"
13158           lt_save_CFLAGS="$CFLAGS"
13159           LIBS="conftstm.$ac_objext"
13160           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13161           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13162   (eval $ac_link) 2>&5
13163   ac_status=$?
13164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13165   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13166             pipe_works=yes
13167           fi
13168           LIBS="$lt_save_LIBS"
13169           CFLAGS="$lt_save_CFLAGS"
13170         else
13171           echo "cannot find nm_test_func in $nlist" >&5
13172         fi
13173       else
13174         echo "cannot find nm_test_var in $nlist" >&5
13175       fi
13176     else
13177       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13178     fi
13179   else
13180     echo "$progname: failed program was:" >&5
13181     cat conftest.$ac_ext >&5
13182   fi
13183   rm -rf conftest* conftst*
13184
13185   # Do not use the global_symbol_pipe unless it works.
13186   if test "$pipe_works" = yes; then
13187     break
13188   else
13189     lt_cv_sys_global_symbol_pipe=
13190   fi
13191 done
13192
13193 fi
13194
13195 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13196   lt_cv_sys_global_symbol_to_cdecl=
13197 fi
13198 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13200 $as_echo "failed" >&6; }
13201 else
13202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13203 $as_echo "ok" >&6; }
13204 fi
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227 # Check whether --enable-libtool-lock was given.
13228 if test "${enable_libtool_lock+set}" = set; then :
13229   enableval=$enable_libtool_lock;
13230 fi
13231
13232 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13233
13234 # Some flags need to be propagated to the compiler or linker for good
13235 # libtool support.
13236 case $host in
13237 ia64-*-hpux*)
13238   # Find out which ABI we are using.
13239   echo 'int i;' > conftest.$ac_ext
13240   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13241   (eval $ac_compile) 2>&5
13242   ac_status=$?
13243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244   test $ac_status = 0; }; then
13245     case `/usr/bin/file conftest.$ac_objext` in
13246       *ELF-32*)
13247         HPUX_IA64_MODE="32"
13248         ;;
13249       *ELF-64*)
13250         HPUX_IA64_MODE="64"
13251         ;;
13252     esac
13253   fi
13254   rm -rf conftest*
13255   ;;
13256 *-*-irix6*)
13257   # Find out which ABI we are using.
13258   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13259   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13260   (eval $ac_compile) 2>&5
13261   ac_status=$?
13262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263   test $ac_status = 0; }; then
13264     if test "$lt_cv_prog_gnu_ld" = yes; then
13265       case `/usr/bin/file conftest.$ac_objext` in
13266         *32-bit*)
13267           LD="${LD-ld} -melf32bsmip"
13268           ;;
13269         *N32*)
13270           LD="${LD-ld} -melf32bmipn32"
13271           ;;
13272         *64-bit*)
13273           LD="${LD-ld} -melf64bmip"
13274         ;;
13275       esac
13276     else
13277       case `/usr/bin/file conftest.$ac_objext` in
13278         *32-bit*)
13279           LD="${LD-ld} -32"
13280           ;;
13281         *N32*)
13282           LD="${LD-ld} -n32"
13283           ;;
13284         *64-bit*)
13285           LD="${LD-ld} -64"
13286           ;;
13287       esac
13288     fi
13289   fi
13290   rm -rf conftest*
13291   ;;
13292
13293 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13294 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13295   # Find out which ABI we are using.
13296   echo 'int i;' > conftest.$ac_ext
13297   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13298   (eval $ac_compile) 2>&5
13299   ac_status=$?
13300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13301   test $ac_status = 0; }; then
13302     case `/usr/bin/file conftest.o` in
13303       *32-bit*)
13304         case $host in
13305           x86_64-*kfreebsd*-gnu)
13306             LD="${LD-ld} -m elf_i386_fbsd"
13307             ;;
13308           x86_64-*linux*)
13309             LD="${LD-ld} -m elf_i386"
13310             ;;
13311           ppc64-*linux*|powerpc64-*linux*)
13312             LD="${LD-ld} -m elf32ppclinux"
13313             ;;
13314           s390x-*linux*)
13315             LD="${LD-ld} -m elf_s390"
13316             ;;
13317           sparc64-*linux*)
13318             LD="${LD-ld} -m elf32_sparc"
13319             ;;
13320         esac
13321         ;;
13322       *64-bit*)
13323         case $host in
13324           x86_64-*kfreebsd*-gnu)
13325             LD="${LD-ld} -m elf_x86_64_fbsd"
13326             ;;
13327           x86_64-*linux*)
13328             LD="${LD-ld} -m elf_x86_64"
13329             ;;
13330           ppc*-*linux*|powerpc*-*linux*)
13331             LD="${LD-ld} -m elf64ppc"
13332             ;;
13333           s390*-*linux*|s390*-*tpf*)
13334             LD="${LD-ld} -m elf64_s390"
13335             ;;
13336           sparc*-*linux*)
13337             LD="${LD-ld} -m elf64_sparc"
13338             ;;
13339         esac
13340         ;;
13341     esac
13342   fi
13343   rm -rf conftest*
13344   ;;
13345
13346 *-*-sco3.2v5*)
13347   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13348   SAVE_CFLAGS="$CFLAGS"
13349   CFLAGS="$CFLAGS -belf"
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13351 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13352 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13353   $as_echo_n "(cached) " >&6
13354 else
13355   ac_ext=c
13356 ac_cpp='$CPP $CPPFLAGS'
13357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13360
13361      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h.  */
13363
13364 int
13365 main ()
13366 {
13367
13368   ;
13369   return 0;
13370 }
13371 _ACEOF
13372 if ac_fn_c_try_link "$LINENO"; then :
13373   lt_cv_cc_needs_belf=yes
13374 else
13375   lt_cv_cc_needs_belf=no
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext \
13378     conftest$ac_exeext conftest.$ac_ext
13379      ac_ext=c
13380 ac_cpp='$CPP $CPPFLAGS'
13381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13384
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13387 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13388   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13389     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13390     CFLAGS="$SAVE_CFLAGS"
13391   fi
13392   ;;
13393 sparc*-*solaris*)
13394   # Find out which ABI we are using.
13395   echo 'int i;' > conftest.$ac_ext
13396   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13397   (eval $ac_compile) 2>&5
13398   ac_status=$?
13399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13400   test $ac_status = 0; }; then
13401     case `/usr/bin/file conftest.o` in
13402     *64-bit*)
13403       case $lt_cv_prog_gnu_ld in
13404       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13405       *)
13406         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13407           LD="${LD-ld} -64"
13408         fi
13409         ;;
13410       esac
13411       ;;
13412     esac
13413   fi
13414   rm -rf conftest*
13415   ;;
13416 esac
13417
13418 need_locks="$enable_libtool_lock"
13419
13420
13421   case $host_os in
13422     rhapsody* | darwin*)
13423     if test -n "$ac_tool_prefix"; then
13424   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13425 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427 $as_echo_n "checking for $ac_word... " >&6; }
13428 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13429   $as_echo_n "(cached) " >&6
13430 else
13431   if test -n "$DSYMUTIL"; then
13432   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13433 else
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13436 do
13437   IFS=$as_save_IFS
13438   test -z "$as_dir" && as_dir=.
13439     for ac_exec_ext in '' $ac_executable_extensions; do
13440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13441     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443     break 2
13444   fi
13445 done
13446   done
13447 IFS=$as_save_IFS
13448
13449 fi
13450 fi
13451 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13452 if test -n "$DSYMUTIL"; then
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13454 $as_echo "$DSYMUTIL" >&6; }
13455 else
13456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458 fi
13459
13460
13461 fi
13462 if test -z "$ac_cv_prog_DSYMUTIL"; then
13463   ac_ct_DSYMUTIL=$DSYMUTIL
13464   # Extract the first word of "dsymutil", so it can be a program name with args.
13465 set dummy dsymutil; ac_word=$2
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467 $as_echo_n "checking for $ac_word... " >&6; }
13468 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13469   $as_echo_n "(cached) " >&6
13470 else
13471   if test -n "$ac_ct_DSYMUTIL"; then
13472   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13473 else
13474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475 for as_dir in $PATH
13476 do
13477   IFS=$as_save_IFS
13478   test -z "$as_dir" && as_dir=.
13479     for ac_exec_ext in '' $ac_executable_extensions; do
13480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13481     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13483     break 2
13484   fi
13485 done
13486   done
13487 IFS=$as_save_IFS
13488
13489 fi
13490 fi
13491 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13492 if test -n "$ac_ct_DSYMUTIL"; then
13493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13494 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13495 else
13496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13498 fi
13499
13500   if test "x$ac_ct_DSYMUTIL" = x; then
13501     DSYMUTIL=":"
13502   else
13503     case $cross_compiling:$ac_tool_warned in
13504 yes:)
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13507 ac_tool_warned=yes ;;
13508 esac
13509     DSYMUTIL=$ac_ct_DSYMUTIL
13510   fi
13511 else
13512   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13513 fi
13514
13515     if test -n "$ac_tool_prefix"; then
13516   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13517 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519 $as_echo_n "checking for $ac_word... " >&6; }
13520 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13521   $as_echo_n "(cached) " >&6
13522 else
13523   if test -n "$NMEDIT"; then
13524   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13525 else
13526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13528 do
13529   IFS=$as_save_IFS
13530   test -z "$as_dir" && as_dir=.
13531     for ac_exec_ext in '' $ac_executable_extensions; do
13532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13533     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13535     break 2
13536   fi
13537 done
13538   done
13539 IFS=$as_save_IFS
13540
13541 fi
13542 fi
13543 NMEDIT=$ac_cv_prog_NMEDIT
13544 if test -n "$NMEDIT"; then
13545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13546 $as_echo "$NMEDIT" >&6; }
13547 else
13548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13550 fi
13551
13552
13553 fi
13554 if test -z "$ac_cv_prog_NMEDIT"; then
13555   ac_ct_NMEDIT=$NMEDIT
13556   # Extract the first word of "nmedit", so it can be a program name with args.
13557 set dummy nmedit; ac_word=$2
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559 $as_echo_n "checking for $ac_word... " >&6; }
13560 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13561   $as_echo_n "(cached) " >&6
13562 else
13563   if test -n "$ac_ct_NMEDIT"; then
13564   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13565 else
13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 for as_dir in $PATH
13568 do
13569   IFS=$as_save_IFS
13570   test -z "$as_dir" && as_dir=.
13571     for ac_exec_ext in '' $ac_executable_extensions; do
13572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13573     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13575     break 2
13576   fi
13577 done
13578   done
13579 IFS=$as_save_IFS
13580
13581 fi
13582 fi
13583 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13584 if test -n "$ac_ct_NMEDIT"; then
13585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13586 $as_echo "$ac_ct_NMEDIT" >&6; }
13587 else
13588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589 $as_echo "no" >&6; }
13590 fi
13591
13592   if test "x$ac_ct_NMEDIT" = x; then
13593     NMEDIT=":"
13594   else
13595     case $cross_compiling:$ac_tool_warned in
13596 yes:)
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13599 ac_tool_warned=yes ;;
13600 esac
13601     NMEDIT=$ac_ct_NMEDIT
13602   fi
13603 else
13604   NMEDIT="$ac_cv_prog_NMEDIT"
13605 fi
13606
13607     if test -n "$ac_tool_prefix"; then
13608   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13609 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611 $as_echo_n "checking for $ac_word... " >&6; }
13612 if test "${ac_cv_prog_LIPO+set}" = set; then :
13613   $as_echo_n "(cached) " >&6
13614 else
13615   if test -n "$LIPO"; then
13616   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13617 else
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621   IFS=$as_save_IFS
13622   test -z "$as_dir" && as_dir=.
13623     for ac_exec_ext in '' $ac_executable_extensions; do
13624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13625     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627     break 2
13628   fi
13629 done
13630   done
13631 IFS=$as_save_IFS
13632
13633 fi
13634 fi
13635 LIPO=$ac_cv_prog_LIPO
13636 if test -n "$LIPO"; then
13637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13638 $as_echo "$LIPO" >&6; }
13639 else
13640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 fi
13643
13644
13645 fi
13646 if test -z "$ac_cv_prog_LIPO"; then
13647   ac_ct_LIPO=$LIPO
13648   # Extract the first word of "lipo", so it can be a program name with args.
13649 set dummy lipo; ac_word=$2
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13653   $as_echo_n "(cached) " >&6
13654 else
13655   if test -n "$ac_ct_LIPO"; then
13656   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13657 else
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13660 do
13661   IFS=$as_save_IFS
13662   test -z "$as_dir" && as_dir=.
13663     for ac_exec_ext in '' $ac_executable_extensions; do
13664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13665     ac_cv_prog_ac_ct_LIPO="lipo"
13666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13667     break 2
13668   fi
13669 done
13670   done
13671 IFS=$as_save_IFS
13672
13673 fi
13674 fi
13675 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13676 if test -n "$ac_ct_LIPO"; then
13677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13678 $as_echo "$ac_ct_LIPO" >&6; }
13679 else
13680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681 $as_echo "no" >&6; }
13682 fi
13683
13684   if test "x$ac_ct_LIPO" = x; then
13685     LIPO=":"
13686   else
13687     case $cross_compiling:$ac_tool_warned in
13688 yes:)
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13691 ac_tool_warned=yes ;;
13692 esac
13693     LIPO=$ac_ct_LIPO
13694   fi
13695 else
13696   LIPO="$ac_cv_prog_LIPO"
13697 fi
13698
13699     if test -n "$ac_tool_prefix"; then
13700   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13701 set dummy ${ac_tool_prefix}otool; ac_word=$2
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13703 $as_echo_n "checking for $ac_word... " >&6; }
13704 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13705   $as_echo_n "(cached) " >&6
13706 else
13707   if test -n "$OTOOL"; then
13708   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13709 else
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH
13712 do
13713   IFS=$as_save_IFS
13714   test -z "$as_dir" && as_dir=.
13715     for ac_exec_ext in '' $ac_executable_extensions; do
13716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13717     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13719     break 2
13720   fi
13721 done
13722   done
13723 IFS=$as_save_IFS
13724
13725 fi
13726 fi
13727 OTOOL=$ac_cv_prog_OTOOL
13728 if test -n "$OTOOL"; then
13729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13730 $as_echo "$OTOOL" >&6; }
13731 else
13732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733 $as_echo "no" >&6; }
13734 fi
13735
13736
13737 fi
13738 if test -z "$ac_cv_prog_OTOOL"; then
13739   ac_ct_OTOOL=$OTOOL
13740   # Extract the first word of "otool", so it can be a program name with args.
13741 set dummy otool; ac_word=$2
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13743 $as_echo_n "checking for $ac_word... " >&6; }
13744 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13745   $as_echo_n "(cached) " >&6
13746 else
13747   if test -n "$ac_ct_OTOOL"; then
13748   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13749 else
13750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751 for as_dir in $PATH
13752 do
13753   IFS=$as_save_IFS
13754   test -z "$as_dir" && as_dir=.
13755     for ac_exec_ext in '' $ac_executable_extensions; do
13756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13757     ac_cv_prog_ac_ct_OTOOL="otool"
13758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13759     break 2
13760   fi
13761 done
13762   done
13763 IFS=$as_save_IFS
13764
13765 fi
13766 fi
13767 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13768 if test -n "$ac_ct_OTOOL"; then
13769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13770 $as_echo "$ac_ct_OTOOL" >&6; }
13771 else
13772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 $as_echo "no" >&6; }
13774 fi
13775
13776   if test "x$ac_ct_OTOOL" = x; then
13777     OTOOL=":"
13778   else
13779     case $cross_compiling:$ac_tool_warned in
13780 yes:)
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13783 ac_tool_warned=yes ;;
13784 esac
13785     OTOOL=$ac_ct_OTOOL
13786   fi
13787 else
13788   OTOOL="$ac_cv_prog_OTOOL"
13789 fi
13790
13791     if test -n "$ac_tool_prefix"; then
13792   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13793 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13797   $as_echo_n "(cached) " >&6
13798 else
13799   if test -n "$OTOOL64"; then
13800   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13801 else
13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13804 do
13805   IFS=$as_save_IFS
13806   test -z "$as_dir" && as_dir=.
13807     for ac_exec_ext in '' $ac_executable_extensions; do
13808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13809     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13811     break 2
13812   fi
13813 done
13814   done
13815 IFS=$as_save_IFS
13816
13817 fi
13818 fi
13819 OTOOL64=$ac_cv_prog_OTOOL64
13820 if test -n "$OTOOL64"; then
13821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13822 $as_echo "$OTOOL64" >&6; }
13823 else
13824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13826 fi
13827
13828
13829 fi
13830 if test -z "$ac_cv_prog_OTOOL64"; then
13831   ac_ct_OTOOL64=$OTOOL64
13832   # Extract the first word of "otool64", so it can be a program name with args.
13833 set dummy otool64; ac_word=$2
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13835 $as_echo_n "checking for $ac_word... " >&6; }
13836 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13837   $as_echo_n "(cached) " >&6
13838 else
13839   if test -n "$ac_ct_OTOOL64"; then
13840   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13841 else
13842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843 for as_dir in $PATH
13844 do
13845   IFS=$as_save_IFS
13846   test -z "$as_dir" && as_dir=.
13847     for ac_exec_ext in '' $ac_executable_extensions; do
13848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13849     ac_cv_prog_ac_ct_OTOOL64="otool64"
13850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13851     break 2
13852   fi
13853 done
13854   done
13855 IFS=$as_save_IFS
13856
13857 fi
13858 fi
13859 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13860 if test -n "$ac_ct_OTOOL64"; then
13861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13862 $as_echo "$ac_ct_OTOOL64" >&6; }
13863 else
13864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865 $as_echo "no" >&6; }
13866 fi
13867
13868   if test "x$ac_ct_OTOOL64" = x; then
13869     OTOOL64=":"
13870   else
13871     case $cross_compiling:$ac_tool_warned in
13872 yes:)
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13875 ac_tool_warned=yes ;;
13876 esac
13877     OTOOL64=$ac_ct_OTOOL64
13878   fi
13879 else
13880   OTOOL64="$ac_cv_prog_OTOOL64"
13881 fi
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13910 $as_echo_n "checking for -single_module linker flag... " >&6; }
13911 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13912   $as_echo_n "(cached) " >&6
13913 else
13914   lt_cv_apple_cc_single_mod=no
13915       if test -z "${LT_MULTI_MODULE}"; then
13916         # By default we will add the -single_module flag. You can override
13917         # by either setting the environment variable LT_MULTI_MODULE
13918         # non-empty at configure time, or by adding -multi_module to the
13919         # link flags.
13920         rm -rf libconftest.dylib*
13921         echo "int foo(void){return 1;}" > conftest.c
13922         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13923 -dynamiclib -Wl,-single_module conftest.c" >&5
13924         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13925           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13926         _lt_result=$?
13927         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13928           lt_cv_apple_cc_single_mod=yes
13929         else
13930           cat conftest.err >&5
13931         fi
13932         rm -rf libconftest.dylib*
13933         rm -f conftest.*
13934       fi
13935 fi
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13937 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13939 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13940 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13941   $as_echo_n "(cached) " >&6
13942 else
13943   lt_cv_ld_exported_symbols_list=no
13944       save_LDFLAGS=$LDFLAGS
13945       echo "_main" > conftest.sym
13946       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13947       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h.  */
13949
13950 int
13951 main ()
13952 {
13953
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 if ac_fn_c_try_link "$LINENO"; then :
13959   lt_cv_ld_exported_symbols_list=yes
13960 else
13961   lt_cv_ld_exported_symbols_list=no
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext \
13964     conftest$ac_exeext conftest.$ac_ext
13965         LDFLAGS="$save_LDFLAGS"
13966
13967 fi
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13969 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13971 $as_echo_n "checking for -force_load linker flag... " >&6; }
13972 if test "${lt_cv_ld_force_load+set}" = set; then :
13973   $as_echo_n "(cached) " >&6
13974 else
13975   lt_cv_ld_force_load=no
13976       cat > conftest.c << _LT_EOF
13977 int forced_loaded() { return 2;}
13978 _LT_EOF
13979       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13980       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13981       echo "$AR cru libconftest.a conftest.o" >&5
13982       $AR cru libconftest.a conftest.o 2>&5
13983       cat > conftest.c << _LT_EOF
13984 int main() { return 0;}
13985 _LT_EOF
13986       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13987       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13988       _lt_result=$?
13989       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13990         lt_cv_ld_force_load=yes
13991       else
13992         cat conftest.err >&5
13993       fi
13994         rm -f conftest.err libconftest.a conftest conftest.c
13995         rm -rf conftest.dSYM
13996
13997 fi
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13999 $as_echo "$lt_cv_ld_force_load" >&6; }
14000     case $host_os in
14001     rhapsody* | darwin1.[012])
14002       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14003     darwin1.*)
14004       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14005     darwin*) # darwin 5.x on
14006       # if running on 10.5 or later, the deployment target defaults
14007       # to the OS version, if on x86, and 10.4, the deployment
14008       # target defaults to 10.4. Don't you love it?
14009       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14010         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14011           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14012         10.[012]*)
14013           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14014         10.*)
14015           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14016       esac
14017     ;;
14018   esac
14019     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14020       _lt_dar_single_mod='$single_module'
14021     fi
14022     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14023       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14024     else
14025       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14026     fi
14027     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14028       _lt_dsymutil='~$DSYMUTIL $lib || :'
14029     else
14030       _lt_dsymutil=
14031     fi
14032     ;;
14033   esac
14034
14035 for ac_header in dlfcn.h
14036 do :
14037   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14038 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14039   cat >>confdefs.h <<_ACEOF
14040 #define HAVE_DLFCN_H 1
14041 _ACEOF
14042
14043 fi
14044 done
14045
14046
14047
14048
14049
14050 # Set options
14051
14052
14053
14054         enable_dlopen=no
14055
14056
14057   enable_win32_dll=no
14058
14059
14060             # Check whether --enable-shared was given.
14061 if test "${enable_shared+set}" = set; then :
14062   enableval=$enable_shared; p=${PACKAGE-default}
14063     case $enableval in
14064     yes) enable_shared=yes ;;
14065     no) enable_shared=no ;;
14066     *)
14067       enable_shared=no
14068       # Look at the argument we got.  We use all the common list separators.
14069       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14070       for pkg in $enableval; do
14071         IFS="$lt_save_ifs"
14072         if test "X$pkg" = "X$p"; then
14073           enable_shared=yes
14074         fi
14075       done
14076       IFS="$lt_save_ifs"
14077       ;;
14078     esac
14079 else
14080   enable_shared=yes
14081 fi
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091   # Check whether --enable-static was given.
14092 if test "${enable_static+set}" = set; then :
14093   enableval=$enable_static; p=${PACKAGE-default}
14094     case $enableval in
14095     yes) enable_static=yes ;;
14096     no) enable_static=no ;;
14097     *)
14098      enable_static=no
14099       # Look at the argument we got.  We use all the common list separators.
14100       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14101       for pkg in $enableval; do
14102         IFS="$lt_save_ifs"
14103         if test "X$pkg" = "X$p"; then
14104           enable_static=yes
14105         fi
14106       done
14107       IFS="$lt_save_ifs"
14108       ;;
14109     esac
14110 else
14111   enable_static=yes
14112 fi
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123 # Check whether --with-pic was given.
14124 if test "${with_pic+set}" = set; then :
14125   withval=$with_pic; pic_mode="$withval"
14126 else
14127   pic_mode=default
14128 fi
14129
14130
14131 test -z "$pic_mode" && pic_mode=default
14132
14133
14134
14135
14136
14137
14138
14139   # Check whether --enable-fast-install was given.
14140 if test "${enable_fast_install+set}" = set; then :
14141   enableval=$enable_fast_install; p=${PACKAGE-default}
14142     case $enableval in
14143     yes) enable_fast_install=yes ;;
14144     no) enable_fast_install=no ;;
14145     *)
14146       enable_fast_install=no
14147       # Look at the argument we got.  We use all the common list separators.
14148       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14149       for pkg in $enableval; do
14150         IFS="$lt_save_ifs"
14151         if test "X$pkg" = "X$p"; then
14152           enable_fast_install=yes
14153         fi
14154       done
14155       IFS="$lt_save_ifs"
14156       ;;
14157     esac
14158 else
14159   enable_fast_install=yes
14160 fi
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172 # This can be used to rebuild libtool when needed
14173 LIBTOOL_DEPS="$ltmain"
14174
14175 # Always use our own libtool.
14176 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203 test -z "$LN_S" && LN_S="ln -s"
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218 if test -n "${ZSH_VERSION+set}" ; then
14219    setopt NO_GLOB_SUBST
14220 fi
14221
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14223 $as_echo_n "checking for objdir... " >&6; }
14224 if test "${lt_cv_objdir+set}" = set; then :
14225   $as_echo_n "(cached) " >&6
14226 else
14227   rm -f .libs 2>/dev/null
14228 mkdir .libs 2>/dev/null
14229 if test -d .libs; then
14230   lt_cv_objdir=.libs
14231 else
14232   # MS-DOS does not allow filenames that begin with a dot.
14233   lt_cv_objdir=_libs
14234 fi
14235 rmdir .libs 2>/dev/null
14236 fi
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14238 $as_echo "$lt_cv_objdir" >&6; }
14239 objdir=$lt_cv_objdir
14240
14241
14242
14243
14244
14245 cat >>confdefs.h <<_ACEOF
14246 #define LT_OBJDIR "$lt_cv_objdir/"
14247 _ACEOF
14248
14249
14250
14251
14252 case $host_os in
14253 aix3*)
14254   # AIX sometimes has problems with the GCC collect2 program.  For some
14255   # reason, if we set the COLLECT_NAMES environment variable, the problems
14256   # vanish in a puff of smoke.
14257   if test "X${COLLECT_NAMES+set}" != Xset; then
14258     COLLECT_NAMES=
14259     export COLLECT_NAMES
14260   fi
14261   ;;
14262 esac
14263
14264 # Global variables:
14265 ofile=libtool
14266 can_build_shared=yes
14267
14268 # All known linkers require a `.a' archive for static linking (except MSVC,
14269 # which needs '.lib').
14270 libext=a
14271
14272 with_gnu_ld="$lt_cv_prog_gnu_ld"
14273
14274 old_CC="$CC"
14275 old_CFLAGS="$CFLAGS"
14276
14277 # Set sane defaults for various variables
14278 test -z "$CC" && CC=cc
14279 test -z "$LTCC" && LTCC=$CC
14280 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14281 test -z "$LD" && LD=ld
14282 test -z "$ac_objext" && ac_objext=o
14283
14284 for cc_temp in $compiler""; do
14285   case $cc_temp in
14286     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14287     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14288     \-*) ;;
14289     *) break;;
14290   esac
14291 done
14292 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14293
14294
14295 # Only perform the check for file, if the check method requires it
14296 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14297 case $deplibs_check_method in
14298 file_magic*)
14299   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14301 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14302 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14303   $as_echo_n "(cached) " >&6
14304 else
14305   case $MAGIC_CMD in
14306 [\\/*] |  ?:[\\/]*)
14307   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14308   ;;
14309 *)
14310   lt_save_MAGIC_CMD="$MAGIC_CMD"
14311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14312   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14313   for ac_dir in $ac_dummy; do
14314     IFS="$lt_save_ifs"
14315     test -z "$ac_dir" && ac_dir=.
14316     if test -f $ac_dir/${ac_tool_prefix}file; then
14317       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14318       if test -n "$file_magic_test_file"; then
14319         case $deplibs_check_method in
14320         "file_magic "*)
14321           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14322           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14323           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14324             $EGREP "$file_magic_regex" > /dev/null; then
14325             :
14326           else
14327             cat <<_LT_EOF 1>&2
14328
14329 *** Warning: the command libtool uses to detect shared libraries,
14330 *** $file_magic_cmd, produces output that libtool cannot recognize.
14331 *** The result is that libtool may fail to recognize shared libraries
14332 *** as such.  This will affect the creation of libtool libraries that
14333 *** depend on shared libraries, but programs linked with such libtool
14334 *** libraries will work regardless of this problem.  Nevertheless, you
14335 *** may want to report the problem to your system manager and/or to
14336 *** bug-libtool@gnu.org
14337
14338 _LT_EOF
14339           fi ;;
14340         esac
14341       fi
14342       break
14343     fi
14344   done
14345   IFS="$lt_save_ifs"
14346   MAGIC_CMD="$lt_save_MAGIC_CMD"
14347   ;;
14348 esac
14349 fi
14350
14351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14352 if test -n "$MAGIC_CMD"; then
14353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14354 $as_echo "$MAGIC_CMD" >&6; }
14355 else
14356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 $as_echo "no" >&6; }
14358 fi
14359
14360
14361
14362
14363
14364 if test -z "$lt_cv_path_MAGIC_CMD"; then
14365   if test -n "$ac_tool_prefix"; then
14366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14367 $as_echo_n "checking for file... " >&6; }
14368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14369   $as_echo_n "(cached) " >&6
14370 else
14371   case $MAGIC_CMD in
14372 [\\/*] |  ?:[\\/]*)
14373   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14374   ;;
14375 *)
14376   lt_save_MAGIC_CMD="$MAGIC_CMD"
14377   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14378   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14379   for ac_dir in $ac_dummy; do
14380     IFS="$lt_save_ifs"
14381     test -z "$ac_dir" && ac_dir=.
14382     if test -f $ac_dir/file; then
14383       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14384       if test -n "$file_magic_test_file"; then
14385         case $deplibs_check_method in
14386         "file_magic "*)
14387           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14388           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14389           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14390             $EGREP "$file_magic_regex" > /dev/null; then
14391             :
14392           else
14393             cat <<_LT_EOF 1>&2
14394
14395 *** Warning: the command libtool uses to detect shared libraries,
14396 *** $file_magic_cmd, produces output that libtool cannot recognize.
14397 *** The result is that libtool may fail to recognize shared libraries
14398 *** as such.  This will affect the creation of libtool libraries that
14399 *** depend on shared libraries, but programs linked with such libtool
14400 *** libraries will work regardless of this problem.  Nevertheless, you
14401 *** may want to report the problem to your system manager and/or to
14402 *** bug-libtool@gnu.org
14403
14404 _LT_EOF
14405           fi ;;
14406         esac
14407       fi
14408       break
14409     fi
14410   done
14411   IFS="$lt_save_ifs"
14412   MAGIC_CMD="$lt_save_MAGIC_CMD"
14413   ;;
14414 esac
14415 fi
14416
14417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14418 if test -n "$MAGIC_CMD"; then
14419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14420 $as_echo "$MAGIC_CMD" >&6; }
14421 else
14422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 $as_echo "no" >&6; }
14424 fi
14425
14426
14427   else
14428     MAGIC_CMD=:
14429   fi
14430 fi
14431
14432   fi
14433   ;;
14434 esac
14435
14436 # Use C for the default configuration in the libtool script
14437
14438 lt_save_CC="$CC"
14439 ac_ext=c
14440 ac_cpp='$CPP $CPPFLAGS'
14441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14444
14445
14446 # Source file extension for C test sources.
14447 ac_ext=c
14448
14449 # Object file extension for compiled C test sources.
14450 objext=o
14451 objext=$objext
14452
14453 # Code to be used in simple compile tests
14454 lt_simple_compile_test_code="int some_variable = 0;"
14455
14456 # Code to be used in simple link tests
14457 lt_simple_link_test_code='int main(){return(0);}'
14458
14459
14460
14461
14462
14463
14464
14465 # If no C compiler was specified, use CC.
14466 LTCC=${LTCC-"$CC"}
14467
14468 # If no C compiler flags were specified, use CFLAGS.
14469 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14470
14471 # Allow CC to be a program name with arguments.
14472 compiler=$CC
14473
14474 # Save the default compiler, since it gets overwritten when the other
14475 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14476 compiler_DEFAULT=$CC
14477
14478 # save warnings/boilerplate of simple test code
14479 ac_outfile=conftest.$ac_objext
14480 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14481 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14482 _lt_compiler_boilerplate=`cat conftest.err`
14483 $RM conftest*
14484
14485 ac_outfile=conftest.$ac_objext
14486 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14487 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14488 _lt_linker_boilerplate=`cat conftest.err`
14489 $RM -r conftest*
14490
14491
14492 ## CAVEAT EMPTOR:
14493 ## There is no encapsulation within the following macros, do not change
14494 ## the running order or otherwise move them around unless you know exactly
14495 ## what you are doing...
14496 if test -n "$compiler"; then
14497
14498 lt_prog_compiler_no_builtin_flag=
14499
14500 if test "$GCC" = yes; then
14501   case $cc_basename in
14502   nvcc*)
14503     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14504   *)
14505     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14506   esac
14507
14508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14509 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14510 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14511   $as_echo_n "(cached) " >&6
14512 else
14513   lt_cv_prog_compiler_rtti_exceptions=no
14514    ac_outfile=conftest.$ac_objext
14515    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14516    lt_compiler_flag="-fno-rtti -fno-exceptions"
14517    # Insert the option either (1) after the last *FLAGS variable, or
14518    # (2) before a word containing "conftest.", or (3) at the end.
14519    # Note that $ac_compile itself does not contain backslashes and begins
14520    # with a dollar sign (not a hyphen), so the echo should work correctly.
14521    # The option is referenced via a variable to avoid confusing sed.
14522    lt_compile=`echo "$ac_compile" | $SED \
14523    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14524    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14525    -e 's:$: $lt_compiler_flag:'`
14526    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14527    (eval "$lt_compile" 2>conftest.err)
14528    ac_status=$?
14529    cat conftest.err >&5
14530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531    if (exit $ac_status) && test -s "$ac_outfile"; then
14532      # The compiler can only warn and ignore the option if not recognized
14533      # So say no if there are warnings other than the usual output.
14534      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14535      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14536      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14537        lt_cv_prog_compiler_rtti_exceptions=yes
14538      fi
14539    fi
14540    $RM conftest*
14541
14542 fi
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14544 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14545
14546 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14547     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14548 else
14549     :
14550 fi
14551
14552 fi
14553
14554
14555
14556
14557
14558
14559   lt_prog_compiler_wl=
14560 lt_prog_compiler_pic=
14561 lt_prog_compiler_static=
14562
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14564 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14565
14566   if test "$GCC" = yes; then
14567     lt_prog_compiler_wl='-Wl,'
14568     lt_prog_compiler_static='-static'
14569
14570     case $host_os in
14571       aix*)
14572       # All AIX code is PIC.
14573       if test "$host_cpu" = ia64; then
14574         # AIX 5 now supports IA64 processor
14575         lt_prog_compiler_static='-Bstatic'
14576       fi
14577       ;;
14578
14579     amigaos*)
14580       case $host_cpu in
14581       powerpc)
14582             # see comment about AmigaOS4 .so support
14583             lt_prog_compiler_pic='-fPIC'
14584         ;;
14585       m68k)
14586             # FIXME: we need at least 68020 code to build shared libraries, but
14587             # adding the `-m68020' flag to GCC prevents building anything better,
14588             # like `-m68040'.
14589             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14590         ;;
14591       esac
14592       ;;
14593
14594     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14595       # PIC is the default for these OSes.
14596       ;;
14597
14598     mingw* | cygwin* | pw32* | os2* | cegcc*)
14599       # This hack is so that the source file can tell whether it is being
14600       # built for inclusion in a dll (and should export symbols for example).
14601       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14602       # (--disable-auto-import) libraries
14603       lt_prog_compiler_pic='-DDLL_EXPORT'
14604       ;;
14605
14606     darwin* | rhapsody*)
14607       # PIC is the default on this platform
14608       # Common symbols not allowed in MH_DYLIB files
14609       lt_prog_compiler_pic='-fno-common'
14610       ;;
14611
14612     haiku*)
14613       # PIC is the default for Haiku.
14614       # The "-static" flag exists, but is broken.
14615       lt_prog_compiler_static=
14616       ;;
14617
14618     hpux*)
14619       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14620       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14621       # sets the default TLS model and affects inlining.
14622       case $host_cpu in
14623       hppa*64*)
14624         # +Z the default
14625         ;;
14626       *)
14627         lt_prog_compiler_pic='-fPIC'
14628         ;;
14629       esac
14630       ;;
14631
14632     interix[3-9]*)
14633       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14634       # Instead, we relocate shared libraries at runtime.
14635       ;;
14636
14637     msdosdjgpp*)
14638       # Just because we use GCC doesn't mean we suddenly get shared libraries
14639       # on systems that don't support them.
14640       lt_prog_compiler_can_build_shared=no
14641       enable_shared=no
14642       ;;
14643
14644     *nto* | *qnx*)
14645       # QNX uses GNU C++, but need to define -shared option too, otherwise
14646       # it will coredump.
14647       lt_prog_compiler_pic='-fPIC -shared'
14648       ;;
14649
14650     sysv4*MP*)
14651       if test -d /usr/nec; then
14652         lt_prog_compiler_pic=-Kconform_pic
14653       fi
14654       ;;
14655
14656     *)
14657       lt_prog_compiler_pic='-fPIC'
14658       ;;
14659     esac
14660
14661     case $cc_basename in
14662     nvcc*) # Cuda Compiler Driver 2.2
14663       lt_prog_compiler_wl='-Xlinker '
14664       lt_prog_compiler_pic='-Xcompiler -fPIC'
14665       ;;
14666     esac
14667   else
14668     # PORTME Check for flag to pass linker flags through the system compiler.
14669     case $host_os in
14670     aix*)
14671       lt_prog_compiler_wl='-Wl,'
14672       if test "$host_cpu" = ia64; then
14673         # AIX 5 now supports IA64 processor
14674         lt_prog_compiler_static='-Bstatic'
14675       else
14676         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14677       fi
14678       ;;
14679
14680     mingw* | cygwin* | pw32* | os2* | cegcc*)
14681       # This hack is so that the source file can tell whether it is being
14682       # built for inclusion in a dll (and should export symbols for example).
14683       lt_prog_compiler_pic='-DDLL_EXPORT'
14684       ;;
14685
14686     hpux9* | hpux10* | hpux11*)
14687       lt_prog_compiler_wl='-Wl,'
14688       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14689       # not for PA HP-UX.
14690       case $host_cpu in
14691       hppa*64*|ia64*)
14692         # +Z the default
14693         ;;
14694       *)
14695         lt_prog_compiler_pic='+Z'
14696         ;;
14697       esac
14698       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14699       lt_prog_compiler_static='${wl}-a ${wl}archive'
14700       ;;
14701
14702     irix5* | irix6* | nonstopux*)
14703       lt_prog_compiler_wl='-Wl,'
14704       # PIC (with -KPIC) is the default.
14705       lt_prog_compiler_static='-non_shared'
14706       ;;
14707
14708     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14709       case $cc_basename in
14710       # old Intel for x86_64 which still supported -KPIC.
14711       ecc*)
14712         lt_prog_compiler_wl='-Wl,'
14713         lt_prog_compiler_pic='-KPIC'
14714         lt_prog_compiler_static='-static'
14715         ;;
14716       # icc used to be incompatible with GCC.
14717       # ICC 10 doesn't accept -KPIC any more.
14718       icc* | ifort*)
14719         lt_prog_compiler_wl='-Wl,'
14720         lt_prog_compiler_pic='-fPIC'
14721         lt_prog_compiler_static='-static'
14722         ;;
14723       # Lahey Fortran 8.1.
14724       lf95*)
14725         lt_prog_compiler_wl='-Wl,'
14726         lt_prog_compiler_pic='--shared'
14727         lt_prog_compiler_static='--static'
14728         ;;
14729       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14730         # Portland Group compilers (*not* the Pentium gcc compiler,
14731         # which looks to be a dead project)
14732         lt_prog_compiler_wl='-Wl,'
14733         lt_prog_compiler_pic='-fpic'
14734         lt_prog_compiler_static='-Bstatic'
14735         ;;
14736       ccc*)
14737         lt_prog_compiler_wl='-Wl,'
14738         # All Alpha code is PIC.
14739         lt_prog_compiler_static='-non_shared'
14740         ;;
14741       xl* | bgxl* | bgf* | mpixl*)
14742         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14743         lt_prog_compiler_wl='-Wl,'
14744         lt_prog_compiler_pic='-qpic'
14745         lt_prog_compiler_static='-qstaticlink'
14746         ;;
14747       *)
14748         case `$CC -V 2>&1 | sed 5q` in
14749         *Sun\ F* | *Sun*Fortran*)
14750           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14751           lt_prog_compiler_pic='-KPIC'
14752           lt_prog_compiler_static='-Bstatic'
14753           lt_prog_compiler_wl=''
14754           ;;
14755         *Sun\ C*)
14756           # Sun C 5.9
14757           lt_prog_compiler_pic='-KPIC'
14758           lt_prog_compiler_static='-Bstatic'
14759           lt_prog_compiler_wl='-Wl,'
14760           ;;
14761         esac
14762         ;;
14763       esac
14764       ;;
14765
14766     newsos6)
14767       lt_prog_compiler_pic='-KPIC'
14768       lt_prog_compiler_static='-Bstatic'
14769       ;;
14770
14771     *nto* | *qnx*)
14772       # QNX uses GNU C++, but need to define -shared option too, otherwise
14773       # it will coredump.
14774       lt_prog_compiler_pic='-fPIC -shared'
14775       ;;
14776
14777     osf3* | osf4* | osf5*)
14778       lt_prog_compiler_wl='-Wl,'
14779       # All OSF/1 code is PIC.
14780       lt_prog_compiler_static='-non_shared'
14781       ;;
14782
14783     rdos*)
14784       lt_prog_compiler_static='-non_shared'
14785       ;;
14786
14787     solaris*)
14788       lt_prog_compiler_pic='-KPIC'
14789       lt_prog_compiler_static='-Bstatic'
14790       case $cc_basename in
14791       f77* | f90* | f95*)
14792         lt_prog_compiler_wl='-Qoption ld ';;
14793       *)
14794         lt_prog_compiler_wl='-Wl,';;
14795       esac
14796       ;;
14797
14798     sunos4*)
14799       lt_prog_compiler_wl='-Qoption ld '
14800       lt_prog_compiler_pic='-PIC'
14801       lt_prog_compiler_static='-Bstatic'
14802       ;;
14803
14804     sysv4 | sysv4.2uw2* | sysv4.3*)
14805       lt_prog_compiler_wl='-Wl,'
14806       lt_prog_compiler_pic='-KPIC'
14807       lt_prog_compiler_static='-Bstatic'
14808       ;;
14809
14810     sysv4*MP*)
14811       if test -d /usr/nec ;then
14812         lt_prog_compiler_pic='-Kconform_pic'
14813         lt_prog_compiler_static='-Bstatic'
14814       fi
14815       ;;
14816
14817     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14818       lt_prog_compiler_wl='-Wl,'
14819       lt_prog_compiler_pic='-KPIC'
14820       lt_prog_compiler_static='-Bstatic'
14821       ;;
14822
14823     unicos*)
14824       lt_prog_compiler_wl='-Wl,'
14825       lt_prog_compiler_can_build_shared=no
14826       ;;
14827
14828     uts4*)
14829       lt_prog_compiler_pic='-pic'
14830       lt_prog_compiler_static='-Bstatic'
14831       ;;
14832
14833     *)
14834       lt_prog_compiler_can_build_shared=no
14835       ;;
14836     esac
14837   fi
14838
14839 case $host_os in
14840   # For platforms which do not support PIC, -DPIC is meaningless:
14841   *djgpp*)
14842     lt_prog_compiler_pic=
14843     ;;
14844   *)
14845     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14846     ;;
14847 esac
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14849 $as_echo "$lt_prog_compiler_pic" >&6; }
14850
14851
14852
14853
14854
14855
14856 #
14857 # Check to make sure the PIC flag actually works.
14858 #
14859 if test -n "$lt_prog_compiler_pic"; then
14860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14861 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14862 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14863   $as_echo_n "(cached) " >&6
14864 else
14865   lt_cv_prog_compiler_pic_works=no
14866    ac_outfile=conftest.$ac_objext
14867    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14868    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14869    # Insert the option either (1) after the last *FLAGS variable, or
14870    # (2) before a word containing "conftest.", or (3) at the end.
14871    # Note that $ac_compile itself does not contain backslashes and begins
14872    # with a dollar sign (not a hyphen), so the echo should work correctly.
14873    # The option is referenced via a variable to avoid confusing sed.
14874    lt_compile=`echo "$ac_compile" | $SED \
14875    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14876    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14877    -e 's:$: $lt_compiler_flag:'`
14878    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14879    (eval "$lt_compile" 2>conftest.err)
14880    ac_status=$?
14881    cat conftest.err >&5
14882    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883    if (exit $ac_status) && test -s "$ac_outfile"; then
14884      # The compiler can only warn and ignore the option if not recognized
14885      # So say no if there are warnings other than the usual output.
14886      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14887      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14888      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14889        lt_cv_prog_compiler_pic_works=yes
14890      fi
14891    fi
14892    $RM conftest*
14893
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14896 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14897
14898 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14899     case $lt_prog_compiler_pic in
14900      "" | " "*) ;;
14901      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14902      esac
14903 else
14904     lt_prog_compiler_pic=
14905      lt_prog_compiler_can_build_shared=no
14906 fi
14907
14908 fi
14909
14910
14911
14912
14913
14914
14915 #
14916 # Check to make sure the static flag actually works.
14917 #
14918 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14920 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14921 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14922   $as_echo_n "(cached) " >&6
14923 else
14924   lt_cv_prog_compiler_static_works=no
14925    save_LDFLAGS="$LDFLAGS"
14926    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14927    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14928    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14929      # The linker can only warn and ignore the option if not recognized
14930      # So say no if there are warnings
14931      if test -s conftest.err; then
14932        # Append any errors to the config.log.
14933        cat conftest.err 1>&5
14934        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14935        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14936        if diff conftest.exp conftest.er2 >/dev/null; then
14937          lt_cv_prog_compiler_static_works=yes
14938        fi
14939      else
14940        lt_cv_prog_compiler_static_works=yes
14941      fi
14942    fi
14943    $RM -r conftest*
14944    LDFLAGS="$save_LDFLAGS"
14945
14946 fi
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14948 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14949
14950 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14951     :
14952 else
14953     lt_prog_compiler_static=
14954 fi
14955
14956
14957
14958
14959
14960
14961
14962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14963 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14964 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14965   $as_echo_n "(cached) " >&6
14966 else
14967   lt_cv_prog_compiler_c_o=no
14968    $RM -r conftest 2>/dev/null
14969    mkdir conftest
14970    cd conftest
14971    mkdir out
14972    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14973
14974    lt_compiler_flag="-o out/conftest2.$ac_objext"
14975    # Insert the option either (1) after the last *FLAGS variable, or
14976    # (2) before a word containing "conftest.", or (3) at the end.
14977    # Note that $ac_compile itself does not contain backslashes and begins
14978    # with a dollar sign (not a hyphen), so the echo should work correctly.
14979    lt_compile=`echo "$ac_compile" | $SED \
14980    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14982    -e 's:$: $lt_compiler_flag:'`
14983    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14984    (eval "$lt_compile" 2>out/conftest.err)
14985    ac_status=$?
14986    cat out/conftest.err >&5
14987    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14989    then
14990      # The compiler can only warn and ignore the option if not recognized
14991      # So say no if there are warnings
14992      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14993      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14994      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14995        lt_cv_prog_compiler_c_o=yes
14996      fi
14997    fi
14998    chmod u+w . 2>&5
14999    $RM conftest*
15000    # SGI C++ compiler will create directory out/ii_files/ for
15001    # template instantiation
15002    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15003    $RM out/* && rmdir out
15004    cd ..
15005    $RM -r conftest
15006    $RM conftest*
15007
15008 fi
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15010 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15011
15012
15013
15014
15015
15016
15017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15019 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15020   $as_echo_n "(cached) " >&6
15021 else
15022   lt_cv_prog_compiler_c_o=no
15023    $RM -r conftest 2>/dev/null
15024    mkdir conftest
15025    cd conftest
15026    mkdir out
15027    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15028
15029    lt_compiler_flag="-o out/conftest2.$ac_objext"
15030    # Insert the option either (1) after the last *FLAGS variable, or
15031    # (2) before a word containing "conftest.", or (3) at the end.
15032    # Note that $ac_compile itself does not contain backslashes and begins
15033    # with a dollar sign (not a hyphen), so the echo should work correctly.
15034    lt_compile=`echo "$ac_compile" | $SED \
15035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15037    -e 's:$: $lt_compiler_flag:'`
15038    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15039    (eval "$lt_compile" 2>out/conftest.err)
15040    ac_status=$?
15041    cat out/conftest.err >&5
15042    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15044    then
15045      # The compiler can only warn and ignore the option if not recognized
15046      # So say no if there are warnings
15047      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15048      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15049      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15050        lt_cv_prog_compiler_c_o=yes
15051      fi
15052    fi
15053    chmod u+w . 2>&5
15054    $RM conftest*
15055    # SGI C++ compiler will create directory out/ii_files/ for
15056    # template instantiation
15057    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15058    $RM out/* && rmdir out
15059    cd ..
15060    $RM -r conftest
15061    $RM conftest*
15062
15063 fi
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15065 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15066
15067
15068
15069
15070 hard_links="nottested"
15071 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15072   # do not overwrite the value of need_locks provided by the user
15073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15074 $as_echo_n "checking if we can lock with hard links... " >&6; }
15075   hard_links=yes
15076   $RM conftest*
15077   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15078   touch conftest.a
15079   ln conftest.a conftest.b 2>&5 || hard_links=no
15080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15082 $as_echo "$hard_links" >&6; }
15083   if test "$hard_links" = no; then
15084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15085 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15086     need_locks=warn
15087   fi
15088 else
15089   need_locks=no
15090 fi
15091
15092
15093
15094
15095
15096
15097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15099
15100   runpath_var=
15101   allow_undefined_flag=
15102   always_export_symbols=no
15103   archive_cmds=
15104   archive_expsym_cmds=
15105   compiler_needs_object=no
15106   enable_shared_with_static_runtimes=no
15107   export_dynamic_flag_spec=
15108   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15109   hardcode_automatic=no
15110   hardcode_direct=no
15111   hardcode_direct_absolute=no
15112   hardcode_libdir_flag_spec=
15113   hardcode_libdir_flag_spec_ld=
15114   hardcode_libdir_separator=
15115   hardcode_minus_L=no
15116   hardcode_shlibpath_var=unsupported
15117   inherit_rpath=no
15118   link_all_deplibs=unknown
15119   module_cmds=
15120   module_expsym_cmds=
15121   old_archive_from_new_cmds=
15122   old_archive_from_expsyms_cmds=
15123   thread_safe_flag_spec=
15124   whole_archive_flag_spec=
15125   # include_expsyms should be a list of space-separated symbols to be *always*
15126   # included in the symbol list
15127   include_expsyms=
15128   # exclude_expsyms can be an extended regexp of symbols to exclude
15129   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15130   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15131   # as well as any symbol that contains `d'.
15132   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15133   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15134   # platforms (ab)use it in PIC code, but their linkers get confused if
15135   # the symbol is explicitly referenced.  Since portable code cannot
15136   # rely on this symbol name, it's probably fine to never include it in
15137   # preloaded symbol tables.
15138   # Exclude shared library initialization/finalization symbols.
15139   extract_expsyms_cmds=
15140
15141   case $host_os in
15142   cygwin* | mingw* | pw32* | cegcc*)
15143     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15144     # When not using gcc, we currently assume that we are using
15145     # Microsoft Visual C++.
15146     if test "$GCC" != yes; then
15147       with_gnu_ld=no
15148     fi
15149     ;;
15150   interix*)
15151     # we just hope/assume this is gcc and not c89 (= MSVC++)
15152     with_gnu_ld=yes
15153     ;;
15154   openbsd*)
15155     with_gnu_ld=no
15156     ;;
15157   esac
15158
15159   ld_shlibs=yes
15160
15161   # On some targets, GNU ld is compatible enough with the native linker
15162   # that we're better off using the native interface for both.
15163   lt_use_gnu_ld_interface=no
15164   if test "$with_gnu_ld" = yes; then
15165     case $host_os in
15166       aix*)
15167         # The AIX port of GNU ld has always aspired to compatibility
15168         # with the native linker.  However, as the warning in the GNU ld
15169         # block says, versions before 2.19.5* couldn't really create working
15170         # shared libraries, regardless of the interface used.
15171         case `$LD -v 2>&1` in
15172           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15173           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15174           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15175           *)
15176             lt_use_gnu_ld_interface=yes
15177             ;;
15178         esac
15179         ;;
15180       *)
15181         lt_use_gnu_ld_interface=yes
15182         ;;
15183     esac
15184   fi
15185
15186   if test "$lt_use_gnu_ld_interface" = yes; then
15187     # If archive_cmds runs LD, not CC, wlarc should be empty
15188     wlarc='${wl}'
15189
15190     # Set some defaults for GNU ld with shared library support. These
15191     # are reset later if shared libraries are not supported. Putting them
15192     # here allows them to be overridden if necessary.
15193     runpath_var=LD_RUN_PATH
15194     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15195     export_dynamic_flag_spec='${wl}--export-dynamic'
15196     # ancient GNU ld didn't support --whole-archive et. al.
15197     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15198       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15199     else
15200       whole_archive_flag_spec=
15201     fi
15202     supports_anon_versioning=no
15203     case `$LD -v 2>&1` in
15204       *GNU\ gold*) supports_anon_versioning=yes ;;
15205       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15206       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15207       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15208       *\ 2.11.*) ;; # other 2.11 versions
15209       *) supports_anon_versioning=yes ;;
15210     esac
15211
15212     # See if GNU ld supports shared libraries.
15213     case $host_os in
15214     aix[3-9]*)
15215       # On AIX/PPC, the GNU linker is very broken
15216       if test "$host_cpu" != ia64; then
15217         ld_shlibs=no
15218         cat <<_LT_EOF 1>&2
15219
15220 *** Warning: the GNU linker, at least up to release 2.19, is reported
15221 *** to be unable to reliably create shared libraries on AIX.
15222 *** Therefore, libtool is disabling shared libraries support.  If you
15223 *** really care for shared libraries, you may want to install binutils
15224 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15225 *** You will then need to restart the configuration process.
15226
15227 _LT_EOF
15228       fi
15229       ;;
15230
15231     amigaos*)
15232       case $host_cpu in
15233       powerpc)
15234             # see comment about AmigaOS4 .so support
15235             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15236             archive_expsym_cmds=''
15237         ;;
15238       m68k)
15239             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)'
15240             hardcode_libdir_flag_spec='-L$libdir'
15241             hardcode_minus_L=yes
15242         ;;
15243       esac
15244       ;;
15245
15246     beos*)
15247       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15248         allow_undefined_flag=unsupported
15249         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15250         # support --undefined.  This deserves some investigation.  FIXME
15251         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15252       else
15253         ld_shlibs=no
15254       fi
15255       ;;
15256
15257     cygwin* | mingw* | pw32* | cegcc*)
15258       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15259       # as there is no search path for DLLs.
15260       hardcode_libdir_flag_spec='-L$libdir'
15261       export_dynamic_flag_spec='${wl}--export-all-symbols'
15262       allow_undefined_flag=unsupported
15263       always_export_symbols=no
15264       enable_shared_with_static_runtimes=yes
15265       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15266
15267       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15268         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15269         # If the export-symbols file already is a .def file (1st line
15270         # is EXPORTS), use it as is; otherwise, prepend...
15271         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15272           cp $export_symbols $output_objdir/$soname.def;
15273         else
15274           echo EXPORTS > $output_objdir/$soname.def;
15275           cat $export_symbols >> $output_objdir/$soname.def;
15276         fi~
15277         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15278       else
15279         ld_shlibs=no
15280       fi
15281       ;;
15282
15283     haiku*)
15284       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285       link_all_deplibs=yes
15286       ;;
15287
15288     interix[3-9]*)
15289       hardcode_direct=no
15290       hardcode_shlibpath_var=no
15291       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15292       export_dynamic_flag_spec='${wl}-E'
15293       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15294       # Instead, shared libraries are loaded at an image base (0x10000000 by
15295       # default) and relocated if they conflict, which is a slow very memory
15296       # consuming and fragmenting process.  To avoid this, we pick a random,
15297       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15298       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15299       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15300       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'
15301       ;;
15302
15303     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15304       tmp_diet=no
15305       if test "$host_os" = linux-dietlibc; then
15306         case $cc_basename in
15307           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15308         esac
15309       fi
15310       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15311          && test "$tmp_diet" = no
15312       then
15313         tmp_addflag=
15314         tmp_sharedflag='-shared'
15315         case $cc_basename,$host_cpu in
15316         pgcc*)                          # Portland Group C compiler
15317           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'
15318           tmp_addflag=' $pic_flag'
15319           ;;
15320         pgf77* | pgf90* | pgf95* | pgfortran*)
15321                                         # Portland Group f77 and f90 compilers
15322           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'
15323           tmp_addflag=' $pic_flag -Mnomain' ;;
15324         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15325           tmp_addflag=' -i_dynamic' ;;
15326         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15327           tmp_addflag=' -i_dynamic -nofor_main' ;;
15328         ifc* | ifort*)                  # Intel Fortran compiler
15329           tmp_addflag=' -nofor_main' ;;
15330         lf95*)                          # Lahey Fortran 8.1
15331           whole_archive_flag_spec=
15332           tmp_sharedflag='--shared' ;;
15333         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15334           tmp_sharedflag='-qmkshrobj'
15335           tmp_addflag= ;;
15336         nvcc*)  # Cuda Compiler Driver 2.2
15337           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'
15338           compiler_needs_object=yes
15339           ;;
15340         esac
15341         case `$CC -V 2>&1 | sed 5q` in
15342         *Sun\ C*)                       # Sun C 5.9
15343           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'
15344           compiler_needs_object=yes
15345           tmp_sharedflag='-G' ;;
15346         *Sun\ F*)                       # Sun Fortran 8.3
15347           tmp_sharedflag='-G' ;;
15348         esac
15349         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15350
15351         if test "x$supports_anon_versioning" = xyes; then
15352           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15353             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15354             echo "local: *; };" >> $output_objdir/$libname.ver~
15355             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15356         fi
15357
15358         case $cc_basename in
15359         xlf* | bgf* | bgxlf* | mpixlf*)
15360           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15361           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15362           hardcode_libdir_flag_spec=
15363           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15364           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15365           if test "x$supports_anon_versioning" = xyes; then
15366             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15367               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15368               echo "local: *; };" >> $output_objdir/$libname.ver~
15369               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15370           fi
15371           ;;
15372         esac
15373       else
15374         ld_shlibs=no
15375       fi
15376       ;;
15377
15378     netbsd*)
15379       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15380         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15381         wlarc=
15382       else
15383         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15385       fi
15386       ;;
15387
15388     solaris*)
15389       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15390         ld_shlibs=no
15391         cat <<_LT_EOF 1>&2
15392
15393 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15394 *** create shared libraries on Solaris systems.  Therefore, libtool
15395 *** is disabling shared libraries support.  We urge you to upgrade GNU
15396 *** binutils to release 2.9.1 or newer.  Another option is to modify
15397 *** your PATH or compiler configuration so that the native linker is
15398 *** used, and then restart.
15399
15400 _LT_EOF
15401       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15402         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15403         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15404       else
15405         ld_shlibs=no
15406       fi
15407       ;;
15408
15409     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15410       case `$LD -v 2>&1` in
15411         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15412         ld_shlibs=no
15413         cat <<_LT_EOF 1>&2
15414
15415 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15416 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15417 *** is disabling shared libraries support.  We urge you to upgrade GNU
15418 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15419 *** your PATH or compiler configuration so that the native linker is
15420 *** used, and then restart.
15421
15422 _LT_EOF
15423         ;;
15424         *)
15425           # For security reasons, it is highly recommended that you always
15426           # use absolute paths for naming shared libraries, and exclude the
15427           # DT_RUNPATH tag from executables and libraries.  But doing so
15428           # requires that you compile everything twice, which is a pain.
15429           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15430             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15431             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15433           else
15434             ld_shlibs=no
15435           fi
15436         ;;
15437       esac
15438       ;;
15439
15440     sunos4*)
15441       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15442       wlarc=
15443       hardcode_direct=yes
15444       hardcode_shlibpath_var=no
15445       ;;
15446
15447     *)
15448       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15449         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15450         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15451       else
15452         ld_shlibs=no
15453       fi
15454       ;;
15455     esac
15456
15457     if test "$ld_shlibs" = no; then
15458       runpath_var=
15459       hardcode_libdir_flag_spec=
15460       export_dynamic_flag_spec=
15461       whole_archive_flag_spec=
15462     fi
15463   else
15464     # PORTME fill in a description of your system's linker (not GNU ld)
15465     case $host_os in
15466     aix3*)
15467       allow_undefined_flag=unsupported
15468       always_export_symbols=yes
15469       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'
15470       # Note: this linker hardcodes the directories in LIBPATH if there
15471       # are no directories specified by -L.
15472       hardcode_minus_L=yes
15473       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15474         # Neither direct hardcoding nor static linking is supported with a
15475         # broken collect2.
15476         hardcode_direct=unsupported
15477       fi
15478       ;;
15479
15480     aix[4-9]*)
15481       if test "$host_cpu" = ia64; then
15482         # On IA64, the linker does run time linking by default, so we don't
15483         # have to do anything special.
15484         aix_use_runtimelinking=no
15485         exp_sym_flag='-Bexport'
15486         no_entry_flag=""
15487       else
15488         # If we're using GNU nm, then we don't want the "-C" option.
15489         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15490         # Also, AIX nm treats weak defined symbols like other global
15491         # defined symbols, whereas GNU nm marks them as "W".
15492         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15493           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'
15494         else
15495           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'
15496         fi
15497         aix_use_runtimelinking=no
15498
15499         # Test if we are trying to use run time linking or normal
15500         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15501         # need to do runtime linking.
15502         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15503           for ld_flag in $LDFLAGS; do
15504           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15505             aix_use_runtimelinking=yes
15506             break
15507           fi
15508           done
15509           ;;
15510         esac
15511
15512         exp_sym_flag='-bexport'
15513         no_entry_flag='-bnoentry'
15514       fi
15515
15516       # When large executables or shared objects are built, AIX ld can
15517       # have problems creating the table of contents.  If linking a library
15518       # or program results in "error TOC overflow" add -mminimal-toc to
15519       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15520       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15521
15522       archive_cmds=''
15523       hardcode_direct=yes
15524       hardcode_direct_absolute=yes
15525       hardcode_libdir_separator=':'
15526       link_all_deplibs=yes
15527       file_list_spec='${wl}-f,'
15528
15529       if test "$GCC" = yes; then
15530         case $host_os in aix4.[012]|aix4.[012].*)
15531         # We only want to do this on AIX 4.2 and lower, the check
15532         # below for broken collect2 doesn't work under 4.3+
15533           collect2name=`${CC} -print-prog-name=collect2`
15534           if test -f "$collect2name" &&
15535            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15536           then
15537           # We have reworked collect2
15538           :
15539           else
15540           # We have old collect2
15541           hardcode_direct=unsupported
15542           # It fails to find uninstalled libraries when the uninstalled
15543           # path is not listed in the libpath.  Setting hardcode_minus_L
15544           # to unsupported forces relinking
15545           hardcode_minus_L=yes
15546           hardcode_libdir_flag_spec='-L$libdir'
15547           hardcode_libdir_separator=
15548           fi
15549           ;;
15550         esac
15551         shared_flag='-shared'
15552         if test "$aix_use_runtimelinking" = yes; then
15553           shared_flag="$shared_flag "'${wl}-G'
15554         fi
15555       else
15556         # not using gcc
15557         if test "$host_cpu" = ia64; then
15558         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15559         # chokes on -Wl,-G. The following line is correct:
15560           shared_flag='-G'
15561         else
15562           if test "$aix_use_runtimelinking" = yes; then
15563             shared_flag='${wl}-G'
15564           else
15565             shared_flag='${wl}-bM:SRE'
15566           fi
15567         fi
15568       fi
15569
15570       export_dynamic_flag_spec='${wl}-bexpall'
15571       # It seems that -bexpall does not export symbols beginning with
15572       # underscore (_), so it is better to generate a list of symbols to export.
15573       always_export_symbols=yes
15574       if test "$aix_use_runtimelinking" = yes; then
15575         # Warning - without using the other runtime loading flags (-brtl),
15576         # -berok will link without error, but may produce a broken library.
15577         allow_undefined_flag='-berok'
15578         # Determine the default libpath from the value encoded in an
15579         # empty executable.
15580         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h.  */
15582
15583 int
15584 main ()
15585 {
15586
15587   ;
15588   return 0;
15589 }
15590 _ACEOF
15591 if ac_fn_c_try_link "$LINENO"; then :
15592
15593 lt_aix_libpath_sed='
15594     /Import File Strings/,/^$/ {
15595         /^0/ {
15596             s/^0  *\(.*\)$/\1/
15597             p
15598         }
15599     }'
15600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15601 # Check for a 64-bit object if we didn't find anything.
15602 if test -z "$aix_libpath"; then
15603   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15604 fi
15605 fi
15606 rm -f core conftest.err conftest.$ac_objext \
15607     conftest$ac_exeext conftest.$ac_ext
15608 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15609
15610         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15611         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"
15612       else
15613         if test "$host_cpu" = ia64; then
15614           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15615           allow_undefined_flag="-z nodefs"
15616           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"
15617         else
15618          # Determine the default libpath from the value encoded in an
15619          # empty executable.
15620          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h.  */
15622
15623 int
15624 main ()
15625 {
15626
15627   ;
15628   return 0;
15629 }
15630 _ACEOF
15631 if ac_fn_c_try_link "$LINENO"; then :
15632
15633 lt_aix_libpath_sed='
15634     /Import File Strings/,/^$/ {
15635         /^0/ {
15636             s/^0  *\(.*\)$/\1/
15637             p
15638         }
15639     }'
15640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15641 # Check for a 64-bit object if we didn't find anything.
15642 if test -z "$aix_libpath"; then
15643   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15644 fi
15645 fi
15646 rm -f core conftest.err conftest.$ac_objext \
15647     conftest$ac_exeext conftest.$ac_ext
15648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15649
15650          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15651           # Warning - without using the other run time loading flags,
15652           # -berok will link without error, but may produce a broken library.
15653           no_undefined_flag=' ${wl}-bernotok'
15654           allow_undefined_flag=' ${wl}-berok'
15655           if test "$with_gnu_ld" = yes; then
15656             # We only use this code for GNU lds that support --whole-archive.
15657             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15658           else
15659             # Exported symbols can be pulled into shared objects from archives
15660             whole_archive_flag_spec='$convenience'
15661           fi
15662           archive_cmds_need_lc=yes
15663           # This is similar to how AIX traditionally builds its shared libraries.
15664           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'
15665         fi
15666       fi
15667       ;;
15668
15669     amigaos*)
15670       case $host_cpu in
15671       powerpc)
15672             # see comment about AmigaOS4 .so support
15673             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15674             archive_expsym_cmds=''
15675         ;;
15676       m68k)
15677             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)'
15678             hardcode_libdir_flag_spec='-L$libdir'
15679             hardcode_minus_L=yes
15680         ;;
15681       esac
15682       ;;
15683
15684     bsdi[45]*)
15685       export_dynamic_flag_spec=-rdynamic
15686       ;;
15687
15688     cygwin* | mingw* | pw32* | cegcc*)
15689       # When not using gcc, we currently assume that we are using
15690       # Microsoft Visual C++.
15691       # hardcode_libdir_flag_spec is actually meaningless, as there is
15692       # no search path for DLLs.
15693       hardcode_libdir_flag_spec=' '
15694       allow_undefined_flag=unsupported
15695       # Tell ltmain to make .lib files, not .a files.
15696       libext=lib
15697       # Tell ltmain to make .dll files, not .so files.
15698       shrext_cmds=".dll"
15699       # FIXME: Setting linknames here is a bad hack.
15700       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15701       # The linker will automatically build a .lib file if we build a DLL.
15702       old_archive_from_new_cmds='true'
15703       # FIXME: Should let the user specify the lib program.
15704       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15705       fix_srcfile_path='`cygpath -w "$srcfile"`'
15706       enable_shared_with_static_runtimes=yes
15707       ;;
15708
15709     darwin* | rhapsody*)
15710
15711
15712   archive_cmds_need_lc=no
15713   hardcode_direct=no
15714   hardcode_automatic=yes
15715   hardcode_shlibpath_var=unsupported
15716   if test "$lt_cv_ld_force_load" = "yes"; then
15717     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\"`'
15718   else
15719     whole_archive_flag_spec=''
15720   fi
15721   link_all_deplibs=yes
15722   allow_undefined_flag="$_lt_dar_allow_undefined"
15723   case $cc_basename in
15724      ifort*) _lt_dar_can_shared=yes ;;
15725      *) _lt_dar_can_shared=$GCC ;;
15726   esac
15727   if test "$_lt_dar_can_shared" = "yes"; then
15728     output_verbose_link_cmd=func_echo_all
15729     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15730     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15731     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}"
15732     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}"
15733
15734   else
15735   ld_shlibs=no
15736   fi
15737
15738       ;;
15739
15740     dgux*)
15741       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742       hardcode_libdir_flag_spec='-L$libdir'
15743       hardcode_shlibpath_var=no
15744       ;;
15745
15746     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15747     # support.  Future versions do this automatically, but an explicit c++rt0.o
15748     # does not break anything, and helps significantly (at the cost of a little
15749     # extra space).
15750     freebsd2.2*)
15751       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15752       hardcode_libdir_flag_spec='-R$libdir'
15753       hardcode_direct=yes
15754       hardcode_shlibpath_var=no
15755       ;;
15756
15757     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15758     freebsd2*)
15759       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15760       hardcode_direct=yes
15761       hardcode_minus_L=yes
15762       hardcode_shlibpath_var=no
15763       ;;
15764
15765     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15766     freebsd* | dragonfly*)
15767       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15768       hardcode_libdir_flag_spec='-R$libdir'
15769       hardcode_direct=yes
15770       hardcode_shlibpath_var=no
15771       ;;
15772
15773     hpux9*)
15774       if test "$GCC" = yes; then
15775         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'
15776       else
15777         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'
15778       fi
15779       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15780       hardcode_libdir_separator=:
15781       hardcode_direct=yes
15782
15783       # hardcode_minus_L: Not really in the search PATH,
15784       # but as the default location of the library.
15785       hardcode_minus_L=yes
15786       export_dynamic_flag_spec='${wl}-E'
15787       ;;
15788
15789     hpux10*)
15790       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15791         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15792       else
15793         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15794       fi
15795       if test "$with_gnu_ld" = no; then
15796         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15797         hardcode_libdir_flag_spec_ld='+b $libdir'
15798         hardcode_libdir_separator=:
15799         hardcode_direct=yes
15800         hardcode_direct_absolute=yes
15801         export_dynamic_flag_spec='${wl}-E'
15802         # hardcode_minus_L: Not really in the search PATH,
15803         # but as the default location of the library.
15804         hardcode_minus_L=yes
15805       fi
15806       ;;
15807
15808     hpux11*)
15809       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15810         case $host_cpu in
15811         hppa*64*)
15812           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15813           ;;
15814         ia64*)
15815           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15816           ;;
15817         *)
15818           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15819           ;;
15820         esac
15821       else
15822         case $host_cpu in
15823         hppa*64*)
15824           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15825           ;;
15826         ia64*)
15827           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15828           ;;
15829         *)
15830
15831           # Older versions of the 11.00 compiler do not understand -b yet
15832           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15833           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15834 $as_echo_n "checking if $CC understands -b... " >&6; }
15835 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15836   $as_echo_n "(cached) " >&6
15837 else
15838   lt_cv_prog_compiler__b=no
15839    save_LDFLAGS="$LDFLAGS"
15840    LDFLAGS="$LDFLAGS -b"
15841    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15842    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15843      # The linker can only warn and ignore the option if not recognized
15844      # So say no if there are warnings
15845      if test -s conftest.err; then
15846        # Append any errors to the config.log.
15847        cat conftest.err 1>&5
15848        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15849        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15850        if diff conftest.exp conftest.er2 >/dev/null; then
15851          lt_cv_prog_compiler__b=yes
15852        fi
15853      else
15854        lt_cv_prog_compiler__b=yes
15855      fi
15856    fi
15857    $RM -r conftest*
15858    LDFLAGS="$save_LDFLAGS"
15859
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15862 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15863
15864 if test x"$lt_cv_prog_compiler__b" = xyes; then
15865     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15866 else
15867     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15868 fi
15869
15870           ;;
15871         esac
15872       fi
15873       if test "$with_gnu_ld" = no; then
15874         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15875         hardcode_libdir_separator=:
15876
15877         case $host_cpu in
15878         hppa*64*|ia64*)
15879           hardcode_direct=no
15880           hardcode_shlibpath_var=no
15881           ;;
15882         *)
15883           hardcode_direct=yes
15884           hardcode_direct_absolute=yes
15885           export_dynamic_flag_spec='${wl}-E'
15886
15887           # hardcode_minus_L: Not really in the search PATH,
15888           # but as the default location of the library.
15889           hardcode_minus_L=yes
15890           ;;
15891         esac
15892       fi
15893       ;;
15894
15895     irix5* | irix6* | nonstopux*)
15896       if test "$GCC" = yes; then
15897         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'
15898         # Try to use the -exported_symbol ld option, if it does not
15899         # work, assume that -exports_file does not work either and
15900         # implicitly export all symbols.
15901         save_LDFLAGS="$LDFLAGS"
15902         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15903         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h.  */
15905 int foo(void) {}
15906 _ACEOF
15907 if ac_fn_c_try_link "$LINENO"; then :
15908   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'
15909
15910 fi
15911 rm -f core conftest.err conftest.$ac_objext \
15912     conftest$ac_exeext conftest.$ac_ext
15913         LDFLAGS="$save_LDFLAGS"
15914       else
15915         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'
15916         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'
15917       fi
15918       archive_cmds_need_lc='no'
15919       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15920       hardcode_libdir_separator=:
15921       inherit_rpath=yes
15922       link_all_deplibs=yes
15923       ;;
15924
15925     netbsd*)
15926       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15927         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15928       else
15929         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15930       fi
15931       hardcode_libdir_flag_spec='-R$libdir'
15932       hardcode_direct=yes
15933       hardcode_shlibpath_var=no
15934       ;;
15935
15936     newsos6)
15937       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15938       hardcode_direct=yes
15939       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15940       hardcode_libdir_separator=:
15941       hardcode_shlibpath_var=no
15942       ;;
15943
15944     *nto* | *qnx*)
15945       ;;
15946
15947     openbsd*)
15948       if test -f /usr/libexec/ld.so; then
15949         hardcode_direct=yes
15950         hardcode_shlibpath_var=no
15951         hardcode_direct_absolute=yes
15952         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15953           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15954           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15955           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15956           export_dynamic_flag_spec='${wl}-E'
15957         else
15958           case $host_os in
15959            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15960              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15961              hardcode_libdir_flag_spec='-R$libdir'
15962              ;;
15963            *)
15964              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15965              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15966              ;;
15967           esac
15968         fi
15969       else
15970         ld_shlibs=no
15971       fi
15972       ;;
15973
15974     os2*)
15975       hardcode_libdir_flag_spec='-L$libdir'
15976       hardcode_minus_L=yes
15977       allow_undefined_flag=unsupported
15978       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'
15979       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15980       ;;
15981
15982     osf3*)
15983       if test "$GCC" = yes; then
15984         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15985         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'
15986       else
15987         allow_undefined_flag=' -expect_unresolved \*'
15988         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'
15989       fi
15990       archive_cmds_need_lc='no'
15991       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15992       hardcode_libdir_separator=:
15993       ;;
15994
15995     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15996       if test "$GCC" = yes; then
15997         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15998         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'
15999         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16000       else
16001         allow_undefined_flag=' -expect_unresolved \*'
16002         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'
16003         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~
16004         $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'
16005
16006         # Both c and cxx compiler support -rpath directly
16007         hardcode_libdir_flag_spec='-rpath $libdir'
16008       fi
16009       archive_cmds_need_lc='no'
16010       hardcode_libdir_separator=:
16011       ;;
16012
16013     solaris*)
16014       no_undefined_flag=' -z defs'
16015       if test "$GCC" = yes; then
16016         wlarc='${wl}'
16017         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16018         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16019           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16020       else
16021         case `$CC -V 2>&1` in
16022         *"Compilers 5.0"*)
16023           wlarc=''
16024           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16025           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16026           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16027           ;;
16028         *)
16029           wlarc='${wl}'
16030           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16031           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16032           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16033           ;;
16034         esac
16035       fi
16036       hardcode_libdir_flag_spec='-R$libdir'
16037       hardcode_shlibpath_var=no
16038       case $host_os in
16039       solaris2.[0-5] | solaris2.[0-5].*) ;;
16040       *)
16041         # The compiler driver will combine and reorder linker options,
16042         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16043         # but is careful enough not to reorder.
16044         # Supported since Solaris 2.6 (maybe 2.5.1?)
16045         if test "$GCC" = yes; then
16046           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16047         else
16048           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16049         fi
16050         ;;
16051       esac
16052       link_all_deplibs=yes
16053       ;;
16054
16055     sunos4*)
16056       if test "x$host_vendor" = xsequent; then
16057         # Use $CC to link under sequent, because it throws in some extra .o
16058         # files that make .init and .fini sections work.
16059         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16060       else
16061         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16062       fi
16063       hardcode_libdir_flag_spec='-L$libdir'
16064       hardcode_direct=yes
16065       hardcode_minus_L=yes
16066       hardcode_shlibpath_var=no
16067       ;;
16068
16069     sysv4)
16070       case $host_vendor in
16071         sni)
16072           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16073           hardcode_direct=yes # is this really true???
16074         ;;
16075         siemens)
16076           ## LD is ld it makes a PLAMLIB
16077           ## CC just makes a GrossModule.
16078           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16079           reload_cmds='$CC -r -o $output$reload_objs'
16080           hardcode_direct=no
16081         ;;
16082         motorola)
16083           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16084           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16085         ;;
16086       esac
16087       runpath_var='LD_RUN_PATH'
16088       hardcode_shlibpath_var=no
16089       ;;
16090
16091     sysv4.3*)
16092       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093       hardcode_shlibpath_var=no
16094       export_dynamic_flag_spec='-Bexport'
16095       ;;
16096
16097     sysv4*MP*)
16098       if test -d /usr/nec; then
16099         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16100         hardcode_shlibpath_var=no
16101         runpath_var=LD_RUN_PATH
16102         hardcode_runpath_var=yes
16103         ld_shlibs=yes
16104       fi
16105       ;;
16106
16107     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16108       no_undefined_flag='${wl}-z,text'
16109       archive_cmds_need_lc=no
16110       hardcode_shlibpath_var=no
16111       runpath_var='LD_RUN_PATH'
16112
16113       if test "$GCC" = yes; then
16114         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16115         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16116       else
16117         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16118         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16119       fi
16120       ;;
16121
16122     sysv5* | sco3.2v5* | sco5v6*)
16123       # Note: We can NOT use -z defs as we might desire, because we do not
16124       # link with -lc, and that would cause any symbols used from libc to
16125       # always be unresolved, which means just about no library would
16126       # ever link correctly.  If we're not using GNU ld we use -z text
16127       # though, which does catch some bad symbols but isn't as heavy-handed
16128       # as -z defs.
16129       no_undefined_flag='${wl}-z,text'
16130       allow_undefined_flag='${wl}-z,nodefs'
16131       archive_cmds_need_lc=no
16132       hardcode_shlibpath_var=no
16133       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16134       hardcode_libdir_separator=':'
16135       link_all_deplibs=yes
16136       export_dynamic_flag_spec='${wl}-Bexport'
16137       runpath_var='LD_RUN_PATH'
16138
16139       if test "$GCC" = yes; then
16140         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142       else
16143         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16144         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145       fi
16146       ;;
16147
16148     uts4*)
16149       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150       hardcode_libdir_flag_spec='-L$libdir'
16151       hardcode_shlibpath_var=no
16152       ;;
16153
16154     *)
16155       ld_shlibs=no
16156       ;;
16157     esac
16158
16159     if test x$host_vendor = xsni; then
16160       case $host in
16161       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16162         export_dynamic_flag_spec='${wl}-Blargedynsym'
16163         ;;
16164       esac
16165     fi
16166   fi
16167
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16169 $as_echo "$ld_shlibs" >&6; }
16170 test "$ld_shlibs" = no && can_build_shared=no
16171
16172 with_gnu_ld=$with_gnu_ld
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188 #
16189 # Do we need to explicitly link libc?
16190 #
16191 case "x$archive_cmds_need_lc" in
16192 x|xyes)
16193   # Assume -lc should be added
16194   archive_cmds_need_lc=yes
16195
16196   if test "$enable_shared" = yes && test "$GCC" = yes; then
16197     case $archive_cmds in
16198     *'~'*)
16199       # FIXME: we may have to deal with multi-command sequences.
16200       ;;
16201     '$CC '*)
16202       # Test whether the compiler implicitly links with -lc since on some
16203       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16204       # to ld, don't add -lc before -lgcc.
16205       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16206 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16207 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16208   $as_echo_n "(cached) " >&6
16209 else
16210   $RM conftest*
16211         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16212
16213         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16214   (eval $ac_compile) 2>&5
16215   ac_status=$?
16216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16217   test $ac_status = 0; } 2>conftest.err; then
16218           soname=conftest
16219           lib=conftest
16220           libobjs=conftest.$ac_objext
16221           deplibs=
16222           wl=$lt_prog_compiler_wl
16223           pic_flag=$lt_prog_compiler_pic
16224           compiler_flags=-v
16225           linker_flags=-v
16226           verstring=
16227           output_objdir=.
16228           libname=conftest
16229           lt_save_allow_undefined_flag=$allow_undefined_flag
16230           allow_undefined_flag=
16231           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16232   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16233   ac_status=$?
16234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16235   test $ac_status = 0; }
16236           then
16237             lt_cv_archive_cmds_need_lc=no
16238           else
16239             lt_cv_archive_cmds_need_lc=yes
16240           fi
16241           allow_undefined_flag=$lt_save_allow_undefined_flag
16242         else
16243           cat conftest.err 1>&5
16244         fi
16245         $RM conftest*
16246
16247 fi
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16249 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16250       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16251       ;;
16252     esac
16253   fi
16254   ;;
16255 esac
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16414 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16415
16416 if test "$GCC" = yes; then
16417   case $host_os in
16418     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16419     *) lt_awk_arg="/^libraries:/" ;;
16420   esac
16421   case $host_os in
16422     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16423     *) lt_sed_strip_eq="s,=/,/,g" ;;
16424   esac
16425   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16426   case $lt_search_path_spec in
16427   *\;*)
16428     # if the path contains ";" then we assume it to be the separator
16429     # otherwise default to the standard path separator (i.e. ":") - it is
16430     # assumed that no part of a normal pathname contains ";" but that should
16431     # okay in the real world where ";" in dirpaths is itself problematic.
16432     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16433     ;;
16434   *)
16435     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16436     ;;
16437   esac
16438   # Ok, now we have the path, separated by spaces, we can step through it
16439   # and add multilib dir if necessary.
16440   lt_tmp_lt_search_path_spec=
16441   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16442   for lt_sys_path in $lt_search_path_spec; do
16443     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16444       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16445     else
16446       test -d "$lt_sys_path" && \
16447         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16448     fi
16449   done
16450   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16451 BEGIN {RS=" "; FS="/|\n";} {
16452   lt_foo="";
16453   lt_count=0;
16454   for (lt_i = NF; lt_i > 0; lt_i--) {
16455     if ($lt_i != "" && $lt_i != ".") {
16456       if ($lt_i == "..") {
16457         lt_count++;
16458       } else {
16459         if (lt_count == 0) {
16460           lt_foo="/" $lt_i lt_foo;
16461         } else {
16462           lt_count--;
16463         }
16464       }
16465     }
16466   }
16467   if (lt_foo != "") { lt_freq[lt_foo]++; }
16468   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16469 }'`
16470   # AWK program above erroneously prepends '/' to C:/dos/paths
16471   # for these hosts.
16472   case $host_os in
16473     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16474       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16475   esac
16476   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16477 else
16478   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16479 fi
16480 library_names_spec=
16481 libname_spec='lib$name'
16482 soname_spec=
16483 shrext_cmds=".so"
16484 postinstall_cmds=
16485 postuninstall_cmds=
16486 finish_cmds=
16487 finish_eval=
16488 shlibpath_var=
16489 shlibpath_overrides_runpath=unknown
16490 version_type=none
16491 dynamic_linker="$host_os ld.so"
16492 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16493 need_lib_prefix=unknown
16494 hardcode_into_libs=no
16495
16496 # when you set need_version to no, make sure it does not cause -set_version
16497 # flags to be left without arguments
16498 need_version=unknown
16499
16500 case $host_os in
16501 aix3*)
16502   version_type=linux
16503   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16504   shlibpath_var=LIBPATH
16505
16506   # AIX 3 has no versioning support, so we append a major version to the name.
16507   soname_spec='${libname}${release}${shared_ext}$major'
16508   ;;
16509
16510 aix[4-9]*)
16511   version_type=linux
16512   need_lib_prefix=no
16513   need_version=no
16514   hardcode_into_libs=yes
16515   if test "$host_cpu" = ia64; then
16516     # AIX 5 supports IA64
16517     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16518     shlibpath_var=LD_LIBRARY_PATH
16519   else
16520     # With GCC up to 2.95.x, collect2 would create an import file
16521     # for dependence libraries.  The import file would start with
16522     # the line `#! .'.  This would cause the generated library to
16523     # depend on `.', always an invalid library.  This was fixed in
16524     # development snapshots of GCC prior to 3.0.
16525     case $host_os in
16526       aix4 | aix4.[01] | aix4.[01].*)
16527       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16528            echo ' yes '
16529            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16530         :
16531       else
16532         can_build_shared=no
16533       fi
16534       ;;
16535     esac
16536     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16537     # soname into executable. Probably we can add versioning support to
16538     # collect2, so additional links can be useful in future.
16539     if test "$aix_use_runtimelinking" = yes; then
16540       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16541       # instead of lib<name>.a to let people know that these are not
16542       # typical AIX shared libraries.
16543       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16544     else
16545       # We preserve .a as extension for shared libraries through AIX4.2
16546       # and later when we are not doing run time linking.
16547       library_names_spec='${libname}${release}.a $libname.a'
16548       soname_spec='${libname}${release}${shared_ext}$major'
16549     fi
16550     shlibpath_var=LIBPATH
16551   fi
16552   ;;
16553
16554 amigaos*)
16555   case $host_cpu in
16556   powerpc)
16557     # Since July 2007 AmigaOS4 officially supports .so libraries.
16558     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560     ;;
16561   m68k)
16562     library_names_spec='$libname.ixlibrary $libname.a'
16563     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16564     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'
16565     ;;
16566   esac
16567   ;;
16568
16569 beos*)
16570   library_names_spec='${libname}${shared_ext}'
16571   dynamic_linker="$host_os ld.so"
16572   shlibpath_var=LIBRARY_PATH
16573   ;;
16574
16575 bsdi[45]*)
16576   version_type=linux
16577   need_version=no
16578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579   soname_spec='${libname}${release}${shared_ext}$major'
16580   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16581   shlibpath_var=LD_LIBRARY_PATH
16582   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16583   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16584   # the default ld.so.conf also contains /usr/contrib/lib and
16585   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16586   # libtool to hard-code these into programs
16587   ;;
16588
16589 cygwin* | mingw* | pw32* | cegcc*)
16590   version_type=windows
16591   shrext_cmds=".dll"
16592   need_version=no
16593   need_lib_prefix=no
16594
16595   case $GCC,$host_os in
16596   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16597     library_names_spec='$libname.dll.a'
16598     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16599     postinstall_cmds='base_file=`basename \${file}`~
16600       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16601       dldir=$destdir/`dirname \$dlpath`~
16602       test -d \$dldir || mkdir -p \$dldir~
16603       $install_prog $dir/$dlname \$dldir/$dlname~
16604       chmod a+x \$dldir/$dlname~
16605       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16606         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16607       fi'
16608     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16609       dlpath=$dir/\$dldll~
16610        $RM \$dlpath'
16611     shlibpath_overrides_runpath=yes
16612
16613     case $host_os in
16614     cygwin*)
16615       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16616       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16617
16618       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16619       ;;
16620     mingw* | cegcc*)
16621       # MinGW DLLs use traditional 'lib' prefix
16622       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16623       ;;
16624     pw32*)
16625       # pw32 DLLs use 'pw' prefix rather than 'lib'
16626       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16627       ;;
16628     esac
16629     ;;
16630
16631   *)
16632     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16633     ;;
16634   esac
16635   dynamic_linker='Win32 ld.exe'
16636   # FIXME: first we should search . and the directory the executable is in
16637   shlibpath_var=PATH
16638   ;;
16639
16640 darwin* | rhapsody*)
16641   dynamic_linker="$host_os dyld"
16642   version_type=darwin
16643   need_lib_prefix=no
16644   need_version=no
16645   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16646   soname_spec='${libname}${release}${major}$shared_ext'
16647   shlibpath_overrides_runpath=yes
16648   shlibpath_var=DYLD_LIBRARY_PATH
16649   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16650
16651   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16652   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16653   ;;
16654
16655 dgux*)
16656   version_type=linux
16657   need_lib_prefix=no
16658   need_version=no
16659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16660   soname_spec='${libname}${release}${shared_ext}$major'
16661   shlibpath_var=LD_LIBRARY_PATH
16662   ;;
16663
16664 freebsd* | dragonfly*)
16665   # DragonFly does not have aout.  When/if they implement a new
16666   # versioning mechanism, adjust this.
16667   if test -x /usr/bin/objformat; then
16668     objformat=`/usr/bin/objformat`
16669   else
16670     case $host_os in
16671     freebsd[123]*) objformat=aout ;;
16672     *) objformat=elf ;;
16673     esac
16674   fi
16675   version_type=freebsd-$objformat
16676   case $version_type in
16677     freebsd-elf*)
16678       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16679       need_version=no
16680       need_lib_prefix=no
16681       ;;
16682     freebsd-*)
16683       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16684       need_version=yes
16685       ;;
16686   esac
16687   shlibpath_var=LD_LIBRARY_PATH
16688   case $host_os in
16689   freebsd2*)
16690     shlibpath_overrides_runpath=yes
16691     ;;
16692   freebsd3.[01]* | freebsdelf3.[01]*)
16693     shlibpath_overrides_runpath=yes
16694     hardcode_into_libs=yes
16695     ;;
16696   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16697   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16698     shlibpath_overrides_runpath=no
16699     hardcode_into_libs=yes
16700     ;;
16701   *) # from 4.6 on, and DragonFly
16702     shlibpath_overrides_runpath=yes
16703     hardcode_into_libs=yes
16704     ;;
16705   esac
16706   ;;
16707
16708 gnu*)
16709   version_type=linux
16710   need_lib_prefix=no
16711   need_version=no
16712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16713   soname_spec='${libname}${release}${shared_ext}$major'
16714   shlibpath_var=LD_LIBRARY_PATH
16715   hardcode_into_libs=yes
16716   ;;
16717
16718 haiku*)
16719   version_type=linux
16720   need_lib_prefix=no
16721   need_version=no
16722   dynamic_linker="$host_os runtime_loader"
16723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16724   soname_spec='${libname}${release}${shared_ext}$major'
16725   shlibpath_var=LIBRARY_PATH
16726   shlibpath_overrides_runpath=yes
16727   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16728   hardcode_into_libs=yes
16729   ;;
16730
16731 hpux9* | hpux10* | hpux11*)
16732   # Give a soname corresponding to the major version so that dld.sl refuses to
16733   # link against other versions.
16734   version_type=sunos
16735   need_lib_prefix=no
16736   need_version=no
16737   case $host_cpu in
16738   ia64*)
16739     shrext_cmds='.so'
16740     hardcode_into_libs=yes
16741     dynamic_linker="$host_os dld.so"
16742     shlibpath_var=LD_LIBRARY_PATH
16743     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745     soname_spec='${libname}${release}${shared_ext}$major'
16746     if test "X$HPUX_IA64_MODE" = X32; then
16747       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16748     else
16749       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16750     fi
16751     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16752     ;;
16753   hppa*64*)
16754     shrext_cmds='.sl'
16755     hardcode_into_libs=yes
16756     dynamic_linker="$host_os dld.sl"
16757     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16758     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760     soname_spec='${libname}${release}${shared_ext}$major'
16761     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16762     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16763     ;;
16764   *)
16765     shrext_cmds='.sl'
16766     dynamic_linker="$host_os dld.sl"
16767     shlibpath_var=SHLIB_PATH
16768     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16770     soname_spec='${libname}${release}${shared_ext}$major'
16771     ;;
16772   esac
16773   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16774   postinstall_cmds='chmod 555 $lib'
16775   # or fails outright, so override atomically:
16776   install_override_mode=555
16777   ;;
16778
16779 interix[3-9]*)
16780   version_type=linux
16781   need_lib_prefix=no
16782   need_version=no
16783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16784   soname_spec='${libname}${release}${shared_ext}$major'
16785   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16786   shlibpath_var=LD_LIBRARY_PATH
16787   shlibpath_overrides_runpath=no
16788   hardcode_into_libs=yes
16789   ;;
16790
16791 irix5* | irix6* | nonstopux*)
16792   case $host_os in
16793     nonstopux*) version_type=nonstopux ;;
16794     *)
16795         if test "$lt_cv_prog_gnu_ld" = yes; then
16796                 version_type=linux
16797         else
16798                 version_type=irix
16799         fi ;;
16800   esac
16801   need_lib_prefix=no
16802   need_version=no
16803   soname_spec='${libname}${release}${shared_ext}$major'
16804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16805   case $host_os in
16806   irix5* | nonstopux*)
16807     libsuff= shlibsuff=
16808     ;;
16809   *)
16810     case $LD in # libtool.m4 will add one of these switches to LD
16811     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16812       libsuff= shlibsuff= libmagic=32-bit;;
16813     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16814       libsuff=32 shlibsuff=N32 libmagic=N32;;
16815     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16816       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16817     *) libsuff= shlibsuff= libmagic=never-match;;
16818     esac
16819     ;;
16820   esac
16821   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16822   shlibpath_overrides_runpath=no
16823   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16824   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16825   hardcode_into_libs=yes
16826   ;;
16827
16828 # No shared lib support for Linux oldld, aout, or coff.
16829 linux*oldld* | linux*aout* | linux*coff*)
16830   dynamic_linker=no
16831   ;;
16832
16833 # This must be Linux ELF.
16834 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16835   version_type=linux
16836   need_lib_prefix=no
16837   need_version=no
16838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839   soname_spec='${libname}${release}${shared_ext}$major'
16840   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16841   shlibpath_var=LD_LIBRARY_PATH
16842   shlibpath_overrides_runpath=no
16843
16844   # Some binutils ld are patched to set DT_RUNPATH
16845   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16846   $as_echo_n "(cached) " >&6
16847 else
16848   lt_cv_shlibpath_overrides_runpath=no
16849     save_LDFLAGS=$LDFLAGS
16850     save_libdir=$libdir
16851     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16852          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16853     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h.  */
16855
16856 int
16857 main ()
16858 {
16859
16860   ;
16861   return 0;
16862 }
16863 _ACEOF
16864 if ac_fn_c_try_link "$LINENO"; then :
16865   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16866   lt_cv_shlibpath_overrides_runpath=yes
16867 fi
16868 fi
16869 rm -f core conftest.err conftest.$ac_objext \
16870     conftest$ac_exeext conftest.$ac_ext
16871     LDFLAGS=$save_LDFLAGS
16872     libdir=$save_libdir
16873
16874 fi
16875
16876   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16877
16878   # This implies no fast_install, which is unacceptable.
16879   # Some rework will be needed to allow for fast_install
16880   # before this can be enabled.
16881   hardcode_into_libs=yes
16882
16883   # Append ld.so.conf contents to the search path
16884   if test -f /etc/ld.so.conf; then
16885     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' ' '`
16886     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16887   fi
16888
16889   # We used to test for /lib/ld.so.1 and disable shared libraries on
16890   # powerpc, because MkLinux only supported shared libraries with the
16891   # GNU dynamic linker.  Since this was broken with cross compilers,
16892   # most powerpc-linux boxes support dynamic linking these days and
16893   # people can always --disable-shared, the test was removed, and we
16894   # assume the GNU/Linux dynamic linker is in use.
16895   dynamic_linker='GNU/Linux ld.so'
16896   ;;
16897
16898 netbsd*)
16899   version_type=sunos
16900   need_lib_prefix=no
16901   need_version=no
16902   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16904     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16905     dynamic_linker='NetBSD (a.out) ld.so'
16906   else
16907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16908     soname_spec='${libname}${release}${shared_ext}$major'
16909     dynamic_linker='NetBSD ld.elf_so'
16910   fi
16911   shlibpath_var=LD_LIBRARY_PATH
16912   shlibpath_overrides_runpath=yes
16913   hardcode_into_libs=yes
16914   ;;
16915
16916 newsos6)
16917   version_type=linux
16918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16919   shlibpath_var=LD_LIBRARY_PATH
16920   shlibpath_overrides_runpath=yes
16921   ;;
16922
16923 *nto* | *qnx*)
16924   version_type=qnx
16925   need_lib_prefix=no
16926   need_version=no
16927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928   soname_spec='${libname}${release}${shared_ext}$major'
16929   shlibpath_var=LD_LIBRARY_PATH
16930   shlibpath_overrides_runpath=no
16931   hardcode_into_libs=yes
16932   dynamic_linker='ldqnx.so'
16933   ;;
16934
16935 openbsd*)
16936   version_type=sunos
16937   sys_lib_dlsearch_path_spec="/usr/lib"
16938   need_lib_prefix=no
16939   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16940   case $host_os in
16941     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16942     *)                          need_version=no  ;;
16943   esac
16944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16945   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16946   shlibpath_var=LD_LIBRARY_PATH
16947   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16948     case $host_os in
16949       openbsd2.[89] | openbsd2.[89].*)
16950         shlibpath_overrides_runpath=no
16951         ;;
16952       *)
16953         shlibpath_overrides_runpath=yes
16954         ;;
16955       esac
16956   else
16957     shlibpath_overrides_runpath=yes
16958   fi
16959   ;;
16960
16961 os2*)
16962   libname_spec='$name'
16963   shrext_cmds=".dll"
16964   need_lib_prefix=no
16965   library_names_spec='$libname${shared_ext} $libname.a'
16966   dynamic_linker='OS/2 ld.exe'
16967   shlibpath_var=LIBPATH
16968   ;;
16969
16970 osf3* | osf4* | osf5*)
16971   version_type=osf
16972   need_lib_prefix=no
16973   need_version=no
16974   soname_spec='${libname}${release}${shared_ext}$major'
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976   shlibpath_var=LD_LIBRARY_PATH
16977   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16978   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16979   ;;
16980
16981 rdos*)
16982   dynamic_linker=no
16983   ;;
16984
16985 solaris*)
16986   version_type=linux
16987   need_lib_prefix=no
16988   need_version=no
16989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16990   soname_spec='${libname}${release}${shared_ext}$major'
16991   shlibpath_var=LD_LIBRARY_PATH
16992   shlibpath_overrides_runpath=yes
16993   hardcode_into_libs=yes
16994   # ldd complains unless libraries are executable
16995   postinstall_cmds='chmod +x $lib'
16996   ;;
16997
16998 sunos4*)
16999   version_type=sunos
17000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17001   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17002   shlibpath_var=LD_LIBRARY_PATH
17003   shlibpath_overrides_runpath=yes
17004   if test "$with_gnu_ld" = yes; then
17005     need_lib_prefix=no
17006   fi
17007   need_version=yes
17008   ;;
17009
17010 sysv4 | sysv4.3*)
17011   version_type=linux
17012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013   soname_spec='${libname}${release}${shared_ext}$major'
17014   shlibpath_var=LD_LIBRARY_PATH
17015   case $host_vendor in
17016     sni)
17017       shlibpath_overrides_runpath=no
17018       need_lib_prefix=no
17019       runpath_var=LD_RUN_PATH
17020       ;;
17021     siemens)
17022       need_lib_prefix=no
17023       ;;
17024     motorola)
17025       need_lib_prefix=no
17026       need_version=no
17027       shlibpath_overrides_runpath=no
17028       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17029       ;;
17030   esac
17031   ;;
17032
17033 sysv4*MP*)
17034   if test -d /usr/nec ;then
17035     version_type=linux
17036     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17037     soname_spec='$libname${shared_ext}.$major'
17038     shlibpath_var=LD_LIBRARY_PATH
17039   fi
17040   ;;
17041
17042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17043   version_type=freebsd-elf
17044   need_lib_prefix=no
17045   need_version=no
17046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17047   soname_spec='${libname}${release}${shared_ext}$major'
17048   shlibpath_var=LD_LIBRARY_PATH
17049   shlibpath_overrides_runpath=yes
17050   hardcode_into_libs=yes
17051   if test "$with_gnu_ld" = yes; then
17052     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17053   else
17054     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17055     case $host_os in
17056       sco3.2v5*)
17057         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17058         ;;
17059     esac
17060   fi
17061   sys_lib_dlsearch_path_spec='/usr/lib'
17062   ;;
17063
17064 tpf*)
17065   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17066   version_type=linux
17067   need_lib_prefix=no
17068   need_version=no
17069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070   shlibpath_var=LD_LIBRARY_PATH
17071   shlibpath_overrides_runpath=no
17072   hardcode_into_libs=yes
17073   ;;
17074
17075 uts4*)
17076   version_type=linux
17077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078   soname_spec='${libname}${release}${shared_ext}$major'
17079   shlibpath_var=LD_LIBRARY_PATH
17080   ;;
17081
17082 *)
17083   dynamic_linker=no
17084   ;;
17085 esac
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17087 $as_echo "$dynamic_linker" >&6; }
17088 test "$dynamic_linker" = no && can_build_shared=no
17089
17090 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17091 if test "$GCC" = yes; then
17092   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17093 fi
17094
17095 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17096   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17097 fi
17098 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17099   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17100 fi
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17194 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17195 hardcode_action=
17196 if test -n "$hardcode_libdir_flag_spec" ||
17197    test -n "$runpath_var" ||
17198    test "X$hardcode_automatic" = "Xyes" ; then
17199
17200   # We can hardcode non-existent directories.
17201   if test "$hardcode_direct" != no &&
17202      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17203      # have to relink, otherwise we might link with an installed library
17204      # when we should be linking with a yet-to-be-installed one
17205      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17206      test "$hardcode_minus_L" != no; then
17207     # Linking always hardcodes the temporary library directory.
17208     hardcode_action=relink
17209   else
17210     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17211     hardcode_action=immediate
17212   fi
17213 else
17214   # We cannot hardcode anything, or else we can only hardcode existing
17215   # directories.
17216   hardcode_action=unsupported
17217 fi
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17219 $as_echo "$hardcode_action" >&6; }
17220
17221 if test "$hardcode_action" = relink ||
17222    test "$inherit_rpath" = yes; then
17223   # Fast installation is not supported
17224   enable_fast_install=no
17225 elif test "$shlibpath_overrides_runpath" = yes ||
17226      test "$enable_shared" = no; then
17227   # Fast installation is not necessary
17228   enable_fast_install=needless
17229 fi
17230
17231
17232
17233
17234
17235
17236   if test "x$enable_dlopen" != xyes; then
17237   enable_dlopen=unknown
17238   enable_dlopen_self=unknown
17239   enable_dlopen_self_static=unknown
17240 else
17241   lt_cv_dlopen=no
17242   lt_cv_dlopen_libs=
17243
17244   case $host_os in
17245   beos*)
17246     lt_cv_dlopen="load_add_on"
17247     lt_cv_dlopen_libs=
17248     lt_cv_dlopen_self=yes
17249     ;;
17250
17251   mingw* | pw32* | cegcc*)
17252     lt_cv_dlopen="LoadLibrary"
17253     lt_cv_dlopen_libs=
17254     ;;
17255
17256   cygwin*)
17257     lt_cv_dlopen="dlopen"
17258     lt_cv_dlopen_libs=
17259     ;;
17260
17261   darwin*)
17262   # if libdl is installed we need to link against it
17263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17264 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17266   $as_echo_n "(cached) " >&6
17267 else
17268   ac_check_lib_save_LIBS=$LIBS
17269 LIBS="-ldl  $LIBS"
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h.  */
17272
17273 /* Override any GCC internal prototype to avoid an error.
17274    Use char because int might match the return type of a GCC
17275    builtin and then its argument prototype would still apply.  */
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 char dlopen ();
17280 int
17281 main ()
17282 {
17283 return dlopen ();
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 if ac_fn_c_try_link "$LINENO"; then :
17289   ac_cv_lib_dl_dlopen=yes
17290 else
17291   ac_cv_lib_dl_dlopen=no
17292 fi
17293 rm -f core conftest.err conftest.$ac_objext \
17294     conftest$ac_exeext conftest.$ac_ext
17295 LIBS=$ac_check_lib_save_LIBS
17296 fi
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17298 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17299 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17300   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17301 else
17302
17303     lt_cv_dlopen="dyld"
17304     lt_cv_dlopen_libs=
17305     lt_cv_dlopen_self=yes
17306
17307 fi
17308
17309     ;;
17310
17311   *)
17312     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17313 if test "x$ac_cv_func_shl_load" = x""yes; then :
17314   lt_cv_dlopen="shl_load"
17315 else
17316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17317 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17318 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17319   $as_echo_n "(cached) " >&6
17320 else
17321   ac_check_lib_save_LIBS=$LIBS
17322 LIBS="-ldld  $LIBS"
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h.  */
17325
17326 /* Override any GCC internal prototype to avoid an error.
17327    Use char because int might match the return type of a GCC
17328    builtin and then its argument prototype would still apply.  */
17329 #ifdef __cplusplus
17330 extern "C"
17331 #endif
17332 char shl_load ();
17333 int
17334 main ()
17335 {
17336 return shl_load ();
17337   ;
17338   return 0;
17339 }
17340 _ACEOF
17341 if ac_fn_c_try_link "$LINENO"; then :
17342   ac_cv_lib_dld_shl_load=yes
17343 else
17344   ac_cv_lib_dld_shl_load=no
17345 fi
17346 rm -f core conftest.err conftest.$ac_objext \
17347     conftest$ac_exeext conftest.$ac_ext
17348 LIBS=$ac_check_lib_save_LIBS
17349 fi
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17351 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17352 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17353   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17354 else
17355   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17356 if test "x$ac_cv_func_dlopen" = x""yes; then :
17357   lt_cv_dlopen="dlopen"
17358 else
17359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17360 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17361 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17362   $as_echo_n "(cached) " >&6
17363 else
17364   ac_check_lib_save_LIBS=$LIBS
17365 LIBS="-ldl  $LIBS"
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h.  */
17368
17369 /* Override any GCC internal prototype to avoid an error.
17370    Use char because int might match the return type of a GCC
17371    builtin and then its argument prototype would still apply.  */
17372 #ifdef __cplusplus
17373 extern "C"
17374 #endif
17375 char dlopen ();
17376 int
17377 main ()
17378 {
17379 return dlopen ();
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 if ac_fn_c_try_link "$LINENO"; then :
17385   ac_cv_lib_dl_dlopen=yes
17386 else
17387   ac_cv_lib_dl_dlopen=no
17388 fi
17389 rm -f core conftest.err conftest.$ac_objext \
17390     conftest$ac_exeext conftest.$ac_ext
17391 LIBS=$ac_check_lib_save_LIBS
17392 fi
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17394 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17395 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17396   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17397 else
17398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17399 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17400 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17401   $as_echo_n "(cached) " >&6
17402 else
17403   ac_check_lib_save_LIBS=$LIBS
17404 LIBS="-lsvld  $LIBS"
17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h.  */
17407
17408 /* Override any GCC internal prototype to avoid an error.
17409    Use char because int might match the return type of a GCC
17410    builtin and then its argument prototype would still apply.  */
17411 #ifdef __cplusplus
17412 extern "C"
17413 #endif
17414 char dlopen ();
17415 int
17416 main ()
17417 {
17418 return dlopen ();
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 if ac_fn_c_try_link "$LINENO"; then :
17424   ac_cv_lib_svld_dlopen=yes
17425 else
17426   ac_cv_lib_svld_dlopen=no
17427 fi
17428 rm -f core conftest.err conftest.$ac_objext \
17429     conftest$ac_exeext conftest.$ac_ext
17430 LIBS=$ac_check_lib_save_LIBS
17431 fi
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17433 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17434 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17435   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17436 else
17437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17438 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17439 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17440   $as_echo_n "(cached) " >&6
17441 else
17442   ac_check_lib_save_LIBS=$LIBS
17443 LIBS="-ldld  $LIBS"
17444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h.  */
17446
17447 /* Override any GCC internal prototype to avoid an error.
17448    Use char because int might match the return type of a GCC
17449    builtin and then its argument prototype would still apply.  */
17450 #ifdef __cplusplus
17451 extern "C"
17452 #endif
17453 char dld_link ();
17454 int
17455 main ()
17456 {
17457 return dld_link ();
17458   ;
17459   return 0;
17460 }
17461 _ACEOF
17462 if ac_fn_c_try_link "$LINENO"; then :
17463   ac_cv_lib_dld_dld_link=yes
17464 else
17465   ac_cv_lib_dld_dld_link=no
17466 fi
17467 rm -f core conftest.err conftest.$ac_objext \
17468     conftest$ac_exeext conftest.$ac_ext
17469 LIBS=$ac_check_lib_save_LIBS
17470 fi
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17472 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17473 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17474   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17475 fi
17476
17477
17478 fi
17479
17480
17481 fi
17482
17483
17484 fi
17485
17486
17487 fi
17488
17489
17490 fi
17491
17492     ;;
17493   esac
17494
17495   if test "x$lt_cv_dlopen" != xno; then
17496     enable_dlopen=yes
17497   else
17498     enable_dlopen=no
17499   fi
17500
17501   case $lt_cv_dlopen in
17502   dlopen)
17503     save_CPPFLAGS="$CPPFLAGS"
17504     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17505
17506     save_LDFLAGS="$LDFLAGS"
17507     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17508
17509     save_LIBS="$LIBS"
17510     LIBS="$lt_cv_dlopen_libs $LIBS"
17511
17512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17513 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17514 if test "${lt_cv_dlopen_self+set}" = set; then :
17515   $as_echo_n "(cached) " >&6
17516 else
17517           if test "$cross_compiling" = yes; then :
17518   lt_cv_dlopen_self=cross
17519 else
17520   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17521   lt_status=$lt_dlunknown
17522   cat > conftest.$ac_ext <<_LT_EOF
17523 #line 17523 "configure"
17524 #include "confdefs.h"
17525
17526 #if HAVE_DLFCN_H
17527 #include <dlfcn.h>
17528 #endif
17529
17530 #include <stdio.h>
17531
17532 #ifdef RTLD_GLOBAL
17533 #  define LT_DLGLOBAL           RTLD_GLOBAL
17534 #else
17535 #  ifdef DL_GLOBAL
17536 #    define LT_DLGLOBAL         DL_GLOBAL
17537 #  else
17538 #    define LT_DLGLOBAL         0
17539 #  endif
17540 #endif
17541
17542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17543    find out it does not work in some platform. */
17544 #ifndef LT_DLLAZY_OR_NOW
17545 #  ifdef RTLD_LAZY
17546 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17547 #  else
17548 #    ifdef DL_LAZY
17549 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17550 #    else
17551 #      ifdef RTLD_NOW
17552 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17553 #      else
17554 #        ifdef DL_NOW
17555 #          define LT_DLLAZY_OR_NOW      DL_NOW
17556 #        else
17557 #          define LT_DLLAZY_OR_NOW      0
17558 #        endif
17559 #      endif
17560 #    endif
17561 #  endif
17562 #endif
17563
17564 /* When -fvisbility=hidden is used, assume the code has been annotated
17565    correspondingly for the symbols needed.  */
17566 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17567 void fnord () __attribute__((visibility("default")));
17568 #endif
17569
17570 void fnord () { int i=42; }
17571 int main ()
17572 {
17573   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17574   int status = $lt_dlunknown;
17575
17576   if (self)
17577     {
17578       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17579       else
17580         {
17581           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17582           else puts (dlerror ());
17583         }
17584       /* dlclose (self); */
17585     }
17586   else
17587     puts (dlerror ());
17588
17589   return status;
17590 }
17591 _LT_EOF
17592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17593   (eval $ac_link) 2>&5
17594   ac_status=$?
17595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17596   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17597     (./conftest; exit; ) >&5 2>/dev/null
17598     lt_status=$?
17599     case x$lt_status in
17600       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17601       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17602       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17603     esac
17604   else :
17605     # compilation failed
17606     lt_cv_dlopen_self=no
17607   fi
17608 fi
17609 rm -fr conftest*
17610
17611
17612 fi
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17614 $as_echo "$lt_cv_dlopen_self" >&6; }
17615
17616     if test "x$lt_cv_dlopen_self" = xyes; then
17617       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17618       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17619 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17620 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17621   $as_echo_n "(cached) " >&6
17622 else
17623           if test "$cross_compiling" = yes; then :
17624   lt_cv_dlopen_self_static=cross
17625 else
17626   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17627   lt_status=$lt_dlunknown
17628   cat > conftest.$ac_ext <<_LT_EOF
17629 #line 17629 "configure"
17630 #include "confdefs.h"
17631
17632 #if HAVE_DLFCN_H
17633 #include <dlfcn.h>
17634 #endif
17635
17636 #include <stdio.h>
17637
17638 #ifdef RTLD_GLOBAL
17639 #  define LT_DLGLOBAL           RTLD_GLOBAL
17640 #else
17641 #  ifdef DL_GLOBAL
17642 #    define LT_DLGLOBAL         DL_GLOBAL
17643 #  else
17644 #    define LT_DLGLOBAL         0
17645 #  endif
17646 #endif
17647
17648 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17649    find out it does not work in some platform. */
17650 #ifndef LT_DLLAZY_OR_NOW
17651 #  ifdef RTLD_LAZY
17652 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17653 #  else
17654 #    ifdef DL_LAZY
17655 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17656 #    else
17657 #      ifdef RTLD_NOW
17658 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17659 #      else
17660 #        ifdef DL_NOW
17661 #          define LT_DLLAZY_OR_NOW      DL_NOW
17662 #        else
17663 #          define LT_DLLAZY_OR_NOW      0
17664 #        endif
17665 #      endif
17666 #    endif
17667 #  endif
17668 #endif
17669
17670 /* When -fvisbility=hidden is used, assume the code has been annotated
17671    correspondingly for the symbols needed.  */
17672 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17673 void fnord () __attribute__((visibility("default")));
17674 #endif
17675
17676 void fnord () { int i=42; }
17677 int main ()
17678 {
17679   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17680   int status = $lt_dlunknown;
17681
17682   if (self)
17683     {
17684       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17685       else
17686         {
17687           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17688           else puts (dlerror ());
17689         }
17690       /* dlclose (self); */
17691     }
17692   else
17693     puts (dlerror ());
17694
17695   return status;
17696 }
17697 _LT_EOF
17698   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17699   (eval $ac_link) 2>&5
17700   ac_status=$?
17701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17702   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17703     (./conftest; exit; ) >&5 2>/dev/null
17704     lt_status=$?
17705     case x$lt_status in
17706       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17707       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17708       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17709     esac
17710   else :
17711     # compilation failed
17712     lt_cv_dlopen_self_static=no
17713   fi
17714 fi
17715 rm -fr conftest*
17716
17717
17718 fi
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17720 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17721     fi
17722
17723     CPPFLAGS="$save_CPPFLAGS"
17724     LDFLAGS="$save_LDFLAGS"
17725     LIBS="$save_LIBS"
17726     ;;
17727   esac
17728
17729   case $lt_cv_dlopen_self in
17730   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17731   *) enable_dlopen_self=unknown ;;
17732   esac
17733
17734   case $lt_cv_dlopen_self_static in
17735   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17736   *) enable_dlopen_self_static=unknown ;;
17737   esac
17738 fi
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756 striplib=
17757 old_striplib=
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17759 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17760 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17761   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17762   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17764 $as_echo "yes" >&6; }
17765 else
17766 # FIXME - insert some real tests, host_os isn't really good enough
17767   case $host_os in
17768   darwin*)
17769     if test -n "$STRIP" ; then
17770       striplib="$STRIP -x"
17771       old_striplib="$STRIP -S"
17772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17773 $as_echo "yes" >&6; }
17774     else
17775       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17776 $as_echo "no" >&6; }
17777     fi
17778     ;;
17779   *)
17780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17781 $as_echo "no" >&6; }
17782     ;;
17783   esac
17784 fi
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797   # Report which library types will actually be built
17798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17799 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17801 $as_echo "$can_build_shared" >&6; }
17802
17803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17804 $as_echo_n "checking whether to build shared libraries... " >&6; }
17805   test "$can_build_shared" = "no" && enable_shared=no
17806
17807   # On AIX, shared libraries and static libraries use the same namespace, and
17808   # are all built from PIC.
17809   case $host_os in
17810   aix3*)
17811     test "$enable_shared" = yes && enable_static=no
17812     if test -n "$RANLIB"; then
17813       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17814       postinstall_cmds='$RANLIB $lib'
17815     fi
17816     ;;
17817
17818   aix[4-9]*)
17819     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17820       test "$enable_shared" = yes && enable_static=no
17821     fi
17822     ;;
17823   esac
17824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17825 $as_echo "$enable_shared" >&6; }
17826
17827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17828 $as_echo_n "checking whether to build static libraries... " >&6; }
17829   # Make sure either enable_shared or enable_static is yes.
17830   test "$enable_shared" = yes || enable_static=yes
17831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17832 $as_echo "$enable_static" >&6; }
17833
17834
17835
17836
17837 fi
17838 ac_ext=c
17839 ac_cpp='$CPP $CPPFLAGS'
17840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17843
17844 CC="$lt_save_CC"
17845
17846       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17847     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17848     (test "X$CXX" != "Xg++"))) ; then
17849   ac_ext=cpp
17850 ac_cpp='$CXXCPP $CPPFLAGS'
17851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17855 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17856 if test -z "$CXXCPP"; then
17857   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17858   $as_echo_n "(cached) " >&6
17859 else
17860       # Double quotes because CXXCPP needs to be expanded
17861     for CXXCPP in "$CXX -E" "/lib/cpp"
17862     do
17863       ac_preproc_ok=false
17864 for ac_cxx_preproc_warn_flag in '' yes
17865 do
17866   # Use a header file that comes with gcc, so configuring glibc
17867   # with a fresh cross-compiler works.
17868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17869   # <limits.h> exists even on freestanding compilers.
17870   # On the NeXT, cc -E runs the code through the compiler's parser,
17871   # not just through cpp. "Syntax error" is here to catch this case.
17872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h.  */
17874 #ifdef __STDC__
17875 # include <limits.h>
17876 #else
17877 # include <assert.h>
17878 #endif
17879                      Syntax error
17880 _ACEOF
17881 if ac_fn_cxx_try_cpp "$LINENO"; then :
17882
17883 else
17884   # Broken: fails on valid input.
17885 continue
17886 fi
17887 rm -f conftest.err conftest.$ac_ext
17888
17889   # OK, works on sane cases.  Now check whether nonexistent headers
17890   # can be detected and how.
17891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h.  */
17893 #include <ac_nonexistent.h>
17894 _ACEOF
17895 if ac_fn_cxx_try_cpp "$LINENO"; then :
17896   # Broken: success on invalid input.
17897 continue
17898 else
17899   # Passes both tests.
17900 ac_preproc_ok=:
17901 break
17902 fi
17903 rm -f conftest.err conftest.$ac_ext
17904
17905 done
17906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17907 rm -f conftest.err conftest.$ac_ext
17908 if $ac_preproc_ok; then :
17909   break
17910 fi
17911
17912     done
17913     ac_cv_prog_CXXCPP=$CXXCPP
17914
17915 fi
17916   CXXCPP=$ac_cv_prog_CXXCPP
17917 else
17918   ac_cv_prog_CXXCPP=$CXXCPP
17919 fi
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17921 $as_echo "$CXXCPP" >&6; }
17922 ac_preproc_ok=false
17923 for ac_cxx_preproc_warn_flag in '' yes
17924 do
17925   # Use a header file that comes with gcc, so configuring glibc
17926   # with a fresh cross-compiler works.
17927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17928   # <limits.h> exists even on freestanding compilers.
17929   # On the NeXT, cc -E runs the code through the compiler's parser,
17930   # not just through cpp. "Syntax error" is here to catch this case.
17931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h.  */
17933 #ifdef __STDC__
17934 # include <limits.h>
17935 #else
17936 # include <assert.h>
17937 #endif
17938                      Syntax error
17939 _ACEOF
17940 if ac_fn_cxx_try_cpp "$LINENO"; then :
17941
17942 else
17943   # Broken: fails on valid input.
17944 continue
17945 fi
17946 rm -f conftest.err conftest.$ac_ext
17947
17948   # OK, works on sane cases.  Now check whether nonexistent headers
17949   # can be detected and how.
17950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951 /* end confdefs.h.  */
17952 #include <ac_nonexistent.h>
17953 _ACEOF
17954 if ac_fn_cxx_try_cpp "$LINENO"; then :
17955   # Broken: success on invalid input.
17956 continue
17957 else
17958   # Passes both tests.
17959 ac_preproc_ok=:
17960 break
17961 fi
17962 rm -f conftest.err conftest.$ac_ext
17963
17964 done
17965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17966 rm -f conftest.err conftest.$ac_ext
17967 if $ac_preproc_ok; then :
17968
17969 else
17970   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17972 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17973 See \`config.log' for more details." "$LINENO" 5; }
17974 fi
17975
17976 ac_ext=c
17977 ac_cpp='$CPP $CPPFLAGS'
17978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17981
17982 else
17983   _lt_caught_CXX_error=yes
17984 fi
17985
17986 ac_ext=cpp
17987 ac_cpp='$CXXCPP $CPPFLAGS'
17988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17991
17992 archive_cmds_need_lc_CXX=no
17993 allow_undefined_flag_CXX=
17994 always_export_symbols_CXX=no
17995 archive_expsym_cmds_CXX=
17996 compiler_needs_object_CXX=no
17997 export_dynamic_flag_spec_CXX=
17998 hardcode_direct_CXX=no
17999 hardcode_direct_absolute_CXX=no
18000 hardcode_libdir_flag_spec_CXX=
18001 hardcode_libdir_flag_spec_ld_CXX=
18002 hardcode_libdir_separator_CXX=
18003 hardcode_minus_L_CXX=no
18004 hardcode_shlibpath_var_CXX=unsupported
18005 hardcode_automatic_CXX=no
18006 inherit_rpath_CXX=no
18007 module_cmds_CXX=
18008 module_expsym_cmds_CXX=
18009 link_all_deplibs_CXX=unknown
18010 old_archive_cmds_CXX=$old_archive_cmds
18011 reload_flag_CXX=$reload_flag
18012 reload_cmds_CXX=$reload_cmds
18013 no_undefined_flag_CXX=
18014 whole_archive_flag_spec_CXX=
18015 enable_shared_with_static_runtimes_CXX=no
18016
18017 # Source file extension for C++ test sources.
18018 ac_ext=cpp
18019
18020 # Object file extension for compiled C++ test sources.
18021 objext=o
18022 objext_CXX=$objext
18023
18024 # No sense in running all these tests if we already determined that
18025 # the CXX compiler isn't working.  Some variables (like enable_shared)
18026 # are currently assumed to apply to all compilers on this platform,
18027 # and will be corrupted by setting them based on a non-working compiler.
18028 if test "$_lt_caught_CXX_error" != yes; then
18029   # Code to be used in simple compile tests
18030   lt_simple_compile_test_code="int some_variable = 0;"
18031
18032   # Code to be used in simple link tests
18033   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18034
18035   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18036
18037
18038
18039
18040
18041
18042 # If no C compiler was specified, use CC.
18043 LTCC=${LTCC-"$CC"}
18044
18045 # If no C compiler flags were specified, use CFLAGS.
18046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18047
18048 # Allow CC to be a program name with arguments.
18049 compiler=$CC
18050
18051
18052   # save warnings/boilerplate of simple test code
18053   ac_outfile=conftest.$ac_objext
18054 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18056 _lt_compiler_boilerplate=`cat conftest.err`
18057 $RM conftest*
18058
18059   ac_outfile=conftest.$ac_objext
18060 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18062 _lt_linker_boilerplate=`cat conftest.err`
18063 $RM -r conftest*
18064
18065
18066   # Allow CC to be a program name with arguments.
18067   lt_save_CC=$CC
18068   lt_save_LD=$LD
18069   lt_save_GCC=$GCC
18070   GCC=$GXX
18071   lt_save_with_gnu_ld=$with_gnu_ld
18072   lt_save_path_LD=$lt_cv_path_LD
18073   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18074     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18075   else
18076     $as_unset lt_cv_prog_gnu_ld
18077   fi
18078   if test -n "${lt_cv_path_LDCXX+set}"; then
18079     lt_cv_path_LD=$lt_cv_path_LDCXX
18080   else
18081     $as_unset lt_cv_path_LD
18082   fi
18083   test -z "${LDCXX+set}" || LD=$LDCXX
18084   CC=${CXX-"c++"}
18085   compiler=$CC
18086   compiler_CXX=$CC
18087   for cc_temp in $compiler""; do
18088   case $cc_temp in
18089     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18090     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18091     \-*) ;;
18092     *) break;;
18093   esac
18094 done
18095 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18096
18097
18098   if test -n "$compiler"; then
18099     # We don't want -fno-exception when compiling C++ code, so set the
18100     # no_builtin_flag separately
18101     if test "$GXX" = yes; then
18102       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18103     else
18104       lt_prog_compiler_no_builtin_flag_CXX=
18105     fi
18106
18107     if test "$GXX" = yes; then
18108       # Set up default GNU C++ configuration
18109
18110
18111
18112 # Check whether --with-gnu-ld was given.
18113 if test "${with_gnu_ld+set}" = set; then :
18114   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18115 else
18116   with_gnu_ld=no
18117 fi
18118
18119 ac_prog=ld
18120 if test "$GCC" = yes; then
18121   # Check if gcc -print-prog-name=ld gives a path.
18122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18123 $as_echo_n "checking for ld used by $CC... " >&6; }
18124   case $host in
18125   *-*-mingw*)
18126     # gcc leaves a trailing carriage return which upsets mingw
18127     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18128   *)
18129     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18130   esac
18131   case $ac_prog in
18132     # Accept absolute paths.
18133     [\\/]* | ?:[\\/]*)
18134       re_direlt='/[^/][^/]*/\.\./'
18135       # Canonicalize the pathname of ld
18136       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18137       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18138         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18139       done
18140       test -z "$LD" && LD="$ac_prog"
18141       ;;
18142   "")
18143     # If it fails, then pretend we aren't using GCC.
18144     ac_prog=ld
18145     ;;
18146   *)
18147     # If it is relative, then search for the first ld in PATH.
18148     with_gnu_ld=unknown
18149     ;;
18150   esac
18151 elif test "$with_gnu_ld" = yes; then
18152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18153 $as_echo_n "checking for GNU ld... " >&6; }
18154 else
18155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18156 $as_echo_n "checking for non-GNU ld... " >&6; }
18157 fi
18158 if test "${lt_cv_path_LD+set}" = set; then :
18159   $as_echo_n "(cached) " >&6
18160 else
18161   if test -z "$LD"; then
18162   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18163   for ac_dir in $PATH; do
18164     IFS="$lt_save_ifs"
18165     test -z "$ac_dir" && ac_dir=.
18166     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18167       lt_cv_path_LD="$ac_dir/$ac_prog"
18168       # Check to see if the program is GNU ld.  I'd rather use --version,
18169       # but apparently some variants of GNU ld only accept -v.
18170       # Break only if it was the GNU/non-GNU ld that we prefer.
18171       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18172       *GNU* | *'with BFD'*)
18173         test "$with_gnu_ld" != no && break
18174         ;;
18175       *)
18176         test "$with_gnu_ld" != yes && break
18177         ;;
18178       esac
18179     fi
18180   done
18181   IFS="$lt_save_ifs"
18182 else
18183   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18184 fi
18185 fi
18186
18187 LD="$lt_cv_path_LD"
18188 if test -n "$LD"; then
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18190 $as_echo "$LD" >&6; }
18191 else
18192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18194 fi
18195 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18197 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18198 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18199   $as_echo_n "(cached) " >&6
18200 else
18201   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18202 case `$LD -v 2>&1 </dev/null` in
18203 *GNU* | *'with BFD'*)
18204   lt_cv_prog_gnu_ld=yes
18205   ;;
18206 *)
18207   lt_cv_prog_gnu_ld=no
18208   ;;
18209 esac
18210 fi
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18212 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18213 with_gnu_ld=$lt_cv_prog_gnu_ld
18214
18215
18216
18217
18218
18219
18220
18221       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18222       # archiving commands below assume that GNU ld is being used.
18223       if test "$with_gnu_ld" = yes; then
18224         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18225         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'
18226
18227         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18228         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18229
18230         # If archive_cmds runs LD, not CC, wlarc should be empty
18231         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18232         #     investigate it a little bit more. (MM)
18233         wlarc='${wl}'
18234
18235         # ancient GNU ld didn't support --whole-archive et. al.
18236         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18237           $GREP 'no-whole-archive' > /dev/null; then
18238           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18239         else
18240           whole_archive_flag_spec_CXX=
18241         fi
18242       else
18243         with_gnu_ld=no
18244         wlarc=
18245
18246         # A generic and very simple default shared library creation
18247         # command for GNU C++ for the case where it uses the native
18248         # linker, instead of GNU ld.  If possible, this setting should
18249         # overridden to take advantage of the native linker features on
18250         # the platform it is being used on.
18251         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18252       fi
18253
18254       # Commands to make compiler produce verbose output that lists
18255       # what "hidden" libraries, object files and flags are used when
18256       # linking a shared library.
18257       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18258
18259     else
18260       GXX=no
18261       with_gnu_ld=no
18262       wlarc=
18263     fi
18264
18265     # PORTME: fill in a description of your system's C++ link characteristics
18266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18267 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18268     ld_shlibs_CXX=yes
18269     case $host_os in
18270       aix3*)
18271         # FIXME: insert proper C++ library support
18272         ld_shlibs_CXX=no
18273         ;;
18274       aix[4-9]*)
18275         if test "$host_cpu" = ia64; then
18276           # On IA64, the linker does run time linking by default, so we don't
18277           # have to do anything special.
18278           aix_use_runtimelinking=no
18279           exp_sym_flag='-Bexport'
18280           no_entry_flag=""
18281         else
18282           aix_use_runtimelinking=no
18283
18284           # Test if we are trying to use run time linking or normal
18285           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18286           # need to do runtime linking.
18287           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18288             for ld_flag in $LDFLAGS; do
18289               case $ld_flag in
18290               *-brtl*)
18291                 aix_use_runtimelinking=yes
18292                 break
18293                 ;;
18294               esac
18295             done
18296             ;;
18297           esac
18298
18299           exp_sym_flag='-bexport'
18300           no_entry_flag='-bnoentry'
18301         fi
18302
18303         # When large executables or shared objects are built, AIX ld can
18304         # have problems creating the table of contents.  If linking a library
18305         # or program results in "error TOC overflow" add -mminimal-toc to
18306         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18307         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18308
18309         archive_cmds_CXX=''
18310         hardcode_direct_CXX=yes
18311         hardcode_direct_absolute_CXX=yes
18312         hardcode_libdir_separator_CXX=':'
18313         link_all_deplibs_CXX=yes
18314         file_list_spec_CXX='${wl}-f,'
18315
18316         if test "$GXX" = yes; then
18317           case $host_os in aix4.[012]|aix4.[012].*)
18318           # We only want to do this on AIX 4.2 and lower, the check
18319           # below for broken collect2 doesn't work under 4.3+
18320           collect2name=`${CC} -print-prog-name=collect2`
18321           if test -f "$collect2name" &&
18322              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18323           then
18324             # We have reworked collect2
18325             :
18326           else
18327             # We have old collect2
18328             hardcode_direct_CXX=unsupported
18329             # It fails to find uninstalled libraries when the uninstalled
18330             # path is not listed in the libpath.  Setting hardcode_minus_L
18331             # to unsupported forces relinking
18332             hardcode_minus_L_CXX=yes
18333             hardcode_libdir_flag_spec_CXX='-L$libdir'
18334             hardcode_libdir_separator_CXX=
18335           fi
18336           esac
18337           shared_flag='-shared'
18338           if test "$aix_use_runtimelinking" = yes; then
18339             shared_flag="$shared_flag "'${wl}-G'
18340           fi
18341         else
18342           # not using gcc
18343           if test "$host_cpu" = ia64; then
18344           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18345           # chokes on -Wl,-G. The following line is correct:
18346           shared_flag='-G'
18347           else
18348             if test "$aix_use_runtimelinking" = yes; then
18349               shared_flag='${wl}-G'
18350             else
18351               shared_flag='${wl}-bM:SRE'
18352             fi
18353           fi
18354         fi
18355
18356         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18357         # It seems that -bexpall does not export symbols beginning with
18358         # underscore (_), so it is better to generate a list of symbols to
18359         # export.
18360         always_export_symbols_CXX=yes
18361         if test "$aix_use_runtimelinking" = yes; then
18362           # Warning - without using the other runtime loading flags (-brtl),
18363           # -berok will link without error, but may produce a broken library.
18364           allow_undefined_flag_CXX='-berok'
18365           # Determine the default libpath from the value encoded in an empty
18366           # executable.
18367           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h.  */
18369
18370 int
18371 main ()
18372 {
18373
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 if ac_fn_cxx_try_link "$LINENO"; then :
18379
18380 lt_aix_libpath_sed='
18381     /Import File Strings/,/^$/ {
18382         /^0/ {
18383             s/^0  *\(.*\)$/\1/
18384             p
18385         }
18386     }'
18387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18388 # Check for a 64-bit object if we didn't find anything.
18389 if test -z "$aix_libpath"; then
18390   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18391 fi
18392 fi
18393 rm -f core conftest.err conftest.$ac_objext \
18394     conftest$ac_exeext conftest.$ac_ext
18395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18396
18397           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18398
18399           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"
18400         else
18401           if test "$host_cpu" = ia64; then
18402             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18403             allow_undefined_flag_CXX="-z nodefs"
18404             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"
18405           else
18406             # Determine the default libpath from the value encoded in an
18407             # empty executable.
18408             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h.  */
18410
18411 int
18412 main ()
18413 {
18414
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 if ac_fn_cxx_try_link "$LINENO"; then :
18420
18421 lt_aix_libpath_sed='
18422     /Import File Strings/,/^$/ {
18423         /^0/ {
18424             s/^0  *\(.*\)$/\1/
18425             p
18426         }
18427     }'
18428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18429 # Check for a 64-bit object if we didn't find anything.
18430 if test -z "$aix_libpath"; then
18431   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18432 fi
18433 fi
18434 rm -f core conftest.err conftest.$ac_objext \
18435     conftest$ac_exeext conftest.$ac_ext
18436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18437
18438             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18439             # Warning - without using the other run time loading flags,
18440             # -berok will link without error, but may produce a broken library.
18441             no_undefined_flag_CXX=' ${wl}-bernotok'
18442             allow_undefined_flag_CXX=' ${wl}-berok'
18443             if test "$with_gnu_ld" = yes; then
18444               # We only use this code for GNU lds that support --whole-archive.
18445               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18446             else
18447               # Exported symbols can be pulled into shared objects from archives
18448               whole_archive_flag_spec_CXX='$convenience'
18449             fi
18450             archive_cmds_need_lc_CXX=yes
18451             # This is similar to how AIX traditionally builds its shared
18452             # libraries.
18453             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'
18454           fi
18455         fi
18456         ;;
18457
18458       beos*)
18459         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18460           allow_undefined_flag_CXX=unsupported
18461           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18462           # support --undefined.  This deserves some investigation.  FIXME
18463           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18464         else
18465           ld_shlibs_CXX=no
18466         fi
18467         ;;
18468
18469       chorus*)
18470         case $cc_basename in
18471           *)
18472           # FIXME: insert proper C++ library support
18473           ld_shlibs_CXX=no
18474           ;;
18475         esac
18476         ;;
18477
18478       cygwin* | mingw* | pw32* | cegcc*)
18479         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18480         # as there is no search path for DLLs.
18481         hardcode_libdir_flag_spec_CXX='-L$libdir'
18482         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18483         allow_undefined_flag_CXX=unsupported
18484         always_export_symbols_CXX=no
18485         enable_shared_with_static_runtimes_CXX=yes
18486
18487         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18488           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'
18489           # If the export-symbols file already is a .def file (1st line
18490           # is EXPORTS), use it as is; otherwise, prepend...
18491           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18492             cp $export_symbols $output_objdir/$soname.def;
18493           else
18494             echo EXPORTS > $output_objdir/$soname.def;
18495             cat $export_symbols >> $output_objdir/$soname.def;
18496           fi~
18497           $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'
18498         else
18499           ld_shlibs_CXX=no
18500         fi
18501         ;;
18502       darwin* | rhapsody*)
18503
18504
18505   archive_cmds_need_lc_CXX=no
18506   hardcode_direct_CXX=no
18507   hardcode_automatic_CXX=yes
18508   hardcode_shlibpath_var_CXX=unsupported
18509   if test "$lt_cv_ld_force_load" = "yes"; then
18510     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\"`'
18511   else
18512     whole_archive_flag_spec_CXX=''
18513   fi
18514   link_all_deplibs_CXX=yes
18515   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18516   case $cc_basename in
18517      ifort*) _lt_dar_can_shared=yes ;;
18518      *) _lt_dar_can_shared=$GCC ;;
18519   esac
18520   if test "$_lt_dar_can_shared" = "yes"; then
18521     output_verbose_link_cmd=func_echo_all
18522     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}"
18523     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18524     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}"
18525     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}"
18526        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18527       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}"
18528       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}"
18529     fi
18530
18531   else
18532   ld_shlibs_CXX=no
18533   fi
18534
18535         ;;
18536
18537       dgux*)
18538         case $cc_basename in
18539           ec++*)
18540             # FIXME: insert proper C++ library support
18541             ld_shlibs_CXX=no
18542             ;;
18543           ghcx*)
18544             # Green Hills C++ Compiler
18545             # FIXME: insert proper C++ library support
18546             ld_shlibs_CXX=no
18547             ;;
18548           *)
18549             # FIXME: insert proper C++ library support
18550             ld_shlibs_CXX=no
18551             ;;
18552         esac
18553         ;;
18554
18555       freebsd[12]*)
18556         # C++ shared libraries reported to be fairly broken before
18557         # switch to ELF
18558         ld_shlibs_CXX=no
18559         ;;
18560
18561       freebsd-elf*)
18562         archive_cmds_need_lc_CXX=no
18563         ;;
18564
18565       freebsd* | dragonfly*)
18566         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18567         # conventions
18568         ld_shlibs_CXX=yes
18569         ;;
18570
18571       gnu*)
18572         ;;
18573
18574       haiku*)
18575         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18576         link_all_deplibs_CXX=yes
18577         ;;
18578
18579       hpux9*)
18580         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18581         hardcode_libdir_separator_CXX=:
18582         export_dynamic_flag_spec_CXX='${wl}-E'
18583         hardcode_direct_CXX=yes
18584         hardcode_minus_L_CXX=yes # Not in the search PATH,
18585                                              # but as the default
18586                                              # location of the library.
18587
18588         case $cc_basename in
18589           CC*)
18590             # FIXME: insert proper C++ library support
18591             ld_shlibs_CXX=no
18592             ;;
18593           aCC*)
18594             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'
18595             # Commands to make compiler produce verbose output that lists
18596             # what "hidden" libraries, object files and flags are used when
18597             # linking a shared library.
18598             #
18599             # There doesn't appear to be a way to prevent this compiler from
18600             # explicitly linking system object files so we need to strip them
18601             # from the output so that they don't get included in the library
18602             # dependencies.
18603             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"'
18604             ;;
18605           *)
18606             if test "$GXX" = yes; then
18607               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'
18608             else
18609               # FIXME: insert proper C++ library support
18610               ld_shlibs_CXX=no
18611             fi
18612             ;;
18613         esac
18614         ;;
18615
18616       hpux10*|hpux11*)
18617         if test $with_gnu_ld = no; then
18618           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18619           hardcode_libdir_separator_CXX=:
18620
18621           case $host_cpu in
18622             hppa*64*|ia64*)
18623               ;;
18624             *)
18625               export_dynamic_flag_spec_CXX='${wl}-E'
18626               ;;
18627           esac
18628         fi
18629         case $host_cpu in
18630           hppa*64*|ia64*)
18631             hardcode_direct_CXX=no
18632             hardcode_shlibpath_var_CXX=no
18633             ;;
18634           *)
18635             hardcode_direct_CXX=yes
18636             hardcode_direct_absolute_CXX=yes
18637             hardcode_minus_L_CXX=yes # Not in the search PATH,
18638                                                  # but as the default
18639                                                  # location of the library.
18640             ;;
18641         esac
18642
18643         case $cc_basename in
18644           CC*)
18645             # FIXME: insert proper C++ library support
18646             ld_shlibs_CXX=no
18647             ;;
18648           aCC*)
18649             case $host_cpu in
18650               hppa*64*)
18651                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18652                 ;;
18653               ia64*)
18654                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18655                 ;;
18656               *)
18657                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18658                 ;;
18659             esac
18660             # Commands to make compiler produce verbose output that lists
18661             # what "hidden" libraries, object files and flags are used when
18662             # linking a shared library.
18663             #
18664             # There doesn't appear to be a way to prevent this compiler from
18665             # explicitly linking system object files so we need to strip them
18666             # from the output so that they don't get included in the library
18667             # dependencies.
18668             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"'
18669             ;;
18670           *)
18671             if test "$GXX" = yes; then
18672               if test $with_gnu_ld = no; then
18673                 case $host_cpu in
18674                   hppa*64*)
18675                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18676                     ;;
18677                   ia64*)
18678                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18679                     ;;
18680                   *)
18681                     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'
18682                     ;;
18683                 esac
18684               fi
18685             else
18686               # FIXME: insert proper C++ library support
18687               ld_shlibs_CXX=no
18688             fi
18689             ;;
18690         esac
18691         ;;
18692
18693       interix[3-9]*)
18694         hardcode_direct_CXX=no
18695         hardcode_shlibpath_var_CXX=no
18696         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18697         export_dynamic_flag_spec_CXX='${wl}-E'
18698         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18699         # Instead, shared libraries are loaded at an image base (0x10000000 by
18700         # default) and relocated if they conflict, which is a slow very memory
18701         # consuming and fragmenting process.  To avoid this, we pick a random,
18702         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18703         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18704         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'
18705         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'
18706         ;;
18707       irix5* | irix6*)
18708         case $cc_basename in
18709           CC*)
18710             # SGI C++
18711             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'
18712
18713             # Archives containing C++ object files must be created using
18714             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18715             # necessary to make sure instantiated templates are included
18716             # in the archive.
18717             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18718             ;;
18719           *)
18720             if test "$GXX" = yes; then
18721               if test "$with_gnu_ld" = no; then
18722                 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'
18723               else
18724                 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'
18725               fi
18726             fi
18727             link_all_deplibs_CXX=yes
18728             ;;
18729         esac
18730         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18731         hardcode_libdir_separator_CXX=:
18732         inherit_rpath_CXX=yes
18733         ;;
18734
18735       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18736         case $cc_basename in
18737           KCC*)
18738             # Kuck and Associates, Inc. (KAI) C++ Compiler
18739
18740             # KCC will only create a shared library if the output file
18741             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18742             # to its proper name (with version) after linking.
18743             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'
18744             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'
18745             # Commands to make compiler produce verbose output that lists
18746             # what "hidden" libraries, object files and flags are used when
18747             # linking a shared library.
18748             #
18749             # There doesn't appear to be a way to prevent this compiler from
18750             # explicitly linking system object files so we need to strip them
18751             # from the output so that they don't get included in the library
18752             # dependencies.
18753             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"'
18754
18755             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18756             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18757
18758             # Archives containing C++ object files must be created using
18759             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18760             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18761             ;;
18762           icpc* | ecpc* )
18763             # Intel C++
18764             with_gnu_ld=yes
18765             # version 8.0 and above of icpc choke on multiply defined symbols
18766             # if we add $predep_objects and $postdep_objects, however 7.1 and
18767             # earlier do not add the objects themselves.
18768             case `$CC -V 2>&1` in
18769               *"Version 7."*)
18770                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18771                 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'
18772                 ;;
18773               *)  # Version 8.0 or newer
18774                 tmp_idyn=
18775                 case $host_cpu in
18776                   ia64*) tmp_idyn=' -i_dynamic';;
18777                 esac
18778                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18779                 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'
18780                 ;;
18781             esac
18782             archive_cmds_need_lc_CXX=no
18783             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18784             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18785             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18786             ;;
18787           pgCC* | pgcpp*)
18788             # Portland Group C++ compiler
18789             case `$CC -V` in
18790             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18791               prelink_cmds_CXX='tpldir=Template.dir~
18792                 rm -rf $tpldir~
18793                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18794                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18795               old_archive_cmds_CXX='tpldir=Template.dir~
18796                 rm -rf $tpldir~
18797                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18798                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18799                 $RANLIB $oldlib'
18800               archive_cmds_CXX='tpldir=Template.dir~
18801                 rm -rf $tpldir~
18802                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18803                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18804               archive_expsym_cmds_CXX='tpldir=Template.dir~
18805                 rm -rf $tpldir~
18806                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18807                 $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'
18808               ;;
18809             *) # Version 6 and above use weak symbols
18810               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18811               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'
18812               ;;
18813             esac
18814
18815             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18816             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18817             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'
18818             ;;
18819           cxx*)
18820             # Compaq C++
18821             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18822             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'
18823
18824             runpath_var=LD_RUN_PATH
18825             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18826             hardcode_libdir_separator_CXX=:
18827
18828             # Commands to make compiler produce verbose output that lists
18829             # what "hidden" libraries, object files and flags are used when
18830             # linking a shared library.
18831             #
18832             # There doesn't appear to be a way to prevent this compiler from
18833             # explicitly linking system object files so we need to strip them
18834             # from the output so that they don't get included in the library
18835             # dependencies.
18836             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'
18837             ;;
18838           xl* | mpixl* | bgxl*)
18839             # IBM XL 8.0 on PPC, with GNU ld
18840             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18841             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18842             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18843             if test "x$supports_anon_versioning" = xyes; then
18844               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18845                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18846                 echo "local: *; };" >> $output_objdir/$libname.ver~
18847                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18848             fi
18849             ;;
18850           *)
18851             case `$CC -V 2>&1 | sed 5q` in
18852             *Sun\ C*)
18853               # Sun C++ 5.9
18854               no_undefined_flag_CXX=' -zdefs'
18855               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18856               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'
18857               hardcode_libdir_flag_spec_CXX='-R$libdir'
18858               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'
18859               compiler_needs_object_CXX=yes
18860
18861               # Not sure whether something based on
18862               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18863               # would be better.
18864               output_verbose_link_cmd='func_echo_all'
18865
18866               # Archives containing C++ object files must be created using
18867               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18868               # necessary to make sure instantiated templates are included
18869               # in the archive.
18870               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18871               ;;
18872             esac
18873             ;;
18874         esac
18875         ;;
18876
18877       lynxos*)
18878         # FIXME: insert proper C++ library support
18879         ld_shlibs_CXX=no
18880         ;;
18881
18882       m88k*)
18883         # FIXME: insert proper C++ library support
18884         ld_shlibs_CXX=no
18885         ;;
18886
18887       mvs*)
18888         case $cc_basename in
18889           cxx*)
18890             # FIXME: insert proper C++ library support
18891             ld_shlibs_CXX=no
18892             ;;
18893           *)
18894             # FIXME: insert proper C++ library support
18895             ld_shlibs_CXX=no
18896             ;;
18897         esac
18898         ;;
18899
18900       netbsd*)
18901         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18902           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18903           wlarc=
18904           hardcode_libdir_flag_spec_CXX='-R$libdir'
18905           hardcode_direct_CXX=yes
18906           hardcode_shlibpath_var_CXX=no
18907         fi
18908         # Workaround some broken pre-1.5 toolchains
18909         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18910         ;;
18911
18912       *nto* | *qnx*)
18913         ld_shlibs_CXX=yes
18914         ;;
18915
18916       openbsd2*)
18917         # C++ shared libraries are fairly broken
18918         ld_shlibs_CXX=no
18919         ;;
18920
18921       openbsd*)
18922         if test -f /usr/libexec/ld.so; then
18923           hardcode_direct_CXX=yes
18924           hardcode_shlibpath_var_CXX=no
18925           hardcode_direct_absolute_CXX=yes
18926           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18927           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18928           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18929             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18930             export_dynamic_flag_spec_CXX='${wl}-E'
18931             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18932           fi
18933           output_verbose_link_cmd=func_echo_all
18934         else
18935           ld_shlibs_CXX=no
18936         fi
18937         ;;
18938
18939       osf3* | osf4* | osf5*)
18940         case $cc_basename in
18941           KCC*)
18942             # Kuck and Associates, Inc. (KAI) C++ Compiler
18943
18944             # KCC will only create a shared library if the output file
18945             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18946             # to its proper name (with version) after linking.
18947             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'
18948
18949             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18950             hardcode_libdir_separator_CXX=:
18951
18952             # Archives containing C++ object files must be created using
18953             # the KAI C++ compiler.
18954             case $host in
18955               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18956               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18957             esac
18958             ;;
18959           RCC*)
18960             # Rational C++ 2.4.1
18961             # FIXME: insert proper C++ library support
18962             ld_shlibs_CXX=no
18963             ;;
18964           cxx*)
18965             case $host in
18966               osf3*)
18967                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18968                 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'
18969                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18970                 ;;
18971               *)
18972                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18973                 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'
18974                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18975                   echo "-hidden">> $lib.exp~
18976                   $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~
18977                   $RM $lib.exp'
18978                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18979                 ;;
18980             esac
18981
18982             hardcode_libdir_separator_CXX=:
18983
18984             # Commands to make compiler produce verbose output that lists
18985             # what "hidden" libraries, object files and flags are used when
18986             # linking a shared library.
18987             #
18988             # There doesn't appear to be a way to prevent this compiler from
18989             # explicitly linking system object files so we need to strip them
18990             # from the output so that they don't get included in the library
18991             # dependencies.
18992             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"'
18993             ;;
18994           *)
18995             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18996               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18997               case $host in
18998                 osf3*)
18999                   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'
19000                   ;;
19001                 *)
19002                   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'
19003                   ;;
19004               esac
19005
19006               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19007               hardcode_libdir_separator_CXX=:
19008
19009               # Commands to make compiler produce verbose output that lists
19010               # what "hidden" libraries, object files and flags are used when
19011               # linking a shared library.
19012               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19013
19014             else
19015               # FIXME: insert proper C++ library support
19016               ld_shlibs_CXX=no
19017             fi
19018             ;;
19019         esac
19020         ;;
19021
19022       psos*)
19023         # FIXME: insert proper C++ library support
19024         ld_shlibs_CXX=no
19025         ;;
19026
19027       sunos4*)
19028         case $cc_basename in
19029           CC*)
19030             # Sun C++ 4.x
19031             # FIXME: insert proper C++ library support
19032             ld_shlibs_CXX=no
19033             ;;
19034           lcc*)
19035             # Lucid
19036             # FIXME: insert proper C++ library support
19037             ld_shlibs_CXX=no
19038             ;;
19039           *)
19040             # FIXME: insert proper C++ library support
19041             ld_shlibs_CXX=no
19042             ;;
19043         esac
19044         ;;
19045
19046       solaris*)
19047         case $cc_basename in
19048           CC*)
19049             # Sun C++ 4.2, 5.x and Centerline C++
19050             archive_cmds_need_lc_CXX=yes
19051             no_undefined_flag_CXX=' -zdefs'
19052             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19053             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19054               $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'
19055
19056             hardcode_libdir_flag_spec_CXX='-R$libdir'
19057             hardcode_shlibpath_var_CXX=no
19058             case $host_os in
19059               solaris2.[0-5] | solaris2.[0-5].*) ;;
19060               *)
19061                 # The compiler driver will combine and reorder linker options,
19062                 # but understands `-z linker_flag'.
19063                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19064                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19065                 ;;
19066             esac
19067             link_all_deplibs_CXX=yes
19068
19069             output_verbose_link_cmd='func_echo_all'
19070
19071             # Archives containing C++ object files must be created using
19072             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19073             # necessary to make sure instantiated templates are included
19074             # in the archive.
19075             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19076             ;;
19077           gcx*)
19078             # Green Hills C++ Compiler
19079             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19080
19081             # The C++ compiler must be used to create the archive.
19082             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19083             ;;
19084           *)
19085             # GNU C++ compiler with Solaris linker
19086             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19087               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19088               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19089                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19090                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19091                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19092
19093                 # Commands to make compiler produce verbose output that lists
19094                 # what "hidden" libraries, object files and flags are used when
19095                 # linking a shared library.
19096                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19097               else
19098                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19099                 # platform.
19100                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19101                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19102                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19103
19104                 # Commands to make compiler produce verbose output that lists
19105                 # what "hidden" libraries, object files and flags are used when
19106                 # linking a shared library.
19107                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19108               fi
19109
19110               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19111               case $host_os in
19112                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19113                 *)
19114                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19115                   ;;
19116               esac
19117             fi
19118             ;;
19119         esac
19120         ;;
19121
19122     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19123       no_undefined_flag_CXX='${wl}-z,text'
19124       archive_cmds_need_lc_CXX=no
19125       hardcode_shlibpath_var_CXX=no
19126       runpath_var='LD_RUN_PATH'
19127
19128       case $cc_basename in
19129         CC*)
19130           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19131           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19132           ;;
19133         *)
19134           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19135           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19136           ;;
19137       esac
19138       ;;
19139
19140       sysv5* | sco3.2v5* | sco5v6*)
19141         # Note: We can NOT use -z defs as we might desire, because we do not
19142         # link with -lc, and that would cause any symbols used from libc to
19143         # always be unresolved, which means just about no library would
19144         # ever link correctly.  If we're not using GNU ld we use -z text
19145         # though, which does catch some bad symbols but isn't as heavy-handed
19146         # as -z defs.
19147         no_undefined_flag_CXX='${wl}-z,text'
19148         allow_undefined_flag_CXX='${wl}-z,nodefs'
19149         archive_cmds_need_lc_CXX=no
19150         hardcode_shlibpath_var_CXX=no
19151         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19152         hardcode_libdir_separator_CXX=':'
19153         link_all_deplibs_CXX=yes
19154         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19155         runpath_var='LD_RUN_PATH'
19156
19157         case $cc_basename in
19158           CC*)
19159             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19160             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19161             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19162               '"$old_archive_cmds_CXX"
19163             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19164               '"$reload_cmds_CXX"
19165             ;;
19166           *)
19167             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19168             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19169             ;;
19170         esac
19171       ;;
19172
19173       tandem*)
19174         case $cc_basename in
19175           NCC*)
19176             # NonStop-UX NCC 3.20
19177             # FIXME: insert proper C++ library support
19178             ld_shlibs_CXX=no
19179             ;;
19180           *)
19181             # FIXME: insert proper C++ library support
19182             ld_shlibs_CXX=no
19183             ;;
19184         esac
19185         ;;
19186
19187       vxworks*)
19188         # FIXME: insert proper C++ library support
19189         ld_shlibs_CXX=no
19190         ;;
19191
19192       *)
19193         # FIXME: insert proper C++ library support
19194         ld_shlibs_CXX=no
19195         ;;
19196     esac
19197
19198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19199 $as_echo "$ld_shlibs_CXX" >&6; }
19200     test "$ld_shlibs_CXX" = no && can_build_shared=no
19201
19202     GCC_CXX="$GXX"
19203     LD_CXX="$LD"
19204
19205     ## CAVEAT EMPTOR:
19206     ## There is no encapsulation within the following macros, do not change
19207     ## the running order or otherwise move them around unless you know exactly
19208     ## what you are doing...
19209     # Dependencies to place before and after the object being linked:
19210 predep_objects_CXX=
19211 postdep_objects_CXX=
19212 predeps_CXX=
19213 postdeps_CXX=
19214 compiler_lib_search_path_CXX=
19215
19216 cat > conftest.$ac_ext <<_LT_EOF
19217 class Foo
19218 {
19219 public:
19220   Foo (void) { a = 0; }
19221 private:
19222   int a;
19223 };
19224 _LT_EOF
19225
19226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19227   (eval $ac_compile) 2>&5
19228   ac_status=$?
19229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230   test $ac_status = 0; }; then
19231   # Parse the compiler output and extract the necessary
19232   # objects, libraries and library flags.
19233
19234   # Sentinel used to keep track of whether or not we are before
19235   # the conftest object file.
19236   pre_test_object_deps_done=no
19237
19238   for p in `eval "$output_verbose_link_cmd"`; do
19239     case $p in
19240
19241     -L* | -R* | -l*)
19242        # Some compilers place space between "-{L,R}" and the path.
19243        # Remove the space.
19244        if test $p = "-L" ||
19245           test $p = "-R"; then
19246          prev=$p
19247          continue
19248        else
19249          prev=
19250        fi
19251
19252        if test "$pre_test_object_deps_done" = no; then
19253          case $p in
19254          -L* | -R*)
19255            # Internal compiler library paths should come after those
19256            # provided the user.  The postdeps already come after the
19257            # user supplied libs so there is no need to process them.
19258            if test -z "$compiler_lib_search_path_CXX"; then
19259              compiler_lib_search_path_CXX="${prev}${p}"
19260            else
19261              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19262            fi
19263            ;;
19264          # The "-l" case would never come before the object being
19265          # linked, so don't bother handling this case.
19266          esac
19267        else
19268          if test -z "$postdeps_CXX"; then
19269            postdeps_CXX="${prev}${p}"
19270          else
19271            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19272          fi
19273        fi
19274        ;;
19275
19276     *.$objext)
19277        # This assumes that the test object file only shows up
19278        # once in the compiler output.
19279        if test "$p" = "conftest.$objext"; then
19280          pre_test_object_deps_done=yes
19281          continue
19282        fi
19283
19284        if test "$pre_test_object_deps_done" = no; then
19285          if test -z "$predep_objects_CXX"; then
19286            predep_objects_CXX="$p"
19287          else
19288            predep_objects_CXX="$predep_objects_CXX $p"
19289          fi
19290        else
19291          if test -z "$postdep_objects_CXX"; then
19292            postdep_objects_CXX="$p"
19293          else
19294            postdep_objects_CXX="$postdep_objects_CXX $p"
19295          fi
19296        fi
19297        ;;
19298
19299     *) ;; # Ignore the rest.
19300
19301     esac
19302   done
19303
19304   # Clean up.
19305   rm -f a.out a.exe
19306 else
19307   echo "libtool.m4: error: problem compiling CXX test program"
19308 fi
19309
19310 $RM -f confest.$objext
19311
19312 # PORTME: override above test on systems where it is broken
19313 case $host_os in
19314 interix[3-9]*)
19315   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19316   # hack all around it, let's just trust "g++" to DTRT.
19317   predep_objects_CXX=
19318   postdep_objects_CXX=
19319   postdeps_CXX=
19320   ;;
19321
19322 linux*)
19323   case `$CC -V 2>&1 | sed 5q` in
19324   *Sun\ C*)
19325     # Sun C++ 5.9
19326
19327     # The more standards-conforming stlport4 library is
19328     # incompatible with the Cstd library. Avoid specifying
19329     # it if it's in CXXFLAGS. Ignore libCrun as
19330     # -library=stlport4 depends on it.
19331     case " $CXX $CXXFLAGS " in
19332     *" -library=stlport4 "*)
19333       solaris_use_stlport4=yes
19334       ;;
19335     esac
19336
19337     if test "$solaris_use_stlport4" != yes; then
19338       postdeps_CXX='-library=Cstd -library=Crun'
19339     fi
19340     ;;
19341   esac
19342   ;;
19343
19344 solaris*)
19345   case $cc_basename in
19346   CC*)
19347     # The more standards-conforming stlport4 library is
19348     # incompatible with the Cstd library. Avoid specifying
19349     # it if it's in CXXFLAGS. Ignore libCrun as
19350     # -library=stlport4 depends on it.
19351     case " $CXX $CXXFLAGS " in
19352     *" -library=stlport4 "*)
19353       solaris_use_stlport4=yes
19354       ;;
19355     esac
19356
19357     # Adding this requires a known-good setup of shared libraries for
19358     # Sun compiler versions before 5.6, else PIC objects from an old
19359     # archive will be linked into the output, leading to subtle bugs.
19360     if test "$solaris_use_stlport4" != yes; then
19361       postdeps_CXX='-library=Cstd -library=Crun'
19362     fi
19363     ;;
19364   esac
19365   ;;
19366 esac
19367
19368
19369 case " $postdeps_CXX " in
19370 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19371 esac
19372  compiler_lib_search_dirs_CXX=
19373 if test -n "${compiler_lib_search_path_CXX}"; then
19374  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19375 fi
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407     lt_prog_compiler_wl_CXX=
19408 lt_prog_compiler_pic_CXX=
19409 lt_prog_compiler_static_CXX=
19410
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19412 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19413
19414   # C++ specific cases for pic, static, wl, etc.
19415   if test "$GXX" = yes; then
19416     lt_prog_compiler_wl_CXX='-Wl,'
19417     lt_prog_compiler_static_CXX='-static'
19418
19419     case $host_os in
19420     aix*)
19421       # All AIX code is PIC.
19422       if test "$host_cpu" = ia64; then
19423         # AIX 5 now supports IA64 processor
19424         lt_prog_compiler_static_CXX='-Bstatic'
19425       fi
19426       ;;
19427
19428     amigaos*)
19429       case $host_cpu in
19430       powerpc)
19431             # see comment about AmigaOS4 .so support
19432             lt_prog_compiler_pic_CXX='-fPIC'
19433         ;;
19434       m68k)
19435             # FIXME: we need at least 68020 code to build shared libraries, but
19436             # adding the `-m68020' flag to GCC prevents building anything better,
19437             # like `-m68040'.
19438             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19439         ;;
19440       esac
19441       ;;
19442
19443     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19444       # PIC is the default for these OSes.
19445       ;;
19446     mingw* | cygwin* | os2* | pw32* | cegcc*)
19447       # This hack is so that the source file can tell whether it is being
19448       # built for inclusion in a dll (and should export symbols for example).
19449       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19450       # (--disable-auto-import) libraries
19451       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19452       ;;
19453     darwin* | rhapsody*)
19454       # PIC is the default on this platform
19455       # Common symbols not allowed in MH_DYLIB files
19456       lt_prog_compiler_pic_CXX='-fno-common'
19457       ;;
19458     *djgpp*)
19459       # DJGPP does not support shared libraries at all
19460       lt_prog_compiler_pic_CXX=
19461       ;;
19462     haiku*)
19463       # PIC is the default for Haiku.
19464       # The "-static" flag exists, but is broken.
19465       lt_prog_compiler_static_CXX=
19466       ;;
19467     interix[3-9]*)
19468       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19469       # Instead, we relocate shared libraries at runtime.
19470       ;;
19471     sysv4*MP*)
19472       if test -d /usr/nec; then
19473         lt_prog_compiler_pic_CXX=-Kconform_pic
19474       fi
19475       ;;
19476     hpux*)
19477       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19478       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19479       # sets the default TLS model and affects inlining.
19480       case $host_cpu in
19481       hppa*64*)
19482         ;;
19483       *)
19484         lt_prog_compiler_pic_CXX='-fPIC'
19485         ;;
19486       esac
19487       ;;
19488     *qnx* | *nto*)
19489       # QNX uses GNU C++, but need to define -shared option too, otherwise
19490       # it will coredump.
19491       lt_prog_compiler_pic_CXX='-fPIC -shared'
19492       ;;
19493     *)
19494       lt_prog_compiler_pic_CXX='-fPIC'
19495       ;;
19496     esac
19497   else
19498     case $host_os in
19499       aix[4-9]*)
19500         # All AIX code is PIC.
19501         if test "$host_cpu" = ia64; then
19502           # AIX 5 now supports IA64 processor
19503           lt_prog_compiler_static_CXX='-Bstatic'
19504         else
19505           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19506         fi
19507         ;;
19508       chorus*)
19509         case $cc_basename in
19510         cxch68*)
19511           # Green Hills C++ Compiler
19512           # _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"
19513           ;;
19514         esac
19515         ;;
19516       dgux*)
19517         case $cc_basename in
19518           ec++*)
19519             lt_prog_compiler_pic_CXX='-KPIC'
19520             ;;
19521           ghcx*)
19522             # Green Hills C++ Compiler
19523             lt_prog_compiler_pic_CXX='-pic'
19524             ;;
19525           *)
19526             ;;
19527         esac
19528         ;;
19529       freebsd* | dragonfly*)
19530         # FreeBSD uses GNU C++
19531         ;;
19532       hpux9* | hpux10* | hpux11*)
19533         case $cc_basename in
19534           CC*)
19535             lt_prog_compiler_wl_CXX='-Wl,'
19536             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19537             if test "$host_cpu" != ia64; then
19538               lt_prog_compiler_pic_CXX='+Z'
19539             fi
19540             ;;
19541           aCC*)
19542             lt_prog_compiler_wl_CXX='-Wl,'
19543             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19544             case $host_cpu in
19545             hppa*64*|ia64*)
19546               # +Z the default
19547               ;;
19548             *)
19549               lt_prog_compiler_pic_CXX='+Z'
19550               ;;
19551             esac
19552             ;;
19553           *)
19554             ;;
19555         esac
19556         ;;
19557       interix*)
19558         # This is c89, which is MS Visual C++ (no shared libs)
19559         # Anyone wants to do a port?
19560         ;;
19561       irix5* | irix6* | nonstopux*)
19562         case $cc_basename in
19563           CC*)
19564             lt_prog_compiler_wl_CXX='-Wl,'
19565             lt_prog_compiler_static_CXX='-non_shared'
19566             # CC pic flag -KPIC is the default.
19567             ;;
19568           *)
19569             ;;
19570         esac
19571         ;;
19572       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19573         case $cc_basename in
19574           KCC*)
19575             # KAI C++ Compiler
19576             lt_prog_compiler_wl_CXX='--backend -Wl,'
19577             lt_prog_compiler_pic_CXX='-fPIC'
19578             ;;
19579           ecpc* )
19580             # old Intel C++ for x86_64 which still supported -KPIC.
19581             lt_prog_compiler_wl_CXX='-Wl,'
19582             lt_prog_compiler_pic_CXX='-KPIC'
19583             lt_prog_compiler_static_CXX='-static'
19584             ;;
19585           icpc* )
19586             # Intel C++, used to be incompatible with GCC.
19587             # ICC 10 doesn't accept -KPIC any more.
19588             lt_prog_compiler_wl_CXX='-Wl,'
19589             lt_prog_compiler_pic_CXX='-fPIC'
19590             lt_prog_compiler_static_CXX='-static'
19591             ;;
19592           pgCC* | pgcpp*)
19593             # Portland Group C++ compiler
19594             lt_prog_compiler_wl_CXX='-Wl,'
19595             lt_prog_compiler_pic_CXX='-fpic'
19596             lt_prog_compiler_static_CXX='-Bstatic'
19597             ;;
19598           cxx*)
19599             # Compaq C++
19600             # Make sure the PIC flag is empty.  It appears that all Alpha
19601             # Linux and Compaq Tru64 Unix objects are PIC.
19602             lt_prog_compiler_pic_CXX=
19603             lt_prog_compiler_static_CXX='-non_shared'
19604             ;;
19605           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19606             # IBM XL 8.0, 9.0 on PPC and BlueGene
19607             lt_prog_compiler_wl_CXX='-Wl,'
19608             lt_prog_compiler_pic_CXX='-qpic'
19609             lt_prog_compiler_static_CXX='-qstaticlink'
19610             ;;
19611           *)
19612             case `$CC -V 2>&1 | sed 5q` in
19613             *Sun\ C*)
19614               # Sun C++ 5.9
19615               lt_prog_compiler_pic_CXX='-KPIC'
19616               lt_prog_compiler_static_CXX='-Bstatic'
19617               lt_prog_compiler_wl_CXX='-Qoption ld '
19618               ;;
19619             esac
19620             ;;
19621         esac
19622         ;;
19623       lynxos*)
19624         ;;
19625       m88k*)
19626         ;;
19627       mvs*)
19628         case $cc_basename in
19629           cxx*)
19630             lt_prog_compiler_pic_CXX='-W c,exportall'
19631             ;;
19632           *)
19633             ;;
19634         esac
19635         ;;
19636       netbsd*)
19637         ;;
19638       *qnx* | *nto*)
19639         # QNX uses GNU C++, but need to define -shared option too, otherwise
19640         # it will coredump.
19641         lt_prog_compiler_pic_CXX='-fPIC -shared'
19642         ;;
19643       osf3* | osf4* | osf5*)
19644         case $cc_basename in
19645           KCC*)
19646             lt_prog_compiler_wl_CXX='--backend -Wl,'
19647             ;;
19648           RCC*)
19649             # Rational C++ 2.4.1
19650             lt_prog_compiler_pic_CXX='-pic'
19651             ;;
19652           cxx*)
19653             # Digital/Compaq C++
19654             lt_prog_compiler_wl_CXX='-Wl,'
19655             # Make sure the PIC flag is empty.  It appears that all Alpha
19656             # Linux and Compaq Tru64 Unix objects are PIC.
19657             lt_prog_compiler_pic_CXX=
19658             lt_prog_compiler_static_CXX='-non_shared'
19659             ;;
19660           *)
19661             ;;
19662         esac
19663         ;;
19664       psos*)
19665         ;;
19666       solaris*)
19667         case $cc_basename in
19668           CC*)
19669             # Sun C++ 4.2, 5.x and Centerline C++
19670             lt_prog_compiler_pic_CXX='-KPIC'
19671             lt_prog_compiler_static_CXX='-Bstatic'
19672             lt_prog_compiler_wl_CXX='-Qoption ld '
19673             ;;
19674           gcx*)
19675             # Green Hills C++ Compiler
19676             lt_prog_compiler_pic_CXX='-PIC'
19677             ;;
19678           *)
19679             ;;
19680         esac
19681         ;;
19682       sunos4*)
19683         case $cc_basename in
19684           CC*)
19685             # Sun C++ 4.x
19686             lt_prog_compiler_pic_CXX='-pic'
19687             lt_prog_compiler_static_CXX='-Bstatic'
19688             ;;
19689           lcc*)
19690             # Lucid
19691             lt_prog_compiler_pic_CXX='-pic'
19692             ;;
19693           *)
19694             ;;
19695         esac
19696         ;;
19697       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19698         case $cc_basename in
19699           CC*)
19700             lt_prog_compiler_wl_CXX='-Wl,'
19701             lt_prog_compiler_pic_CXX='-KPIC'
19702             lt_prog_compiler_static_CXX='-Bstatic'
19703             ;;
19704         esac
19705         ;;
19706       tandem*)
19707         case $cc_basename in
19708           NCC*)
19709             # NonStop-UX NCC 3.20
19710             lt_prog_compiler_pic_CXX='-KPIC'
19711             ;;
19712           *)
19713             ;;
19714         esac
19715         ;;
19716       vxworks*)
19717         ;;
19718       *)
19719         lt_prog_compiler_can_build_shared_CXX=no
19720         ;;
19721     esac
19722   fi
19723
19724 case $host_os in
19725   # For platforms which do not support PIC, -DPIC is meaningless:
19726   *djgpp*)
19727     lt_prog_compiler_pic_CXX=
19728     ;;
19729   *)
19730     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19731     ;;
19732 esac
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19734 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19735
19736
19737
19738 #
19739 # Check to make sure the PIC flag actually works.
19740 #
19741 if test -n "$lt_prog_compiler_pic_CXX"; then
19742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19743 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19744 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19745   $as_echo_n "(cached) " >&6
19746 else
19747   lt_cv_prog_compiler_pic_works_CXX=no
19748    ac_outfile=conftest.$ac_objext
19749    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19750    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19751    # Insert the option either (1) after the last *FLAGS variable, or
19752    # (2) before a word containing "conftest.", or (3) at the end.
19753    # Note that $ac_compile itself does not contain backslashes and begins
19754    # with a dollar sign (not a hyphen), so the echo should work correctly.
19755    # The option is referenced via a variable to avoid confusing sed.
19756    lt_compile=`echo "$ac_compile" | $SED \
19757    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19759    -e 's:$: $lt_compiler_flag:'`
19760    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19761    (eval "$lt_compile" 2>conftest.err)
19762    ac_status=$?
19763    cat conftest.err >&5
19764    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765    if (exit $ac_status) && test -s "$ac_outfile"; then
19766      # The compiler can only warn and ignore the option if not recognized
19767      # So say no if there are warnings other than the usual output.
19768      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19769      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19770      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19771        lt_cv_prog_compiler_pic_works_CXX=yes
19772      fi
19773    fi
19774    $RM conftest*
19775
19776 fi
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19778 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19779
19780 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19781     case $lt_prog_compiler_pic_CXX in
19782      "" | " "*) ;;
19783      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19784      esac
19785 else
19786     lt_prog_compiler_pic_CXX=
19787      lt_prog_compiler_can_build_shared_CXX=no
19788 fi
19789
19790 fi
19791
19792
19793
19794 #
19795 # Check to make sure the static flag actually works.
19796 #
19797 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19799 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19800 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19801   $as_echo_n "(cached) " >&6
19802 else
19803   lt_cv_prog_compiler_static_works_CXX=no
19804    save_LDFLAGS="$LDFLAGS"
19805    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19806    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19807    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19808      # The linker can only warn and ignore the option if not recognized
19809      # So say no if there are warnings
19810      if test -s conftest.err; then
19811        # Append any errors to the config.log.
19812        cat conftest.err 1>&5
19813        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19814        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19815        if diff conftest.exp conftest.er2 >/dev/null; then
19816          lt_cv_prog_compiler_static_works_CXX=yes
19817        fi
19818      else
19819        lt_cv_prog_compiler_static_works_CXX=yes
19820      fi
19821    fi
19822    $RM -r conftest*
19823    LDFLAGS="$save_LDFLAGS"
19824
19825 fi
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19827 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19828
19829 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19830     :
19831 else
19832     lt_prog_compiler_static_CXX=
19833 fi
19834
19835
19836
19837
19838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19840 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19841   $as_echo_n "(cached) " >&6
19842 else
19843   lt_cv_prog_compiler_c_o_CXX=no
19844    $RM -r conftest 2>/dev/null
19845    mkdir conftest
19846    cd conftest
19847    mkdir out
19848    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19849
19850    lt_compiler_flag="-o out/conftest2.$ac_objext"
19851    # Insert the option either (1) after the last *FLAGS variable, or
19852    # (2) before a word containing "conftest.", or (3) at the end.
19853    # Note that $ac_compile itself does not contain backslashes and begins
19854    # with a dollar sign (not a hyphen), so the echo should work correctly.
19855    lt_compile=`echo "$ac_compile" | $SED \
19856    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19857    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19858    -e 's:$: $lt_compiler_flag:'`
19859    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19860    (eval "$lt_compile" 2>out/conftest.err)
19861    ac_status=$?
19862    cat out/conftest.err >&5
19863    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19865    then
19866      # The compiler can only warn and ignore the option if not recognized
19867      # So say no if there are warnings
19868      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19869      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19870      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19871        lt_cv_prog_compiler_c_o_CXX=yes
19872      fi
19873    fi
19874    chmod u+w . 2>&5
19875    $RM conftest*
19876    # SGI C++ compiler will create directory out/ii_files/ for
19877    # template instantiation
19878    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19879    $RM out/* && rmdir out
19880    cd ..
19881    $RM -r conftest
19882    $RM conftest*
19883
19884 fi
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19886 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19887
19888
19889
19890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19891 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19892 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19893   $as_echo_n "(cached) " >&6
19894 else
19895   lt_cv_prog_compiler_c_o_CXX=no
19896    $RM -r conftest 2>/dev/null
19897    mkdir conftest
19898    cd conftest
19899    mkdir out
19900    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19901
19902    lt_compiler_flag="-o out/conftest2.$ac_objext"
19903    # Insert the option either (1) after the last *FLAGS variable, or
19904    # (2) before a word containing "conftest.", or (3) at the end.
19905    # Note that $ac_compile itself does not contain backslashes and begins
19906    # with a dollar sign (not a hyphen), so the echo should work correctly.
19907    lt_compile=`echo "$ac_compile" | $SED \
19908    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19909    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19910    -e 's:$: $lt_compiler_flag:'`
19911    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19912    (eval "$lt_compile" 2>out/conftest.err)
19913    ac_status=$?
19914    cat out/conftest.err >&5
19915    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19917    then
19918      # The compiler can only warn and ignore the option if not recognized
19919      # So say no if there are warnings
19920      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19921      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19922      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19923        lt_cv_prog_compiler_c_o_CXX=yes
19924      fi
19925    fi
19926    chmod u+w . 2>&5
19927    $RM conftest*
19928    # SGI C++ compiler will create directory out/ii_files/ for
19929    # template instantiation
19930    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19931    $RM out/* && rmdir out
19932    cd ..
19933    $RM -r conftest
19934    $RM conftest*
19935
19936 fi
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19938 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19939
19940
19941
19942
19943 hard_links="nottested"
19944 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19945   # do not overwrite the value of need_locks provided by the user
19946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19947 $as_echo_n "checking if we can lock with hard links... " >&6; }
19948   hard_links=yes
19949   $RM conftest*
19950   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19951   touch conftest.a
19952   ln conftest.a conftest.b 2>&5 || hard_links=no
19953   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19955 $as_echo "$hard_links" >&6; }
19956   if test "$hard_links" = no; then
19957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19958 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19959     need_locks=warn
19960   fi
19961 else
19962   need_locks=no
19963 fi
19964
19965
19966
19967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19968 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19969
19970   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19971   case $host_os in
19972   aix[4-9]*)
19973     # If we're using GNU nm, then we don't want the "-C" option.
19974     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19975     # Also, AIX nm treats weak defined symbols like other global defined
19976     # symbols, whereas GNU nm marks them as "W".
19977     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19978       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'
19979     else
19980       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'
19981     fi
19982     ;;
19983   pw32*)
19984     export_symbols_cmds_CXX="$ltdll_cmds"
19985   ;;
19986   cygwin* | mingw* | cegcc*)
19987     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'
19988   ;;
19989   *)
19990     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19991   ;;
19992   esac
19993   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19994
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19996 $as_echo "$ld_shlibs_CXX" >&6; }
19997 test "$ld_shlibs_CXX" = no && can_build_shared=no
19998
19999 with_gnu_ld_CXX=$with_gnu_ld
20000
20001
20002
20003
20004
20005
20006 #
20007 # Do we need to explicitly link libc?
20008 #
20009 case "x$archive_cmds_need_lc_CXX" in
20010 x|xyes)
20011   # Assume -lc should be added
20012   archive_cmds_need_lc_CXX=yes
20013
20014   if test "$enable_shared" = yes && test "$GCC" = yes; then
20015     case $archive_cmds_CXX in
20016     *'~'*)
20017       # FIXME: we may have to deal with multi-command sequences.
20018       ;;
20019     '$CC '*)
20020       # Test whether the compiler implicitly links with -lc since on some
20021       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20022       # to ld, don't add -lc before -lgcc.
20023       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20024 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20025 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20026   $as_echo_n "(cached) " >&6
20027 else
20028   $RM conftest*
20029         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20030
20031         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20032   (eval $ac_compile) 2>&5
20033   ac_status=$?
20034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20035   test $ac_status = 0; } 2>conftest.err; then
20036           soname=conftest
20037           lib=conftest
20038           libobjs=conftest.$ac_objext
20039           deplibs=
20040           wl=$lt_prog_compiler_wl_CXX
20041           pic_flag=$lt_prog_compiler_pic_CXX
20042           compiler_flags=-v
20043           linker_flags=-v
20044           verstring=
20045           output_objdir=.
20046           libname=conftest
20047           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20048           allow_undefined_flag_CXX=
20049           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20050   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20051   ac_status=$?
20052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20053   test $ac_status = 0; }
20054           then
20055             lt_cv_archive_cmds_need_lc_CXX=no
20056           else
20057             lt_cv_archive_cmds_need_lc_CXX=yes
20058           fi
20059           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20060         else
20061           cat conftest.err 1>&5
20062         fi
20063         $RM conftest*
20064
20065 fi
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20067 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20068       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20069       ;;
20070     esac
20071   fi
20072   ;;
20073 esac
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20139 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20140
20141 library_names_spec=
20142 libname_spec='lib$name'
20143 soname_spec=
20144 shrext_cmds=".so"
20145 postinstall_cmds=
20146 postuninstall_cmds=
20147 finish_cmds=
20148 finish_eval=
20149 shlibpath_var=
20150 shlibpath_overrides_runpath=unknown
20151 version_type=none
20152 dynamic_linker="$host_os ld.so"
20153 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20154 need_lib_prefix=unknown
20155 hardcode_into_libs=no
20156
20157 # when you set need_version to no, make sure it does not cause -set_version
20158 # flags to be left without arguments
20159 need_version=unknown
20160
20161 case $host_os in
20162 aix3*)
20163   version_type=linux
20164   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20165   shlibpath_var=LIBPATH
20166
20167   # AIX 3 has no versioning support, so we append a major version to the name.
20168   soname_spec='${libname}${release}${shared_ext}$major'
20169   ;;
20170
20171 aix[4-9]*)
20172   version_type=linux
20173   need_lib_prefix=no
20174   need_version=no
20175   hardcode_into_libs=yes
20176   if test "$host_cpu" = ia64; then
20177     # AIX 5 supports IA64
20178     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20179     shlibpath_var=LD_LIBRARY_PATH
20180   else
20181     # With GCC up to 2.95.x, collect2 would create an import file
20182     # for dependence libraries.  The import file would start with
20183     # the line `#! .'.  This would cause the generated library to
20184     # depend on `.', always an invalid library.  This was fixed in
20185     # development snapshots of GCC prior to 3.0.
20186     case $host_os in
20187       aix4 | aix4.[01] | aix4.[01].*)
20188       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20189            echo ' yes '
20190            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20191         :
20192       else
20193         can_build_shared=no
20194       fi
20195       ;;
20196     esac
20197     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20198     # soname into executable. Probably we can add versioning support to
20199     # collect2, so additional links can be useful in future.
20200     if test "$aix_use_runtimelinking" = yes; then
20201       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20202       # instead of lib<name>.a to let people know that these are not
20203       # typical AIX shared libraries.
20204       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205     else
20206       # We preserve .a as extension for shared libraries through AIX4.2
20207       # and later when we are not doing run time linking.
20208       library_names_spec='${libname}${release}.a $libname.a'
20209       soname_spec='${libname}${release}${shared_ext}$major'
20210     fi
20211     shlibpath_var=LIBPATH
20212   fi
20213   ;;
20214
20215 amigaos*)
20216   case $host_cpu in
20217   powerpc)
20218     # Since July 2007 AmigaOS4 officially supports .so libraries.
20219     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20221     ;;
20222   m68k)
20223     library_names_spec='$libname.ixlibrary $libname.a'
20224     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20225     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'
20226     ;;
20227   esac
20228   ;;
20229
20230 beos*)
20231   library_names_spec='${libname}${shared_ext}'
20232   dynamic_linker="$host_os ld.so"
20233   shlibpath_var=LIBRARY_PATH
20234   ;;
20235
20236 bsdi[45]*)
20237   version_type=linux
20238   need_version=no
20239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240   soname_spec='${libname}${release}${shared_ext}$major'
20241   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20242   shlibpath_var=LD_LIBRARY_PATH
20243   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20244   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20245   # the default ld.so.conf also contains /usr/contrib/lib and
20246   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20247   # libtool to hard-code these into programs
20248   ;;
20249
20250 cygwin* | mingw* | pw32* | cegcc*)
20251   version_type=windows
20252   shrext_cmds=".dll"
20253   need_version=no
20254   need_lib_prefix=no
20255
20256   case $GCC,$host_os in
20257   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20258     library_names_spec='$libname.dll.a'
20259     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20260     postinstall_cmds='base_file=`basename \${file}`~
20261       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20262       dldir=$destdir/`dirname \$dlpath`~
20263       test -d \$dldir || mkdir -p \$dldir~
20264       $install_prog $dir/$dlname \$dldir/$dlname~
20265       chmod a+x \$dldir/$dlname~
20266       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20267         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20268       fi'
20269     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20270       dlpath=$dir/\$dldll~
20271        $RM \$dlpath'
20272     shlibpath_overrides_runpath=yes
20273
20274     case $host_os in
20275     cygwin*)
20276       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20277       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20278
20279       ;;
20280     mingw* | cegcc*)
20281       # MinGW DLLs use traditional 'lib' prefix
20282       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20283       ;;
20284     pw32*)
20285       # pw32 DLLs use 'pw' prefix rather than 'lib'
20286       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20287       ;;
20288     esac
20289     ;;
20290
20291   *)
20292     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20293     ;;
20294   esac
20295   dynamic_linker='Win32 ld.exe'
20296   # FIXME: first we should search . and the directory the executable is in
20297   shlibpath_var=PATH
20298   ;;
20299
20300 darwin* | rhapsody*)
20301   dynamic_linker="$host_os dyld"
20302   version_type=darwin
20303   need_lib_prefix=no
20304   need_version=no
20305   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20306   soname_spec='${libname}${release}${major}$shared_ext'
20307   shlibpath_overrides_runpath=yes
20308   shlibpath_var=DYLD_LIBRARY_PATH
20309   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20310
20311   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20312   ;;
20313
20314 dgux*)
20315   version_type=linux
20316   need_lib_prefix=no
20317   need_version=no
20318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20319   soname_spec='${libname}${release}${shared_ext}$major'
20320   shlibpath_var=LD_LIBRARY_PATH
20321   ;;
20322
20323 freebsd* | dragonfly*)
20324   # DragonFly does not have aout.  When/if they implement a new
20325   # versioning mechanism, adjust this.
20326   if test -x /usr/bin/objformat; then
20327     objformat=`/usr/bin/objformat`
20328   else
20329     case $host_os in
20330     freebsd[123]*) objformat=aout ;;
20331     *) objformat=elf ;;
20332     esac
20333   fi
20334   version_type=freebsd-$objformat
20335   case $version_type in
20336     freebsd-elf*)
20337       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20338       need_version=no
20339       need_lib_prefix=no
20340       ;;
20341     freebsd-*)
20342       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20343       need_version=yes
20344       ;;
20345   esac
20346   shlibpath_var=LD_LIBRARY_PATH
20347   case $host_os in
20348   freebsd2*)
20349     shlibpath_overrides_runpath=yes
20350     ;;
20351   freebsd3.[01]* | freebsdelf3.[01]*)
20352     shlibpath_overrides_runpath=yes
20353     hardcode_into_libs=yes
20354     ;;
20355   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20356   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20357     shlibpath_overrides_runpath=no
20358     hardcode_into_libs=yes
20359     ;;
20360   *) # from 4.6 on, and DragonFly
20361     shlibpath_overrides_runpath=yes
20362     hardcode_into_libs=yes
20363     ;;
20364   esac
20365   ;;
20366
20367 gnu*)
20368   version_type=linux
20369   need_lib_prefix=no
20370   need_version=no
20371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20372   soname_spec='${libname}${release}${shared_ext}$major'
20373   shlibpath_var=LD_LIBRARY_PATH
20374   hardcode_into_libs=yes
20375   ;;
20376
20377 haiku*)
20378   version_type=linux
20379   need_lib_prefix=no
20380   need_version=no
20381   dynamic_linker="$host_os runtime_loader"
20382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20383   soname_spec='${libname}${release}${shared_ext}$major'
20384   shlibpath_var=LIBRARY_PATH
20385   shlibpath_overrides_runpath=yes
20386   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20387   hardcode_into_libs=yes
20388   ;;
20389
20390 hpux9* | hpux10* | hpux11*)
20391   # Give a soname corresponding to the major version so that dld.sl refuses to
20392   # link against other versions.
20393   version_type=sunos
20394   need_lib_prefix=no
20395   need_version=no
20396   case $host_cpu in
20397   ia64*)
20398     shrext_cmds='.so'
20399     hardcode_into_libs=yes
20400     dynamic_linker="$host_os dld.so"
20401     shlibpath_var=LD_LIBRARY_PATH
20402     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20404     soname_spec='${libname}${release}${shared_ext}$major'
20405     if test "X$HPUX_IA64_MODE" = X32; then
20406       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20407     else
20408       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20409     fi
20410     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20411     ;;
20412   hppa*64*)
20413     shrext_cmds='.sl'
20414     hardcode_into_libs=yes
20415     dynamic_linker="$host_os dld.sl"
20416     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20417     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419     soname_spec='${libname}${release}${shared_ext}$major'
20420     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20421     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20422     ;;
20423   *)
20424     shrext_cmds='.sl'
20425     dynamic_linker="$host_os dld.sl"
20426     shlibpath_var=SHLIB_PATH
20427     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429     soname_spec='${libname}${release}${shared_ext}$major'
20430     ;;
20431   esac
20432   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20433   postinstall_cmds='chmod 555 $lib'
20434   # or fails outright, so override atomically:
20435   install_override_mode=555
20436   ;;
20437
20438 interix[3-9]*)
20439   version_type=linux
20440   need_lib_prefix=no
20441   need_version=no
20442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20443   soname_spec='${libname}${release}${shared_ext}$major'
20444   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20445   shlibpath_var=LD_LIBRARY_PATH
20446   shlibpath_overrides_runpath=no
20447   hardcode_into_libs=yes
20448   ;;
20449
20450 irix5* | irix6* | nonstopux*)
20451   case $host_os in
20452     nonstopux*) version_type=nonstopux ;;
20453     *)
20454         if test "$lt_cv_prog_gnu_ld" = yes; then
20455                 version_type=linux
20456         else
20457                 version_type=irix
20458         fi ;;
20459   esac
20460   need_lib_prefix=no
20461   need_version=no
20462   soname_spec='${libname}${release}${shared_ext}$major'
20463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20464   case $host_os in
20465   irix5* | nonstopux*)
20466     libsuff= shlibsuff=
20467     ;;
20468   *)
20469     case $LD in # libtool.m4 will add one of these switches to LD
20470     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20471       libsuff= shlibsuff= libmagic=32-bit;;
20472     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20473       libsuff=32 shlibsuff=N32 libmagic=N32;;
20474     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20475       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20476     *) libsuff= shlibsuff= libmagic=never-match;;
20477     esac
20478     ;;
20479   esac
20480   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20481   shlibpath_overrides_runpath=no
20482   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20483   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20484   hardcode_into_libs=yes
20485   ;;
20486
20487 # No shared lib support for Linux oldld, aout, or coff.
20488 linux*oldld* | linux*aout* | linux*coff*)
20489   dynamic_linker=no
20490   ;;
20491
20492 # This must be Linux ELF.
20493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20494   version_type=linux
20495   need_lib_prefix=no
20496   need_version=no
20497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498   soname_spec='${libname}${release}${shared_ext}$major'
20499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20500   shlibpath_var=LD_LIBRARY_PATH
20501   shlibpath_overrides_runpath=no
20502
20503   # Some binutils ld are patched to set DT_RUNPATH
20504   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20505   $as_echo_n "(cached) " >&6
20506 else
20507   lt_cv_shlibpath_overrides_runpath=no
20508     save_LDFLAGS=$LDFLAGS
20509     save_libdir=$libdir
20510     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20511          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513 /* end confdefs.h.  */
20514
20515 int
20516 main ()
20517 {
20518
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 if ac_fn_cxx_try_link "$LINENO"; then :
20524   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20525   lt_cv_shlibpath_overrides_runpath=yes
20526 fi
20527 fi
20528 rm -f core conftest.err conftest.$ac_objext \
20529     conftest$ac_exeext conftest.$ac_ext
20530     LDFLAGS=$save_LDFLAGS
20531     libdir=$save_libdir
20532
20533 fi
20534
20535   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20536
20537   # This implies no fast_install, which is unacceptable.
20538   # Some rework will be needed to allow for fast_install
20539   # before this can be enabled.
20540   hardcode_into_libs=yes
20541
20542   # Append ld.so.conf contents to the search path
20543   if test -f /etc/ld.so.conf; then
20544     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' ' '`
20545     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20546   fi
20547
20548   # We used to test for /lib/ld.so.1 and disable shared libraries on
20549   # powerpc, because MkLinux only supported shared libraries with the
20550   # GNU dynamic linker.  Since this was broken with cross compilers,
20551   # most powerpc-linux boxes support dynamic linking these days and
20552   # people can always --disable-shared, the test was removed, and we
20553   # assume the GNU/Linux dynamic linker is in use.
20554   dynamic_linker='GNU/Linux ld.so'
20555   ;;
20556
20557 netbsd*)
20558   version_type=sunos
20559   need_lib_prefix=no
20560   need_version=no
20561   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20563     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20564     dynamic_linker='NetBSD (a.out) ld.so'
20565   else
20566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20567     soname_spec='${libname}${release}${shared_ext}$major'
20568     dynamic_linker='NetBSD ld.elf_so'
20569   fi
20570   shlibpath_var=LD_LIBRARY_PATH
20571   shlibpath_overrides_runpath=yes
20572   hardcode_into_libs=yes
20573   ;;
20574
20575 newsos6)
20576   version_type=linux
20577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20578   shlibpath_var=LD_LIBRARY_PATH
20579   shlibpath_overrides_runpath=yes
20580   ;;
20581
20582 *nto* | *qnx*)
20583   version_type=qnx
20584   need_lib_prefix=no
20585   need_version=no
20586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20587   soname_spec='${libname}${release}${shared_ext}$major'
20588   shlibpath_var=LD_LIBRARY_PATH
20589   shlibpath_overrides_runpath=no
20590   hardcode_into_libs=yes
20591   dynamic_linker='ldqnx.so'
20592   ;;
20593
20594 openbsd*)
20595   version_type=sunos
20596   sys_lib_dlsearch_path_spec="/usr/lib"
20597   need_lib_prefix=no
20598   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20599   case $host_os in
20600     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20601     *)                          need_version=no  ;;
20602   esac
20603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20605   shlibpath_var=LD_LIBRARY_PATH
20606   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20607     case $host_os in
20608       openbsd2.[89] | openbsd2.[89].*)
20609         shlibpath_overrides_runpath=no
20610         ;;
20611       *)
20612         shlibpath_overrides_runpath=yes
20613         ;;
20614       esac
20615   else
20616     shlibpath_overrides_runpath=yes
20617   fi
20618   ;;
20619
20620 os2*)
20621   libname_spec='$name'
20622   shrext_cmds=".dll"
20623   need_lib_prefix=no
20624   library_names_spec='$libname${shared_ext} $libname.a'
20625   dynamic_linker='OS/2 ld.exe'
20626   shlibpath_var=LIBPATH
20627   ;;
20628
20629 osf3* | osf4* | osf5*)
20630   version_type=osf
20631   need_lib_prefix=no
20632   need_version=no
20633   soname_spec='${libname}${release}${shared_ext}$major'
20634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20635   shlibpath_var=LD_LIBRARY_PATH
20636   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20637   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20638   ;;
20639
20640 rdos*)
20641   dynamic_linker=no
20642   ;;
20643
20644 solaris*)
20645   version_type=linux
20646   need_lib_prefix=no
20647   need_version=no
20648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20649   soname_spec='${libname}${release}${shared_ext}$major'
20650   shlibpath_var=LD_LIBRARY_PATH
20651   shlibpath_overrides_runpath=yes
20652   hardcode_into_libs=yes
20653   # ldd complains unless libraries are executable
20654   postinstall_cmds='chmod +x $lib'
20655   ;;
20656
20657 sunos4*)
20658   version_type=sunos
20659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20660   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20661   shlibpath_var=LD_LIBRARY_PATH
20662   shlibpath_overrides_runpath=yes
20663   if test "$with_gnu_ld" = yes; then
20664     need_lib_prefix=no
20665   fi
20666   need_version=yes
20667   ;;
20668
20669 sysv4 | sysv4.3*)
20670   version_type=linux
20671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20672   soname_spec='${libname}${release}${shared_ext}$major'
20673   shlibpath_var=LD_LIBRARY_PATH
20674   case $host_vendor in
20675     sni)
20676       shlibpath_overrides_runpath=no
20677       need_lib_prefix=no
20678       runpath_var=LD_RUN_PATH
20679       ;;
20680     siemens)
20681       need_lib_prefix=no
20682       ;;
20683     motorola)
20684       need_lib_prefix=no
20685       need_version=no
20686       shlibpath_overrides_runpath=no
20687       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20688       ;;
20689   esac
20690   ;;
20691
20692 sysv4*MP*)
20693   if test -d /usr/nec ;then
20694     version_type=linux
20695     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20696     soname_spec='$libname${shared_ext}.$major'
20697     shlibpath_var=LD_LIBRARY_PATH
20698   fi
20699   ;;
20700
20701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20702   version_type=freebsd-elf
20703   need_lib_prefix=no
20704   need_version=no
20705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20706   soname_spec='${libname}${release}${shared_ext}$major'
20707   shlibpath_var=LD_LIBRARY_PATH
20708   shlibpath_overrides_runpath=yes
20709   hardcode_into_libs=yes
20710   if test "$with_gnu_ld" = yes; then
20711     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20712   else
20713     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20714     case $host_os in
20715       sco3.2v5*)
20716         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20717         ;;
20718     esac
20719   fi
20720   sys_lib_dlsearch_path_spec='/usr/lib'
20721   ;;
20722
20723 tpf*)
20724   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20725   version_type=linux
20726   need_lib_prefix=no
20727   need_version=no
20728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20729   shlibpath_var=LD_LIBRARY_PATH
20730   shlibpath_overrides_runpath=no
20731   hardcode_into_libs=yes
20732   ;;
20733
20734 uts4*)
20735   version_type=linux
20736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20737   soname_spec='${libname}${release}${shared_ext}$major'
20738   shlibpath_var=LD_LIBRARY_PATH
20739   ;;
20740
20741 *)
20742   dynamic_linker=no
20743   ;;
20744 esac
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20746 $as_echo "$dynamic_linker" >&6; }
20747 test "$dynamic_linker" = no && can_build_shared=no
20748
20749 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20750 if test "$GCC" = yes; then
20751   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20752 fi
20753
20754 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20755   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20756 fi
20757 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20758   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20759 fi
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20799 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20800 hardcode_action_CXX=
20801 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20802    test -n "$runpath_var_CXX" ||
20803    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20804
20805   # We can hardcode non-existent directories.
20806   if test "$hardcode_direct_CXX" != no &&
20807      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20808      # have to relink, otherwise we might link with an installed library
20809      # when we should be linking with a yet-to-be-installed one
20810      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20811      test "$hardcode_minus_L_CXX" != no; then
20812     # Linking always hardcodes the temporary library directory.
20813     hardcode_action_CXX=relink
20814   else
20815     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20816     hardcode_action_CXX=immediate
20817   fi
20818 else
20819   # We cannot hardcode anything, or else we can only hardcode existing
20820   # directories.
20821   hardcode_action_CXX=unsupported
20822 fi
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20824 $as_echo "$hardcode_action_CXX" >&6; }
20825
20826 if test "$hardcode_action_CXX" = relink ||
20827    test "$inherit_rpath_CXX" = yes; then
20828   # Fast installation is not supported
20829   enable_fast_install=no
20830 elif test "$shlibpath_overrides_runpath" = yes ||
20831      test "$enable_shared" = no; then
20832   # Fast installation is not necessary
20833   enable_fast_install=needless
20834 fi
20835
20836
20837
20838
20839
20840
20841
20842   fi # test -n "$compiler"
20843
20844   CC=$lt_save_CC
20845   LDCXX=$LD
20846   LD=$lt_save_LD
20847   GCC=$lt_save_GCC
20848   with_gnu_ld=$lt_save_with_gnu_ld
20849   lt_cv_path_LDCXX=$lt_cv_path_LD
20850   lt_cv_path_LD=$lt_save_path_LD
20851   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20852   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20853 fi # test "$_lt_caught_CXX_error" != yes
20854
20855 ac_ext=c
20856 ac_cpp='$CPP $CPPFLAGS'
20857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876 # Only expand once:
20877
20878
20879
20880
20881
20882 # Identify the assembler which will work hand-in-glove with the newly
20883 # built GCC, so that we can examine its features.  This is the assembler
20884 # which will be driven by the driver program.
20885 #
20886 # If build != host, and we aren't building gas in-tree, we identify a
20887 # build->target assembler and hope that it will have the same features
20888 # as the host->target assembler we'll be using.
20889 gcc_cv_gas_major_version=
20890 gcc_cv_gas_minor_version=
20891 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20892
20893 if test "${gcc_cv_as+set}" = set; then :
20894
20895 else
20896
20897 if test -x "$DEFAULT_ASSEMBLER"; then
20898         gcc_cv_as="$DEFAULT_ASSEMBLER"
20899 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20900      && test -f ../gas/Makefile \
20901      && test x$build = x$host; then
20902         gcc_cv_as=../gas/as-new$build_exeext
20903 elif test -x as$build_exeext; then
20904         # Build using assembler in the current directory.
20905         gcc_cv_as=./as$build_exeext
20906 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20907         gcc_cv_as="$AS_FOR_TARGET"
20908 else
20909         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20910 set dummy $AS_FOR_TARGET; ac_word=$2
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20912 $as_echo_n "checking for $ac_word... " >&6; }
20913 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20914   $as_echo_n "(cached) " >&6
20915 else
20916   case $gcc_cv_as in
20917   [\\/]* | ?:[\\/]*)
20918   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20919   ;;
20920   *)
20921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20922 for as_dir in $PATH
20923 do
20924   IFS=$as_save_IFS
20925   test -z "$as_dir" && as_dir=.
20926     for ac_exec_ext in '' $ac_executable_extensions; do
20927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20928     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20930     break 2
20931   fi
20932 done
20933   done
20934 IFS=$as_save_IFS
20935
20936   ;;
20937 esac
20938 fi
20939 gcc_cv_as=$ac_cv_path_gcc_cv_as
20940 if test -n "$gcc_cv_as"; then
20941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20942 $as_echo "$gcc_cv_as" >&6; }
20943 else
20944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945 $as_echo "no" >&6; }
20946 fi
20947
20948
20949 fi
20950 fi
20951
20952 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20953
20954 case "$ORIGINAL_AS_FOR_TARGET" in
20955   ./as | ./as$build_exeext) ;;
20956   *) ac_config_files="$ac_config_files as:exec-tool.in"
20957  ;;
20958 esac
20959
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20961 $as_echo_n "checking what assembler to use... " >&6; }
20962 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20963   # Single tree build which includes gas.  We want to prefer it
20964   # over whatever linker top-level may have detected, since
20965   # we'll use what we're building after installation anyway.
20966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20967 $as_echo "newly built gas" >&6; }
20968   in_tree_gas=yes
20969   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20970 for f in $gcc_cv_as_bfd_srcdir/configure \
20971          $gcc_cv_as_gas_srcdir/configure \
20972          $gcc_cv_as_gas_srcdir/configure.in \
20973          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20974   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20975   if test x$gcc_cv_gas_version != x; then
20976     break
20977   fi
20978 done
20979 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20980 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20981 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20982 case $gcc_cv_gas_patch_version in
20983   "") gcc_cv_gas_patch_version="0" ;;
20984 esac
20985 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20986                             + $gcc_cv_gas_minor_version \) \* 1000 \
20987                             + $gcc_cv_gas_patch_version`
20988
20989   in_tree_gas_is_elf=no
20990   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20991      || (grep 'obj_format = multi' ../gas/Makefile \
20992          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20993   then
20994     in_tree_gas_is_elf=yes
20995   fi
20996 else
20997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20998 $as_echo "$gcc_cv_as" >&6; }
20999   in_tree_gas=no
21000 fi
21001
21002 # Identify the linker which will work hand-in-glove with the newly
21003 # built GCC, so that we can examine its features.  This is the linker
21004 # which will be driven by the driver program.
21005 #
21006 # If build != host, and we aren't building gas in-tree, we identify a
21007 # build->target linker and hope that it will have the same features
21008 # as the host->target linker we'll be using.
21009 gcc_cv_gld_major_version=
21010 gcc_cv_gld_minor_version=
21011 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21012 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21013
21014 if test "${gcc_cv_ld+set}" = set; then :
21015
21016 else
21017
21018 if test -x "$DEFAULT_LINKER"; then
21019         gcc_cv_ld="$DEFAULT_LINKER"
21020 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21021      && test -f ../ld/Makefile \
21022      && test x$build = x$host; then
21023         gcc_cv_ld=../ld/ld-new$build_exeext
21024 elif test -x collect-ld$build_exeext; then
21025         # Build using linker in the current directory.
21026         gcc_cv_ld=./collect-ld$build_exeext
21027 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21028         gcc_cv_ld="$LD_FOR_TARGET"
21029 else
21030         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21031 set dummy $LD_FOR_TARGET; ac_word=$2
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21033 $as_echo_n "checking for $ac_word... " >&6; }
21034 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21035   $as_echo_n "(cached) " >&6
21036 else
21037   case $gcc_cv_ld in
21038   [\\/]* | ?:[\\/]*)
21039   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21040   ;;
21041   *)
21042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21043 for as_dir in $PATH
21044 do
21045   IFS=$as_save_IFS
21046   test -z "$as_dir" && as_dir=.
21047     for ac_exec_ext in '' $ac_executable_extensions; do
21048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21049     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21051     break 2
21052   fi
21053 done
21054   done
21055 IFS=$as_save_IFS
21056
21057   ;;
21058 esac
21059 fi
21060 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21061 if test -n "$gcc_cv_ld"; then
21062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21063 $as_echo "$gcc_cv_ld" >&6; }
21064 else
21065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21066 $as_echo "no" >&6; }
21067 fi
21068
21069
21070 fi
21071 fi
21072
21073 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21074 PLUGIN_LD=`basename $gcc_cv_ld`
21075
21076 # Check whether --with-plugin-ld was given.
21077 if test "${with_plugin_ld+set}" = set; then :
21078   withval=$with_plugin_ld; if test x"$withval" != x; then
21079    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21080    PLUGIN_LD="$withval"
21081  fi
21082 fi
21083
21084
21085
21086 cat >>confdefs.h <<_ACEOF
21087 #define PLUGIN_LD "$PLUGIN_LD"
21088 _ACEOF
21089
21090
21091 # Check to see if we are using gold instead of ld
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21093 $as_echo_n "checking whether we are using gold... " >&6; }
21094 ld_is_gold=no
21095 if test x$gcc_cv_ld != x; then
21096   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21097      | grep "GNU gold" > /dev/null; then
21098     ld_is_gold=yes
21099   fi
21100 fi
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21102 $as_echo "$ld_is_gold" >&6; }
21103
21104 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21105
21106 case "$ORIGINAL_LD_FOR_TARGET" in
21107   ./collect-ld | ./collect-ld$build_exeext) ;;
21108   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21109  ;;
21110 esac
21111
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21113 $as_echo_n "checking what linker to use... " >&6; }
21114 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21115    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21116         # Single tree build which includes ld.  We want to prefer it
21117         # over whatever linker top-level may have detected, since
21118         # we'll use what we're building after installation anyway.
21119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21120 $as_echo "newly built ld" >&6; }
21121         in_tree_ld=yes
21122         in_tree_ld_is_elf=no
21123         if (grep 'EMUL = .*elf' ../ld/Makefile \
21124             || grep 'EMUL = .*linux' ../ld/Makefile \
21125             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21126           in_tree_ld_is_elf=yes
21127         elif test "$ld_is_gold" = yes; then
21128           in_tree_ld_is_elf=yes
21129         fi
21130         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
21131         do
21132                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21133                 if test x$gcc_cv_gld_version != x; then
21134                         break
21135                 fi
21136         done
21137         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21138         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21139 else
21140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21141 $as_echo "$gcc_cv_ld" >&6; }
21142         in_tree_ld=no
21143 fi
21144
21145 # Figure out what nm we will be using.
21146 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21147 if test "${gcc_cv_nm+set}" = set; then :
21148
21149 else
21150
21151 if test -f $gcc_cv_binutils_srcdir/configure.in \
21152      && test -f ../binutils/Makefile \
21153      && test x$build = x$host; then
21154         gcc_cv_nm=../binutils/nm-new$build_exeext
21155 elif test -x nm$build_exeext; then
21156         gcc_cv_nm=./nm$build_exeext
21157 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21158         gcc_cv_nm="$NM_FOR_TARGET"
21159 else
21160         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21161 set dummy $NM_FOR_TARGET; ac_word=$2
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21163 $as_echo_n "checking for $ac_word... " >&6; }
21164 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21165   $as_echo_n "(cached) " >&6
21166 else
21167   case $gcc_cv_nm in
21168   [\\/]* | ?:[\\/]*)
21169   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21170   ;;
21171   *)
21172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21173 for as_dir in $PATH
21174 do
21175   IFS=$as_save_IFS
21176   test -z "$as_dir" && as_dir=.
21177     for ac_exec_ext in '' $ac_executable_extensions; do
21178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21179     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21181     break 2
21182   fi
21183 done
21184   done
21185 IFS=$as_save_IFS
21186
21187   ;;
21188 esac
21189 fi
21190 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21191 if test -n "$gcc_cv_nm"; then
21192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21193 $as_echo "$gcc_cv_nm" >&6; }
21194 else
21195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21196 $as_echo "no" >&6; }
21197 fi
21198
21199
21200 fi
21201 fi
21202
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21204 $as_echo_n "checking what nm to use... " >&6; }
21205 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21206         # Single tree build which includes binutils.
21207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21208 $as_echo "newly built nm" >&6; }
21209         in_tree_nm=yes
21210 else
21211         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21212 $as_echo "$gcc_cv_nm" >&6; }
21213         in_tree_nm=no
21214 fi
21215
21216 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21217
21218 case "$ORIGINAL_NM_FOR_TARGET" in
21219   ./nm | ./nm$build_exeext) ;;
21220   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21221  ;;
21222 esac
21223
21224
21225 # Figure out what objdump we will be using.
21226 if test "${gcc_cv_objdump+set}" = set; then :
21227
21228 else
21229
21230 if test -f $gcc_cv_binutils_srcdir/configure.in \
21231      && test -f ../binutils/Makefile \
21232      && test x$build = x$host; then
21233         # Single tree build which includes binutils.
21234         gcc_cv_objdump=../binutils/objdump$build_exeext
21235 elif test -x objdump$build_exeext; then
21236         gcc_cv_objdump=./objdump$build_exeext
21237 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21238         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21239 else
21240         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21241 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21243 $as_echo_n "checking for $ac_word... " >&6; }
21244 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21245   $as_echo_n "(cached) " >&6
21246 else
21247   case $gcc_cv_objdump in
21248   [\\/]* | ?:[\\/]*)
21249   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21250   ;;
21251   *)
21252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21253 for as_dir in $PATH
21254 do
21255   IFS=$as_save_IFS
21256   test -z "$as_dir" && as_dir=.
21257     for ac_exec_ext in '' $ac_executable_extensions; do
21258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21259     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21261     break 2
21262   fi
21263 done
21264   done
21265 IFS=$as_save_IFS
21266
21267   ;;
21268 esac
21269 fi
21270 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21271 if test -n "$gcc_cv_objdump"; then
21272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21273 $as_echo "$gcc_cv_objdump" >&6; }
21274 else
21275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21276 $as_echo "no" >&6; }
21277 fi
21278
21279
21280 fi
21281 fi
21282
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21284 $as_echo_n "checking what objdump to use... " >&6; }
21285 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21286         # Single tree build which includes binutils.
21287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21288 $as_echo "newly built objdump" >&6; }
21289 elif test x$gcc_cv_objdump = x; then
21290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21291 $as_echo "not found" >&6; }
21292 else
21293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21294 $as_echo "$gcc_cv_objdump" >&6; }
21295 fi
21296
21297 # Figure out what readelf we will be using.
21298 if test "${gcc_cv_readelf+set}" = set; then :
21299
21300 else
21301
21302 if test -f $gcc_cv_binutils_srcdir/configure.in \
21303      && test -f ../binutils/Makefile \
21304      && test x$build = x$host; then
21305         # Single tree build which includes binutils.
21306         gcc_cv_readelf=../binutils/readelf$build_exeext
21307 elif test -x readelf$build_exeext; then
21308         gcc_cv_readelf=./readelf$build_exeext
21309 else
21310         # Extract the first word of "readelf", so it can be a program name with args.
21311 set dummy readelf; ac_word=$2
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21313 $as_echo_n "checking for $ac_word... " >&6; }
21314 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21315   $as_echo_n "(cached) " >&6
21316 else
21317   case $gcc_cv_readelf in
21318   [\\/]* | ?:[\\/]*)
21319   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21320   ;;
21321   *)
21322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21323 for as_dir in $PATH
21324 do
21325   IFS=$as_save_IFS
21326   test -z "$as_dir" && as_dir=.
21327     for ac_exec_ext in '' $ac_executable_extensions; do
21328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21329     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21331     break 2
21332   fi
21333 done
21334   done
21335 IFS=$as_save_IFS
21336
21337   ;;
21338 esac
21339 fi
21340 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21341 if test -n "$gcc_cv_readelf"; then
21342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21343 $as_echo "$gcc_cv_readelf" >&6; }
21344 else
21345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21346 $as_echo "no" >&6; }
21347 fi
21348
21349
21350 fi
21351 fi
21352
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21354 $as_echo_n "checking what readelf to use... " >&6; }
21355 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21356         # Single tree build which includes binutils.
21357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21358 $as_echo "newly built readelf" >&6; }
21359 elif test x$gcc_cv_readelf = x; then
21360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21361 $as_echo "not found" >&6; }
21362 else
21363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21364 $as_echo "$gcc_cv_readelf" >&6; }
21365 fi
21366
21367 # Figure out what assembler alignment features are present.
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21369 $as_echo_n "checking assembler flags... " >&6; }
21370 if test "${gcc_cv_as_flags+set}" = set; then :
21371   $as_echo_n "(cached) " >&6
21372 else
21373    case "$target" in
21374   i[34567]86-*-linux*)
21375         gcc_cv_as_flags="--32"
21376     ;;
21377   powerpc*-*-darwin*)
21378         gcc_cv_as_flags="-arch ppc"
21379     ;;
21380   *)
21381     gcc_cv_as_flags=" "
21382     ;;
21383   esac
21384 fi
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21386 $as_echo "$gcc_cv_as_flags" >&6; }
21387
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21389 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21390 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21391   $as_echo_n "(cached) " >&6
21392 else
21393   gcc_cv_as_balign_and_p2align=no
21394     if test $in_tree_gas = yes; then
21395     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21396   then gcc_cv_as_balign_and_p2align=yes
21397 fi
21398   elif test x$gcc_cv_as != x; then
21399     echo '.balign 4
21400 .p2align 2' > conftest.s
21401     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21402   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21403   (eval $ac_try) 2>&5
21404   ac_status=$?
21405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21406   test $ac_status = 0; }; }
21407     then
21408         gcc_cv_as_balign_and_p2align=yes
21409     else
21410       echo "configure: failed program was" >&5
21411       cat conftest.s >&5
21412     fi
21413     rm -f conftest.o conftest.s
21414   fi
21415 fi
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21417 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21418 if test $gcc_cv_as_balign_and_p2align = yes; then
21419
21420 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21421
21422 fi
21423
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21425 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21426 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21427   $as_echo_n "(cached) " >&6
21428 else
21429   gcc_cv_as_max_skip_p2align=no
21430     if test $in_tree_gas = yes; then
21431     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21432   then gcc_cv_as_max_skip_p2align=yes
21433 fi
21434   elif test x$gcc_cv_as != x; then
21435     echo '.p2align 4,,7' > conftest.s
21436     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21437   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21438   (eval $ac_try) 2>&5
21439   ac_status=$?
21440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21441   test $ac_status = 0; }; }
21442     then
21443         gcc_cv_as_max_skip_p2align=yes
21444     else
21445       echo "configure: failed program was" >&5
21446       cat conftest.s >&5
21447     fi
21448     rm -f conftest.o conftest.s
21449   fi
21450 fi
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21452 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21453 if test $gcc_cv_as_max_skip_p2align = yes; then
21454
21455 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21456
21457 fi
21458
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21460 $as_echo_n "checking assembler for .literal16... " >&6; }
21461 if test "${gcc_cv_as_literal16+set}" = set; then :
21462   $as_echo_n "(cached) " >&6
21463 else
21464   gcc_cv_as_literal16=no
21465     if test $in_tree_gas = yes; then
21466     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21467   then gcc_cv_as_literal16=yes
21468 fi
21469   elif test x$gcc_cv_as != x; then
21470     echo '.literal16' > conftest.s
21471     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21472   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21473   (eval $ac_try) 2>&5
21474   ac_status=$?
21475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21476   test $ac_status = 0; }; }
21477     then
21478         gcc_cv_as_literal16=yes
21479     else
21480       echo "configure: failed program was" >&5
21481       cat conftest.s >&5
21482     fi
21483     rm -f conftest.o conftest.s
21484   fi
21485 fi
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21487 $as_echo "$gcc_cv_as_literal16" >&6; }
21488 if test $gcc_cv_as_literal16 = yes; then
21489
21490 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21491
21492 fi
21493
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21495 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21496 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21497   $as_echo_n "(cached) " >&6
21498 else
21499   gcc_cv_as_subsection_m1=no
21500     if test $in_tree_gas = yes; then
21501     if test $in_tree_gas_is_elf = yes \
21502   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21503   then gcc_cv_as_subsection_m1=yes
21504 fi
21505   elif test x$gcc_cv_as != x; then
21506     echo 'conftest_label1: .word 0
21507 .subsection -1
21508 conftest_label2: .word 0
21509 .previous' > conftest.s
21510     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21511   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21512   (eval $ac_try) 2>&5
21513   ac_status=$?
21514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21515   test $ac_status = 0; }; }
21516     then
21517         if test x$gcc_cv_nm != x; then
21518     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21519     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21520     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21521     then :
21522     else gcc_cv_as_subsection_m1=yes
21523     fi
21524     rm -f conftest.nm1 conftest.nm2
21525   fi
21526     else
21527       echo "configure: failed program was" >&5
21528       cat conftest.s >&5
21529     fi
21530     rm -f conftest.o conftest.s
21531   fi
21532 fi
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21534 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21535 if test $gcc_cv_as_subsection_m1 = yes; then
21536
21537 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21538
21539 fi
21540
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21542 $as_echo_n "checking assembler for .weak... " >&6; }
21543 if test "${gcc_cv_as_weak+set}" = set; then :
21544   $as_echo_n "(cached) " >&6
21545 else
21546   gcc_cv_as_weak=no
21547     if test $in_tree_gas = yes; then
21548     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21549   then gcc_cv_as_weak=yes
21550 fi
21551   elif test x$gcc_cv_as != x; then
21552     echo '      .weak foobar' > conftest.s
21553     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21554   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21555   (eval $ac_try) 2>&5
21556   ac_status=$?
21557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21558   test $ac_status = 0; }; }
21559     then
21560         gcc_cv_as_weak=yes
21561     else
21562       echo "configure: failed program was" >&5
21563       cat conftest.s >&5
21564     fi
21565     rm -f conftest.o conftest.s
21566   fi
21567 fi
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21569 $as_echo "$gcc_cv_as_weak" >&6; }
21570 if test $gcc_cv_as_weak = yes; then
21571
21572 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21573
21574 fi
21575
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21577 $as_echo_n "checking assembler for .weakref... " >&6; }
21578 if test "${gcc_cv_as_weakref+set}" = set; then :
21579   $as_echo_n "(cached) " >&6
21580 else
21581   gcc_cv_as_weakref=no
21582     if test $in_tree_gas = yes; then
21583     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21584   then gcc_cv_as_weakref=yes
21585 fi
21586   elif test x$gcc_cv_as != x; then
21587     echo '      .weakref foobar, barfnot' > conftest.s
21588     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21589   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21590   (eval $ac_try) 2>&5
21591   ac_status=$?
21592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21593   test $ac_status = 0; }; }
21594     then
21595         gcc_cv_as_weakref=yes
21596     else
21597       echo "configure: failed program was" >&5
21598       cat conftest.s >&5
21599     fi
21600     rm -f conftest.o conftest.s
21601   fi
21602 fi
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21604 $as_echo "$gcc_cv_as_weakref" >&6; }
21605 if test $gcc_cv_as_weakref = yes; then
21606
21607 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21608
21609 fi
21610
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21612 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21613 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21614   $as_echo_n "(cached) " >&6
21615 else
21616   gcc_cv_as_nsubspa_comdat=no
21617     if test $in_tree_gas = yes; then
21618     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21619   then gcc_cv_as_nsubspa_comdat=yes
21620 fi
21621   elif test x$gcc_cv_as != x; then
21622     echo '      .SPACE $TEXT$
21623         .NSUBSPA $CODE$,COMDAT' > conftest.s
21624     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21625   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21626   (eval $ac_try) 2>&5
21627   ac_status=$?
21628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21629   test $ac_status = 0; }; }
21630     then
21631         gcc_cv_as_nsubspa_comdat=yes
21632     else
21633       echo "configure: failed program was" >&5
21634       cat conftest.s >&5
21635     fi
21636     rm -f conftest.o conftest.s
21637   fi
21638 fi
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21640 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21641 if test $gcc_cv_as_nsubspa_comdat = yes; then
21642
21643 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21644
21645 fi
21646
21647 # .hidden needs to be supported in both the assembler and the linker,
21648 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21649 # This is irritatingly difficult to feature test for; we have to check the
21650 # date string after the version number.  If we've got an in-tree
21651 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21652 # to be safe.
21653 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21655 $as_echo_n "checking assembler for .hidden... " >&6; }
21656 if test "${gcc_cv_as_hidden+set}" = set; then :
21657   $as_echo_n "(cached) " >&6
21658 else
21659   gcc_cv_as_hidden=no
21660     if test $in_tree_gas = yes; then
21661     if test $in_tree_gas_is_elf = yes \
21662   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21663   then gcc_cv_as_hidden=yes
21664 fi
21665   elif test x$gcc_cv_as != x; then
21666     echo '      .hidden foobar
21667 foobar:' > conftest.s
21668     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21669   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21670   (eval $ac_try) 2>&5
21671   ac_status=$?
21672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21673   test $ac_status = 0; }; }
21674     then
21675
21676 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21677 # STV_HIDDEN, so disable .hidden support if so.
21678 case "${target}" in
21679   i?86-*-solaris2*)
21680     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21681       cat > conftest.s <<EOF
21682 .globl hidden
21683         .hidden hidden
21684 hidden:
21685 .globl default
21686         .set    default,hidden
21687 EOF
21688       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21689         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21690         grep '\.hidden default' > /dev/null; then
21691         gcc_cv_as_hidden=no
21692       else
21693         gcc_cv_as_hidden=yes
21694       fi
21695     else
21696       # Assume bug is present if objdump is missing.
21697       gcc_cv_as_hidden=no
21698     fi
21699     ;;
21700   *)
21701     gcc_cv_as_hidden=yes
21702     ;;
21703 esac
21704     else
21705       echo "configure: failed program was" >&5
21706       cat conftest.s >&5
21707     fi
21708     rm -f conftest.o conftest.s
21709   fi
21710 fi
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21712 $as_echo "$gcc_cv_as_hidden" >&6; }
21713
21714 case "${target}" in
21715   *-*-darwin*)
21716     # Darwin as has some visibility support, though with a different syntax.
21717     gcc_cv_as_hidden=yes
21718     ;;
21719 esac
21720
21721 # gnu_indirect_function type is an extension proposed at
21722 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21723 # selection of function implementation
21724 # Check whether --enable-gnu-indirect-function was given.
21725 if test "${enable_gnu_indirect_function+set}" = set; then :
21726   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21727     yes | no) ;;
21728     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21729 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21730   esac
21731 else
21732   enable_gnu_indirect_function="$default_gnu_indirect_function"
21733 fi
21734
21735 if test x$enable_gnu_indirect_function = xyes; then
21736
21737 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21738
21739 fi
21740
21741 if test $in_tree_ld != yes ; then
21742   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21743   if echo "$ld_ver" | grep GNU > /dev/null; then
21744     if test x"$ld_is_gold" = xyes; then
21745       # GNU gold --version looks like this:
21746       #
21747       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21748       #
21749       # We extract the binutils version which is more familiar and specific
21750       # than the gold version.
21751       ld_vers=`echo $ld_ver | sed -n \
21752           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21753     else
21754       # GNU ld --version looks like this:
21755       #
21756       # GNU ld (GNU Binutils) 2.21.51.20110225
21757       ld_vers=`echo $ld_ver | sed -n \
21758           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21759     fi
21760     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'`
21761     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21762     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21763     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21764   else
21765     case "${target}" in
21766       *-*-solaris2*)
21767         #
21768         # Solaris 2 ld -V output looks like this for a regular version:
21769         #
21770         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21771         #
21772         # but test versions add stuff at the end:
21773         #
21774         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21775         #
21776         ld_ver=`$gcc_cv_ld -V 2>&1`
21777         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21778           ld_vers=`echo $ld_ver | sed -n \
21779             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21780           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21781           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21782         fi
21783         ;;
21784     esac
21785   fi
21786 fi
21787
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21789 $as_echo_n "checking linker for .hidden support... " >&6; }
21790 if test "${gcc_cv_ld_hidden+set}" = set; then :
21791   $as_echo_n "(cached) " >&6
21792 else
21793   if test $in_tree_ld = yes ; then
21794   gcc_cv_ld_hidden=no
21795   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 \
21796      && test $in_tree_ld_is_elf = yes; then
21797      gcc_cv_ld_hidden=yes
21798   fi
21799 else
21800   gcc_cv_ld_hidden=yes
21801   if test x"$ld_is_gold" = xyes; then
21802     :
21803   elif echo "$ld_ver" | grep GNU > /dev/null; then
21804     if test 0"$ld_date" -lt 20020404; then
21805       if test -n "$ld_date"; then
21806         # If there was date string, but was earlier than 2002-04-04, fail
21807         gcc_cv_ld_hidden=no
21808       elif test -z "$ld_vers"; then
21809         # If there was no date string nor ld version number, something is wrong
21810         gcc_cv_ld_hidden=no
21811       else
21812         test -z "$ld_vers_patch" && ld_vers_patch=0
21813         if test "$ld_vers_major" -lt 2; then
21814           gcc_cv_ld_hidden=no
21815         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21816           gcc_cv_ld_hidden="no"
21817         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21818           gcc_cv_ld_hidden=no
21819         fi
21820       fi
21821     fi
21822   else
21823     case "${target}" in
21824       *-*-darwin*)
21825         # Darwin ld has some visibility support.
21826         gcc_cv_ld_hidden=yes
21827         ;;
21828       hppa64*-*-hpux* | ia64*-*-hpux*)
21829         gcc_cv_ld_hidden=yes
21830         ;;
21831       *-*-solaris2.8*)
21832         # .hidden support was backported to Solaris 8, starting with ld
21833         # version 1.276.
21834         if test "$ld_vers_minor" -ge 276; then
21835           gcc_cv_ld_hidden=yes
21836         else
21837           gcc_cv_ld_hidden=no
21838         fi
21839         ;;
21840       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21841         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21842         # .symbolic was only added in Solaris 9 12/02.
21843         gcc_cv_ld_hidden=yes
21844         ;;
21845       *)
21846         gcc_cv_ld_hidden=no
21847         ;;
21848     esac
21849   fi
21850 fi
21851 fi
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21853 $as_echo "$gcc_cv_ld_hidden" >&6; }
21854 libgcc_visibility=no
21855
21856
21857 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21858   libgcc_visibility=yes
21859
21860 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21861
21862 fi
21863
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21865 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21866 gcc_cv_ld_ro_rw_mix=unknown
21867 if test $in_tree_ld = yes ; then
21868   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 \
21869      && test $in_tree_ld_is_elf = yes; then
21870     gcc_cv_ld_ro_rw_mix=read-write
21871   fi
21872 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21873   echo '.section myfoosect, "a"' > conftest1.s
21874   echo '.section myfoosect, "aw"' > conftest2.s
21875   echo '.byte 1' >> conftest2.s
21876   echo '.section myfoosect, "a"' > conftest3.s
21877   echo '.byte 0' >> conftest3.s
21878   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21879      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21880      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21881      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21882         conftest2.o conftest3.o > /dev/null 2>&1; then
21883     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21884                          | sed -e '/myfoosect/!d' -e N`
21885     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21886       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21887         gcc_cv_ld_ro_rw_mix=read-only
21888       else
21889         gcc_cv_ld_ro_rw_mix=read-write
21890       fi
21891     fi
21892   fi
21893   rm -f conftest.* conftest[123].*
21894 fi
21895 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21896
21897 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21898
21899 fi
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21901 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21902
21903 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21905 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21906 if test "${gcc_cv_as_leb128+set}" = set; then :
21907   $as_echo_n "(cached) " >&6
21908 else
21909   gcc_cv_as_leb128=no
21910     if test $in_tree_gas = yes; then
21911     if test $in_tree_gas_is_elf = yes \
21912   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21913   then gcc_cv_as_leb128=yes
21914 fi
21915   elif test x$gcc_cv_as != x; then
21916     echo '      .data
21917         .uleb128 L2 - L1
21918 L1:
21919         .uleb128 1280
21920         .sleb128 -1010
21921 L2:' > conftest.s
21922     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21923   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21927   test $ac_status = 0; }; }
21928     then
21929         # GAS versions before 2.11 do not support uleb128,
21930   # despite appearing to.
21931   # ??? There exists an elf-specific test that will crash
21932   # the assembler.  Perhaps it's better to figure out whether
21933   # arbitrary sections are supported and try the test.
21934   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21935   if echo "$as_ver" | grep GNU > /dev/null; then
21936     as_vers=`echo $as_ver | sed -n \
21937         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21938     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21939     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21940     if test $as_major -eq 2 && test $as_minor -lt 11
21941     then :
21942     else gcc_cv_as_leb128=yes
21943     fi
21944   fi
21945     else
21946       echo "configure: failed program was" >&5
21947       cat conftest.s >&5
21948     fi
21949     rm -f conftest.o conftest.s
21950   fi
21951 fi
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21953 $as_echo "$gcc_cv_as_leb128" >&6; }
21954 if test $gcc_cv_as_leb128 = yes; then
21955
21956 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21957
21958 fi
21959
21960 # Check if we have assembler support for unwind directives.
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21962 $as_echo_n "checking assembler for cfi directives... " >&6; }
21963 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21964   $as_echo_n "(cached) " >&6
21965 else
21966   gcc_cv_as_cfi_directive=no
21967   if test x$gcc_cv_as != x; then
21968     echo '      .text
21969         .cfi_startproc
21970         .cfi_offset 0, 0
21971         .cfi_same_value 1
21972         .cfi_def_cfa 1, 2
21973         .cfi_escape 1, 2, 3, 4, 5
21974         .cfi_endproc' > conftest.s
21975     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21976   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21977   (eval $ac_try) 2>&5
21978   ac_status=$?
21979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21980   test $ac_status = 0; }; }
21981     then
21982         case "$target" in
21983   *-*-solaris*)
21984     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21985     # read-only and read-write sections, we need to make sure that the
21986     # assembler used emits read-write .eh_frame sections.
21987     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21988       if test "x$gcc_cv_objdump" != x; then
21989         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21990                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21991           gcc_cv_as_cfi_directive=no
21992         else
21993           case "$target" in
21994             i?86-*-solaris2.1[0-9]*)
21995               # On Solaris/x86, make sure that GCC and gas agree on using
21996               # read-only .eh_frame sections for 64-bit.
21997               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21998                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21999                         sed -e /.eh_frame/!d -e N | \
22000                         grep READONLY > /dev/null; then
22001                 gcc_cv_as_cfi_directive=yes
22002               else
22003                 gcc_cv_as_cfi_directive=no
22004               fi
22005               ;;
22006             *)
22007               gcc_cv_as_cfi_directive=yes
22008               ;;
22009           esac
22010         fi
22011       else
22012         # no objdump, err on the side of caution
22013         gcc_cv_as_cfi_directive=no
22014       fi
22015     else
22016       gcc_cv_as_cfi_directive=yes
22017     fi
22018     ;;
22019   *-*-*)
22020     gcc_cv_as_cfi_directive=yes
22021     ;;
22022 esac
22023     else
22024       echo "configure: failed program was" >&5
22025       cat conftest.s >&5
22026     fi
22027     rm -f conftest.o conftest.s
22028   fi
22029 fi
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22031 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22032
22033 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22035 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22036 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22037   $as_echo_n "(cached) " >&6
22038 else
22039   gcc_cv_as_cfi_advance_working=no
22040   if test x$gcc_cv_as != x; then
22041     echo '      .text
22042         .cfi_startproc
22043         .cfi_adjust_cfa_offset 64
22044         .skip 75040, 0
22045         .cfi_adjust_cfa_offset 128
22046         .cfi_endproc' > conftest.s
22047     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22048   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22049   (eval $ac_try) 2>&5
22050   ac_status=$?
22051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22052   test $ac_status = 0; }; }
22053     then
22054
22055 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22056     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22057    gcc_cv_as_cfi_advance_working=yes
22058 fi
22059
22060     else
22061       echo "configure: failed program was" >&5
22062       cat conftest.s >&5
22063     fi
22064     rm -f conftest.o conftest.s
22065   fi
22066 fi
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22068 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22069
22070 else
22071   # no objdump, err on the side of caution
22072   gcc_cv_as_cfi_advance_working=no
22073 fi
22074
22075
22076 cat >>confdefs.h <<_ACEOF
22077 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22078        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22079 _ACEOF
22080
22081
22082
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22084 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22085 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22086   $as_echo_n "(cached) " >&6
22087 else
22088   gcc_cv_as_cfi_personality_directive=no
22089   if test x$gcc_cv_as != x; then
22090     echo '      .text
22091         .cfi_startproc
22092         .cfi_personality 0, symbol
22093         .cfi_endproc' > conftest.s
22094     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22095   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22096   (eval $ac_try) 2>&5
22097   ac_status=$?
22098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22099   test $ac_status = 0; }; }
22100     then
22101         gcc_cv_as_cfi_personality_directive=yes
22102     else
22103       echo "configure: failed program was" >&5
22104       cat conftest.s >&5
22105     fi
22106     rm -f conftest.o conftest.s
22107   fi
22108 fi
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22110 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22111
22112
22113 cat >>confdefs.h <<_ACEOF
22114 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22115     then echo 1; else echo 0; fi`
22116 _ACEOF
22117
22118
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22120 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22121 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22122   $as_echo_n "(cached) " >&6
22123 else
22124   gcc_cv_as_cfi_sections_directive=no
22125   if test x$gcc_cv_as != x; then
22126     echo '      .text
22127         .cfi_sections .debug_frame, .eh_frame
22128         .cfi_startproc
22129         .cfi_endproc' > conftest.s
22130     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22131   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22132   (eval $ac_try) 2>&5
22133   ac_status=$?
22134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22135   test $ac_status = 0; }; }
22136     then
22137         case $target_os in
22138   win32 | pe | cygwin* | mingw32* | uwin*)
22139     # Need to check that we generated the correct relocation for the
22140     # .debug_frame section.  This was fixed for binutils 2.21.
22141     gcc_cv_as_cfi_sections_directive=no
22142     if test "x$gcc_cv_objdump" != x; then
22143      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22144         grep secrel > /dev/null; then
22145       gcc_cv_as_cfi_sections_directive=yes
22146      fi
22147     fi
22148     ;;
22149   *)
22150     gcc_cv_as_cfi_sections_directive=yes
22151     ;;
22152 esac
22153     else
22154       echo "configure: failed program was" >&5
22155       cat conftest.s >&5
22156     fi
22157     rm -f conftest.o conftest.s
22158   fi
22159 fi
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22161 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22162
22163
22164
22165 cat >>confdefs.h <<_ACEOF
22166 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22167     then echo 1; else echo 0; fi`
22168 _ACEOF
22169
22170
22171 # GAS versions up to and including 2.11.0 may mis-optimize
22172 # .eh_frame data.
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22174 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22175 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22176   $as_echo_n "(cached) " >&6
22177 else
22178   gcc_cv_as_eh_frame=no
22179     if test $in_tree_gas = yes; then
22180     if test $in_tree_gas_is_elf = yes \
22181   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22182   then gcc_cv_as_eh_frame=yes
22183 fi
22184   elif test x$gcc_cv_as != x; then
22185     echo '      .text
22186 .LFB1:
22187         .4byte  0
22188 .L1:
22189         .4byte  0
22190 .LFE1:
22191         .section        .eh_frame,"aw",@progbits
22192 __FRAME_BEGIN__:
22193         .4byte  .LECIE1-.LSCIE1
22194 .LSCIE1:
22195         .4byte  0x0
22196         .byte   0x1
22197         .ascii "z\0"
22198         .byte   0x1
22199         .byte   0x78
22200         .byte   0x1a
22201         .byte   0x0
22202         .byte   0x4
22203         .4byte  1
22204         .p2align 1
22205 .LECIE1:
22206 .LSFDE1:
22207         .4byte  .LEFDE1-.LASFDE1
22208 .LASFDE1:
22209         .4byte  .LASFDE1-__FRAME_BEGIN__
22210         .4byte  .LFB1
22211         .4byte  .LFE1-.LFB1
22212         .byte   0x4
22213         .4byte  .LFE1-.LFB1
22214         .byte   0x4
22215         .4byte  .L1-.LFB1
22216 .LEFDE1:' > conftest.s
22217     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22218   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22219   (eval $ac_try) 2>&5
22220   ac_status=$?
22221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22222   test $ac_status = 0; }; }
22223     then
22224           cat > conftest.lit <<EOF
22225  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22226  0010 01000000 12000000 18000000 00000000  ................
22227  0020 08000000 04080000 0044               .........D      
22228 EOF
22229 cat > conftest.big <<EOF
22230  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22231  0010 00000001 00000012 00000018 00000000  ................
22232  0020 00000008 04000000 0844               .........D      
22233 EOF
22234   # If the assembler didn't choke, and we can objdump,
22235   # and we got the correct data, then succeed.
22236   # The text in the here-document typically retains its unix-style line
22237   # endings, while the output of objdump will use host line endings.
22238   # Therefore, use diff -b for the comparisons.
22239   if test x$gcc_cv_objdump != x \
22240   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22241      | tail -3 > conftest.got \
22242   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22243     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22244   then
22245     gcc_cv_as_eh_frame=yes
22246   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22247   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22248   (eval $ac_try) 2>&5
22249   ac_status=$?
22250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22251   test $ac_status = 0; }; }; then
22252     gcc_cv_as_eh_frame=buggy
22253   else
22254     # Uh oh, what do we do now?
22255     gcc_cv_as_eh_frame=no
22256   fi
22257     else
22258       echo "configure: failed program was" >&5
22259       cat conftest.s >&5
22260     fi
22261     rm -f conftest.o conftest.s
22262   fi
22263 fi
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22265 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22266
22267
22268 if test $gcc_cv_as_eh_frame = buggy; then
22269
22270 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22271
22272 fi
22273
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22275 $as_echo_n "checking assembler for section merging support... " >&6; }
22276 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22277   $as_echo_n "(cached) " >&6
22278 else
22279   gcc_cv_as_shf_merge=no
22280     if test $in_tree_gas = yes; then
22281     if test $in_tree_gas_is_elf = yes \
22282   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22283   then gcc_cv_as_shf_merge=yes
22284 fi
22285   elif test x$gcc_cv_as != x; then
22286     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22287     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22288   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22289   (eval $ac_try) 2>&5
22290   ac_status=$?
22291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22292   test $ac_status = 0; }; }
22293     then
22294         gcc_cv_as_shf_merge=yes
22295     else
22296       echo "configure: failed program was" >&5
22297       cat conftest.s >&5
22298     fi
22299     rm -f conftest.o conftest.s
22300   fi
22301 fi
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22303 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22304
22305 if test $gcc_cv_as_shf_merge = no; then
22306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22307 $as_echo_n "checking assembler for section merging support... " >&6; }
22308 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22309   $as_echo_n "(cached) " >&6
22310 else
22311   gcc_cv_as_shf_merge=no
22312     if test $in_tree_gas = yes; then
22313     if test $in_tree_gas_is_elf = yes \
22314   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22315   then gcc_cv_as_shf_merge=yes
22316 fi
22317   elif test x$gcc_cv_as != x; then
22318     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22319     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22320   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22321   (eval $ac_try) 2>&5
22322   ac_status=$?
22323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22324   test $ac_status = 0; }; }
22325     then
22326         gcc_cv_as_shf_merge=yes
22327     else
22328       echo "configure: failed program was" >&5
22329       cat conftest.s >&5
22330     fi
22331     rm -f conftest.o conftest.s
22332   fi
22333 fi
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22335 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22336
22337 fi
22338
22339 cat >>confdefs.h <<_ACEOF
22340 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22341 _ACEOF
22342
22343
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22345 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22346 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22347   $as_echo_n "(cached) " >&6
22348 else
22349   gcc_cv_as_comdat_group=no
22350     if test $in_tree_gas = yes; then
22351     if test $in_tree_gas_is_elf = yes \
22352   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22353   then gcc_cv_as_comdat_group=yes
22354 fi
22355   elif test x$gcc_cv_as != x; then
22356     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22357     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22358   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22359   (eval $ac_try) 2>&5
22360   ac_status=$?
22361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22362   test $ac_status = 0; }; }
22363     then
22364         gcc_cv_as_comdat_group=yes
22365     else
22366       echo "configure: failed program was" >&5
22367       cat conftest.s >&5
22368     fi
22369     rm -f conftest.o conftest.s
22370   fi
22371 fi
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22373 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22374
22375 if test $gcc_cv_as_comdat_group = yes; then
22376   gcc_cv_as_comdat_group_percent=no
22377   gcc_cv_as_comdat_group_group=no
22378 else
22379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22380 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22381 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22382   $as_echo_n "(cached) " >&6
22383 else
22384   gcc_cv_as_comdat_group_percent=no
22385     if test $in_tree_gas = yes; then
22386     if test $in_tree_gas_is_elf = yes \
22387   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22388   then gcc_cv_as_comdat_group_percent=yes
22389 fi
22390   elif test x$gcc_cv_as != x; then
22391     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22392     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22393   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22394   (eval $ac_try) 2>&5
22395   ac_status=$?
22396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22397   test $ac_status = 0; }; }
22398     then
22399         gcc_cv_as_comdat_group_percent=yes
22400     else
22401       echo "configure: failed program was" >&5
22402       cat conftest.s >&5
22403     fi
22404     rm -f conftest.o conftest.s
22405   fi
22406 fi
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22408 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22409
22410  if test $gcc_cv_as_comdat_group_percent = yes; then
22411    gcc_cv_as_comdat_group_group=no
22412  else
22413    case "${target}" in
22414      # Sun as uses a completely different syntax.
22415      *-*-solaris2*)
22416        case "${target}" in
22417          sparc*-*-solaris2*)
22418            conftest_s='
22419                .group foo,".text%foo",#comdat
22420                .section ".text%foo", #alloc,#execinstr,#progbits
22421                .globl foo
22422              foo:
22423              '
22424            ;;
22425          i?86-*-solaris2*)
22426            conftest_s='
22427                .group foo,.text%foo,#comdat
22428                .section .text%foo, "ax", @progbits
22429                .globl  foo
22430              foo:
22431              '
22432            ;;
22433        esac
22434        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22435 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22436 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22437   $as_echo_n "(cached) " >&6
22438 else
22439   gcc_cv_as_comdat_group_group=no
22440   if test x$gcc_cv_as != x; then
22441     echo "$conftest_s" > conftest.s
22442     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22443   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447   test $ac_status = 0; }; }
22448     then
22449         gcc_cv_as_comdat_group_group=yes
22450     else
22451       echo "configure: failed program was" >&5
22452       cat conftest.s >&5
22453     fi
22454     rm -f conftest.o conftest.s
22455   fi
22456 fi
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22458 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22459
22460        ;;
22461    esac
22462  fi
22463 fi
22464 if test x"$ld_is_gold" = xyes; then
22465   comdat_group=yes
22466 elif test $in_tree_ld = yes ; then
22467   comdat_group=no
22468   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 \
22469      && test $in_tree_ld_is_elf = yes; then
22470      comdat_group=yes
22471   fi
22472 elif echo "$ld_ver" | grep GNU > /dev/null; then
22473   comdat_group=yes
22474   if test 0"$ld_date" -lt 20050308; then
22475     if test -n "$ld_date"; then
22476       # If there was date string, but was earlier than 2005-03-08, fail
22477       comdat_group=no
22478     elif test "$ld_vers_major" -lt 2; then
22479       comdat_group=no
22480     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22481       comdat_group=no
22482     fi
22483   fi
22484 else
22485   case "${target}" in
22486     *-*-solaris2.1[1-9]*)
22487       comdat_group=no
22488       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22489       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22490       # version 1.688.
22491       #
22492       # If using Sun as for COMDAT group as emitted by GCC, one needs at
22493       # least ld version 1.2267.
22494       if test "$ld_vers_major" -gt 1; then
22495         comdat_group=yes
22496       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22497         comdat_group=yes
22498       elif test "$ld_vers_minor" -ge 2267; then
22499         comdat_group=yes
22500       fi
22501       ;;
22502     *)
22503       # Assume linkers other than GNU ld don't support COMDAT group.
22504       comdat_group=no
22505       ;;
22506   esac
22507 fi
22508 # Allow overriding the automatic COMDAT group tests above.
22509 # Check whether --enable-comdat was given.
22510 if test "${enable_comdat+set}" = set; then :
22511   enableval=$enable_comdat; comdat_group="$enable_comdat"
22512 fi
22513
22514 if test $comdat_group = no; then
22515   gcc_cv_as_comdat_group=no
22516   gcc_cv_as_comdat_group_percent=no
22517   gcc_cv_as_comdat_group_group=no
22518 fi
22519
22520 cat >>confdefs.h <<_ACEOF
22521 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22522     || test $gcc_cv_as_comdat_group_percent = yes \
22523     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22524 _ACEOF
22525
22526
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22528 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22529 if test "${gcc_cv_as_discriminator+set}" = set; then :
22530   $as_echo_n "(cached) " >&6
22531 else
22532   gcc_cv_as_discriminator=no
22533     if test $in_tree_gas = yes; then
22534     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22535   then gcc_cv_as_discriminator=yes
22536 fi
22537   elif test x$gcc_cv_as != x; then
22538     echo '      .text
22539         .file 1 "conf.c"
22540         .loc 1 1 0 discriminator 1' > conftest.s
22541     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22542   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22543   (eval $ac_try) 2>&5
22544   ac_status=$?
22545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22546   test $ac_status = 0; }; }
22547     then
22548         gcc_cv_as_discriminator=yes
22549     else
22550       echo "configure: failed program was" >&5
22551       cat conftest.s >&5
22552     fi
22553     rm -f conftest.o conftest.s
22554   fi
22555 fi
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22557 $as_echo "$gcc_cv_as_discriminator" >&6; }
22558 if test $gcc_cv_as_discriminator = yes; then
22559
22560 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22561
22562 fi
22563
22564 # Thread-local storage - the check is heavily parameterized.
22565 conftest_s=
22566 tls_first_major=
22567 tls_first_minor=
22568 tls_as_opt=
22569 case "$target" in
22570   alpha*-*-*)
22571     conftest_s='
22572         .section ".tdata","awT",@progbits
22573 foo:    .long   25
22574         .text
22575         ldq     $27,__tls_get_addr($29)         !literal!1
22576         lda     $16,foo($29)                    !tlsgd!1
22577         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22578         ldq     $27,__tls_get_addr($29)         !literal!2
22579         lda     $16,foo($29)                    !tlsldm!2
22580         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22581         ldq     $1,foo($29)                     !gotdtprel
22582         ldah    $2,foo($29)                     !dtprelhi
22583         lda     $3,foo($2)                      !dtprello
22584         lda     $4,foo($29)                     !dtprel
22585         ldq     $1,foo($29)                     !gottprel
22586         ldah    $2,foo($29)                     !tprelhi
22587         lda     $3,foo($2)                      !tprello
22588         lda     $4,foo($29)                     !tprel'
22589         tls_first_major=2
22590         tls_first_minor=13
22591         tls_as_opt=--fatal-warnings
22592         ;;
22593   cris-*-*|crisv32-*-*)
22594     conftest_s='
22595         .section ".tdata","awT",@progbits
22596 x:      .long   25
22597         .text
22598         move.d x:IE,$r10
22599         nop'
22600         tls_first_major=2
22601         tls_first_minor=20
22602         tls_as_opt=--fatal-warnings
22603         ;;
22604   frv*-*-*)
22605     conftest_s='
22606         .section ".tdata","awT",@progbits
22607 x:      .long   25
22608         .text
22609         call    #gettlsoff(x)'
22610         tls_first_major=2
22611         tls_first_minor=14
22612         ;;
22613   hppa*-*-linux*)
22614     conftest_s='
22615 t1:     .reg    %r20
22616 t2:     .reg    %r21
22617 gp:     .reg    %r19
22618         .section ".tdata","awT",@progbits
22619 foo:    .long   25
22620         .text
22621         .align  4
22622         addil LT%foo-$tls_gdidx$,gp
22623         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22624         b __tls_get_addr
22625         nop
22626         addil LT%foo-$tls_ldidx$,gp
22627         b __tls_get_addr
22628         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22629         addil LR%foo-$tls_dtpoff$,%ret0
22630         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22631         mfctl %cr27,%t1
22632         addil LT%foo-$tls_ieoff$,gp
22633         ldw RT%foo-$tls_ieoff$(%r1),%t2
22634         add %t1,%t2,%t3
22635         mfctl %cr27,%t1
22636         addil LR%foo-$tls_leoff$,%t1
22637         ldo RR%foo-$tls_leoff$(%r1),%t2'
22638         tls_first_major=2
22639         tls_first_minor=15
22640         tls_as_opt=--fatal-warnings
22641         ;;
22642   arm*-*-*)
22643     conftest_s='
22644         .section ".tdata","awT",%progbits
22645 foo:    .long   25
22646         .text
22647 .word foo(gottpoff)
22648 .word foo(tpoff)
22649 .word foo(tlsgd)
22650 .word foo(tlsldm)
22651 .word foo(tlsldo)'
22652         tls_first_major=2
22653         tls_first_minor=17
22654         ;;
22655   i[34567]86-*-*)
22656     case "$target" in
22657       i[34567]86-*-solaris2.*)
22658         on_solaris=yes
22659         tga_func=___tls_get_addr
22660         ;;
22661       *)
22662         on_solaris=no
22663         ;;
22664     esac
22665     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22666       conftest_s='
22667         .section .tdata,"awt",@progbits'
22668       tls_first_major=0
22669       tls_first_minor=0
22670
22671 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22672
22673     else
22674       conftest_s='
22675         .section ".tdata","awT",@progbits'
22676       tls_first_major=2
22677       tls_first_minor=14
22678       tls_as_opt="--fatal-warnings"
22679     fi
22680     conftest_s="$conftest_s
22681 foo:    .long   25
22682         .text
22683         movl    %gs:0, %eax
22684         leal    foo@tlsgd(,%ebx,1), %eax
22685         leal    foo@tlsldm(%ebx), %eax
22686         leal    foo@dtpoff(%eax), %edx
22687         movl    foo@gottpoff(%ebx), %eax
22688         subl    foo@gottpoff(%ebx), %eax
22689         addl    foo@gotntpoff(%ebx), %eax
22690         movl    foo@indntpoff, %eax
22691         movl    \$foo@tpoff, %eax
22692         subl    \$foo@tpoff, %eax
22693         leal    foo@ntpoff(%ecx), %eax"
22694     ;;
22695   x86_64-*-*)
22696     conftest_s='
22697         .section ".tdata","awT",@progbits
22698 foo:    .long   25
22699         .text
22700         movq    %fs:0, %rax
22701         leaq    foo@TLSGD(%rip), %rdi
22702         leaq    foo@TLSLD(%rip), %rdi
22703         leaq    foo@DTPOFF(%rax), %rdx
22704         movq    foo@GOTTPOFF(%rip), %rax
22705         movq    $foo@TPOFF, %rax'
22706         tls_first_major=2
22707         tls_first_minor=14
22708         tls_as_opt=--fatal-warnings
22709         ;;
22710   ia64-*-*)
22711     conftest_s='
22712         .section ".tdata","awT",@progbits
22713 foo:    data8   25
22714         .text
22715         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22716         addl    r17 = @ltoff(@dtprel(foo#)), gp
22717         addl    r18 = @ltoff(@tprel(foo#)), gp
22718         addl    r19 = @dtprel(foo#), gp
22719         adds    r21 = @dtprel(foo#), r13
22720         movl    r23 = @dtprel(foo#)
22721         addl    r20 = @tprel(foo#), gp
22722         adds    r22 = @tprel(foo#), r13
22723         movl    r24 = @tprel(foo#)'
22724         tls_first_major=2
22725         tls_first_minor=13
22726         tls_as_opt=--fatal-warnings
22727         ;;
22728   mips*-*-*)
22729     conftest_s='
22730         .section .tdata,"awT",@progbits
22731 x:
22732         .word 2
22733         .text
22734         addiu $4, $28, %tlsgd(x)
22735         addiu $4, $28, %tlsldm(x)
22736         lui $4, %dtprel_hi(x)
22737         addiu $4, $4, %dtprel_lo(x)
22738         lw $4, %gottprel(x)($28)
22739         lui $4, %tprel_hi(x)
22740         addiu $4, $4, %tprel_lo(x)'
22741         tls_first_major=2
22742         tls_first_minor=16
22743         tls_as_opt='-32 --fatal-warnings'
22744         ;;
22745   m68k-*-*)
22746     conftest_s='
22747         .section .tdata,"awT",@progbits
22748 x:
22749         .word 2
22750         .text
22751 foo:
22752         move.l x@TLSGD(%a5),%a0
22753         move.l x@TLSLDM(%a5),%a0
22754         move.l x@TLSLDO(%a5),%a0
22755         move.l x@TLSIE(%a5),%a0
22756         move.l x@TLSLE(%a5),%a0'
22757         tls_first_major=2
22758         tls_first_minor=19
22759         tls_as_opt='--fatal-warnings'
22760         ;;
22761   powerpc-*-*)
22762     conftest_s='
22763         .section ".tdata","awT",@progbits
22764         .align 2
22765 ld0:    .space 4
22766 ld1:    .space 4
22767 x1:     .space 4
22768 x2:     .space 4
22769 x3:     .space 4
22770         .text
22771         addi 3,31,ld0@got@tlsgd
22772         bl __tls_get_addr
22773         addi 3,31,x1@got@tlsld
22774         bl __tls_get_addr
22775         addi 9,3,x1@dtprel
22776         addis 9,3,x2@dtprel@ha
22777         addi 9,9,x2@dtprel@l
22778         lwz 9,x3@got@tprel(31)
22779         add 9,9,x@tls
22780         addi 9,2,x1@tprel
22781         addis 9,2,x2@tprel@ha
22782         addi 9,9,x2@tprel@l'
22783         tls_first_major=2
22784         tls_first_minor=14
22785         tls_as_opt="-a32 --fatal-warnings"
22786         ;;
22787   powerpc64-*-*)
22788     conftest_s='
22789         .section ".tdata","awT",@progbits
22790         .align 3
22791 ld0:    .space 8
22792 ld1:    .space 8
22793 x1:     .space 8
22794 x2:     .space 8
22795 x3:     .space 8
22796         .text
22797         addi 3,2,ld0@got@tlsgd
22798         bl .__tls_get_addr
22799         nop
22800         addi 3,2,ld1@toc
22801         bl .__tls_get_addr
22802         nop
22803         addi 3,2,x1@got@tlsld
22804         bl .__tls_get_addr
22805         nop
22806         addi 9,3,x1@dtprel
22807         bl .__tls_get_addr
22808         nop
22809         addis 9,3,x2@dtprel@ha
22810         addi 9,9,x2@dtprel@l
22811         bl .__tls_get_addr
22812         nop
22813         ld 9,x3@got@dtprel(2)
22814         add 9,9,3
22815         bl .__tls_get_addr
22816         nop'
22817         tls_first_major=2
22818         tls_first_minor=14
22819         tls_as_opt="-a64 --fatal-warnings"
22820         ;;
22821   s390-*-*)
22822     conftest_s='
22823         .section ".tdata","awT",@progbits
22824 foo:    .long   25
22825         .text
22826         .long   foo@TLSGD
22827         .long   foo@TLSLDM
22828         .long   foo@DTPOFF
22829         .long   foo@NTPOFF
22830         .long   foo@GOTNTPOFF
22831         .long   foo@INDNTPOFF
22832         l       %r1,foo@GOTNTPOFF(%r12)
22833         l       %r1,0(%r1):tls_load:foo
22834         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22835         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22836         tls_first_major=2
22837         tls_first_minor=14
22838         tls_as_opt="-m31 --fatal-warnings"
22839         ;;
22840   s390x-*-*)
22841     conftest_s='
22842         .section ".tdata","awT",@progbits
22843 foo:    .long   25
22844         .text
22845         .quad   foo@TLSGD
22846         .quad   foo@TLSLDM
22847         .quad   foo@DTPOFF
22848         .quad   foo@NTPOFF
22849         .quad   foo@GOTNTPOFF
22850         lg      %r1,foo@GOTNTPOFF(%r12)
22851         larl    %r1,foo@INDNTPOFF
22852         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22853         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22854         tls_first_major=2
22855         tls_first_minor=14
22856         tls_as_opt="-m64 -Aesame --fatal-warnings"
22857         ;;
22858   sh-*-* | sh[34]-*-*)
22859     conftest_s='
22860         .section ".tdata","awT",@progbits
22861 foo:    .long   25
22862         .text
22863         .long   foo@TLSGD
22864         .long   foo@TLSLDM
22865         .long   foo@DTPOFF
22866         .long   foo@GOTTPOFF
22867         .long   foo@TPOFF'
22868         tls_first_major=2
22869         tls_first_minor=13
22870         tls_as_opt=--fatal-warnings
22871         ;;
22872   sparc*-*-*)
22873     case "$target" in
22874       sparc*-sun-solaris2.*)
22875         on_solaris=yes
22876         tga_func=__tls_get_addr
22877         ;;
22878       *)
22879         on_solaris=no
22880         ;;
22881     esac
22882     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22883       conftest_s='
22884         .section ".tdata",#alloc,#write,#tls'
22885         tls_first_major=0
22886         tls_first_minor=0
22887     else
22888       conftest_s='
22889         .section ".tdata","awT",@progbits'
22890         tls_first_major=2
22891         tls_first_minor=14
22892         tls_as_opt="-32 --fatal-warnings"
22893     fi
22894     conftest_s="$conftest_s
22895 foo:    .long   25
22896         .text
22897         sethi   %tgd_hi22(foo), %o0
22898         add     %o0, %tgd_lo10(foo), %o1
22899         add     %l7, %o1, %o0, %tgd_add(foo)
22900         call    __tls_get_addr, %tgd_call(foo)
22901         sethi   %tldm_hi22(foo), %l1
22902         add     %l1, %tldm_lo10(foo), %l2
22903         add     %l7, %l2, %o0, %tldm_add(foo)
22904         call    __tls_get_addr, %tldm_call(foo)
22905         sethi   %tldo_hix22(foo), %l3
22906         xor     %l3, %tldo_lox10(foo), %l4
22907         add     %o0, %l4, %l5, %tldo_add(foo)
22908         sethi   %tie_hi22(foo), %o3
22909         add     %o3, %tie_lo10(foo), %o3
22910         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22911         add     %g7, %o2, %o4, %tie_add(foo)
22912         sethi   %tle_hix22(foo), %l1
22913         xor     %l1, %tle_lox10(foo), %o5
22914         ld      [%g7 + %o5], %o1"
22915         ;;
22916   xtensa*-*-*)
22917     conftest_s='
22918         .section ".tdata","awT",@progbits
22919 foo:    .long   25
22920         .text
22921         movi    a8, foo@TLSFUNC
22922         movi    a10, foo@TLSARG
22923         callx8.tls a8, foo@TLSCALL'
22924         tls_first_major=2
22925         tls_first_minor=19
22926         ;;
22927 esac
22928 set_have_as_tls=no
22929 if test "x$enable_tls" = xno ; then
22930   : # TLS explicitly disabled.
22931 elif test "x$enable_tls" = xyes ; then
22932   set_have_as_tls=yes # TLS explicitly enabled.
22933 elif test -z "$tls_first_major"; then
22934   : # If we don't have a check, assume no support.
22935 else
22936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22937 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22938 if test "${gcc_cv_as_tls+set}" = set; then :
22939   $as_echo_n "(cached) " >&6
22940 else
22941   gcc_cv_as_tls=no
22942     if test $in_tree_gas = yes; then
22943     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22944   then gcc_cv_as_tls=yes
22945 fi
22946   elif test x$gcc_cv_as != x; then
22947     echo "$conftest_s" > conftest.s
22948     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22949   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22950   (eval $ac_try) 2>&5
22951   ac_status=$?
22952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22953   test $ac_status = 0; }; }
22954     then
22955         gcc_cv_as_tls=yes
22956     else
22957       echo "configure: failed program was" >&5
22958       cat conftest.s >&5
22959     fi
22960     rm -f conftest.o conftest.s
22961   fi
22962 fi
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22964 $as_echo "$gcc_cv_as_tls" >&6; }
22965 if test $gcc_cv_as_tls = yes; then
22966   set_have_as_tls=yes
22967 fi
22968 fi
22969 case "$target" in
22970   *-*-irix6*)
22971     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22972     # with TLS support are in use, native TLS cannot work.
22973     set_have_as_tls=no
22974     ;;
22975   *-*-osf*)
22976     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22977     # gld with TLS support are in use, native TLS cannot work.
22978     set_have_as_tls=no
22979     ;;
22980   # TLS was introduced in the Solaris 9 FCS release and backported to
22981   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22982   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22983   # ld and GCC don't support any longer.
22984   *-*-solaris2.*)
22985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22986 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22987     ld_tls_support=no
22988     # Check ld and ld.so.1 TLS support.
22989     if echo "$ld_ver" | grep GNU > /dev/null; then
22990       # Assume all interesting versions of GNU ld have TLS support.
22991       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22992       ld_tls_support=yes
22993     else
22994       case "$target" in
22995         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22996         i?86-*-solaris2.8)
22997           min_tls_ld_vers_minor=280
22998           ;;
22999         # Solaris 8/SPARC ld has TLS support since version 1.272.
23000         sparc*-*-solaris2.8)
23001           min_tls_ld_vers_minor=272
23002           ;;
23003         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23004         i?86-*-solaris2.9)
23005           min_tls_ld_vers_minor=374
23006           ;;
23007         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23008         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23009           min_tls_ld_vers_minor=343
23010           ;;
23011       esac
23012       if test "$ld_vers_major" -gt 1 || \
23013         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23014         ld_tls_support=yes
23015       else
23016         set_have_as_tls=no
23017       fi
23018     fi
23019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23020 $as_echo "$ld_tls_support" >&6; }
23021
23022     save_LIBS="$LIBS"
23023     save_LDFLAGS="$LDFLAGS"
23024     LIBS=
23025     LDFLAGS=
23026
23027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23028 $as_echo_n "checking alternate thread library... " >&6; }
23029     case "$target" in
23030       # TLS support was backported to Solaris 8 patches, but only lives in
23031       # the alternate thread library which became the default in Solaris 9.
23032       # We want to always use that, irrespective of TLS support.
23033       *-*-solaris2.8)
23034         # Take multilib subdir into account.  There's no spec to handle
23035         # this.  The 64 symlink exists since Solaris 8.
23036         lwp_dir=/usr/lib/lwp
23037         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23038         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23039         ;;
23040       *-*-solaris2*)
23041         lwp_dir="none"
23042         lwp_spec=""
23043         ;;
23044     esac
23045     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23046
23047 cat >>confdefs.h <<_ACEOF
23048 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23049 _ACEOF
23050
23051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23052 $as_echo "$lwp_dir" >&6; }
23053
23054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23055 $as_echo_n "checking library containing $tga_func... " >&6; }
23056     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23057     # (32-bit x86) only lived in libthread, so check for that.  Keep
23058     # set_have_as_tls if found, disable if not.
23059     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23061 $as_echo_n "checking for library containing $tga_func... " >&6; }
23062 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23063   $as_echo_n "(cached) " >&6
23064 else
23065   ac_func_search_save_LIBS=$LIBS
23066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067 /* end confdefs.h.  */
23068
23069 /* Override any GCC internal prototype to avoid an error.
23070    Use char because int might match the return type of a GCC
23071    builtin and then its argument prototype would still apply.  */
23072 #ifdef __cplusplus
23073 extern "C"
23074 #endif
23075 char $tga_func ();
23076 int
23077 main ()
23078 {
23079 return $tga_func ();
23080   ;
23081   return 0;
23082 }
23083 _ACEOF
23084 for ac_lib in '' thread; do
23085   if test -z "$ac_lib"; then
23086     ac_res="none required"
23087   else
23088     ac_res=-l$ac_lib
23089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23090   fi
23091   if ac_fn_c_try_link "$LINENO"; then :
23092   eval "$as_ac_Search=\$ac_res"
23093 fi
23094 rm -f core conftest.err conftest.$ac_objext \
23095     conftest$ac_exeext
23096   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23097   break
23098 fi
23099 done
23100 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23101
23102 else
23103   eval "$as_ac_Search=no"
23104 fi
23105 rm conftest.$ac_ext
23106 LIBS=$ac_func_search_save_LIBS
23107 fi
23108 eval ac_res=\$$as_ac_Search
23109                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23110 $as_echo "$ac_res" >&6; }
23111 eval ac_res=\$$as_ac_Search
23112 if test "$ac_res" != no; then :
23113   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23114
23115 else
23116   set_have_as_tls=no
23117 fi
23118
23119     # Clear LIBS if we cannot support TLS.
23120     if test $set_have_as_tls = no; then
23121       LIBS=
23122     fi
23123     # Always define LIB_TLS_SPEC, even without TLS support.
23124
23125 cat >>confdefs.h <<_ACEOF
23126 #define LIB_TLS_SPEC "$LIBS"
23127 _ACEOF
23128
23129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23130 $as_echo "$LIBS" >&6; }
23131
23132     LIBS="$save_LIBS"
23133     LDFLAGS="$save_LDFLAGS"
23134     ;;
23135 esac
23136 if test $set_have_as_tls = yes ; then
23137
23138 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23139
23140 fi
23141
23142 # Target-specific assembler checks.
23143
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23145 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23146 gcc_cv_ld_static_dynamic=no
23147 gcc_cv_ld_static_option='-Bstatic'
23148 gcc_cv_ld_dynamic_option='-Bdynamic'
23149 if test $in_tree_ld = yes ; then
23150   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
23151     gcc_cv_ld_static_dynamic=yes
23152   fi
23153 elif test x$gcc_cv_ld != x; then
23154   # Check if linker supports -Bstatic/-Bdynamic option
23155   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23156      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23157       gcc_cv_ld_static_dynamic=yes
23158   else
23159     case "$target" in
23160       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23161       alpha*-dec-osf*)
23162         gcc_cv_ld_static_dynamic=yes
23163         gcc_cv_ld_static_option="-noso"
23164         gcc_cv_ld_dynamic_option="-so_archive"
23165         ;;
23166       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23167       mips-sgi-irix6*)
23168         gcc_cv_ld_static_dynamic=yes
23169         ;;
23170       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23171       *-*-solaris2*)
23172         gcc_cv_ld_static_dynamic=yes
23173         ;;
23174     esac
23175   fi
23176 fi
23177 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23178
23179 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23180
23181
23182 cat >>confdefs.h <<_ACEOF
23183 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23184 _ACEOF
23185
23186
23187 cat >>confdefs.h <<_ACEOF
23188 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23189 _ACEOF
23190
23191 fi
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23193 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23194
23195 if test x"$demangler_in_ld" = xyes; then
23196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23197 $as_echo_n "checking linker --demangle support... " >&6; }
23198   gcc_cv_ld_demangle=no
23199   if test $in_tree_ld = yes; then
23200     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 \
23201       gcc_cv_ld_demangle=yes
23202     fi
23203   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23204     # Check if the GNU linker supports --demangle option
23205     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23206       gcc_cv_ld_demangle=yes
23207     fi
23208   fi
23209   if test x"$gcc_cv_ld_demangle" = xyes; then
23210
23211 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23212
23213   fi
23214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23215 $as_echo "$gcc_cv_ld_demangle" >&6; }
23216 fi
23217
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23219 $as_echo_n "checking linker plugin support... " >&6; }
23220 gcc_cv_lto_plugin=0
23221 if test -f liblto_plugin.la; then
23222   save_ld_ver="$ld_ver"
23223   save_ld_vers_major="$ld_vers_major"
23224   save_ld_vers_minor="$ld_vers_minor"
23225   save_ld_is_gold="$ld_is_gold"
23226
23227   ld_is_gold=no
23228
23229   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23230     ld_ver="GNU ld"
23231     # FIXME: ld_is_gold?
23232     ld_vers_major="$gcc_cv_gld_major_version"
23233     ld_vers_minor="$gcc_cv_gld_minor_version"
23234   else
23235     # Determine plugin linker version.
23236     # FIXME: Partial duplicate from above, generalize.
23237     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23238     if echo "$ld_ver" | grep GNU > /dev/null; then
23239       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23240         ld_is_gold=yes
23241         ld_vers=`echo $ld_ver | sed -n \
23242             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23243       else
23244         ld_vers=`echo $ld_ver | sed -n \
23245             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23246       fi
23247       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23248       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23249     fi
23250   fi
23251
23252   # Determine plugin support.
23253   if echo "$ld_ver" | grep GNU > /dev/null; then
23254     # Require GNU ld or gold 2.21+ for plugin support by default.
23255     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23256       gcc_cv_lto_plugin=2
23257     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23258     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23259       gcc_cv_lto_plugin=1
23260     fi
23261   fi
23262
23263   ld_ver="$save_ld_ver"
23264   ld_vers_major="$save_ld_vers_major"
23265   ld_vers_minor="$save_ld_vers_minor"
23266   ld_is_gold="$save_ld_is_gold"
23267 fi
23268
23269 cat >>confdefs.h <<_ACEOF
23270 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23271 _ACEOF
23272
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23274 $as_echo "$gcc_cv_lto_plugin" >&6; }
23275
23276 case "$target" in
23277   # All TARGET_ABI_OSF targets.
23278   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23280 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23281 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23282   $as_echo_n "(cached) " >&6
23283 else
23284   gcc_cv_as_alpha_explicit_relocs=no
23285     if test $in_tree_gas = yes; then
23286     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23287   then gcc_cv_as_alpha_explicit_relocs=yes
23288 fi
23289   elif test x$gcc_cv_as != x; then
23290     echo '      .set nomacro
23291         .text
23292         extbl   $3, $2, $3      !lituse_bytoff!1
23293         ldq     $2, a($29)      !literal!1
23294         ldq     $4, b($29)      !literal!2
23295         ldq_u   $3, 0($2)       !lituse_base!1
23296         ldq     $27, f($29)     !literal!5
23297         jsr     $26, ($27), f   !lituse_jsr!5
23298         ldah    $29, 0($26)     !gpdisp!3
23299         lda     $0, c($29)      !gprel
23300         ldah    $1, d($29)      !gprelhigh
23301         lda     $1, d($1)       !gprellow
23302         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23303     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23304   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23305   (eval $ac_try) 2>&5
23306   ac_status=$?
23307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23308   test $ac_status = 0; }; }
23309     then
23310         gcc_cv_as_alpha_explicit_relocs=yes
23311     else
23312       echo "configure: failed program was" >&5
23313       cat conftest.s >&5
23314     fi
23315     rm -f conftest.o conftest.s
23316   fi
23317 fi
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23319 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23320 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23321
23322 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23323
23324 fi
23325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23326 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23327 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23328   $as_echo_n "(cached) " >&6
23329 else
23330   gcc_cv_as_alpha_jsrdirect_relocs=no
23331     if test $in_tree_gas = yes; then
23332     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23333   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23334 fi
23335   elif test x$gcc_cv_as != x; then
23336     echo '      .set nomacro
23337         .text
23338         ldq     $27, a($29)     !literal!1
23339         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23340     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23341   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23342   (eval $ac_try) 2>&5
23343   ac_status=$?
23344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23345   test $ac_status = 0; }; }
23346     then
23347         gcc_cv_as_alpha_jsrdirect_relocs=yes
23348     else
23349       echo "configure: failed program was" >&5
23350       cat conftest.s >&5
23351     fi
23352     rm -f conftest.o conftest.s
23353   fi
23354 fi
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23356 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23357 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23358
23359 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23360
23361 fi
23362     ;;
23363
23364   cris-*-*)
23365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23366 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23367 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23368   $as_echo_n "(cached) " >&6
23369 else
23370   gcc_cv_as_cris_no_mul_bug=no
23371     if test $in_tree_gas = yes; then
23372     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23373   then gcc_cv_as_cris_no_mul_bug=yes
23374 fi
23375   elif test x$gcc_cv_as != x; then
23376     echo '.text' > conftest.s
23377     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23378   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23379   (eval $ac_try) 2>&5
23380   ac_status=$?
23381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23382   test $ac_status = 0; }; }
23383     then
23384         gcc_cv_as_cris_no_mul_bug=yes
23385     else
23386       echo "configure: failed program was" >&5
23387       cat conftest.s >&5
23388     fi
23389     rm -f conftest.o conftest.s
23390   fi
23391 fi
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23393 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23394 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23395
23396 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23397
23398 fi
23399     ;;
23400
23401   sparc*-*-*)
23402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23403 $as_echo_n "checking assembler for .register... " >&6; }
23404 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23405   $as_echo_n "(cached) " >&6
23406 else
23407   gcc_cv_as_sparc_register_op=no
23408   if test x$gcc_cv_as != x; then
23409     echo '.register %g2, #scratch' > conftest.s
23410     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23411   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23412   (eval $ac_try) 2>&5
23413   ac_status=$?
23414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23415   test $ac_status = 0; }; }
23416     then
23417         gcc_cv_as_sparc_register_op=yes
23418     else
23419       echo "configure: failed program was" >&5
23420       cat conftest.s >&5
23421     fi
23422     rm -f conftest.o conftest.s
23423   fi
23424 fi
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23426 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23427 if test $gcc_cv_as_sparc_register_op = yes; then
23428
23429 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23430
23431 fi
23432
23433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23434 $as_echo_n "checking assembler for -relax option... " >&6; }
23435 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23436   $as_echo_n "(cached) " >&6
23437 else
23438   gcc_cv_as_sparc_relax=no
23439   if test x$gcc_cv_as != x; then
23440     echo '.text' > conftest.s
23441     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23442   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23443   (eval $ac_try) 2>&5
23444   ac_status=$?
23445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23446   test $ac_status = 0; }; }
23447     then
23448         gcc_cv_as_sparc_relax=yes
23449     else
23450       echo "configure: failed program was" >&5
23451       cat conftest.s >&5
23452     fi
23453     rm -f conftest.o conftest.s
23454   fi
23455 fi
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23457 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23458 if test $gcc_cv_as_sparc_relax = yes; then
23459
23460 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23461
23462 fi
23463
23464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23465 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23466 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23467   $as_echo_n "(cached) " >&6
23468 else
23469   gcc_cv_as_sparc_gotdata_op=no
23470   if test x$gcc_cv_as != x; then
23471     echo '.text
23472 .align 4
23473 foo:
23474         nop
23475 bar:
23476         sethi %gdop_hix22(foo), %g1
23477         xor    %g1, %gdop_lox10(foo), %g1
23478         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23479     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23480   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481   (eval $ac_try) 2>&5
23482   ac_status=$?
23483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484   test $ac_status = 0; }; }
23485     then
23486         if test x$gcc_cv_ld != x \
23487        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23488          if test x$gcc_cv_objdump != x; then
23489            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23490               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23491                gcc_cv_as_sparc_gotdata_op=no
23492            else
23493                gcc_cv_as_sparc_gotdata_op=yes
23494            fi
23495          fi
23496        fi
23497        rm -f conftest
23498     else
23499       echo "configure: failed program was" >&5
23500       cat conftest.s >&5
23501     fi
23502     rm -f conftest.o conftest.s
23503   fi
23504 fi
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23506 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23507 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23508
23509 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23510
23511 fi
23512
23513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23514 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23515 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23516   $as_echo_n "(cached) " >&6
23517 else
23518   gcc_cv_as_sparc_ua_pcrel=no
23519   if test x$gcc_cv_as != x; then
23520     echo '.text
23521 foo:
23522         nop
23523 .data
23524 .align 4
23525 .byte 0
23526 .uaword %r_disp32(foo)' > conftest.s
23527     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23528   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23529   (eval $ac_try) 2>&5
23530   ac_status=$?
23531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23532   test $ac_status = 0; }; }
23533     then
23534         if test x$gcc_cv_ld != x \
23535        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23536          gcc_cv_as_sparc_ua_pcrel=yes
23537        fi
23538        rm -f conftest
23539     else
23540       echo "configure: failed program was" >&5
23541       cat conftest.s >&5
23542     fi
23543     rm -f conftest.o conftest.s
23544   fi
23545 fi
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23547 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23548 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23549
23550 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23551
23552
23553       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23554 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23555 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23556   $as_echo_n "(cached) " >&6
23557 else
23558   gcc_cv_as_sparc_ua_pcrel_hidden=no
23559   if test x$gcc_cv_as != x; then
23560     echo '.data
23561 .align 4
23562 .byte 0x31
23563 .uaword %r_disp32(foo)
23564 .byte 0x32, 0x33, 0x34
23565 .global foo
23566 .hidden foo
23567 foo:
23568 .skip 4' > conftest.s
23569     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23570   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23571   (eval $ac_try) 2>&5
23572   ac_status=$?
23573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23574   test $ac_status = 0; }; }
23575     then
23576         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23577          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23578          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23579             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23580             if $gcc_cv_objdump -R conftest 2> /dev/null \
23581                | grep 'DISP32' > /dev/null 2>&1; then
23582                 :
23583             else
23584                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23585             fi
23586          fi
23587          rm -f conftest
23588     else
23589       echo "configure: failed program was" >&5
23590       cat conftest.s >&5
23591     fi
23592     rm -f conftest.o conftest.s
23593   fi
23594 fi
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23596 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23597 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23598
23599 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23600
23601 fi
23602
23603 fi # unaligned pcrel relocs
23604
23605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23606 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23607 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23608   $as_echo_n "(cached) " >&6
23609 else
23610   gcc_cv_as_sparc_offsetable_lo10=no
23611   if test x$gcc_cv_as != x; then
23612     echo '.text
23613         or %g1, %lo(ab) + 12, %g1
23614         or %g1, %lo(ab + 12), %g1' > conftest.s
23615     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23616   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23617   (eval $ac_try) 2>&5
23618   ac_status=$?
23619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23620   test $ac_status = 0; }; }
23621     then
23622         if test x$gcc_cv_objdump != x \
23623        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23624           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23625          gcc_cv_as_sparc_offsetable_lo10=yes
23626        fi
23627     else
23628       echo "configure: failed program was" >&5
23629       cat conftest.s >&5
23630     fi
23631     rm -f conftest.o conftest.s
23632   fi
23633 fi
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23635 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23636 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23637
23638 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23639
23640 fi
23641     ;;
23642
23643   i[34567]86-*-* | x86_64-*-*)
23644     case $target_os in
23645       cygwin*)
23646         # Full C++ conformance when using a shared libstdc++-v3 requires some
23647         # support from the Cygwin DLL, which in more recent versions exports
23648         # wrappers to aid in interposing and redirecting operators new, delete,
23649         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23650         # are configuring for a version of Cygwin that exports the wrappers.
23651         if test x$host = x$target; then
23652           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23653 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23654   gcc_ac_cygwin_dll_wrappers=yes
23655 else
23656   gcc_ac_cygwin_dll_wrappers=no
23657 fi
23658
23659         else
23660           # Can't check presence of libc functions during cross-compile, so
23661           # we just have to assume we're building for an up-to-date target.
23662           gcc_ac_cygwin_dll_wrappers=yes
23663         fi
23664
23665 cat >>confdefs.h <<_ACEOF
23666 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23667 _ACEOF
23668
23669     esac
23670     case $target_os in
23671       cygwin* | pe | mingw32*)
23672         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23673         # definition is used unconditionally to initialise the default state of
23674         # the target option variable that governs usage of the feature.
23675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23676 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23677 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23678   $as_echo_n "(cached) " >&6
23679 else
23680   gcc_cv_as_comm_has_align=no
23681     if test $in_tree_gas = yes; then
23682     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23683   then gcc_cv_as_comm_has_align=yes
23684 fi
23685   elif test x$gcc_cv_as != x; then
23686     echo '.comm foo,1,32' > conftest.s
23687     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23688   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23689   (eval $ac_try) 2>&5
23690   ac_status=$?
23691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23692   test $ac_status = 0; }; }
23693     then
23694         gcc_cv_as_comm_has_align=yes
23695     else
23696       echo "configure: failed program was" >&5
23697       cat conftest.s >&5
23698     fi
23699     rm -f conftest.o conftest.s
23700   fi
23701 fi
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23703 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23704
23705
23706 cat >>confdefs.h <<_ACEOF
23707 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23708 _ACEOF
23709
23710         # Used for DWARF 2 in PE
23711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23712 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23713 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23714   $as_echo_n "(cached) " >&6
23715 else
23716   gcc_cv_as_ix86_pe_secrel32=no
23717     if test $in_tree_gas = yes; then
23718     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23719   then gcc_cv_as_ix86_pe_secrel32=yes
23720 fi
23721   elif test x$gcc_cv_as != x; then
23722     echo '.text
23723 foo:    nop
23724 .data
23725         .secrel32 foo' > conftest.s
23726     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23727   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23728   (eval $ac_try) 2>&5
23729   ac_status=$?
23730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23731   test $ac_status = 0; }; }
23732     then
23733         if test x$gcc_cv_ld != x \
23734            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23735              gcc_cv_as_ix86_pe_secrel32=yes
23736            fi
23737            rm -f conftest
23738     else
23739       echo "configure: failed program was" >&5
23740       cat conftest.s >&5
23741     fi
23742     rm -f conftest.o conftest.s
23743   fi
23744 fi
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23746 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23747 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23748
23749 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23750
23751 fi
23752         # Test if the assembler supports the extended form of the .section
23753         # directive that specifies section alignment.  LTO support uses this,
23754         # but normally only after installation, so we warn but don't fail the
23755         # configure if LTO is enabled but the assembler does not support it.
23756         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23757 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23758 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23759   $as_echo_n "(cached) " >&6
23760 else
23761   gcc_cv_as_section_has_align=no
23762     if test $in_tree_gas = yes; then
23763     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23764   then gcc_cv_as_section_has_align=yes
23765 fi
23766   elif test x$gcc_cv_as != x; then
23767     echo '.section lto_test,"dr0"' > conftest.s
23768     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23769   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770   (eval $ac_try) 2>&5
23771   ac_status=$?
23772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773   test $ac_status = 0; }; }
23774     then
23775         gcc_cv_as_section_has_align=yes
23776     else
23777       echo "configure: failed program was" >&5
23778       cat conftest.s >&5
23779     fi
23780     rm -f conftest.o conftest.s
23781   fi
23782 fi
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23784 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23785
23786         if test x$gcc_cv_as_section_has_align != xyes; then
23787           case ",$enable_languages," in
23788             *,lto,*)
23789               { $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
23790 $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;}
23791               ;;
23792           esac
23793         fi
23794         ;;
23795     esac
23796
23797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23798 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23799 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23800   $as_echo_n "(cached) " >&6
23801 else
23802   gcc_cv_as_ix86_filds=no
23803   if test x$gcc_cv_as != x; then
23804     echo 'filds mem; fists mem' > conftest.s
23805     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23806   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23807   (eval $ac_try) 2>&5
23808   ac_status=$?
23809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23810   test $ac_status = 0; }; }
23811     then
23812         gcc_cv_as_ix86_filds=yes
23813     else
23814       echo "configure: failed program was" >&5
23815       cat conftest.s >&5
23816     fi
23817     rm -f conftest.o conftest.s
23818   fi
23819 fi
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23821 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23822 if test $gcc_cv_as_ix86_filds = yes; then
23823
23824 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23825
23826 fi
23827
23828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23829 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23830 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23831   $as_echo_n "(cached) " >&6
23832 else
23833   gcc_cv_as_ix86_fildq=no
23834   if test x$gcc_cv_as != x; then
23835     echo 'fildq mem; fistpq mem' > conftest.s
23836     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23837   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23838   (eval $ac_try) 2>&5
23839   ac_status=$?
23840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23841   test $ac_status = 0; }; }
23842     then
23843         gcc_cv_as_ix86_fildq=yes
23844     else
23845       echo "configure: failed program was" >&5
23846       cat conftest.s >&5
23847     fi
23848     rm -f conftest.o conftest.s
23849   fi
23850 fi
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23852 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23853 if test $gcc_cv_as_ix86_fildq = yes; then
23854
23855 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23856
23857 fi
23858
23859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23860 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23861 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23862   $as_echo_n "(cached) " >&6
23863 else
23864   gcc_cv_as_ix86_cmov_sun_syntax=no
23865   if test x$gcc_cv_as != x; then
23866     echo 'cmovl.l %edx, %eax' > conftest.s
23867     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23868   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23869   (eval $ac_try) 2>&5
23870   ac_status=$?
23871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23872   test $ac_status = 0; }; }
23873     then
23874         gcc_cv_as_ix86_cmov_sun_syntax=yes
23875     else
23876       echo "configure: failed program was" >&5
23877       cat conftest.s >&5
23878     fi
23879     rm -f conftest.o conftest.s
23880   fi
23881 fi
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23883 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23884 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23885
23886 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23887
23888 fi
23889
23890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23891 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23892 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23893   $as_echo_n "(cached) " >&6
23894 else
23895   gcc_cv_as_ix86_ffreep=no
23896   if test x$gcc_cv_as != x; then
23897     echo 'ffreep %st(1)' > conftest.s
23898     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23899   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23900   (eval $ac_try) 2>&5
23901   ac_status=$?
23902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23903   test $ac_status = 0; }; }
23904     then
23905         gcc_cv_as_ix86_ffreep=yes
23906     else
23907       echo "configure: failed program was" >&5
23908       cat conftest.s >&5
23909     fi
23910     rm -f conftest.o conftest.s
23911   fi
23912 fi
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23914 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23915 if test $gcc_cv_as_ix86_ffreep = yes; then
23916
23917 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23918
23919 fi
23920
23921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23922 $as_echo_n "checking assembler for .quad directive... " >&6; }
23923 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23924   $as_echo_n "(cached) " >&6
23925 else
23926   gcc_cv_as_ix86_quad=no
23927   if test x$gcc_cv_as != x; then
23928     echo '.quad 0' > conftest.s
23929     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23930   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23931   (eval $ac_try) 2>&5
23932   ac_status=$?
23933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23934   test $ac_status = 0; }; }
23935     then
23936         gcc_cv_as_ix86_quad=yes
23937     else
23938       echo "configure: failed program was" >&5
23939       cat conftest.s >&5
23940     fi
23941     rm -f conftest.o conftest.s
23942   fi
23943 fi
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23945 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23946 if test $gcc_cv_as_ix86_quad = yes; then
23947
23948 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23949
23950 fi
23951
23952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23953 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23954 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23955   $as_echo_n "(cached) " >&6
23956 else
23957   gcc_cv_as_ix86_sahf=no
23958   if test x$gcc_cv_as != x; then
23959     echo '.code64
23960        sahf' > conftest.s
23961     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23962   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23963   (eval $ac_try) 2>&5
23964   ac_status=$?
23965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23966   test $ac_status = 0; }; }
23967     then
23968         gcc_cv_as_ix86_sahf=yes
23969     else
23970       echo "configure: failed program was" >&5
23971       cat conftest.s >&5
23972     fi
23973     rm -f conftest.o conftest.s
23974   fi
23975 fi
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23977 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23978 if test $gcc_cv_as_ix86_sahf = yes; then
23979
23980 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23981
23982 fi
23983
23984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23985 $as_echo_n "checking assembler for swap suffix... " >&6; }
23986 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23987   $as_echo_n "(cached) " >&6
23988 else
23989   gcc_cv_as_ix86_swap=no
23990   if test x$gcc_cv_as != x; then
23991     echo 'movl.s %esp, %ebp' > conftest.s
23992     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23993   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23994   (eval $ac_try) 2>&5
23995   ac_status=$?
23996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23997   test $ac_status = 0; }; }
23998     then
23999         gcc_cv_as_ix86_swap=yes
24000     else
24001       echo "configure: failed program was" >&5
24002       cat conftest.s >&5
24003     fi
24004     rm -f conftest.o conftest.s
24005   fi
24006 fi
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24008 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24009 if test $gcc_cv_as_ix86_swap = yes; then
24010
24011 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24012
24013 fi
24014
24015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24016 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24017 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24018   $as_echo_n "(cached) " >&6
24019 else
24020   gcc_cv_as_ix86_diff_sect_delta=no
24021   if test x$gcc_cv_as != x; then
24022     echo '.section .rodata
24023 .L1:
24024         .long .L2-.L1
24025         .long .L3-.L1
24026         .text
24027 .L3:    nop
24028 .L2:    nop' > conftest.s
24029     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24030   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031   (eval $ac_try) 2>&5
24032   ac_status=$?
24033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034   test $ac_status = 0; }; }
24035     then
24036         gcc_cv_as_ix86_diff_sect_delta=yes
24037     else
24038       echo "configure: failed program was" >&5
24039       cat conftest.s >&5
24040     fi
24041     rm -f conftest.o conftest.s
24042   fi
24043 fi
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24045 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24046 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24047
24048 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24049
24050 fi
24051
24052     # These two are used unconditionally by i386.[ch]; it is to be defined
24053     # to 1 if the feature is present, 0 otherwise.
24054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24055 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24056 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24057   $as_echo_n "(cached) " >&6
24058 else
24059   gcc_cv_as_ix86_gotoff_in_data=no
24060     if test $in_tree_gas = yes; then
24061     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24062   then gcc_cv_as_ix86_gotoff_in_data=yes
24063 fi
24064   elif test x$gcc_cv_as != x; then
24065     echo '      .text
24066 .L0:
24067         nop
24068         .data
24069         .long .L0@GOTOFF' > conftest.s
24070     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24071   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24072   (eval $ac_try) 2>&5
24073   ac_status=$?
24074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24075   test $ac_status = 0; }; }
24076     then
24077         gcc_cv_as_ix86_gotoff_in_data=yes
24078     else
24079       echo "configure: failed program was" >&5
24080       cat conftest.s >&5
24081     fi
24082     rm -f conftest.o conftest.s
24083   fi
24084 fi
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24086 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24087
24088
24089 cat >>confdefs.h <<_ACEOF
24090 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24091 _ACEOF
24092
24093
24094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24095 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24096 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24097   $as_echo_n "(cached) " >&6
24098 else
24099   gcc_cv_as_ix86_rep_lock_prefix=no
24100   if test x$gcc_cv_as != x; then
24101     echo 'rep movsl
24102          lock addl %edi, (%eax,%esi)
24103          lock orl $0, (%esp)' > conftest.s
24104     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24105   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24106   (eval $ac_try) 2>&5
24107   ac_status=$?
24108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24109   test $ac_status = 0; }; }
24110     then
24111         gcc_cv_as_ix86_rep_lock_prefix=yes
24112     else
24113       echo "configure: failed program was" >&5
24114       cat conftest.s >&5
24115     fi
24116     rm -f conftest.o conftest.s
24117   fi
24118 fi
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24120 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24121 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24122
24123 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24124
24125 fi
24126
24127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24128 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24129 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24130   $as_echo_n "(cached) " >&6
24131 else
24132   gcc_cv_as_ix86_tlsgdplt=no
24133   if test x$gcc_cv_as != x; then
24134     echo 'call    tls_gd@tlsgdplt' > conftest.s
24135     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24136   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24137   (eval $ac_try) 2>&5
24138   ac_status=$?
24139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24140   test $ac_status = 0; }; }
24141     then
24142         gcc_cv_as_ix86_tlsgdplt=yes
24143     else
24144       echo "configure: failed program was" >&5
24145       cat conftest.s >&5
24146     fi
24147     rm -f conftest.o conftest.s
24148   fi
24149 fi
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24151 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24152 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24153
24154 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24155
24156 fi
24157
24158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24159 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24160 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24161   $as_echo_n "(cached) " >&6
24162 else
24163   gcc_cv_as_ix86_tlsldmplt=no
24164   if test x$gcc_cv_as != x; then
24165     echo 'call    tls_ld@tlsldmplt' > conftest.s
24166     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24167   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168   (eval $ac_try) 2>&5
24169   ac_status=$?
24170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171   test $ac_status = 0; }; }
24172     then
24173         gcc_cv_as_ix86_tlsldmplt=yes
24174     else
24175       echo "configure: failed program was" >&5
24176       cat conftest.s >&5
24177     fi
24178     rm -f conftest.o conftest.s
24179   fi
24180 fi
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24182 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24183 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24184
24185 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24186
24187 fi
24188
24189     ;;
24190
24191   ia64*-*-*)
24192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24193 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24194 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24195   $as_echo_n "(cached) " >&6
24196 else
24197   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24198     if test $in_tree_gas = yes; then
24199     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24200   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24201 fi
24202   elif test x$gcc_cv_as != x; then
24203     echo '      .text
24204         addl r15 = @ltoffx(x#), gp
24205         ;;
24206         ld8.mov r16 = [r15], x#' > conftest.s
24207     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24208   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209   (eval $ac_try) 2>&5
24210   ac_status=$?
24211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212   test $ac_status = 0; }; }
24213     then
24214         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24215     else
24216       echo "configure: failed program was" >&5
24217       cat conftest.s >&5
24218     fi
24219     rm -f conftest.o conftest.s
24220   fi
24221 fi
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24223 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24224 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24225
24226 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24227
24228 fi
24229
24230     ;;
24231
24232   powerpc*-*-*)
24233     case $target in
24234       *-*-aix*) conftest_s='    .machine "pwr5"
24235         .csect .text[PR]
24236         mfcr 3,128';;
24237       *-*-darwin*)
24238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24239 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24240 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24241   $as_echo_n "(cached) " >&6
24242 else
24243   gcc_cv_as_machine_directive=no
24244   if test x$gcc_cv_as != x; then
24245     echo '      .machine ppc7400' > conftest.s
24246     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24247   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24248   (eval $ac_try) 2>&5
24249   ac_status=$?
24250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24251   test $ac_status = 0; }; }
24252     then
24253         gcc_cv_as_machine_directive=yes
24254     else
24255       echo "configure: failed program was" >&5
24256       cat conftest.s >&5
24257     fi
24258     rm -f conftest.o conftest.s
24259   fi
24260 fi
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24262 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24263
24264         if test x$gcc_cv_as_machine_directive != xyes; then
24265           echo "*** This target requires an assembler supporting \".machine\"" >&2
24266           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24267           test x$build = x$target && exit 1
24268         fi
24269         conftest_s='    .text
24270         mfcr r3,128';;
24271       *) conftest_s='   .machine power4
24272         .text
24273         mfcr 3,128';;
24274     esac
24275
24276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24277 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24278 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24279   $as_echo_n "(cached) " >&6
24280 else
24281   gcc_cv_as_powerpc_mfcrf=no
24282     if test $in_tree_gas = yes; then
24283     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24284   then gcc_cv_as_powerpc_mfcrf=yes
24285 fi
24286   elif test x$gcc_cv_as != x; then
24287     echo "$conftest_s" > conftest.s
24288     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24289   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24290   (eval $ac_try) 2>&5
24291   ac_status=$?
24292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24293   test $ac_status = 0; }; }
24294     then
24295         gcc_cv_as_powerpc_mfcrf=yes
24296     else
24297       echo "configure: failed program was" >&5
24298       cat conftest.s >&5
24299     fi
24300     rm -f conftest.o conftest.s
24301   fi
24302 fi
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24304 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24305 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24306
24307 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24308
24309 fi
24310
24311     case $target in
24312       *-*-aix*) conftest_s='    .machine "pwr5"
24313         .csect .text[PR]
24314         popcntb 3,3';;
24315       *) conftest_s='   .machine power5
24316         .text
24317         popcntb 3,3';;
24318     esac
24319
24320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24321 $as_echo_n "checking assembler for popcntb support... " >&6; }
24322 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24323   $as_echo_n "(cached) " >&6
24324 else
24325   gcc_cv_as_powerpc_popcntb=no
24326     if test $in_tree_gas = yes; then
24327     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24328   then gcc_cv_as_powerpc_popcntb=yes
24329 fi
24330   elif test x$gcc_cv_as != x; then
24331     echo "$conftest_s" > conftest.s
24332     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24333   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24334   (eval $ac_try) 2>&5
24335   ac_status=$?
24336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24337   test $ac_status = 0; }; }
24338     then
24339         gcc_cv_as_powerpc_popcntb=yes
24340     else
24341       echo "configure: failed program was" >&5
24342       cat conftest.s >&5
24343     fi
24344     rm -f conftest.o conftest.s
24345   fi
24346 fi
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24348 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24349 if test $gcc_cv_as_powerpc_popcntb = yes; then
24350
24351 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24352
24353 fi
24354
24355     case $target in
24356       *-*-aix*) conftest_s='    .machine "pwr5x"
24357         .csect .text[PR]
24358         frin 1,1';;
24359       *) conftest_s='   .machine power5
24360         .text
24361         frin 1,1';;
24362     esac
24363
24364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24365 $as_echo_n "checking assembler for fp round support... " >&6; }
24366 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24367   $as_echo_n "(cached) " >&6
24368 else
24369   gcc_cv_as_powerpc_fprnd=no
24370     if test $in_tree_gas = yes; then
24371     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24372   then gcc_cv_as_powerpc_fprnd=yes
24373 fi
24374   elif test x$gcc_cv_as != x; then
24375     echo "$conftest_s" > conftest.s
24376     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24377   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378   (eval $ac_try) 2>&5
24379   ac_status=$?
24380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381   test $ac_status = 0; }; }
24382     then
24383         gcc_cv_as_powerpc_fprnd=yes
24384     else
24385       echo "configure: failed program was" >&5
24386       cat conftest.s >&5
24387     fi
24388     rm -f conftest.o conftest.s
24389   fi
24390 fi
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24392 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24393 if test $gcc_cv_as_powerpc_fprnd = yes; then
24394
24395 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24396
24397 fi
24398
24399     case $target in
24400       *-*-aix*) conftest_s='    .machine "pwr6"
24401         .csect .text[PR]
24402         mffgpr 1,3';;
24403       *) conftest_s='   .machine power6
24404         .text
24405         mffgpr 1,3';;
24406     esac
24407
24408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24409 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24410 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24411   $as_echo_n "(cached) " >&6
24412 else
24413   gcc_cv_as_powerpc_mfpgpr=no
24414     if test $in_tree_gas = yes; then
24415     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24416   then gcc_cv_as_powerpc_mfpgpr=yes
24417 fi
24418   elif test x$gcc_cv_as != x; then
24419     echo "$conftest_s" > conftest.s
24420     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24421   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24422   (eval $ac_try) 2>&5
24423   ac_status=$?
24424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24425   test $ac_status = 0; }; }
24426     then
24427         gcc_cv_as_powerpc_mfpgpr=yes
24428     else
24429       echo "configure: failed program was" >&5
24430       cat conftest.s >&5
24431     fi
24432     rm -f conftest.o conftest.s
24433   fi
24434 fi
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24436 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24437 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24438
24439 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24440
24441 fi
24442
24443     case $target in
24444       *-*-aix*) conftest_s='    .csect .text[PR]
24445 LCF..0:
24446         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24447       *-*-darwin*)
24448         conftest_s='    .text
24449 LCF0:
24450         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24451       *) conftest_s='   .text
24452 .LCF0:
24453         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24454     esac
24455
24456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24457 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24458 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24459   $as_echo_n "(cached) " >&6
24460 else
24461   gcc_cv_as_powerpc_rel16=no
24462     if test $in_tree_gas = yes; then
24463     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24464   then gcc_cv_as_powerpc_rel16=yes
24465 fi
24466   elif test x$gcc_cv_as != x; then
24467     echo "$conftest_s" > conftest.s
24468     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24469   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24470   (eval $ac_try) 2>&5
24471   ac_status=$?
24472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24473   test $ac_status = 0; }; }
24474     then
24475         gcc_cv_as_powerpc_rel16=yes
24476     else
24477       echo "configure: failed program was" >&5
24478       cat conftest.s >&5
24479     fi
24480     rm -f conftest.o conftest.s
24481   fi
24482 fi
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24484 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24485 if test $gcc_cv_as_powerpc_rel16 = yes; then
24486
24487 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24488
24489 fi
24490
24491     case $target in
24492       *-*-aix*) conftest_s='    .machine "pwr6"
24493         .csect .text[PR]
24494         cmpb 3,4,5';;
24495       *) conftest_s='   .machine power6
24496         .text
24497         cmpb 3,4,5';;
24498     esac
24499
24500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24501 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24502 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24503   $as_echo_n "(cached) " >&6
24504 else
24505   gcc_cv_as_powerpc_cmpb=no
24506     if test $in_tree_gas = yes; then
24507     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24508   then gcc_cv_as_powerpc_cmpb=yes
24509 fi
24510   elif test x$gcc_cv_as != x; then
24511     echo "$conftest_s" > conftest.s
24512     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24513   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514   (eval $ac_try) 2>&5
24515   ac_status=$?
24516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517   test $ac_status = 0; }; }
24518     then
24519         gcc_cv_as_powerpc_cmpb=yes
24520     else
24521       echo "configure: failed program was" >&5
24522       cat conftest.s >&5
24523     fi
24524     rm -f conftest.o conftest.s
24525   fi
24526 fi
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24528 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24529 if test $gcc_cv_as_powerpc_cmpb = yes; then
24530
24531 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24532
24533 fi
24534
24535     case $target in
24536       *-*-aix*) conftest_s='    .machine "pwr6"
24537         .csect .text[PR]
24538         dadd 1,2,3';;
24539       *) conftest_s='   .machine power6
24540         .text
24541         dadd 1,2,3';;
24542     esac
24543
24544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24545 $as_echo_n "checking assembler for decimal float support... " >&6; }
24546 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24547   $as_echo_n "(cached) " >&6
24548 else
24549   gcc_cv_as_powerpc_dfp=no
24550     if test $in_tree_gas = yes; then
24551     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24552   then gcc_cv_as_powerpc_dfp=yes
24553 fi
24554   elif test x$gcc_cv_as != x; then
24555     echo "$conftest_s" > conftest.s
24556     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24557   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558   (eval $ac_try) 2>&5
24559   ac_status=$?
24560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561   test $ac_status = 0; }; }
24562     then
24563         gcc_cv_as_powerpc_dfp=yes
24564     else
24565       echo "configure: failed program was" >&5
24566       cat conftest.s >&5
24567     fi
24568     rm -f conftest.o conftest.s
24569   fi
24570 fi
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24572 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24573 if test $gcc_cv_as_powerpc_dfp = yes; then
24574
24575 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24576
24577 fi
24578
24579     case $target in
24580       *-*-aix*) conftest_s='    .machine "pwr7"
24581         .csect .text[PR]
24582         lxvd2x 1,2,3';;
24583       *) conftest_s='   .machine power7
24584         .text
24585         lxvd2x 1,2,3';;
24586     esac
24587
24588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24589 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24590 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24591   $as_echo_n "(cached) " >&6
24592 else
24593   gcc_cv_as_powerpc_vsx=no
24594     if test $in_tree_gas = yes; then
24595     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24596   then gcc_cv_as_powerpc_vsx=yes
24597 fi
24598   elif test x$gcc_cv_as != x; then
24599     echo "$conftest_s" > conftest.s
24600     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24601   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602   (eval $ac_try) 2>&5
24603   ac_status=$?
24604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605   test $ac_status = 0; }; }
24606     then
24607         gcc_cv_as_powerpc_vsx=yes
24608     else
24609       echo "configure: failed program was" >&5
24610       cat conftest.s >&5
24611     fi
24612     rm -f conftest.o conftest.s
24613   fi
24614 fi
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24616 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24617 if test $gcc_cv_as_powerpc_vsx = yes; then
24618
24619 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24620
24621 fi
24622
24623     case $target in
24624       *-*-aix*) conftest_s='    .machine "pwr7"
24625         .csect .text[PR]
24626         popcntd 3,3';;
24627       *) conftest_s='   .machine power7
24628         .text
24629         popcntd 3,3';;
24630     esac
24631
24632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24633 $as_echo_n "checking assembler for popcntd support... " >&6; }
24634 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24635   $as_echo_n "(cached) " >&6
24636 else
24637   gcc_cv_as_powerpc_popcntd=no
24638     if test $in_tree_gas = yes; then
24639     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24640   then gcc_cv_as_powerpc_popcntd=yes
24641 fi
24642   elif test x$gcc_cv_as != x; then
24643     echo "$conftest_s" > conftest.s
24644     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24645   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646   (eval $ac_try) 2>&5
24647   ac_status=$?
24648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649   test $ac_status = 0; }; }
24650     then
24651         gcc_cv_as_powerpc_popcntd=yes
24652     else
24653       echo "configure: failed program was" >&5
24654       cat conftest.s >&5
24655     fi
24656     rm -f conftest.o conftest.s
24657   fi
24658 fi
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24660 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24661 if test $gcc_cv_as_powerpc_popcntd = yes; then
24662
24663 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24664
24665 fi
24666
24667     case $target in
24668       *-*-aix*) conftest_s='    .csect .text[PR]
24669         lwsync';;
24670       *) conftest_s='   .text
24671         lwsync';;
24672     esac
24673
24674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24675 $as_echo_n "checking assembler for lwsync support... " >&6; }
24676 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24677   $as_echo_n "(cached) " >&6
24678 else
24679   gcc_cv_as_powerpc_lwsync=no
24680     if test $in_tree_gas = yes; then
24681     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24682   then gcc_cv_as_powerpc_lwsync=yes
24683 fi
24684   elif test x$gcc_cv_as != x; then
24685     echo "$conftest_s" > conftest.s
24686     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24687   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24688   (eval $ac_try) 2>&5
24689   ac_status=$?
24690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24691   test $ac_status = 0; }; }
24692     then
24693         gcc_cv_as_powerpc_lwsync=yes
24694     else
24695       echo "configure: failed program was" >&5
24696       cat conftest.s >&5
24697     fi
24698     rm -f conftest.o conftest.s
24699   fi
24700 fi
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24702 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24703 if test $gcc_cv_as_powerpc_lwsync = yes; then
24704
24705 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24706
24707 fi
24708
24709     case $target in
24710       *-*-aix*) conftest_s='    .machine "476"
24711         .csect .text[PR]
24712         dci 0';;
24713       *) conftest_s='   .machine "476"
24714         .text
24715         dci 0';;
24716     esac
24717
24718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24719 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24720 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24721   $as_echo_n "(cached) " >&6
24722 else
24723   gcc_cv_as_powerpc_dci=no
24724     if test $in_tree_gas = yes; then
24725     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24726   then gcc_cv_as_powerpc_dci=yes
24727 fi
24728   elif test x$gcc_cv_as != x; then
24729     echo "$conftest_s" > conftest.s
24730     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24731   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24732   (eval $ac_try) 2>&5
24733   ac_status=$?
24734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24735   test $ac_status = 0; }; }
24736     then
24737         gcc_cv_as_powerpc_dci=yes
24738     else
24739       echo "configure: failed program was" >&5
24740       cat conftest.s >&5
24741     fi
24742     rm -f conftest.o conftest.s
24743   fi
24744 fi
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24746 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24747 if test $gcc_cv_as_powerpc_dci = yes; then
24748
24749 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24750
24751 fi
24752
24753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24754 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24755 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24756   $as_echo_n "(cached) " >&6
24757 else
24758   gcc_cv_as_powerpc_gnu_attribute=no
24759     if test $in_tree_gas = yes; then
24760     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24761   then gcc_cv_as_powerpc_gnu_attribute=yes
24762 fi
24763   elif test x$gcc_cv_as != x; then
24764     echo '.gnu_attribute 4,1' > conftest.s
24765     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24766   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24767   (eval $ac_try) 2>&5
24768   ac_status=$?
24769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24770   test $ac_status = 0; }; }
24771     then
24772         gcc_cv_as_powerpc_gnu_attribute=yes
24773     else
24774       echo "configure: failed program was" >&5
24775       cat conftest.s >&5
24776     fi
24777     rm -f conftest.o conftest.s
24778   fi
24779 fi
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24781 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24782 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24783
24784 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24785
24786 fi
24787
24788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24789 $as_echo_n "checking assembler for tls marker support... " >&6; }
24790 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24791   $as_echo_n "(cached) " >&6
24792 else
24793   gcc_cv_as_powerpc_tls_markers=no
24794     if test $in_tree_gas = yes; then
24795     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24796   then gcc_cv_as_powerpc_tls_markers=yes
24797 fi
24798   elif test x$gcc_cv_as != x; then
24799     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24800     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24801   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24802   (eval $ac_try) 2>&5
24803   ac_status=$?
24804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24805   test $ac_status = 0; }; }
24806     then
24807         gcc_cv_as_powerpc_tls_markers=yes
24808     else
24809       echo "configure: failed program was" >&5
24810       cat conftest.s >&5
24811     fi
24812     rm -f conftest.o conftest.s
24813   fi
24814 fi
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24816 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24817 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24818
24819 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24820
24821 fi
24822
24823     case $target in
24824       *-*-aix*)
24825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24826 $as_echo_n "checking assembler for .ref support... " >&6; }
24827 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24828   $as_echo_n "(cached) " >&6
24829 else
24830   gcc_cv_as_aix_ref=no
24831     if test $in_tree_gas = yes; then
24832     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24833   then :
24834 fi
24835   elif test x$gcc_cv_as != x; then
24836     echo '      .csect stuff[rw]
24837              stuff:
24838                 .long 1
24839                 .extern sym
24840                 .ref sym
24841           ' > conftest.s
24842     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24843   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24844   (eval $ac_try) 2>&5
24845   ac_status=$?
24846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24847   test $ac_status = 0; }; }
24848     then
24849         gcc_cv_as_aix_ref=yes
24850     else
24851       echo "configure: failed program was" >&5
24852       cat conftest.s >&5
24853     fi
24854     rm -f conftest.o conftest.s
24855   fi
24856 fi
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24858 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24859 if test $gcc_cv_as_aix_ref = yes; then
24860
24861 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24862
24863 fi
24864         ;;
24865     esac
24866     ;;
24867
24868   mips*-*-*)
24869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24870 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24871 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24872   $as_echo_n "(cached) " >&6
24873 else
24874   gcc_cv_as_mips_explicit_relocs=no
24875     if test $in_tree_gas = yes; then
24876     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24877   then gcc_cv_as_mips_explicit_relocs=yes
24878 fi
24879   elif test x$gcc_cv_as != x; then
24880     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24881     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24882   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883   (eval $ac_try) 2>&5
24884   ac_status=$?
24885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886   test $ac_status = 0; }; }
24887     then
24888         gcc_cv_as_mips_explicit_relocs=yes
24889     else
24890       echo "configure: failed program was" >&5
24891       cat conftest.s >&5
24892     fi
24893     rm -f conftest.o conftest.s
24894   fi
24895 fi
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24897 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24898 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24899   if test x$target_cpu_default = x
24900        then target_cpu_default=MASK_EXPLICIT_RELOCS
24901        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24902        fi
24903 fi
24904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24905 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24906 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24907   $as_echo_n "(cached) " >&6
24908 else
24909   gcc_cv_as_mips_no_shared=no
24910     if test $in_tree_gas = yes; then
24911     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24912   then gcc_cv_as_mips_no_shared=yes
24913 fi
24914   elif test x$gcc_cv_as != x; then
24915     echo 'nop' > conftest.s
24916     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24917   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24918   (eval $ac_try) 2>&5
24919   ac_status=$?
24920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24921   test $ac_status = 0; }; }
24922     then
24923         gcc_cv_as_mips_no_shared=yes
24924     else
24925       echo "configure: failed program was" >&5
24926       cat conftest.s >&5
24927     fi
24928     rm -f conftest.o conftest.s
24929   fi
24930 fi
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24932 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24933 if test $gcc_cv_as_mips_no_shared = yes; then
24934
24935 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24936
24937 fi
24938
24939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24940 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24941 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24942   $as_echo_n "(cached) " >&6
24943 else
24944   gcc_cv_as_mips_gnu_attribute=no
24945     if test $in_tree_gas = yes; then
24946     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24947   then gcc_cv_as_mips_gnu_attribute=yes
24948 fi
24949   elif test x$gcc_cv_as != x; then
24950     echo '.gnu_attribute 4,1' > conftest.s
24951     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24952   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24953   (eval $ac_try) 2>&5
24954   ac_status=$?
24955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24956   test $ac_status = 0; }; }
24957     then
24958         gcc_cv_as_mips_gnu_attribute=yes
24959     else
24960       echo "configure: failed program was" >&5
24961       cat conftest.s >&5
24962     fi
24963     rm -f conftest.o conftest.s
24964   fi
24965 fi
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24967 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24968 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24969
24970 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24971
24972 fi
24973
24974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24975 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24976 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24977   $as_echo_n "(cached) " >&6
24978 else
24979   gcc_cv_as_mips_dtprelword=no
24980     if test $in_tree_gas = yes; then
24981     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24982   then gcc_cv_as_mips_dtprelword=yes
24983 fi
24984   elif test x$gcc_cv_as != x; then
24985     echo '.section .tdata,"awT",@progbits
24986 x:
24987         .word 2
24988         .text
24989         .dtprelword x+0x8000' > conftest.s
24990     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24991   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24992   (eval $ac_try) 2>&5
24993   ac_status=$?
24994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24995   test $ac_status = 0; }; }
24996     then
24997         gcc_cv_as_mips_dtprelword=yes
24998     else
24999       echo "configure: failed program was" >&5
25000       cat conftest.s >&5
25001     fi
25002     rm -f conftest.o conftest.s
25003   fi
25004 fi
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25006 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25007 if test $gcc_cv_as_mips_dtprelword = yes; then
25008
25009 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25010
25011 fi
25012
25013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25014 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25015 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25016   $as_echo_n "(cached) " >&6
25017 else
25018   gcc_cv_as_mips_dspr1_mult=no
25019   if test x$gcc_cv_as != x; then
25020     echo '      .set    mips32r2
25021         .set    nodspr2
25022         .set    dsp
25023         madd    $ac3,$4,$5
25024         maddu   $ac3,$4,$5
25025         msub    $ac3,$4,$5
25026         msubu   $ac3,$4,$5
25027         mult    $ac3,$4,$5
25028         multu   $ac3,$4,$5' > conftest.s
25029     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25030   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25031   (eval $ac_try) 2>&5
25032   ac_status=$?
25033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25034   test $ac_status = 0; }; }
25035     then
25036         gcc_cv_as_mips_dspr1_mult=yes
25037     else
25038       echo "configure: failed program was" >&5
25039       cat conftest.s >&5
25040     fi
25041     rm -f conftest.o conftest.s
25042   fi
25043 fi
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25045 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25046 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25047
25048 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25049
25050 fi
25051
25052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25053 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25054     gcc_cv_as_ld_jalr_reloc=no
25055     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25056       if test $in_tree_ld = yes ; then
25057         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 \
25058            && test $in_tree_ld_is_elf = yes; then
25059           gcc_cv_as_ld_jalr_reloc=yes
25060         fi
25061       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25062         echo '  .ent x' > conftest.s
25063         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25064         echo '  ld $25,%call16(y)($28)' >> conftest.s
25065         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25066         echo '1:        jalr $25' >> conftest.s
25067         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25068         echo '1:        jalr $25' >> conftest.s
25069         echo '  .end x' >> conftest.s
25070         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25071            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25072           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25073              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25074             gcc_cv_as_ld_jalr_reloc=yes
25075           fi
25076         fi
25077         rm -f conftest.*
25078       fi
25079     fi
25080     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25081       if test x$target_cpu_default = x; then
25082         target_cpu_default=MASK_RELAX_PIC_CALLS
25083       else
25084         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25085       fi
25086     fi
25087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25088 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25089
25090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25091 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25092 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25093   $as_echo_n "(cached) " >&6
25094 else
25095   gcc_cv_ld_mips_personality_relaxation=no
25096        if test $in_tree_ld = yes ; then
25097          if test "$gcc_cv_gld_major_version" -eq 2 \
25098                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25099                  -o "$gcc_cv_gld_major_version" -gt 2; then
25100            gcc_cv_ld_mips_personality_relaxation=yes
25101          fi
25102        elif test x$gcc_cv_as != x \
25103                  -a x$gcc_cv_ld != x \
25104                  -a x$gcc_cv_readelf != x ; then
25105          cat > conftest.s <<EOF
25106         .cfi_startproc
25107         .cfi_personality 0x80,indirect_ptr
25108         .ent test
25109 test:
25110         nop
25111         .end test
25112         .cfi_endproc
25113
25114         .section .data,"aw",@progbits
25115 indirect_ptr:
25116         .dc.a personality
25117 EOF
25118          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25119             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25120            if $gcc_cv_readelf -d conftest 2>&1 \
25121               | grep TEXTREL > /dev/null 2>&1; then
25122              :
25123            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25124                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25125              :
25126            else
25127              gcc_cv_ld_mips_personality_relaxation=yes
25128            fi
25129          fi
25130        fi
25131        rm -f conftest.s conftest.o conftest
25132 fi
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25134 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25135     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25136
25137 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25138
25139     fi
25140     ;;
25141 esac
25142
25143 # Mips and HP-UX need the GNU assembler.
25144 # Linux on IA64 might be able to use the Intel assembler.
25145
25146 case "$target" in
25147   mips*-*-* | *-*-hpux* )
25148     if test x$gas_flag = xyes \
25149        || test x"$host" != x"$build" \
25150        || test ! -x "$gcc_cv_as" \
25151        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25152       :
25153     else
25154       echo "*** This configuration requires the GNU assembler" >&2
25155       exit 1
25156     fi
25157     ;;
25158 esac
25159
25160 # ??? Not all targets support dwarf2 debug_line, even within a version
25161 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25162 # info to the output file.  So, as supported targets are added to gas 2.11,
25163 # add some instruction here to (also) show we expect this might work.
25164 # ??? Once 2.11 is released, probably need to add first known working
25165 # version to the per-target configury.
25166 case "$cpu_type" in
25167   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25168   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25169     insn="nop"
25170     ;;
25171   ia64 | s390)
25172     insn="nop 0"
25173     ;;
25174   mmix)
25175     insn="swym 0"
25176     ;;
25177 esac
25178 if test x"$insn" != x; then
25179  conftest_s="\
25180         .file 1 \"conftest.s\"
25181         .loc 1 3 0
25182         $insn"
25183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25184 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25185 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25186   $as_echo_n "(cached) " >&6
25187 else
25188   gcc_cv_as_dwarf2_debug_line=no
25189     if test $in_tree_gas = yes; then
25190     if test $in_tree_gas_is_elf = yes \
25191   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25192   then gcc_cv_as_dwarf2_debug_line=yes
25193 fi
25194   elif test x$gcc_cv_as != x; then
25195     echo "$conftest_s" > conftest.s
25196     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25197   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25198   (eval $ac_try) 2>&5
25199   ac_status=$?
25200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25201   test $ac_status = 0; }; }
25202     then
25203         if test x$gcc_cv_objdump != x \
25204    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25205       | grep debug_line > /dev/null 2>&1; then
25206      gcc_cv_as_dwarf2_debug_line=yes
25207    fi
25208     else
25209       echo "configure: failed program was" >&5
25210       cat conftest.s >&5
25211     fi
25212     rm -f conftest.o conftest.s
25213   fi
25214 fi
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25216 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25217
25218
25219 # The .debug_line file table must be in the exact order that
25220 # we specified the files, since these indices are also used
25221 # by DW_AT_decl_file.  Approximate this test by testing if
25222 # the assembler bitches if the same index is assigned twice.
25223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25224 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25225 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25226   $as_echo_n "(cached) " >&6
25227 else
25228   gcc_cv_as_dwarf2_file_buggy=no
25229   if test x$gcc_cv_as != x; then
25230     echo '      .file 1 "foo.s"
25231         .file 1 "bar.s"' > conftest.s
25232     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25233   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25234   (eval $ac_try) 2>&5
25235   ac_status=$?
25236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25237   test $ac_status = 0; }; }
25238     then
25239         gcc_cv_as_dwarf2_file_buggy=yes
25240     else
25241       echo "configure: failed program was" >&5
25242       cat conftest.s >&5
25243     fi
25244     rm -f conftest.o conftest.s
25245   fi
25246 fi
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25248 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25249
25250
25251  if test $gcc_cv_as_dwarf2_debug_line = yes \
25252  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25253
25254 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25255
25256  fi
25257
25258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25259 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25260 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25261   $as_echo_n "(cached) " >&6
25262 else
25263   gcc_cv_as_gdwarf2_flag=no
25264     if test $in_tree_gas = yes; then
25265     if test $in_tree_gas_is_elf = yes \
25266   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25267   then gcc_cv_as_gdwarf2_flag=yes
25268 fi
25269   elif test x$gcc_cv_as != x; then
25270     echo "$insn" > conftest.s
25271     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25272   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25273   (eval $ac_try) 2>&5
25274   ac_status=$?
25275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25276   test $ac_status = 0; }; }
25277     then
25278         gcc_cv_as_gdwarf2_flag=yes
25279     else
25280       echo "configure: failed program was" >&5
25281       cat conftest.s >&5
25282     fi
25283     rm -f conftest.o conftest.s
25284   fi
25285 fi
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25287 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25288 if test $gcc_cv_as_gdwarf2_flag = yes; then
25289
25290 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25291
25292 fi
25293
25294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25295 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25296 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25297   $as_echo_n "(cached) " >&6
25298 else
25299   gcc_cv_as_gstabs_flag=no
25300     if test $in_tree_gas = yes; then
25301     if test $in_tree_gas_is_elf = yes \
25302   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25303   then gcc_cv_as_gstabs_flag=yes
25304 fi
25305   elif test x$gcc_cv_as != x; then
25306     echo "$insn" > conftest.s
25307     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25308   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25309   (eval $ac_try) 2>&5
25310   ac_status=$?
25311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25312   test $ac_status = 0; }; }
25313     then
25314         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25315    # and warns about it, but still exits successfully.  So check for
25316    # this.
25317    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25318   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25319   (eval $ac_try) 2>&5
25320   ac_status=$?
25321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322   test $ac_status = 0; }; }
25323    then :
25324    else gcc_cv_as_gstabs_flag=yes
25325    fi
25326     else
25327       echo "configure: failed program was" >&5
25328       cat conftest.s >&5
25329     fi
25330     rm -f conftest.o conftest.s
25331   fi
25332 fi
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25334 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25335 if test $gcc_cv_as_gstabs_flag = yes; then
25336
25337 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25338
25339 fi
25340
25341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25342 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25343 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25344   $as_echo_n "(cached) " >&6
25345 else
25346   gcc_cv_as_debug_prefix_map_flag=no
25347     if test $in_tree_gas = yes; then
25348     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25349   then gcc_cv_as_debug_prefix_map_flag=yes
25350 fi
25351   elif test x$gcc_cv_as != x; then
25352     echo "$insn" > conftest.s
25353     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25354   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25355   (eval $ac_try) 2>&5
25356   ac_status=$?
25357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25358   test $ac_status = 0; }; }
25359     then
25360         gcc_cv_as_debug_prefix_map_flag=yes
25361     else
25362       echo "configure: failed program was" >&5
25363       cat conftest.s >&5
25364     fi
25365     rm -f conftest.o conftest.s
25366   fi
25367 fi
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25369 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25370 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25371
25372 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25373
25374 fi
25375 fi
25376
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25378 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25379 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25380   $as_echo_n "(cached) " >&6
25381 else
25382   gcc_cv_as_lcomm_with_alignment=no
25383   if test x$gcc_cv_as != x; then
25384     echo '.lcomm bar,4,16' > conftest.s
25385     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25386   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387   (eval $ac_try) 2>&5
25388   ac_status=$?
25389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390   test $ac_status = 0; }; }
25391     then
25392         gcc_cv_as_lcomm_with_alignment=yes
25393     else
25394       echo "configure: failed program was" >&5
25395       cat conftest.s >&5
25396     fi
25397     rm -f conftest.o conftest.s
25398   fi
25399 fi
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25401 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25402 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25403
25404 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25405
25406 fi
25407
25408 # Check whether --enable-gnu-unique-object was given.
25409 if test "${enable_gnu_unique_object+set}" = set; then :
25410   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25411     yes | no) ;;
25412     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25413 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25414   esac
25415 else
25416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25417 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25418 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25419   $as_echo_n "(cached) " >&6
25420 else
25421   gcc_cv_as_gnu_unique_object=no
25422     if test $in_tree_gas = yes; then
25423     if test $in_tree_gas_is_elf = yes \
25424   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25425   then gcc_cv_as_gnu_unique_object=yes
25426 fi
25427   elif test x$gcc_cv_as != x; then
25428     echo '.type foo, @gnu_unique_object' > conftest.s
25429     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25430   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431   (eval $ac_try) 2>&5
25432   ac_status=$?
25433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434   test $ac_status = 0; }; }
25435     then
25436         gcc_cv_as_gnu_unique_object=yes
25437     else
25438       echo "configure: failed program was" >&5
25439       cat conftest.s >&5
25440     fi
25441     rm -f conftest.o conftest.s
25442   fi
25443 fi
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25445 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25446 if test $gcc_cv_as_gnu_unique_object = yes; then
25447   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25448    if test x$host = x$build -a x$host = x$target &&
25449        ldd --version 2>/dev/null &&
25450        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25451       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25452       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25453       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25454       if test "$glibcnum" -ge 2011 ; then
25455         enable_gnu_unique_object=yes
25456       fi
25457     fi
25458 fi
25459 fi
25460
25461 if test x$enable_gnu_unique_object = xyes; then
25462
25463 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25464
25465 fi
25466
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25468 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25469 if test "${gcc_cv_as_line_zero+set}" = set; then :
25470   $as_echo_n "(cached) " >&6
25471 else
25472   gcc_cv_as_line_zero=no
25473   if test $in_tree_gas = yes; then
25474     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25475   then gcc_cv_as_line_zero=yes
25476 fi
25477   elif test "x$gcc_cv_as" != x; then
25478     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25479     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25480   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481   (eval $ac_try) 2>&5
25482   ac_status=$?
25483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484   test $ac_status = 0; }; } &&
25485        test "x`cat conftest.out`" = x
25486     then
25487       gcc_cv_as_line_zero=yes
25488     else
25489       echo "configure: failed program was" >&5
25490       cat conftest.s >&5
25491       echo "configure: error output was" >&5
25492       cat conftest.out >&5
25493     fi
25494     rm -f conftest.o conftest.s conftest.out
25495   fi
25496 fi
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25498 $as_echo "$gcc_cv_as_line_zero" >&6; }
25499 if test "x$gcc_cv_as_line_zero" = xyes; then
25500
25501 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25502
25503 fi
25504
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25506 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25507 gcc_cv_ld_eh_frame_hdr=no
25508 if test $in_tree_ld = yes ; then
25509   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 \
25510      && test $in_tree_ld_is_elf = yes; then
25511     gcc_cv_ld_eh_frame_hdr=yes
25512   fi
25513 elif test x$gcc_cv_ld != x; then
25514   if echo "$ld_ver" | grep GNU > /dev/null; then
25515     # Check if linker supports --eh-frame-hdr option
25516     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25517       gcc_cv_ld_eh_frame_hdr=yes
25518     fi
25519   else
25520     case "$target" in
25521       *-*-solaris2*)
25522         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25523         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25524           gcc_cv_ld_eh_frame_hdr=yes
25525         fi
25526         ;;
25527     esac
25528   fi
25529 fi
25530
25531 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25532
25533 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25534
25535 fi
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25537 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25538
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25540 $as_echo_n "checking linker position independent executable support... " >&6; }
25541 gcc_cv_ld_pie=no
25542 if test $in_tree_ld = yes ; then
25543   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 \
25544      && test $in_tree_ld_is_elf = yes; then
25545     gcc_cv_ld_pie=yes
25546   fi
25547 elif test x$gcc_cv_ld != x; then
25548         # Check if linker supports -pie option
25549         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25550                 gcc_cv_ld_pie=yes
25551         fi
25552 fi
25553 if test x"$gcc_cv_ld_pie" = xyes; then
25554
25555 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25556
25557 fi
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25559 $as_echo "$gcc_cv_ld_pie" >&6; }
25560
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25562 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25563 gcc_cv_ld_eh_gc_sections=no
25564 if test $in_tree_ld = yes ; then
25565   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 \
25566      && test $in_tree_ld_is_elf = yes; then
25567     gcc_cv_ld_eh_gc_sections=yes
25568   fi
25569 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25570   cat > conftest.s <<EOF
25571         .section        .text
25572 .globl _start
25573         .type _start, @function
25574 _start:
25575         .long foo
25576         .size _start, .-_start
25577         .section        .text.foo,"ax",@progbits
25578         .type foo, @function
25579 foo:
25580         .long 0
25581         .size foo, .-foo
25582         .section        .gcc_except_table.foo,"a",@progbits
25583 .L0:
25584         .long 0
25585         .section        .eh_frame,"a",@progbits
25586         .long .L0
25587 EOF
25588   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25589     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25590          | grep "gc-sections option ignored" > /dev/null; then
25591       gcc_cv_ld_eh_gc_sections=no
25592     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25593          | grep gcc_except_table > /dev/null; then
25594       gcc_cv_ld_eh_gc_sections=yes
25595       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25596       if test x$gcc_cv_as_comdat_group != xyes; then
25597         gcc_cv_ld_eh_gc_sections=no
25598         cat > conftest.s <<EOF
25599         .section        .text
25600 .globl _start
25601         .type _start, @function
25602 _start:
25603         .long foo
25604         .size _start, .-_start
25605         .section        .gnu.linkonce.t.foo,"ax",@progbits
25606         .type foo, @function
25607 foo:
25608         .long 0
25609         .size foo, .-foo
25610         .section        .gcc_except_table.foo,"a",@progbits
25611 .L0:
25612         .long 0
25613         .section        .eh_frame,"a",@progbits
25614         .long .L0
25615 EOF
25616         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25617           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25618                | grep "gc-sections option ignored" > /dev/null; then
25619             gcc_cv_ld_eh_gc_sections=no
25620           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25621                | grep gcc_except_table > /dev/null; then
25622             gcc_cv_ld_eh_gc_sections=yes
25623           fi
25624         fi
25625       fi
25626     fi
25627   fi
25628   rm -f conftest.s conftest.o conftest
25629 fi
25630 case "$target" in
25631   hppa*-*-linux*)
25632     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25633     gcc_cv_ld_eh_gc_sections=no
25634     ;;
25635 esac
25636 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25637
25638 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25639
25640 fi
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25642 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25643
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25645 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25646 gcc_cv_ld_eh_gc_sections_bug=no
25647 if test $in_tree_ld = yes ; then
25648   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
25649      && test $in_tree_ld_is_elf = yes; then
25650     gcc_cv_ld_eh_gc_sections_bug=yes
25651   fi
25652 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
25653   gcc_cv_ld_eh_gc_sections_bug=yes
25654   cat > conftest.s <<EOF
25655         .section        .text
25656 .globl _start
25657         .type _start, @function
25658 _start:
25659         .long foo
25660         .size _start, .-_start
25661         .section        .text.startup.foo,"ax",@progbits
25662         .type foo, @function
25663 foo:
25664         .long 0
25665         .size foo, .-foo
25666         .section        .gcc_except_table.foo,"a",@progbits
25667 .L0:
25668         .long 0
25669         .section        .eh_frame,"a",@progbits
25670         .long .L0
25671 EOF
25672   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25673     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25674          | grep "gc-sections option ignored" > /dev/null; then
25675       :
25676     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25677          | grep gcc_except_table > /dev/null; then
25678       gcc_cv_ld_eh_gc_sections_bug=no
25679     fi
25680   fi
25681   rm -f conftest.s conftest.o conftest
25682 fi
25683 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25684
25685 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25686
25687 fi
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25689 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25690
25691 # --------
25692 # UNSORTED
25693 # --------
25694
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25696 $as_echo_n "checking linker --as-needed support... " >&6; }
25697 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25698   $as_echo_n "(cached) " >&6
25699 else
25700   gcc_cv_ld_as_needed=no
25701 if test $in_tree_ld = yes ; then
25702   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 \
25703      && test $in_tree_ld_is_elf = yes; then
25704     gcc_cv_ld_as_needed=yes
25705   fi
25706 elif test x$gcc_cv_ld != x; then
25707         # Check if linker supports --as-needed and --no-as-needed options
25708         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25709                 gcc_cv_ld_as_needed=yes
25710         fi
25711 fi
25712
25713 fi
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25715 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25716 if test x"$gcc_cv_ld_as_needed" = xyes; then
25717
25718 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25719
25720 fi
25721
25722 case "$target:$tm_file" in
25723   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25725 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25726 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25727   $as_echo_n "(cached) " >&6
25728 else
25729   gcc_cv_ld_no_dot_syms=no
25730     if test $in_tree_ld = yes ; then
25731       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
25732         gcc_cv_ld_no_dot_syms=yes
25733       fi
25734     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25735       cat > conftest1.s <<EOF
25736         .text
25737         bl .foo
25738 EOF
25739       cat > conftest2.s <<EOF
25740         .section ".opd","aw"
25741         .align 3
25742         .globl foo
25743         .type foo,@function
25744 foo:
25745         .quad .LEfoo,.TOC.@tocbase,0
25746         .text
25747 .LEfoo:
25748         blr
25749         .size foo,.-.LEfoo
25750 EOF
25751       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25752          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25753          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25754         gcc_cv_ld_no_dot_syms=yes
25755       fi
25756       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25757     fi
25758
25759 fi
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25761 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25762     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25763
25764 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25765
25766     fi
25767
25768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25769 $as_echo_n "checking linker large toc support... " >&6; }
25770 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25771   $as_echo_n "(cached) " >&6
25772 else
25773   gcc_cv_ld_large_toc=no
25774     if test $in_tree_ld = yes ; then
25775       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
25776         gcc_cv_ld_large_toc=yes
25777       fi
25778     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25779       cat > conftest.s <<EOF
25780         .section ".tbss","awT",@nobits
25781         .align 3
25782 ie0:    .space 8
25783         .global _start
25784         .text
25785 _start:
25786         addis 9,13,ie0@got@tprel@ha
25787         ld 9,ie0@got@tprel@l(9)
25788 EOF
25789       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25790          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25791         gcc_cv_ld_large_toc=yes
25792       fi
25793       rm -f conftest conftest.o conftest.s
25794     fi
25795
25796 fi
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25798 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25799     if test x"$gcc_cv_ld_large_toc" = xyes; then
25800
25801 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25802
25803     fi
25804     ;;
25805 esac
25806
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25808 $as_echo_n "checking linker --build-id support... " >&6; }
25809 if test "${gcc_cv_ld_buildid+set}" = set; then :
25810   $as_echo_n "(cached) " >&6
25811 else
25812   gcc_cv_ld_buildid=no
25813   if test $in_tree_ld = yes ; then
25814     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25815        "$gcc_cv_gld_minor_version" -ge 18 -o \
25816        "$gcc_cv_gld_major_version" -gt 2 \
25817        && test $in_tree_ld_is_elf = yes; then
25818       gcc_cv_ld_buildid=yes
25819     fi
25820   elif test x$gcc_cv_ld != x; then
25821     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25822       gcc_cv_ld_buildid=yes
25823     fi
25824   fi
25825 fi
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25827 $as_echo "$gcc_cv_ld_buildid" >&6; }
25828 if test x"$gcc_cv_ld_buildid" = xyes; then
25829
25830 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25831
25832 fi
25833
25834 # Check whether --enable-linker-build-id was given.
25835 if test "${enable_linker_build_id+set}" = set; then :
25836   enableval=$enable_linker_build_id;
25837 else
25838   enable_linker_build_id=no
25839 fi
25840
25841
25842 if test x"$enable_linker_build_id" = xyes; then
25843   if test x"$gcc_cv_ld_buildid" = xyes; then
25844
25845 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25846
25847   else
25848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25849 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25850   fi
25851 fi
25852
25853 # In binutils 2.21, GNU ld gained support for new emulations fully
25854 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25856 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25857 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25858   $as_echo_n "(cached) " >&6
25859 else
25860   gcc_cv_ld_sol2_emulation=no
25861   if test $in_tree_ld = yes ; then
25862     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25863        "$gcc_cv_gld_minor_version" -ge 21 -o \
25864        "$gcc_cv_gld_major_version" -gt 2 \
25865        && test $in_tree_ld_is_elf = yes; then
25866       gcc_cv_ld_sol2_emulation=yes
25867     fi
25868   elif test x$gcc_cv_ld != x; then
25869     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25870        grep _sol2 > /dev/null; then
25871       gcc_cv_ld_sol2_emulation=yes
25872     fi
25873   fi
25874 fi
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25876 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25877 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25878
25879 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25880
25881 fi
25882
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25884 $as_echo_n "checking linker --sysroot support... " >&6; }
25885 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25886   $as_echo_n "(cached) " >&6
25887 else
25888   gcc_cv_ld_sysroot=no
25889   if test $in_tree_ld = yes ; then
25890       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
25891         gcc_cv_ld_sysroot=yes
25892       fi
25893   elif test x$gcc_cv_ld != x; then
25894     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25895       gcc_cv_ld_sysroot=yes
25896     fi
25897   fi
25898 fi
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25900 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25901 if test x"$gcc_cv_ld_sysroot" = xyes; then
25902
25903 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25904
25905 fi
25906
25907 if test x$with_sysroot = x && test x$host = x$target \
25908    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25909    && test "$prefix" != "NONE"; then
25910
25911 cat >>confdefs.h <<_ACEOF
25912 #define PREFIX_INCLUDE_DIR "$prefix/include"
25913 _ACEOF
25914
25915 fi
25916
25917 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25918   if test "x$with_headers" != x; then
25919     target_header_dir=$with_headers
25920   elif test "x$with_sysroot" = x; then
25921     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25922   elif test "x$with_build_sysroot" != "x"; then
25923     target_header_dir="${with_build_sysroot}/usr/include"
25924   elif test "x$with_sysroot" = xyes; then
25925     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25926   else
25927     target_header_dir="${with_sysroot}/usr/include"
25928   fi
25929 else
25930   target_header_dir=/usr/include
25931 fi
25932
25933 # Test for stack protector support in target C library.
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25935 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25936 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25937   $as_echo_n "(cached) " >&6
25938 else
25939   gcc_cv_libc_provides_ssp=no
25940     case "$target" in
25941        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25942       # glibc 2.4 and later provides __stack_chk_fail and
25943       # either __stack_chk_guard, or TLS access to stack guard canary.
25944       if test -f $target_header_dir/features.h \
25945          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25946             $target_header_dir/features.h > /dev/null; then
25947         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25948            $target_header_dir/features.h > /dev/null; then
25949           gcc_cv_libc_provides_ssp=yes
25950         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25951              $target_header_dir/features.h > /dev/null \
25952              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25953              $target_header_dir/features.h > /dev/null; then
25954           gcc_cv_libc_provides_ssp=yes
25955         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25956              $target_header_dir/features.h > /dev/null && \
25957              test -f $target_header_dir/bits/uClibc_config.h && \
25958              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25959              $target_header_dir/bits/uClibc_config.h > /dev/null; then
25960           gcc_cv_libc_provides_ssp=yes
25961         fi
25962       fi
25963         ;;
25964        *-*-gnu*)
25965          # Avoid complicated tests (see
25966          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25967          # simply assert that glibc does provide this, which is true for all
25968          # realistically usable GNU/Hurd configurations.
25969          gcc_cv_libc_provides_ssp=yes;;
25970        *-*-darwin* | *-*-freebsd*)
25971          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25972 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25973   gcc_cv_libc_provides_ssp=yes
25974 else
25975   echo "no __stack_chk_fail on this target"
25976 fi
25977
25978         ;;
25979   *) gcc_cv_libc_provides_ssp=no ;;
25980     esac
25981 fi
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25983 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25984
25985 if test x$gcc_cv_libc_provides_ssp = xyes; then
25986
25987 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25988
25989 fi
25990
25991 # Test for <sys/sdt.h> on the target.
25992
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
25994 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
25995 have_sys_sdt_h=no
25996 if test -f $target_header_dir/sys/sdt.h; then
25997
25998 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
25999
26000 fi
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26002 $as_echo "$have_sys_sdt_h" >&6; }
26003
26004 # Check if TFmode long double should be used by default or not.
26005 # Some glibc targets used DFmode long double, but with glibc 2.4
26006 # and later they can use TFmode.
26007 case "$target" in
26008   powerpc*-*-linux* | \
26009   sparc*-*-linux* | \
26010   s390*-*-linux* | \
26011   alpha*-*-linux*)
26012
26013 # Check whether --with-long-double-128 was given.
26014 if test "${with_long_double_128+set}" = set; then :
26015   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26016 else
26017   gcc_cv_target_ldbl128=no
26018       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26019         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26020       && gcc_cv_target_ldbl128=yes
26021
26022 fi
26023
26024     ;;
26025 esac
26026 if test x$gcc_cv_target_ldbl128 = xyes; then
26027
26028 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26029
26030 fi
26031
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26033 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26034 gcc_cv_target_dl_iterate_phdr=unknown
26035 case "$target" in
26036   *-*-solaris2*)
26037     # <link.h> needs both a dl_iterate_phdr declaration and support for
26038     # compilation with largefile support.
26039     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26040       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26041       gcc_cv_target_dl_iterate_phdr=yes
26042     else
26043       gcc_cv_target_dl_iterate_phdr=no
26044     fi
26045     ;;
26046 esac
26047
26048 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26049
26050 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26051
26052 fi
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26054 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26055
26056 # Find out what GC implementation we want, or may, use.
26057
26058 # Check whether --with-gc was given.
26059 if test "${with_gc+set}" = set; then :
26060   withval=$with_gc; case "$withval" in
26061   page)
26062     GGC=ggc-$withval
26063     ;;
26064   zone)
26065     GGC=ggc-$withval
26066
26067 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26068
26069     ;;
26070   *)
26071     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26072     ;;
26073 esac
26074 else
26075   GGC=ggc-page
26076 fi
26077
26078
26079 echo "Using $GGC for garbage collection."
26080
26081 # Libraries to use on the host.  This will normally be set by the top
26082 # level Makefile.  Here we simply capture the value for our Makefile.
26083 if test -z "${HOST_LIBS+set}"; then
26084   HOST_LIBS=
26085 fi
26086
26087
26088 # Use the system's zlib library.
26089 zlibdir=-L../zlib
26090 zlibinc="-I\$(srcdir)/../zlib"
26091
26092 # Check whether --with-system-zlib was given.
26093 if test "${with_system_zlib+set}" = set; then :
26094   withval=$with_system_zlib; zlibdir=
26095 zlibinc=
26096
26097 fi
26098
26099
26100
26101
26102
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26104 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26105     # Check whether --enable-maintainer-mode was given.
26106 if test "${enable_maintainer_mode+set}" = set; then :
26107   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26108 else
26109   maintainer_mode=no
26110 fi
26111
26112
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26114 $as_echo "$maintainer_mode" >&6; }
26115
26116 if test "$maintainer_mode" = "yes"; then
26117   MAINT=''
26118 else
26119   MAINT='#'
26120 fi
26121
26122 # --------------
26123 # Language hooks
26124 # --------------
26125
26126 # Make empty files to contain the specs and options for each language.
26127 # Then add #include lines to for a compiler that has specs and/or options.
26128
26129 subdirs=
26130 lang_opt_files=
26131 lang_specs_files=
26132 lang_tree_files=
26133 # These (without "all_") are set in each config-lang.in.
26134 # `language' must be a single word so is spelled singularly.
26135 all_languages=
26136 all_compilers=
26137 all_outputs='Makefile'
26138 # List of language makefile fragments.
26139 all_lang_makefrags=
26140 # Additional files for gengtype
26141 all_gtfiles="$target_gtfiles"
26142
26143 # These are the languages that are set in --enable-languages,
26144 # and are available in the GCC tree.
26145 all_selected_languages=
26146
26147 # Add the language fragments.
26148 # Languages are added via two mechanisms.  Some information must be
26149 # recorded in makefile variables, these are defined in config-lang.in.
26150 # We accumulate them and plug them into the main Makefile.
26151 # The other mechanism is a set of hooks for each of the main targets
26152 # like `clean', `install', etc.
26153
26154 language_hooks="Make-hooks"
26155
26156 for lang in ${srcdir}/*/config-lang.in
26157 do
26158         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26159
26160         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26161         if test "x$lang_alias" = x
26162         then
26163               echo "$lang doesn't set \$language." 1>&2
26164               exit 1
26165         fi
26166         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26167         subdirs="$subdirs $subdir"
26168
26169         # $gcc_subdir is where the gcc integration files are to be found
26170         # for a language, both for internal compiler purposes (compiler
26171         # sources implementing front-end to GCC tree converters), and for
26172         # build infrastructure purposes (Make-lang.in, etc.)
26173         #
26174         # This will be <subdir> (relative to $srcdir) if a line like
26175         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26176         # is found in <langdir>/config-lang.in, and will remain <langdir>
26177         # otherwise.
26178         #
26179         # Except for the language alias (fetched above), the regular
26180         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26181         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26182         # only this and the language alias.
26183
26184         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26185         if [ "$gcc_subdir" = "" ]; then
26186            gcc_subdir="$subdir"
26187         fi
26188
26189         case ",$enable_languages," in
26190         *,$lang_alias,*)
26191             all_selected_languages="$all_selected_languages $lang_alias"
26192             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26193                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26194             fi
26195             ;;
26196         esac
26197
26198         language=
26199         boot_language=
26200         compilers=
26201         outputs=
26202         gtfiles=
26203         subdir_requires=
26204         . ${srcdir}/$gcc_subdir/config-lang.in
26205         if test "x$language" = x
26206         then
26207                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26208                 exit 1
26209         fi
26210
26211         ok=:
26212         case ",$enable_languages," in
26213                 *,$lang_alias,*) ;;
26214                 *)
26215                         for i in $subdir_requires; do
26216                                 test -f "${srcdir}/$i/config-lang.in" && continue
26217                                 ok=false
26218                                 break
26219                         done
26220                 ;;
26221         esac
26222         $ok || continue
26223
26224         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26225         if test -f $srcdir/$gcc_subdir/lang.opt; then
26226             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26227             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26228         fi
26229         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26230             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26231         fi
26232         all_languages="$all_languages $language"
26233         all_compilers="$all_compilers $compilers"
26234         all_outputs="$all_outputs $outputs"
26235         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26236         case ",$enable_languages," in
26237                 *,lto,*)
26238
26239 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26240
26241                     enable_lto=yes
26242
26243                     ;;
26244                 *) ;;
26245         esac
26246 done
26247
26248 # Pick up gtfiles for c
26249 gtfiles=
26250 . ${srcdir}/c-config-lang.in
26251 all_gtfiles="$all_gtfiles [c] $gtfiles"
26252
26253 check_languages=
26254 for language in $all_selected_languages
26255 do
26256         check_languages="$check_languages check-$language"
26257 done
26258
26259 # We link each language in with a set of hooks, reached indirectly via
26260 # lang.${target}.  Only do so for selected languages.
26261
26262 rm -f Make-hooks
26263 touch Make-hooks
26264 target_list="all.cross start.encap rest.encap tags \
26265         install-common install-man install-info install-pdf install-html dvi \
26266         pdf html uninstall info man srcextra srcman srcinfo \
26267         mostlyclean clean distclean maintainer-clean install-plugin"
26268
26269 for t in $target_list
26270 do
26271         x=
26272         for lang in $all_selected_languages
26273         do
26274                 x="$x $lang.$t"
26275         done
26276         echo "lang.$t: $x" >> Make-hooks
26277 done
26278
26279 # --------
26280 # Option include files
26281 # --------
26282
26283 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26284 option_includes="option-includes.mk"
26285
26286
26287 # --------
26288 # UNSORTED
26289 # --------
26290
26291 # Create .gdbinit.
26292
26293 echo "dir ." > .gdbinit
26294 echo "dir ${srcdir}" >> .gdbinit
26295 if test x$gdb_needs_out_file_path = xyes
26296 then
26297         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26298 fi
26299 if test "x$subdirs" != x; then
26300         for s in $subdirs
26301         do
26302                 echo "dir ${srcdir}/$s" >> .gdbinit
26303         done
26304 fi
26305 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26306
26307 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26308
26309
26310
26311 # Find a directory in which to install a shared libgcc.
26312
26313 # Check whether --enable-version-specific-runtime-libs was given.
26314 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26315   enableval=$enable_version_specific_runtime_libs;
26316 fi
26317
26318
26319
26320 # Check whether --with-slibdir was given.
26321 if test "${with_slibdir+set}" = set; then :
26322   withval=$with_slibdir; slibdir="$with_slibdir"
26323 else
26324   if test "${enable_version_specific_runtime_libs+set}" = set; then
26325   slibdir='$(libsubdir)'
26326 elif test "$host" != "$target"; then
26327   slibdir='$(build_tooldir)/lib'
26328 else
26329   slibdir='$(libdir)'
26330 fi
26331 fi
26332
26333
26334
26335 # Substitute configuration variables
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402 # Echo link setup.
26403 if test x${build} = x${host} ; then
26404   if test x${host} = x${target} ; then
26405     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26406   else
26407     echo "Links are now set up to build a cross-compiler" 1>&2
26408     echo " from ${host} to ${target}." 1>&2
26409   fi
26410 else
26411   if test x${host} = x${target} ; then
26412     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26413     echo " for ${target}." 1>&2
26414   else
26415     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26416     echo " from ${host} to ${target}." 1>&2
26417   fi
26418 fi
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428 if test "x${CLOOGLIBS}" != "x" ; then
26429
26430 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26431
26432 fi
26433
26434 # Check for plugin support
26435 # Check whether --enable-plugin was given.
26436 if test "${enable_plugin+set}" = set; then :
26437   enableval=$enable_plugin; enable_plugin=$enableval
26438 else
26439   enable_plugin=yes; default_plugin=yes
26440 fi
26441
26442
26443 pluginlibs=
26444
26445 case "${host}" in
26446   *-*-darwin*)
26447     if test x$build = x$host; then
26448       export_sym_check="nm${exeext} -g"
26449     elif test x$host = x$target; then
26450       export_sym_check="$gcc_cv_nm -g"
26451     else
26452       export_sym_check=
26453     fi
26454   ;;
26455   *)
26456     if test x$build = x$host; then
26457       export_sym_check="objdump${exeext} -T"
26458     elif test x$host = x$target; then
26459       export_sym_check="$gcc_cv_objdump -T"
26460     else
26461       export_sym_check=
26462     fi
26463   ;;
26464 esac
26465
26466 if test x"$enable_plugin" = x"yes"; then
26467
26468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26469 $as_echo_n "checking for exported symbols... " >&6; }
26470   if test "x$export_sym_check" != x; then
26471     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26472     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26473     if $export_sym_check conftest | grep foobar > /dev/null; then
26474       : # No need to use a flag
26475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26476 $as_echo "yes" >&6; }
26477     else
26478       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26479 $as_echo "yes" >&6; }
26480       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26481 $as_echo_n "checking for -rdynamic... " >&6; }
26482       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26483       if $export_sym_check conftest | grep foobar > /dev/null; then
26484         plugin_rdynamic=yes
26485         pluginlibs="-rdynamic"
26486       else
26487         plugin_rdynamic=no
26488         enable_plugin=no
26489       fi
26490       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26491 $as_echo "$plugin_rdynamic" >&6; }
26492     fi
26493   else
26494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26495 $as_echo "unable to check" >&6; }
26496   fi
26497
26498   # Check -ldl
26499   saved_LIBS="$LIBS"
26500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26501 $as_echo_n "checking for library containing dlopen... " >&6; }
26502 if test "${ac_cv_search_dlopen+set}" = set; then :
26503   $as_echo_n "(cached) " >&6
26504 else
26505   ac_func_search_save_LIBS=$LIBS
26506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26507 /* end confdefs.h.  */
26508
26509 /* Override any GCC internal prototype to avoid an error.
26510    Use char because int might match the return type of a GCC
26511    builtin and then its argument prototype would still apply.  */
26512 #ifdef __cplusplus
26513 extern "C"
26514 #endif
26515 char dlopen ();
26516 int
26517 main ()
26518 {
26519 return dlopen ();
26520   ;
26521   return 0;
26522 }
26523 _ACEOF
26524 for ac_lib in '' dl; do
26525   if test -z "$ac_lib"; then
26526     ac_res="none required"
26527   else
26528     ac_res=-l$ac_lib
26529     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26530   fi
26531   if ac_fn_c_try_link "$LINENO"; then :
26532   ac_cv_search_dlopen=$ac_res
26533 fi
26534 rm -f core conftest.err conftest.$ac_objext \
26535     conftest$ac_exeext
26536   if test "${ac_cv_search_dlopen+set}" = set; then :
26537   break
26538 fi
26539 done
26540 if test "${ac_cv_search_dlopen+set}" = set; then :
26541
26542 else
26543   ac_cv_search_dlopen=no
26544 fi
26545 rm conftest.$ac_ext
26546 LIBS=$ac_func_search_save_LIBS
26547 fi
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26549 $as_echo "$ac_cv_search_dlopen" >&6; }
26550 ac_res=$ac_cv_search_dlopen
26551 if test "$ac_res" != no; then :
26552   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26553
26554 fi
26555
26556   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26557     pluginlibs="$pluginlibs -ldl"
26558   fi
26559   LIBS="$saved_LIBS"
26560
26561   # Check that we can build shared objects with -fPIC -shared
26562   saved_LDFLAGS="$LDFLAGS"
26563   saved_CFLAGS="$CFLAGS"
26564   case "${host}" in
26565     *-*-darwin*)
26566       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26567       CFLAGS="$CFLAGS -fPIC"
26568       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26569     ;;
26570     *)
26571       CFLAGS="$CFLAGS -fPIC"
26572       LDFLAGS="$LDFLAGS -fPIC -shared"
26573     ;;
26574   esac
26575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26576 $as_echo_n "checking for -fPIC -shared... " >&6; }
26577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26578 /* end confdefs.h.  */
26579 extern int X;
26580 int
26581 main ()
26582 {
26583 return X == 0;
26584   ;
26585   return 0;
26586 }
26587 _ACEOF
26588 if ac_fn_c_try_link "$LINENO"; then :
26589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26590 $as_echo "yes" >&6; }; have_pic_shared=yes
26591 else
26592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26593 $as_echo "no" >&6; }; have_pic_shared=no
26594 fi
26595 rm -f core conftest.err conftest.$ac_objext \
26596     conftest$ac_exeext conftest.$ac_ext
26597   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26598     pluginlibs=
26599     enable_plugin=no
26600   fi
26601   LDFLAGS="$saved_LDFLAGS"
26602   CFLAGS="$saved_CFLAGS"
26603
26604   # If plugin support had been requested but not available, fail.
26605   if test x"$enable_plugin" = x"no" ; then
26606     if test x"$default_plugin" != x"yes"; then
26607       as_fn_error "
26608 Building GCC with plugin support requires a host that supports
26609 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26610     fi
26611   fi
26612 fi
26613
26614
26615
26616 if test x"$enable_plugin" = x"yes"; then
26617
26618 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26619
26620 fi
26621
26622
26623 # Check whether --enable-libquadmath-support was given.
26624 if test "${enable_libquadmath_support+set}" = set; then :
26625   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26626 else
26627   ENABLE_LIBQUADMATH_SUPPORT=yes
26628 fi
26629
26630 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26631
26632 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26633
26634 fi
26635
26636
26637 # Specify what hash style to use by default.
26638
26639 # Check whether --with-linker-hash-style was given.
26640 if test "${with_linker_hash_style+set}" = set; then :
26641   withval=$with_linker_hash_style; case x"$withval" in
26642    xsysv)
26643      LINKER_HASH_STYLE=sysv
26644      ;;
26645    xgnu)
26646      LINKER_HASH_STYLE=gnu
26647      ;;
26648    xboth)
26649      LINKER_HASH_STYLE=both
26650      ;;
26651    *)
26652      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26653      ;;
26654  esac
26655 else
26656   LINKER_HASH_STYLE=''
26657 fi
26658
26659 if test x"${LINKER_HASH_STYLE}" != x; then
26660
26661 cat >>confdefs.h <<_ACEOF
26662 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26663 _ACEOF
26664
26665 fi
26666
26667 # Configure the subdirectories
26668 # AC_CONFIG_SUBDIRS($subdirs)
26669
26670 # Create the Makefile
26671 # and configure language subdirectories
26672 ac_config_files="$ac_config_files $all_outputs"
26673
26674
26675 ac_config_commands="$ac_config_commands default"
26676
26677 cat >confcache <<\_ACEOF
26678 # This file is a shell script that caches the results of configure
26679 # tests run on this system so they can be shared between configure
26680 # scripts and configure runs, see configure's option --config-cache.
26681 # It is not useful on other systems.  If it contains results you don't
26682 # want to keep, you may remove or edit it.
26683 #
26684 # config.status only pays attention to the cache file if you give it
26685 # the --recheck option to rerun configure.
26686 #
26687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26689 # following values.
26690
26691 _ACEOF
26692
26693 # The following way of writing the cache mishandles newlines in values,
26694 # but we know of no workaround that is simple, portable, and efficient.
26695 # So, we kill variables containing newlines.
26696 # Ultrix sh set writes to stderr and can't be redirected directly,
26697 # and sets the high bit in the cache file unless we assign to the vars.
26698 (
26699   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26700     eval ac_val=\$$ac_var
26701     case $ac_val in #(
26702     *${as_nl}*)
26703       case $ac_var in #(
26704       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26706       esac
26707       case $ac_var in #(
26708       _ | IFS | as_nl) ;; #(
26709       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26710       *) { eval $ac_var=; unset $ac_var;} ;;
26711       esac ;;
26712     esac
26713   done
26714
26715   (set) 2>&1 |
26716     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26717     *${as_nl}ac_space=\ *)
26718       # `set' does not quote correctly, so add quotes: double-quote
26719       # substitution turns \\\\ into \\, and sed turns \\ into \.
26720       sed -n \
26721         "s/'/'\\\\''/g;
26722           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26723       ;; #(
26724     *)
26725       # `set' quotes correctly as required by POSIX, so do not add quotes.
26726       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26727       ;;
26728     esac |
26729     sort
26730 ) |
26731   sed '
26732      /^ac_cv_env_/b end
26733      t clear
26734      :clear
26735      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26736      t end
26737      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26738      :end' >>confcache
26739 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26740   if test -w "$cache_file"; then
26741     test "x$cache_file" != "x/dev/null" &&
26742       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26743 $as_echo "$as_me: updating cache $cache_file" >&6;}
26744     cat confcache >$cache_file
26745   else
26746     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26747 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26748   fi
26749 fi
26750 rm -f confcache
26751
26752 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26753 # Let make expand exec_prefix.
26754 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26755
26756 DEFS=-DHAVE_CONFIG_H
26757
26758 ac_libobjs=
26759 ac_ltlibobjs=
26760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26761   # 1. Remove the extension, and $U if already installed.
26762   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26763   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26764   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26765   #    will be set to the directory where LIBOBJS objects are built.
26766   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26767   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26768 done
26769 LIBOBJS=$ac_libobjs
26770
26771 LTLIBOBJS=$ac_ltlibobjs
26772
26773
26774
26775
26776 : ${CONFIG_STATUS=./config.status}
26777 ac_write_fail=0
26778 ac_clean_files_save=$ac_clean_files
26779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26781 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26782 as_write_fail=0
26783 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26784 #! $SHELL
26785 # Generated by $as_me.
26786 # Run this file to recreate the current configuration.
26787 # Compiler output produced by configure, useful for debugging
26788 # configure, is in config.log if it exists.
26789
26790 debug=false
26791 ac_cs_recheck=false
26792 ac_cs_silent=false
26793
26794 SHELL=\${CONFIG_SHELL-$SHELL}
26795 export SHELL
26796 _ASEOF
26797 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26798 ## -------------------- ##
26799 ## M4sh Initialization. ##
26800 ## -------------------- ##
26801
26802 # Be more Bourne compatible
26803 DUALCASE=1; export DUALCASE # for MKS sh
26804 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26805   emulate sh
26806   NULLCMD=:
26807   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26808   # is contrary to our usage.  Disable this feature.
26809   alias -g '${1+"$@"}'='"$@"'
26810   setopt NO_GLOB_SUBST
26811 else
26812   case `(set -o) 2>/dev/null` in #(
26813   *posix*) :
26814     set -o posix ;; #(
26815   *) :
26816      ;;
26817 esac
26818 fi
26819
26820
26821 as_nl='
26822 '
26823 export as_nl
26824 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26825 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26828 # Prefer a ksh shell builtin over an external printf program on Solaris,
26829 # but without wasting forks for bash or zsh.
26830 if test -z "$BASH_VERSION$ZSH_VERSION" \
26831     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26832   as_echo='print -r --'
26833   as_echo_n='print -rn --'
26834 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26835   as_echo='printf %s\n'
26836   as_echo_n='printf %s'
26837 else
26838   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26839     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26840     as_echo_n='/usr/ucb/echo -n'
26841   else
26842     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26843     as_echo_n_body='eval
26844       arg=$1;
26845       case $arg in #(
26846       *"$as_nl"*)
26847         expr "X$arg" : "X\\(.*\\)$as_nl";
26848         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26849       esac;
26850       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26851     '
26852     export as_echo_n_body
26853     as_echo_n='sh -c $as_echo_n_body as_echo'
26854   fi
26855   export as_echo_body
26856   as_echo='sh -c $as_echo_body as_echo'
26857 fi
26858
26859 # The user is always right.
26860 if test "${PATH_SEPARATOR+set}" != set; then
26861   PATH_SEPARATOR=:
26862   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26863     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26864       PATH_SEPARATOR=';'
26865   }
26866 fi
26867
26868
26869 # IFS
26870 # We need space, tab and new line, in precisely that order.  Quoting is
26871 # there to prevent editors from complaining about space-tab.
26872 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26873 # splitting by setting IFS to empty value.)
26874 IFS=" ""        $as_nl"
26875
26876 # Find who we are.  Look in the path if we contain no directory separator.
26877 case $0 in #((
26878   *[\\/]* ) as_myself=$0 ;;
26879   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26880 for as_dir in $PATH
26881 do
26882   IFS=$as_save_IFS
26883   test -z "$as_dir" && as_dir=.
26884     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26885   done
26886 IFS=$as_save_IFS
26887
26888      ;;
26889 esac
26890 # We did not find ourselves, most probably we were run as `sh COMMAND'
26891 # in which case we are not to be found in the path.
26892 if test "x$as_myself" = x; then
26893   as_myself=$0
26894 fi
26895 if test ! -f "$as_myself"; then
26896   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26897   exit 1
26898 fi
26899
26900 # Unset variables that we do not need and which cause bugs (e.g. in
26901 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26902 # suppresses any "Segmentation fault" message there.  '((' could
26903 # trigger a bug in pdksh 5.2.14.
26904 for as_var in BASH_ENV ENV MAIL MAILPATH
26905 do eval test x\${$as_var+set} = xset \
26906   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26907 done
26908 PS1='$ '
26909 PS2='> '
26910 PS4='+ '
26911
26912 # NLS nuisances.
26913 LC_ALL=C
26914 export LC_ALL
26915 LANGUAGE=C
26916 export LANGUAGE
26917
26918 # CDPATH.
26919 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26920
26921
26922 # as_fn_error ERROR [LINENO LOG_FD]
26923 # ---------------------------------
26924 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26925 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26926 # script with status $?, using 1 if that was 0.
26927 as_fn_error ()
26928 {
26929   as_status=$?; test $as_status -eq 0 && as_status=1
26930   if test "$3"; then
26931     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26932     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26933   fi
26934   $as_echo "$as_me: error: $1" >&2
26935   as_fn_exit $as_status
26936 } # as_fn_error
26937
26938
26939 # as_fn_set_status STATUS
26940 # -----------------------
26941 # Set $? to STATUS, without forking.
26942 as_fn_set_status ()
26943 {
26944   return $1
26945 } # as_fn_set_status
26946
26947 # as_fn_exit STATUS
26948 # -----------------
26949 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26950 as_fn_exit ()
26951 {
26952   set +e
26953   as_fn_set_status $1
26954   exit $1
26955 } # as_fn_exit
26956
26957 # as_fn_unset VAR
26958 # ---------------
26959 # Portably unset VAR.
26960 as_fn_unset ()
26961 {
26962   { eval $1=; unset $1;}
26963 }
26964 as_unset=as_fn_unset
26965 # as_fn_append VAR VALUE
26966 # ----------------------
26967 # Append the text in VALUE to the end of the definition contained in VAR. Take
26968 # advantage of any shell optimizations that allow amortized linear growth over
26969 # repeated appends, instead of the typical quadratic growth present in naive
26970 # implementations.
26971 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26972   eval 'as_fn_append ()
26973   {
26974     eval $1+=\$2
26975   }'
26976 else
26977   as_fn_append ()
26978   {
26979     eval $1=\$$1\$2
26980   }
26981 fi # as_fn_append
26982
26983 # as_fn_arith ARG...
26984 # ------------------
26985 # Perform arithmetic evaluation on the ARGs, and store the result in the
26986 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26987 # must be portable across $(()) and expr.
26988 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26989   eval 'as_fn_arith ()
26990   {
26991     as_val=$(( $* ))
26992   }'
26993 else
26994   as_fn_arith ()
26995   {
26996     as_val=`expr "$@" || test $? -eq 1`
26997   }
26998 fi # as_fn_arith
26999
27000
27001 if expr a : '\(a\)' >/dev/null 2>&1 &&
27002    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27003   as_expr=expr
27004 else
27005   as_expr=false
27006 fi
27007
27008 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27009   as_basename=basename
27010 else
27011   as_basename=false
27012 fi
27013
27014 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27015   as_dirname=dirname
27016 else
27017   as_dirname=false
27018 fi
27019
27020 as_me=`$as_basename -- "$0" ||
27021 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27022          X"$0" : 'X\(//\)$' \| \
27023          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27024 $as_echo X/"$0" |
27025     sed '/^.*\/\([^/][^/]*\)\/*$/{
27026             s//\1/
27027             q
27028           }
27029           /^X\/\(\/\/\)$/{
27030             s//\1/
27031             q
27032           }
27033           /^X\/\(\/\).*/{
27034             s//\1/
27035             q
27036           }
27037           s/.*/./; q'`
27038
27039 # Avoid depending upon Character Ranges.
27040 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27041 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27042 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27043 as_cr_digits='0123456789'
27044 as_cr_alnum=$as_cr_Letters$as_cr_digits
27045
27046 ECHO_C= ECHO_N= ECHO_T=
27047 case `echo -n x` in #(((((
27048 -n*)
27049   case `echo 'xy\c'` in
27050   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27051   xy)  ECHO_C='\c';;
27052   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27053        ECHO_T=' ';;
27054   esac;;
27055 *)
27056   ECHO_N='-n';;
27057 esac
27058
27059 rm -f conf$$ conf$$.exe conf$$.file
27060 if test -d conf$$.dir; then
27061   rm -f conf$$.dir/conf$$.file
27062 else
27063   rm -f conf$$.dir
27064   mkdir conf$$.dir 2>/dev/null
27065 fi
27066 if (echo >conf$$.file) 2>/dev/null; then
27067   if ln -s conf$$.file conf$$ 2>/dev/null; then
27068     as_ln_s='ln -s'
27069     # ... but there are two gotchas:
27070     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27071     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27072     # In both cases, we have to default to `cp -p'.
27073     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27074       as_ln_s='cp -p'
27075   elif ln conf$$.file conf$$ 2>/dev/null; then
27076     as_ln_s=ln
27077   else
27078     as_ln_s='cp -p'
27079   fi
27080 else
27081   as_ln_s='cp -p'
27082 fi
27083 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27084 rmdir conf$$.dir 2>/dev/null
27085
27086
27087 # as_fn_mkdir_p
27088 # -------------
27089 # Create "$as_dir" as a directory, including parents if necessary.
27090 as_fn_mkdir_p ()
27091 {
27092
27093   case $as_dir in #(
27094   -*) as_dir=./$as_dir;;
27095   esac
27096   test -d "$as_dir" || eval $as_mkdir_p || {
27097     as_dirs=
27098     while :; do
27099       case $as_dir in #(
27100       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27101       *) as_qdir=$as_dir;;
27102       esac
27103       as_dirs="'$as_qdir' $as_dirs"
27104       as_dir=`$as_dirname -- "$as_dir" ||
27105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27106          X"$as_dir" : 'X\(//\)[^/]' \| \
27107          X"$as_dir" : 'X\(//\)$' \| \
27108          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27109 $as_echo X"$as_dir" |
27110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27111             s//\1/
27112             q
27113           }
27114           /^X\(\/\/\)[^/].*/{
27115             s//\1/
27116             q
27117           }
27118           /^X\(\/\/\)$/{
27119             s//\1/
27120             q
27121           }
27122           /^X\(\/\).*/{
27123             s//\1/
27124             q
27125           }
27126           s/.*/./; q'`
27127       test -d "$as_dir" && break
27128     done
27129     test -z "$as_dirs" || eval "mkdir $as_dirs"
27130   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27131
27132
27133 } # as_fn_mkdir_p
27134 if mkdir -p . 2>/dev/null; then
27135   as_mkdir_p='mkdir -p "$as_dir"'
27136 else
27137   test -d ./-p && rmdir ./-p
27138   as_mkdir_p=false
27139 fi
27140
27141 if test -x / >/dev/null 2>&1; then
27142   as_test_x='test -x'
27143 else
27144   if ls -dL / >/dev/null 2>&1; then
27145     as_ls_L_option=L
27146   else
27147     as_ls_L_option=
27148   fi
27149   as_test_x='
27150     eval sh -c '\''
27151       if test -d "$1"; then
27152         test -d "$1/.";
27153       else
27154         case $1 in #(
27155         -*)set "./$1";;
27156         esac;
27157         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27158         ???[sx]*):;;*)false;;esac;fi
27159     '\'' sh
27160   '
27161 fi
27162 as_executable_p=$as_test_x
27163
27164 # Sed expression to map a string onto a valid CPP name.
27165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27166
27167 # Sed expression to map a string onto a valid variable name.
27168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27169
27170
27171 exec 6>&1
27172 ## ----------------------------------- ##
27173 ## Main body of $CONFIG_STATUS script. ##
27174 ## ----------------------------------- ##
27175 _ASEOF
27176 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27177
27178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27179 # Save the log message, to keep $0 and so on meaningful, and to
27180 # report actual input values of CONFIG_FILES etc. instead of their
27181 # values after options handling.
27182 ac_log="
27183 This file was extended by $as_me, which was
27184 generated by GNU Autoconf 2.64.  Invocation command line was
27185
27186   CONFIG_FILES    = $CONFIG_FILES
27187   CONFIG_HEADERS  = $CONFIG_HEADERS
27188   CONFIG_LINKS    = $CONFIG_LINKS
27189   CONFIG_COMMANDS = $CONFIG_COMMANDS
27190   $ $0 $@
27191
27192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27193 "
27194
27195 _ACEOF
27196
27197 case $ac_config_files in *"
27198 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27199 esac
27200
27201 case $ac_config_headers in *"
27202 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27203 esac
27204
27205
27206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27207 # Files that config.status was made for.
27208 config_files="$ac_config_files"
27209 config_headers="$ac_config_headers"
27210 config_commands="$ac_config_commands"
27211
27212 _ACEOF
27213
27214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27215 ac_cs_usage="\
27216 \`$as_me' instantiates files and other configuration actions
27217 from templates according to the current configuration.  Unless the files
27218 and actions are specified as TAGs, all are instantiated by default.
27219
27220 Usage: $0 [OPTION]... [TAG]...
27221
27222   -h, --help       print this help, then exit
27223   -V, --version    print version number and configuration settings, then exit
27224   -q, --quiet, --silent
27225                    do not print progress messages
27226   -d, --debug      don't remove temporary files
27227       --recheck    update $as_me by reconfiguring in the same conditions
27228       --file=FILE[:TEMPLATE]
27229                    instantiate the configuration file FILE
27230       --header=FILE[:TEMPLATE]
27231                    instantiate the configuration header FILE
27232
27233 Configuration files:
27234 $config_files
27235
27236 Configuration headers:
27237 $config_headers
27238
27239 Configuration commands:
27240 $config_commands
27241
27242 Report bugs to the package provider."
27243
27244 _ACEOF
27245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27246 ac_cs_version="\\
27247 config.status
27248 configured by $0, generated by GNU Autoconf 2.64,
27249   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27250
27251 Copyright (C) 2009 Free Software Foundation, Inc.
27252 This config.status script is free software; the Free Software Foundation
27253 gives unlimited permission to copy, distribute and modify it."
27254
27255 ac_pwd='$ac_pwd'
27256 srcdir='$srcdir'
27257 AWK='$AWK'
27258 test -n "\$AWK" || AWK=awk
27259 _ACEOF
27260
27261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27262 # The default lists apply if the user does not specify any file.
27263 ac_need_defaults=:
27264 while test $# != 0
27265 do
27266   case $1 in
27267   --*=*)
27268     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27269     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27270     ac_shift=:
27271     ;;
27272   *)
27273     ac_option=$1
27274     ac_optarg=$2
27275     ac_shift=shift
27276     ;;
27277   esac
27278
27279   case $ac_option in
27280   # Handling of the options.
27281   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27282     ac_cs_recheck=: ;;
27283   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27284     $as_echo "$ac_cs_version"; exit ;;
27285   --debug | --debu | --deb | --de | --d | -d )
27286     debug=: ;;
27287   --file | --fil | --fi | --f )
27288     $ac_shift
27289     case $ac_optarg in
27290     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27291     esac
27292     as_fn_append CONFIG_FILES " '$ac_optarg'"
27293     ac_need_defaults=false;;
27294   --header | --heade | --head | --hea )
27295     $ac_shift
27296     case $ac_optarg in
27297     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27298     esac
27299     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27300     ac_need_defaults=false;;
27301   --he | --h)
27302     # Conflict between --help and --header
27303     as_fn_error "ambiguous option: \`$1'
27304 Try \`$0 --help' for more information.";;
27305   --help | --hel | -h )
27306     $as_echo "$ac_cs_usage"; exit ;;
27307   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27308   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27309     ac_cs_silent=: ;;
27310
27311   # This is an error.
27312   -*) as_fn_error "unrecognized option: \`$1'
27313 Try \`$0 --help' for more information." ;;
27314
27315   *) as_fn_append ac_config_targets " $1"
27316      ac_need_defaults=false ;;
27317
27318   esac
27319   shift
27320 done
27321
27322 ac_configure_extra_args=
27323
27324 if $ac_cs_silent; then
27325   exec 6>/dev/null
27326   ac_configure_extra_args="$ac_configure_extra_args --silent"
27327 fi
27328
27329 _ACEOF
27330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27331 if \$ac_cs_recheck; then
27332   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27333   shift
27334   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27335   CONFIG_SHELL='$SHELL'
27336   export CONFIG_SHELL
27337   exec "\$@"
27338 fi
27339
27340 _ACEOF
27341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27342 exec 5>>config.log
27343 {
27344   echo
27345   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27346 ## Running $as_me. ##
27347 _ASBOX
27348   $as_echo "$ac_log"
27349 } >&5
27350
27351 _ACEOF
27352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27353 #
27354 # INIT-COMMANDS
27355 #
27356 subdirs='$subdirs'
27357
27358 _ACEOF
27359
27360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27361
27362 # Handling of arguments.
27363 for ac_config_target in $ac_config_targets
27364 do
27365   case $ac_config_target in
27366     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27367     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27368     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27369     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27370     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27371     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27372
27373   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27374   esac
27375 done
27376
27377
27378 # If the user did not use the arguments to specify the items to instantiate,
27379 # then the envvar interface is used.  Set only those that are not.
27380 # We use the long form for the default assignment because of an extremely
27381 # bizarre bug on SunOS 4.1.3.
27382 if $ac_need_defaults; then
27383   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27384   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27385   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27386 fi
27387
27388 # Have a temporary directory for convenience.  Make it in the build tree
27389 # simply because there is no reason against having it here, and in addition,
27390 # creating and moving files from /tmp can sometimes cause problems.
27391 # Hook for its removal unless debugging.
27392 # Note that there is a small window in which the directory will not be cleaned:
27393 # after its creation but before its name has been assigned to `$tmp'.
27394 $debug ||
27395 {
27396   tmp=
27397   trap 'exit_status=$?
27398   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27399 ' 0
27400   trap 'as_fn_exit 1' 1 2 13 15
27401 }
27402 # Create a (secure) tmp directory for tmp files.
27403
27404 {
27405   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27406   test -n "$tmp" && test -d "$tmp"
27407 }  ||
27408 {
27409   tmp=./conf$$-$RANDOM
27410   (umask 077 && mkdir "$tmp")
27411 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27412
27413 # Set up the scripts for CONFIG_FILES section.
27414 # No need to generate them if there are no CONFIG_FILES.
27415 # This happens for instance with `./config.status config.h'.
27416 if test -n "$CONFIG_FILES"; then
27417
27418 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27419   ac_cs_awk_getline=:
27420   ac_cs_awk_pipe_init=
27421   ac_cs_awk_read_file='
27422       while ((getline aline < (F[key])) > 0)
27423         print(aline)
27424       close(F[key])'
27425   ac_cs_awk_pipe_fini=
27426 else
27427   ac_cs_awk_getline=false
27428   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27429   ac_cs_awk_read_file='
27430       print "|#_!!_#|"
27431       print "cat " F[key] " &&"
27432       '$ac_cs_awk_pipe_init
27433   # The final `:' finishes the AND list.
27434   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27435 fi
27436 ac_cr=`echo X | tr X '\015'`
27437 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27438 # But we know of no other shell where ac_cr would be empty at this
27439 # point, so we can use a bashism as a fallback.
27440 if test "x$ac_cr" = x; then
27441   eval ac_cr=\$\'\\r\'
27442 fi
27443 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27444 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27445   ac_cs_awk_cr='\r'
27446 else
27447   ac_cs_awk_cr=$ac_cr
27448 fi
27449
27450 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27451 _ACEOF
27452
27453 # Create commands to substitute file output variables.
27454 {
27455   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27456   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27457   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27458   echo "_ACAWK" &&
27459   echo "_ACEOF"
27460 } >conf$$files.sh &&
27461 . ./conf$$files.sh ||
27462   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27463 rm -f conf$$files.sh
27464
27465 {
27466   echo "cat >conf$$subs.awk <<_ACEOF" &&
27467   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27468   echo "_ACEOF"
27469 } >conf$$subs.sh ||
27470   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27471 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27472 ac_delim='%!_!# '
27473 for ac_last_try in false false false false false :; do
27474   . ./conf$$subs.sh ||
27475     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27476
27477   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27478   if test $ac_delim_n = $ac_delim_num; then
27479     break
27480   elif $ac_last_try; then
27481     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27482   else
27483     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27484   fi
27485 done
27486 rm -f conf$$subs.sh
27487
27488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27489 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27490 _ACEOF
27491 sed -n '
27492 h
27493 s/^/S["/; s/!.*/"]=/
27494 p
27495 g
27496 s/^[^!]*!//
27497 :repl
27498 t repl
27499 s/'"$ac_delim"'$//
27500 t delim
27501 :nl
27502 h
27503 s/\(.\{148\}\).*/\1/
27504 t more1
27505 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27506 p
27507 n
27508 b repl
27509 :more1
27510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27511 p
27512 g
27513 s/.\{148\}//
27514 t nl
27515 :delim
27516 h
27517 s/\(.\{148\}\).*/\1/
27518 t more2
27519 s/["\\]/\\&/g; s/^/"/; s/$/"/
27520 p
27521 b
27522 :more2
27523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27524 p
27525 g
27526 s/.\{148\}//
27527 t delim
27528 ' <conf$$subs.awk | sed '
27529 /^[^""]/{
27530   N
27531   s/\n//
27532 }
27533 ' >>$CONFIG_STATUS || ac_write_fail=1
27534 rm -f conf$$subs.awk
27535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27536 _ACAWK
27537 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27538   for (key in S) S_is_set[key] = 1
27539   FS = "\a"
27540   \$ac_cs_awk_pipe_init
27541 }
27542 {
27543   line = $ 0
27544   nfields = split(line, field, "@")
27545   substed = 0
27546   len = length(field[1])
27547   for (i = 2; i < nfields; i++) {
27548     key = field[i]
27549     keylen = length(key)
27550     if (S_is_set[key]) {
27551       value = S[key]
27552       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27553       len += length(value) + length(field[++i])
27554       substed = 1
27555     } else
27556       len += 1 + keylen
27557   }
27558   if (nfields == 3 && !substed) {
27559     key = field[2]
27560     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27561       \$ac_cs_awk_read_file
27562       next
27563     }
27564   }
27565   print line
27566 }
27567 \$ac_cs_awk_pipe_fini
27568 _ACAWK
27569 _ACEOF
27570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27571 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27572   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27573 else
27574   cat
27575 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27576   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27577 _ACEOF
27578
27579 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27580 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27581 # trailing colons and then remove the whole line if VPATH becomes empty
27582 # (actually we leave an empty line to preserve line numbers).
27583 if test "x$srcdir" = x.; then
27584   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27585 s/:*\$(srcdir):*/:/
27586 s/:*\${srcdir}:*/:/
27587 s/:*@srcdir@:*/:/
27588 s/^\([^=]*=[     ]*\):*/\1/
27589 s/:*$//
27590 s/^[^=]*=[       ]*$//
27591 }'
27592 fi
27593
27594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27595 fi # test -n "$CONFIG_FILES"
27596
27597 # Set up the scripts for CONFIG_HEADERS section.
27598 # No need to generate them if there are no CONFIG_HEADERS.
27599 # This happens for instance with `./config.status Makefile'.
27600 if test -n "$CONFIG_HEADERS"; then
27601 cat >"$tmp/defines.awk" <<\_ACAWK ||
27602 BEGIN {
27603 _ACEOF
27604
27605 # Transform confdefs.h into an awk script `defines.awk', embedded as
27606 # here-document in config.status, that substitutes the proper values into
27607 # config.h.in to produce config.h.
27608
27609 # Create a delimiter string that does not exist in confdefs.h, to ease
27610 # handling of long lines.
27611 ac_delim='%!_!# '
27612 for ac_last_try in false false :; do
27613   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27614   if test -z "$ac_t"; then
27615     break
27616   elif $ac_last_try; then
27617     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27618   else
27619     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27620   fi
27621 done
27622
27623 # For the awk script, D is an array of macro values keyed by name,
27624 # likewise P contains macro parameters if any.  Preserve backslash
27625 # newline sequences.
27626
27627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27628 sed -n '
27629 s/.\{148\}/&'"$ac_delim"'/g
27630 t rset
27631 :rset
27632 s/^[     ]*#[    ]*define[       ][      ]*/ /
27633 t def
27634 d
27635 :def
27636 s/\\$//
27637 t bsnl
27638 s/["\\]/\\&/g
27639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27640 D["\1"]=" \3"/p
27641 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27642 d
27643 :bsnl
27644 s/["\\]/\\&/g
27645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27646 D["\1"]=" \3\\\\\\n"\\/p
27647 t cont
27648 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27649 t cont
27650 d
27651 :cont
27652 n
27653 s/.\{148\}/&'"$ac_delim"'/g
27654 t clear
27655 :clear
27656 s/\\$//
27657 t bsnlc
27658 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27659 d
27660 :bsnlc
27661 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27662 b cont
27663 ' <confdefs.h | sed '
27664 s/'"$ac_delim"'/"\\\
27665 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27666
27667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27668   for (key in D) D_is_set[key] = 1
27669   FS = "\a"
27670 }
27671 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27672   line = \$ 0
27673   split(line, arg, " ")
27674   if (arg[1] == "#") {
27675     defundef = arg[2]
27676     mac1 = arg[3]
27677   } else {
27678     defundef = substr(arg[1], 2)
27679     mac1 = arg[2]
27680   }
27681   split(mac1, mac2, "(") #)
27682   macro = mac2[1]
27683   prefix = substr(line, 1, index(line, defundef) - 1)
27684   if (D_is_set[macro]) {
27685     # Preserve the white space surrounding the "#".
27686     print prefix "define", macro P[macro] D[macro]
27687     next
27688   } else {
27689     # Replace #undef with comments.  This is necessary, for example,
27690     # in the case of _POSIX_SOURCE, which is predefined and required
27691     # on some systems where configure will not decide to define it.
27692     if (defundef == "undef") {
27693       print "/*", prefix defundef, macro, "*/"
27694       next
27695     }
27696   }
27697 }
27698 { print }
27699 _ACAWK
27700 _ACEOF
27701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27702   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27703 fi # test -n "$CONFIG_HEADERS"
27704
27705
27706 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27707 shift
27708 for ac_tag
27709 do
27710   case $ac_tag in
27711   :[FHLC]) ac_mode=$ac_tag; continue;;
27712   esac
27713   case $ac_mode$ac_tag in
27714   :[FHL]*:*);;
27715   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27716   :[FH]-) ac_tag=-:-;;
27717   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27718   esac
27719   ac_save_IFS=$IFS
27720   IFS=:
27721   set x $ac_tag
27722   IFS=$ac_save_IFS
27723   shift
27724   ac_file=$1
27725   shift
27726
27727   case $ac_mode in
27728   :L) ac_source=$1;;
27729   :[FH])
27730     ac_file_inputs=
27731     for ac_f
27732     do
27733       case $ac_f in
27734       -) ac_f="$tmp/stdin";;
27735       *) # Look for the file first in the build tree, then in the source tree
27736          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27737          # because $ac_f cannot contain `:'.
27738          test -f "$ac_f" ||
27739            case $ac_f in
27740            [\\/$]*) false;;
27741            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27742            esac ||
27743            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27744       esac
27745       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27746       as_fn_append ac_file_inputs " '$ac_f'"
27747     done
27748
27749     # Let's still pretend it is `configure' which instantiates (i.e., don't
27750     # use $as_me), people would be surprised to read:
27751     #    /* config.h.  Generated by config.status.  */
27752     configure_input='Generated from '`
27753           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27754         `' by configure.'
27755     if test x"$ac_file" != x-; then
27756       configure_input="$ac_file.  $configure_input"
27757       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27758 $as_echo "$as_me: creating $ac_file" >&6;}
27759     fi
27760     # Neutralize special characters interpreted by sed in replacement strings.
27761     case $configure_input in #(
27762     *\&* | *\|* | *\\* )
27763        ac_sed_conf_input=`$as_echo "$configure_input" |
27764        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27765     *) ac_sed_conf_input=$configure_input;;
27766     esac
27767
27768     case $ac_tag in
27769     *:-:* | *:-) cat >"$tmp/stdin" \
27770       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27771     esac
27772     ;;
27773   esac
27774
27775   ac_dir=`$as_dirname -- "$ac_file" ||
27776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27777          X"$ac_file" : 'X\(//\)[^/]' \| \
27778          X"$ac_file" : 'X\(//\)$' \| \
27779          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27780 $as_echo X"$ac_file" |
27781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27782             s//\1/
27783             q
27784           }
27785           /^X\(\/\/\)[^/].*/{
27786             s//\1/
27787             q
27788           }
27789           /^X\(\/\/\)$/{
27790             s//\1/
27791             q
27792           }
27793           /^X\(\/\).*/{
27794             s//\1/
27795             q
27796           }
27797           s/.*/./; q'`
27798   as_dir="$ac_dir"; as_fn_mkdir_p
27799   ac_builddir=.
27800
27801 case "$ac_dir" in
27802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27803 *)
27804   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27805   # A ".." for each directory in $ac_dir_suffix.
27806   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27807   case $ac_top_builddir_sub in
27808   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27809   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27810   esac ;;
27811 esac
27812 ac_abs_top_builddir=$ac_pwd
27813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27814 # for backward compatibility:
27815 ac_top_builddir=$ac_top_build_prefix
27816
27817 case $srcdir in
27818   .)  # We are building in place.
27819     ac_srcdir=.
27820     ac_top_srcdir=$ac_top_builddir_sub
27821     ac_abs_top_srcdir=$ac_pwd ;;
27822   [\\/]* | ?:[\\/]* )  # Absolute name.
27823     ac_srcdir=$srcdir$ac_dir_suffix;
27824     ac_top_srcdir=$srcdir
27825     ac_abs_top_srcdir=$srcdir ;;
27826   *) # Relative name.
27827     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27828     ac_top_srcdir=$ac_top_build_prefix$srcdir
27829     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27830 esac
27831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27832
27833
27834   case $ac_mode in
27835   :F)
27836   #
27837   # CONFIG_FILE
27838   #
27839
27840 _ACEOF
27841
27842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27843 # If the template does not know about datarootdir, expand it.
27844 # FIXME: This hack should be removed a few years after 2.60.
27845 ac_datarootdir_hack=; ac_datarootdir_seen=
27846 ac_sed_dataroot='
27847 /datarootdir/ {
27848   p
27849   q
27850 }
27851 /@datadir@/p
27852 /@docdir@/p
27853 /@infodir@/p
27854 /@localedir@/p
27855 /@mandir@/p'
27856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27857 *datarootdir*) ac_datarootdir_seen=yes;;
27858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27859   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27860 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27861 _ACEOF
27862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27863   ac_datarootdir_hack='
27864   s&@datadir@&$datadir&g
27865   s&@docdir@&$docdir&g
27866   s&@infodir@&$infodir&g
27867   s&@localedir@&$localedir&g
27868   s&@mandir@&$mandir&g
27869   s&\\\${datarootdir}&$datarootdir&g' ;;
27870 esac
27871 _ACEOF
27872
27873 # Neutralize VPATH when `$srcdir' = `.'.
27874 # Shell code in configure.ac might set extrasub.
27875 # FIXME: do we really want to maintain this feature?
27876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27877 ac_sed_extra="$ac_vpsub
27878 $extrasub
27879 _ACEOF
27880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27881 :t
27882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27883 s|@configure_input@|$ac_sed_conf_input|;t t
27884 s&@top_builddir@&$ac_top_builddir_sub&;t t
27885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27886 s&@srcdir@&$ac_srcdir&;t t
27887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27888 s&@top_srcdir@&$ac_top_srcdir&;t t
27889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27890 s&@builddir@&$ac_builddir&;t t
27891 s&@abs_builddir@&$ac_abs_builddir&;t t
27892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27893 $ac_datarootdir_hack
27894 "
27895 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27896 if $ac_cs_awk_getline; then
27897   $AWK -f "$tmp/subs.awk"
27898 else
27899   $AWK -f "$tmp/subs.awk" | $SHELL
27900 fi >$tmp/out \
27901   || as_fn_error "could not create $ac_file" "$LINENO" 5
27902
27903 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27904   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27905   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27906   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27907 which seems to be undefined.  Please make sure it is defined." >&5
27908 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27909 which seems to be undefined.  Please make sure it is defined." >&2;}
27910
27911   rm -f "$tmp/stdin"
27912   case $ac_file in
27913   -) cat "$tmp/out" && rm -f "$tmp/out";;
27914   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27915   esac \
27916   || as_fn_error "could not create $ac_file" "$LINENO" 5
27917  ;;
27918   :H)
27919   #
27920   # CONFIG_HEADER
27921   #
27922   if test x"$ac_file" != x-; then
27923     {
27924       $as_echo "/* $configure_input  */" \
27925       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27926     } >"$tmp/config.h" \
27927       || as_fn_error "could not create $ac_file" "$LINENO" 5
27928     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27929       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27930 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27931     else
27932       rm -f "$ac_file"
27933       mv "$tmp/config.h" "$ac_file" \
27934         || as_fn_error "could not create $ac_file" "$LINENO" 5
27935     fi
27936   else
27937     $as_echo "/* $configure_input  */" \
27938       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27939       || as_fn_error "could not create -" "$LINENO" 5
27940   fi
27941  ;;
27942
27943   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27944 $as_echo "$as_me: executing $ac_file commands" >&6;}
27945  ;;
27946   esac
27947
27948
27949   case $ac_file$ac_mode in
27950     "as":F) chmod +x as ;;
27951     "collect-ld":F) chmod +x collect-ld ;;
27952     "nm":F) chmod +x nm ;;
27953     "default":C)
27954 case ${CONFIG_HEADERS} in
27955   *auto-host.h:config.in*)
27956   echo > cstamp-h ;;
27957 esac
27958 # Make sure all the subdirs exist.
27959 for d in $subdirs doc build common c-family
27960 do
27961     test -d $d || mkdir $d
27962 done
27963  ;;
27964
27965   esac
27966 done # for ac_tag
27967
27968
27969 as_fn_exit 0
27970 _ACEOF
27971 ac_clean_files=$ac_clean_files_save
27972
27973 test $ac_write_fail = 0 ||
27974   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27975
27976
27977 # configure is writing to config.log, and then calls config.status.
27978 # config.status does its own redirection, appending to config.log.
27979 # Unfortunately, on DOS this fails, as config.log is still kept open
27980 # by configure, so config.status won't be able to write to it; its
27981 # output is simply discarded.  So we exec the FD to /dev/null,
27982 # effectively closing config.log, so it can be properly (re)opened and
27983 # appended to by config.status.  When coming back to configure, we
27984 # need to make the FD available again.
27985 if test "$no_create" != yes; then
27986   ac_cs_success=:
27987   ac_config_status_args=
27988   test "$silent" = yes &&
27989     ac_config_status_args="$ac_config_status_args --quiet"
27990   exec 5>/dev/null
27991   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27992   exec 5>>config.log
27993   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27994   # would make configure fail if this is the last instruction.
27995   $ac_cs_success || as_fn_exit $?
27996 fi
27997 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27998   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27999 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28000 fi
28001
28002