OSDN Git Service

PR target/9468
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 thread_file
625 out_object_file
626 out_file
627 objc_boehm_gc
628 md_file
629 local_prefix
630 lang_tree_files
631 lang_specs_files
632 lang_opt_files
633 install
634 out_host_hook_obj
635 host_xm_defines
636 host_xm_include_list
637 host_xm_file_list
638 host_exeext
639 gcc_gxx_include_dir
640 gcc_config_arguments
641 float_h_file
642 extra_programs
643 extra_passes
644 extra_parts
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 slibdir
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 GGC
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 CXXCPP
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 SED
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CFLAGS
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
712 ALL
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 gthread_flags
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 enable_shared
763 enable_fixed_point
764 enable_decimal_float
765 enable_multilib
766 ENABLE_BUILD_WITH_CXX
767 coverage_flags
768 valgrind_command
769 valgrind_path_defines
770 valgrind_path
771 TREEBROWSER
772 nocommon_flag
773 warn_cxxflags
774 warn_cflags
775 c_strict_warn
776 strict_warn
777 c_loose_warn
778 loose_warn
779 EGREP
780 GREP
781 CPP
782 OUTPUT_OPTION
783 NO_MINUS_C_MINUS_O
784 GNATMAKE
785 GNATBIND
786 ac_ct_CXX
787 CXXFLAGS
788 CXX
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 GENINSRC
797 target_subdir
798 host_subdir
799 build_subdir
800 build_libsubdir
801 target_noncanonical
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files='option_includes
853 language_hooks'
854 ac_user_opts='
855 enable_option_checking
856 with_build_libsubdir
857 with_local_prefix
858 with_gxx_include_dir
859 with_cpp_install_dir
860 enable_generated_files_in_srcdir
861 with_gnu_ld
862 with_ld
863 with_demangler_in_ld
864 with_gnu_as
865 with_as
866 enable_largefile
867 enable_werror_always
868 enable_checking
869 enable_coverage
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
872 with_stabs
873 enable_multilib
874 enable___cxa_atexit
875 enable_decimal_float
876 enable_fixed_point
877 enable_threads
878 enable_tls
879 enable_objc_gc
880 with_dwarf2
881 enable_shared
882 with_build_sysroot
883 with_sysroot
884 with_specs
885 with_pkgversion
886 with_bugurl
887 enable_languages
888 with_multilib_list
889 enable_rpath
890 with_libiconv_prefix
891 enable_initfini_array
892 enable_sjlj_exceptions
893 with_system_libunwind
894 enable_secureplt
895 enable_leading_mingw64_underscores
896 enable_cld
897 enable_frame_pointer
898 enable_win32_registry
899 enable_static
900 with_pic
901 enable_fast_install
902 enable_libtool_lock
903 with_plugin_ld
904 enable_gnu_indirect_function
905 enable_comdat
906 enable_gnu_unique_object
907 enable_linker_build_id
908 with_long_double_128
909 with_gc
910 with_system_zlib
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
913 with_slibdir
914 enable_plugin
915 '
916       ac_precious_vars='build_alias
917 host_alias
918 target_alias
919 CC
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
924 CXX
925 CXXFLAGS
926 CCC
927 CPP
928 CXXCPP
929 GMPLIBS
930 GMPINC
931 PPLLIBS
932 PPLINC
933 CLOOGLIBS
934 CLOOGINC'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
984
985 ac_prev=
986 ac_dashdash=
987 for ac_option
988 do
989   # If the previous option needs an argument, assign it.
990   if test -n "$ac_prev"; then
991     eval $ac_prev=\$ac_option
992     ac_prev=
993     continue
994   fi
995
996   case $ac_option in
997   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998   *)    ac_optarg=yes ;;
999   esac
1000
1001   # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003   case $ac_dashdash$ac_option in
1004   --)
1005     ac_dashdash=yes ;;
1006
1007   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008     ac_prev=bindir ;;
1009   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010     bindir=$ac_optarg ;;
1011
1012   -build | --build | --buil | --bui | --bu)
1013     ac_prev=build_alias ;;
1014   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015     build_alias=$ac_optarg ;;
1016
1017   -cache-file | --cache-file | --cache-fil | --cache-fi \
1018   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019     ac_prev=cache_file ;;
1020   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022     cache_file=$ac_optarg ;;
1023
1024   --config-cache | -C)
1025     cache_file=config.cache ;;
1026
1027   -datadir | --datadir | --datadi | --datad)
1028     ac_prev=datadir ;;
1029   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030     datadir=$ac_optarg ;;
1031
1032   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033   | --dataroo | --dataro | --datar)
1034     ac_prev=datarootdir ;;
1035   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037     datarootdir=$ac_optarg ;;
1038
1039   -disable-* | --disable-*)
1040     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043       as_fn_error "invalid feature name: $ac_useropt"
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=no ;;
1054
1055   -docdir | --docdir | --docdi | --doc | --do)
1056     ac_prev=docdir ;;
1057   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058     docdir=$ac_optarg ;;
1059
1060   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061     ac_prev=dvidir ;;
1062   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063     dvidir=$ac_optarg ;;
1064
1065   -enable-* | --enable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       as_fn_error "invalid feature name: $ac_useropt"
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273       as_fn_error "invalid package name: $ac_useropt"
1274     ac_useropt_orig=$ac_useropt
1275     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276     case $ac_user_opts in
1277       *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281          ac_unrecognized_sep=', ';;
1282     esac
1283     eval with_$ac_useropt=\$ac_optarg ;;
1284
1285   -without-* | --without-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       as_fn_error "invalid package name: $ac_useropt"
1290     ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293       *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=no ;;
1300
1301   --x)
1302     # Obsolete; use --with-x.
1303     with_x=yes ;;
1304
1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306   | --x-incl | --x-inc | --x-in | --x-i)
1307     ac_prev=x_includes ;;
1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310     x_includes=$ac_optarg ;;
1311
1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314     ac_prev=x_libraries ;;
1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317     x_libraries=$ac_optarg ;;
1318
1319   -*) as_fn_error "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1321     ;;
1322
1323   *=*)
1324     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325     # Reject names that are not valid shell variable names.
1326     case $ac_envvar in #(
1327       '' | [0-9]* | *[!_$as_cr_alnum]* )
1328       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329     esac
1330     eval $ac_envvar=\$ac_optarg
1331     export $ac_envvar ;;
1332
1333   *)
1334     # FIXME: should be removed in autoconf 3.0.
1335     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339     ;;
1340
1341   esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346   as_fn_error "missing argument to $ac_option"
1347 fi
1348
1349 if test -n "$ac_unrecognized_opts"; then
1350   case $enable_option_checking in
1351     no) ;;
1352     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354   esac
1355 fi
1356
1357 # Check all directory arguments for consistency.
1358 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                 datadir sysconfdir sharedstatedir localstatedir includedir \
1360                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                 libdir localedir mandir
1362 do
1363   eval ac_val=\$$ac_var
1364   # Remove trailing slashes.
1365   case $ac_val in
1366     */ )
1367       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368       eval $ac_var=\$ac_val;;
1369   esac
1370   # Be sure to have absolute directory names.
1371   case $ac_val in
1372     [\\/$]* | ?:[\\/]* )  continue;;
1373     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374   esac
1375   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1377
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1384
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387   if test "x$build_alias" = x; then
1388     cross_compiling=maybe
1389     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390     If a cross compiler is detected then cross compile mode will be used." >&2
1391   elif test "x$build_alias" != "x$host_alias"; then
1392     cross_compiling=yes
1393   fi
1394 fi
1395
1396 ac_tool_prefix=
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399 test "$silent" = yes && exec 6>/dev/null
1400
1401
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405   as_fn_error "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407   as_fn_error "pwd does not report name of working directory"
1408
1409
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412   ac_srcdir_defaulted=yes
1413   # Try the directory containing this script, then the parent directory.
1414   ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416          X"$as_myself" : 'X\(//\)[^/]' \| \
1417          X"$as_myself" : 'X\(//\)$' \| \
1418          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)[^/].*/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\).*/{
1433             s//\1/
1434             q
1435           }
1436           s/.*/./; q'`
1437   srcdir=$ac_confdir
1438   if test ! -r "$srcdir/$ac_unique_file"; then
1439     srcdir=..
1440   fi
1441 else
1442   ac_srcdir_defaulted=no
1443 fi
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447 fi
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451         pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454   srcdir=.
1455 fi
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_env_${ac_var}_value=\$${ac_var}
1465   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1468
1469 #
1470 # Report the --help message.
1471 #
1472 if test "$ac_init_help" = "long"; then
1473   # Omit some internal or obsolete options to make the list less imposing.
1474   # This message is too long to be a string in the A/UX 3.1 sh.
1475   cat <<_ACEOF
1476 \`configure' configures this package to adapt to many kinds of systems.
1477
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483 Defaults for the options are specified in brackets.
1484
1485 Configuration:
1486   -h, --help              display this help and exit
1487       --help=short        display options specific to this package
1488       --help=recursive    display the short help of all the included packages
1489   -V, --version           display version information and exit
1490   -q, --quiet, --silent   do not print \`checking...' messages
1491       --cache-file=FILE   cache test results in FILE [disabled]
1492   -C, --config-cache      alias for \`--cache-file=config.cache'
1493   -n, --no-create         do not create output files
1494       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496 Installation directories:
1497   --prefix=PREFIX         install architecture-independent files in PREFIX
1498                           [$ac_default_prefix]
1499   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                           [PREFIX]
1501
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1506
1507 For better control, use the options below.
1508
1509 Fine tuning of the installation directories:
1510   --bindir=DIR            user executables [EPREFIX/bin]
1511   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512   --libexecdir=DIR        program executables [EPREFIX/libexec]
1513   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516   --libdir=DIR            object code libraries [EPREFIX/lib]
1517   --includedir=DIR        C header files [PREFIX/include]
1518   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521   --infodir=DIR           info documentation [DATAROOTDIR/info]
1522   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523   --mandir=DIR            man documentation [DATAROOTDIR/man]
1524   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1525   --htmldir=DIR           html documentation [DOCDIR]
1526   --dvidir=DIR            dvi documentation [DOCDIR]
1527   --pdfdir=DIR            pdf documentation [DOCDIR]
1528   --psdir=DIR             ps documentation [DOCDIR]
1529 _ACEOF
1530
1531   cat <<\_ACEOF
1532
1533 Program names:
1534   --program-prefix=PREFIX            prepend PREFIX to installed program names
1535   --program-suffix=SUFFIX            append SUFFIX to installed program names
1536   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
1538 System types:
1539   --build=BUILD     configure for building on BUILD [guessed]
1540   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541   --target=TARGET   configure for building compilers for TARGET [HOST]
1542 _ACEOF
1543 fi
1544
1545 if test -n "$ac_init_help"; then
1546
1547   cat <<\_ACEOF
1548
1549 Optional Features:
1550   --disable-option-checking  ignore unrecognized --enable/--with options
1551   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1552   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1553   --enable-generated-files-in-srcdir
1554                           put copies of generated files in source dir
1555                           intended for creating source tarballs for users
1556                           without texinfo bison or flex.
1557   --disable-largefile     omit support for large files
1558   --enable-werror-always  enable -Werror despite compiler version
1559   --enable-checking=LIST
1560                           enable expensive run-time checks.  With LIST,
1561                           enable only specific categories of checks.
1562                           Categories are: yes,no,all,none,release.
1563                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1564                           rtlflag,rtl,runtime,tree,valgrind,types.
1565   --enable-coverage=LEVEL
1566                           enable compiler's code coverage collection.
1567                           Use to measure compiler performance and locate
1568                           unused parts of the compiler. With LEVEL, specify
1569                           optimization. Values are opt, noopt,
1570                           default is noopt
1571   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1572   --enable-build-with-cxx build with C++ compiler instead of C compiler
1573   --enable-multilib       enable library support for multiple ABIs
1574   --enable-__cxa_atexit   enable __cxa_atexit for C++
1575   --enable-decimal-float={no,yes,bid,dpd}
1576                         enable decimal float extension to C.  Selecting 'bid'
1577                         or 'dpd' choses which decimal floating point format
1578                         to use
1579   --enable-fixed-point    enable fixed-point arithmetic extension to C
1580   --enable-threads        enable thread usage for target GCC
1581   --enable-threads=LIB    use LIB thread package for target GCC
1582   --enable-tls            enable or disable generation of tls code
1583                           overriding the assembler check for tls support
1584   --enable-objc-gc        enable the use of Boehm's garbage collector with
1585                           the GNU Objective-C runtime
1586   --disable-shared        don't provide a shared libgcc
1587   --enable-languages=LIST specify which front-ends to build
1588   --disable-rpath         do not hardcode runtime library paths
1589   --enable-initfini-array       use .init_array/.fini_array sections
1590   --enable-sjlj-exceptions
1591                           arrange to use setjmp/longjmp exception handling
1592   --enable-secureplt      enable -msecure-plt by default for PowerPC
1593   --enable-leading-mingw64-underscores
1594                           Enable leading underscores on 64 bit mingw targets
1595   --enable-cld            enable -mcld by default for 32bit x86
1596   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1597   --disable-win32-registry
1598                           disable lookup of installation paths in the
1599                           Registry on Windows hosts
1600   --enable-win32-registry enable registry lookup (default)
1601   --enable-win32-registry=KEY
1602                           use KEY instead of GCC version as the last portion
1603                           of the registry key
1604   --enable-shared[=PKGS]  build shared libraries [default=yes]
1605   --enable-static[=PKGS]  build static libraries [default=yes]
1606   --enable-fast-install[=PKGS]
1607                           optimize for fast installation [default=yes]
1608   --disable-libtool-lock  avoid locking (might break parallel builds)
1609   --enable-gnu-indirect-function
1610                           enable the use of the @gnu_indirect_function to
1611                           glibc systems
1612   --enable-comdat         enable COMDAT group support
1613   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1614                                 glibc systems
1615   --enable-linker-build-id
1616                           compiler will always pass --build-id to linker
1617   --enable-maintainer-mode
1618                           enable make rules and dependencies not useful
1619                           (and sometimes confusing) to the casual installer
1620   --enable-version-specific-runtime-libs
1621                           specify that runtime libraries should be
1622                           installed in a compiler-specific directory
1623   --enable-plugin         enable plugin support
1624
1625 Optional Packages:
1626   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1627   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1628   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1629   --with-local-prefix=DIR specifies directory to put local include
1630   --with-gxx-include-dir=DIR
1631                           specifies directory to put g++ header files
1632   --with-cpp-install-dir=DIR
1633                           install the user visible C preprocessor in DIR
1634                           (relative to PREFIX) as well as PREFIX/bin
1635   --with-gnu-ld           arrange to work with GNU ld.
1636   --with-ld               arrange to use the specified ld (full pathname)
1637   --with-demangler-in-ld  try to use demangler in GNU ld.
1638   --with-gnu-as           arrange to work with GNU as
1639   --with-as               arrange to use the specified as (full pathname)
1640   --with-stabs            arrange to use stabs instead of host debug format
1641   --with-dwarf2           force the default debug format to be DWARF 2
1642   --with-build-sysroot=sysroot
1643                           use sysroot as the system root during the build
1644   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1645   --with-specs=SPECS      add SPECS to driver command-line processing
1646   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1647   --with-bugurl=URL       Direct users to URL to report a bug
1648   --with-multilib-list    Select multilibs (SH only)
1649   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1650   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1651   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1652   --with-system-libunwind use installed libunwind
1653   --with-pic              try to use only PIC/non-PIC objects [default=use
1654                           both]
1655   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1656   --with-plugin-ld=[ARG]  specify the plugin linker
1657   --with-long-double-128  Use 128-bit long double by default.
1658   --with-gc={page,zone}   choose the garbage collection mechanism to use
1659                           with the compiler
1660   --with-system-zlib      use installed libz
1661   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1662
1663 Some influential environment variables:
1664   CC          C compiler command
1665   CFLAGS      C compiler flags
1666   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1667               nonstandard directory <lib dir>
1668   LIBS        libraries to pass to the linker, e.g. -l<library>
1669   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1670               you have headers in a nonstandard directory <include dir>
1671   CXX         C++ compiler command
1672   CXXFLAGS    C++ compiler flags
1673   CPP         C preprocessor
1674   CXXCPP      C++ preprocessor
1675   GMPLIBS     How to link GMP
1676   GMPINC      How to find GMP include files
1677   PPLLIBS     How to link PPL
1678   PPLINC      How to find PPL include files
1679   CLOOGLIBS   How to link CLOOG
1680   CLOOGINC    How to find CLOOG include files
1681
1682 Use these variables to override the choices made by `configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1684
1685 Report bugs to the package provider.
1686 _ACEOF
1687 ac_status=$?
1688 fi
1689
1690 if test "$ac_init_help" = "recursive"; then
1691   # If there are subdirs, report their specific --help.
1692   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693     test -d "$ac_dir" ||
1694       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695       continue
1696     ac_builddir=.
1697
1698 case "$ac_dir" in
1699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *)
1701   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702   # A ".." for each directory in $ac_dir_suffix.
1703   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704   case $ac_top_builddir_sub in
1705   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707   esac ;;
1708 esac
1709 ac_abs_top_builddir=$ac_pwd
1710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711 # for backward compatibility:
1712 ac_top_builddir=$ac_top_build_prefix
1713
1714 case $srcdir in
1715   .)  # We are building in place.
1716     ac_srcdir=.
1717     ac_top_srcdir=$ac_top_builddir_sub
1718     ac_abs_top_srcdir=$ac_pwd ;;
1719   [\\/]* | ?:[\\/]* )  # Absolute name.
1720     ac_srcdir=$srcdir$ac_dir_suffix;
1721     ac_top_srcdir=$srcdir
1722     ac_abs_top_srcdir=$srcdir ;;
1723   *) # Relative name.
1724     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725     ac_top_srcdir=$ac_top_build_prefix$srcdir
1726     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727 esac
1728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729
1730     cd "$ac_dir" || { ac_status=$?; continue; }
1731     # Check for guested configure.
1732     if test -f "$ac_srcdir/configure.gnu"; then
1733       echo &&
1734       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735     elif test -f "$ac_srcdir/configure"; then
1736       echo &&
1737       $SHELL "$ac_srcdir/configure" --help=recursive
1738     else
1739       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740     fi || ac_status=$?
1741     cd "$ac_pwd" || { ac_status=$?; break; }
1742   done
1743 fi
1744
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1747   cat <<\_ACEOF
1748 configure
1749 generated by GNU Autoconf 2.64
1750
1751 Copyright (C) 2009 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755   exit
1756 fi
1757
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1761
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   rm -f conftest.$ac_objext
1769   if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_compile") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && {
1785          test -z "$ac_c_werror_flag" ||
1786          test ! -s conftest.err
1787        } && test -s conftest.$ac_objext; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793         ac_retval=1
1794 fi
1795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796   return $ac_retval
1797
1798 } # ac_fn_c_try_compile
1799
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   rm -f conftest.$ac_objext
1807   if { { ac_try="$ac_compile"
1808 case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_compile") 2>conftest.err
1815   ac_status=$?
1816   if test -s conftest.err; then
1817     grep -v '^ *+' conftest.err >conftest.er1
1818     cat conftest.er1 >&5
1819     mv -f conftest.er1 conftest.err
1820   fi
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; } && {
1823          test -z "$ac_cxx_werror_flag" ||
1824          test ! -s conftest.err
1825        } && test -s conftest.$ac_objext; then :
1826   ac_retval=0
1827 else
1828   $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831         ac_retval=1
1832 fi
1833   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834   return $ac_retval
1835
1836 } # ac_fn_cxx_try_compile
1837
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_cpp ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852   ac_status=$?
1853   if test -s conftest.err; then
1854     grep -v '^ *+' conftest.err >conftest.er1
1855     cat conftest.er1 >&5
1856     mv -f conftest.er1 conftest.err
1857   fi
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; } >/dev/null && {
1860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861          test ! -s conftest.err
1862        }; then :
1863   ac_retval=0
1864 else
1865   $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868     ac_retval=1
1869 fi
1870   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871   return $ac_retval
1872
1873 } # ac_fn_c_try_cpp
1874
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887   $as_echo_n "(cached) " >&6
1888 fi
1889 eval ac_res=\$$3
1890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893   # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h.  */
1898 $4
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902   ac_header_compiler=yes
1903 else
1904   ac_header_compiler=no
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1909
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918   ac_header_preproc=yes
1919 else
1920   ac_header_preproc=no
1921 fi
1922 rm -f conftest.err conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1925
1926 # So?  What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928   yes:no: )
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933     ;;
1934   no:yes:* )
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945     ;;
1946 esac
1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950   $as_echo_n "(cached) " >&6
1951 else
1952   eval "$3=\$ac_header_compiler"
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 fi
1958   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960 } # ac_fn_c_check_header_mongrel
1961
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1966 ac_fn_c_try_run ()
1967 {
1968   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969   if { { ac_try="$ac_link"
1970 case "(($ac_try" in
1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972   *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976   (eval "$ac_link") 2>&5
1977   ac_status=$?
1978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980   { { case "(($ac_try" in
1981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982   *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986   (eval "$ac_try") 2>&5
1987   ac_status=$?
1988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989   test $ac_status = 0; }; }; then :
1990   ac_retval=0
1991 else
1992   $as_echo "$as_me: program exited with status $ac_status" >&5
1993        $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996        ac_retval=$ac_status
1997 fi
1998   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000   return $ac_retval
2001
2002 } # ac_fn_c_try_run
2003
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022   eval "$3=yes"
2023 else
2024   eval "$3=no"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$3
2029                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032
2033 } # ac_fn_c_check_header_compile
2034
2035 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036 # --------------------------------------------
2037 # Tries to find the compile-time value of EXPR in a program that includes
2038 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2039 # computed
2040 ac_fn_c_compute_int ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   if test "$cross_compiling" = yes; then
2044     # Depending upon the size, compute the lo and hi bounds.
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h.  */
2047 $4
2048 int
2049 main ()
2050 {
2051 static int test_array [1 - 2 * !(($2) >= 0)];
2052 test_array [0] = 0
2053
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059   ac_lo=0 ac_mid=0
2060   while :; do
2061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 test_array [0] = 0
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075   ac_hi=$ac_mid; break
2076 else
2077   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2078                         if test $ac_lo -le $ac_mid; then
2079                           ac_lo= ac_hi=
2080                           break
2081                         fi
2082                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085   done
2086 else
2087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h.  */
2089 $4
2090 int
2091 main ()
2092 {
2093 static int test_array [1 - 2 * !(($2) < 0)];
2094 test_array [0] = 0
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101   ac_hi=-1 ac_mid=-1
2102   while :; do
2103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 int
2107 main ()
2108 {
2109 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2110 test_array [0] = 0
2111
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117   ac_lo=$ac_mid; break
2118 else
2119   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120                         if test $ac_mid -le $ac_hi; then
2121                           ac_lo= ac_hi=
2122                           break
2123                         fi
2124                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127   done
2128 else
2129   ac_lo= ac_hi=
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 $4
2140 int
2141 main ()
2142 {
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 test_array [0] = 0
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151   ac_hi=$ac_mid
2152 else
2153   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 done
2157 case $ac_lo in #((
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2159 '') ac_retval=1 ;;
2160 esac
2161   else
2162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2167 #include <stdio.h>
2168 #include <stdlib.h>
2169 int
2170 main ()
2171 {
2172
2173   FILE *f = fopen ("conftest.val", "w");
2174   if (! f)
2175     return 1;
2176   if (($2) < 0)
2177     {
2178       long int i = longval ();
2179       if (i != ($2))
2180         return 1;
2181       fprintf (f, "%ld", i);
2182     }
2183   else
2184     {
2185       unsigned long int i = ulongval ();
2186       if (i != ($2))
2187         return 1;
2188       fprintf (f, "%lu", i);
2189     }
2190   /* Do not output a trailing newline, as this causes \r\n confusion
2191      on some platforms.  */
2192   return ferror (f) || fclose (f) != 0;
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_run "$LINENO"; then :
2199   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2200 else
2201   ac_retval=1
2202 fi
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204   conftest.$ac_objext conftest.beam conftest.$ac_ext
2205 rm -f conftest.val
2206
2207   fi
2208   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209   return $ac_retval
2210
2211 } # ac_fn_c_compute_int
2212
2213 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2214 # -------------------------------------------
2215 # Tests whether TYPE exists after having included INCLUDES, setting cache
2216 # variable VAR accordingly.
2217 ac_fn_c_check_type ()
2218 {
2219   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223   $as_echo_n "(cached) " >&6
2224 else
2225   eval "$3=no"
2226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 $4
2229 int
2230 main ()
2231 {
2232 if (sizeof ($2))
2233          return 0;
2234   ;
2235   return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h.  */
2241 $4
2242 int
2243 main ()
2244 {
2245 if (sizeof (($2)))
2246             return 0;
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252
2253 else
2254   eval "$3=yes"
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 eval ac_res=\$$3
2261                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264
2265 } # ac_fn_c_check_type
2266
2267 # ac_fn_c_find_intX_t LINENO BITS VAR
2268 # -----------------------------------
2269 # Finds a signed integer type with width BITS, setting cache variable VAR
2270 # accordingly.
2271 ac_fn_c_find_intX_t ()
2272 {
2273   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2275 $as_echo_n "checking for int$2_t... " >&6; }
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277   $as_echo_n "(cached) " >&6
2278 else
2279   eval "$3=no"
2280      for ac_type in int$2_t 'int' 'long int' \
2281          'long long int' 'short int' 'signed char'; do
2282        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $ac_includes_default
2285 int
2286 main ()
2287 {
2288 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2289 test_array [0] = 0
2290
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 $ac_includes_default
2299 int
2300 main ()
2301 {
2302 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2303                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2304 test_array [0] = 0
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2311
2312 else
2313   case $ac_type in #(
2314   int$2_t) :
2315     eval "$3=yes" ;; #(
2316   *) :
2317     eval "$3=\$ac_type" ;;
2318 esac
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323        eval as_val=\$$3
2324    if test "x$as_val" = x""no; then :
2325
2326 else
2327   break
2328 fi
2329      done
2330 fi
2331 eval ac_res=\$$3
2332                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2335
2336 } # ac_fn_c_find_intX_t
2337
2338 # ac_fn_c_try_link LINENO
2339 # -----------------------
2340 # Try to link conftest.$ac_ext, and return whether this succeeded.
2341 ac_fn_c_try_link ()
2342 {
2343   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344   rm -f conftest.$ac_objext conftest$ac_exeext
2345   if { { ac_try="$ac_link"
2346 case "(($ac_try" in
2347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348   *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352   (eval "$ac_link") 2>conftest.err
2353   ac_status=$?
2354   if test -s conftest.err; then
2355     grep -v '^ *+' conftest.err >conftest.er1
2356     cat conftest.er1 >&5
2357     mv -f conftest.er1 conftest.err
2358   fi
2359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360   test $ac_status = 0; } && {
2361          test -z "$ac_c_werror_flag" ||
2362          test ! -s conftest.err
2363        } && test -s conftest$ac_exeext && {
2364          test "$cross_compiling" = yes ||
2365          $as_test_x conftest$ac_exeext
2366        }; then :
2367   ac_retval=0
2368 else
2369   $as_echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372         ac_retval=1
2373 fi
2374   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376   # interfere with the next link command; also delete a directory that is
2377   # left behind by Apple's compiler.  We do this before executing the actions.
2378   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2379   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380   return $ac_retval
2381
2382 } # ac_fn_c_try_link
2383
2384 # ac_fn_c_find_uintX_t LINENO BITS VAR
2385 # ------------------------------------
2386 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2387 # accordingly.
2388 ac_fn_c_find_uintX_t ()
2389 {
2390   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2392 $as_echo_n "checking for uint$2_t... " >&6; }
2393 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2394   $as_echo_n "(cached) " >&6
2395 else
2396   eval "$3=no"
2397      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2398          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2399        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h.  */
2401 $ac_includes_default
2402 int
2403 main ()
2404 {
2405 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2406 test_array [0] = 0
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413   case $ac_type in #(
2414   uint$2_t) :
2415     eval "$3=yes" ;; #(
2416   *) :
2417     eval "$3=\$ac_type" ;;
2418 esac
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421        eval as_val=\$$3
2422    if test "x$as_val" = x""no; then :
2423
2424 else
2425   break
2426 fi
2427      done
2428 fi
2429 eval ac_res=\$$3
2430                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433
2434 } # ac_fn_c_find_uintX_t
2435
2436 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2437 # ----------------------------------------------
2438 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2439 ac_fn_c_check_header_preproc ()
2440 {
2441   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445   $as_echo_n "(cached) " >&6
2446 else
2447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h.  */
2449 #include <$2>
2450 _ACEOF
2451 if ac_fn_c_try_cpp "$LINENO"; then :
2452   eval "$3=yes"
2453 else
2454   eval "$3=no"
2455 fi
2456 rm -f conftest.err conftest.$ac_ext
2457 fi
2458 eval ac_res=\$$3
2459                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462
2463 } # ac_fn_c_check_header_preproc
2464
2465 # ac_fn_c_check_func LINENO FUNC VAR
2466 # ----------------------------------
2467 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2468 ac_fn_c_check_func ()
2469 {
2470   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474   $as_echo_n "(cached) " >&6
2475 else
2476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h.  */
2478 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2480 #define $2 innocuous_$2
2481
2482 /* System header to define __stub macros and hopefully few prototypes,
2483     which can conflict with char $2 (); below.
2484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485     <limits.h> exists even on freestanding compilers.  */
2486
2487 #ifdef __STDC__
2488 # include <limits.h>
2489 #else
2490 # include <assert.h>
2491 #endif
2492
2493 #undef $2
2494
2495 /* Override any GCC internal prototype to avoid an error.
2496    Use char because int might match the return type of a GCC
2497    builtin and then its argument prototype would still apply.  */
2498 #ifdef __cplusplus
2499 extern "C"
2500 #endif
2501 char $2 ();
2502 /* The GNU C library defines this for functions which it implements
2503     to always fail with ENOSYS.  Some functions are actually named
2504     something starting with __ and the normal name is an alias.  */
2505 #if defined __stub_$2 || defined __stub___$2
2506 choke me
2507 #endif
2508
2509 int
2510 main ()
2511 {
2512 return $2 ();
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 if ac_fn_c_try_link "$LINENO"; then :
2518   eval "$3=yes"
2519 else
2520   eval "$3=no"
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext \
2523     conftest$ac_exeext conftest.$ac_ext
2524 fi
2525 eval ac_res=\$$3
2526                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2529
2530 } # ac_fn_c_check_func
2531
2532 # ac_fn_cxx_try_cpp LINENO
2533 # ------------------------
2534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2535 ac_fn_cxx_try_cpp ()
2536 {
2537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538   if { { ac_try="$ac_cpp conftest.$ac_ext"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2544 $as_echo "$ac_try_echo"; } >&5
2545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2546   ac_status=$?
2547   if test -s conftest.err; then
2548     grep -v '^ *+' conftest.err >conftest.er1
2549     cat conftest.er1 >&5
2550     mv -f conftest.er1 conftest.err
2551   fi
2552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2553   test $ac_status = 0; } >/dev/null && {
2554          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2555          test ! -s conftest.err
2556        }; then :
2557   ac_retval=0
2558 else
2559   $as_echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562     ac_retval=1
2563 fi
2564   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565   return $ac_retval
2566
2567 } # ac_fn_cxx_try_cpp
2568
2569 # ac_fn_cxx_try_link LINENO
2570 # -------------------------
2571 # Try to link conftest.$ac_ext, and return whether this succeeded.
2572 ac_fn_cxx_try_link ()
2573 {
2574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575   rm -f conftest.$ac_objext conftest$ac_exeext
2576   if { { ac_try="$ac_link"
2577 case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2582 $as_echo "$ac_try_echo"; } >&5
2583   (eval "$ac_link") 2>conftest.err
2584   ac_status=$?
2585   if test -s conftest.err; then
2586     grep -v '^ *+' conftest.err >conftest.er1
2587     cat conftest.er1 >&5
2588     mv -f conftest.er1 conftest.err
2589   fi
2590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591   test $ac_status = 0; } && {
2592          test -z "$ac_cxx_werror_flag" ||
2593          test ! -s conftest.err
2594        } && test -s conftest$ac_exeext && {
2595          test "$cross_compiling" = yes ||
2596          $as_test_x conftest$ac_exeext
2597        }; then :
2598   ac_retval=0
2599 else
2600   $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603         ac_retval=1
2604 fi
2605   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2606   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2607   # interfere with the next link command; also delete a directory that is
2608   # left behind by Apple's compiler.  We do this before executing the actions.
2609   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2610   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611   return $ac_retval
2612
2613 } # ac_fn_cxx_try_link
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2617
2618 It was created by $as_me, which was
2619 generated by GNU Autoconf 2.64.  Invocation command line was
2620
2621   $ $0 $@
2622
2623 _ACEOF
2624 exec 5>>config.log
2625 {
2626 cat <<_ASUNAME
2627 ## --------- ##
2628 ## Platform. ##
2629 ## --------- ##
2630
2631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2636
2637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2638 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2639
2640 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2641 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2643 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2644 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2645 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2646 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2647
2648 _ASUNAME
2649
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     $as_echo "PATH: $as_dir"
2656   done
2657 IFS=$as_save_IFS
2658
2659 } >&5
2660
2661 cat >&5 <<_ACEOF
2662
2663
2664 ## ----------- ##
2665 ## Core tests. ##
2666 ## ----------- ##
2667
2668 _ACEOF
2669
2670
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2676 ac_configure_args=
2677 ac_configure_args0=
2678 ac_configure_args1=
2679 ac_must_keep_next=false
2680 for ac_pass in 1 2
2681 do
2682   for ac_arg
2683   do
2684     case $ac_arg in
2685     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687     | -silent | --silent | --silen | --sile | --sil)
2688       continue ;;
2689     *\'*)
2690       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2691     esac
2692     case $ac_pass in
2693     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2694     2)
2695       as_fn_append ac_configure_args1 " '$ac_arg'"
2696       if test $ac_must_keep_next = true; then
2697         ac_must_keep_next=false # Got value, back to normal.
2698       else
2699         case $ac_arg in
2700           *=* | --config-cache | -C | -disable-* | --disable-* \
2701           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703           | -with-* | --with-* | -without-* | --without-* | --x)
2704             case "$ac_configure_args0 " in
2705               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706             esac
2707             ;;
2708           -* ) ac_must_keep_next=true ;;
2709         esac
2710       fi
2711       as_fn_append ac_configure_args " '$ac_arg'"
2712       ;;
2713     esac
2714   done
2715 done
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2718
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log.  We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725   # Save into config.log some information that might help in debugging.
2726   {
2727     echo
2728
2729     cat <<\_ASBOX
2730 ## ---------------- ##
2731 ## Cache variables. ##
2732 ## ---------------- ##
2733 _ASBOX
2734     echo
2735     # The following way of writing the cache mishandles newlines in values,
2736 (
2737   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2738     eval ac_val=\$$ac_var
2739     case $ac_val in #(
2740     *${as_nl}*)
2741       case $ac_var in #(
2742       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2744       esac
2745       case $ac_var in #(
2746       _ | IFS | as_nl) ;; #(
2747       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2748       *) { eval $ac_var=; unset $ac_var;} ;;
2749       esac ;;
2750     esac
2751   done
2752   (set) 2>&1 |
2753     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2754     *${as_nl}ac_space=\ *)
2755       sed -n \
2756         "s/'\''/'\''\\\\'\'''\''/g;
2757           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2758       ;; #(
2759     *)
2760       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2761       ;;
2762     esac |
2763     sort
2764 )
2765     echo
2766
2767     cat <<\_ASBOX
2768 ## ----------------- ##
2769 ## Output variables. ##
2770 ## ----------------- ##
2771 _ASBOX
2772     echo
2773     for ac_var in $ac_subst_vars
2774     do
2775       eval ac_val=\$$ac_var
2776       case $ac_val in
2777       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2778       esac
2779       $as_echo "$ac_var='\''$ac_val'\''"
2780     done | sort
2781     echo
2782
2783     if test -n "$ac_subst_files"; then
2784       cat <<\_ASBOX
2785 ## ------------------- ##
2786 ## File substitutions. ##
2787 ## ------------------- ##
2788 _ASBOX
2789       echo
2790       for ac_var in $ac_subst_files
2791       do
2792         eval ac_val=\$$ac_var
2793         case $ac_val in
2794         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2795         esac
2796         $as_echo "$ac_var='\''$ac_val'\''"
2797       done | sort
2798       echo
2799     fi
2800
2801     if test -s confdefs.h; then
2802       cat <<\_ASBOX
2803 ## ----------- ##
2804 ## confdefs.h. ##
2805 ## ----------- ##
2806 _ASBOX
2807       echo
2808       cat confdefs.h
2809       echo
2810     fi
2811     test "$ac_signal" != 0 &&
2812       $as_echo "$as_me: caught signal $ac_signal"
2813     $as_echo "$as_me: exit $exit_status"
2814   } >&5
2815   rm -f core *.core core.conftest.* &&
2816     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2817     exit $exit_status
2818 ' 0
2819 for ac_signal in 1 2 13 15; do
2820   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2821 done
2822 ac_signal=0
2823
2824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2825 rm -f -r conftest* confdefs.h
2826
2827 $as_echo "/* confdefs.h */" > confdefs.h
2828
2829 # Predefined preprocessor variables.
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_NAME "$PACKAGE_NAME"
2833 _ACEOF
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_STRING "$PACKAGE_STRING"
2845 _ACEOF
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_URL "$PACKAGE_URL"
2853 _ACEOF
2854
2855
2856 # Let the site file select an alternate cache file if it wants to.
2857 # Prefer an explicitly selected file to automatically selected ones.
2858 ac_site_file1=NONE
2859 ac_site_file2=NONE
2860 if test -n "$CONFIG_SITE"; then
2861   ac_site_file1=$CONFIG_SITE
2862 elif test "x$prefix" != xNONE; then
2863   ac_site_file1=$prefix/share/config.site
2864   ac_site_file2=$prefix/etc/config.site
2865 else
2866   ac_site_file1=$ac_default_prefix/share/config.site
2867   ac_site_file2=$ac_default_prefix/etc/config.site
2868 fi
2869 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2870 do
2871   test "x$ac_site_file" = xNONE && continue
2872   if test -r "$ac_site_file"; then
2873     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2874 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2875     sed 's/^/| /' "$ac_site_file" >&5
2876     . "$ac_site_file"
2877   fi
2878 done
2879
2880 if test -r "$cache_file"; then
2881   # Some versions of bash will fail to source /dev/null (special
2882   # files actually), so we avoid doing that.
2883   if test -f "$cache_file"; then
2884     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2885 $as_echo "$as_me: loading cache $cache_file" >&6;}
2886     case $cache_file in
2887       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2888       *)                      . "./$cache_file";;
2889     esac
2890   fi
2891 else
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2893 $as_echo "$as_me: creating cache $cache_file" >&6;}
2894   >$cache_file
2895 fi
2896
2897 # Check that the precious variables saved in the cache have kept the same
2898 # value.
2899 ac_cache_corrupted=false
2900 for ac_var in $ac_precious_vars; do
2901   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2902   eval ac_new_set=\$ac_env_${ac_var}_set
2903   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2904   eval ac_new_val=\$ac_env_${ac_var}_value
2905   case $ac_old_set,$ac_new_set in
2906     set,)
2907       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2908 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2909       ac_cache_corrupted=: ;;
2910     ,set)
2911       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2913       ac_cache_corrupted=: ;;
2914     ,);;
2915     *)
2916       if test "x$ac_old_val" != "x$ac_new_val"; then
2917         # differences in whitespace do not lead to failure.
2918         ac_old_val_w=`echo x $ac_old_val`
2919         ac_new_val_w=`echo x $ac_new_val`
2920         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2921           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2922 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2923           ac_cache_corrupted=:
2924         else
2925           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2926 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2927           eval $ac_var=\$ac_old_val
2928         fi
2929         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2930 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2931         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2932 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2933       fi;;
2934   esac
2935   # Pass precious variables to config.status.
2936   if test "$ac_new_set" = set; then
2937     case $ac_new_val in
2938     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2939     *) ac_arg=$ac_var=$ac_new_val ;;
2940     esac
2941     case " $ac_configure_args " in
2942       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2943       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2944     esac
2945   fi
2946 done
2947 if $ac_cache_corrupted; then
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2951 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2952   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2953 fi
2954 ## -------------------- ##
2955 ## Main body of script. ##
2956 ## -------------------- ##
2957
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963
2964
2965
2966
2967
2968
2969 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2970
2971
2972 gcc_version=`cat $srcdir/BASE-VER`
2973
2974 # Determine the host, build, and target systems
2975 ac_aux_dir=
2976 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2977   for ac_t in install-sh install.sh shtool; do
2978     if test -f "$ac_dir/$ac_t"; then
2979       ac_aux_dir=$ac_dir
2980       ac_install_sh="$ac_aux_dir/$ac_t -c"
2981       break 2
2982     fi
2983   done
2984 done
2985 if test -z "$ac_aux_dir"; then
2986   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2987 fi
2988
2989 # These three variables are undocumented and unsupported,
2990 # and are intended to be withdrawn in a future Autoconf release.
2991 # They can cause serious problems if a builder's source tree is in a directory
2992 # whose full name contains unusual characters.
2993 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2994 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2995 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2996
2997
2998 # Make sure we can run config.sub.
2999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3000   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3001
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3003 $as_echo_n "checking build system type... " >&6; }
3004 if test "${ac_cv_build+set}" = set; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   ac_build_alias=$build_alias
3008 test "x$ac_build_alias" = x &&
3009   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3010 test "x$ac_build_alias" = x &&
3011   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3013   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3014
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3017 $as_echo "$ac_cv_build" >&6; }
3018 case $ac_cv_build in
3019 *-*-*) ;;
3020 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3021 esac
3022 build=$ac_cv_build
3023 ac_save_IFS=$IFS; IFS='-'
3024 set x $ac_cv_build
3025 shift
3026 build_cpu=$1
3027 build_vendor=$2
3028 shift; shift
3029 # Remember, the first character of IFS is used to create $*,
3030 # except with old shells:
3031 build_os=$*
3032 IFS=$ac_save_IFS
3033 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3034
3035
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3037 $as_echo_n "checking host system type... " >&6; }
3038 if test "${ac_cv_host+set}" = set; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if test "x$host_alias" = x; then
3042   ac_cv_host=$ac_cv_build
3043 else
3044   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3045     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3046 fi
3047
3048 fi
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3050 $as_echo "$ac_cv_host" >&6; }
3051 case $ac_cv_host in
3052 *-*-*) ;;
3053 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3054 esac
3055 host=$ac_cv_host
3056 ac_save_IFS=$IFS; IFS='-'
3057 set x $ac_cv_host
3058 shift
3059 host_cpu=$1
3060 host_vendor=$2
3061 shift; shift
3062 # Remember, the first character of IFS is used to create $*,
3063 # except with old shells:
3064 host_os=$*
3065 IFS=$ac_save_IFS
3066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3067
3068
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3070 $as_echo_n "checking target system type... " >&6; }
3071 if test "${ac_cv_target+set}" = set; then :
3072   $as_echo_n "(cached) " >&6
3073 else
3074   if test "x$target_alias" = x; then
3075   ac_cv_target=$ac_cv_host
3076 else
3077   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3078     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3079 fi
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3083 $as_echo "$ac_cv_target" >&6; }
3084 case $ac_cv_target in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3087 esac
3088 target=$ac_cv_target
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_target
3091 shift
3092 target_cpu=$1
3093 target_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 target_os=$*
3098 IFS=$ac_save_IFS
3099 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3100
3101
3102 # The aliases save the names the user supplied, while $host etc.
3103 # will get canonicalized.
3104 test -n "$target_alias" &&
3105   test "$program_prefix$program_suffix$program_transform_name" = \
3106     NONENONEs,x,x, &&
3107   program_prefix=${target_alias}-
3108
3109 # Determine the noncanonical target name, for directory use.
3110  case ${build_alias} in
3111   "") build_noncanonical=${build} ;;
3112   *) build_noncanonical=${build_alias} ;;
3113 esac
3114
3115  case ${host_alias} in
3116   "") host_noncanonical=${build_noncanonical} ;;
3117   *) host_noncanonical=${host_alias} ;;
3118 esac
3119
3120  case ${target_alias} in
3121   "") target_noncanonical=${host_noncanonical} ;;
3122   *) target_noncanonical=${target_alias} ;;
3123 esac
3124
3125
3126
3127
3128 # Determine the target- and build-specific subdirectories
3129
3130 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3131 # have matching libraries, they should use host libraries: Makefile.tpl
3132 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3133 # However, they still use the build modules, because the corresponding
3134 # host modules (e.g. bison) are only built for the host when bootstrap
3135 # finishes. So:
3136 # - build_subdir is where we find build modules, and never changes.
3137 # - build_libsubdir is where we find build libraries, and can be overridden.
3138
3139 # Prefix 'build-' so this never conflicts with target_subdir.
3140 build_subdir="build-${build_noncanonical}"
3141
3142 # Check whether --with-build-libsubdir was given.
3143 if test "${with_build_libsubdir+set}" = set; then :
3144   withval=$with_build_libsubdir; build_libsubdir="$withval"
3145 else
3146   build_libsubdir="$build_subdir"
3147 fi
3148
3149 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3150 if ( test $srcdir = . && test -d gcc ) \
3151    || test -d $srcdir/../host-${host_noncanonical}; then
3152   host_subdir="host-${host_noncanonical}"
3153 else
3154   host_subdir=.
3155 fi
3156 # No prefix.
3157 target_subdir=${target_noncanonical}
3158
3159
3160 # Set program_transform_name
3161 test "$program_prefix" != NONE &&
3162   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3166 # Double any \ or $.
3167 # By default was `s,x,x', remove it if useless.
3168 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3169 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3170
3171
3172 # Check for bogus environment variables.
3173 # Test if LIBRARY_PATH contains the notation for the current directory
3174 # since this would lead to problems installing/building glibc.
3175 # LIBRARY_PATH contains the current directory if one of the following
3176 # is true:
3177 # - one of the terminals (":" and ";") is the first or last sign
3178 # - two terminals occur directly after each other
3179 # - the path contains an element with a dot in it
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3181 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3182 case ${LIBRARY_PATH} in
3183   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3184     library_path_setting="contains current directory"
3185     ;;
3186   *)
3187     library_path_setting="ok"
3188     ;;
3189 esac
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3191 $as_echo "$library_path_setting" >&6; }
3192 if test "$library_path_setting" != "ok"; then
3193 as_fn_error "
3194 *** LIBRARY_PATH shouldn't contain the current directory when
3195 *** building gcc. Please change the environment variable
3196 *** and run configure again." "$LINENO" 5
3197 fi
3198
3199 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3200 # since this would lead to problems installing/building glibc.
3201 # GCC_EXEC_PREFIX contains the current directory if one of the following
3202 # is true:
3203 # - one of the terminals (":" and ";") is the first or last sign
3204 # - two terminals occur directly after each other
3205 # - the path contains an element with a dot in it
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3207 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3208 case ${GCC_EXEC_PREFIX} in
3209   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3210     gcc_exec_prefix_setting="contains current directory"
3211     ;;
3212   *)
3213     gcc_exec_prefix_setting="ok"
3214     ;;
3215 esac
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3217 $as_echo "$gcc_exec_prefix_setting" >&6; }
3218 if test "$gcc_exec_prefix_setting" != "ok"; then
3219 as_fn_error "
3220 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3221 *** building gcc. Please change the environment variable
3222 *** and run configure again." "$LINENO" 5
3223 fi
3224
3225 # -----------
3226 # Directories
3227 # -----------
3228
3229 # Specify the local prefix
3230 local_prefix=
3231
3232 # Check whether --with-local-prefix was given.
3233 if test "${with_local_prefix+set}" = set; then :
3234   withval=$with_local_prefix; case "${withval}" in
3235 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3236 no)     ;;
3237 *)      local_prefix=$with_local_prefix ;;
3238 esac
3239 fi
3240
3241
3242 # Default local prefix if it is empty
3243 if test x$local_prefix = x; then
3244         local_prefix=/usr/local
3245 fi
3246
3247 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3248 # passed in by the toplevel make and thus we'd get different behavior
3249 # depending on where we built the sources.
3250 gcc_gxx_include_dir=
3251 # Specify the g++ header file directory
3252
3253 # Check whether --with-gxx-include-dir was given.
3254 if test "${with_gxx_include_dir+set}" = set; then :
3255   withval=$with_gxx_include_dir; case "${withval}" in
3256 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3257 no)     ;;
3258 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3259 esac
3260 fi
3261
3262
3263 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3264 if test x${gcc_gxx_include_dir} = x; then
3265   if test x${enable_version_specific_runtime_libs} = xyes; then
3266     gcc_gxx_include_dir='${libsubdir}/include/c++'
3267   else
3268     libstdcxx_incdir='include/c++/$(version)'
3269     if test x$host != x$target; then
3270        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3271     fi
3272     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3273   fi
3274 fi
3275
3276
3277 # Check whether --with-cpp_install_dir was given.
3278 if test "${with_cpp_install_dir+set}" = set; then :
3279   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3280   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3281 elif test x$withval != xno; then
3282   cpp_install_dir=$withval
3283 fi
3284 fi
3285
3286
3287 # We would like to our source tree to be readonly.  However when releases or
3288 # pre-releases are generated, the flex/bison generated files as well as the
3289 # various formats of manuals need to be included along with the rest of the
3290 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3291 # just that.
3292
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3294 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3295     # Check whether --enable-generated-files-in-srcdir was given.
3296 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3297   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3298 else
3299   generated_files_in_srcdir=no
3300 fi
3301
3302
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3304 $as_echo "$generated_files_in_srcdir" >&6; }
3305
3306 if test "$generated_files_in_srcdir" = "yes"; then
3307   GENINSRC=''
3308 else
3309   GENINSRC='#'
3310 fi
3311
3312
3313 # -------------------
3314 # Find default linker
3315 # -------------------
3316
3317 # With GNU ld
3318
3319 # Check whether --with-gnu-ld was given.
3320 if test "${with_gnu_ld+set}" = set; then :
3321   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3322 else
3323   gnu_ld_flag=no
3324 fi
3325
3326
3327 # With pre-defined ld
3328
3329 # Check whether --with-ld was given.
3330 if test "${with_ld+set}" = set; then :
3331   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3332 fi
3333
3334 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3335   if test ! -x "$DEFAULT_LINKER"; then
3336     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3337   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3338     gnu_ld_flag=yes
3339   fi
3340
3341 cat >>confdefs.h <<_ACEOF
3342 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3343 _ACEOF
3344
3345 fi
3346
3347 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3348
3349 cat >>confdefs.h <<_ACEOF
3350 #define HAVE_GNU_LD $gnu_ld
3351 _ACEOF
3352
3353
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3355 $as_echo_n "checking whether a default linker was specified... " >&6; }
3356 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3357   if test x"$gnu_ld_flag" = x"no"; then
3358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3359 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3360   else
3361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3362 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3363   fi
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369 # With demangler in GNU ld
3370
3371 # Check whether --with-demangler-in-ld was given.
3372 if test "${with_demangler_in_ld+set}" = set; then :
3373   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3374 else
3375   demangler_in_ld=no
3376 fi
3377
3378
3379 # ----------------------
3380 # Find default assembler
3381 # ----------------------
3382
3383 # With GNU as
3384
3385 # Check whether --with-gnu-as was given.
3386 if test "${with_gnu_as+set}" = set; then :
3387   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3388 else
3389   gas_flag=no
3390 fi
3391
3392
3393
3394 # Check whether --with-as was given.
3395 if test "${with_as+set}" = set; then :
3396   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3397 fi
3398
3399 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3400   if test ! -x "$DEFAULT_ASSEMBLER"; then
3401     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3402   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3403     gas_flag=yes
3404   fi
3405
3406 cat >>confdefs.h <<_ACEOF
3407 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3408 _ACEOF
3409
3410 fi
3411
3412 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3413
3414 cat >>confdefs.h <<_ACEOF
3415 #define HAVE_GNU_AS $gnu_as
3416 _ACEOF
3417
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3420 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3421 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3422   if test x"$gas_flag" = x"no"; then
3423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3424 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3425   else
3426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3427 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3428   fi
3429 else
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434 # ---------------
3435 # Find C compiler
3436 # ---------------
3437
3438 # If a non-executable a.out is present (e.g. created by GNU as above even if
3439 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3440 # file, even when creating an executable, so an execution test fails.
3441 # Remove possible default executable files to avoid this.
3442 #
3443 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3444 # Autoconf includes it.
3445 rm -f a.out a.exe b.out
3446
3447 # Find the native compiler
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 if test -n "$ac_tool_prefix"; then
3454   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3455 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_CC+set}" = set; then :
3459   $as_echo_n "(cached) " >&6
3460 else
3461   if test -n "$CC"; then
3462   ac_cv_prog_CC="$CC" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467   IFS=$as_save_IFS
3468   test -z "$as_dir" && as_dir=.
3469     for ac_exec_ext in '' $ac_executable_extensions; do
3470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473     break 2
3474   fi
3475 done
3476   done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490
3491 fi
3492 if test -z "$ac_cv_prog_CC"; then
3493   ac_ct_CC=$CC
3494   # Extract the first word of "gcc", so it can be a program name with args.
3495 set dummy gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   if test -n "$ac_ct_CC"; then
3502   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509     for ac_exec_ext in '' $ac_executable_extensions; do
3510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511     ac_cv_prog_ac_ct_CC="gcc"
3512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516   done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3525 else
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530   if test "x$ac_ct_CC" = x; then
3531     CC=""
3532   else
3533     case $cross_compiling:$ac_tool_warned in
3534 yes:)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned=yes ;;
3538 esac
3539     CC=$ac_ct_CC
3540   fi
3541 else
3542   CC="$ac_cv_prog_CC"
3543 fi
3544
3545 if test -z "$CC"; then
3546           if test -n "$ac_tool_prefix"; then
3547     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}cc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_CC+set}" = set; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   if test -n "$CC"; then
3555   ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562     for ac_exec_ext in '' $ac_executable_extensions; do
3563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564     ac_cv_prog_CC="${ac_tool_prefix}cc"
3565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569   done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584   fi
3585 fi
3586 if test -z "$CC"; then
3587   # Extract the first word of "cc", so it can be a program name with args.
3588 set dummy cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592   $as_echo_n "(cached) " >&6
3593 else
3594   if test -n "$CC"; then
3595   ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597   ac_prog_rejected=no
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606        ac_prog_rejected=yes
3607        continue
3608      fi
3609     ac_cv_prog_CC="cc"
3610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614   done
3615 IFS=$as_save_IFS
3616
3617 if test $ac_prog_rejected = yes; then
3618   # We found a bogon in the path, so make sure we never use it.
3619   set dummy $ac_cv_prog_CC
3620   shift
3621   if test $# != 0; then
3622     # We chose a different compiler from the bogus one.
3623     # However, it has the same basename, so the bogon will be chosen
3624     # first if we set CC to just the basename; use the full file name.
3625     shift
3626     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3627   fi
3628 fi
3629 fi
3630 fi
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3635 else
3636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 fi
3639
3640
3641 fi
3642 if test -z "$CC"; then
3643   if test -n "$ac_tool_prefix"; then
3644   for ac_prog in cl.exe
3645   do
3646     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if test "${ac_cv_prog_CC+set}" = set; then :
3651   $as_echo_n "(cached) " >&6
3652 else
3653   if test -n "$CC"; then
3654   ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661     for ac_exec_ext in '' $ac_executable_extensions; do
3662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668   done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683     test -n "$CC" && break
3684   done
3685 fi
3686 if test -z "$CC"; then
3687   ac_ct_CC=$CC
3688   for ac_prog in cl.exe
3689 do
3690   # Extract the first word of "$ac_prog", so it can be a program name with args.
3691 set dummy $ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3695   $as_echo_n "(cached) " >&6
3696 else
3697   if test -n "$ac_ct_CC"; then
3698   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705     for ac_exec_ext in '' $ac_executable_extensions; do
3706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707     ac_cv_prog_ac_ct_CC="$ac_prog"
3708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712   done
3713 IFS=$as_save_IFS
3714
3715 fi
3716 fi
3717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3720 $as_echo "$ac_ct_CC" >&6; }
3721 else
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 fi
3725
3726
3727   test -n "$ac_ct_CC" && break
3728 done
3729
3730   if test "x$ac_ct_CC" = x; then
3731     CC=""
3732   else
3733     case $cross_compiling:$ac_tool_warned in
3734 yes:)
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3738 esac
3739     CC=$ac_ct_CC
3740   fi
3741 fi
3742
3743 fi
3744
3745
3746 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error "no acceptable C compiler found in \$PATH
3749 See \`config.log' for more details." "$LINENO" 5; }
3750
3751 # Provide some information about the compiler.
3752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3753 set X $ac_compile
3754 ac_compiler=$2
3755 for ac_option in --version -v -V -qversion; do
3756   { { ac_try="$ac_compiler $ac_option >&5"
3757 case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3764   ac_status=$?
3765   if test -s conftest.err; then
3766     sed '10a\
3767 ... rest of stderr output deleted ...
3768          10q' conftest.err >conftest.er1
3769     cat conftest.er1 >&5
3770     rm -f conftest.er1 conftest.err
3771   fi
3772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773   test $ac_status = 0; }
3774 done
3775
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778
3779 int
3780 main ()
3781 {
3782
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 ac_clean_files_save=$ac_clean_files
3788 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3789 # Try to create an executable without -o first, disregard a.out.
3790 # It will help us diagnose broken compilers, and finding out an intuition
3791 # of exeext.
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3793 $as_echo_n "checking for C compiler default output file name... " >&6; }
3794 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3795
3796 # The possible output files:
3797 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3798
3799 ac_rmfiles=
3800 for ac_file in $ac_files
3801 do
3802   case $ac_file in
3803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3805   esac
3806 done
3807 rm -f $ac_rmfiles
3808
3809 if { { ac_try="$ac_link_default"
3810 case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816   (eval "$ac_link_default") 2>&5
3817   ac_status=$?
3818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819   test $ac_status = 0; }; then :
3820   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3822 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3823 # so that the user can short-circuit this test for compilers unknown to
3824 # Autoconf.
3825 for ac_file in $ac_files ''
3826 do
3827   test -f "$ac_file" || continue
3828   case $ac_file in
3829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3830         ;;
3831     [ab].out )
3832         # We found the default executable, but exeext='' is most
3833         # certainly right.
3834         break;;
3835     *.* )
3836         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3837         then :; else
3838            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3839         fi
3840         # We set ac_cv_exeext here because the later test for it is not
3841         # safe: cross compilers may not add the suffix if given an `-o'
3842         # argument, so we may need to know it at that point already.
3843         # Even if this section looks crufty: it has the advantage of
3844         # actually working.
3845         break;;
3846     * )
3847         break;;
3848   esac
3849 done
3850 test "$ac_cv_exeext" = no && ac_cv_exeext=
3851
3852 else
3853   ac_file=''
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3856 $as_echo "$ac_file" >&6; }
3857 if test -z "$ac_file"; then :
3858   $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 { as_fn_set_status 77
3864 as_fn_error "C compiler cannot create executables
3865 See \`config.log' for more details." "$LINENO" 5; }; }
3866 fi
3867 ac_exeext=$ac_cv_exeext
3868
3869 # Check that the compiler produces executables we can run.  If not, either
3870 # the compiler is broken, or we cross compile.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3872 $as_echo_n "checking whether the C compiler works... " >&6; }
3873 # If not cross compiling, check that we can run a simple program.
3874 if test "$cross_compiling" != yes; then
3875   if { ac_try='./$ac_file'
3876   { { case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882   (eval "$ac_try") 2>&5
3883   ac_status=$?
3884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885   test $ac_status = 0; }; }; then
3886     cross_compiling=no
3887   else
3888     if test "$cross_compiling" = maybe; then
3889         cross_compiling=yes
3890     else
3891         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error "cannot run C compiled programs.
3894 If you meant to cross compile, use \`--host'.
3895 See \`config.log' for more details." "$LINENO" 5; }
3896     fi
3897   fi
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 $as_echo "yes" >&6; }
3901
3902 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3903 ac_clean_files=$ac_clean_files_save
3904 # Check that the compiler produces executables we can run.  If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3907 $as_echo_n "checking whether we are cross compiling... " >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3909 $as_echo "$cross_compiling" >&6; }
3910
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920   (eval "$ac_link") 2>&5
3921   ac_status=$?
3922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923   test $ac_status = 0; }; then :
3924   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3927 # `rm'.
3928 for ac_file in conftest.exe conftest conftest.*; do
3929   test -f "$ac_file" || continue
3930   case $ac_file in
3931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933           break;;
3934     * ) break;;
3935   esac
3936 done
3937 else
3938   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details." "$LINENO" 5; }
3942 fi
3943 rm -f conftest$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3946
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3949 ac_exeext=$EXEEXT
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3951 $as_echo_n "checking for suffix of object files... " >&6; }
3952 if test "${ac_cv_objext+set}" = set; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.o conftest.obj
3967 if { { ac_try="$ac_compile"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974   (eval "$ac_compile") 2>&5
3975   ac_status=$?
3976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977   test $ac_status = 0; }; then :
3978   for ac_file in conftest.o conftest.obj conftest.*; do
3979   test -f "$ac_file" || continue;
3980   case $ac_file in
3981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3983        break;;
3984   esac
3985 done
3986 else
3987   $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error "cannot compute suffix of object files: cannot compile
3993 See \`config.log' for more details." "$LINENO" 5; }
3994 fi
3995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3998 $as_echo "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext
4000 ac_objext=$OBJEXT
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4004   $as_echo_n "(cached) " >&6
4005 else
4006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h.  */
4008
4009 int
4010 main ()
4011 {
4012 #ifndef __GNUC__
4013        choke me
4014 #endif
4015
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021   ac_compiler_gnu=yes
4022 else
4023   ac_compiler_gnu=no
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then
4032   GCC=yes
4033 else
4034   GCC=
4035 fi
4036 ac_test_CFLAGS=${CFLAGS+set}
4037 ac_save_CFLAGS=$CFLAGS
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4040 if test "${ac_cv_prog_cc_g+set}" = set; then :
4041   $as_echo_n "(cached) " >&6
4042 else
4043   ac_save_c_werror_flag=$ac_c_werror_flag
4044    ac_c_werror_flag=yes
4045    ac_cv_prog_cc_g=no
4046    CFLAGS="-g"
4047    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059   ac_cv_prog_cc_g=yes
4060 else
4061   CFLAGS=""
4062       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064
4065 int
4066 main ()
4067 {
4068
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"; then :
4074
4075 else
4076   ac_c_werror_flag=$ac_save_c_werror_flag
4077          CFLAGS="-g"
4078          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h.  */
4080
4081 int
4082 main ()
4083 {
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090   ac_cv_prog_cc_g=yes
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097    ac_c_werror_flag=$ac_save_c_werror_flag
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4100 $as_echo "$ac_cv_prog_cc_g" >&6; }
4101 if test "$ac_test_CFLAGS" = set; then
4102   CFLAGS=$ac_save_CFLAGS
4103 elif test $ac_cv_prog_cc_g = yes; then
4104   if test "$GCC" = yes; then
4105     CFLAGS="-g -O2"
4106   else
4107     CFLAGS="-g"
4108   fi
4109 else
4110   if test "$GCC" = yes; then
4111     CFLAGS="-O2"
4112   else
4113     CFLAGS=
4114   fi
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4117 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4118 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   ac_cv_prog_cc_c89=no
4122 ac_save_CC=$CC
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h.  */
4125 #include <stdarg.h>
4126 #include <stdio.h>
4127 #include <sys/types.h>
4128 #include <sys/stat.h>
4129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4130 struct buf { int x; };
4131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4132 static char *e (p, i)
4133      char **p;
4134      int i;
4135 {
4136   return p[i];
4137 }
4138 static char *f (char * (*g) (char **, int), char **p, ...)
4139 {
4140   char *s;
4141   va_list v;
4142   va_start (v,p);
4143   s = g (p, va_arg (v,int));
4144   va_end (v);
4145   return s;
4146 }
4147
4148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4149    function prototypes and stuff, but not '\xHH' hex character constants.
4150    These don't provoke an error unfortunately, instead are silently treated
4151    as 'x'.  The following induces an error, until -std is added to get
4152    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4153    array size at least.  It's necessary to write '\x00'==0 to get something
4154    that's true only with -std.  */
4155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4156
4157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4158    inside strings and character constants.  */
4159 #define FOO(x) 'x'
4160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4161
4162 int test (int i, double x);
4163 struct s1 {int (*f) (int a);};
4164 struct s2 {int (*f) (double a);};
4165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4166 int argc;
4167 char **argv;
4168 int
4169 main ()
4170 {
4171 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4177         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4178 do
4179   CC="$ac_save_CC $ac_arg"
4180   if ac_fn_c_try_compile "$LINENO"; then :
4181   ac_cv_prog_cc_c89=$ac_arg
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext
4184   test "x$ac_cv_prog_cc_c89" != "xno" && break
4185 done
4186 rm -f conftest.$ac_ext
4187 CC=$ac_save_CC
4188
4189 fi
4190 # AC_CACHE_VAL
4191 case "x$ac_cv_prog_cc_c89" in
4192   x)
4193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194 $as_echo "none needed" >&6; } ;;
4195   xno)
4196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197 $as_echo "unsupported" >&6; } ;;
4198   *)
4199     CC="$CC $ac_cv_prog_cc_c89"
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4202 esac
4203 if test "x$ac_cv_prog_cc_c89" != xno; then :
4204
4205 fi
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 if test "x$CC" != xcc; then
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4215 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4216 else
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4218 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4219 fi
4220 set dummy $CC; ac_cc=`$as_echo "$2" |
4221                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4222 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h.  */
4227
4228 int
4229 main ()
4230 {
4231
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 # Make sure it works both with $CC and with simple cc.
4237 # We do the test twice because some compilers refuse to overwrite an
4238 # existing .o file with -o, though they will create one.
4239 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4240 rm -f conftest2.*
4241 if { { case "(($ac_try" in
4242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243   *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247   (eval "$ac_try") 2>&5
4248   ac_status=$?
4249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250   test $ac_status = 0; } &&
4251    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257   (eval "$ac_try") 2>&5
4258   ac_status=$?
4259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260   test $ac_status = 0; };
4261 then
4262   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4263   if test "x$CC" != xcc; then
4264     # Test first that cc exists at all.
4265     if { ac_try='cc -c conftest.$ac_ext >&5'
4266   { { case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272   (eval "$ac_try") 2>&5
4273   ac_status=$?
4274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275   test $ac_status = 0; }; }; then
4276       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4277       rm -f conftest2.*
4278       if { { case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284   (eval "$ac_try") 2>&5
4285   ac_status=$?
4286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287   test $ac_status = 0; } &&
4288          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294   (eval "$ac_try") 2>&5
4295   ac_status=$?
4296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297   test $ac_status = 0; };
4298       then
4299         # cc works too.
4300         :
4301       else
4302         # cc exists but doesn't like -o.
4303         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4304       fi
4305     fi
4306   fi
4307 else
4308   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4309 fi
4310 rm -f core conftest*
4311
4312 fi
4313 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4315 $as_echo "yes" >&6; }
4316 else
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319
4320 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4321
4322 fi
4323
4324 # expand $ac_aux_dir to an absolute path
4325 am_aux_dir=`cd $ac_aux_dir && pwd`
4326
4327 # FIXME: we rely on the cache variable name because
4328 # there is no other way.
4329 set dummy $CC
4330 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4331 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4332 if test "$am_t" != yes; then
4333    # Losing compiler, so override with the script.
4334    # FIXME: It is wrong to rewrite CC.
4335    # But if we don't then we get into trouble of one sort or another.
4336    # A longer-term fix would be to have automake use am__CC in this case,
4337    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4338    CC="$am_aux_dir/compile $CC"
4339 fi
4340
4341
4342 ac_ext=cpp
4343 ac_cpp='$CXXCPP $CPPFLAGS'
4344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4347 if test -z "$CXX"; then
4348   if test -n "$CCC"; then
4349     CXX=$CCC
4350   else
4351     if test -n "$ac_tool_prefix"; then
4352   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4353   do
4354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_prog_CXX+set}" = set; then :
4359   $as_echo_n "(cached) " >&6
4360 else
4361   if test -n "$CXX"; then
4362   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367   IFS=$as_save_IFS
4368   test -z "$as_dir" && as_dir=.
4369     for ac_exec_ext in '' $ac_executable_extensions; do
4370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376   done
4377 IFS=$as_save_IFS
4378
4379 fi
4380 fi
4381 CXX=$ac_cv_prog_CXX
4382 if test -n "$CXX"; then
4383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4384 $as_echo "$CXX" >&6; }
4385 else
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389
4390
4391     test -n "$CXX" && break
4392   done
4393 fi
4394 if test -z "$CXX"; then
4395   ac_ct_CXX=$CXX
4396   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4397 do
4398   # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4403   $as_echo_n "(cached) " >&6
4404 else
4405   if test -n "$ac_ct_CXX"; then
4406   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413     for ac_exec_ext in '' $ac_executable_extensions; do
4414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415     ac_cv_prog_ac_ct_CXX="$ac_prog"
4416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420   done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4426 if test -n "$ac_ct_CXX"; then
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4428 $as_echo "$ac_ct_CXX" >&6; }
4429 else
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435   test -n "$ac_ct_CXX" && break
4436 done
4437
4438   if test "x$ac_ct_CXX" = x; then
4439     CXX="g++"
4440   else
4441     case $cross_compiling:$ac_tool_warned in
4442 yes:)
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4446 esac
4447     CXX=$ac_ct_CXX
4448   fi
4449 fi
4450
4451   fi
4452 fi
4453 # Provide some information about the compiler.
4454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4455 set X $ac_compile
4456 ac_compiler=$2
4457 for ac_option in --version -v -V -qversion; do
4458   { { ac_try="$ac_compiler $ac_option >&5"
4459 case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4466   ac_status=$?
4467   if test -s conftest.err; then
4468     sed '10a\
4469 ... rest of stderr output deleted ...
4470          10q' conftest.err >conftest.er1
4471     cat conftest.er1 >&5
4472     rm -f conftest.er1 conftest.err
4473   fi
4474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475   test $ac_status = 0; }
4476 done
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4479 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4480 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h.  */
4485
4486 int
4487 main ()
4488 {
4489 #ifndef __GNUC__
4490        choke me
4491 #endif
4492
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_cxx_try_compile "$LINENO"; then :
4498   ac_compiler_gnu=yes
4499 else
4500   ac_compiler_gnu=no
4501 fi
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4504
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4507 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4508 if test $ac_compiler_gnu = yes; then
4509   GXX=yes
4510 else
4511   GXX=
4512 fi
4513 ac_test_CXXFLAGS=${CXXFLAGS+set}
4514 ac_save_CXXFLAGS=$CXXFLAGS
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4516 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4517 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4521    ac_cxx_werror_flag=yes
4522    ac_cv_prog_cxx_g=no
4523    CXXFLAGS="-g"
4524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536   ac_cv_prog_cxx_g=yes
4537 else
4538   CXXFLAGS=""
4539       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h.  */
4541
4542 int
4543 main ()
4544 {
4545
4546   ;
4547   return 0;
4548 }
4549 _ACEOF
4550 if ac_fn_cxx_try_compile "$LINENO"; then :
4551
4552 else
4553   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4554          CXXFLAGS="-g"
4555          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h.  */
4557
4558 int
4559 main ()
4560 {
4561
4562   ;
4563   return 0;
4564 }
4565 _ACEOF
4566 if ac_fn_cxx_try_compile "$LINENO"; then :
4567   ac_cv_prog_cxx_g=yes
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4577 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4578 if test "$ac_test_CXXFLAGS" = set; then
4579   CXXFLAGS=$ac_save_CXXFLAGS
4580 elif test $ac_cv_prog_cxx_g = yes; then
4581   if test "$GXX" = yes; then
4582     CXXFLAGS="-g -O2"
4583   else
4584     CXXFLAGS="-g"
4585   fi
4586 else
4587   if test "$GXX" = yes; then
4588     CXXFLAGS="-O2"
4589   else
4590     CXXFLAGS=
4591   fi
4592 fi
4593 ac_ext=c
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599
4600
4601
4602 if test -n "$ac_tool_prefix"; then
4603   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610   if test -n "$GNATBIND"; then
4611   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618     for ac_exec_ext in '' $ac_executable_extensions; do
4619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622     break 2
4623   fi
4624 done
4625   done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 GNATBIND=$ac_cv_prog_GNATBIND
4631 if test -n "$GNATBIND"; then
4632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4633 $as_echo "$GNATBIND" >&6; }
4634 else
4635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638
4639
4640 fi
4641 if test -z "$ac_cv_prog_GNATBIND"; then
4642   ac_ct_GNATBIND=$GNATBIND
4643   # Extract the first word of "gnatbind", so it can be a program name with args.
4644 set dummy gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4648   $as_echo_n "(cached) " >&6
4649 else
4650   if test -n "$ac_ct_GNATBIND"; then
4651   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665   done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4671 if test -n "$ac_ct_GNATBIND"; then
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4673 $as_echo "$ac_ct_GNATBIND" >&6; }
4674 else
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679   if test "x$ac_ct_GNATBIND" = x; then
4680     GNATBIND="no"
4681   else
4682     case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688     GNATBIND=$ac_ct_GNATBIND
4689   fi
4690 else
4691   GNATBIND="$ac_cv_prog_GNATBIND"
4692 fi
4693
4694 if test -n "$ac_tool_prefix"; then
4695   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test -n "$GNATMAKE"; then
4703   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710     for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717   done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 GNATMAKE=$ac_cv_prog_GNATMAKE
4723 if test -n "$GNATMAKE"; then
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4725 $as_echo "$GNATMAKE" >&6; }
4726 else
4727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732 fi
4733 if test -z "$ac_cv_prog_GNATMAKE"; then
4734   ac_ct_GNATMAKE=$GNATMAKE
4735   # Extract the first word of "gnatmake", so it can be a program name with args.
4736 set dummy gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   if test -n "$ac_ct_GNATMAKE"; then
4743   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757   done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4763 if test -n "$ac_ct_GNATMAKE"; then
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4765 $as_echo "$ac_ct_GNATMAKE" >&6; }
4766 else
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771   if test "x$ac_ct_GNATMAKE" = x; then
4772     GNATMAKE="no"
4773   else
4774     case $cross_compiling:$ac_tool_warned in
4775 yes:)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4779 esac
4780     GNATMAKE=$ac_ct_GNATMAKE
4781   fi
4782 else
4783   GNATMAKE="$ac_cv_prog_GNATMAKE"
4784 fi
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4787 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4788 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   cat >conftest.adb <<EOF
4792 procedure conftest is begin null; end conftest;
4793 EOF
4794 acx_cv_cc_gcc_supports_ada=no
4795 # There is a bug in old released versions of GCC which causes the
4796 # driver to exit successfully when the appropriate language module
4797 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4798 # Therefore we must check for the error message as well as an
4799 # unsuccessful exit.
4800 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4801 # given a .adb file, but produce no object file.  So we must check
4802 # if an object file was really produced to guard against this.
4803 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4804 if test x"$errors" = x && test -f conftest.$ac_objext; then
4805   acx_cv_cc_gcc_supports_ada=yes
4806 fi
4807 rm -f conftest.*
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4810 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4811
4812 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4813   have_gnat=yes
4814 else
4815   have_gnat=no
4816 fi
4817
4818
4819 # autoconf is lame and doesn't give us any substitution variable for this.
4820 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4821   NO_MINUS_C_MINUS_O=yes
4822 else
4823   OUTPUT_OPTION='-o $@'
4824 fi
4825
4826
4827
4828 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4829 # optimizations to be activated explicitly by the toplevel.
4830 case "$CC" in
4831   */prev-gcc/xgcc*) ;;
4832   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4833 esac
4834
4835
4836 # -------------------------
4837 # Check C compiler features
4838 # -------------------------
4839
4840
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4848 # On Suns, sometimes $CPP names a directory.
4849 if test -n "$CPP" && test -d "$CPP"; then
4850   CPP=
4851 fi
4852 if test -z "$CPP"; then
4853   if test "${ac_cv_prog_CPP+set}" = set; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856       # Double quotes because CPP needs to be expanded
4857     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4858     do
4859       ac_preproc_ok=false
4860 for ac_c_preproc_warn_flag in '' yes
4861 do
4862   # Use a header file that comes with gcc, so configuring glibc
4863   # with a fresh cross-compiler works.
4864   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865   # <limits.h> exists even on freestanding compilers.
4866   # On the NeXT, cc -E runs the code through the compiler's parser,
4867   # not just through cpp. "Syntax error" is here to catch this case.
4868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h.  */
4870 #ifdef __STDC__
4871 # include <limits.h>
4872 #else
4873 # include <assert.h>
4874 #endif
4875                      Syntax error
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878
4879 else
4880   # Broken: fails on valid input.
4881 continue
4882 fi
4883 rm -f conftest.err conftest.$ac_ext
4884
4885   # OK, works on sane cases.  Now check whether nonexistent headers
4886   # can be detected and how.
4887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h.  */
4889 #include <ac_nonexistent.h>
4890 _ACEOF
4891 if ac_fn_c_try_cpp "$LINENO"; then :
4892   # Broken: success on invalid input.
4893 continue
4894 else
4895   # Passes both tests.
4896 ac_preproc_ok=:
4897 break
4898 fi
4899 rm -f conftest.err conftest.$ac_ext
4900
4901 done
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then :
4905   break
4906 fi
4907
4908     done
4909     ac_cv_prog_CPP=$CPP
4910
4911 fi
4912   CPP=$ac_cv_prog_CPP
4913 else
4914   ac_cv_prog_CPP=$CPP
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4917 $as_echo "$CPP" >&6; }
4918 ac_preproc_ok=false
4919 for ac_c_preproc_warn_flag in '' yes
4920 do
4921   # Use a header file that comes with gcc, so configuring glibc
4922   # with a fresh cross-compiler works.
4923   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924   # <limits.h> exists even on freestanding compilers.
4925   # On the NeXT, cc -E runs the code through the compiler's parser,
4926   # not just through cpp. "Syntax error" is here to catch this case.
4927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h.  */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934                      Syntax error
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937
4938 else
4939   # Broken: fails on valid input.
4940 continue
4941 fi
4942 rm -f conftest.err conftest.$ac_ext
4943
4944   # OK, works on sane cases.  Now check whether nonexistent headers
4945   # can be detected and how.
4946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h.  */
4948 #include <ac_nonexistent.h>
4949 _ACEOF
4950 if ac_fn_c_try_cpp "$LINENO"; then :
4951   # Broken: success on invalid input.
4952 continue
4953 else
4954   # Passes both tests.
4955 ac_preproc_ok=:
4956 break
4957 fi
4958 rm -f conftest.err conftest.$ac_ext
4959
4960 done
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.$ac_ext
4963 if $ac_preproc_ok; then :
4964
4965 else
4966   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details." "$LINENO" 5; }
4970 fi
4971
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4980 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4981 if test "${ac_cv_path_GREP+set}" = set; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   if test -z "$GREP"; then
4985   ac_path_GREP_found=false
4986   # Loop through the user's path and test for each of PROGNAME-LIST
4987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992     for ac_prog in grep ggrep; do
4993     for ac_exec_ext in '' $ac_executable_extensions; do
4994       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4995       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4996 # Check for GNU ac_path_GREP and select it if it is found.
4997   # Check for GNU $ac_path_GREP
4998 case `"$ac_path_GREP" --version 2>&1` in
4999 *GNU*)
5000   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5001 *)
5002   ac_count=0
5003   $as_echo_n 0123456789 >"conftest.in"
5004   while :
5005   do
5006     cat "conftest.in" "conftest.in" >"conftest.tmp"
5007     mv "conftest.tmp" "conftest.in"
5008     cp "conftest.in" "conftest.nl"
5009     $as_echo 'GREP' >> "conftest.nl"
5010     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012     as_fn_arith $ac_count + 1 && ac_count=$as_val
5013     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5014       # Best one so far, save it but keep looking for a better one
5015       ac_cv_path_GREP="$ac_path_GREP"
5016       ac_path_GREP_max=$ac_count
5017     fi
5018     # 10*(2^10) chars as input seems more than enough
5019     test $ac_count -gt 10 && break
5020   done
5021   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022 esac
5023
5024       $ac_path_GREP_found && break 3
5025     done
5026   done
5027   done
5028 IFS=$as_save_IFS
5029   if test -z "$ac_cv_path_GREP"; then
5030     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5031   fi
5032 else
5033   ac_cv_path_GREP=$GREP
5034 fi
5035
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5038 $as_echo "$ac_cv_path_GREP" >&6; }
5039  GREP="$ac_cv_path_GREP"
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5043 $as_echo_n "checking for egrep... " >&6; }
5044 if test "${ac_cv_path_EGREP+set}" = set; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5048    then ac_cv_path_EGREP="$GREP -E"
5049    else
5050      if test -z "$EGREP"; then
5051   ac_path_EGREP_found=false
5052   # Loop through the user's path and test for each of PROGNAME-LIST
5053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058     for ac_prog in egrep; do
5059     for ac_exec_ext in '' $ac_executable_extensions; do
5060       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5061       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5062 # Check for GNU ac_path_EGREP and select it if it is found.
5063   # Check for GNU $ac_path_EGREP
5064 case `"$ac_path_EGREP" --version 2>&1` in
5065 *GNU*)
5066   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5067 *)
5068   ac_count=0
5069   $as_echo_n 0123456789 >"conftest.in"
5070   while :
5071   do
5072     cat "conftest.in" "conftest.in" >"conftest.tmp"
5073     mv "conftest.tmp" "conftest.in"
5074     cp "conftest.in" "conftest.nl"
5075     $as_echo 'EGREP' >> "conftest.nl"
5076     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5077     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5078     as_fn_arith $ac_count + 1 && ac_count=$as_val
5079     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5080       # Best one so far, save it but keep looking for a better one
5081       ac_cv_path_EGREP="$ac_path_EGREP"
5082       ac_path_EGREP_max=$ac_count
5083     fi
5084     # 10*(2^10) chars as input seems more than enough
5085     test $ac_count -gt 10 && break
5086   done
5087   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5088 esac
5089
5090       $ac_path_EGREP_found && break 3
5091     done
5092   done
5093   done
5094 IFS=$as_save_IFS
5095   if test -z "$ac_cv_path_EGREP"; then
5096     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097   fi
5098 else
5099   ac_cv_path_EGREP=$EGREP
5100 fi
5101
5102    fi
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5105 $as_echo "$ac_cv_path_EGREP" >&6; }
5106  EGREP="$ac_cv_path_EGREP"
5107
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5110 $as_echo_n "checking for ANSI C header files... " >&6; }
5111 if test "${ac_cv_header_stdc+set}" = set; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h.  */
5116 #include <stdlib.h>
5117 #include <stdarg.h>
5118 #include <string.h>
5119 #include <float.h>
5120
5121 int
5122 main ()
5123 {
5124
5125   ;
5126   return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130   ac_cv_header_stdc=yes
5131 else
5132   ac_cv_header_stdc=no
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135
5136 if test $ac_cv_header_stdc = yes; then
5137   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h.  */
5140 #include <string.h>
5141
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144   $EGREP "memchr" >/dev/null 2>&1; then :
5145
5146 else
5147   ac_cv_header_stdc=no
5148 fi
5149 rm -f conftest*
5150
5151 fi
5152
5153 if test $ac_cv_header_stdc = yes; then
5154   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #include <stdlib.h>
5158
5159 _ACEOF
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161   $EGREP "free" >/dev/null 2>&1; then :
5162
5163 else
5164   ac_cv_header_stdc=no
5165 fi
5166 rm -f conftest*
5167
5168 fi
5169
5170 if test $ac_cv_header_stdc = yes; then
5171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172   if test "$cross_compiling" = yes; then :
5173   :
5174 else
5175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h.  */
5177 #include <ctype.h>
5178 #include <stdlib.h>
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5182 #else
5183 # define ISLOWER(c) \
5184                    (('a' <= (c) && (c) <= 'i') \
5185                      || ('j' <= (c) && (c) <= 'r') \
5186                      || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5188 #endif
5189
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5191 int
5192 main ()
5193 {
5194   int i;
5195   for (i = 0; i < 256; i++)
5196     if (XOR (islower (i), ISLOWER (i))
5197         || toupper (i) != TOUPPER (i))
5198       return 2;
5199   return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_run "$LINENO"; then :
5203
5204 else
5205   ac_cv_header_stdc=no
5206 fi
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5208   conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 fi
5210
5211 fi
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5216
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5218
5219 fi
5220
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5223                   inttypes.h stdint.h unistd.h
5224 do :
5225   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5227 "
5228 eval as_val=\$$as_ac_Header
5229    if test "x$as_val" = x""yes; then :
5230   cat >>confdefs.h <<_ACEOF
5231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232 _ACEOF
5233
5234 fi
5235
5236 done
5237
5238
5239
5240   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5242   MINIX=yes
5243 else
5244   MINIX=
5245 fi
5246
5247
5248   if test "$MINIX" = yes; then
5249
5250 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5251
5252
5253 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5254
5255
5256 $as_echo "#define _MINIX 1" >>confdefs.h
5257
5258   fi
5259
5260
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5262 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5263 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h.  */
5268
5269 #         define __EXTENSIONS__ 1
5270           $ac_includes_default
5271 int
5272 main ()
5273 {
5274
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280   ac_cv_safe_to_define___extensions__=yes
5281 else
5282   ac_cv_safe_to_define___extensions__=no
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5287 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5288   test $ac_cv_safe_to_define___extensions__ = yes &&
5289     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5290
5291   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5292
5293   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5294
5295   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5296
5297   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5298
5299
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5307 # On Suns, sometimes $CPP names a directory.
5308 if test -n "$CPP" && test -d "$CPP"; then
5309   CPP=
5310 fi
5311 if test -z "$CPP"; then
5312   if test "${ac_cv_prog_CPP+set}" = set; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315       # Double quotes because CPP needs to be expanded
5316     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5317     do
5318       ac_preproc_ok=false
5319 for ac_c_preproc_warn_flag in '' yes
5320 do
5321   # Use a header file that comes with gcc, so configuring glibc
5322   # with a fresh cross-compiler works.
5323   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324   # <limits.h> exists even on freestanding compilers.
5325   # On the NeXT, cc -E runs the code through the compiler's parser,
5326   # not just through cpp. "Syntax error" is here to catch this case.
5327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h.  */
5329 #ifdef __STDC__
5330 # include <limits.h>
5331 #else
5332 # include <assert.h>
5333 #endif
5334                      Syntax error
5335 _ACEOF
5336 if ac_fn_c_try_cpp "$LINENO"; then :
5337
5338 else
5339   # Broken: fails on valid input.
5340 continue
5341 fi
5342 rm -f conftest.err conftest.$ac_ext
5343
5344   # OK, works on sane cases.  Now check whether nonexistent headers
5345   # can be detected and how.
5346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h.  */
5348 #include <ac_nonexistent.h>
5349 _ACEOF
5350 if ac_fn_c_try_cpp "$LINENO"; then :
5351   # Broken: success on invalid input.
5352 continue
5353 else
5354   # Passes both tests.
5355 ac_preproc_ok=:
5356 break
5357 fi
5358 rm -f conftest.err conftest.$ac_ext
5359
5360 done
5361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362 rm -f conftest.err conftest.$ac_ext
5363 if $ac_preproc_ok; then :
5364   break
5365 fi
5366
5367     done
5368     ac_cv_prog_CPP=$CPP
5369
5370 fi
5371   CPP=$ac_cv_prog_CPP
5372 else
5373   ac_cv_prog_CPP=$CPP
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5376 $as_echo "$CPP" >&6; }
5377 ac_preproc_ok=false
5378 for ac_c_preproc_warn_flag in '' yes
5379 do
5380   # Use a header file that comes with gcc, so configuring glibc
5381   # with a fresh cross-compiler works.
5382   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383   # <limits.h> exists even on freestanding compilers.
5384   # On the NeXT, cc -E runs the code through the compiler's parser,
5385   # not just through cpp. "Syntax error" is here to catch this case.
5386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h.  */
5388 #ifdef __STDC__
5389 # include <limits.h>
5390 #else
5391 # include <assert.h>
5392 #endif
5393                      Syntax error
5394 _ACEOF
5395 if ac_fn_c_try_cpp "$LINENO"; then :
5396
5397 else
5398   # Broken: fails on valid input.
5399 continue
5400 fi
5401 rm -f conftest.err conftest.$ac_ext
5402
5403   # OK, works on sane cases.  Now check whether nonexistent headers
5404   # can be detected and how.
5405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h.  */
5407 #include <ac_nonexistent.h>
5408 _ACEOF
5409 if ac_fn_c_try_cpp "$LINENO"; then :
5410   # Broken: success on invalid input.
5411 continue
5412 else
5413   # Passes both tests.
5414 ac_preproc_ok=:
5415 break
5416 fi
5417 rm -f conftest.err conftest.$ac_ext
5418
5419 done
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.$ac_ext
5422 if $ac_preproc_ok; then :
5423
5424 else
5425   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." "$LINENO" 5; }
5429 fi
5430
5431 ac_ext=c
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5438 $as_echo_n "checking for inline... " >&6; }
5439 if test "${ac_cv_c_inline+set}" = set; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   ac_cv_c_inline=no
5443 for ac_kw in inline __inline__ __inline; do
5444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h.  */
5446 #ifndef __cplusplus
5447 typedef int foo_t;
5448 static $ac_kw foo_t static_foo () {return 0; }
5449 $ac_kw foo_t foo () {return 0; }
5450 #endif
5451
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454   ac_cv_c_inline=$ac_kw
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457   test "$ac_cv_c_inline" != no && break
5458 done
5459
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5462 $as_echo "$ac_cv_c_inline" >&6; }
5463
5464 case $ac_cv_c_inline in
5465   inline | yes) ;;
5466   *)
5467     case $ac_cv_c_inline in
5468       no) ac_val=;;
5469       *) ac_val=$ac_cv_c_inline;;
5470     esac
5471     cat >>confdefs.h <<_ACEOF
5472 #ifndef __cplusplus
5473 #define inline $ac_val
5474 #endif
5475 _ACEOF
5476     ;;
5477 esac
5478
5479
5480 # Check whether --enable-largefile was given.
5481 if test "${enable_largefile+set}" = set; then :
5482   enableval=$enable_largefile;
5483 fi
5484
5485 if test "$enable_largefile" != no; then
5486
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5488 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5489 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   ac_cv_sys_largefile_CC=no
5493      if test "$GCC" != yes; then
5494        ac_save_CC=$CC
5495        while :; do
5496          # IRIX 6.2 and later do not support large files by default,
5497          # so use the C compiler's -n32 option if that helps.
5498          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h.  */
5500 #include <sys/types.h>
5501  /* Check that off_t can represent 2**63 - 1 correctly.
5502     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503     since some C++ compilers masquerading as C compilers
5504     incorrectly reject 9223372036854775807.  */
5505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507                        && LARGE_OFF_T % 2147483647 == 1)
5508                       ? 1 : -1];
5509 int
5510 main ()
5511 {
5512
5513   ;
5514   return 0;
5515 }
5516 _ACEOF
5517          if ac_fn_c_try_compile "$LINENO"; then :
5518   break
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext
5521          CC="$CC -n32"
5522          if ac_fn_c_try_compile "$LINENO"; then :
5523   ac_cv_sys_largefile_CC=' -n32'; break
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext
5526          break
5527        done
5528        CC=$ac_save_CC
5529        rm -f conftest.$ac_ext
5530     fi
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5533 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5534   if test "$ac_cv_sys_largefile_CC" != no; then
5535     CC=$CC$ac_cv_sys_largefile_CC
5536   fi
5537
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5539 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5540 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   while :; do
5544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h.  */
5546 #include <sys/types.h>
5547  /* Check that off_t can represent 2**63 - 1 correctly.
5548     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5549     since some C++ compilers masquerading as C compilers
5550     incorrectly reject 9223372036854775807.  */
5551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5552   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5553                        && LARGE_OFF_T % 2147483647 == 1)
5554                       ? 1 : -1];
5555 int
5556 main ()
5557 {
5558
5559   ;
5560   return 0;
5561 }
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564   ac_cv_sys_file_offset_bits=no; break
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h.  */
5569 #define _FILE_OFFSET_BITS 64
5570 #include <sys/types.h>
5571  /* Check that off_t can represent 2**63 - 1 correctly.
5572     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5573     since some C++ compilers masquerading as C compilers
5574     incorrectly reject 9223372036854775807.  */
5575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5576   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5577                        && LARGE_OFF_T % 2147483647 == 1)
5578                       ? 1 : -1];
5579 int
5580 main ()
5581 {
5582
5583   ;
5584   return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588   ac_cv_sys_file_offset_bits=64; break
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591   ac_cv_sys_file_offset_bits=unknown
5592   break
5593 done
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5596 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5597 case $ac_cv_sys_file_offset_bits in #(
5598   no | unknown) ;;
5599   *)
5600 cat >>confdefs.h <<_ACEOF
5601 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5602 _ACEOF
5603 ;;
5604 esac
5605 rm -rf conftest*
5606   if test $ac_cv_sys_file_offset_bits = unknown; then
5607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5608 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5609 if test "${ac_cv_sys_large_files+set}" = set; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   while :; do
5613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h.  */
5615 #include <sys/types.h>
5616  /* Check that off_t can represent 2**63 - 1 correctly.
5617     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5618     since some C++ compilers masquerading as C compilers
5619     incorrectly reject 9223372036854775807.  */
5620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5621   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5622                        && LARGE_OFF_T % 2147483647 == 1)
5623                       ? 1 : -1];
5624 int
5625 main ()
5626 {
5627
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633   ac_cv_sys_large_files=no; break
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h.  */
5638 #define _LARGE_FILES 1
5639 #include <sys/types.h>
5640  /* Check that off_t can represent 2**63 - 1 correctly.
5641     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642     since some C++ compilers masquerading as C compilers
5643     incorrectly reject 9223372036854775807.  */
5644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646                        && LARGE_OFF_T % 2147483647 == 1)
5647                       ? 1 : -1];
5648 int
5649 main ()
5650 {
5651
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657   ac_cv_sys_large_files=1; break
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660   ac_cv_sys_large_files=unknown
5661   break
5662 done
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5665 $as_echo "$ac_cv_sys_large_files" >&6; }
5666 case $ac_cv_sys_large_files in #(
5667   no | unknown) ;;
5668   *)
5669 cat >>confdefs.h <<_ACEOF
5670 #define _LARGE_FILES $ac_cv_sys_large_files
5671 _ACEOF
5672 ;;
5673 esac
5674 rm -rf conftest*
5675   fi
5676 fi
5677
5678
5679 # sizeof(char) is 1 by definition.
5680 # The cast to long int works around a bug in the HP C Compiler
5681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683 # This bug is HP SR number 8606223364.
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5685 $as_echo_n "checking size of void *... " >&6; }
5686 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5690
5691 else
5692   if test "$ac_cv_type_void_p" = yes; then
5693      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 { as_fn_set_status 77
5696 as_fn_error "cannot compute sizeof (void *)
5697 See \`config.log' for more details." "$LINENO" 5; }; }
5698    else
5699      ac_cv_sizeof_void_p=0
5700    fi
5701 fi
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5705 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5706
5707
5708
5709 cat >>confdefs.h <<_ACEOF
5710 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5711 _ACEOF
5712
5713
5714 # The cast to long int works around a bug in the HP C Compiler
5715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717 # This bug is HP SR number 8606223364.
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5719 $as_echo_n "checking size of short... " >&6; }
5720 if test "${ac_cv_sizeof_short+set}" = set; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5724
5725 else
5726   if test "$ac_cv_type_short" = yes; then
5727      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5729 { as_fn_set_status 77
5730 as_fn_error "cannot compute sizeof (short)
5731 See \`config.log' for more details." "$LINENO" 5; }; }
5732    else
5733      ac_cv_sizeof_short=0
5734    fi
5735 fi
5736
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5739 $as_echo "$ac_cv_sizeof_short" >&6; }
5740
5741
5742
5743 cat >>confdefs.h <<_ACEOF
5744 #define SIZEOF_SHORT $ac_cv_sizeof_short
5745 _ACEOF
5746
5747
5748 # The cast to long int works around a bug in the HP C Compiler
5749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5751 # This bug is HP SR number 8606223364.
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5753 $as_echo_n "checking size of int... " >&6; }
5754 if test "${ac_cv_sizeof_int+set}" = set; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5758
5759 else
5760   if test "$ac_cv_type_int" = yes; then
5761      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5763 { as_fn_set_status 77
5764 as_fn_error "cannot compute sizeof (int)
5765 See \`config.log' for more details." "$LINENO" 5; }; }
5766    else
5767      ac_cv_sizeof_int=0
5768    fi
5769 fi
5770
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5773 $as_echo "$ac_cv_sizeof_int" >&6; }
5774
5775
5776
5777 cat >>confdefs.h <<_ACEOF
5778 #define SIZEOF_INT $ac_cv_sizeof_int
5779 _ACEOF
5780
5781
5782 # The cast to long int works around a bug in the HP C Compiler
5783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5785 # This bug is HP SR number 8606223364.
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5787 $as_echo_n "checking size of long... " >&6; }
5788 if test "${ac_cv_sizeof_long+set}" = set; then :
5789   $as_echo_n "(cached) " >&6
5790 else
5791   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5792
5793 else
5794   if test "$ac_cv_type_long" = yes; then
5795      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5797 { as_fn_set_status 77
5798 as_fn_error "cannot compute sizeof (long)
5799 See \`config.log' for more details." "$LINENO" 5; }; }
5800    else
5801      ac_cv_sizeof_long=0
5802    fi
5803 fi
5804
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5807 $as_echo "$ac_cv_sizeof_long" >&6; }
5808
5809
5810
5811 cat >>confdefs.h <<_ACEOF
5812 #define SIZEOF_LONG $ac_cv_sizeof_long
5813 _ACEOF
5814
5815
5816 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5817 if test "x$ac_cv_type_long_long" = x""yes; then :
5818
5819 cat >>confdefs.h <<_ACEOF
5820 #define HAVE_LONG_LONG 1
5821 _ACEOF
5822
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5828 $as_echo_n "checking size of long long... " >&6; }
5829 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5833
5834 else
5835   if test "$ac_cv_type_long_long" = yes; then
5836      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { as_fn_set_status 77
5839 as_fn_error "cannot compute sizeof (long long)
5840 See \`config.log' for more details." "$LINENO" 5; }; }
5841    else
5842      ac_cv_sizeof_long_long=0
5843    fi
5844 fi
5845
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5848 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5849
5850
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5854 _ACEOF
5855
5856
5857 fi
5858
5859 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5860 if test "x$ac_cv_type___int64" = x""yes; then :
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define HAVE___INT64 1
5864 _ACEOF
5865
5866 # The cast to long int works around a bug in the HP C Compiler
5867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5869 # This bug is HP SR number 8606223364.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5871 $as_echo_n "checking size of __int64... " >&6; }
5872 if test "${ac_cv_sizeof___int64+set}" = set; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5876
5877 else
5878   if test "$ac_cv_type___int64" = yes; then
5879      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5881 { as_fn_set_status 77
5882 as_fn_error "cannot compute sizeof (__int64)
5883 See \`config.log' for more details." "$LINENO" 5; }; }
5884    else
5885      ac_cv_sizeof___int64=0
5886    fi
5887 fi
5888
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5891 $as_echo "$ac_cv_sizeof___int64" >&6; }
5892
5893
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5897 _ACEOF
5898
5899
5900 fi
5901
5902 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5903 case $ac_cv_c_int8_t in #(
5904   no|yes) ;; #(
5905   *)
5906
5907 cat >>confdefs.h <<_ACEOF
5908 #define int8_t $ac_cv_c_int8_t
5909 _ACEOF
5910 ;;
5911 esac
5912
5913 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5914 case $ac_cv_c_int16_t in #(
5915   no|yes) ;; #(
5916   *)
5917
5918 cat >>confdefs.h <<_ACEOF
5919 #define int16_t $ac_cv_c_int16_t
5920 _ACEOF
5921 ;;
5922 esac
5923
5924 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5925 case $ac_cv_c_int32_t in #(
5926   no|yes) ;; #(
5927   *)
5928
5929 cat >>confdefs.h <<_ACEOF
5930 #define int32_t $ac_cv_c_int32_t
5931 _ACEOF
5932 ;;
5933 esac
5934
5935 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5936 case $ac_cv_c_int64_t in #(
5937   no|yes) ;; #(
5938   *)
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define int64_t $ac_cv_c_int64_t
5942 _ACEOF
5943 ;;
5944 esac
5945
5946
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5948 $as_echo_n "checking for long long int... " >&6; }
5949 if test "${ac_cv_type_long_long_int+set}" = set; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h.  */
5954
5955   /* For now, do not test the preprocessor; as of 2007 there are too many
5956          implementations with broken preprocessors.  Perhaps this can
5957          be revisited in 2012.  In the meantime, code should not expect
5958          #if to work with literals wider than 32 bits.  */
5959       /* Test literals.  */
5960       long long int ll = 9223372036854775807ll;
5961       long long int nll = -9223372036854775807LL;
5962       unsigned long long int ull = 18446744073709551615ULL;
5963       /* Test constant expressions.   */
5964       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5965                      ? 1 : -1)];
5966       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5967                      ? 1 : -1)];
5968       int i = 63;
5969 int
5970 main ()
5971 {
5972 /* Test availability of runtime routines for shift and division.  */
5973       long long int llmax = 9223372036854775807ll;
5974       unsigned long long int ullmax = 18446744073709551615ull;
5975       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5976               | (llmax / ll) | (llmax % ll)
5977               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5978               | (ullmax / ull) | (ullmax % ull));
5979   ;
5980   return 0;
5981 }
5982
5983 _ACEOF
5984 if ac_fn_c_try_link "$LINENO"; then :
5985                         if test "$cross_compiling" = yes; then :
5986   ac_cv_type_long_long_int=yes
5987 else
5988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h.  */
5990 #include <limits.h>
5991                #ifndef LLONG_MAX
5992                # define HALF \
5993                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5994                # define LLONG_MAX (HALF - 1 + HALF)
5995                #endif
5996 int
5997 main ()
5998 {
5999 long long int n = 1;
6000                int i;
6001                for (i = 0; ; i++)
6002                  {
6003                    long long int m = n << i;
6004                    if (m >> i != n)
6005                      return 1;
6006                    if (LLONG_MAX / 2 < m)
6007                      break;
6008                  }
6009                return 0;
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 if ac_fn_c_try_run "$LINENO"; then :
6015   ac_cv_type_long_long_int=yes
6016 else
6017   ac_cv_type_long_long_int=no
6018 fi
6019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020   conftest.$ac_objext conftest.beam conftest.$ac_ext
6021 fi
6022
6023 else
6024   ac_cv_type_long_long_int=no
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext \
6027     conftest$ac_exeext conftest.$ac_ext
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6030 $as_echo "$ac_cv_type_long_long_int" >&6; }
6031   if test $ac_cv_type_long_long_int = yes; then
6032
6033 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6034
6035   fi
6036
6037
6038
6039   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6040 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6041
6042 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6043
6044 else
6045   test $ac_cv_type_long_long_int = yes \
6046        && ac_type='long long int' \
6047        || ac_type='long int'
6048
6049 cat >>confdefs.h <<_ACEOF
6050 #define intmax_t $ac_type
6051 _ACEOF
6052
6053 fi
6054
6055
6056
6057   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6058 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6059
6060 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6061
6062 else
6063   for ac_type in 'int' 'long int' 'long long int'; do
6064        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h.  */
6066 $ac_includes_default
6067 int
6068 main ()
6069 {
6070 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6071 test_array [0] = 0
6072
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078
6079 cat >>confdefs.h <<_ACEOF
6080 #define intptr_t $ac_type
6081 _ACEOF
6082
6083           ac_type=
6084 fi
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086        test -z "$ac_type" && break
6087      done
6088 fi
6089
6090
6091 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6092 case $ac_cv_c_uint8_t in #(
6093   no|yes) ;; #(
6094   *)
6095
6096 $as_echo "#define _UINT8_T 1" >>confdefs.h
6097
6098
6099 cat >>confdefs.h <<_ACEOF
6100 #define uint8_t $ac_cv_c_uint8_t
6101 _ACEOF
6102 ;;
6103   esac
6104
6105 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6106 case $ac_cv_c_uint16_t in #(
6107   no|yes) ;; #(
6108   *)
6109
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint16_t $ac_cv_c_uint16_t
6113 _ACEOF
6114 ;;
6115   esac
6116
6117 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6118 case $ac_cv_c_uint32_t in #(
6119   no|yes) ;; #(
6120   *)
6121
6122 $as_echo "#define _UINT32_T 1" >>confdefs.h
6123
6124
6125 cat >>confdefs.h <<_ACEOF
6126 #define uint32_t $ac_cv_c_uint32_t
6127 _ACEOF
6128 ;;
6129   esac
6130
6131 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6132 case $ac_cv_c_uint64_t in #(
6133   no|yes) ;; #(
6134   *)
6135
6136 $as_echo "#define _UINT64_T 1" >>confdefs.h
6137
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define uint64_t $ac_cv_c_uint64_t
6141 _ACEOF
6142 ;;
6143   esac
6144
6145
6146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6147 $as_echo_n "checking for unsigned long long int... " >&6; }
6148 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6149   $as_echo_n "(cached) " >&6
6150 else
6151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h.  */
6153
6154   /* For now, do not test the preprocessor; as of 2007 there are too many
6155          implementations with broken preprocessors.  Perhaps this can
6156          be revisited in 2012.  In the meantime, code should not expect
6157          #if to work with literals wider than 32 bits.  */
6158       /* Test literals.  */
6159       long long int ll = 9223372036854775807ll;
6160       long long int nll = -9223372036854775807LL;
6161       unsigned long long int ull = 18446744073709551615ULL;
6162       /* Test constant expressions.   */
6163       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6164                      ? 1 : -1)];
6165       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6166                      ? 1 : -1)];
6167       int i = 63;
6168 int
6169 main ()
6170 {
6171 /* Test availability of runtime routines for shift and division.  */
6172       long long int llmax = 9223372036854775807ll;
6173       unsigned long long int ullmax = 18446744073709551615ull;
6174       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6175               | (llmax / ll) | (llmax % ll)
6176               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6177               | (ullmax / ull) | (ullmax % ull));
6178   ;
6179   return 0;
6180 }
6181
6182 _ACEOF
6183 if ac_fn_c_try_link "$LINENO"; then :
6184   ac_cv_type_unsigned_long_long_int=yes
6185 else
6186   ac_cv_type_unsigned_long_long_int=no
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext \
6189     conftest$ac_exeext conftest.$ac_ext
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6192 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6193   if test $ac_cv_type_unsigned_long_long_int = yes; then
6194
6195 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6196
6197   fi
6198
6199
6200
6201   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6202 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6203
6204 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6205
6206 else
6207   test $ac_cv_type_unsigned_long_long_int = yes \
6208        && ac_type='unsigned long long int' \
6209        || ac_type='unsigned long int'
6210
6211 cat >>confdefs.h <<_ACEOF
6212 #define uintmax_t $ac_type
6213 _ACEOF
6214
6215 fi
6216
6217
6218
6219   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6220 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6221
6222 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6223
6224 else
6225   for ac_type in 'unsigned int' 'unsigned long int' \
6226         'unsigned long long int'; do
6227        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h.  */
6229 $ac_includes_default
6230 int
6231 main ()
6232 {
6233 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6234 test_array [0] = 0
6235
6236   ;
6237   return 0;
6238 }
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241
6242 cat >>confdefs.h <<_ACEOF
6243 #define uintptr_t $ac_type
6244 _ACEOF
6245
6246           ac_type=
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249        test -z "$ac_type" && break
6250      done
6251 fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 # ---------------------
6268 # Warnings and checking
6269 # ---------------------
6270
6271 # Check $CC warning features (if it's GCC).
6272 # We want to use -pedantic, but we don't want warnings about
6273 # * 'long long'
6274 # * variadic macros
6275 # * overlong strings
6276 # So, we only use -pedantic if we can disable those warnings.
6277
6278 loose_warn=
6279 save_CFLAGS="$CFLAGS"
6280 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6281   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6282
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6284 $as_echo_n "checking whether $CC supports $option... " >&6; }
6285 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   CFLAGS="$option"
6289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h.  */
6291
6292 int
6293 main ()
6294 {
6295
6296   ;
6297   return 0;
6298 }
6299 _ACEOF
6300 if ac_fn_c_try_compile "$LINENO"; then :
6301   eval "$as_acx_Woption=yes"
6302 else
6303   eval "$as_acx_Woption=no"
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306
6307 fi
6308 eval ac_res=\$$as_acx_Woption
6309                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6310 $as_echo "$ac_res" >&6; }
6311   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6312   loose_warn="$loose_warn${loose_warn:+ }$option"
6313 fi
6314   done
6315 CFLAGS="$save_CFLAGS"
6316
6317 c_loose_warn=
6318 save_CFLAGS="$CFLAGS"
6319 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6320   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6321
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6323 $as_echo_n "checking whether $CC supports $option... " >&6; }
6324 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   CFLAGS="$option"
6328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h.  */
6330
6331 int
6332 main ()
6333 {
6334
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_compile "$LINENO"; then :
6340   eval "$as_acx_Woption=yes"
6341 else
6342   eval "$as_acx_Woption=no"
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345
6346 fi
6347 eval ac_res=\$$as_acx_Woption
6348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6350   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6351   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6352 fi
6353   done
6354 CFLAGS="$save_CFLAGS"
6355
6356 strict_warn=
6357 save_CFLAGS="$CFLAGS"
6358 for option in -Wmissing-format-attribute; do
6359   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6360
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6362 $as_echo_n "checking whether $CC supports $option... " >&6; }
6363 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6364   $as_echo_n "(cached) " >&6
6365 else
6366   CFLAGS="$option"
6367     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h.  */
6369
6370 int
6371 main ()
6372 {
6373
6374   ;
6375   return 0;
6376 }
6377 _ACEOF
6378 if ac_fn_c_try_compile "$LINENO"; then :
6379   eval "$as_acx_Woption=yes"
6380 else
6381   eval "$as_acx_Woption=no"
6382 fi
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384
6385 fi
6386 eval ac_res=\$$as_acx_Woption
6387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6388 $as_echo "$ac_res" >&6; }
6389   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6390   strict_warn="$strict_warn${strict_warn:+ }$option"
6391 fi
6392   done
6393 CFLAGS="$save_CFLAGS"
6394
6395 c_strict_warn=
6396 save_CFLAGS="$CFLAGS"
6397 for option in -Wold-style-definition -Wc++-compat; do
6398   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6399
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6401 $as_echo_n "checking whether $CC supports $option... " >&6; }
6402 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   CFLAGS="$option"
6406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408
6409 int
6410 main ()
6411 {
6412
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418   eval "$as_acx_Woption=yes"
6419 else
6420   eval "$as_acx_Woption=no"
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423
6424 fi
6425 eval ac_res=\$$as_acx_Woption
6426                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6427 $as_echo "$ac_res" >&6; }
6428   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6429   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6430 fi
6431   done
6432 CFLAGS="$save_CFLAGS"
6433
6434 if test "$GCC" = yes; then :
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6436 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6437 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   save_CFLAGS="$CFLAGS"
6441 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h.  */
6444
6445 int
6446 main ()
6447 {
6448
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_c_try_compile "$LINENO"; then :
6454   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6455 else
6456   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 CFLAGS="$save_CFLAGS"
6460 fi
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6462 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6463 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6464   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6465 fi
6466
6467 fi
6468
6469 # Check whether --enable-werror-always was given.
6470 if test "${enable_werror_always+set}" = set; then :
6471   enableval=$enable_werror_always;
6472 else
6473   enable_werror_always=no
6474 fi
6475
6476 if test $enable_werror_always = yes; then :
6477   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6478 fi
6479
6480
6481
6482 # The above macros do nothing if the compiler is not GCC.  However, the
6483 # Makefile has more goo to add other flags, so these variables are used
6484 # to enable warnings only for GCC.
6485 warn_cflags=
6486 warn_cxxflags=
6487 if test "x$GCC" = "xyes"; then
6488   warn_cflags='$(GCC_WARN_CFLAGS)'
6489   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6490 fi
6491
6492
6493
6494 # Enable expensive internal checks
6495 is_release=
6496 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6497   is_release=yes
6498 fi
6499
6500 # Check whether --enable-checking was given.
6501 if test "${enable_checking+set}" = set; then :
6502   enableval=$enable_checking; ac_checking_flags="${enableval}"
6503 else
6504
6505 # Determine the default checks.
6506 if test x$is_release = x ; then
6507   ac_checking_flags=yes
6508 else
6509   ac_checking_flags=release
6510 fi
6511 fi
6512
6513 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6514 for check in release $ac_checking_flags
6515 do
6516         case $check in
6517         # these set all the flags to specific states
6518         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6519                         ac_fold_checking= ; ac_gc_checking=1 ;
6520                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6521                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6522                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6523                         ac_types_checking=1 ;;
6524         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6525                         ac_fold_checking= ; ac_gc_checking= ;
6526                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6527                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6528                         ac_tree_checking= ; ac_valgrind_checking= ;
6529                         ac_types_checking= ;;
6530         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6531                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6532                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6533                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6534                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6535                         ac_types_checking=1 ;;
6536         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6537                         ac_fold_checking= ; ac_gc_checking= ;
6538                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6539                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6540                         ac_tree_checking= ; ac_valgrind_checking= ;
6541                         ac_types_checking= ;;
6542         # these enable particular checks
6543         assert)         ac_assert_checking=1 ;;
6544         df)             ac_df_checking=1 ;;
6545         fold)           ac_fold_checking=1 ;;
6546         gc)             ac_gc_checking=1 ;;
6547         gcac)           ac_gc_always_collect=1 ;;
6548         gimple)         ac_gimple_checking=1 ;;
6549         misc)           ac_checking=1 ;;
6550         rtl)            ac_rtl_checking=1 ;;
6551         rtlflag)        ac_rtlflag_checking=1 ;;
6552         runtime)        ac_runtime_checking=1 ;;
6553         tree)           ac_tree_checking=1 ;;
6554         types)          ac_types_checking=1 ;;
6555         valgrind)       ac_valgrind_checking=1 ;;
6556         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6557         esac
6558 done
6559 IFS="$ac_save_IFS"
6560
6561 nocommon_flag=""
6562 if test x$ac_checking != x ; then
6563
6564 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6565
6566   nocommon_flag=-fno-common
6567 fi
6568
6569 if test x$ac_df_checking != x ; then
6570
6571 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6572
6573 fi
6574 if test x$ac_assert_checking != x ; then
6575
6576 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6577
6578 fi
6579 if test x$ac_gimple_checking != x ; then
6580
6581 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6582
6583 fi
6584
6585 if test x$ac_runtime_checking != x ; then
6586
6587 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6588
6589 fi
6590 if test x$ac_tree_checking != x ; then
6591
6592 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6593
6594   TREEBROWSER=tree-browser.o
6595 fi
6596 if test x$ac_types_checking != x ; then
6597
6598 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6599
6600 fi
6601
6602 if test x$ac_rtl_checking != x ; then
6603
6604 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6605
6606 fi
6607 if test x$ac_rtlflag_checking != x ; then
6608
6609 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6610
6611 fi
6612 if test x$ac_gc_checking != x ; then
6613
6614 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6615
6616 fi
6617 if test x$ac_gc_always_collect != x ; then
6618
6619 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6620
6621 fi
6622 if test x$ac_fold_checking != x ; then
6623
6624 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6625
6626 fi
6627 valgrind_path_defines=
6628 valgrind_command=
6629
6630 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6631 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6632   have_valgrind_h=yes
6633 else
6634   have_valgrind_h=no
6635 fi
6636
6637
6638
6639 if test x$ac_valgrind_checking != x ; then
6640   # It is certainly possible that there's valgrind but no valgrind.h.
6641   # GCC relies on making annotations so we must have both.
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6643 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h.  */
6646 #include <valgrind/memcheck.h>
6647 #ifndef VALGRIND_DISCARD
6648 #error VALGRIND_DISCARD not defined
6649 #endif
6650 _ACEOF
6651 if ac_fn_c_try_cpp "$LINENO"; then :
6652   gcc_cv_header_valgrind_memcheck_h=yes
6653 else
6654   gcc_cv_header_valgrind_memcheck_h=no
6655 fi
6656 rm -f conftest.err conftest.$ac_ext
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6658 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6660 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h.  */
6663 #include <memcheck.h>
6664 #ifndef VALGRIND_DISCARD
6665 #error VALGRIND_DISCARD not defined
6666 #endif
6667 _ACEOF
6668 if ac_fn_c_try_cpp "$LINENO"; then :
6669   gcc_cv_header_memcheck_h=yes
6670 else
6671   gcc_cv_header_memcheck_h=no
6672 fi
6673 rm -f conftest.err conftest.$ac_ext
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6675 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6676
6677 # Prepare PATH_SEPARATOR.
6678 # The user is always right.
6679 if test "${PATH_SEPARATOR+set}" != set; then
6680   echo "#! /bin/sh" >conf$$.sh
6681   echo  "exit 0"   >>conf$$.sh
6682   chmod +x conf$$.sh
6683   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6684     PATH_SEPARATOR=';'
6685   else
6686     PATH_SEPARATOR=:
6687   fi
6688   rm -f conf$$.sh
6689 fi
6690
6691 # Find out how to test for executable files. Don't use a zero-byte file,
6692 # as systems may use methods other than mode bits to determine executability.
6693 cat >conf$$.file <<_ASEOF
6694 #! /bin/sh
6695 exit 0
6696 _ASEOF
6697 chmod +x conf$$.file
6698 if test -x conf$$.file >/dev/null 2>&1; then
6699   ac_executable_p="test -x"
6700 else
6701   ac_executable_p="test -f"
6702 fi
6703 rm -f conf$$.file
6704
6705 # Extract the first word of "valgrind", so it can be a program name with args.
6706 set dummy valgrind; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   case "$valgrind_path" in
6713   [\\/]* | ?:[\\/]*)
6714     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6715     ;;
6716   *)
6717     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6718     for ac_dir in $PATH; do
6719       IFS="$ac_save_IFS"
6720       test -z "$ac_dir" && ac_dir=.
6721       for ac_exec_ext in '' $ac_executable_extensions; do
6722         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6723           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6724             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6725             break 2
6726           fi
6727         fi
6728       done
6729     done
6730     IFS="$ac_save_IFS"
6731     ;;
6732 esac
6733 fi
6734 valgrind_path="$ac_cv_path_valgrind_path"
6735 if test -n "$valgrind_path"; then
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6737 $as_echo "$valgrind_path" >&6; }
6738 else
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742
6743   if test "x$valgrind_path" = "x" \
6744     || (test $have_valgrind_h = no \
6745         && test $gcc_cv_header_memcheck_h = no \
6746         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6747         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6748   fi
6749   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6750   valgrind_command="$valgrind_path -q"
6751
6752 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6753
6754   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6755
6756 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6757
6758   fi
6759   if test $gcc_cv_header_memcheck_h = yes; then
6760
6761 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6762
6763   fi
6764 fi
6765
6766
6767
6768 # Enable code coverage collection
6769 # Check whether --enable-coverage was given.
6770 if test "${enable_coverage+set}" = set; then :
6771   enableval=$enable_coverage; case "${enableval}" in
6772   yes|noopt)
6773     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6774     ;;
6775   opt)
6776     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6777     ;;
6778   no)
6779     # a.k.a. --disable-coverage
6780     coverage_flags=""
6781     ;;
6782   *)
6783     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6784     ;;
6785 esac
6786 else
6787   coverage_flags=""
6788 fi
6789
6790
6791
6792 # Check whether --enable-gather-detailed-mem-stats was given.
6793 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6794   enableval=$enable_gather_detailed_mem_stats;
6795 else
6796   enable_gather_detailed_mem_stats=no
6797 fi
6798
6799 if test x$enable_gather_detailed_mem_stats = xyes ; then
6800
6801 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6802
6803 fi
6804
6805 # -------------------------------
6806 # Miscenalleous configure options
6807 # -------------------------------
6808
6809 # See if we are building gcc with C++.
6810 # Check whether --enable-build-with-cxx was given.
6811 if test "${enable_build_with_cxx+set}" = set; then :
6812   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6813 else
6814   ENABLE_BUILD_WITH_CXX=no
6815 fi
6816
6817
6818
6819 # With stabs
6820
6821 # Check whether --with-stabs was given.
6822 if test "${with_stabs+set}" = set; then :
6823   withval=$with_stabs; stabs="$with_stabs"
6824 else
6825   stabs=no
6826 fi
6827
6828
6829 # Determine whether or not multilibs are enabled.
6830 # Check whether --enable-multilib was given.
6831 if test "${enable_multilib+set}" = set; then :
6832   enableval=$enable_multilib;
6833 else
6834   enable_multilib=yes
6835 fi
6836
6837
6838
6839 # Enable __cxa_atexit for C++.
6840 # Check whether --enable-__cxa_atexit was given.
6841 if test "${enable___cxa_atexit+set}" = set; then :
6842   enableval=$enable___cxa_atexit;
6843 fi
6844
6845
6846 # Enable C extension for decimal float if target supports it.
6847
6848 # Check whether --enable-decimal-float was given.
6849 if test "${enable_decimal_float+set}" = set; then :
6850   enableval=$enable_decimal_float;
6851   case $enable_decimal_float in
6852     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6853     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6854 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6855   esac
6856
6857 else
6858
6859   case $target in
6860     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6861     i?86*-*-mingw* | x86_64*-*-mingw* | \
6862     i?86*-*-cygwin*)
6863       enable_decimal_float=yes
6864       ;;
6865     *)
6866       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6867 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6868       enable_decimal_float=no
6869       ;;
6870   esac
6871
6872 fi
6873
6874
6875 # x86's use BID format instead of DPD
6876 case x$enable_decimal_float in
6877   xyes)
6878     case $target in
6879       i?86*-*-* | x86_64*-*-*)
6880         enable_decimal_float=bid
6881         ;;
6882       *)
6883         enable_decimal_float=dpd
6884         ;;
6885     esac
6886     default_decimal_float=$enable_decimal_float
6887     ;;
6888   xno)
6889     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6890     # dependency on libdecnumber.
6891     default_decimal_float=dpd
6892     ;;
6893 esac
6894
6895
6896
6897
6898 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6899
6900 cat >>confdefs.h <<_ACEOF
6901 #define ENABLE_DECIMAL_FLOAT $dfp
6902 _ACEOF
6903
6904
6905 # Use default_decimal_float for dependency.
6906 enable_decimal_float=$default_decimal_float
6907
6908 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6909
6910 cat >>confdefs.h <<_ACEOF
6911 #define ENABLE_DECIMAL_BID_FORMAT $bid
6912 _ACEOF
6913
6914
6915 # Enable C extension for fixed-point arithmetic.
6916 # Check whether --enable-fixed-point was given.
6917 if test "${enable_fixed_point+set}" = set; then :
6918   enableval=$enable_fixed_point;
6919
6920 else
6921
6922   case $target in
6923     mips*-*-*)
6924       case $host in
6925         mips*-sgi-irix*)
6926           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6927 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6928           enable_fixed_point=no
6929           ;;
6930         *)
6931           enable_fixed_point=yes
6932           ;;
6933       esac
6934       ;;
6935     *)
6936       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6937 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6938       enable_fixed_point=no
6939       ;;
6940   esac
6941
6942 fi
6943
6944
6945
6946 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6947
6948 cat >>confdefs.h <<_ACEOF
6949 #define ENABLE_FIXED_POINT $fixedpoint
6950 _ACEOF
6951
6952
6953 # Enable threads
6954 # Pass with no value to take the default
6955 # Pass with a value to specify a thread package
6956 # Check whether --enable-threads was given.
6957 if test "${enable_threads+set}" = set; then :
6958   enableval=$enable_threads;
6959 else
6960   enable_threads=''
6961 fi
6962
6963
6964 # Check whether --enable-tls was given.
6965 if test "${enable_tls+set}" = set; then :
6966   enableval=$enable_tls;
6967   case $enable_tls in
6968     yes | no) ;;
6969     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6970 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6971   esac
6972
6973 else
6974   enable_tls=''
6975 fi
6976
6977
6978 # Check whether --enable-objc-gc was given.
6979 if test "${enable_objc_gc+set}" = set; then :
6980   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6981         objc_boehm_gc=''
6982 else
6983         objc_boehm_gc=1
6984 fi
6985 else
6986   objc_boehm_gc=''
6987 fi
6988
6989
6990
6991 # Check whether --with-dwarf2 was given.
6992 if test "${with_dwarf2+set}" = set; then :
6993   withval=$with_dwarf2;
6994   case $target in
6995     hppa*-*-hpux*)
6996       case $target in
6997         hppa*64*-*-*)
6998           dwarf2="$with_dwarf2"
6999           ;;
7000         *)
7001           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 debug format is not supported for this target, ignored" >&5
7002 $as_echo "$as_me: WARNING: dwarf2 debug format is not supported for this target, ignored" >&2;}
7003           dwarf2=no
7004           ;;
7005       esac
7006       ;;
7007     *)
7008       dwarf2="$with_dwarf2"
7009       ;;
7010   esac
7011
7012 else
7013   dwarf2=no
7014 fi
7015
7016
7017 # Check whether --enable-shared was given.
7018 if test "${enable_shared+set}" = set; then :
7019   enableval=$enable_shared;
7020   case $enable_shared in
7021   yes | no) ;;
7022   *)
7023     enable_shared=no
7024     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7025     for pkg in $enableval; do
7026       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7027         enable_shared=yes
7028       fi
7029     done
7030     IFS="$ac_save_ifs"
7031     ;;
7032   esac
7033
7034 else
7035   enable_shared=yes
7036 fi
7037
7038
7039
7040
7041 # Check whether --with-build-sysroot was given.
7042 if test "${with_build_sysroot+set}" = set; then :
7043   withval=$with_build_sysroot;
7044 fi
7045
7046
7047
7048 # Check whether --with-sysroot was given.
7049 if test "${with_sysroot+set}" = set; then :
7050   withval=$with_sysroot;
7051  case ${with_sysroot} in
7052  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7053  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7054  esac
7055
7056  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7057  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7058
7059  if test "x$prefix" = xNONE; then
7060   test_prefix=/usr/local
7061  else
7062   test_prefix=$prefix
7063  fi
7064  if test "x$exec_prefix" = xNONE; then
7065   test_exec_prefix=$test_prefix
7066  else
7067   test_exec_prefix=$exec_prefix
7068  fi
7069  case ${TARGET_SYSTEM_ROOT} in
7070  "${test_prefix}"|"${test_prefix}/"*|\
7071  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7072  '${prefix}'|'${prefix}/'*|\
7073  '${exec_prefix}'|'${exec_prefix}/'*)
7074    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7075    TARGET_SYSTEM_ROOT_DEFINE="$t"
7076    ;;
7077  esac
7078
7079 else
7080
7081  TARGET_SYSTEM_ROOT=
7082  TARGET_SYSTEM_ROOT_DEFINE=
7083  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7084
7085 fi
7086
7087
7088
7089
7090
7091
7092 # Check whether --with-specs was given.
7093 if test "${with_specs+set}" = set; then :
7094   withval=$with_specs; CONFIGURE_SPECS=$withval
7095 else
7096   CONFIGURE_SPECS=
7097
7098 fi
7099
7100
7101
7102
7103
7104 # Check whether --with-pkgversion was given.
7105 if test "${with_pkgversion+set}" = set; then :
7106   withval=$with_pkgversion; case "$withval" in
7107       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7108       no)  PKGVERSION= ;;
7109       *)   PKGVERSION="($withval) " ;;
7110      esac
7111 else
7112   PKGVERSION="(GCC) "
7113
7114 fi
7115
7116
7117
7118
7119
7120 # Check whether --with-bugurl was given.
7121 if test "${with_bugurl+set}" = set; then :
7122   withval=$with_bugurl; case "$withval" in
7123       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7124       no)  BUGURL=
7125            ;;
7126       *)   BUGURL="$withval"
7127            ;;
7128      esac
7129 else
7130   BUGURL="http://gcc.gnu.org/bugs.html"
7131
7132 fi
7133
7134   case ${BUGURL} in
7135   "")
7136     REPORT_BUGS_TO=
7137     REPORT_BUGS_TEXI=
7138     ;;
7139   *)
7140     REPORT_BUGS_TO="<$BUGURL>"
7141     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7142     ;;
7143   esac;
7144
7145
7146
7147
7148 # Sanity check enable_languages in case someone does not run the toplevel
7149 # configure # script.
7150 # Check whether --enable-languages was given.
7151 if test "${enable_languages+set}" = set; then :
7152   enableval=$enable_languages; case ,${enable_languages}, in
7153        ,,|,yes,)
7154                 # go safe -- we cannot be much sure without the toplevel
7155                 # configure's
7156                 # analysis of which target libs are present and usable
7157                 enable_languages=c
7158                 ;;
7159          *,all,*)
7160                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7161                 ;;
7162         *,c,*)
7163                 ;;
7164         *)
7165                 enable_languages=c,${enable_languages}
7166                 ;;
7167 esac
7168 else
7169   enable_languages=c
7170 fi
7171
7172
7173
7174 # Check whether --with-multilib-list was given.
7175 if test "${with_multilib_list+set}" = set; then :
7176   withval=$with_multilib_list; :
7177 else
7178   with_multilib_list=default
7179 fi
7180
7181
7182 # -------------------------
7183 # Checks for other programs
7184 # -------------------------
7185
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7187 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7188 set x ${MAKE-make}
7189 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7191   $as_echo_n "(cached) " >&6
7192 else
7193   cat >conftest.make <<\_ACEOF
7194 SHELL = /bin/sh
7195 all:
7196         @echo '@@@%%%=$(MAKE)=@@@%%%'
7197 _ACEOF
7198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7200   *@@@%%%=?*=@@@%%%*)
7201     eval ac_cv_prog_make_${ac_make}_set=yes;;
7202   *)
7203     eval ac_cv_prog_make_${ac_make}_set=no;;
7204 esac
7205 rm -f conftest.make
7206 fi
7207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7209 $as_echo "yes" >&6; }
7210   SET_MAKE=
7211 else
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214   SET_MAKE="MAKE=${MAKE-make}"
7215 fi
7216
7217
7218 # Find some useful tools
7219 for ac_prog in gawk mawk nawk awk
7220 do
7221   # Extract the first word of "$ac_prog", so it can be a program name with args.
7222 set dummy $ac_prog; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if test "${ac_cv_prog_AWK+set}" = set; then :
7226   $as_echo_n "(cached) " >&6
7227 else
7228   if test -n "$AWK"; then
7229   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236     for ac_exec_ext in '' $ac_executable_extensions; do
7237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238     ac_cv_prog_AWK="$ac_prog"
7239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243   done
7244 IFS=$as_save_IFS
7245
7246 fi
7247 fi
7248 AWK=$ac_cv_prog_AWK
7249 if test -n "$AWK"; then
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7251 $as_echo "$AWK" >&6; }
7252 else
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255 fi
7256
7257
7258   test -n "$AWK" && break
7259 done
7260
7261 # We need awk to create options.c and options.h.
7262 # Bail out if it's missing.
7263 case ${AWK} in
7264   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7265 esac
7266
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7268 $as_echo_n "checking whether ln -s works... " >&6; }
7269 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7270   $as_echo_n "(cached) " >&6
7271 else
7272   rm -f conftestdata_t
7273 echo >conftestdata_f
7274 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7275 then
7276   gcc_cv_prog_LN_S="ln -s"
7277 else
7278   if ln conftestdata_f conftestdata_t 2>/dev/null
7279   then
7280     gcc_cv_prog_LN_S=ln
7281   else
7282     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7283     then
7284       gcc_cv_prog_LN_S="cp -p"
7285     else
7286       gcc_cv_prog_LN_S=cp
7287     fi
7288   fi
7289 fi
7290 rm -f conftestdata_f conftestdata_t
7291
7292 fi
7293 LN_S="$gcc_cv_prog_LN_S"
7294 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7296 $as_echo "yes" >&6; }
7297 else
7298   if test "$gcc_cv_prog_LN_S" = "ln"; then
7299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7300 $as_echo "no, using ln" >&6; }
7301   else
7302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7303 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7304   fi
7305 fi
7306
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7308 $as_echo_n "checking whether ln works... " >&6; }
7309 if test "${acx_cv_prog_LN+set}" = set; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   rm -f conftestdata_t
7313 echo >conftestdata_f
7314 if ln conftestdata_f conftestdata_t 2>/dev/null
7315 then
7316   acx_cv_prog_LN=ln
7317 else
7318   acx_cv_prog_LN=no
7319 fi
7320 rm -f conftestdata_f conftestdata_t
7321
7322 fi
7323 if test $acx_cv_prog_LN = no; then
7324   LN="$LN_S"
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7326 $as_echo "no, using $LN" >&6; }
7327 else
7328   LN="$acx_cv_prog_LN"
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7330 $as_echo "yes" >&6; }
7331 fi
7332
7333 if test -n "$ac_tool_prefix"; then
7334   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$RANLIB"; then
7342   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 RANLIB=$ac_cv_prog_RANLIB
7362 if test -n "$RANLIB"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7364 $as_echo "$RANLIB" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_RANLIB"; then
7373   ac_ct_RANLIB=$RANLIB
7374   # Extract the first word of "ranlib", so it can be a program name with args.
7375 set dummy ranlib; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   if test -n "$ac_ct_RANLIB"; then
7382   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389     for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_prog_ac_ct_RANLIB="ranlib"
7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396   done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7402 if test -n "$ac_ct_RANLIB"; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7404 $as_echo "$ac_ct_RANLIB" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410   if test "x$ac_ct_RANLIB" = x; then
7411     RANLIB=":"
7412   else
7413     case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419     RANLIB=$ac_ct_RANLIB
7420   fi
7421 else
7422   RANLIB="$ac_cv_prog_RANLIB"
7423 fi
7424
7425 case "${host}" in
7426 *-*-darwin*)
7427   # By default, the Darwin ranlib will not treat common symbols as
7428   # definitions when  building the archive table of contents.  Other
7429   # ranlibs do that; pass an option to the Darwin ranlib that makes
7430   # it behave similarly.
7431   ranlib_flags="-c"
7432   ;;
7433 *)
7434   ranlib_flags=""
7435 esac
7436
7437
7438 # Find a good install program.  We prefer a C program (faster),
7439 # so one script is as good as another.  But avoid the broken or
7440 # incompatible versions:
7441 # SysV /etc/install, /usr/sbin/install
7442 # SunOS /usr/etc/install
7443 # IRIX /sbin/install
7444 # AIX /bin/install
7445 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7446 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7447 # ./install, which can be erroneously created by make from ./install.sh.
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7449 $as_echo_n "checking for a BSD compatible install... " >&6; }
7450 if test -z "$INSTALL"; then
7451 if test "${ac_cv_path_install+set}" = set; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7455   for ac_dir in $PATH; do
7456     # Account for people who put trailing slashes in PATH elements.
7457     case "$ac_dir/" in
7458     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7459     *)
7460       # OSF1 and SCO ODT 3.0 have their own names for install.
7461       for ac_prog in ginstall scoinst install; do
7462         if test -f $ac_dir/$ac_prog; then
7463           if test $ac_prog = install &&
7464             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7465             # AIX install.  It has an incompatible calling convention.
7466             # OSF/1 installbsd also uses dspmsg, but is usable.
7467             :
7468           else
7469             ac_cv_path_install="$ac_dir/$ac_prog -c"
7470             break 2
7471           fi
7472         fi
7473       done
7474       ;;
7475     esac
7476   done
7477   IFS="$ac_save_IFS"
7478
7479 fi
7480   if test "${ac_cv_path_install+set}" = set; then
7481     INSTALL="$ac_cv_path_install"
7482   else
7483     # As a last resort, use the slow shell script.  We don't cache a
7484     # path for INSTALL within a source directory, because that will
7485     # break other packages using the cache if that directory is
7486     # removed, or if the path is relative.
7487     INSTALL="$ac_install_sh"
7488   fi
7489 fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7491 $as_echo "$INSTALL" >&6; }
7492
7493 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7494 # It thinks the first close brace ends the variable substitution.
7495 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7496
7497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7498
7499
7500 # See if cmp has --ignore-initial.
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7502 $as_echo_n "checking for cmp's capabilities... " >&6; }
7503 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506    echo abfoo >t1
7507   echo cdfoo >t2
7508   gcc_cv_prog_cmp_skip=slowcompare
7509   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7510     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7511       :
7512     else
7513       gcc_cv_prog_cmp_skip=gnucompare
7514     fi
7515   fi
7516   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7517     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7518       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7519         :
7520       else
7521         gcc_cv_prog_cmp_skip=fastcompare
7522       fi
7523     fi
7524   fi
7525   rm t1 t2
7526
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7529 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7530 make_compare_target=$gcc_cv_prog_cmp_skip
7531
7532
7533
7534 # See if we have the mktemp command.
7535 # Extract the first word of "mktemp", so it can be a program name with args.
7536 set dummy mktemp; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   if test -n "$have_mktemp_command"; then
7543   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550     for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_prog_have_mktemp_command="yes"
7553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557   done
7558 IFS=$as_save_IFS
7559
7560   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7561 fi
7562 fi
7563 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7564 if test -n "$have_mktemp_command"; then
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7566 $as_echo "$have_mktemp_command" >&6; }
7567 else
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 fi
7571
7572
7573
7574 # See if makeinfo has been installed and is modern enough
7575 # that we can use it.
7576
7577   # Extract the first word of "makeinfo", so it can be a program name with args.
7578 set dummy makeinfo; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584   if test -n "$MAKEINFO"; then
7585   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592     for ac_exec_ext in '' $ac_executable_extensions; do
7593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594     ac_cv_prog_MAKEINFO="makeinfo"
7595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599   done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 MAKEINFO=$ac_cv_prog_MAKEINFO
7605 if test -n "$MAKEINFO"; then
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7607 $as_echo "$MAKEINFO" >&6; }
7608 else
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613
7614   if test -n "$MAKEINFO"; then
7615     # Found it, now check the version.
7616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7617 $as_echo_n "checking for modern makeinfo... " >&6; }
7618 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7622                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7623
7624                     case $ac_prog_version in
7625                       '')  gcc_cv_prog_makeinfo_modern=no;;
7626                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7627                       *)   gcc_cv_prog_makeinfo_modern=no;;
7628                     esac
7629
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7632 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7633   else
7634     gcc_cv_prog_makeinfo_modern=no
7635   fi
7636   if test $gcc_cv_prog_makeinfo_modern = no; then
7637     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7638   fi
7639
7640 if test $gcc_cv_prog_makeinfo_modern = no; then
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7642 *** Makeinfo is missing or too old.
7643 *** Info documentation will not be built." >&5
7644 $as_echo "$as_me: WARNING:
7645 *** Makeinfo is missing or too old.
7646 *** Info documentation will not be built." >&2;}
7647   BUILD_INFO=
7648 else
7649   BUILD_INFO=info
7650 fi
7651
7652
7653 # Is pod2man recent enough to regenerate manpages?
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7655 $as_echo_n "checking for recent Pod::Man... " >&6; }
7656 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7658 $as_echo "yes" >&6; }
7659   GENERATED_MANPAGES=generated-manpages
7660 else
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7663   GENERATED_MANPAGES=
7664 fi
7665
7666
7667 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7668
7669 # How about lex?
7670 for ac_prog in flex
7671 do
7672   # Extract the first word of "$ac_prog", so it can be a program name with args.
7673 set dummy $ac_prog; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if test "${ac_cv_prog_FLEX+set}" = set; then :
7677   $as_echo_n "(cached) " >&6
7678 else
7679   if test -n "$FLEX"; then
7680   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687     for ac_exec_ext in '' $ac_executable_extensions; do
7688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689     ac_cv_prog_FLEX="$ac_prog"
7690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694   done
7695 IFS=$as_save_IFS
7696
7697 fi
7698 fi
7699 FLEX=$ac_cv_prog_FLEX
7700 if test -n "$FLEX"; then
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7702 $as_echo "$FLEX" >&6; }
7703 else
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7706 fi
7707
7708
7709   test -n "$FLEX" && break
7710 done
7711 test -n "$FLEX" || FLEX="$MISSING flex"
7712
7713
7714 # Bison?
7715 for ac_prog in bison
7716 do
7717   # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_BISON+set}" = set; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$BISON"; then
7725   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_prog_BISON="$ac_prog"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 BISON=$ac_cv_prog_BISON
7745 if test -n "$BISON"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7747 $as_echo "$BISON" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754   test -n "$BISON" && break
7755 done
7756 test -n "$BISON" || BISON="$MISSING bison"
7757
7758
7759 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7760 # check for build == host before using them.
7761
7762 # NM
7763 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7764   && test -d ../binutils ; then
7765   NM='${objdir}/../binutils/nm-new'
7766 else
7767   # Extract the first word of "nm", so it can be a program name with args.
7768 set dummy nm; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if test "${ac_cv_prog_NM+set}" = set; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   if test -n "$NM"; then
7775   ac_cv_prog_NM="$NM" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782     for ac_exec_ext in '' $ac_executable_extensions; do
7783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784     ac_cv_prog_NM="nm"
7785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789   done
7790 IFS=$as_save_IFS
7791
7792   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7793 fi
7794 fi
7795 NM=$ac_cv_prog_NM
7796 if test -n "$NM"; then
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7798 $as_echo "$NM" >&6; }
7799 else
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 fi
7803
7804
7805 fi
7806
7807 # AR
7808 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7809   && test -d ../binutils ; then
7810   AR='${objdir}/../binutils/ar'
7811 else
7812   # Extract the first word of "ar", so it can be a program name with args.
7813 set dummy ar; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_AR+set}" = set; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   if test -n "$AR"; then
7820   ac_cv_prog_AR="$AR" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827     for ac_exec_ext in '' $ac_executable_extensions; do
7828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829     ac_cv_prog_AR="ar"
7830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834   done
7835 IFS=$as_save_IFS
7836
7837   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7838 fi
7839 fi
7840 AR=$ac_cv_prog_AR
7841 if test -n "$AR"; then
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7843 $as_echo "$AR" >&6; }
7844 else
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 fi
7848
7849
7850 fi
7851
7852
7853 # --------------------
7854 # Checks for C headers
7855 # --------------------
7856
7857 # Need to reject headers which give warnings, so that the -Werror bootstrap
7858 # works later. *sigh*  This needs to come before all header checks.
7859
7860 ac_c_preproc_warn_flag=yes
7861
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7863 $as_echo_n "checking for ANSI C header files... " >&6; }
7864 if test "${ac_cv_header_stdc+set}" = set; then :
7865   $as_echo_n "(cached) " >&6
7866 else
7867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h.  */
7869 #include <stdlib.h>
7870 #include <stdarg.h>
7871 #include <string.h>
7872 #include <float.h>
7873
7874 int
7875 main ()
7876 {
7877
7878   ;
7879   return 0;
7880 }
7881 _ACEOF
7882 if ac_fn_c_try_compile "$LINENO"; then :
7883   ac_cv_header_stdc=yes
7884 else
7885   ac_cv_header_stdc=no
7886 fi
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888
7889 if test $ac_cv_header_stdc = yes; then
7890   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h.  */
7893 #include <string.h>
7894
7895 _ACEOF
7896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7897   $EGREP "memchr" >/dev/null 2>&1; then :
7898
7899 else
7900   ac_cv_header_stdc=no
7901 fi
7902 rm -f conftest*
7903
7904 fi
7905
7906 if test $ac_cv_header_stdc = yes; then
7907   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h.  */
7910 #include <stdlib.h>
7911
7912 _ACEOF
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914   $EGREP "free" >/dev/null 2>&1; then :
7915
7916 else
7917   ac_cv_header_stdc=no
7918 fi
7919 rm -f conftest*
7920
7921 fi
7922
7923 if test $ac_cv_header_stdc = yes; then
7924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7925   if test "$cross_compiling" = yes; then :
7926   :
7927 else
7928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930 #include <ctype.h>
7931 #include <stdlib.h>
7932 #if ((' ' & 0x0FF) == 0x020)
7933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7935 #else
7936 # define ISLOWER(c) \
7937                    (('a' <= (c) && (c) <= 'i') \
7938                      || ('j' <= (c) && (c) <= 'r') \
7939                      || ('s' <= (c) && (c) <= 'z'))
7940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7941 #endif
7942
7943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7944 int
7945 main ()
7946 {
7947   int i;
7948   for (i = 0; i < 256; i++)
7949     if (XOR (islower (i), ISLOWER (i))
7950         || toupper (i) != TOUPPER (i))
7951       return 2;
7952   return 0;
7953 }
7954 _ACEOF
7955 if ac_fn_c_try_run "$LINENO"; then :
7956
7957 else
7958   ac_cv_header_stdc=no
7959 fi
7960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7961   conftest.$ac_objext conftest.beam conftest.$ac_ext
7962 fi
7963
7964 fi
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7967 $as_echo "$ac_cv_header_stdc" >&6; }
7968 if test $ac_cv_header_stdc = yes; then
7969
7970 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7971
7972 fi
7973
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7975 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7976 if test "${ac_cv_header_time+set}" = set; then :
7977   $as_echo_n "(cached) " >&6
7978 else
7979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h.  */
7981 #include <sys/types.h>
7982 #include <sys/time.h>
7983 #include <time.h>
7984
7985 int
7986 main ()
7987 {
7988 if ((struct tm *) 0)
7989 return 0;
7990   ;
7991   return 0;
7992 }
7993 _ACEOF
7994 if ac_fn_c_try_compile "$LINENO"; then :
7995   ac_cv_header_time=yes
7996 else
7997   ac_cv_header_time=no
7998 fi
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 fi
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8002 $as_echo "$ac_cv_header_time" >&6; }
8003 if test $ac_cv_header_time = yes; then
8004
8005 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8006
8007 fi
8008
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8010 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8011 if test "${gcc_cv_header_string+set}" = set; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h.  */
8016 #include <string.h>
8017 #include <strings.h>
8018 int
8019 main ()
8020 {
8021
8022   ;
8023   return 0;
8024 }
8025 _ACEOF
8026 if ac_fn_c_try_compile "$LINENO"; then :
8027   gcc_cv_header_string=yes
8028 else
8029   gcc_cv_header_string=no
8030 fi
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8034 $as_echo "$gcc_cv_header_string" >&6; }
8035 if test $gcc_cv_header_string = yes; then
8036
8037 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8038
8039 fi
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8042 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8043 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h.  */
8048 #include <sys/types.h>
8049 #include <sys/wait.h>
8050 #ifndef WEXITSTATUS
8051 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8052 #endif
8053 #ifndef WIFEXITED
8054 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8055 #endif
8056
8057 int
8058 main ()
8059 {
8060   int s;
8061   wait (&s);
8062   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068   ac_cv_header_sys_wait_h=yes
8069 else
8070   ac_cv_header_sys_wait_h=no
8071 fi
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8075 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8076 if test $ac_cv_header_sys_wait_h = yes; then
8077
8078 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8079
8080 fi
8081
8082 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8083                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8084                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8085                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8086 do :
8087   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8088 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8089 eval as_val=\$$as_ac_Header
8090    if test "x$as_val" = x""yes; then :
8091   cat >>confdefs.h <<_ACEOF
8092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8093 _ACEOF
8094
8095 fi
8096 done
8097
8098
8099 # Check for thread headers.
8100 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8101 if test "x$ac_cv_header_thread_h" = x""yes; then :
8102   have_thread_h=yes
8103 else
8104   have_thread_h=
8105 fi
8106
8107 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8108 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8109   have_pthread_h=yes
8110 else
8111   have_pthread_h=
8112 fi
8113
8114
8115 # These tests can't be done till we know if we have limits.h.
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8117 $as_echo_n "checking for CHAR_BIT... " >&6; }
8118 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8119   $as_echo_n "(cached) " >&6
8120 else
8121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h.  */
8123 #ifdef HAVE_LIMITS_H
8124 #include <limits.h>
8125 #endif
8126 #ifdef CHAR_BIT
8127 found
8128 #endif
8129 _ACEOF
8130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8131   $EGREP "found" >/dev/null 2>&1; then :
8132   gcc_cv_decl_char_bit=yes
8133 else
8134   gcc_cv_decl_char_bit=no
8135 fi
8136 rm -f conftest*
8137
8138
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8141 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8142 if test $gcc_cv_decl_char_bit = no; then
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8144 $as_echo_n "checking number of bits in a byte... " >&6; }
8145 if test "${gcc_cv_c_nbby+set}" = set; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   i=8
8149  gcc_cv_c_nbby=
8150  while test $i -lt 65; do
8151    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h.  */
8153
8154 int
8155 main ()
8156 {
8157 switch(0) {
8158   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8159   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8160   ; }
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166   gcc_cv_c_nbby=$i; break
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169    i=`expr $i + 1`
8170  done
8171  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8172
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8175 $as_echo "$gcc_cv_c_nbby" >&6; }
8176 if test $gcc_cv_c_nbby = failed; then
8177   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8178 else
8179
8180 cat >>confdefs.h <<_ACEOF
8181 #define CHAR_BIT $gcc_cv_c_nbby
8182 _ACEOF
8183
8184 fi
8185 fi
8186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8188 if test "${ac_cv_c_bigendian+set}" = set; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   ac_cv_c_bigendian=unknown
8192     # See if we're dealing with a universal compiler.
8193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h.  */
8195 #ifndef __APPLE_CC__
8196                not a universal capable compiler
8197              #endif
8198              typedef int dummy;
8199
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"; then :
8202
8203         # Check for potential -arch flags.  It is not universal unless
8204         # there are at least two -arch flags with different values.
8205         ac_arch=
8206         ac_prev=
8207         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8208          if test -n "$ac_prev"; then
8209            case $ac_word in
8210              i?86 | x86_64 | ppc | ppc64)
8211                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8212                  ac_arch=$ac_word
8213                else
8214                  ac_cv_c_bigendian=universal
8215                  break
8216                fi
8217                ;;
8218            esac
8219            ac_prev=
8220          elif test "x$ac_word" = "x-arch"; then
8221            ac_prev=arch
8222          fi
8223        done
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226     if test $ac_cv_c_bigendian = unknown; then
8227       # See if sys/param.h defines the BYTE_ORDER macro.
8228       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h.  */
8230 #include <sys/types.h>
8231              #include <sys/param.h>
8232
8233 int
8234 main ()
8235 {
8236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8237                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8238                      && LITTLE_ENDIAN)
8239               bogus endian macros
8240              #endif
8241
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_compile "$LINENO"; then :
8247   # It does; now see whether it defined to BIG_ENDIAN or not.
8248          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h.  */
8250 #include <sys/types.h>
8251                 #include <sys/param.h>
8252
8253 int
8254 main ()
8255 {
8256 #if BYTE_ORDER != BIG_ENDIAN
8257                  not big endian
8258                 #endif
8259
8260   ;
8261   return 0;
8262 }
8263 _ACEOF
8264 if ac_fn_c_try_compile "$LINENO"; then :
8265   ac_cv_c_bigendian=yes
8266 else
8267   ac_cv_c_bigendian=no
8268 fi
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 fi
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272     fi
8273     if test $ac_cv_c_bigendian = unknown; then
8274       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8275       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h.  */
8277 #include <limits.h>
8278
8279 int
8280 main ()
8281 {
8282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8283               bogus endian macros
8284              #endif
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 if ac_fn_c_try_compile "$LINENO"; then :
8291   # It does; now see whether it defined to _BIG_ENDIAN or not.
8292          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h.  */
8294 #include <limits.h>
8295
8296 int
8297 main ()
8298 {
8299 #ifndef _BIG_ENDIAN
8300                  not big endian
8301                 #endif
8302
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 if ac_fn_c_try_compile "$LINENO"; then :
8308   ac_cv_c_bigendian=yes
8309 else
8310   ac_cv_c_bigendian=no
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315     fi
8316     if test $ac_cv_c_bigendian = unknown; then
8317       # Compile a test program.
8318       if test "$cross_compiling" = yes; then :
8319   # Try to guess by grepping values from an object file.
8320          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h.  */
8322 short int ascii_mm[] =
8323                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8324                 short int ascii_ii[] =
8325                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8326                 int use_ascii (int i) {
8327                   return ascii_mm[i] + ascii_ii[i];
8328                 }
8329                 short int ebcdic_ii[] =
8330                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8331                 short int ebcdic_mm[] =
8332                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8333                 int use_ebcdic (int i) {
8334                   return ebcdic_mm[i] + ebcdic_ii[i];
8335                 }
8336                 extern int foo;
8337
8338 int
8339 main ()
8340 {
8341 return use_ascii (foo) == use_ebcdic (foo);
8342   ;
8343   return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_compile "$LINENO"; then :
8347   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8348               ac_cv_c_bigendian=yes
8349             fi
8350             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8351               if test "$ac_cv_c_bigendian" = unknown; then
8352                 ac_cv_c_bigendian=no
8353               else
8354                 # finding both strings is unlikely to happen, but who knows?
8355                 ac_cv_c_bigendian=unknown
8356               fi
8357             fi
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 else
8361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h.  */
8363 $ac_includes_default
8364 int
8365 main ()
8366 {
8367
8368              /* Are we little or big endian?  From Harbison&Steele.  */
8369              union
8370              {
8371                long int l;
8372                char c[sizeof (long int)];
8373              } u;
8374              u.l = 1;
8375              return u.c[sizeof (long int) - 1] == 1;
8376
8377   ;
8378   return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_run "$LINENO"; then :
8382   ac_cv_c_bigendian=no
8383 else
8384   ac_cv_c_bigendian=yes
8385 fi
8386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8387   conftest.$ac_objext conftest.beam conftest.$ac_ext
8388 fi
8389
8390     fi
8391 fi
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8393 $as_echo "$ac_cv_c_bigendian" >&6; }
8394  case $ac_cv_c_bigendian in #(
8395    yes)
8396      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8397 ;; #(
8398    no)
8399       ;; #(
8400    universal)
8401
8402 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8403
8404      ;; #(
8405    *)
8406      as_fn_error "unknown endianness
8407  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8408  esac
8409
8410
8411 # --------
8412 # UNSORTED
8413 # --------
8414
8415
8416 # These libraries may be used by collect2.
8417 # We may need a special search path to get them linked.
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8419 $as_echo_n "checking for collect2 libraries... " >&6; }
8420 if test "${gcc_cv_collect2_libs+set}" = set; then :
8421   $as_echo_n "(cached) " >&6
8422 else
8423   save_LIBS="$LIBS"
8424 for libs in '' -lld -lmld \
8425                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8426                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8427 do
8428         LIBS="$libs"
8429         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h.  */
8431
8432 /* Override any GCC internal prototype to avoid an error.
8433    Use char because int might match the return type of a GCC
8434    builtin and then its argument prototype would still apply.  */
8435 #ifdef __cplusplus
8436 extern "C"
8437 #endif
8438 char ldopen ();
8439 int
8440 main ()
8441 {
8442 return ldopen ();
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_link "$LINENO"; then :
8448   gcc_cv_collect2_libs="$libs"; break
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext \
8451     conftest$ac_exeext conftest.$ac_ext
8452 done
8453 LIBS="$save_LIBS"
8454 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8457 $as_echo "$gcc_cv_collect2_libs" >&6; }
8458 case $gcc_cv_collect2_libs in
8459         "none required")        ;;
8460         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8461 esac
8462
8463
8464 # When building Ada code on Alpha, we need exc_resume which is usually in
8465 # -lexc.  So test for it.
8466 save_LIBS="$LIBS"
8467 LIBS=
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8469 $as_echo_n "checking for library containing exc_resume... " >&6; }
8470 if test "${ac_cv_search_exc_resume+set}" = set; then :
8471   $as_echo_n "(cached) " >&6
8472 else
8473   ac_func_search_save_LIBS=$LIBS
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h.  */
8476
8477 /* Override any GCC internal prototype to avoid an error.
8478    Use char because int might match the return type of a GCC
8479    builtin and then its argument prototype would still apply.  */
8480 #ifdef __cplusplus
8481 extern "C"
8482 #endif
8483 char exc_resume ();
8484 int
8485 main ()
8486 {
8487 return exc_resume ();
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 for ac_lib in '' exc; do
8493   if test -z "$ac_lib"; then
8494     ac_res="none required"
8495   else
8496     ac_res=-l$ac_lib
8497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8498   fi
8499   if ac_fn_c_try_link "$LINENO"; then :
8500   ac_cv_search_exc_resume=$ac_res
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext \
8503     conftest$ac_exeext
8504   if test "${ac_cv_search_exc_resume+set}" = set; then :
8505   break
8506 fi
8507 done
8508 if test "${ac_cv_search_exc_resume+set}" = set; then :
8509
8510 else
8511   ac_cv_search_exc_resume=no
8512 fi
8513 rm conftest.$ac_ext
8514 LIBS=$ac_func_search_save_LIBS
8515 fi
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8517 $as_echo "$ac_cv_search_exc_resume" >&6; }
8518 ac_res=$ac_cv_search_exc_resume
8519 if test "$ac_res" != no; then :
8520   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8521
8522 fi
8523
8524 GNAT_LIBEXC="$LIBS"
8525 LIBS="$save_LIBS"
8526
8527
8528 # Some systems put ldexp and frexp in libm instead of libc; assume
8529 # they're both in the same place.  jcf-dump needs them.
8530 save_LIBS="$LIBS"
8531 LIBS=
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8533 $as_echo_n "checking for library containing ldexp... " >&6; }
8534 if test "${ac_cv_search_ldexp+set}" = set; then :
8535   $as_echo_n "(cached) " >&6
8536 else
8537   ac_func_search_save_LIBS=$LIBS
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h.  */
8540
8541 /* Override any GCC internal prototype to avoid an error.
8542    Use char because int might match the return type of a GCC
8543    builtin and then its argument prototype would still apply.  */
8544 #ifdef __cplusplus
8545 extern "C"
8546 #endif
8547 char ldexp ();
8548 int
8549 main ()
8550 {
8551 return ldexp ();
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 for ac_lib in '' m; do
8557   if test -z "$ac_lib"; then
8558     ac_res="none required"
8559   else
8560     ac_res=-l$ac_lib
8561     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8562   fi
8563   if ac_fn_c_try_link "$LINENO"; then :
8564   ac_cv_search_ldexp=$ac_res
8565 fi
8566 rm -f core conftest.err conftest.$ac_objext \
8567     conftest$ac_exeext
8568   if test "${ac_cv_search_ldexp+set}" = set; then :
8569   break
8570 fi
8571 done
8572 if test "${ac_cv_search_ldexp+set}" = set; then :
8573
8574 else
8575   ac_cv_search_ldexp=no
8576 fi
8577 rm conftest.$ac_ext
8578 LIBS=$ac_func_search_save_LIBS
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8581 $as_echo "$ac_cv_search_ldexp" >&6; }
8582 ac_res=$ac_cv_search_ldexp
8583 if test "$ac_res" != no; then :
8584   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8585
8586 fi
8587
8588 LDEXP_LIB="$LIBS"
8589 LIBS="$save_LIBS"
8590
8591
8592 # Use <inttypes.h> only if it exists,
8593 # doesn't clash with <sys/types.h>, and declares intmax_t.
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8595 $as_echo_n "checking for inttypes.h... " >&6; }
8596 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h.  */
8601 #include <sys/types.h>
8602 #include <inttypes.h>
8603 int
8604 main ()
8605 {
8606 intmax_t i = -1;
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 if ac_fn_c_try_compile "$LINENO"; then :
8612   gcc_cv_header_inttypes_h=yes
8613 else
8614   gcc_cv_header_inttypes_h=no
8615 fi
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8620 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8621 if test $gcc_cv_header_inttypes_h = yes; then
8622
8623 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8624
8625 fi
8626
8627
8628
8629 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8630         sysconf strsignal getrusage nl_langinfo \
8631         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8632         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
8633 do :
8634   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8635 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8636 eval as_val=\$$as_ac_var
8637    if test "x$as_val" = x""yes; then :
8638   cat >>confdefs.h <<_ACEOF
8639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8640 _ACEOF
8641
8642 fi
8643 done
8644
8645
8646 if test x$ac_cv_func_mbstowcs = xyes; then
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8648 $as_echo_n "checking whether mbstowcs works... " >&6; }
8649 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8650   $as_echo_n "(cached) " >&6
8651 else
8652       if test "$cross_compiling" = yes; then :
8653   gcc_cv_func_mbstowcs_works=yes
8654 else
8655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h.  */
8657 #include <stdlib.h>
8658 int main()
8659 {
8660   mbstowcs(0, "", 0);
8661   return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_run "$LINENO"; then :
8665   gcc_cv_func_mbstowcs_works=yes
8666 else
8667   gcc_cv_func_mbstowcs_works=no
8668 fi
8669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8670   conftest.$ac_objext conftest.beam conftest.$ac_ext
8671 fi
8672
8673 fi
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8675 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8676   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8677
8678 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8679
8680   fi
8681 fi
8682
8683 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8684 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8685
8686 else
8687
8688 cat >>confdefs.h <<_ACEOF
8689 #define ssize_t int
8690 _ACEOF
8691
8692 fi
8693
8694 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8695 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8696
8697 else
8698
8699 cat >>confdefs.h <<_ACEOF
8700 #define caddr_t char *
8701 _ACEOF
8702
8703 fi
8704
8705
8706
8707 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8708 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8709   gcc_header_sys_mman_h=yes
8710 else
8711   gcc_header_sys_mman_h=no
8712 fi
8713
8714 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8715 if test "x$ac_cv_func_mmap" = x""yes; then :
8716   gcc_func_mmap=yes
8717 else
8718   gcc_func_mmap=no
8719 fi
8720
8721 if test "$gcc_header_sys_mman_h" != yes \
8722  || test "$gcc_func_mmap" != yes; then
8723    gcc_cv_func_mmap_file=no
8724    gcc_cv_func_mmap_dev_zero=no
8725    gcc_cv_func_mmap_anon=no
8726 else
8727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8728 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8729 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732   # Add a system to this blacklist if
8733    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8734    # memory area containing the same data that you'd get if you applied
8735    # read() to the same fd.  The only system known to have a problem here
8736    # is VMS, where text files have record structure.
8737    case "$host_os" in
8738      vms* | ultrix*)
8739         gcc_cv_func_mmap_file=no ;;
8740      *)
8741         gcc_cv_func_mmap_file=yes;;
8742    esac
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8745 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8746    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8747 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8748 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8749   $as_echo_n "(cached) " >&6
8750 else
8751   # Add a system to this blacklist if it has mmap() but /dev/zero
8752    # does not exist, or if mmapping /dev/zero does not give anonymous
8753    # zeroed pages with both the following properties:
8754    # 1. If you map N consecutive pages in with one call, and then
8755    #    unmap any subset of those pages, the pages that were not
8756    #    explicitly unmapped remain accessible.
8757    # 2. If you map two adjacent blocks of memory and then unmap them
8758    #    both at once, they must both go away.
8759    # Systems known to be in this category are Windows (all variants),
8760    # VMS, and Darwin.
8761    case "$host_os" in
8762      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8763         gcc_cv_func_mmap_dev_zero=no ;;
8764      *)
8765         gcc_cv_func_mmap_dev_zero=yes;;
8766    esac
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8769 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8770
8771    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8773 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8774 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8775   $as_echo_n "(cached) " >&6
8776 else
8777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h.  */
8779 #include <sys/types.h>
8780 #include <sys/mman.h>
8781 #include <unistd.h>
8782
8783 #ifndef MAP_ANONYMOUS
8784 #define MAP_ANONYMOUS MAP_ANON
8785 #endif
8786
8787 int
8788 main ()
8789 {
8790 int n = MAP_ANONYMOUS;
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 if ac_fn_c_try_compile "$LINENO"; then :
8796   gcc_cv_decl_map_anon=yes
8797 else
8798   gcc_cv_decl_map_anon=no
8799 fi
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8803 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8804
8805    if test $gcc_cv_decl_map_anon = no; then
8806      gcc_cv_func_mmap_anon=no
8807    else
8808      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8809 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8810 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8811   $as_echo_n "(cached) " >&6
8812 else
8813   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8814    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8815    # doesn't give anonymous zeroed pages with the same properties listed
8816    # above for use of /dev/zero.
8817    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8818    case "$host_os" in
8819      vms* | cygwin* | pe | mingw* | sco* | udk* )
8820         gcc_cv_func_mmap_anon=no ;;
8821      *)
8822         gcc_cv_func_mmap_anon=yes;;
8823    esac
8824 fi
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8826 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8827    fi
8828 fi
8829
8830 if test $gcc_cv_func_mmap_file = yes; then
8831
8832 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8833
8834 fi
8835 if test $gcc_cv_func_mmap_dev_zero = yes; then
8836
8837 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8838
8839 fi
8840 if test $gcc_cv_func_mmap_anon = yes; then
8841
8842 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8843
8844 fi
8845
8846
8847 case "${host}" in
8848 *-*-*vms*)
8849   # Under VMS, vfork works very differently than on Unix. The standard test
8850   # won't work, and it isn't easily adaptable. It makes more sense to
8851   # just force it.
8852   ac_cv_func_vfork_works=yes
8853   ;;
8854 esac
8855 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8856 if test "x$ac_cv_type_pid_t" = x""yes; then :
8857
8858 else
8859
8860 cat >>confdefs.h <<_ACEOF
8861 #define pid_t int
8862 _ACEOF
8863
8864 fi
8865
8866 for ac_header in vfork.h
8867 do :
8868   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8869 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8870   cat >>confdefs.h <<_ACEOF
8871 #define HAVE_VFORK_H 1
8872 _ACEOF
8873
8874 fi
8875 done
8876
8877 for ac_func in fork vfork
8878 do :
8879   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8881 eval as_val=\$$as_ac_var
8882    if test "x$as_val" = x""yes; then :
8883   cat >>confdefs.h <<_ACEOF
8884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8885 _ACEOF
8886
8887 fi
8888 done
8889
8890 if test "x$ac_cv_func_fork" = xyes; then
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8892 $as_echo_n "checking for working fork... " >&6; }
8893 if test "${ac_cv_func_fork_works+set}" = set; then :
8894   $as_echo_n "(cached) " >&6
8895 else
8896   if test "$cross_compiling" = yes; then :
8897   ac_cv_func_fork_works=cross
8898 else
8899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h.  */
8901 $ac_includes_default
8902 int
8903 main ()
8904 {
8905
8906           /* By Ruediger Kuhlmann. */
8907           return fork () < 0;
8908
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 if ac_fn_c_try_run "$LINENO"; then :
8914   ac_cv_func_fork_works=yes
8915 else
8916   ac_cv_func_fork_works=no
8917 fi
8918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8919   conftest.$ac_objext conftest.beam conftest.$ac_ext
8920 fi
8921
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8924 $as_echo "$ac_cv_func_fork_works" >&6; }
8925
8926 else
8927   ac_cv_func_fork_works=$ac_cv_func_fork
8928 fi
8929 if test "x$ac_cv_func_fork_works" = xcross; then
8930   case $host in
8931     *-*-amigaos* | *-*-msdosdjgpp*)
8932       # Override, as these systems have only a dummy fork() stub
8933       ac_cv_func_fork_works=no
8934       ;;
8935     *)
8936       ac_cv_func_fork_works=yes
8937       ;;
8938   esac
8939   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8940 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8941 fi
8942 ac_cv_func_vfork_works=$ac_cv_func_vfork
8943 if test "x$ac_cv_func_vfork" = xyes; then
8944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8945 $as_echo_n "checking for working vfork... " >&6; }
8946 if test "${ac_cv_func_vfork_works+set}" = set; then :
8947   $as_echo_n "(cached) " >&6
8948 else
8949   if test "$cross_compiling" = yes; then :
8950   ac_cv_func_vfork_works=cross
8951 else
8952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h.  */
8954 /* Thanks to Paul Eggert for this test.  */
8955 $ac_includes_default
8956 #include <sys/wait.h>
8957 #ifdef HAVE_VFORK_H
8958 # include <vfork.h>
8959 #endif
8960 /* On some sparc systems, changes by the child to local and incoming
8961    argument registers are propagated back to the parent.  The compiler
8962    is told about this with #include <vfork.h>, but some compilers
8963    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8964    static variable whose address is put into a register that is
8965    clobbered by the vfork.  */
8966 static void
8967 #ifdef __cplusplus
8968 sparc_address_test (int arg)
8969 # else
8970 sparc_address_test (arg) int arg;
8971 #endif
8972 {
8973   static pid_t child;
8974   if (!child) {
8975     child = vfork ();
8976     if (child < 0) {
8977       perror ("vfork");
8978       _exit(2);
8979     }
8980     if (!child) {
8981       arg = getpid();
8982       write(-1, "", 0);
8983       _exit (arg);
8984     }
8985   }
8986 }
8987
8988 int
8989 main ()
8990 {
8991   pid_t parent = getpid ();
8992   pid_t child;
8993
8994   sparc_address_test (0);
8995
8996   child = vfork ();
8997
8998   if (child == 0) {
8999     /* Here is another test for sparc vfork register problems.  This
9000        test uses lots of local variables, at least as many local
9001        variables as main has allocated so far including compiler
9002        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9003        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9004        reuse the register of parent for one of the local variables,
9005        since it will think that parent can't possibly be used any more
9006        in this routine.  Assigning to the local variable will thus
9007        munge parent in the parent process.  */
9008     pid_t
9009       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9010       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9011     /* Convince the compiler that p..p7 are live; otherwise, it might
9012        use the same hardware register for all 8 local variables.  */
9013     if (p != p1 || p != p2 || p != p3 || p != p4
9014         || p != p5 || p != p6 || p != p7)
9015       _exit(1);
9016
9017     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9018        from child file descriptors.  If the child closes a descriptor
9019        before it execs or exits, this munges the parent's descriptor
9020        as well.  Test for this by closing stdout in the child.  */
9021     _exit(close(fileno(stdout)) != 0);
9022   } else {
9023     int status;
9024     struct stat st;
9025
9026     while (wait(&status) != child)
9027       ;
9028     return (
9029          /* Was there some problem with vforking?  */
9030          child < 0
9031
9032          /* Did the child fail?  (This shouldn't happen.)  */
9033          || status
9034
9035          /* Did the vfork/compiler bug occur?  */
9036          || parent != getpid()
9037
9038          /* Did the file descriptor bug occur?  */
9039          || fstat(fileno(stdout), &st) != 0
9040          );
9041   }
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_run "$LINENO"; then :
9045   ac_cv_func_vfork_works=yes
9046 else
9047   ac_cv_func_vfork_works=no
9048 fi
9049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9050   conftest.$ac_objext conftest.beam conftest.$ac_ext
9051 fi
9052
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9055 $as_echo "$ac_cv_func_vfork_works" >&6; }
9056
9057 fi;
9058 if test "x$ac_cv_func_fork_works" = xcross; then
9059   ac_cv_func_vfork_works=$ac_cv_func_vfork
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9061 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9062 fi
9063
9064 if test "x$ac_cv_func_vfork_works" = xyes; then
9065
9066 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9067
9068 else
9069
9070 $as_echo "#define vfork fork" >>confdefs.h
9071
9072 fi
9073 if test "x$ac_cv_func_fork_works" = xyes; then
9074
9075 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9076
9077 fi
9078
9079
9080
9081       if test "X$prefix" = "XNONE"; then
9082     acl_final_prefix="$ac_default_prefix"
9083   else
9084     acl_final_prefix="$prefix"
9085   fi
9086   if test "X$exec_prefix" = "XNONE"; then
9087     acl_final_exec_prefix='${prefix}'
9088   else
9089     acl_final_exec_prefix="$exec_prefix"
9090   fi
9091   acl_save_prefix="$prefix"
9092   prefix="$acl_final_prefix"
9093   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9094   prefix="$acl_save_prefix"
9095
9096
9097 # Check whether --with-gnu-ld was given.
9098 if test "${with_gnu_ld+set}" = set; then :
9099   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9100 else
9101   with_gnu_ld=no
9102 fi
9103
9104 # Prepare PATH_SEPARATOR.
9105 # The user is always right.
9106 if test "${PATH_SEPARATOR+set}" != set; then
9107   echo "#! /bin/sh" >conf$$.sh
9108   echo  "exit 0"   >>conf$$.sh
9109   chmod +x conf$$.sh
9110   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9111     PATH_SEPARATOR=';'
9112   else
9113     PATH_SEPARATOR=:
9114   fi
9115   rm -f conf$$.sh
9116 fi
9117 ac_prog=ld
9118 if test "$GCC" = yes; then
9119   # Check if gcc -print-prog-name=ld gives a path.
9120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9121 $as_echo_n "checking for ld used by GCC... " >&6; }
9122   case $host in
9123   *-*-mingw*)
9124     # gcc leaves a trailing carriage return which upsets mingw
9125     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9126   *)
9127     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9128   esac
9129   case $ac_prog in
9130     # Accept absolute paths.
9131     [\\/]* | [A-Za-z]:[\\/]*)
9132       re_direlt='/[^/][^/]*/\.\./'
9133       # Canonicalize the path of ld
9134       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9135       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9136         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9137       done
9138       test -z "$LD" && LD="$ac_prog"
9139       ;;
9140   "")
9141     # If it fails, then pretend we aren't using GCC.
9142     ac_prog=ld
9143     ;;
9144   *)
9145     # If it is relative, then search for the first ld in PATH.
9146     with_gnu_ld=unknown
9147     ;;
9148   esac
9149 elif test "$with_gnu_ld" = yes; then
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9151 $as_echo_n "checking for GNU ld... " >&6; }
9152 else
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9154 $as_echo_n "checking for non-GNU ld... " >&6; }
9155 fi
9156 if test "${acl_cv_path_LD+set}" = set; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   if test -z "$LD"; then
9160   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9161   for ac_dir in $PATH; do
9162     test -z "$ac_dir" && ac_dir=.
9163     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9164       acl_cv_path_LD="$ac_dir/$ac_prog"
9165       # Check to see if the program is GNU ld.  I'd rather use --version,
9166       # but apparently some GNU ld's only accept -v.
9167       # Break only if it was the GNU/non-GNU ld that we prefer.
9168       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9169         test "$with_gnu_ld" != no && break
9170       else
9171         test "$with_gnu_ld" != yes && break
9172       fi
9173     fi
9174   done
9175   IFS="$ac_save_ifs"
9176 else
9177   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9178 fi
9179 fi
9180
9181 LD="$acl_cv_path_LD"
9182 if test -n "$LD"; then
9183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9184 $as_echo "$LD" >&6; }
9185 else
9186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9188 fi
9189 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9191 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9192 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9193   $as_echo_n "(cached) " >&6
9194 else
9195   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9196 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9197   acl_cv_prog_gnu_ld=yes
9198 else
9199   acl_cv_prog_gnu_ld=no
9200 fi
9201 fi
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9203 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9204 with_gnu_ld=$acl_cv_prog_gnu_ld
9205
9206
9207
9208                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9209 $as_echo_n "checking for shared library run path origin... " >&6; }
9210 if test "${acl_cv_rpath+set}" = set; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213
9214     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9215     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9216     . ./conftest.sh
9217     rm -f ./conftest.sh
9218     acl_cv_rpath=done
9219
9220 fi
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9222 $as_echo "$acl_cv_rpath" >&6; }
9223   wl="$acl_cv_wl"
9224   libext="$acl_cv_libext"
9225   shlibext="$acl_cv_shlibext"
9226   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9227   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9228   hardcode_direct="$acl_cv_hardcode_direct"
9229   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9230     # Check whether --enable-rpath was given.
9231 if test "${enable_rpath+set}" = set; then :
9232   enableval=$enable_rpath; :
9233 else
9234   enable_rpath=yes
9235 fi
9236
9237
9238
9239
9240
9241
9242
9243
9244     use_additional=yes
9245
9246   acl_save_prefix="$prefix"
9247   prefix="$acl_final_prefix"
9248   acl_save_exec_prefix="$exec_prefix"
9249   exec_prefix="$acl_final_exec_prefix"
9250
9251     eval additional_includedir=\"$includedir\"
9252     eval additional_libdir=\"$libdir\"
9253
9254   exec_prefix="$acl_save_exec_prefix"
9255   prefix="$acl_save_prefix"
9256
9257
9258 # Check whether --with-libiconv-prefix was given.
9259 if test "${with_libiconv_prefix+set}" = set; then :
9260   withval=$with_libiconv_prefix;
9261     if test "X$withval" = "Xno"; then
9262       use_additional=no
9263     else
9264       if test "X$withval" = "X"; then
9265
9266   acl_save_prefix="$prefix"
9267   prefix="$acl_final_prefix"
9268   acl_save_exec_prefix="$exec_prefix"
9269   exec_prefix="$acl_final_exec_prefix"
9270
9271           eval additional_includedir=\"$includedir\"
9272           eval additional_libdir=\"$libdir\"
9273
9274   exec_prefix="$acl_save_exec_prefix"
9275   prefix="$acl_save_prefix"
9276
9277       else
9278         additional_includedir="$withval/include"
9279         additional_libdir="$withval/lib"
9280       fi
9281     fi
9282
9283 fi
9284
9285       LIBICONV=
9286   LTLIBICONV=
9287   INCICONV=
9288   rpathdirs=
9289   ltrpathdirs=
9290   names_already_handled=
9291   names_next_round='iconv '
9292   while test -n "$names_next_round"; do
9293     names_this_round="$names_next_round"
9294     names_next_round=
9295     for name in $names_this_round; do
9296       already_handled=
9297       for n in $names_already_handled; do
9298         if test "$n" = "$name"; then
9299           already_handled=yes
9300           break
9301         fi
9302       done
9303       if test -z "$already_handled"; then
9304         names_already_handled="$names_already_handled $name"
9305                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9306         eval value=\"\$HAVE_LIB$uppername\"
9307         if test -n "$value"; then
9308           if test "$value" = yes; then
9309             eval value=\"\$LIB$uppername\"
9310             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9311             eval value=\"\$LTLIB$uppername\"
9312             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9313           else
9314                                     :
9315           fi
9316         else
9317                               found_dir=
9318           found_la=
9319           found_so=
9320           found_a=
9321           if test $use_additional = yes; then
9322             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9323               found_dir="$additional_libdir"
9324               found_so="$additional_libdir/lib$name.$shlibext"
9325               if test -f "$additional_libdir/lib$name.la"; then
9326                 found_la="$additional_libdir/lib$name.la"
9327               fi
9328             else
9329               if test -f "$additional_libdir/lib$name.$libext"; then
9330                 found_dir="$additional_libdir"
9331                 found_a="$additional_libdir/lib$name.$libext"
9332                 if test -f "$additional_libdir/lib$name.la"; then
9333                   found_la="$additional_libdir/lib$name.la"
9334                 fi
9335               fi
9336             fi
9337           fi
9338           if test "X$found_dir" = "X"; then
9339             for x in $LDFLAGS $LTLIBICONV; do
9340
9341   acl_save_prefix="$prefix"
9342   prefix="$acl_final_prefix"
9343   acl_save_exec_prefix="$exec_prefix"
9344   exec_prefix="$acl_final_exec_prefix"
9345   eval x=\"$x\"
9346   exec_prefix="$acl_save_exec_prefix"
9347   prefix="$acl_save_prefix"
9348
9349               case "$x" in
9350                 -L*)
9351                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9352                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9353                     found_dir="$dir"
9354                     found_so="$dir/lib$name.$shlibext"
9355                     if test -f "$dir/lib$name.la"; then
9356                       found_la="$dir/lib$name.la"
9357                     fi
9358                   else
9359                     if test -f "$dir/lib$name.$libext"; then
9360                       found_dir="$dir"
9361                       found_a="$dir/lib$name.$libext"
9362                       if test -f "$dir/lib$name.la"; then
9363                         found_la="$dir/lib$name.la"
9364                       fi
9365                     fi
9366                   fi
9367                   ;;
9368               esac
9369               if test "X$found_dir" != "X"; then
9370                 break
9371               fi
9372             done
9373           fi
9374           if test "X$found_dir" != "X"; then
9375                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9376             if test "X$found_so" != "X"; then
9377                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9378                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9379               else
9380                                                                                 haveit=
9381                 for x in $ltrpathdirs; do
9382                   if test "X$x" = "X$found_dir"; then
9383                     haveit=yes
9384                     break
9385                   fi
9386                 done
9387                 if test -z "$haveit"; then
9388                   ltrpathdirs="$ltrpathdirs $found_dir"
9389                 fi
9390                                 if test "$hardcode_direct" = yes; then
9391                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9392                 else
9393                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9394                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9395                                                             haveit=
9396                     for x in $rpathdirs; do
9397                       if test "X$x" = "X$found_dir"; then
9398                         haveit=yes
9399                         break
9400                       fi
9401                     done
9402                     if test -z "$haveit"; then
9403                       rpathdirs="$rpathdirs $found_dir"
9404                     fi
9405                   else
9406                                                                                 haveit=
9407                     for x in $LDFLAGS $LIBICONV; do
9408
9409   acl_save_prefix="$prefix"
9410   prefix="$acl_final_prefix"
9411   acl_save_exec_prefix="$exec_prefix"
9412   exec_prefix="$acl_final_exec_prefix"
9413   eval x=\"$x\"
9414   exec_prefix="$acl_save_exec_prefix"
9415   prefix="$acl_save_prefix"
9416
9417                       if test "X$x" = "X-L$found_dir"; then
9418                         haveit=yes
9419                         break
9420                       fi
9421                     done
9422                     if test -z "$haveit"; then
9423                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9424                     fi
9425                     if test "$hardcode_minus_L" != no; then
9426                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9427                     else
9428                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9429                     fi
9430                   fi
9431                 fi
9432               fi
9433             else
9434               if test "X$found_a" != "X"; then
9435                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9436               else
9437                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9438               fi
9439             fi
9440                         additional_includedir=
9441             case "$found_dir" in
9442               */lib | */lib/)
9443                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9444                 additional_includedir="$basedir/include"
9445                 ;;
9446             esac
9447             if test "X$additional_includedir" != "X"; then
9448                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9449                 haveit=
9450                 if test "X$additional_includedir" = "X/usr/local/include"; then
9451                   if test -n "$GCC"; then
9452                     case $host_os in
9453                       linux*) haveit=yes;;
9454                     esac
9455                   fi
9456                 fi
9457                 if test -z "$haveit"; then
9458                   for x in $CPPFLAGS $INCICONV; do
9459
9460   acl_save_prefix="$prefix"
9461   prefix="$acl_final_prefix"
9462   acl_save_exec_prefix="$exec_prefix"
9463   exec_prefix="$acl_final_exec_prefix"
9464   eval x=\"$x\"
9465   exec_prefix="$acl_save_exec_prefix"
9466   prefix="$acl_save_prefix"
9467
9468                     if test "X$x" = "X-I$additional_includedir"; then
9469                       haveit=yes
9470                       break
9471                     fi
9472                   done
9473                   if test -z "$haveit"; then
9474                     if test -d "$additional_includedir"; then
9475                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9476                     fi
9477                   fi
9478                 fi
9479               fi
9480             fi
9481                         if test -n "$found_la"; then
9482                                                         save_libdir="$libdir"
9483               case "$found_la" in
9484                 */* | *\\*) . "$found_la" ;;
9485                 *) . "./$found_la" ;;
9486               esac
9487               libdir="$save_libdir"
9488                             for dep in $dependency_libs; do
9489                 case "$dep" in
9490                   -L*)
9491                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9492                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9493                       haveit=
9494                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9495                         if test -n "$GCC"; then
9496                           case $host_os in
9497                             linux*) haveit=yes;;
9498                           esac
9499                         fi
9500                       fi
9501                       if test -z "$haveit"; then
9502                         haveit=
9503                         for x in $LDFLAGS $LIBICONV; do
9504
9505   acl_save_prefix="$prefix"
9506   prefix="$acl_final_prefix"
9507   acl_save_exec_prefix="$exec_prefix"
9508   exec_prefix="$acl_final_exec_prefix"
9509   eval x=\"$x\"
9510   exec_prefix="$acl_save_exec_prefix"
9511   prefix="$acl_save_prefix"
9512
9513                           if test "X$x" = "X-L$additional_libdir"; then
9514                             haveit=yes
9515                             break
9516                           fi
9517                         done
9518                         if test -z "$haveit"; then
9519                           if test -d "$additional_libdir"; then
9520                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9521                           fi
9522                         fi
9523                         haveit=
9524                         for x in $LDFLAGS $LTLIBICONV; do
9525
9526   acl_save_prefix="$prefix"
9527   prefix="$acl_final_prefix"
9528   acl_save_exec_prefix="$exec_prefix"
9529   exec_prefix="$acl_final_exec_prefix"
9530   eval x=\"$x\"
9531   exec_prefix="$acl_save_exec_prefix"
9532   prefix="$acl_save_prefix"
9533
9534                           if test "X$x" = "X-L$additional_libdir"; then
9535                             haveit=yes
9536                             break
9537                           fi
9538                         done
9539                         if test -z "$haveit"; then
9540                           if test -d "$additional_libdir"; then
9541                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9542                           fi
9543                         fi
9544                       fi
9545                     fi
9546                     ;;
9547                   -R*)
9548                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9549                     if test "$enable_rpath" != no; then
9550                                                                   haveit=
9551                       for x in $rpathdirs; do
9552                         if test "X$x" = "X$dir"; then
9553                           haveit=yes
9554                           break
9555                         fi
9556                       done
9557                       if test -z "$haveit"; then
9558                         rpathdirs="$rpathdirs $dir"
9559                       fi
9560                                                                   haveit=
9561                       for x in $ltrpathdirs; do
9562                         if test "X$x" = "X$dir"; then
9563                           haveit=yes
9564                           break
9565                         fi
9566                       done
9567                       if test -z "$haveit"; then
9568                         ltrpathdirs="$ltrpathdirs $dir"
9569                       fi
9570                     fi
9571                     ;;
9572                   -l*)
9573                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9574                     ;;
9575                   *.la)
9576                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9577                     ;;
9578                   *)
9579                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9580                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9581                     ;;
9582                 esac
9583               done
9584             fi
9585           else
9586                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9587             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9588           fi
9589         fi
9590       fi
9591     done
9592   done
9593   if test "X$rpathdirs" != "X"; then
9594     if test -n "$hardcode_libdir_separator"; then
9595                         alldirs=
9596       for found_dir in $rpathdirs; do
9597         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9598       done
9599             acl_save_libdir="$libdir"
9600       libdir="$alldirs"
9601       eval flag=\"$hardcode_libdir_flag_spec\"
9602       libdir="$acl_save_libdir"
9603       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9604     else
9605             for found_dir in $rpathdirs; do
9606         acl_save_libdir="$libdir"
9607         libdir="$found_dir"
9608         eval flag=\"$hardcode_libdir_flag_spec\"
9609         libdir="$acl_save_libdir"
9610         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9611       done
9612     fi
9613   fi
9614   if test "X$ltrpathdirs" != "X"; then
9615             for found_dir in $ltrpathdirs; do
9616       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9617     done
9618   fi
9619
9620
9621
9622
9623
9624
9625
9626           am_save_CPPFLAGS="$CPPFLAGS"
9627
9628   for element in $INCICONV; do
9629     haveit=
9630     for x in $CPPFLAGS; do
9631
9632   acl_save_prefix="$prefix"
9633   prefix="$acl_final_prefix"
9634   acl_save_exec_prefix="$exec_prefix"
9635   exec_prefix="$acl_final_exec_prefix"
9636   eval x=\"$x\"
9637   exec_prefix="$acl_save_exec_prefix"
9638   prefix="$acl_save_prefix"
9639
9640       if test "X$x" = "X$element"; then
9641         haveit=yes
9642         break
9643       fi
9644     done
9645     if test -z "$haveit"; then
9646       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9647     fi
9648   done
9649
9650
9651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9652 $as_echo_n "checking for iconv... " >&6; }
9653 if test "${am_cv_func_iconv+set}" = set; then :
9654   $as_echo_n "(cached) " >&6
9655 else
9656
9657     am_cv_func_iconv="no, consider installing GNU libiconv"
9658     am_cv_lib_iconv=no
9659     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h.  */
9661 #include <stdlib.h>
9662 #include <iconv.h>
9663 int
9664 main ()
9665 {
9666 iconv_t cd = iconv_open("","");
9667        iconv(cd,NULL,NULL,NULL,NULL);
9668        iconv_close(cd);
9669   ;
9670   return 0;
9671 }
9672 _ACEOF
9673 if ac_fn_c_try_link "$LINENO"; then :
9674   am_cv_func_iconv=yes
9675 fi
9676 rm -f core conftest.err conftest.$ac_objext \
9677     conftest$ac_exeext conftest.$ac_ext
9678     if test "$am_cv_func_iconv" != yes; then
9679       am_save_LIBS="$LIBS"
9680       LIBS="$LIBS $LIBICONV"
9681       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h.  */
9683 #include <stdlib.h>
9684 #include <iconv.h>
9685 int
9686 main ()
9687 {
9688 iconv_t cd = iconv_open("","");
9689          iconv(cd,NULL,NULL,NULL,NULL);
9690          iconv_close(cd);
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 if ac_fn_c_try_link "$LINENO"; then :
9696   am_cv_lib_iconv=yes
9697         am_cv_func_iconv=yes
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext \
9700     conftest$ac_exeext conftest.$ac_ext
9701       LIBS="$am_save_LIBS"
9702     fi
9703
9704 fi
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9706 $as_echo "$am_cv_func_iconv" >&6; }
9707   if test "$am_cv_func_iconv" = yes; then
9708
9709 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9710
9711   fi
9712   if test "$am_cv_lib_iconv" = yes; then
9713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9714 $as_echo_n "checking how to link with libiconv... " >&6; }
9715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9716 $as_echo "$LIBICONV" >&6; }
9717   else
9718             CPPFLAGS="$am_save_CPPFLAGS"
9719     LIBICONV=
9720     LTLIBICONV=
9721   fi
9722
9723
9724
9725   if test "$am_cv_func_iconv" = yes; then
9726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9727 $as_echo_n "checking for iconv declaration... " >&6; }
9728     if test "${am_cv_proto_iconv+set}" = set; then :
9729   $as_echo_n "(cached) " >&6
9730 else
9731
9732       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h.  */
9734
9735 #include <stdlib.h>
9736 #include <iconv.h>
9737 extern
9738 #ifdef __cplusplus
9739 "C"
9740 #endif
9741 #if defined(__STDC__) || defined(__cplusplus)
9742 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9743 #else
9744 size_t iconv();
9745 #endif
9746
9747 int
9748 main ()
9749 {
9750
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756   am_cv_proto_iconv_arg1=""
9757 else
9758   am_cv_proto_iconv_arg1="const"
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761       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);"
9762 fi
9763
9764     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9766          }$am_cv_proto_iconv" >&5
9767 $as_echo "${ac_t:-
9768          }$am_cv_proto_iconv" >&6; }
9769
9770 cat >>confdefs.h <<_ACEOF
9771 #define ICONV_CONST $am_cv_proto_iconv_arg1
9772 _ACEOF
9773
9774   fi
9775
9776 # Until we have in-tree GNU iconv:
9777 LIBICONV_DEP=
9778
9779
9780
9781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9782 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9783 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9784   $as_echo_n "(cached) " >&6
9785 else
9786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h.  */
9788 #include <locale.h>
9789 int
9790 main ()
9791 {
9792 return LC_MESSAGES
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 if ac_fn_c_try_link "$LINENO"; then :
9798   am_cv_val_LC_MESSAGES=yes
9799 else
9800   am_cv_val_LC_MESSAGES=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext \
9803     conftest$ac_exeext conftest.$ac_ext
9804 fi
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9806 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9807   if test $am_cv_val_LC_MESSAGES = yes; then
9808
9809 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9810
9811   fi
9812
9813
9814
9815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9816 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9817 if test "${am_cv_langinfo_codeset+set}" = set; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h.  */
9822 #include <langinfo.h>
9823 int
9824 main ()
9825 {
9826 char* cs = nl_langinfo(CODESET);
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_link "$LINENO"; then :
9832   am_cv_langinfo_codeset=yes
9833 else
9834   am_cv_langinfo_codeset=no
9835 fi
9836 rm -f core conftest.err conftest.$ac_objext \
9837     conftest$ac_exeext conftest.$ac_ext
9838
9839 fi
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9841 $as_echo "$am_cv_langinfo_codeset" >&6; }
9842   if test $am_cv_langinfo_codeset = yes; then
9843
9844 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9845
9846   fi
9847
9848
9849 # We will need to find libiberty.h and ansidecl.h
9850 saved_CFLAGS="$CFLAGS"
9851 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9852 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9853         strsignal strstr strverscmp \
9854         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9855         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
9856 do
9857   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9859 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9860 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9861   $as_echo_n "(cached) " >&6
9862 else
9863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h.  */
9865 #undef $ac_tr_decl
9866 #define $ac_tr_decl 1
9867
9868 #include "ansidecl.h"
9869 #include "system.h"
9870
9871 int
9872 main ()
9873 {
9874 #ifndef $ac_func
9875 char *(*pfn) = (char *(*)) $ac_func ;
9876 #endif
9877   ;
9878   return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_c_try_compile "$LINENO"; then :
9882   eval "gcc_cv_have_decl_$ac_func=yes"
9883 else
9884   eval "gcc_cv_have_decl_$ac_func=no"
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 fi
9888
9889 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9891 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9892 #define $ac_tr_decl 1
9893 _ACEOF
9894
9895 else
9896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9898 #define $ac_tr_decl 0
9899 _ACEOF
9900
9901 fi
9902
9903 done
9904
9905
9906 for ac_func in getrlimit setrlimit getrusage
9907 do
9908   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9910 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9911 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9912   $as_echo_n "(cached) " >&6
9913 else
9914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h.  */
9916 #undef $ac_tr_decl
9917 #define $ac_tr_decl 1
9918
9919 #include "ansidecl.h"
9920 #include "system.h"
9921 #ifdef HAVE_SYS_RESOURCE_H
9922 #include <sys/resource.h>
9923 #endif
9924
9925
9926 int
9927 main ()
9928 {
9929 #ifndef $ac_func
9930 char *(*pfn) = (char *(*)) $ac_func ;
9931 #endif
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 if ac_fn_c_try_compile "$LINENO"; then :
9937   eval "gcc_cv_have_decl_$ac_func=yes"
9938 else
9939   eval "gcc_cv_have_decl_$ac_func=no"
9940 fi
9941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9942 fi
9943
9944 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9946 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9947 #define $ac_tr_decl 1
9948 _ACEOF
9949
9950 else
9951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9953 #define $ac_tr_decl 0
9954 _ACEOF
9955
9956 fi
9957
9958 done
9959
9960
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h.  */
9963
9964 #include "ansidecl.h"
9965 #include "system.h"
9966 #ifdef HAVE_SYS_RESOURCE_H
9967 #include <sys/resource.h>
9968 #endif
9969
9970 int
9971 main ()
9972 {
9973 rlim_t l = 0;
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 if ac_fn_c_try_compile "$LINENO"; then :
9979
9980 else
9981
9982 $as_echo "#define rlim_t long" >>confdefs.h
9983
9984 fi
9985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9986
9987 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9988 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9989 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9990 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9991 for ac_func in ldgetname
9992 do
9993   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9995 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9996 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9997   $as_echo_n "(cached) " >&6
9998 else
9999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h.  */
10001 #undef $ac_tr_decl
10002 #define $ac_tr_decl 1
10003
10004 #include "ansidecl.h"
10005 #include "system.h"
10006 #ifdef HAVE_LDFCN_H
10007 #undef FREAD
10008 #undef FWRITE
10009 #include <ldfcn.h>
10010 #endif
10011
10012
10013 int
10014 main ()
10015 {
10016 #ifndef $ac_func
10017 char *(*pfn) = (char *(*)) $ac_func ;
10018 #endif
10019   ;
10020   return 0;
10021 }
10022 _ACEOF
10023 if ac_fn_c_try_compile "$LINENO"; then :
10024   eval "gcc_cv_have_decl_$ac_func=yes"
10025 else
10026   eval "gcc_cv_have_decl_$ac_func=no"
10027 fi
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 fi
10030
10031 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10033 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10034 #define $ac_tr_decl 1
10035 _ACEOF
10036
10037 else
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10040 #define $ac_tr_decl 0
10041 _ACEOF
10042
10043 fi
10044
10045 done
10046
10047
10048 for ac_func in times
10049 do
10050   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10052 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10053 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10054   $as_echo_n "(cached) " >&6
10055 else
10056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h.  */
10058 #undef $ac_tr_decl
10059 #define $ac_tr_decl 1
10060
10061 #include "ansidecl.h"
10062 #include "system.h"
10063 #ifdef HAVE_SYS_TIMES_H
10064 #include <sys/times.h>
10065 #endif
10066
10067
10068 int
10069 main ()
10070 {
10071 #ifndef $ac_func
10072 char *(*pfn) = (char *(*)) $ac_func ;
10073 #endif
10074   ;
10075   return 0;
10076 }
10077 _ACEOF
10078 if ac_fn_c_try_compile "$LINENO"; then :
10079   eval "gcc_cv_have_decl_$ac_func=yes"
10080 else
10081   eval "gcc_cv_have_decl_$ac_func=no"
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084 fi
10085
10086 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10088 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10089 #define $ac_tr_decl 1
10090 _ACEOF
10091
10092 else
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10095 #define $ac_tr_decl 0
10096 _ACEOF
10097
10098 fi
10099
10100 done
10101
10102
10103 for ac_func in sigaltstack
10104 do
10105   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10107 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10108 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10109   $as_echo_n "(cached) " >&6
10110 else
10111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h.  */
10113 #undef $ac_tr_decl
10114 #define $ac_tr_decl 1
10115
10116 #include "ansidecl.h"
10117 #include "system.h"
10118 #include <signal.h>
10119
10120
10121 int
10122 main ()
10123 {
10124 #ifndef $ac_func
10125 char *(*pfn) = (char *(*)) $ac_func ;
10126 #endif
10127   ;
10128   return 0;
10129 }
10130 _ACEOF
10131 if ac_fn_c_try_compile "$LINENO"; then :
10132   eval "gcc_cv_have_decl_$ac_func=yes"
10133 else
10134   eval "gcc_cv_have_decl_$ac_func=no"
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 fi
10138
10139 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10141 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10142 #define $ac_tr_decl 1
10143 _ACEOF
10144
10145 else
10146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10148 #define $ac_tr_decl 0
10149 _ACEOF
10150
10151 fi
10152
10153 done
10154
10155
10156 # More time-related stuff.
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10158 $as_echo_n "checking for struct tms... " >&6; }
10159 if test "${ac_cv_struct_tms+set}" = set; then :
10160   $as_echo_n "(cached) " >&6
10161 else
10162
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h.  */
10165
10166 #include "ansidecl.h"
10167 #include "system.h"
10168 #ifdef HAVE_SYS_TIMES_H
10169 #include <sys/times.h>
10170 #endif
10171
10172 int
10173 main ()
10174 {
10175 struct tms tms;
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 if ac_fn_c_try_compile "$LINENO"; then :
10181   ac_cv_struct_tms=yes
10182 else
10183   ac_cv_struct_tms=no
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10188 $as_echo "$ac_cv_struct_tms" >&6; }
10189 if test $ac_cv_struct_tms = yes; then
10190
10191 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10192
10193 fi
10194
10195 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10196 # revisit after autoconf 2.50.
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10198 $as_echo_n "checking for clock_t... " >&6; }
10199 if test "${gcc_cv_type_clock_t+set}" = set; then :
10200   $as_echo_n "(cached) " >&6
10201 else
10202
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h.  */
10205
10206 #include "ansidecl.h"
10207 #include "system.h"
10208
10209 int
10210 main ()
10211 {
10212 clock_t x;
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_compile "$LINENO"; then :
10218   gcc_cv_type_clock_t=yes
10219 else
10220   gcc_cv_type_clock_t=no
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10223 fi
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10225 $as_echo "$gcc_cv_type_clock_t" >&6; }
10226 if test $gcc_cv_type_clock_t = yes; then
10227
10228 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10229
10230 fi
10231
10232 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10233 CFLAGS="$saved_CFLAGS"
10234
10235 # Check whether --enable-initfini-array was given.
10236 if test "${enable_initfini_array+set}" = set; then :
10237   enableval=$enable_initfini_array;
10238 else
10239
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10241 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10242 if test "${gcc_cv_initfini_array+set}" = set; then :
10243   $as_echo_n "(cached) " >&6
10244 else
10245     if test "$cross_compiling" = yes; then :
10246   gcc_cv_initfini_array=no
10247 else
10248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h.  */
10250
10251 static int x = -1;
10252 int main (void) { return x; }
10253 int foo (void) { x = 0; }
10254 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10255 _ACEOF
10256 if ac_fn_c_try_run "$LINENO"; then :
10257   gcc_cv_initfini_array=yes
10258 else
10259   gcc_cv_initfini_array=no
10260 fi
10261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10262   conftest.$ac_objext conftest.beam conftest.$ac_ext
10263 fi
10264
10265 fi
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10267 $as_echo "$gcc_cv_initfini_array" >&6; }
10268   enable_initfini_array=$gcc_cv_initfini_array
10269
10270 fi
10271
10272 if test $enable_initfini_array = yes; then
10273
10274 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10275
10276 fi
10277
10278 # mkdir takes a single argument on some systems.
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10280 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10281 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10282   $as_echo_n "(cached) " >&6
10283 else
10284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h.  */
10286
10287 #include <sys/types.h>
10288 #ifdef HAVE_SYS_STAT_H
10289 # include <sys/stat.h>
10290 #endif
10291 #ifdef HAVE_UNISTD_H
10292 # include <unistd.h>
10293 #endif
10294 #ifdef HAVE_DIRECT_H
10295 # include <direct.h>
10296 #endif
10297 int
10298 main ()
10299 {
10300 mkdir ("foo", 0);
10301   ;
10302   return 0;
10303 }
10304 _ACEOF
10305 if ac_fn_c_try_compile "$LINENO"; then :
10306   gcc_cv_mkdir_takes_one_arg=no
10307 else
10308   gcc_cv_mkdir_takes_one_arg=yes
10309 fi
10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10313 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10314 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10315
10316 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10317
10318 fi
10319
10320
10321 # File extensions
10322 manext='.1'
10323 objext='.o'
10324
10325
10326
10327 # With Setjmp/Longjmp based exception handling.
10328 # Check whether --enable-sjlj-exceptions was given.
10329 if test "${enable_sjlj_exceptions+set}" = set; then :
10330   enableval=$enable_sjlj_exceptions; case $target in
10331   *-*-hpux10*)
10332     if test $enableval != yes; then
10333       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10334 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10335       enableval=yes
10336     fi
10337     ;;
10338 esac
10339 force_sjlj_exceptions=yes
10340 else
10341   case $target in
10342   *-*-hpux10*)
10343     force_sjlj_exceptions=yes
10344     enableval=yes
10345     ;;
10346   *)
10347     force_sjlj_exceptions=no
10348     ;;
10349 esac
10350 fi
10351
10352 if test $force_sjlj_exceptions = yes; then
10353   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10354
10355 cat >>confdefs.h <<_ACEOF
10356 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10357 _ACEOF
10358
10359 fi
10360
10361 # For platforms with the unwind ABI which includes an unwind library,
10362 # libunwind, we can choose to use the system libunwind.
10363 # config.gcc also contains tests of with_system_libunwind.
10364
10365
10366 # Check whether --with-system-libunwind was given.
10367 if test "${with_system_libunwind+set}" = set; then :
10368   withval=$with_system_libunwind;
10369 fi
10370
10371   # If system-libunwind was not specifically set, pick a default setting.
10372   if test x$with_system_libunwind = x; then
10373     case ${target} in
10374       ia64-*-hpux*) with_system_libunwind=yes ;;
10375       *) with_system_libunwind=no ;;
10376     esac
10377   fi
10378   # Based on system-libunwind and target, do we have ipinfo?
10379   if  test x$with_system_libunwind = xyes; then
10380     case ${target} in
10381       ia64-*-*) have_unwind_getipinfo=no ;;
10382       *) have_unwind_getipinfo=yes ;;
10383     esac
10384   else
10385     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10386
10387     case ${target} in
10388       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10389       *) have_unwind_getipinfo=yes ;;
10390     esac
10391
10392   fi
10393
10394   if test x$have_unwind_getipinfo = xyes; then
10395
10396 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10397
10398   fi
10399
10400
10401 # --------------------------------------------------------
10402 # Build, host, and target specific configuration fragments
10403 # --------------------------------------------------------
10404
10405 # Collect build-machine-specific information.
10406 . ${srcdir}/config.build
10407
10408 # Collect host-machine-specific information.
10409 . ${srcdir}/config.host
10410
10411 target_gtfiles=
10412
10413 # Collect target-machine-specific information.
10414 . ${srcdir}/config.gcc
10415
10416 extra_objs="${host_extra_objs} ${extra_objs}"
10417 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10418
10419 # Default the target-machine variables that were not explicitly set.
10420 if test x"$tm_file" = x
10421 then tm_file=$cpu_type/$cpu_type.h; fi
10422
10423 if test x"$extra_headers" = x
10424 then extra_headers=; fi
10425
10426 if test x$md_file = x
10427 then md_file=$cpu_type/$cpu_type.md; fi
10428
10429 if test x$out_file = x
10430 then out_file=$cpu_type/$cpu_type.c; fi
10431
10432 if test x"$tmake_file" = x
10433 then tmake_file=$cpu_type/t-$cpu_type
10434 fi
10435
10436 if test x"$dwarf2" = xyes
10437 then tm_file="$tm_file tm-dwarf2.h"
10438 fi
10439
10440 # Say what files are being used for the output code and MD file.
10441 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10442 echo "Using \`$srcdir/config/$md_file' as machine description file."
10443
10444 # If any of the xm_file variables contain nonexistent files, warn
10445 # about them and drop them.
10446
10447 bx=
10448 for x in $build_xm_file; do
10449   if    test -f $srcdir/config/$x
10450   then      bx="$bx $x"
10451   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10452 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10453   fi
10454 done
10455 build_xm_file="$bx"
10456
10457 hx=
10458 for x in $host_xm_file; do
10459   if    test -f $srcdir/config/$x
10460   then      hx="$hx $x"
10461   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10462 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10463   fi
10464 done
10465 host_xm_file="$hx"
10466
10467 tx=
10468 for x in $xm_file; do
10469   if    test -f $srcdir/config/$x
10470   then      tx="$tx $x"
10471   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10472 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10473   fi
10474 done
10475 xm_file="$tx"
10476
10477 count=a
10478 for f in $tm_file; do
10479         count=${count}x
10480 done
10481 if test $count = ax; then
10482         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10483 else
10484         echo "Using the following target machine macro files:"
10485         for f in $tm_file; do
10486                 echo "  $srcdir/config/$f"
10487         done
10488 fi
10489
10490 if test x$need_64bit_hwint = xyes; then
10491
10492 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10493
10494 fi
10495
10496 if test x$use_long_long_for_widest_fast_int = xyes; then
10497
10498 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10499
10500 fi
10501
10502 count=a
10503 for f in $host_xm_file; do
10504         count=${count}x
10505 done
10506 if test $count = a; then
10507         :
10508 elif test $count = ax; then
10509         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10510 else
10511         echo "Using the following host machine macro files:"
10512         for f in $host_xm_file; do
10513                 echo "  $srcdir/config/$f"
10514         done
10515 fi
10516 echo "Using ${out_host_hook_obj} for host machine hooks."
10517
10518 if test "$host_xm_file" != "$build_xm_file"; then
10519         count=a
10520         for f in $build_xm_file; do
10521                 count=${count}x
10522         done
10523         if test $count = a; then
10524                 :
10525         elif test $count = ax; then
10526                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10527         else
10528                 echo "Using the following build machine macro files:"
10529                 for f in $build_xm_file; do
10530                         echo "  $srcdir/config/$f"
10531                 done
10532         fi
10533 fi
10534
10535 case ${host} in
10536   powerpc*-*-darwin*)
10537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10538 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10539 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10540   $as_echo_n "(cached) " >&6
10541 else
10542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h.  */
10544
10545 #include <sys/cdefs.h>
10546 #include <sys/signal.h>
10547 #include <ucontext.h>
10548 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10549
10550 _ACEOF
10551 if ac_fn_c_try_compile "$LINENO"; then :
10552   gcc_cv_mcontext_underscores=no
10553 else
10554   gcc_cv_mcontext_underscores=yes
10555 fi
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557 fi
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10559 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10560       if test $gcc_cv_mcontext_underscores = yes; then
10561
10562 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10563
10564       fi
10565     ;;
10566 esac
10567
10568 # ---------
10569 # Threading
10570 # ---------
10571
10572 # Check if a valid thread package
10573 case ${enable_threads} in
10574   "" | no)
10575     # No threads
10576     target_thread_file='single'
10577     ;;
10578   yes)
10579     # default
10580     target_thread_file='single'
10581     ;;
10582   aix | dce | gnat | irix | posix | posix95 | rtems | \
10583   single | solaris | vxworks | win32 | mipssde)
10584     target_thread_file=${enable_threads}
10585     ;;
10586   *)
10587     echo "${enable_threads} is an unknown thread package" 1>&2
10588     exit 1
10589     ;;
10590 esac
10591
10592 if test x${thread_file} = x; then
10593   # No thread file set by target-specific clauses in config.gcc,
10594   # so use file chosen by default logic above
10595   thread_file=${target_thread_file}
10596 fi
10597
10598 # Make gthr-default.h if we have a thread file.
10599 gthread_flags=
10600 if test $thread_file != single; then
10601   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10602   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10603     rm -f gthr-default.h-t
10604   else
10605     mv -f gthr-default.h-t gthr-default.h
10606   fi
10607   gthread_flags=-DHAVE_GTHR_DEFAULT
10608 fi
10609
10610
10611 # --------
10612 # UNSORTED
10613 # --------
10614
10615 use_cxa_atexit=no
10616 if test x$enable___cxa_atexit = xyes || \
10617    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10618   if test x$host = x$target; then
10619     case $host in
10620       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10621       # keyed to flag_use_cxa_atexit
10622       *-*-mingw32*)
10623         use_cxa_atexit=yes
10624         ;;
10625       *)
10626         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10627 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10628   use_cxa_atexit=yes
10629 else
10630   echo "__cxa_atexit can't be enabled on this target"
10631 fi
10632
10633         ;;
10634     esac
10635   else
10636     # We can't check for __cxa_atexit when building a cross, so assume
10637     # it is available
10638     use_cxa_atexit=yes
10639   fi
10640   if test x$use_cxa_atexit = xyes; then
10641
10642 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10643
10644   fi
10645 fi
10646
10647 # Look for a file containing extra machine modes.
10648 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10649   extra_modes_file='$(srcdir)'/config/${extra_modes}
10650
10651
10652 cat >>confdefs.h <<_ACEOF
10653 #define EXTRA_MODES_FILE "config/$extra_modes"
10654 _ACEOF
10655
10656 fi
10657
10658 # Convert extra_options into a form suitable for Makefile use.
10659 extra_opt_files=
10660 all_opt_files=
10661 for f in $extra_options; do
10662   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10663   all_opt_files="$all_opt_files $srcdir/config/$f"
10664 done
10665
10666
10667 # auto-host.h is the file containing items generated by autoconf and is
10668 # the first file included by config.h.
10669 # If host=build, it is correct to have bconfig include auto-host.h
10670 # as well.  If host!=build, we are in error and need to do more
10671 # work to find out the build config parameters.
10672 if test x$host = x$build
10673 then
10674         build_auto=auto-host.h
10675 else
10676         # We create a subdir, then run autoconf in the subdir.
10677         # To prevent recursion we set host and build for the new
10678         # invocation of configure to the build for this invocation
10679         # of configure.
10680         tempdir=build.$$
10681         rm -rf $tempdir
10682         mkdir $tempdir
10683         cd $tempdir
10684         case ${srcdir} in
10685         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10686         *) realsrcdir=../${srcdir};;
10687         esac
10688         saved_CFLAGS="${CFLAGS}"
10689         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10690         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10691         ${realsrcdir}/configure \
10692                 --enable-languages=${enable_languages-all} \
10693                 --target=$target_alias --host=$build_alias --build=$build_alias
10694         CFLAGS="${saved_CFLAGS}"
10695
10696         # We just finished tests for the build machine, so rename
10697         # the file auto-build.h in the gcc directory.
10698         mv auto-host.h ../auto-build.h
10699         cd ..
10700         rm -rf $tempdir
10701         build_auto=auto-build.h
10702 fi
10703
10704
10705 tm_file="${tm_file} defaults.h"
10706 tm_p_file="${tm_p_file} tm-preds.h"
10707 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10708 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10709 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10710 # put this back in temporarily.
10711 xm_file="auto-host.h ansidecl.h ${xm_file}"
10712
10713 # --------
10714 # UNSORTED
10715 # --------
10716
10717 # Compile in configure arguments.
10718 if test -f configargs.h ; then
10719         # Being re-configured.
10720         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10721         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10722 else
10723         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10724 fi
10725
10726 # Double all backslashes and backslash all quotes to turn
10727 # gcc_config_arguments into a C string.
10728 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10729 $gcc_config_arguments
10730 EOF
10731 gcc_config_arguments_str=`cat conftest.out`
10732 rm -f conftest.out
10733
10734 cat > configargs.h <<EOF
10735 /* Generated automatically. */
10736 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10737 static const char thread_model[] = "$thread_file";
10738
10739 static const struct {
10740   const char *name, *value;
10741 } configure_default_options[] = $configure_default_options;
10742 EOF
10743
10744 gcc_BASEVER=`cat $srcdir/BASE-VER`
10745 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10746 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10747 if test -f $srcdir/REVISION ; then
10748         gcc_REVISION=`cat $srcdir/REVISION`
10749 else
10750         gcc_REVISION=""
10751 fi
10752 cat > plugin-version.h <<EOF
10753 #include "configargs.h"
10754
10755 static char basever[] = "$gcc_BASEVER";
10756 static char datestamp[] = "$gcc_DATESTAMP";
10757 static char devphase[] = "$gcc_DEVPHASE";
10758 static char revision[] = "$gcc_REVISION";
10759
10760 /* FIXME plugins: We should make the version information more precise.
10761    One way to do is to add a checksum. */
10762
10763 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10764                                                 devphase, revision,
10765                                                 configuration_arguments};
10766 EOF
10767
10768 # Internationalization
10769 # If we haven't got the data from the intl directory,
10770 # assume NLS is disabled.
10771 USE_NLS=no
10772 LIBINTL=
10773 LIBINTL_DEP=
10774 INCINTL=
10775 XGETTEXT=
10776 GMSGFMT=
10777 POSUB=
10778
10779 if test -f  ../intl/config.intl; then
10780   .  ../intl/config.intl
10781 fi
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10783 $as_echo_n "checking whether NLS is requested... " >&6; }
10784 if test x"$USE_NLS" != xyes; then
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787 else
10788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10789 $as_echo "yes" >&6; }
10790
10791 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10792
10793
10794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10795 $as_echo_n "checking for catalogs to be installed... " >&6; }
10796   # Look for .po and .gmo files in the source directory.
10797   CATALOGS=
10798   XLINGUAS=
10799   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10800     # If there aren't any .gmo files the shell will give us the
10801     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10802     # weeded out.
10803     case "$cat" in *\**)
10804       continue;;
10805     esac
10806     # The quadruple backslash is collapsed to a double backslash
10807     # by the backticks, then collapsed again by the double quotes,
10808     # leaving us with one backslash in the sed expression (right
10809     # before the dot that mustn't act as a wildcard).
10810     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10811     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10812     # The user is allowed to set LINGUAS to a list of languages to
10813     # install catalogs for.  If it's empty that means "all of them."
10814     if test "x$LINGUAS" = x; then
10815       CATALOGS="$CATALOGS $cat"
10816       XLINGUAS="$XLINGUAS $lang"
10817     else
10818       case "$LINGUAS" in *$lang*)
10819         CATALOGS="$CATALOGS $cat"
10820         XLINGUAS="$XLINGUAS $lang"
10821         ;;
10822       esac
10823     fi
10824   done
10825   LINGUAS="$XLINGUAS"
10826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10827 $as_echo "$LINGUAS" >&6; }
10828
10829
10830     DATADIRNAME=share
10831
10832   INSTOBJEXT=.mo
10833
10834   GENCAT=gencat
10835
10836   CATOBJEXT=.gmo
10837
10838 fi
10839
10840 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10841 # -liconv on the link line twice.
10842 case "$LIBINTL" in *$LIBICONV*)
10843         LIBICONV= ;;
10844 esac
10845
10846 # Check whether --enable-secureplt was given.
10847 if test "${enable_secureplt+set}" = set; then :
10848   enableval=$enable_secureplt;
10849 fi
10850
10851
10852 # Check whether --enable-leading-mingw64-underscores was given.
10853 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10854   enableval=$enable_leading_mingw64_underscores;
10855 fi
10856
10857 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
10858
10859 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10860
10861 fi
10862
10863 # Check whether --enable-cld was given.
10864 if test "${enable_cld+set}" = set; then :
10865   enableval=$enable_cld;
10866 else
10867   enable_cld=no
10868 fi
10869
10870
10871 # Check whether --enable-frame-pointer was given.
10872 if test "${enable_frame_pointer+set}" = set; then :
10873   enableval=$enable_frame_pointer;
10874 else
10875
10876 case $target_os in
10877 linux* | darwin[8912]*)
10878   # Enable -fomit-frame-pointer by default for Linux and Darwin with
10879   # DWARF2.
10880   enable_frame_pointer=no
10881   ;;
10882 *)
10883   enable_frame_pointer=yes
10884   ;;
10885 esac
10886
10887 fi
10888
10889
10890 # Windows32 Registry support for specifying GCC installation paths.
10891 # Check whether --enable-win32-registry was given.
10892 if test "${enable_win32_registry+set}" = set; then :
10893   enableval=$enable_win32_registry;
10894 fi
10895
10896
10897 case $host_os in
10898   win32 | pe | cygwin* | mingw32* | uwin*)
10899     if test "x$enable_win32_registry" != xno; then
10900       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10901 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10902 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10903   $as_echo_n "(cached) " >&6
10904 else
10905   ac_func_search_save_LIBS=$LIBS
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h.  */
10908
10909 /* Override any GCC internal prototype to avoid an error.
10910    Use char because int might match the return type of a GCC
10911    builtin and then its argument prototype would still apply.  */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 char RegOpenKeyExA ();
10916 int
10917 main ()
10918 {
10919 return RegOpenKeyExA ();
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 for ac_lib in '' advapi32; do
10925   if test -z "$ac_lib"; then
10926     ac_res="none required"
10927   else
10928     ac_res=-l$ac_lib
10929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10930   fi
10931   if ac_fn_c_try_link "$LINENO"; then :
10932   ac_cv_search_RegOpenKeyExA=$ac_res
10933 fi
10934 rm -f core conftest.err conftest.$ac_objext \
10935     conftest$ac_exeext
10936   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10937   break
10938 fi
10939 done
10940 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10941
10942 else
10943   ac_cv_search_RegOpenKeyExA=no
10944 fi
10945 rm conftest.$ac_ext
10946 LIBS=$ac_func_search_save_LIBS
10947 fi
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10949 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10950 ac_res=$ac_cv_search_RegOpenKeyExA
10951 if test "$ac_res" != no; then :
10952   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10953
10954 else
10955   enable_win32_registry=no
10956 fi
10957
10958     fi
10959
10960     if test "x$enable_win32_registry" != xno; then
10961
10962 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10963
10964
10965       if test "x$enable_win32_registry" != xyes \
10966          && test "x$enable_win32_registry" != x; then
10967
10968 cat >>confdefs.h <<_ACEOF
10969 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10970 _ACEOF
10971
10972       fi
10973     fi
10974   ;;
10975 esac
10976
10977 # Get an absolute path to the GCC top-level source directory
10978 holddir=`${PWDCMD-pwd}`
10979 cd $srcdir
10980 topdir=`${PWDCMD-pwd}`
10981 cd $holddir
10982
10983 # Conditionalize the makefile for this host machine.
10984 xmake_file=
10985 for f in ${host_xmake_file}
10986 do
10987         if test -f ${srcdir}/config/$f
10988         then
10989                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10990         fi
10991 done
10992
10993 # Conditionalize the makefile for this target machine.
10994 tmake_file_=
10995 for f in ${tmake_file}
10996 do
10997         if test -f ${srcdir}/config/$f
10998         then
10999                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11000         fi
11001 done
11002 tmake_file="${tmake_file_}"
11003
11004 out_object_file=`basename $out_file .c`.o
11005
11006 tm_file_list="options.h"
11007 tm_include_list="options.h insn-constants.h"
11008 for f in $tm_file; do
11009   case $f in
11010     ./* )
11011        f=`echo $f | sed 's/^..//'`
11012        tm_file_list="${tm_file_list} $f"
11013        tm_include_list="${tm_include_list} $f"
11014        ;;
11015     defaults.h )
11016        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11017        tm_include_list="${tm_include_list} $f"
11018        ;;
11019     * )
11020        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11021        tm_include_list="${tm_include_list} config/$f"
11022        ;;
11023   esac
11024 done
11025
11026 tm_p_file_list=
11027 tm_p_include_list=
11028 for f in $tm_p_file; do
11029   case $f in
11030     tm-preds.h )
11031        tm_p_file_list="${tm_p_file_list} $f"
11032        tm_p_include_list="${tm_p_include_list} $f"
11033        ;;
11034     * )
11035        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11036        tm_p_include_list="${tm_p_include_list} config/$f"
11037   esac
11038 done
11039
11040 xm_file_list=
11041 xm_include_list=
11042 for f in $xm_file; do
11043   case $f in
11044     ansidecl.h )
11045        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11046        xm_include_list="${xm_include_list} $f"
11047        ;;
11048     auto-host.h )
11049        xm_file_list="${xm_file_list} $f"
11050        xm_include_list="${xm_include_list} $f"
11051        ;;
11052     * )
11053        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11054        xm_include_list="${xm_include_list} config/$f"
11055        ;;
11056   esac
11057 done
11058
11059 host_xm_file_list=
11060 host_xm_include_list=
11061 for f in $host_xm_file; do
11062   case $f in
11063     ansidecl.h )
11064        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11065        host_xm_include_list="${host_xm_include_list} $f"
11066        ;;
11067     auto-host.h )
11068        host_xm_file_list="${host_xm_file_list} $f"
11069        host_xm_include_list="${host_xm_include_list} $f"
11070        ;;
11071     * )
11072        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11073        host_xm_include_list="${host_xm_include_list} config/$f"
11074        ;;
11075   esac
11076 done
11077
11078 build_xm_file_list=
11079 for f in $build_xm_file; do
11080   case $f in
11081     ansidecl.h )
11082        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11083        build_xm_include_list="${build_xm_include_list} $f"
11084        ;;
11085     auto-build.h | auto-host.h )
11086        build_xm_file_list="${build_xm_file_list} $f"
11087        build_xm_include_list="${build_xm_include_list} $f"
11088        ;;
11089     * )
11090        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11091        build_xm_include_list="${build_xm_include_list} config/$f"
11092        ;;
11093   esac
11094 done
11095
11096 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11097 # cross-compiler which does not use the native headers and libraries.
11098 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11099 CROSS=
11100 ALL=all.internal
11101 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11102
11103 if test "x$with_build_sysroot" != x; then
11104   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11105 else
11106   # This value is used, even on a native system, because
11107   # CROSS_SYSTEM_HEADER_DIR is just
11108   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11109   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11110 fi
11111
11112 if test x$host != x$target
11113 then
11114         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11115         ALL=all.cross
11116         SYSTEM_HEADER_DIR=$build_system_header_dir
11117         case "$host","$target" in
11118         # Darwin crosses can use the host system's libraries and headers,
11119         # because of the fat library support.  Of course, it must be the
11120         # same version of Darwin on both sides.  Allow the user to
11121         # just say --target=foo-darwin without a version number to mean
11122         # "the version on this system".
11123             *-*-darwin*,*-*-darwin*)
11124                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11125                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11126                 if test $hostos = $targetos -o $targetos = darwin ; then
11127                     CROSS=
11128                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11129                     with_headers=yes
11130                 fi
11131                 ;;
11132
11133             i?86-*-*,x86_64-*-* \
11134             | powerpc*-*-*,powerpc64*-*-*)
11135                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11136         esac
11137
11138         case $target in
11139                 *-*-mingw*)
11140                         if test "x$with_headers" = x; then
11141                                 with_headers=yes
11142                         fi
11143                         ;;
11144                 *)
11145                         ;;
11146         esac
11147 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11148         SYSTEM_HEADER_DIR=$build_system_header_dir
11149 fi
11150
11151 # If this is a cross-compiler that does not
11152 # have its own set of headers then define
11153 # inhibit_libc
11154
11155 # If this is using newlib, without having the headers available now,
11156 # then define inhibit_libc in LIBGCC2_CFLAGS.
11157 # This prevents libgcc2 from containing any code which requires libc
11158 # support.
11159 : ${inhibit_libc=false}
11160 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11161        test x$with_newlib = xyes ; } &&
11162      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11163        inhibit_libc=true
11164 fi
11165
11166
11167 # When building gcc with a cross-compiler, we need to adjust things so
11168 # that the generator programs are still built with the native compiler.
11169 # Also, we cannot run fixincludes.
11170
11171 # These are the normal (build=host) settings:
11172 CC_FOR_BUILD='$(CC)'
11173 BUILD_CFLAGS='$(ALL_CFLAGS)'
11174 BUILD_LDFLAGS='$(LDFLAGS)'
11175 STMP_FIXINC=stmp-fixinc
11176
11177 # And these apply if build != host, or we are generating coverage data
11178 if test x$build != x$host || test "x$coverage_flags" != x
11179 then
11180     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11181     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11182 fi
11183
11184 # Expand extra_headers to include complete path.
11185 # This substitutes for lots of t-* files.
11186 extra_headers_list=
11187 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11188 for file in ${extra_headers} ; do
11189   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11190 done
11191
11192 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11193 if test x"$use_gcc_tgmath" = xyes
11194 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11195 fi
11196
11197 # Define collect2 in Makefile.
11198 case $host_can_use_collect2 in
11199   no) collect2= ;;
11200   *) collect2='collect2$(exeext)' ;;
11201 esac
11202
11203
11204 # Add a definition of USE_COLLECT2 if system wants one.
11205 case $use_collect2 in
11206   no) use_collect2= ;;
11207   "") ;;
11208   *)
11209     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11210     xm_defines="${xm_defines} USE_COLLECT2"
11211     case $host_can_use_collect2 in
11212       no)
11213         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11214         ;;
11215     esac
11216     ;;
11217 esac
11218
11219
11220 cat >>confdefs.h <<_ACEOF
11221 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11222 _ACEOF
11223
11224
11225 # ---------------------------
11226 # Assembler & linker features
11227 # ---------------------------
11228
11229 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11230 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11231 # However when ld-new is first executed from the build tree, libtool will
11232 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11233 # to the build tree.  While doing this we need to use the previous-stage
11234 # linker, or we have an infinite loop.  The presence of a shell script as
11235 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11236 # the gcc/collect-ld script.  So we need to know how libtool works, or
11237 # exec-tool will fail.
11238
11239
11240 case `pwd` in
11241   *\ * | *\     *)
11242     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11243 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11244 esac
11245
11246
11247
11248 macro_version='2.2.7a'
11249 macro_revision='1.3134'
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263 ltmain="$ac_aux_dir/ltmain.sh"
11264
11265 # Backslashify metacharacters that are still active within
11266 # double-quoted strings.
11267 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11268
11269 # Same as above, but do not quote variable references.
11270 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11271
11272 # Sed substitution to delay expansion of an escaped shell variable in a
11273 # double_quote_subst'ed string.
11274 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11275
11276 # Sed substitution to delay expansion of an escaped single quote.
11277 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11278
11279 # Sed substitution to avoid accidental globbing in evaled expressions
11280 no_glob_subst='s/\*/\\\*/g'
11281
11282 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11283 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11284 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11285
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11287 $as_echo_n "checking how to print strings... " >&6; }
11288 # Test print first, because it will be a builtin if present.
11289 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11290    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11291   ECHO='print -r --'
11292 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11293   ECHO='printf %s\n'
11294 else
11295   # Use this function as a fallback that always works.
11296   func_fallback_echo ()
11297   {
11298     eval 'cat <<_LTECHO_EOF
11299 $1
11300 _LTECHO_EOF'
11301   }
11302   ECHO='func_fallback_echo'
11303 fi
11304
11305 # func_echo_all arg...
11306 # Invoke $ECHO with all args, space-separated.
11307 func_echo_all ()
11308 {
11309     $ECHO ""
11310 }
11311
11312 case "$ECHO" in
11313   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11314 $as_echo "printf" >&6; } ;;
11315   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11316 $as_echo "print -r" >&6; } ;;
11317   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11318 $as_echo "cat" >&6; } ;;
11319 esac
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11335 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11336 if test "${ac_cv_path_SED+set}" = set; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11340      for ac_i in 1 2 3 4 5 6 7; do
11341        ac_script="$ac_script$as_nl$ac_script"
11342      done
11343      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11344      { ac_script=; unset ac_script;}
11345      if test -z "$SED"; then
11346   ac_path_SED_found=false
11347   # Loop through the user's path and test for each of PROGNAME-LIST
11348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349 for as_dir in $PATH
11350 do
11351   IFS=$as_save_IFS
11352   test -z "$as_dir" && as_dir=.
11353     for ac_prog in sed gsed; do
11354     for ac_exec_ext in '' $ac_executable_extensions; do
11355       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11356       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11357 # Check for GNU ac_path_SED and select it if it is found.
11358   # Check for GNU $ac_path_SED
11359 case `"$ac_path_SED" --version 2>&1` in
11360 *GNU*)
11361   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11362 *)
11363   ac_count=0
11364   $as_echo_n 0123456789 >"conftest.in"
11365   while :
11366   do
11367     cat "conftest.in" "conftest.in" >"conftest.tmp"
11368     mv "conftest.tmp" "conftest.in"
11369     cp "conftest.in" "conftest.nl"
11370     $as_echo '' >> "conftest.nl"
11371     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11372     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11373     as_fn_arith $ac_count + 1 && ac_count=$as_val
11374     if test $ac_count -gt ${ac_path_SED_max-0}; then
11375       # Best one so far, save it but keep looking for a better one
11376       ac_cv_path_SED="$ac_path_SED"
11377       ac_path_SED_max=$ac_count
11378     fi
11379     # 10*(2^10) chars as input seems more than enough
11380     test $ac_count -gt 10 && break
11381   done
11382   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11383 esac
11384
11385       $ac_path_SED_found && break 3
11386     done
11387   done
11388   done
11389 IFS=$as_save_IFS
11390   if test -z "$ac_cv_path_SED"; then
11391     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11392   fi
11393 else
11394   ac_cv_path_SED=$SED
11395 fi
11396
11397 fi
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11399 $as_echo "$ac_cv_path_SED" >&6; }
11400  SED="$ac_cv_path_SED"
11401   rm -f conftest.sed
11402
11403 test -z "$SED" && SED=sed
11404 Xsed="$SED -e 1s/^X//"
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11417 $as_echo_n "checking for fgrep... " >&6; }
11418 if test "${ac_cv_path_FGREP+set}" = set; then :
11419   $as_echo_n "(cached) " >&6
11420 else
11421   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11422    then ac_cv_path_FGREP="$GREP -F"
11423    else
11424      if test -z "$FGREP"; then
11425   ac_path_FGREP_found=false
11426   # Loop through the user's path and test for each of PROGNAME-LIST
11427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11429 do
11430   IFS=$as_save_IFS
11431   test -z "$as_dir" && as_dir=.
11432     for ac_prog in fgrep; do
11433     for ac_exec_ext in '' $ac_executable_extensions; do
11434       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11435       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11436 # Check for GNU ac_path_FGREP and select it if it is found.
11437   # Check for GNU $ac_path_FGREP
11438 case `"$ac_path_FGREP" --version 2>&1` in
11439 *GNU*)
11440   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11441 *)
11442   ac_count=0
11443   $as_echo_n 0123456789 >"conftest.in"
11444   while :
11445   do
11446     cat "conftest.in" "conftest.in" >"conftest.tmp"
11447     mv "conftest.tmp" "conftest.in"
11448     cp "conftest.in" "conftest.nl"
11449     $as_echo 'FGREP' >> "conftest.nl"
11450     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11451     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11452     as_fn_arith $ac_count + 1 && ac_count=$as_val
11453     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11454       # Best one so far, save it but keep looking for a better one
11455       ac_cv_path_FGREP="$ac_path_FGREP"
11456       ac_path_FGREP_max=$ac_count
11457     fi
11458     # 10*(2^10) chars as input seems more than enough
11459     test $ac_count -gt 10 && break
11460   done
11461   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11462 esac
11463
11464       $ac_path_FGREP_found && break 3
11465     done
11466   done
11467   done
11468 IFS=$as_save_IFS
11469   if test -z "$ac_cv_path_FGREP"; then
11470     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11471   fi
11472 else
11473   ac_cv_path_FGREP=$FGREP
11474 fi
11475
11476    fi
11477 fi
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11479 $as_echo "$ac_cv_path_FGREP" >&6; }
11480  FGREP="$ac_cv_path_FGREP"
11481
11482
11483 test -z "$GREP" && GREP=grep
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503 # Check whether --with-gnu-ld was given.
11504 if test "${with_gnu_ld+set}" = set; then :
11505   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11506 else
11507   with_gnu_ld=no
11508 fi
11509
11510 ac_prog=ld
11511 if test "$GCC" = yes; then
11512   # Check if gcc -print-prog-name=ld gives a path.
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11514 $as_echo_n "checking for ld used by $CC... " >&6; }
11515   case $host in
11516   *-*-mingw*)
11517     # gcc leaves a trailing carriage return which upsets mingw
11518     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11519   *)
11520     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11521   esac
11522   case $ac_prog in
11523     # Accept absolute paths.
11524     [\\/]* | ?:[\\/]*)
11525       re_direlt='/[^/][^/]*/\.\./'
11526       # Canonicalize the pathname of ld
11527       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11528       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11529         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11530       done
11531       test -z "$LD" && LD="$ac_prog"
11532       ;;
11533   "")
11534     # If it fails, then pretend we aren't using GCC.
11535     ac_prog=ld
11536     ;;
11537   *)
11538     # If it is relative, then search for the first ld in PATH.
11539     with_gnu_ld=unknown
11540     ;;
11541   esac
11542 elif test "$with_gnu_ld" = yes; then
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11544 $as_echo_n "checking for GNU ld... " >&6; }
11545 else
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11547 $as_echo_n "checking for non-GNU ld... " >&6; }
11548 fi
11549 if test "${lt_cv_path_LD+set}" = set; then :
11550   $as_echo_n "(cached) " >&6
11551 else
11552   if test -z "$LD"; then
11553   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11554   for ac_dir in $PATH; do
11555     IFS="$lt_save_ifs"
11556     test -z "$ac_dir" && ac_dir=.
11557     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11558       lt_cv_path_LD="$ac_dir/$ac_prog"
11559       # Check to see if the program is GNU ld.  I'd rather use --version,
11560       # but apparently some variants of GNU ld only accept -v.
11561       # Break only if it was the GNU/non-GNU ld that we prefer.
11562       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11563       *GNU* | *'with BFD'*)
11564         test "$with_gnu_ld" != no && break
11565         ;;
11566       *)
11567         test "$with_gnu_ld" != yes && break
11568         ;;
11569       esac
11570     fi
11571   done
11572   IFS="$lt_save_ifs"
11573 else
11574   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11575 fi
11576 fi
11577
11578 LD="$lt_cv_path_LD"
11579 if test -n "$LD"; then
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11581 $as_echo "$LD" >&6; }
11582 else
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584 $as_echo "no" >&6; }
11585 fi
11586 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11588 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11589 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11593 case `$LD -v 2>&1 </dev/null` in
11594 *GNU* | *'with BFD'*)
11595   lt_cv_prog_gnu_ld=yes
11596   ;;
11597 *)
11598   lt_cv_prog_gnu_ld=no
11599   ;;
11600 esac
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11603 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11604 with_gnu_ld=$lt_cv_prog_gnu_ld
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11615 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11616 if test "${lt_cv_path_NM+set}" = set; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619   if test -n "$NM"; then
11620   # Let the user override the test.
11621   lt_cv_path_NM="$NM"
11622 else
11623   lt_nm_to_check="${ac_tool_prefix}nm"
11624   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11625     lt_nm_to_check="$lt_nm_to_check nm"
11626   fi
11627   for lt_tmp_nm in $lt_nm_to_check; do
11628     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11629     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11630       IFS="$lt_save_ifs"
11631       test -z "$ac_dir" && ac_dir=.
11632       tmp_nm="$ac_dir/$lt_tmp_nm"
11633       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11634         # Check to see if the nm accepts a BSD-compat flag.
11635         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11636         #   nm: unknown option "B" ignored
11637         # Tru64's nm complains that /dev/null is an invalid object file
11638         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11639         */dev/null* | *'Invalid file or object type'*)
11640           lt_cv_path_NM="$tmp_nm -B"
11641           break
11642           ;;
11643         *)
11644           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11645           */dev/null*)
11646             lt_cv_path_NM="$tmp_nm -p"
11647             break
11648             ;;
11649           *)
11650             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11651             continue # so that we can try to find one that supports BSD flags
11652             ;;
11653           esac
11654           ;;
11655         esac
11656       fi
11657     done
11658     IFS="$lt_save_ifs"
11659   done
11660   : ${lt_cv_path_NM=no}
11661 fi
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11664 $as_echo "$lt_cv_path_NM" >&6; }
11665 if test "$lt_cv_path_NM" != "no"; then
11666   NM="$lt_cv_path_NM"
11667 else
11668   # Didn't find any BSD compatible name lister, look for dumpbin.
11669   if test -n "$DUMPBIN"; then :
11670     # Let the user override the test.
11671   else
11672     if test -n "$ac_tool_prefix"; then
11673   for ac_prog in dumpbin "link -dump"
11674   do
11675     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11680   $as_echo_n "(cached) " >&6
11681 else
11682   if test -n "$DUMPBIN"; then
11683   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   test -z "$as_dir" && as_dir=.
11690     for ac_exec_ext in '' $ac_executable_extensions; do
11691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694     break 2
11695   fi
11696 done
11697   done
11698 IFS=$as_save_IFS
11699
11700 fi
11701 fi
11702 DUMPBIN=$ac_cv_prog_DUMPBIN
11703 if test -n "$DUMPBIN"; then
11704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11705 $as_echo "$DUMPBIN" >&6; }
11706 else
11707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11709 fi
11710
11711
11712     test -n "$DUMPBIN" && break
11713   done
11714 fi
11715 if test -z "$DUMPBIN"; then
11716   ac_ct_DUMPBIN=$DUMPBIN
11717   for ac_prog in dumpbin "link -dump"
11718 do
11719   # Extract the first word of "$ac_prog", so it can be a program name with args.
11720 set dummy $ac_prog; ac_word=$2
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11722 $as_echo_n "checking for $ac_word... " >&6; }
11723 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11724   $as_echo_n "(cached) " >&6
11725 else
11726   if test -n "$ac_ct_DUMPBIN"; then
11727   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11728 else
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11731 do
11732   IFS=$as_save_IFS
11733   test -z "$as_dir" && as_dir=.
11734     for ac_exec_ext in '' $ac_executable_extensions; do
11735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11736     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738     break 2
11739   fi
11740 done
11741   done
11742 IFS=$as_save_IFS
11743
11744 fi
11745 fi
11746 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11747 if test -n "$ac_ct_DUMPBIN"; then
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11749 $as_echo "$ac_ct_DUMPBIN" >&6; }
11750 else
11751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753 fi
11754
11755
11756   test -n "$ac_ct_DUMPBIN" && break
11757 done
11758
11759   if test "x$ac_ct_DUMPBIN" = x; then
11760     DUMPBIN=":"
11761   else
11762     case $cross_compiling:$ac_tool_warned in
11763 yes:)
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11766 ac_tool_warned=yes ;;
11767 esac
11768     DUMPBIN=$ac_ct_DUMPBIN
11769   fi
11770 fi
11771
11772     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11773     *COFF*)
11774       DUMPBIN="$DUMPBIN -symbols"
11775       ;;
11776     *)
11777       DUMPBIN=:
11778       ;;
11779     esac
11780   fi
11781
11782   if test "$DUMPBIN" != ":"; then
11783     NM="$DUMPBIN"
11784   fi
11785 fi
11786 test -z "$NM" && NM=nm
11787
11788
11789
11790
11791
11792
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11794 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11795 if test "${lt_cv_nm_interface+set}" = set; then :
11796   $as_echo_n "(cached) " >&6
11797 else
11798   lt_cv_nm_interface="BSD nm"
11799   echo "int some_variable = 0;" > conftest.$ac_ext
11800   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11801   (eval "$ac_compile" 2>conftest.err)
11802   cat conftest.err >&5
11803   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11804   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11805   cat conftest.err >&5
11806   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11807   cat conftest.out >&5
11808   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11809     lt_cv_nm_interface="MS dumpbin"
11810   fi
11811   rm -f conftest*
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11814 $as_echo "$lt_cv_nm_interface" >&6; }
11815
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11817 $as_echo_n "checking whether ln -s works... " >&6; }
11818 LN_S=$as_ln_s
11819 if test "$LN_S" = "ln -s"; then
11820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11821 $as_echo "yes" >&6; }
11822 else
11823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11824 $as_echo "no, using $LN_S" >&6; }
11825 fi
11826
11827 # find the maximum length of command line arguments
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11829 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11830 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11831   $as_echo_n "(cached) " >&6
11832 else
11833     i=0
11834   teststring="ABCD"
11835
11836   case $build_os in
11837   msdosdjgpp*)
11838     # On DJGPP, this test can blow up pretty badly due to problems in libc
11839     # (any single argument exceeding 2000 bytes causes a buffer overrun
11840     # during glob expansion).  Even if it were fixed, the result of this
11841     # check would be larger than it should be.
11842     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11843     ;;
11844
11845   gnu*)
11846     # Under GNU Hurd, this test is not required because there is
11847     # no limit to the length of command line arguments.
11848     # Libtool will interpret -1 as no limit whatsoever
11849     lt_cv_sys_max_cmd_len=-1;
11850     ;;
11851
11852   cygwin* | mingw* | cegcc*)
11853     # On Win9x/ME, this test blows up -- it succeeds, but takes
11854     # about 5 minutes as the teststring grows exponentially.
11855     # Worse, since 9x/ME are not pre-emptively multitasking,
11856     # you end up with a "frozen" computer, even though with patience
11857     # the test eventually succeeds (with a max line length of 256k).
11858     # Instead, let's just punt: use the minimum linelength reported by
11859     # all of the supported platforms: 8192 (on NT/2K/XP).
11860     lt_cv_sys_max_cmd_len=8192;
11861     ;;
11862
11863   mint*)
11864     # On MiNT this can take a long time and run out of memory.
11865     lt_cv_sys_max_cmd_len=8192;
11866     ;;
11867
11868   amigaos*)
11869     # On AmigaOS with pdksh, this test takes hours, literally.
11870     # So we just punt and use a minimum line length of 8192.
11871     lt_cv_sys_max_cmd_len=8192;
11872     ;;
11873
11874   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11875     # This has been around since 386BSD, at least.  Likely further.
11876     if test -x /sbin/sysctl; then
11877       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11878     elif test -x /usr/sbin/sysctl; then
11879       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11880     else
11881       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11882     fi
11883     # And add a safety zone
11884     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11885     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11886     ;;
11887
11888   interix*)
11889     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11890     lt_cv_sys_max_cmd_len=196608
11891     ;;
11892
11893   osf*)
11894     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11895     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11896     # nice to cause kernel panics so lets avoid the loop below.
11897     # First set a reasonable default.
11898     lt_cv_sys_max_cmd_len=16384
11899     #
11900     if test -x /sbin/sysconfig; then
11901       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11902         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11903       esac
11904     fi
11905     ;;
11906   sco3.2v5*)
11907     lt_cv_sys_max_cmd_len=102400
11908     ;;
11909   sysv5* | sco5v6* | sysv4.2uw2*)
11910     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11911     if test -n "$kargmax"; then
11912       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11913     else
11914       lt_cv_sys_max_cmd_len=32768
11915     fi
11916     ;;
11917   *)
11918     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11919     if test -n "$lt_cv_sys_max_cmd_len"; then
11920       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11921       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11922     else
11923       # Make teststring a little bigger before we do anything with it.
11924       # a 1K string should be a reasonable start.
11925       for i in 1 2 3 4 5 6 7 8 ; do
11926         teststring=$teststring$teststring
11927       done
11928       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11929       # If test is not a shell built-in, we'll probably end up computing a
11930       # maximum length that is only half of the actual maximum length, but
11931       # we can't tell.
11932       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11933                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11934               test $i != 17 # 1/2 MB should be enough
11935       do
11936         i=`expr $i + 1`
11937         teststring=$teststring$teststring
11938       done
11939       # Only check the string length outside the loop.
11940       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11941       teststring=
11942       # Add a significant safety factor because C++ compilers can tack on
11943       # massive amounts of additional arguments before passing them to the
11944       # linker.  It appears as though 1/2 is a usable value.
11945       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11946     fi
11947     ;;
11948   esac
11949
11950 fi
11951
11952 if test -n $lt_cv_sys_max_cmd_len ; then
11953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11954 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11955 else
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11957 $as_echo "none" >&6; }
11958 fi
11959 max_cmd_len=$lt_cv_sys_max_cmd_len
11960
11961
11962
11963
11964
11965
11966 : ${CP="cp -f"}
11967 : ${MV="mv -f"}
11968 : ${RM="rm -f"}
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11971 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11972 # Try some XSI features
11973 xsi_shell=no
11974 ( _lt_dummy="a/b/c"
11975   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11976       = c,a/b,, \
11977     && eval 'test $(( 1 + 1 )) -eq 2 \
11978     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11979   && xsi_shell=yes
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11981 $as_echo "$xsi_shell" >&6; }
11982
11983
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11985 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11986 lt_shell_append=no
11987 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11988     >/dev/null 2>&1 \
11989   && lt_shell_append=yes
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11991 $as_echo "$lt_shell_append" >&6; }
11992
11993
11994 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11995   lt_unset=unset
11996 else
11997   lt_unset=false
11998 fi
11999
12000
12001
12002
12003
12004 # test EBCDIC or ASCII
12005 case `echo X|tr X '\101'` in
12006  A) # ASCII based system
12007     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12008   lt_SP2NL='tr \040 \012'
12009   lt_NL2SP='tr \015\012 \040\040'
12010   ;;
12011  *) # EBCDIC based system
12012   lt_SP2NL='tr \100 \n'
12013   lt_NL2SP='tr \r\n \100\100'
12014   ;;
12015 esac
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12026 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12027 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12028   $as_echo_n "(cached) " >&6
12029 else
12030   lt_cv_ld_reload_flag='-r'
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12033 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12034 reload_flag=$lt_cv_ld_reload_flag
12035 case $reload_flag in
12036 "" | " "*) ;;
12037 *) reload_flag=" $reload_flag" ;;
12038 esac
12039 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12040 case $host_os in
12041   darwin*)
12042     if test "$GCC" = yes; then
12043       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12044     else
12045       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12046     fi
12047     ;;
12048 esac
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058 if test -n "$ac_tool_prefix"; then
12059   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12060 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12064   $as_echo_n "(cached) " >&6
12065 else
12066   if test -n "$OBJDUMP"; then
12067   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12068 else
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12071 do
12072   IFS=$as_save_IFS
12073   test -z "$as_dir" && as_dir=.
12074     for ac_exec_ext in '' $ac_executable_extensions; do
12075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12076     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078     break 2
12079   fi
12080 done
12081   done
12082 IFS=$as_save_IFS
12083
12084 fi
12085 fi
12086 OBJDUMP=$ac_cv_prog_OBJDUMP
12087 if test -n "$OBJDUMP"; then
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12089 $as_echo "$OBJDUMP" >&6; }
12090 else
12091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12093 fi
12094
12095
12096 fi
12097 if test -z "$ac_cv_prog_OBJDUMP"; then
12098   ac_ct_OBJDUMP=$OBJDUMP
12099   # Extract the first word of "objdump", so it can be a program name with args.
12100 set dummy objdump; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 $as_echo_n "checking for $ac_word... " >&6; }
12103 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12104   $as_echo_n "(cached) " >&6
12105 else
12106   if test -n "$ac_ct_OBJDUMP"; then
12107   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12108 else
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12111 do
12112   IFS=$as_save_IFS
12113   test -z "$as_dir" && as_dir=.
12114     for ac_exec_ext in '' $ac_executable_extensions; do
12115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12116     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118     break 2
12119   fi
12120 done
12121   done
12122 IFS=$as_save_IFS
12123
12124 fi
12125 fi
12126 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12127 if test -n "$ac_ct_OBJDUMP"; then
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12129 $as_echo "$ac_ct_OBJDUMP" >&6; }
12130 else
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12133 fi
12134
12135   if test "x$ac_ct_OBJDUMP" = x; then
12136     OBJDUMP="false"
12137   else
12138     case $cross_compiling:$ac_tool_warned in
12139 yes:)
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12142 ac_tool_warned=yes ;;
12143 esac
12144     OBJDUMP=$ac_ct_OBJDUMP
12145   fi
12146 else
12147   OBJDUMP="$ac_cv_prog_OBJDUMP"
12148 fi
12149
12150 test -z "$OBJDUMP" && OBJDUMP=objdump
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12161 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12162 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165   lt_cv_file_magic_cmd='$MAGIC_CMD'
12166 lt_cv_file_magic_test_file=
12167 lt_cv_deplibs_check_method='unknown'
12168 # Need to set the preceding variable on all platforms that support
12169 # interlibrary dependencies.
12170 # 'none' -- dependencies not supported.
12171 # `unknown' -- same as none, but documents that we really don't know.
12172 # 'pass_all' -- all dependencies passed with no checks.
12173 # 'test_compile' -- check by making test program.
12174 # 'file_magic [[regex]]' -- check by looking for files in library path
12175 # which responds to the $file_magic_cmd with a given extended regex.
12176 # If you have `file' or equivalent on your system and you're not sure
12177 # whether `pass_all' will *always* work, you probably want this one.
12178
12179 case $host_os in
12180 aix[4-9]*)
12181   lt_cv_deplibs_check_method=pass_all
12182   ;;
12183
12184 beos*)
12185   lt_cv_deplibs_check_method=pass_all
12186   ;;
12187
12188 bsdi[45]*)
12189   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12190   lt_cv_file_magic_cmd='/usr/bin/file -L'
12191   lt_cv_file_magic_test_file=/shlib/libc.so
12192   ;;
12193
12194 cygwin*)
12195   # func_win32_libid is a shell function defined in ltmain.sh
12196   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12197   lt_cv_file_magic_cmd='func_win32_libid'
12198   ;;
12199
12200 mingw* | pw32*)
12201   # Base MSYS/MinGW do not provide the 'file' command needed by
12202   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12203   # unless we find 'file', for example because we are cross-compiling.
12204   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12205   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12206     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12207     lt_cv_file_magic_cmd='func_win32_libid'
12208   else
12209     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12210     lt_cv_file_magic_cmd='$OBJDUMP -f'
12211   fi
12212   ;;
12213
12214 cegcc*)
12215   # use the weaker test based on 'objdump'. See mingw*.
12216   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12217   lt_cv_file_magic_cmd='$OBJDUMP -f'
12218   ;;
12219
12220 darwin* | rhapsody*)
12221   lt_cv_deplibs_check_method=pass_all
12222   ;;
12223
12224 freebsd* | dragonfly*)
12225   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12226     case $host_cpu in
12227     i*86 )
12228       # Not sure whether the presence of OpenBSD here was a mistake.
12229       # Let's accept both of them until this is cleared up.
12230       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12231       lt_cv_file_magic_cmd=/usr/bin/file
12232       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12233       ;;
12234     esac
12235   else
12236     lt_cv_deplibs_check_method=pass_all
12237   fi
12238   ;;
12239
12240 gnu*)
12241   lt_cv_deplibs_check_method=pass_all
12242   ;;
12243
12244 haiku*)
12245   lt_cv_deplibs_check_method=pass_all
12246   ;;
12247
12248 hpux10.20* | hpux11*)
12249   lt_cv_file_magic_cmd=/usr/bin/file
12250   case $host_cpu in
12251   ia64*)
12252     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12253     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12254     ;;
12255   hppa*64*)
12256     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]'
12257     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12258     ;;
12259   *)
12260     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12261     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12262     ;;
12263   esac
12264   ;;
12265
12266 interix[3-9]*)
12267   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12268   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12269   ;;
12270
12271 irix5* | irix6* | nonstopux*)
12272   case $LD in
12273   *-32|*"-32 ") libmagic=32-bit;;
12274   *-n32|*"-n32 ") libmagic=N32;;
12275   *-64|*"-64 ") libmagic=64-bit;;
12276   *) libmagic=never-match;;
12277   esac
12278   lt_cv_deplibs_check_method=pass_all
12279   ;;
12280
12281 # This must be Linux ELF.
12282 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12283   lt_cv_deplibs_check_method=pass_all
12284   ;;
12285
12286 netbsd*)
12287   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12288     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12289   else
12290     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12291   fi
12292   ;;
12293
12294 newos6*)
12295   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12296   lt_cv_file_magic_cmd=/usr/bin/file
12297   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12298   ;;
12299
12300 *nto* | *qnx*)
12301   lt_cv_deplibs_check_method=pass_all
12302   ;;
12303
12304 openbsd*)
12305   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12306     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12307   else
12308     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12309   fi
12310   ;;
12311
12312 osf3* | osf4* | osf5*)
12313   lt_cv_deplibs_check_method=pass_all
12314   ;;
12315
12316 rdos*)
12317   lt_cv_deplibs_check_method=pass_all
12318   ;;
12319
12320 solaris*)
12321   lt_cv_deplibs_check_method=pass_all
12322   ;;
12323
12324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12325   lt_cv_deplibs_check_method=pass_all
12326   ;;
12327
12328 sysv4 | sysv4.3*)
12329   case $host_vendor in
12330   motorola)
12331     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]'
12332     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12333     ;;
12334   ncr)
12335     lt_cv_deplibs_check_method=pass_all
12336     ;;
12337   sequent)
12338     lt_cv_file_magic_cmd='/bin/file'
12339     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12340     ;;
12341   sni)
12342     lt_cv_file_magic_cmd='/bin/file'
12343     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12344     lt_cv_file_magic_test_file=/lib/libc.so
12345     ;;
12346   siemens)
12347     lt_cv_deplibs_check_method=pass_all
12348     ;;
12349   pc)
12350     lt_cv_deplibs_check_method=pass_all
12351     ;;
12352   esac
12353   ;;
12354
12355 tpf*)
12356   lt_cv_deplibs_check_method=pass_all
12357   ;;
12358 esac
12359
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12362 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12363 file_magic_cmd=$lt_cv_file_magic_cmd
12364 deplibs_check_method=$lt_cv_deplibs_check_method
12365 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378 if test -n "$ac_tool_prefix"; then
12379   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12380 set dummy ${ac_tool_prefix}ar; ac_word=$2
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382 $as_echo_n "checking for $ac_word... " >&6; }
12383 if test "${ac_cv_prog_AR+set}" = set; then :
12384   $as_echo_n "(cached) " >&6
12385 else
12386   if test -n "$AR"; then
12387   ac_cv_prog_AR="$AR" # Let the user override the test.
12388 else
12389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390 for as_dir in $PATH
12391 do
12392   IFS=$as_save_IFS
12393   test -z "$as_dir" && as_dir=.
12394     for ac_exec_ext in '' $ac_executable_extensions; do
12395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12396     ac_cv_prog_AR="${ac_tool_prefix}ar"
12397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12398     break 2
12399   fi
12400 done
12401   done
12402 IFS=$as_save_IFS
12403
12404 fi
12405 fi
12406 AR=$ac_cv_prog_AR
12407 if test -n "$AR"; then
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12409 $as_echo "$AR" >&6; }
12410 else
12411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12413 fi
12414
12415
12416 fi
12417 if test -z "$ac_cv_prog_AR"; then
12418   ac_ct_AR=$AR
12419   # Extract the first word of "ar", so it can be a program name with args.
12420 set dummy ar; ac_word=$2
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12422 $as_echo_n "checking for $ac_word... " >&6; }
12423 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12424   $as_echo_n "(cached) " >&6
12425 else
12426   if test -n "$ac_ct_AR"; then
12427   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12428 else
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12431 do
12432   IFS=$as_save_IFS
12433   test -z "$as_dir" && as_dir=.
12434     for ac_exec_ext in '' $ac_executable_extensions; do
12435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12436     ac_cv_prog_ac_ct_AR="ar"
12437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438     break 2
12439   fi
12440 done
12441   done
12442 IFS=$as_save_IFS
12443
12444 fi
12445 fi
12446 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12447 if test -n "$ac_ct_AR"; then
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12449 $as_echo "$ac_ct_AR" >&6; }
12450 else
12451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454
12455   if test "x$ac_ct_AR" = x; then
12456     AR="false"
12457   else
12458     case $cross_compiling:$ac_tool_warned in
12459 yes:)
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12462 ac_tool_warned=yes ;;
12463 esac
12464     AR=$ac_ct_AR
12465   fi
12466 else
12467   AR="$ac_cv_prog_AR"
12468 fi
12469
12470 test -z "$AR" && AR=ar
12471 test -z "$AR_FLAGS" && AR_FLAGS=cru
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483 if test -n "$ac_tool_prefix"; then
12484   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12485 set dummy ${ac_tool_prefix}strip; ac_word=$2
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12487 $as_echo_n "checking for $ac_word... " >&6; }
12488 if test "${ac_cv_prog_STRIP+set}" = set; then :
12489   $as_echo_n "(cached) " >&6
12490 else
12491   if test -n "$STRIP"; then
12492   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12493 else
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12496 do
12497   IFS=$as_save_IFS
12498   test -z "$as_dir" && as_dir=.
12499     for ac_exec_ext in '' $ac_executable_extensions; do
12500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12501     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12503     break 2
12504   fi
12505 done
12506   done
12507 IFS=$as_save_IFS
12508
12509 fi
12510 fi
12511 STRIP=$ac_cv_prog_STRIP
12512 if test -n "$STRIP"; then
12513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12514 $as_echo "$STRIP" >&6; }
12515 else
12516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518 fi
12519
12520
12521 fi
12522 if test -z "$ac_cv_prog_STRIP"; then
12523   ac_ct_STRIP=$STRIP
12524   # Extract the first word of "strip", so it can be a program name with args.
12525 set dummy strip; ac_word=$2
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527 $as_echo_n "checking for $ac_word... " >&6; }
12528 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12529   $as_echo_n "(cached) " >&6
12530 else
12531   if test -n "$ac_ct_STRIP"; then
12532   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12533 else
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12536 do
12537   IFS=$as_save_IFS
12538   test -z "$as_dir" && as_dir=.
12539     for ac_exec_ext in '' $ac_executable_extensions; do
12540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12541     ac_cv_prog_ac_ct_STRIP="strip"
12542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543     break 2
12544   fi
12545 done
12546   done
12547 IFS=$as_save_IFS
12548
12549 fi
12550 fi
12551 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12552 if test -n "$ac_ct_STRIP"; then
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12554 $as_echo "$ac_ct_STRIP" >&6; }
12555 else
12556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12558 fi
12559
12560   if test "x$ac_ct_STRIP" = x; then
12561     STRIP=":"
12562   else
12563     case $cross_compiling:$ac_tool_warned in
12564 yes:)
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12567 ac_tool_warned=yes ;;
12568 esac
12569     STRIP=$ac_ct_STRIP
12570   fi
12571 else
12572   STRIP="$ac_cv_prog_STRIP"
12573 fi
12574
12575 test -z "$STRIP" && STRIP=:
12576
12577
12578
12579
12580
12581
12582 if test -n "$ac_tool_prefix"; then
12583   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12588   $as_echo_n "(cached) " >&6
12589 else
12590   if test -n "$RANLIB"; then
12591   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12592 else
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12595 do
12596   IFS=$as_save_IFS
12597   test -z "$as_dir" && as_dir=.
12598     for ac_exec_ext in '' $ac_executable_extensions; do
12599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602     break 2
12603   fi
12604 done
12605   done
12606 IFS=$as_save_IFS
12607
12608 fi
12609 fi
12610 RANLIB=$ac_cv_prog_RANLIB
12611 if test -n "$RANLIB"; then
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12613 $as_echo "$RANLIB" >&6; }
12614 else
12615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12617 fi
12618
12619
12620 fi
12621 if test -z "$ac_cv_prog_RANLIB"; then
12622   ac_ct_RANLIB=$RANLIB
12623   # Extract the first word of "ranlib", so it can be a program name with args.
12624 set dummy ranlib; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12628   $as_echo_n "(cached) " >&6
12629 else
12630   if test -n "$ac_ct_RANLIB"; then
12631   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12632 else
12633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12635 do
12636   IFS=$as_save_IFS
12637   test -z "$as_dir" && as_dir=.
12638     for ac_exec_ext in '' $ac_executable_extensions; do
12639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12640     ac_cv_prog_ac_ct_RANLIB="ranlib"
12641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12642     break 2
12643   fi
12644 done
12645   done
12646 IFS=$as_save_IFS
12647
12648 fi
12649 fi
12650 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12651 if test -n "$ac_ct_RANLIB"; then
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12653 $as_echo "$ac_ct_RANLIB" >&6; }
12654 else
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12657 fi
12658
12659   if test "x$ac_ct_RANLIB" = x; then
12660     RANLIB=":"
12661   else
12662     case $cross_compiling:$ac_tool_warned in
12663 yes:)
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12666 ac_tool_warned=yes ;;
12667 esac
12668     RANLIB=$ac_ct_RANLIB
12669   fi
12670 else
12671   RANLIB="$ac_cv_prog_RANLIB"
12672 fi
12673
12674 test -z "$RANLIB" && RANLIB=:
12675
12676
12677
12678
12679
12680
12681 # Determine commands to create old-style static archives.
12682 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12683 old_postinstall_cmds='chmod 644 $oldlib'
12684 old_postuninstall_cmds=
12685
12686 if test -n "$RANLIB"; then
12687   case $host_os in
12688   openbsd*)
12689     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12690     ;;
12691   *)
12692     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12693     ;;
12694   esac
12695   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12696 fi
12697
12698 case $host_os in
12699   darwin*)
12700     lock_old_archive_extraction=yes ;;
12701   *)
12702     lock_old_archive_extraction=no ;;
12703 esac
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743 # If no C compiler was specified, use CC.
12744 LTCC=${LTCC-"$CC"}
12745
12746 # If no C compiler flags were specified, use CFLAGS.
12747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12748
12749 # Allow CC to be a program name with arguments.
12750 compiler=$CC
12751
12752
12753 # Check for command to grab the raw symbol name followed by C symbol from nm.
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12755 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12756 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759
12760 # These are sane defaults that work on at least a few old systems.
12761 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12762
12763 # Character class describing NM global symbol codes.
12764 symcode='[BCDEGRST]'
12765
12766 # Regexp to match symbols that can be accessed directly from C.
12767 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12768
12769 # Define system-specific variables.
12770 case $host_os in
12771 aix*)
12772   symcode='[BCDT]'
12773   ;;
12774 cygwin* | mingw* | pw32* | cegcc*)
12775   symcode='[ABCDGISTW]'
12776   ;;
12777 hpux*)
12778   if test "$host_cpu" = ia64; then
12779     symcode='[ABCDEGRST]'
12780   fi
12781   ;;
12782 irix* | nonstopux*)
12783   symcode='[BCDEGRST]'
12784   ;;
12785 osf*)
12786   symcode='[BCDEGQRST]'
12787   ;;
12788 solaris*)
12789   symcode='[BDRT]'
12790   ;;
12791 sco3.2v5*)
12792   symcode='[DT]'
12793   ;;
12794 sysv4.2uw2*)
12795   symcode='[DT]'
12796   ;;
12797 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12798   symcode='[ABDT]'
12799   ;;
12800 sysv4)
12801   symcode='[DFNSTU]'
12802   ;;
12803 esac
12804
12805 # If we're using GNU nm, then use its standard symbol codes.
12806 case `$NM -V 2>&1` in
12807 *GNU* | *'with BFD'*)
12808   symcode='[ABCDGIRSTW]' ;;
12809 esac
12810
12811 # Transform an extracted symbol line into a proper C declaration.
12812 # Some systems (esp. on ia64) link data and code symbols differently,
12813 # so use this general approach.
12814 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12815
12816 # Transform an extracted symbol line into symbol name and symbol address
12817 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12818 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'"
12819
12820 # Handle CRLF in mingw tool chain
12821 opt_cr=
12822 case $build_os in
12823 mingw*)
12824   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12825   ;;
12826 esac
12827
12828 # Try without a prefix underscore, then with it.
12829 for ac_symprfx in "" "_"; do
12830
12831   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12832   symxfrm="\\1 $ac_symprfx\\2 \\2"
12833
12834   # Write the raw and C identifiers.
12835   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12836     # Fake it for dumpbin and say T for any non-static function
12837     # and D for any global variable.
12838     # Also find C++ and __fastcall symbols from MSVC++,
12839     # which start with @ or ?.
12840     lt_cv_sys_global_symbol_pipe="$AWK '"\
12841 "     {last_section=section; section=\$ 3};"\
12842 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12843 "     \$ 0!~/External *\|/{next};"\
12844 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12845 "     {if(hide[section]) next};"\
12846 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12847 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12848 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12849 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12850 "     ' prfx=^$ac_symprfx"
12851   else
12852     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12853   fi
12854
12855   # Check to see that the pipe works correctly.
12856   pipe_works=no
12857
12858   rm -f conftest*
12859   cat > conftest.$ac_ext <<_LT_EOF
12860 #ifdef __cplusplus
12861 extern "C" {
12862 #endif
12863 char nm_test_var;
12864 void nm_test_func(void);
12865 void nm_test_func(void){}
12866 #ifdef __cplusplus
12867 }
12868 #endif
12869 int main(){nm_test_var='a';nm_test_func();return(0);}
12870 _LT_EOF
12871
12872   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12873   (eval $ac_compile) 2>&5
12874   ac_status=$?
12875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876   test $ac_status = 0; }; then
12877     # Now try to grab the symbols.
12878     nlist=conftest.nm
12879     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12880   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12881   ac_status=$?
12882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12883   test $ac_status = 0; } && test -s "$nlist"; then
12884       # Try sorting and uniquifying the output.
12885       if sort "$nlist" | uniq > "$nlist"T; then
12886         mv -f "$nlist"T "$nlist"
12887       else
12888         rm -f "$nlist"T
12889       fi
12890
12891       # Make sure that we snagged all the symbols we need.
12892       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12893         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12894           cat <<_LT_EOF > conftest.$ac_ext
12895 #ifdef __cplusplus
12896 extern "C" {
12897 #endif
12898
12899 _LT_EOF
12900           # Now generate the symbol file.
12901           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12902
12903           cat <<_LT_EOF >> conftest.$ac_ext
12904
12905 /* The mapping between symbol names and symbols.  */
12906 const struct {
12907   const char *name;
12908   void       *address;
12909 }
12910 lt__PROGRAM__LTX_preloaded_symbols[] =
12911 {
12912   { "@PROGRAM@", (void *) 0 },
12913 _LT_EOF
12914           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12915           cat <<\_LT_EOF >> conftest.$ac_ext
12916   {0, (void *) 0}
12917 };
12918
12919 /* This works around a problem in FreeBSD linker */
12920 #ifdef FREEBSD_WORKAROUND
12921 static const void *lt_preloaded_setup() {
12922   return lt__PROGRAM__LTX_preloaded_symbols;
12923 }
12924 #endif
12925
12926 #ifdef __cplusplus
12927 }
12928 #endif
12929 _LT_EOF
12930           # Now try linking the two files.
12931           mv conftest.$ac_objext conftstm.$ac_objext
12932           lt_save_LIBS="$LIBS"
12933           lt_save_CFLAGS="$CFLAGS"
12934           LIBS="conftstm.$ac_objext"
12935           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12936           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12937   (eval $ac_link) 2>&5
12938   ac_status=$?
12939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12940   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12941             pipe_works=yes
12942           fi
12943           LIBS="$lt_save_LIBS"
12944           CFLAGS="$lt_save_CFLAGS"
12945         else
12946           echo "cannot find nm_test_func in $nlist" >&5
12947         fi
12948       else
12949         echo "cannot find nm_test_var in $nlist" >&5
12950       fi
12951     else
12952       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12953     fi
12954   else
12955     echo "$progname: failed program was:" >&5
12956     cat conftest.$ac_ext >&5
12957   fi
12958   rm -rf conftest* conftst*
12959
12960   # Do not use the global_symbol_pipe unless it works.
12961   if test "$pipe_works" = yes; then
12962     break
12963   else
12964     lt_cv_sys_global_symbol_pipe=
12965   fi
12966 done
12967
12968 fi
12969
12970 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12971   lt_cv_sys_global_symbol_to_cdecl=
12972 fi
12973 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12975 $as_echo "failed" >&6; }
12976 else
12977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12978 $as_echo "ok" >&6; }
12979 fi
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002 # Check whether --enable-libtool-lock was given.
13003 if test "${enable_libtool_lock+set}" = set; then :
13004   enableval=$enable_libtool_lock;
13005 fi
13006
13007 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13008
13009 # Some flags need to be propagated to the compiler or linker for good
13010 # libtool support.
13011 case $host in
13012 ia64-*-hpux*)
13013   # Find out which ABI we are using.
13014   echo 'int i;' > conftest.$ac_ext
13015   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13016   (eval $ac_compile) 2>&5
13017   ac_status=$?
13018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019   test $ac_status = 0; }; then
13020     case `/usr/bin/file conftest.$ac_objext` in
13021       *ELF-32*)
13022         HPUX_IA64_MODE="32"
13023         ;;
13024       *ELF-64*)
13025         HPUX_IA64_MODE="64"
13026         ;;
13027     esac
13028   fi
13029   rm -rf conftest*
13030   ;;
13031 *-*-irix6*)
13032   # Find out which ABI we are using.
13033   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13034   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13035   (eval $ac_compile) 2>&5
13036   ac_status=$?
13037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13038   test $ac_status = 0; }; then
13039     if test "$lt_cv_prog_gnu_ld" = yes; then
13040       case `/usr/bin/file conftest.$ac_objext` in
13041         *32-bit*)
13042           LD="${LD-ld} -melf32bsmip"
13043           ;;
13044         *N32*)
13045           LD="${LD-ld} -melf32bmipn32"
13046           ;;
13047         *64-bit*)
13048           LD="${LD-ld} -melf64bmip"
13049         ;;
13050       esac
13051     else
13052       case `/usr/bin/file conftest.$ac_objext` in
13053         *32-bit*)
13054           LD="${LD-ld} -32"
13055           ;;
13056         *N32*)
13057           LD="${LD-ld} -n32"
13058           ;;
13059         *64-bit*)
13060           LD="${LD-ld} -64"
13061           ;;
13062       esac
13063     fi
13064   fi
13065   rm -rf conftest*
13066   ;;
13067
13068 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13069 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13070   # Find out which ABI we are using.
13071   echo 'int i;' > conftest.$ac_ext
13072   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13073   (eval $ac_compile) 2>&5
13074   ac_status=$?
13075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076   test $ac_status = 0; }; then
13077     case `/usr/bin/file conftest.o` in
13078       *32-bit*)
13079         case $host in
13080           x86_64-*kfreebsd*-gnu)
13081             LD="${LD-ld} -m elf_i386_fbsd"
13082             ;;
13083           x86_64-*linux*)
13084             LD="${LD-ld} -m elf_i386"
13085             ;;
13086           ppc64-*linux*|powerpc64-*linux*)
13087             LD="${LD-ld} -m elf32ppclinux"
13088             ;;
13089           s390x-*linux*)
13090             LD="${LD-ld} -m elf_s390"
13091             ;;
13092           sparc64-*linux*)
13093             LD="${LD-ld} -m elf32_sparc"
13094             ;;
13095         esac
13096         ;;
13097       *64-bit*)
13098         case $host in
13099           x86_64-*kfreebsd*-gnu)
13100             LD="${LD-ld} -m elf_x86_64_fbsd"
13101             ;;
13102           x86_64-*linux*)
13103             LD="${LD-ld} -m elf_x86_64"
13104             ;;
13105           ppc*-*linux*|powerpc*-*linux*)
13106             LD="${LD-ld} -m elf64ppc"
13107             ;;
13108           s390*-*linux*|s390*-*tpf*)
13109             LD="${LD-ld} -m elf64_s390"
13110             ;;
13111           sparc*-*linux*)
13112             LD="${LD-ld} -m elf64_sparc"
13113             ;;
13114         esac
13115         ;;
13116     esac
13117   fi
13118   rm -rf conftest*
13119   ;;
13120
13121 *-*-sco3.2v5*)
13122   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13123   SAVE_CFLAGS="$CFLAGS"
13124   CFLAGS="$CFLAGS -belf"
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13126 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13127 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13128   $as_echo_n "(cached) " >&6
13129 else
13130   ac_ext=c
13131 ac_cpp='$CPP $CPPFLAGS'
13132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13135
13136      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h.  */
13138
13139 int
13140 main ()
13141 {
13142
13143   ;
13144   return 0;
13145 }
13146 _ACEOF
13147 if ac_fn_c_try_link "$LINENO"; then :
13148   lt_cv_cc_needs_belf=yes
13149 else
13150   lt_cv_cc_needs_belf=no
13151 fi
13152 rm -f core conftest.err conftest.$ac_objext \
13153     conftest$ac_exeext conftest.$ac_ext
13154      ac_ext=c
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13159
13160 fi
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13162 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13163   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13164     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13165     CFLAGS="$SAVE_CFLAGS"
13166   fi
13167   ;;
13168 sparc*-*solaris*)
13169   # Find out which ABI we are using.
13170   echo 'int i;' > conftest.$ac_ext
13171   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13172   (eval $ac_compile) 2>&5
13173   ac_status=$?
13174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175   test $ac_status = 0; }; then
13176     case `/usr/bin/file conftest.o` in
13177     *64-bit*)
13178       case $lt_cv_prog_gnu_ld in
13179       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13180       *)
13181         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13182           LD="${LD-ld} -64"
13183         fi
13184         ;;
13185       esac
13186       ;;
13187     esac
13188   fi
13189   rm -rf conftest*
13190   ;;
13191 esac
13192
13193 need_locks="$enable_libtool_lock"
13194
13195
13196   case $host_os in
13197     rhapsody* | darwin*)
13198     if test -n "$ac_tool_prefix"; then
13199   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13200 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13204   $as_echo_n "(cached) " >&6
13205 else
13206   if test -n "$DSYMUTIL"; then
13207   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13208 else
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13211 do
13212   IFS=$as_save_IFS
13213   test -z "$as_dir" && as_dir=.
13214     for ac_exec_ext in '' $ac_executable_extensions; do
13215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13216     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13218     break 2
13219   fi
13220 done
13221   done
13222 IFS=$as_save_IFS
13223
13224 fi
13225 fi
13226 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13227 if test -n "$DSYMUTIL"; then
13228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13229 $as_echo "$DSYMUTIL" >&6; }
13230 else
13231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13233 fi
13234
13235
13236 fi
13237 if test -z "$ac_cv_prog_DSYMUTIL"; then
13238   ac_ct_DSYMUTIL=$DSYMUTIL
13239   # Extract the first word of "dsymutil", so it can be a program name with args.
13240 set dummy dsymutil; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13244   $as_echo_n "(cached) " >&6
13245 else
13246   if test -n "$ac_ct_DSYMUTIL"; then
13247   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13248 else
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13251 do
13252   IFS=$as_save_IFS
13253   test -z "$as_dir" && as_dir=.
13254     for ac_exec_ext in '' $ac_executable_extensions; do
13255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13256     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13258     break 2
13259   fi
13260 done
13261   done
13262 IFS=$as_save_IFS
13263
13264 fi
13265 fi
13266 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13267 if test -n "$ac_ct_DSYMUTIL"; then
13268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13269 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13270 else
13271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13273 fi
13274
13275   if test "x$ac_ct_DSYMUTIL" = x; then
13276     DSYMUTIL=":"
13277   else
13278     case $cross_compiling:$ac_tool_warned in
13279 yes:)
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13282 ac_tool_warned=yes ;;
13283 esac
13284     DSYMUTIL=$ac_ct_DSYMUTIL
13285   fi
13286 else
13287   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13288 fi
13289
13290     if test -n "$ac_tool_prefix"; then
13291   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13296   $as_echo_n "(cached) " >&6
13297 else
13298   if test -n "$NMEDIT"; then
13299   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13300 else
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13303 do
13304   IFS=$as_save_IFS
13305   test -z "$as_dir" && as_dir=.
13306     for ac_exec_ext in '' $ac_executable_extensions; do
13307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310     break 2
13311   fi
13312 done
13313   done
13314 IFS=$as_save_IFS
13315
13316 fi
13317 fi
13318 NMEDIT=$ac_cv_prog_NMEDIT
13319 if test -n "$NMEDIT"; then
13320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13321 $as_echo "$NMEDIT" >&6; }
13322 else
13323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13325 fi
13326
13327
13328 fi
13329 if test -z "$ac_cv_prog_NMEDIT"; then
13330   ac_ct_NMEDIT=$NMEDIT
13331   # Extract the first word of "nmedit", so it can be a program name with args.
13332 set dummy nmedit; ac_word=$2
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334 $as_echo_n "checking for $ac_word... " >&6; }
13335 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13336   $as_echo_n "(cached) " >&6
13337 else
13338   if test -n "$ac_ct_NMEDIT"; then
13339   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13340 else
13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342 for as_dir in $PATH
13343 do
13344   IFS=$as_save_IFS
13345   test -z "$as_dir" && as_dir=.
13346     for ac_exec_ext in '' $ac_executable_extensions; do
13347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13348     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13350     break 2
13351   fi
13352 done
13353   done
13354 IFS=$as_save_IFS
13355
13356 fi
13357 fi
13358 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13359 if test -n "$ac_ct_NMEDIT"; then
13360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13361 $as_echo "$ac_ct_NMEDIT" >&6; }
13362 else
13363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13365 fi
13366
13367   if test "x$ac_ct_NMEDIT" = x; then
13368     NMEDIT=":"
13369   else
13370     case $cross_compiling:$ac_tool_warned in
13371 yes:)
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13374 ac_tool_warned=yes ;;
13375 esac
13376     NMEDIT=$ac_ct_NMEDIT
13377   fi
13378 else
13379   NMEDIT="$ac_cv_prog_NMEDIT"
13380 fi
13381
13382     if test -n "$ac_tool_prefix"; then
13383   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13384 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if test "${ac_cv_prog_LIPO+set}" = set; then :
13388   $as_echo_n "(cached) " >&6
13389 else
13390   if test -n "$LIPO"; then
13391   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13392 else
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13395 do
13396   IFS=$as_save_IFS
13397   test -z "$as_dir" && as_dir=.
13398     for ac_exec_ext in '' $ac_executable_extensions; do
13399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13400     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402     break 2
13403   fi
13404 done
13405   done
13406 IFS=$as_save_IFS
13407
13408 fi
13409 fi
13410 LIPO=$ac_cv_prog_LIPO
13411 if test -n "$LIPO"; then
13412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13413 $as_echo "$LIPO" >&6; }
13414 else
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13417 fi
13418
13419
13420 fi
13421 if test -z "$ac_cv_prog_LIPO"; then
13422   ac_ct_LIPO=$LIPO
13423   # Extract the first word of "lipo", so it can be a program name with args.
13424 set dummy lipo; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426 $as_echo_n "checking for $ac_word... " >&6; }
13427 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13428   $as_echo_n "(cached) " >&6
13429 else
13430   if test -n "$ac_ct_LIPO"; then
13431   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13432 else
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13435 do
13436   IFS=$as_save_IFS
13437   test -z "$as_dir" && as_dir=.
13438     for ac_exec_ext in '' $ac_executable_extensions; do
13439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13440     ac_cv_prog_ac_ct_LIPO="lipo"
13441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442     break 2
13443   fi
13444 done
13445   done
13446 IFS=$as_save_IFS
13447
13448 fi
13449 fi
13450 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13451 if test -n "$ac_ct_LIPO"; then
13452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13453 $as_echo "$ac_ct_LIPO" >&6; }
13454 else
13455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458
13459   if test "x$ac_ct_LIPO" = x; then
13460     LIPO=":"
13461   else
13462     case $cross_compiling:$ac_tool_warned in
13463 yes:)
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13466 ac_tool_warned=yes ;;
13467 esac
13468     LIPO=$ac_ct_LIPO
13469   fi
13470 else
13471   LIPO="$ac_cv_prog_LIPO"
13472 fi
13473
13474     if test -n "$ac_tool_prefix"; then
13475   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13476 set dummy ${ac_tool_prefix}otool; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13480   $as_echo_n "(cached) " >&6
13481 else
13482   if test -n "$OTOOL"; then
13483   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13484 else
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13487 do
13488   IFS=$as_save_IFS
13489   test -z "$as_dir" && as_dir=.
13490     for ac_exec_ext in '' $ac_executable_extensions; do
13491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13492     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494     break 2
13495   fi
13496 done
13497   done
13498 IFS=$as_save_IFS
13499
13500 fi
13501 fi
13502 OTOOL=$ac_cv_prog_OTOOL
13503 if test -n "$OTOOL"; then
13504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13505 $as_echo "$OTOOL" >&6; }
13506 else
13507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13509 fi
13510
13511
13512 fi
13513 if test -z "$ac_cv_prog_OTOOL"; then
13514   ac_ct_OTOOL=$OTOOL
13515   # Extract the first word of "otool", so it can be a program name with args.
13516 set dummy otool; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13520   $as_echo_n "(cached) " >&6
13521 else
13522   if test -n "$ac_ct_OTOOL"; then
13523   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13524 else
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13527 do
13528   IFS=$as_save_IFS
13529   test -z "$as_dir" && as_dir=.
13530     for ac_exec_ext in '' $ac_executable_extensions; do
13531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532     ac_cv_prog_ac_ct_OTOOL="otool"
13533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534     break 2
13535   fi
13536 done
13537   done
13538 IFS=$as_save_IFS
13539
13540 fi
13541 fi
13542 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13543 if test -n "$ac_ct_OTOOL"; then
13544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13545 $as_echo "$ac_ct_OTOOL" >&6; }
13546 else
13547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13549 fi
13550
13551   if test "x$ac_ct_OTOOL" = x; then
13552     OTOOL=":"
13553   else
13554     case $cross_compiling:$ac_tool_warned in
13555 yes:)
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13558 ac_tool_warned=yes ;;
13559 esac
13560     OTOOL=$ac_ct_OTOOL
13561   fi
13562 else
13563   OTOOL="$ac_cv_prog_OTOOL"
13564 fi
13565
13566     if test -n "$ac_tool_prefix"; then
13567   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13568 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13570 $as_echo_n "checking for $ac_word... " >&6; }
13571 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13572   $as_echo_n "(cached) " >&6
13573 else
13574   if test -n "$OTOOL64"; then
13575   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13576 else
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13579 do
13580   IFS=$as_save_IFS
13581   test -z "$as_dir" && as_dir=.
13582     for ac_exec_ext in '' $ac_executable_extensions; do
13583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13584     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13586     break 2
13587   fi
13588 done
13589   done
13590 IFS=$as_save_IFS
13591
13592 fi
13593 fi
13594 OTOOL64=$ac_cv_prog_OTOOL64
13595 if test -n "$OTOOL64"; then
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13597 $as_echo "$OTOOL64" >&6; }
13598 else
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13601 fi
13602
13603
13604 fi
13605 if test -z "$ac_cv_prog_OTOOL64"; then
13606   ac_ct_OTOOL64=$OTOOL64
13607   # Extract the first word of "otool64", so it can be a program name with args.
13608 set dummy otool64; ac_word=$2
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610 $as_echo_n "checking for $ac_word... " >&6; }
13611 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13612   $as_echo_n "(cached) " >&6
13613 else
13614   if test -n "$ac_ct_OTOOL64"; then
13615   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13616 else
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $PATH
13619 do
13620   IFS=$as_save_IFS
13621   test -z "$as_dir" && as_dir=.
13622     for ac_exec_ext in '' $ac_executable_extensions; do
13623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13624     ac_cv_prog_ac_ct_OTOOL64="otool64"
13625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626     break 2
13627   fi
13628 done
13629   done
13630 IFS=$as_save_IFS
13631
13632 fi
13633 fi
13634 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13635 if test -n "$ac_ct_OTOOL64"; then
13636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13637 $as_echo "$ac_ct_OTOOL64" >&6; }
13638 else
13639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13641 fi
13642
13643   if test "x$ac_ct_OTOOL64" = x; then
13644     OTOOL64=":"
13645   else
13646     case $cross_compiling:$ac_tool_warned in
13647 yes:)
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13650 ac_tool_warned=yes ;;
13651 esac
13652     OTOOL64=$ac_ct_OTOOL64
13653   fi
13654 else
13655   OTOOL64="$ac_cv_prog_OTOOL64"
13656 fi
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13685 $as_echo_n "checking for -single_module linker flag... " >&6; }
13686 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13687   $as_echo_n "(cached) " >&6
13688 else
13689   lt_cv_apple_cc_single_mod=no
13690       if test -z "${LT_MULTI_MODULE}"; then
13691         # By default we will add the -single_module flag. You can override
13692         # by either setting the environment variable LT_MULTI_MODULE
13693         # non-empty at configure time, or by adding -multi_module to the
13694         # link flags.
13695         rm -rf libconftest.dylib*
13696         echo "int foo(void){return 1;}" > conftest.c
13697         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13698 -dynamiclib -Wl,-single_module conftest.c" >&5
13699         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13700           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13701         _lt_result=$?
13702         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13703           lt_cv_apple_cc_single_mod=yes
13704         else
13705           cat conftest.err >&5
13706         fi
13707         rm -rf libconftest.dylib*
13708         rm -f conftest.*
13709       fi
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13712 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13714 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13715 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13716   $as_echo_n "(cached) " >&6
13717 else
13718   lt_cv_ld_exported_symbols_list=no
13719       save_LDFLAGS=$LDFLAGS
13720       echo "_main" > conftest.sym
13721       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h.  */
13724
13725 int
13726 main ()
13727 {
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 if ac_fn_c_try_link "$LINENO"; then :
13734   lt_cv_ld_exported_symbols_list=yes
13735 else
13736   lt_cv_ld_exported_symbols_list=no
13737 fi
13738 rm -f core conftest.err conftest.$ac_objext \
13739     conftest$ac_exeext conftest.$ac_ext
13740         LDFLAGS="$save_LDFLAGS"
13741
13742 fi
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13744 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13746 $as_echo_n "checking for -force_load linker flag... " >&6; }
13747 if test "${lt_cv_ld_force_load+set}" = set; then :
13748   $as_echo_n "(cached) " >&6
13749 else
13750   lt_cv_ld_force_load=no
13751       cat > conftest.c << _LT_EOF
13752 int forced_loaded() { return 2;}
13753 _LT_EOF
13754       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13755       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13756       echo "$AR cru libconftest.a conftest.o" >&5
13757       $AR cru libconftest.a conftest.o 2>&5
13758       cat > conftest.c << _LT_EOF
13759 int main() { return 0;}
13760 _LT_EOF
13761       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13762       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13763       _lt_result=$?
13764       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13765         lt_cv_ld_force_load=yes
13766       else
13767         cat conftest.err >&5
13768       fi
13769         rm -f conftest.err libconftest.a conftest conftest.c
13770         rm -rf conftest.dSYM
13771
13772 fi
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13774 $as_echo "$lt_cv_ld_force_load" >&6; }
13775     case $host_os in
13776     rhapsody* | darwin1.[012])
13777       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13778     darwin1.*)
13779       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13780     darwin*) # darwin 5.x on
13781       # if running on 10.5 or later, the deployment target defaults
13782       # to the OS version, if on x86, and 10.4, the deployment
13783       # target defaults to 10.4. Don't you love it?
13784       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13785         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13786           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13787         10.[012]*)
13788           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13789         10.*)
13790           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13791       esac
13792     ;;
13793   esac
13794     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13795       _lt_dar_single_mod='$single_module'
13796     fi
13797     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13798       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13799     else
13800       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13801     fi
13802     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13803       _lt_dsymutil='~$DSYMUTIL $lib || :'
13804     else
13805       _lt_dsymutil=
13806     fi
13807     ;;
13808   esac
13809
13810 for ac_header in dlfcn.h
13811 do :
13812   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13813 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13814   cat >>confdefs.h <<_ACEOF
13815 #define HAVE_DLFCN_H 1
13816 _ACEOF
13817
13818 fi
13819 done
13820
13821
13822
13823
13824
13825
13826 # Set options
13827
13828
13829
13830         enable_dlopen=no
13831
13832
13833   enable_win32_dll=no
13834
13835
13836             # Check whether --enable-shared was given.
13837 if test "${enable_shared+set}" = set; then :
13838   enableval=$enable_shared; p=${PACKAGE-default}
13839     case $enableval in
13840     yes) enable_shared=yes ;;
13841     no) enable_shared=no ;;
13842     *)
13843       enable_shared=no
13844       # Look at the argument we got.  We use all the common list separators.
13845       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13846       for pkg in $enableval; do
13847         IFS="$lt_save_ifs"
13848         if test "X$pkg" = "X$p"; then
13849           enable_shared=yes
13850         fi
13851       done
13852       IFS="$lt_save_ifs"
13853       ;;
13854     esac
13855 else
13856   enable_shared=yes
13857 fi
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867   # Check whether --enable-static was given.
13868 if test "${enable_static+set}" = set; then :
13869   enableval=$enable_static; p=${PACKAGE-default}
13870     case $enableval in
13871     yes) enable_static=yes ;;
13872     no) enable_static=no ;;
13873     *)
13874      enable_static=no
13875       # Look at the argument we got.  We use all the common list separators.
13876       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13877       for pkg in $enableval; do
13878         IFS="$lt_save_ifs"
13879         if test "X$pkg" = "X$p"; then
13880           enable_static=yes
13881         fi
13882       done
13883       IFS="$lt_save_ifs"
13884       ;;
13885     esac
13886 else
13887   enable_static=yes
13888 fi
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899 # Check whether --with-pic was given.
13900 if test "${with_pic+set}" = set; then :
13901   withval=$with_pic; pic_mode="$withval"
13902 else
13903   pic_mode=default
13904 fi
13905
13906
13907 test -z "$pic_mode" && pic_mode=default
13908
13909
13910
13911
13912
13913
13914
13915   # Check whether --enable-fast-install was given.
13916 if test "${enable_fast_install+set}" = set; then :
13917   enableval=$enable_fast_install; p=${PACKAGE-default}
13918     case $enableval in
13919     yes) enable_fast_install=yes ;;
13920     no) enable_fast_install=no ;;
13921     *)
13922       enable_fast_install=no
13923       # Look at the argument we got.  We use all the common list separators.
13924       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13925       for pkg in $enableval; do
13926         IFS="$lt_save_ifs"
13927         if test "X$pkg" = "X$p"; then
13928           enable_fast_install=yes
13929         fi
13930       done
13931       IFS="$lt_save_ifs"
13932       ;;
13933     esac
13934 else
13935   enable_fast_install=yes
13936 fi
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948 # This can be used to rebuild libtool when needed
13949 LIBTOOL_DEPS="$ltmain"
13950
13951 # Always use our own libtool.
13952 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979 test -z "$LN_S" && LN_S="ln -s"
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994 if test -n "${ZSH_VERSION+set}" ; then
13995    setopt NO_GLOB_SUBST
13996 fi
13997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13999 $as_echo_n "checking for objdir... " >&6; }
14000 if test "${lt_cv_objdir+set}" = set; then :
14001   $as_echo_n "(cached) " >&6
14002 else
14003   rm -f .libs 2>/dev/null
14004 mkdir .libs 2>/dev/null
14005 if test -d .libs; then
14006   lt_cv_objdir=.libs
14007 else
14008   # MS-DOS does not allow filenames that begin with a dot.
14009   lt_cv_objdir=_libs
14010 fi
14011 rmdir .libs 2>/dev/null
14012 fi
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14014 $as_echo "$lt_cv_objdir" >&6; }
14015 objdir=$lt_cv_objdir
14016
14017
14018
14019
14020
14021 cat >>confdefs.h <<_ACEOF
14022 #define LT_OBJDIR "$lt_cv_objdir/"
14023 _ACEOF
14024
14025
14026
14027
14028 case $host_os in
14029 aix3*)
14030   # AIX sometimes has problems with the GCC collect2 program.  For some
14031   # reason, if we set the COLLECT_NAMES environment variable, the problems
14032   # vanish in a puff of smoke.
14033   if test "X${COLLECT_NAMES+set}" != Xset; then
14034     COLLECT_NAMES=
14035     export COLLECT_NAMES
14036   fi
14037   ;;
14038 esac
14039
14040 # Global variables:
14041 ofile=libtool
14042 can_build_shared=yes
14043
14044 # All known linkers require a `.a' archive for static linking (except MSVC,
14045 # which needs '.lib').
14046 libext=a
14047
14048 with_gnu_ld="$lt_cv_prog_gnu_ld"
14049
14050 old_CC="$CC"
14051 old_CFLAGS="$CFLAGS"
14052
14053 # Set sane defaults for various variables
14054 test -z "$CC" && CC=cc
14055 test -z "$LTCC" && LTCC=$CC
14056 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14057 test -z "$LD" && LD=ld
14058 test -z "$ac_objext" && ac_objext=o
14059
14060 for cc_temp in $compiler""; do
14061   case $cc_temp in
14062     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14063     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14064     \-*) ;;
14065     *) break;;
14066   esac
14067 done
14068 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14069
14070
14071 # Only perform the check for file, if the check method requires it
14072 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14073 case $deplibs_check_method in
14074 file_magic*)
14075   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14077 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14078 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14079   $as_echo_n "(cached) " >&6
14080 else
14081   case $MAGIC_CMD in
14082 [\\/*] |  ?:[\\/]*)
14083   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14084   ;;
14085 *)
14086   lt_save_MAGIC_CMD="$MAGIC_CMD"
14087   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14088   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14089   for ac_dir in $ac_dummy; do
14090     IFS="$lt_save_ifs"
14091     test -z "$ac_dir" && ac_dir=.
14092     if test -f $ac_dir/${ac_tool_prefix}file; then
14093       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14094       if test -n "$file_magic_test_file"; then
14095         case $deplibs_check_method in
14096         "file_magic "*)
14097           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14098           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14099           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14100             $EGREP "$file_magic_regex" > /dev/null; then
14101             :
14102           else
14103             cat <<_LT_EOF 1>&2
14104
14105 *** Warning: the command libtool uses to detect shared libraries,
14106 *** $file_magic_cmd, produces output that libtool cannot recognize.
14107 *** The result is that libtool may fail to recognize shared libraries
14108 *** as such.  This will affect the creation of libtool libraries that
14109 *** depend on shared libraries, but programs linked with such libtool
14110 *** libraries will work regardless of this problem.  Nevertheless, you
14111 *** may want to report the problem to your system manager and/or to
14112 *** bug-libtool@gnu.org
14113
14114 _LT_EOF
14115           fi ;;
14116         esac
14117       fi
14118       break
14119     fi
14120   done
14121   IFS="$lt_save_ifs"
14122   MAGIC_CMD="$lt_save_MAGIC_CMD"
14123   ;;
14124 esac
14125 fi
14126
14127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14128 if test -n "$MAGIC_CMD"; then
14129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14130 $as_echo "$MAGIC_CMD" >&6; }
14131 else
14132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14134 fi
14135
14136
14137
14138
14139
14140 if test -z "$lt_cv_path_MAGIC_CMD"; then
14141   if test -n "$ac_tool_prefix"; then
14142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14143 $as_echo_n "checking for file... " >&6; }
14144 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14145   $as_echo_n "(cached) " >&6
14146 else
14147   case $MAGIC_CMD in
14148 [\\/*] |  ?:[\\/]*)
14149   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14150   ;;
14151 *)
14152   lt_save_MAGIC_CMD="$MAGIC_CMD"
14153   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14154   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14155   for ac_dir in $ac_dummy; do
14156     IFS="$lt_save_ifs"
14157     test -z "$ac_dir" && ac_dir=.
14158     if test -f $ac_dir/file; then
14159       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14160       if test -n "$file_magic_test_file"; then
14161         case $deplibs_check_method in
14162         "file_magic "*)
14163           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14164           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14165           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14166             $EGREP "$file_magic_regex" > /dev/null; then
14167             :
14168           else
14169             cat <<_LT_EOF 1>&2
14170
14171 *** Warning: the command libtool uses to detect shared libraries,
14172 *** $file_magic_cmd, produces output that libtool cannot recognize.
14173 *** The result is that libtool may fail to recognize shared libraries
14174 *** as such.  This will affect the creation of libtool libraries that
14175 *** depend on shared libraries, but programs linked with such libtool
14176 *** libraries will work regardless of this problem.  Nevertheless, you
14177 *** may want to report the problem to your system manager and/or to
14178 *** bug-libtool@gnu.org
14179
14180 _LT_EOF
14181           fi ;;
14182         esac
14183       fi
14184       break
14185     fi
14186   done
14187   IFS="$lt_save_ifs"
14188   MAGIC_CMD="$lt_save_MAGIC_CMD"
14189   ;;
14190 esac
14191 fi
14192
14193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14194 if test -n "$MAGIC_CMD"; then
14195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14196 $as_echo "$MAGIC_CMD" >&6; }
14197 else
14198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14200 fi
14201
14202
14203   else
14204     MAGIC_CMD=:
14205   fi
14206 fi
14207
14208   fi
14209   ;;
14210 esac
14211
14212 # Use C for the default configuration in the libtool script
14213
14214 lt_save_CC="$CC"
14215 ac_ext=c
14216 ac_cpp='$CPP $CPPFLAGS'
14217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14220
14221
14222 # Source file extension for C test sources.
14223 ac_ext=c
14224
14225 # Object file extension for compiled C test sources.
14226 objext=o
14227 objext=$objext
14228
14229 # Code to be used in simple compile tests
14230 lt_simple_compile_test_code="int some_variable = 0;"
14231
14232 # Code to be used in simple link tests
14233 lt_simple_link_test_code='int main(){return(0);}'
14234
14235
14236
14237
14238
14239
14240
14241 # If no C compiler was specified, use CC.
14242 LTCC=${LTCC-"$CC"}
14243
14244 # If no C compiler flags were specified, use CFLAGS.
14245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14246
14247 # Allow CC to be a program name with arguments.
14248 compiler=$CC
14249
14250 # Save the default compiler, since it gets overwritten when the other
14251 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14252 compiler_DEFAULT=$CC
14253
14254 # save warnings/boilerplate of simple test code
14255 ac_outfile=conftest.$ac_objext
14256 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14257 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14258 _lt_compiler_boilerplate=`cat conftest.err`
14259 $RM conftest*
14260
14261 ac_outfile=conftest.$ac_objext
14262 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14263 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14264 _lt_linker_boilerplate=`cat conftest.err`
14265 $RM -r conftest*
14266
14267
14268 ## CAVEAT EMPTOR:
14269 ## There is no encapsulation within the following macros, do not change
14270 ## the running order or otherwise move them around unless you know exactly
14271 ## what you are doing...
14272 if test -n "$compiler"; then
14273
14274 lt_prog_compiler_no_builtin_flag=
14275
14276 if test "$GCC" = yes; then
14277   case $cc_basename in
14278   nvcc*)
14279     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14280   *)
14281     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14282   esac
14283
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14285 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14286 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14287   $as_echo_n "(cached) " >&6
14288 else
14289   lt_cv_prog_compiler_rtti_exceptions=no
14290    ac_outfile=conftest.$ac_objext
14291    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14292    lt_compiler_flag="-fno-rtti -fno-exceptions"
14293    # Insert the option either (1) after the last *FLAGS variable, or
14294    # (2) before a word containing "conftest.", or (3) at the end.
14295    # Note that $ac_compile itself does not contain backslashes and begins
14296    # with a dollar sign (not a hyphen), so the echo should work correctly.
14297    # The option is referenced via a variable to avoid confusing sed.
14298    lt_compile=`echo "$ac_compile" | $SED \
14299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301    -e 's:$: $lt_compiler_flag:'`
14302    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14303    (eval "$lt_compile" 2>conftest.err)
14304    ac_status=$?
14305    cat conftest.err >&5
14306    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307    if (exit $ac_status) && test -s "$ac_outfile"; then
14308      # The compiler can only warn and ignore the option if not recognized
14309      # So say no if there are warnings other than the usual output.
14310      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14311      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14312      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14313        lt_cv_prog_compiler_rtti_exceptions=yes
14314      fi
14315    fi
14316    $RM conftest*
14317
14318 fi
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14320 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14321
14322 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14323     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14324 else
14325     :
14326 fi
14327
14328 fi
14329
14330
14331
14332
14333
14334
14335   lt_prog_compiler_wl=
14336 lt_prog_compiler_pic=
14337 lt_prog_compiler_static=
14338
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14340 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14341
14342   if test "$GCC" = yes; then
14343     lt_prog_compiler_wl='-Wl,'
14344     lt_prog_compiler_static='-static'
14345
14346     case $host_os in
14347       aix*)
14348       # All AIX code is PIC.
14349       if test "$host_cpu" = ia64; then
14350         # AIX 5 now supports IA64 processor
14351         lt_prog_compiler_static='-Bstatic'
14352       fi
14353       ;;
14354
14355     amigaos*)
14356       case $host_cpu in
14357       powerpc)
14358             # see comment about AmigaOS4 .so support
14359             lt_prog_compiler_pic='-fPIC'
14360         ;;
14361       m68k)
14362             # FIXME: we need at least 68020 code to build shared libraries, but
14363             # adding the `-m68020' flag to GCC prevents building anything better,
14364             # like `-m68040'.
14365             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14366         ;;
14367       esac
14368       ;;
14369
14370     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14371       # PIC is the default for these OSes.
14372       ;;
14373
14374     mingw* | cygwin* | pw32* | os2* | cegcc*)
14375       # This hack is so that the source file can tell whether it is being
14376       # built for inclusion in a dll (and should export symbols for example).
14377       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14378       # (--disable-auto-import) libraries
14379       lt_prog_compiler_pic='-DDLL_EXPORT'
14380       ;;
14381
14382     darwin* | rhapsody*)
14383       # PIC is the default on this platform
14384       # Common symbols not allowed in MH_DYLIB files
14385       lt_prog_compiler_pic='-fno-common'
14386       ;;
14387
14388     haiku*)
14389       # PIC is the default for Haiku.
14390       # The "-static" flag exists, but is broken.
14391       lt_prog_compiler_static=
14392       ;;
14393
14394     hpux*)
14395       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14396       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14397       # sets the default TLS model and affects inlining.
14398       case $host_cpu in
14399       hppa*64*)
14400         # +Z the default
14401         ;;
14402       *)
14403         lt_prog_compiler_pic='-fPIC'
14404         ;;
14405       esac
14406       ;;
14407
14408     interix[3-9]*)
14409       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14410       # Instead, we relocate shared libraries at runtime.
14411       ;;
14412
14413     msdosdjgpp*)
14414       # Just because we use GCC doesn't mean we suddenly get shared libraries
14415       # on systems that don't support them.
14416       lt_prog_compiler_can_build_shared=no
14417       enable_shared=no
14418       ;;
14419
14420     *nto* | *qnx*)
14421       # QNX uses GNU C++, but need to define -shared option too, otherwise
14422       # it will coredump.
14423       lt_prog_compiler_pic='-fPIC -shared'
14424       ;;
14425
14426     sysv4*MP*)
14427       if test -d /usr/nec; then
14428         lt_prog_compiler_pic=-Kconform_pic
14429       fi
14430       ;;
14431
14432     *)
14433       lt_prog_compiler_pic='-fPIC'
14434       ;;
14435     esac
14436
14437     case $cc_basename in
14438     nvcc*) # Cuda Compiler Driver 2.2
14439       lt_prog_compiler_wl='-Xlinker '
14440       lt_prog_compiler_pic='-Xcompiler -fPIC'
14441       ;;
14442     esac
14443   else
14444     # PORTME Check for flag to pass linker flags through the system compiler.
14445     case $host_os in
14446     aix*)
14447       lt_prog_compiler_wl='-Wl,'
14448       if test "$host_cpu" = ia64; then
14449         # AIX 5 now supports IA64 processor
14450         lt_prog_compiler_static='-Bstatic'
14451       else
14452         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14453       fi
14454       ;;
14455
14456     mingw* | cygwin* | pw32* | os2* | cegcc*)
14457       # This hack is so that the source file can tell whether it is being
14458       # built for inclusion in a dll (and should export symbols for example).
14459       lt_prog_compiler_pic='-DDLL_EXPORT'
14460       ;;
14461
14462     hpux9* | hpux10* | hpux11*)
14463       lt_prog_compiler_wl='-Wl,'
14464       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14465       # not for PA HP-UX.
14466       case $host_cpu in
14467       hppa*64*|ia64*)
14468         # +Z the default
14469         ;;
14470       *)
14471         lt_prog_compiler_pic='+Z'
14472         ;;
14473       esac
14474       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14475       lt_prog_compiler_static='${wl}-a ${wl}archive'
14476       ;;
14477
14478     irix5* | irix6* | nonstopux*)
14479       lt_prog_compiler_wl='-Wl,'
14480       # PIC (with -KPIC) is the default.
14481       lt_prog_compiler_static='-non_shared'
14482       ;;
14483
14484     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14485       case $cc_basename in
14486       # old Intel for x86_64 which still supported -KPIC.
14487       ecc*)
14488         lt_prog_compiler_wl='-Wl,'
14489         lt_prog_compiler_pic='-KPIC'
14490         lt_prog_compiler_static='-static'
14491         ;;
14492       # icc used to be incompatible with GCC.
14493       # ICC 10 doesn't accept -KPIC any more.
14494       icc* | ifort*)
14495         lt_prog_compiler_wl='-Wl,'
14496         lt_prog_compiler_pic='-fPIC'
14497         lt_prog_compiler_static='-static'
14498         ;;
14499       # Lahey Fortran 8.1.
14500       lf95*)
14501         lt_prog_compiler_wl='-Wl,'
14502         lt_prog_compiler_pic='--shared'
14503         lt_prog_compiler_static='--static'
14504         ;;
14505       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14506         # Portland Group compilers (*not* the Pentium gcc compiler,
14507         # which looks to be a dead project)
14508         lt_prog_compiler_wl='-Wl,'
14509         lt_prog_compiler_pic='-fpic'
14510         lt_prog_compiler_static='-Bstatic'
14511         ;;
14512       ccc*)
14513         lt_prog_compiler_wl='-Wl,'
14514         # All Alpha code is PIC.
14515         lt_prog_compiler_static='-non_shared'
14516         ;;
14517       xl* | bgxl* | bgf* | mpixl*)
14518         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14519         lt_prog_compiler_wl='-Wl,'
14520         lt_prog_compiler_pic='-qpic'
14521         lt_prog_compiler_static='-qstaticlink'
14522         ;;
14523       *)
14524         case `$CC -V 2>&1 | sed 5q` in
14525         *Sun\ F* | *Sun*Fortran*)
14526           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14527           lt_prog_compiler_pic='-KPIC'
14528           lt_prog_compiler_static='-Bstatic'
14529           lt_prog_compiler_wl=''
14530           ;;
14531         *Sun\ C*)
14532           # Sun C 5.9
14533           lt_prog_compiler_pic='-KPIC'
14534           lt_prog_compiler_static='-Bstatic'
14535           lt_prog_compiler_wl='-Wl,'
14536           ;;
14537         esac
14538         ;;
14539       esac
14540       ;;
14541
14542     newsos6)
14543       lt_prog_compiler_pic='-KPIC'
14544       lt_prog_compiler_static='-Bstatic'
14545       ;;
14546
14547     *nto* | *qnx*)
14548       # QNX uses GNU C++, but need to define -shared option too, otherwise
14549       # it will coredump.
14550       lt_prog_compiler_pic='-fPIC -shared'
14551       ;;
14552
14553     osf3* | osf4* | osf5*)
14554       lt_prog_compiler_wl='-Wl,'
14555       # All OSF/1 code is PIC.
14556       lt_prog_compiler_static='-non_shared'
14557       ;;
14558
14559     rdos*)
14560       lt_prog_compiler_static='-non_shared'
14561       ;;
14562
14563     solaris*)
14564       lt_prog_compiler_pic='-KPIC'
14565       lt_prog_compiler_static='-Bstatic'
14566       case $cc_basename in
14567       f77* | f90* | f95*)
14568         lt_prog_compiler_wl='-Qoption ld ';;
14569       *)
14570         lt_prog_compiler_wl='-Wl,';;
14571       esac
14572       ;;
14573
14574     sunos4*)
14575       lt_prog_compiler_wl='-Qoption ld '
14576       lt_prog_compiler_pic='-PIC'
14577       lt_prog_compiler_static='-Bstatic'
14578       ;;
14579
14580     sysv4 | sysv4.2uw2* | sysv4.3*)
14581       lt_prog_compiler_wl='-Wl,'
14582       lt_prog_compiler_pic='-KPIC'
14583       lt_prog_compiler_static='-Bstatic'
14584       ;;
14585
14586     sysv4*MP*)
14587       if test -d /usr/nec ;then
14588         lt_prog_compiler_pic='-Kconform_pic'
14589         lt_prog_compiler_static='-Bstatic'
14590       fi
14591       ;;
14592
14593     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14594       lt_prog_compiler_wl='-Wl,'
14595       lt_prog_compiler_pic='-KPIC'
14596       lt_prog_compiler_static='-Bstatic'
14597       ;;
14598
14599     unicos*)
14600       lt_prog_compiler_wl='-Wl,'
14601       lt_prog_compiler_can_build_shared=no
14602       ;;
14603
14604     uts4*)
14605       lt_prog_compiler_pic='-pic'
14606       lt_prog_compiler_static='-Bstatic'
14607       ;;
14608
14609     *)
14610       lt_prog_compiler_can_build_shared=no
14611       ;;
14612     esac
14613   fi
14614
14615 case $host_os in
14616   # For platforms which do not support PIC, -DPIC is meaningless:
14617   *djgpp*)
14618     lt_prog_compiler_pic=
14619     ;;
14620   *)
14621     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14622     ;;
14623 esac
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14625 $as_echo "$lt_prog_compiler_pic" >&6; }
14626
14627
14628
14629
14630
14631
14632 #
14633 # Check to make sure the PIC flag actually works.
14634 #
14635 if test -n "$lt_prog_compiler_pic"; then
14636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14637 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14638 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14639   $as_echo_n "(cached) " >&6
14640 else
14641   lt_cv_prog_compiler_pic_works=no
14642    ac_outfile=conftest.$ac_objext
14643    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14644    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14645    # Insert the option either (1) after the last *FLAGS variable, or
14646    # (2) before a word containing "conftest.", or (3) at the end.
14647    # Note that $ac_compile itself does not contain backslashes and begins
14648    # with a dollar sign (not a hyphen), so the echo should work correctly.
14649    # The option is referenced via a variable to avoid confusing sed.
14650    lt_compile=`echo "$ac_compile" | $SED \
14651    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653    -e 's:$: $lt_compiler_flag:'`
14654    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14655    (eval "$lt_compile" 2>conftest.err)
14656    ac_status=$?
14657    cat conftest.err >&5
14658    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659    if (exit $ac_status) && test -s "$ac_outfile"; then
14660      # The compiler can only warn and ignore the option if not recognized
14661      # So say no if there are warnings other than the usual output.
14662      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14663      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14664      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14665        lt_cv_prog_compiler_pic_works=yes
14666      fi
14667    fi
14668    $RM conftest*
14669
14670 fi
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14672 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14673
14674 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14675     case $lt_prog_compiler_pic in
14676      "" | " "*) ;;
14677      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14678      esac
14679 else
14680     lt_prog_compiler_pic=
14681      lt_prog_compiler_can_build_shared=no
14682 fi
14683
14684 fi
14685
14686
14687
14688
14689
14690
14691 #
14692 # Check to make sure the static flag actually works.
14693 #
14694 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14696 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14697 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14698   $as_echo_n "(cached) " >&6
14699 else
14700   lt_cv_prog_compiler_static_works=no
14701    save_LDFLAGS="$LDFLAGS"
14702    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14703    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14704    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14705      # The linker can only warn and ignore the option if not recognized
14706      # So say no if there are warnings
14707      if test -s conftest.err; then
14708        # Append any errors to the config.log.
14709        cat conftest.err 1>&5
14710        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14711        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14712        if diff conftest.exp conftest.er2 >/dev/null; then
14713          lt_cv_prog_compiler_static_works=yes
14714        fi
14715      else
14716        lt_cv_prog_compiler_static_works=yes
14717      fi
14718    fi
14719    $RM -r conftest*
14720    LDFLAGS="$save_LDFLAGS"
14721
14722 fi
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14724 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14725
14726 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14727     :
14728 else
14729     lt_prog_compiler_static=
14730 fi
14731
14732
14733
14734
14735
14736
14737
14738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14740 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14741   $as_echo_n "(cached) " >&6
14742 else
14743   lt_cv_prog_compiler_c_o=no
14744    $RM -r conftest 2>/dev/null
14745    mkdir conftest
14746    cd conftest
14747    mkdir out
14748    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14749
14750    lt_compiler_flag="-o out/conftest2.$ac_objext"
14751    # Insert the option either (1) after the last *FLAGS variable, or
14752    # (2) before a word containing "conftest.", or (3) at the end.
14753    # Note that $ac_compile itself does not contain backslashes and begins
14754    # with a dollar sign (not a hyphen), so the echo should work correctly.
14755    lt_compile=`echo "$ac_compile" | $SED \
14756    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14757    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14758    -e 's:$: $lt_compiler_flag:'`
14759    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14760    (eval "$lt_compile" 2>out/conftest.err)
14761    ac_status=$?
14762    cat out/conftest.err >&5
14763    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14765    then
14766      # The compiler can only warn and ignore the option if not recognized
14767      # So say no if there are warnings
14768      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14769      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14770      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14771        lt_cv_prog_compiler_c_o=yes
14772      fi
14773    fi
14774    chmod u+w . 2>&5
14775    $RM conftest*
14776    # SGI C++ compiler will create directory out/ii_files/ for
14777    # template instantiation
14778    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14779    $RM out/* && rmdir out
14780    cd ..
14781    $RM -r conftest
14782    $RM conftest*
14783
14784 fi
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14786 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14787
14788
14789
14790
14791
14792
14793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14795 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14796   $as_echo_n "(cached) " >&6
14797 else
14798   lt_cv_prog_compiler_c_o=no
14799    $RM -r conftest 2>/dev/null
14800    mkdir conftest
14801    cd conftest
14802    mkdir out
14803    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14804
14805    lt_compiler_flag="-o out/conftest2.$ac_objext"
14806    # Insert the option either (1) after the last *FLAGS variable, or
14807    # (2) before a word containing "conftest.", or (3) at the end.
14808    # Note that $ac_compile itself does not contain backslashes and begins
14809    # with a dollar sign (not a hyphen), so the echo should work correctly.
14810    lt_compile=`echo "$ac_compile" | $SED \
14811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14813    -e 's:$: $lt_compiler_flag:'`
14814    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14815    (eval "$lt_compile" 2>out/conftest.err)
14816    ac_status=$?
14817    cat out/conftest.err >&5
14818    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14820    then
14821      # The compiler can only warn and ignore the option if not recognized
14822      # So say no if there are warnings
14823      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14824      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14825      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14826        lt_cv_prog_compiler_c_o=yes
14827      fi
14828    fi
14829    chmod u+w . 2>&5
14830    $RM conftest*
14831    # SGI C++ compiler will create directory out/ii_files/ for
14832    # template instantiation
14833    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14834    $RM out/* && rmdir out
14835    cd ..
14836    $RM -r conftest
14837    $RM conftest*
14838
14839 fi
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14841 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14842
14843
14844
14845
14846 hard_links="nottested"
14847 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14848   # do not overwrite the value of need_locks provided by the user
14849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14850 $as_echo_n "checking if we can lock with hard links... " >&6; }
14851   hard_links=yes
14852   $RM conftest*
14853   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14854   touch conftest.a
14855   ln conftest.a conftest.b 2>&5 || hard_links=no
14856   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14858 $as_echo "$hard_links" >&6; }
14859   if test "$hard_links" = no; then
14860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14861 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14862     need_locks=warn
14863   fi
14864 else
14865   need_locks=no
14866 fi
14867
14868
14869
14870
14871
14872
14873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14875
14876   runpath_var=
14877   allow_undefined_flag=
14878   always_export_symbols=no
14879   archive_cmds=
14880   archive_expsym_cmds=
14881   compiler_needs_object=no
14882   enable_shared_with_static_runtimes=no
14883   export_dynamic_flag_spec=
14884   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14885   hardcode_automatic=no
14886   hardcode_direct=no
14887   hardcode_direct_absolute=no
14888   hardcode_libdir_flag_spec=
14889   hardcode_libdir_flag_spec_ld=
14890   hardcode_libdir_separator=
14891   hardcode_minus_L=no
14892   hardcode_shlibpath_var=unsupported
14893   inherit_rpath=no
14894   link_all_deplibs=unknown
14895   module_cmds=
14896   module_expsym_cmds=
14897   old_archive_from_new_cmds=
14898   old_archive_from_expsyms_cmds=
14899   thread_safe_flag_spec=
14900   whole_archive_flag_spec=
14901   # include_expsyms should be a list of space-separated symbols to be *always*
14902   # included in the symbol list
14903   include_expsyms=
14904   # exclude_expsyms can be an extended regexp of symbols to exclude
14905   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14906   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14907   # as well as any symbol that contains `d'.
14908   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14909   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14910   # platforms (ab)use it in PIC code, but their linkers get confused if
14911   # the symbol is explicitly referenced.  Since portable code cannot
14912   # rely on this symbol name, it's probably fine to never include it in
14913   # preloaded symbol tables.
14914   # Exclude shared library initialization/finalization symbols.
14915   extract_expsyms_cmds=
14916
14917   case $host_os in
14918   cygwin* | mingw* | pw32* | cegcc*)
14919     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14920     # When not using gcc, we currently assume that we are using
14921     # Microsoft Visual C++.
14922     if test "$GCC" != yes; then
14923       with_gnu_ld=no
14924     fi
14925     ;;
14926   interix*)
14927     # we just hope/assume this is gcc and not c89 (= MSVC++)
14928     with_gnu_ld=yes
14929     ;;
14930   openbsd*)
14931     with_gnu_ld=no
14932     ;;
14933   esac
14934
14935   ld_shlibs=yes
14936
14937   # On some targets, GNU ld is compatible enough with the native linker
14938   # that we're better off using the native interface for both.
14939   lt_use_gnu_ld_interface=no
14940   if test "$with_gnu_ld" = yes; then
14941     case $host_os in
14942       aix*)
14943         # The AIX port of GNU ld has always aspired to compatibility
14944         # with the native linker.  However, as the warning in the GNU ld
14945         # block says, versions before 2.19.5* couldn't really create working
14946         # shared libraries, regardless of the interface used.
14947         case `$LD -v 2>&1` in
14948           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14949           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14950           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14951           *)
14952             lt_use_gnu_ld_interface=yes
14953             ;;
14954         esac
14955         ;;
14956       *)
14957         lt_use_gnu_ld_interface=yes
14958         ;;
14959     esac
14960   fi
14961
14962   if test "$lt_use_gnu_ld_interface" = yes; then
14963     # If archive_cmds runs LD, not CC, wlarc should be empty
14964     wlarc='${wl}'
14965
14966     # Set some defaults for GNU ld with shared library support. These
14967     # are reset later if shared libraries are not supported. Putting them
14968     # here allows them to be overridden if necessary.
14969     runpath_var=LD_RUN_PATH
14970     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14971     export_dynamic_flag_spec='${wl}--export-dynamic'
14972     # ancient GNU ld didn't support --whole-archive et. al.
14973     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14974       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14975     else
14976       whole_archive_flag_spec=
14977     fi
14978     supports_anon_versioning=no
14979     case `$LD -v 2>&1` in
14980       *GNU\ gold*) supports_anon_versioning=yes ;;
14981       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14982       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14983       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14984       *\ 2.11.*) ;; # other 2.11 versions
14985       *) supports_anon_versioning=yes ;;
14986     esac
14987
14988     # See if GNU ld supports shared libraries.
14989     case $host_os in
14990     aix[3-9]*)
14991       # On AIX/PPC, the GNU linker is very broken
14992       if test "$host_cpu" != ia64; then
14993         ld_shlibs=no
14994         cat <<_LT_EOF 1>&2
14995
14996 *** Warning: the GNU linker, at least up to release 2.19, is reported
14997 *** to be unable to reliably create shared libraries on AIX.
14998 *** Therefore, libtool is disabling shared libraries support.  If you
14999 *** really care for shared libraries, you may want to install binutils
15000 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15001 *** You will then need to restart the configuration process.
15002
15003 _LT_EOF
15004       fi
15005       ;;
15006
15007     amigaos*)
15008       case $host_cpu in
15009       powerpc)
15010             # see comment about AmigaOS4 .so support
15011             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012             archive_expsym_cmds=''
15013         ;;
15014       m68k)
15015             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)'
15016             hardcode_libdir_flag_spec='-L$libdir'
15017             hardcode_minus_L=yes
15018         ;;
15019       esac
15020       ;;
15021
15022     beos*)
15023       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15024         allow_undefined_flag=unsupported
15025         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15026         # support --undefined.  This deserves some investigation.  FIXME
15027         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15028       else
15029         ld_shlibs=no
15030       fi
15031       ;;
15032
15033     cygwin* | mingw* | pw32* | cegcc*)
15034       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15035       # as there is no search path for DLLs.
15036       hardcode_libdir_flag_spec='-L$libdir'
15037       export_dynamic_flag_spec='${wl}--export-all-symbols'
15038       allow_undefined_flag=unsupported
15039       always_export_symbols=no
15040       enable_shared_with_static_runtimes=yes
15041       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15042
15043       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15044         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15045         # If the export-symbols file already is a .def file (1st line
15046         # is EXPORTS), use it as is; otherwise, prepend...
15047         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15048           cp $export_symbols $output_objdir/$soname.def;
15049         else
15050           echo EXPORTS > $output_objdir/$soname.def;
15051           cat $export_symbols >> $output_objdir/$soname.def;
15052         fi~
15053         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15054       else
15055         ld_shlibs=no
15056       fi
15057       ;;
15058
15059     haiku*)
15060       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061       link_all_deplibs=yes
15062       ;;
15063
15064     interix[3-9]*)
15065       hardcode_direct=no
15066       hardcode_shlibpath_var=no
15067       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15068       export_dynamic_flag_spec='${wl}-E'
15069       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15070       # Instead, shared libraries are loaded at an image base (0x10000000 by
15071       # default) and relocated if they conflict, which is a slow very memory
15072       # consuming and fragmenting process.  To avoid this, we pick a random,
15073       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15074       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15075       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15076       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'
15077       ;;
15078
15079     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15080       tmp_diet=no
15081       if test "$host_os" = linux-dietlibc; then
15082         case $cc_basename in
15083           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15084         esac
15085       fi
15086       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15087          && test "$tmp_diet" = no
15088       then
15089         tmp_addflag=
15090         tmp_sharedflag='-shared'
15091         case $cc_basename,$host_cpu in
15092         pgcc*)                          # Portland Group C compiler
15093           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'
15094           tmp_addflag=' $pic_flag'
15095           ;;
15096         pgf77* | pgf90* | pgf95* | pgfortran*)
15097                                         # Portland Group f77 and f90 compilers
15098           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'
15099           tmp_addflag=' $pic_flag -Mnomain' ;;
15100         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15101           tmp_addflag=' -i_dynamic' ;;
15102         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15103           tmp_addflag=' -i_dynamic -nofor_main' ;;
15104         ifc* | ifort*)                  # Intel Fortran compiler
15105           tmp_addflag=' -nofor_main' ;;
15106         lf95*)                          # Lahey Fortran 8.1
15107           whole_archive_flag_spec=
15108           tmp_sharedflag='--shared' ;;
15109         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15110           tmp_sharedflag='-qmkshrobj'
15111           tmp_addflag= ;;
15112         nvcc*)  # Cuda Compiler Driver 2.2
15113           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'
15114           compiler_needs_object=yes
15115           ;;
15116         esac
15117         case `$CC -V 2>&1 | sed 5q` in
15118         *Sun\ C*)                       # Sun C 5.9
15119           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'
15120           compiler_needs_object=yes
15121           tmp_sharedflag='-G' ;;
15122         *Sun\ F*)                       # Sun Fortran 8.3
15123           tmp_sharedflag='-G' ;;
15124         esac
15125         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15126
15127         if test "x$supports_anon_versioning" = xyes; then
15128           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15129             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15130             echo "local: *; };" >> $output_objdir/$libname.ver~
15131             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15132         fi
15133
15134         case $cc_basename in
15135         xlf* | bgf* | bgxlf* | mpixlf*)
15136           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15137           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15138           hardcode_libdir_flag_spec=
15139           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15140           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15141           if test "x$supports_anon_versioning" = xyes; then
15142             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15143               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15144               echo "local: *; };" >> $output_objdir/$libname.ver~
15145               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15146           fi
15147           ;;
15148         esac
15149       else
15150         ld_shlibs=no
15151       fi
15152       ;;
15153
15154     netbsd*)
15155       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15156         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15157         wlarc=
15158       else
15159         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15160         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15161       fi
15162       ;;
15163
15164     solaris*)
15165       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15166         ld_shlibs=no
15167         cat <<_LT_EOF 1>&2
15168
15169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15170 *** create shared libraries on Solaris systems.  Therefore, libtool
15171 *** is disabling shared libraries support.  We urge you to upgrade GNU
15172 *** binutils to release 2.9.1 or newer.  Another option is to modify
15173 *** your PATH or compiler configuration so that the native linker is
15174 *** used, and then restart.
15175
15176 _LT_EOF
15177       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15178         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15180       else
15181         ld_shlibs=no
15182       fi
15183       ;;
15184
15185     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15186       case `$LD -v 2>&1` in
15187         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15188         ld_shlibs=no
15189         cat <<_LT_EOF 1>&2
15190
15191 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15192 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15193 *** is disabling shared libraries support.  We urge you to upgrade GNU
15194 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15195 *** your PATH or compiler configuration so that the native linker is
15196 *** used, and then restart.
15197
15198 _LT_EOF
15199         ;;
15200         *)
15201           # For security reasons, it is highly recommended that you always
15202           # use absolute paths for naming shared libraries, and exclude the
15203           # DT_RUNPATH tag from executables and libraries.  But doing so
15204           # requires that you compile everything twice, which is a pain.
15205           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15206             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15207             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15209           else
15210             ld_shlibs=no
15211           fi
15212         ;;
15213       esac
15214       ;;
15215
15216     sunos4*)
15217       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15218       wlarc=
15219       hardcode_direct=yes
15220       hardcode_shlibpath_var=no
15221       ;;
15222
15223     *)
15224       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15225         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15226         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15227       else
15228         ld_shlibs=no
15229       fi
15230       ;;
15231     esac
15232
15233     if test "$ld_shlibs" = no; then
15234       runpath_var=
15235       hardcode_libdir_flag_spec=
15236       export_dynamic_flag_spec=
15237       whole_archive_flag_spec=
15238     fi
15239   else
15240     # PORTME fill in a description of your system's linker (not GNU ld)
15241     case $host_os in
15242     aix3*)
15243       allow_undefined_flag=unsupported
15244       always_export_symbols=yes
15245       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'
15246       # Note: this linker hardcodes the directories in LIBPATH if there
15247       # are no directories specified by -L.
15248       hardcode_minus_L=yes
15249       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15250         # Neither direct hardcoding nor static linking is supported with a
15251         # broken collect2.
15252         hardcode_direct=unsupported
15253       fi
15254       ;;
15255
15256     aix[4-9]*)
15257       if test "$host_cpu" = ia64; then
15258         # On IA64, the linker does run time linking by default, so we don't
15259         # have to do anything special.
15260         aix_use_runtimelinking=no
15261         exp_sym_flag='-Bexport'
15262         no_entry_flag=""
15263       else
15264         # If we're using GNU nm, then we don't want the "-C" option.
15265         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15266         # Also, AIX nm treats weak defined symbols like other global
15267         # defined symbols, whereas GNU nm marks them as "W".
15268         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15269           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'
15270         else
15271           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'
15272         fi
15273         aix_use_runtimelinking=no
15274
15275         # Test if we are trying to use run time linking or normal
15276         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15277         # need to do runtime linking.
15278         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15279           for ld_flag in $LDFLAGS; do
15280           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15281             aix_use_runtimelinking=yes
15282             break
15283           fi
15284           done
15285           ;;
15286         esac
15287
15288         exp_sym_flag='-bexport'
15289         no_entry_flag='-bnoentry'
15290       fi
15291
15292       # When large executables or shared objects are built, AIX ld can
15293       # have problems creating the table of contents.  If linking a library
15294       # or program results in "error TOC overflow" add -mminimal-toc to
15295       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15296       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15297
15298       archive_cmds=''
15299       hardcode_direct=yes
15300       hardcode_direct_absolute=yes
15301       hardcode_libdir_separator=':'
15302       link_all_deplibs=yes
15303       file_list_spec='${wl}-f,'
15304
15305       if test "$GCC" = yes; then
15306         case $host_os in aix4.[012]|aix4.[012].*)
15307         # We only want to do this on AIX 4.2 and lower, the check
15308         # below for broken collect2 doesn't work under 4.3+
15309           collect2name=`${CC} -print-prog-name=collect2`
15310           if test -f "$collect2name" &&
15311            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15312           then
15313           # We have reworked collect2
15314           :
15315           else
15316           # We have old collect2
15317           hardcode_direct=unsupported
15318           # It fails to find uninstalled libraries when the uninstalled
15319           # path is not listed in the libpath.  Setting hardcode_minus_L
15320           # to unsupported forces relinking
15321           hardcode_minus_L=yes
15322           hardcode_libdir_flag_spec='-L$libdir'
15323           hardcode_libdir_separator=
15324           fi
15325           ;;
15326         esac
15327         shared_flag='-shared'
15328         if test "$aix_use_runtimelinking" = yes; then
15329           shared_flag="$shared_flag "'${wl}-G'
15330         fi
15331       else
15332         # not using gcc
15333         if test "$host_cpu" = ia64; then
15334         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15335         # chokes on -Wl,-G. The following line is correct:
15336           shared_flag='-G'
15337         else
15338           if test "$aix_use_runtimelinking" = yes; then
15339             shared_flag='${wl}-G'
15340           else
15341             shared_flag='${wl}-bM:SRE'
15342           fi
15343         fi
15344       fi
15345
15346       export_dynamic_flag_spec='${wl}-bexpall'
15347       # It seems that -bexpall does not export symbols beginning with
15348       # underscore (_), so it is better to generate a list of symbols to export.
15349       always_export_symbols=yes
15350       if test "$aix_use_runtimelinking" = yes; then
15351         # Warning - without using the other runtime loading flags (-brtl),
15352         # -berok will link without error, but may produce a broken library.
15353         allow_undefined_flag='-berok'
15354         # Determine the default libpath from the value encoded in an
15355         # empty executable.
15356         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h.  */
15358
15359 int
15360 main ()
15361 {
15362
15363   ;
15364   return 0;
15365 }
15366 _ACEOF
15367 if ac_fn_c_try_link "$LINENO"; then :
15368
15369 lt_aix_libpath_sed='
15370     /Import File Strings/,/^$/ {
15371         /^0/ {
15372             s/^0  *\(.*\)$/\1/
15373             p
15374         }
15375     }'
15376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15377 # Check for a 64-bit object if we didn't find anything.
15378 if test -z "$aix_libpath"; then
15379   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15380 fi
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext \
15383     conftest$ac_exeext conftest.$ac_ext
15384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15385
15386         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15387         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"
15388       else
15389         if test "$host_cpu" = ia64; then
15390           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15391           allow_undefined_flag="-z nodefs"
15392           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"
15393         else
15394          # Determine the default libpath from the value encoded in an
15395          # empty executable.
15396          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h.  */
15398
15399 int
15400 main ()
15401 {
15402
15403   ;
15404   return 0;
15405 }
15406 _ACEOF
15407 if ac_fn_c_try_link "$LINENO"; then :
15408
15409 lt_aix_libpath_sed='
15410     /Import File Strings/,/^$/ {
15411         /^0/ {
15412             s/^0  *\(.*\)$/\1/
15413             p
15414         }
15415     }'
15416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15417 # Check for a 64-bit object if we didn't find anything.
15418 if test -z "$aix_libpath"; then
15419   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15420 fi
15421 fi
15422 rm -f core conftest.err conftest.$ac_objext \
15423     conftest$ac_exeext conftest.$ac_ext
15424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15425
15426          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15427           # Warning - without using the other run time loading flags,
15428           # -berok will link without error, but may produce a broken library.
15429           no_undefined_flag=' ${wl}-bernotok'
15430           allow_undefined_flag=' ${wl}-berok'
15431           if test "$with_gnu_ld" = yes; then
15432             # We only use this code for GNU lds that support --whole-archive.
15433             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15434           else
15435             # Exported symbols can be pulled into shared objects from archives
15436             whole_archive_flag_spec='$convenience'
15437           fi
15438           archive_cmds_need_lc=yes
15439           # This is similar to how AIX traditionally builds its shared libraries.
15440           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'
15441         fi
15442       fi
15443       ;;
15444
15445     amigaos*)
15446       case $host_cpu in
15447       powerpc)
15448             # see comment about AmigaOS4 .so support
15449             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15450             archive_expsym_cmds=''
15451         ;;
15452       m68k)
15453             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)'
15454             hardcode_libdir_flag_spec='-L$libdir'
15455             hardcode_minus_L=yes
15456         ;;
15457       esac
15458       ;;
15459
15460     bsdi[45]*)
15461       export_dynamic_flag_spec=-rdynamic
15462       ;;
15463
15464     cygwin* | mingw* | pw32* | cegcc*)
15465       # When not using gcc, we currently assume that we are using
15466       # Microsoft Visual C++.
15467       # hardcode_libdir_flag_spec is actually meaningless, as there is
15468       # no search path for DLLs.
15469       hardcode_libdir_flag_spec=' '
15470       allow_undefined_flag=unsupported
15471       # Tell ltmain to make .lib files, not .a files.
15472       libext=lib
15473       # Tell ltmain to make .dll files, not .so files.
15474       shrext_cmds=".dll"
15475       # FIXME: Setting linknames here is a bad hack.
15476       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15477       # The linker will automatically build a .lib file if we build a DLL.
15478       old_archive_from_new_cmds='true'
15479       # FIXME: Should let the user specify the lib program.
15480       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15481       fix_srcfile_path='`cygpath -w "$srcfile"`'
15482       enable_shared_with_static_runtimes=yes
15483       ;;
15484
15485     darwin* | rhapsody*)
15486
15487
15488   archive_cmds_need_lc=no
15489   hardcode_direct=no
15490   hardcode_automatic=yes
15491   hardcode_shlibpath_var=unsupported
15492   if test "$lt_cv_ld_force_load" = "yes"; then
15493     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\"`'
15494   else
15495     whole_archive_flag_spec=''
15496   fi
15497   link_all_deplibs=yes
15498   allow_undefined_flag="$_lt_dar_allow_undefined"
15499   case $cc_basename in
15500      ifort*) _lt_dar_can_shared=yes ;;
15501      *) _lt_dar_can_shared=$GCC ;;
15502   esac
15503   if test "$_lt_dar_can_shared" = "yes"; then
15504     output_verbose_link_cmd=func_echo_all
15505     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15506     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15507     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}"
15508     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}"
15509
15510   else
15511   ld_shlibs=no
15512   fi
15513
15514       ;;
15515
15516     dgux*)
15517       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15518       hardcode_libdir_flag_spec='-L$libdir'
15519       hardcode_shlibpath_var=no
15520       ;;
15521
15522     freebsd1*)
15523       ld_shlibs=no
15524       ;;
15525
15526     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15527     # support.  Future versions do this automatically, but an explicit c++rt0.o
15528     # does not break anything, and helps significantly (at the cost of a little
15529     # extra space).
15530     freebsd2.2*)
15531       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15532       hardcode_libdir_flag_spec='-R$libdir'
15533       hardcode_direct=yes
15534       hardcode_shlibpath_var=no
15535       ;;
15536
15537     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15538     freebsd2*)
15539       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15540       hardcode_direct=yes
15541       hardcode_minus_L=yes
15542       hardcode_shlibpath_var=no
15543       ;;
15544
15545     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15546     freebsd* | dragonfly*)
15547       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15548       hardcode_libdir_flag_spec='-R$libdir'
15549       hardcode_direct=yes
15550       hardcode_shlibpath_var=no
15551       ;;
15552
15553     hpux9*)
15554       if test "$GCC" = yes; then
15555         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'
15556       else
15557         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'
15558       fi
15559       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15560       hardcode_libdir_separator=:
15561       hardcode_direct=yes
15562
15563       # hardcode_minus_L: Not really in the search PATH,
15564       # but as the default location of the library.
15565       hardcode_minus_L=yes
15566       export_dynamic_flag_spec='${wl}-E'
15567       ;;
15568
15569     hpux10*)
15570       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15571         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15572       else
15573         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15574       fi
15575       if test "$with_gnu_ld" = no; then
15576         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15577         hardcode_libdir_flag_spec_ld='+b $libdir'
15578         hardcode_libdir_separator=:
15579         hardcode_direct=yes
15580         hardcode_direct_absolute=yes
15581         export_dynamic_flag_spec='${wl}-E'
15582         # hardcode_minus_L: Not really in the search PATH,
15583         # but as the default location of the library.
15584         hardcode_minus_L=yes
15585       fi
15586       ;;
15587
15588     hpux11*)
15589       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15590         case $host_cpu in
15591         hppa*64*)
15592           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593           ;;
15594         ia64*)
15595           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15596           ;;
15597         *)
15598           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15599           ;;
15600         esac
15601       else
15602         case $host_cpu in
15603         hppa*64*)
15604           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605           ;;
15606         ia64*)
15607           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15608           ;;
15609         *)
15610
15611           # Older versions of the 11.00 compiler do not understand -b yet
15612           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15613           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15614 $as_echo_n "checking if $CC understands -b... " >&6; }
15615 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15616   $as_echo_n "(cached) " >&6
15617 else
15618   lt_cv_prog_compiler__b=no
15619    save_LDFLAGS="$LDFLAGS"
15620    LDFLAGS="$LDFLAGS -b"
15621    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15622    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15623      # The linker can only warn and ignore the option if not recognized
15624      # So say no if there are warnings
15625      if test -s conftest.err; then
15626        # Append any errors to the config.log.
15627        cat conftest.err 1>&5
15628        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15629        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15630        if diff conftest.exp conftest.er2 >/dev/null; then
15631          lt_cv_prog_compiler__b=yes
15632        fi
15633      else
15634        lt_cv_prog_compiler__b=yes
15635      fi
15636    fi
15637    $RM -r conftest*
15638    LDFLAGS="$save_LDFLAGS"
15639
15640 fi
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15642 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15643
15644 if test x"$lt_cv_prog_compiler__b" = xyes; then
15645     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15646 else
15647     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15648 fi
15649
15650           ;;
15651         esac
15652       fi
15653       if test "$with_gnu_ld" = no; then
15654         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15655         hardcode_libdir_separator=:
15656
15657         case $host_cpu in
15658         hppa*64*|ia64*)
15659           hardcode_direct=no
15660           hardcode_shlibpath_var=no
15661           ;;
15662         *)
15663           hardcode_direct=yes
15664           hardcode_direct_absolute=yes
15665           export_dynamic_flag_spec='${wl}-E'
15666
15667           # hardcode_minus_L: Not really in the search PATH,
15668           # but as the default location of the library.
15669           hardcode_minus_L=yes
15670           ;;
15671         esac
15672       fi
15673       ;;
15674
15675     irix5* | irix6* | nonstopux*)
15676       if test "$GCC" = yes; then
15677         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'
15678         # Try to use the -exported_symbol ld option, if it does not
15679         # work, assume that -exports_file does not work either and
15680         # implicitly export all symbols.
15681         save_LDFLAGS="$LDFLAGS"
15682         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15683         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h.  */
15685 int foo(void) {}
15686 _ACEOF
15687 if ac_fn_c_try_link "$LINENO"; then :
15688   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'
15689
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext \
15692     conftest$ac_exeext conftest.$ac_ext
15693         LDFLAGS="$save_LDFLAGS"
15694       else
15695         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'
15696         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'
15697       fi
15698       archive_cmds_need_lc='no'
15699       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15700       hardcode_libdir_separator=:
15701       inherit_rpath=yes
15702       link_all_deplibs=yes
15703       ;;
15704
15705     netbsd*)
15706       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15707         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15708       else
15709         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15710       fi
15711       hardcode_libdir_flag_spec='-R$libdir'
15712       hardcode_direct=yes
15713       hardcode_shlibpath_var=no
15714       ;;
15715
15716     newsos6)
15717       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15718       hardcode_direct=yes
15719       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15720       hardcode_libdir_separator=:
15721       hardcode_shlibpath_var=no
15722       ;;
15723
15724     *nto* | *qnx*)
15725       ;;
15726
15727     openbsd*)
15728       if test -f /usr/libexec/ld.so; then
15729         hardcode_direct=yes
15730         hardcode_shlibpath_var=no
15731         hardcode_direct_absolute=yes
15732         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15733           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15734           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15735           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15736           export_dynamic_flag_spec='${wl}-E'
15737         else
15738           case $host_os in
15739            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15740              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15741              hardcode_libdir_flag_spec='-R$libdir'
15742              ;;
15743            *)
15744              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15745              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15746              ;;
15747           esac
15748         fi
15749       else
15750         ld_shlibs=no
15751       fi
15752       ;;
15753
15754     os2*)
15755       hardcode_libdir_flag_spec='-L$libdir'
15756       hardcode_minus_L=yes
15757       allow_undefined_flag=unsupported
15758       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'
15759       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15760       ;;
15761
15762     osf3*)
15763       if test "$GCC" = yes; then
15764         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15765         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'
15766       else
15767         allow_undefined_flag=' -expect_unresolved \*'
15768         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'
15769       fi
15770       archive_cmds_need_lc='no'
15771       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15772       hardcode_libdir_separator=:
15773       ;;
15774
15775     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15776       if test "$GCC" = yes; then
15777         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15778         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'
15779         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15780       else
15781         allow_undefined_flag=' -expect_unresolved \*'
15782         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'
15783         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~
15784         $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'
15785
15786         # Both c and cxx compiler support -rpath directly
15787         hardcode_libdir_flag_spec='-rpath $libdir'
15788       fi
15789       archive_cmds_need_lc='no'
15790       hardcode_libdir_separator=:
15791       ;;
15792
15793     solaris*)
15794       no_undefined_flag=' -z defs'
15795       if test "$GCC" = yes; then
15796         wlarc='${wl}'
15797         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15798         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15799           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15800       else
15801         case `$CC -V 2>&1` in
15802         *"Compilers 5.0"*)
15803           wlarc=''
15804           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15805           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15806           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15807           ;;
15808         *)
15809           wlarc='${wl}'
15810           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15811           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15812           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15813           ;;
15814         esac
15815       fi
15816       hardcode_libdir_flag_spec='-R$libdir'
15817       hardcode_shlibpath_var=no
15818       case $host_os in
15819       solaris2.[0-5] | solaris2.[0-5].*) ;;
15820       *)
15821         # The compiler driver will combine and reorder linker options,
15822         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15823         # but is careful enough not to reorder.
15824         # Supported since Solaris 2.6 (maybe 2.5.1?)
15825         if test "$GCC" = yes; then
15826           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15827         else
15828           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15829         fi
15830         ;;
15831       esac
15832       link_all_deplibs=yes
15833       ;;
15834
15835     sunos4*)
15836       if test "x$host_vendor" = xsequent; then
15837         # Use $CC to link under sequent, because it throws in some extra .o
15838         # files that make .init and .fini sections work.
15839         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15840       else
15841         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15842       fi
15843       hardcode_libdir_flag_spec='-L$libdir'
15844       hardcode_direct=yes
15845       hardcode_minus_L=yes
15846       hardcode_shlibpath_var=no
15847       ;;
15848
15849     sysv4)
15850       case $host_vendor in
15851         sni)
15852           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15853           hardcode_direct=yes # is this really true???
15854         ;;
15855         siemens)
15856           ## LD is ld it makes a PLAMLIB
15857           ## CC just makes a GrossModule.
15858           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15859           reload_cmds='$CC -r -o $output$reload_objs'
15860           hardcode_direct=no
15861         ;;
15862         motorola)
15863           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15864           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15865         ;;
15866       esac
15867       runpath_var='LD_RUN_PATH'
15868       hardcode_shlibpath_var=no
15869       ;;
15870
15871     sysv4.3*)
15872       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15873       hardcode_shlibpath_var=no
15874       export_dynamic_flag_spec='-Bexport'
15875       ;;
15876
15877     sysv4*MP*)
15878       if test -d /usr/nec; then
15879         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15880         hardcode_shlibpath_var=no
15881         runpath_var=LD_RUN_PATH
15882         hardcode_runpath_var=yes
15883         ld_shlibs=yes
15884       fi
15885       ;;
15886
15887     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15888       no_undefined_flag='${wl}-z,text'
15889       archive_cmds_need_lc=no
15890       hardcode_shlibpath_var=no
15891       runpath_var='LD_RUN_PATH'
15892
15893       if test "$GCC" = yes; then
15894         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15895         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15896       else
15897         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15898         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899       fi
15900       ;;
15901
15902     sysv5* | sco3.2v5* | sco5v6*)
15903       # Note: We can NOT use -z defs as we might desire, because we do not
15904       # link with -lc, and that would cause any symbols used from libc to
15905       # always be unresolved, which means just about no library would
15906       # ever link correctly.  If we're not using GNU ld we use -z text
15907       # though, which does catch some bad symbols but isn't as heavy-handed
15908       # as -z defs.
15909       no_undefined_flag='${wl}-z,text'
15910       allow_undefined_flag='${wl}-z,nodefs'
15911       archive_cmds_need_lc=no
15912       hardcode_shlibpath_var=no
15913       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15914       hardcode_libdir_separator=':'
15915       link_all_deplibs=yes
15916       export_dynamic_flag_spec='${wl}-Bexport'
15917       runpath_var='LD_RUN_PATH'
15918
15919       if test "$GCC" = yes; then
15920         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15921         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15922       else
15923         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15924         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15925       fi
15926       ;;
15927
15928     uts4*)
15929       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15930       hardcode_libdir_flag_spec='-L$libdir'
15931       hardcode_shlibpath_var=no
15932       ;;
15933
15934     *)
15935       ld_shlibs=no
15936       ;;
15937     esac
15938
15939     if test x$host_vendor = xsni; then
15940       case $host in
15941       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15942         export_dynamic_flag_spec='${wl}-Blargedynsym'
15943         ;;
15944       esac
15945     fi
15946   fi
15947
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15949 $as_echo "$ld_shlibs" >&6; }
15950 test "$ld_shlibs" = no && can_build_shared=no
15951
15952 with_gnu_ld=$with_gnu_ld
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968 #
15969 # Do we need to explicitly link libc?
15970 #
15971 case "x$archive_cmds_need_lc" in
15972 x|xyes)
15973   # Assume -lc should be added
15974   archive_cmds_need_lc=yes
15975
15976   if test "$enable_shared" = yes && test "$GCC" = yes; then
15977     case $archive_cmds in
15978     *'~'*)
15979       # FIXME: we may have to deal with multi-command sequences.
15980       ;;
15981     '$CC '*)
15982       # Test whether the compiler implicitly links with -lc since on some
15983       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15984       # to ld, don't add -lc before -lgcc.
15985       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15986 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15987 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15988   $as_echo_n "(cached) " >&6
15989 else
15990   $RM conftest*
15991         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15992
15993         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15994   (eval $ac_compile) 2>&5
15995   ac_status=$?
15996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997   test $ac_status = 0; } 2>conftest.err; then
15998           soname=conftest
15999           lib=conftest
16000           libobjs=conftest.$ac_objext
16001           deplibs=
16002           wl=$lt_prog_compiler_wl
16003           pic_flag=$lt_prog_compiler_pic
16004           compiler_flags=-v
16005           linker_flags=-v
16006           verstring=
16007           output_objdir=.
16008           libname=conftest
16009           lt_save_allow_undefined_flag=$allow_undefined_flag
16010           allow_undefined_flag=
16011           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16012   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16013   ac_status=$?
16014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16015   test $ac_status = 0; }
16016           then
16017             lt_cv_archive_cmds_need_lc=no
16018           else
16019             lt_cv_archive_cmds_need_lc=yes
16020           fi
16021           allow_undefined_flag=$lt_save_allow_undefined_flag
16022         else
16023           cat conftest.err 1>&5
16024         fi
16025         $RM conftest*
16026
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16029 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16030       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16031       ;;
16032     esac
16033   fi
16034   ;;
16035 esac
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16194 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16195
16196 if test "$GCC" = yes; then
16197   case $host_os in
16198     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16199     *) lt_awk_arg="/^libraries:/" ;;
16200   esac
16201   case $host_os in
16202     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16203     *) lt_sed_strip_eq="s,=/,/,g" ;;
16204   esac
16205   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16206   case $lt_search_path_spec in
16207   *\;*)
16208     # if the path contains ";" then we assume it to be the separator
16209     # otherwise default to the standard path separator (i.e. ":") - it is
16210     # assumed that no part of a normal pathname contains ";" but that should
16211     # okay in the real world where ";" in dirpaths is itself problematic.
16212     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16213     ;;
16214   *)
16215     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16216     ;;
16217   esac
16218   # Ok, now we have the path, separated by spaces, we can step through it
16219   # and add multilib dir if necessary.
16220   lt_tmp_lt_search_path_spec=
16221   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16222   for lt_sys_path in $lt_search_path_spec; do
16223     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16224       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16225     else
16226       test -d "$lt_sys_path" && \
16227         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16228     fi
16229   done
16230   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16231 BEGIN {RS=" "; FS="/|\n";} {
16232   lt_foo="";
16233   lt_count=0;
16234   for (lt_i = NF; lt_i > 0; lt_i--) {
16235     if ($lt_i != "" && $lt_i != ".") {
16236       if ($lt_i == "..") {
16237         lt_count++;
16238       } else {
16239         if (lt_count == 0) {
16240           lt_foo="/" $lt_i lt_foo;
16241         } else {
16242           lt_count--;
16243         }
16244       }
16245     }
16246   }
16247   if (lt_foo != "") { lt_freq[lt_foo]++; }
16248   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16249 }'`
16250   # AWK program above erroneously prepends '/' to C:/dos/paths
16251   # for these hosts.
16252   case $host_os in
16253     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16254       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16255   esac
16256   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16257 else
16258   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16259 fi
16260 library_names_spec=
16261 libname_spec='lib$name'
16262 soname_spec=
16263 shrext_cmds=".so"
16264 postinstall_cmds=
16265 postuninstall_cmds=
16266 finish_cmds=
16267 finish_eval=
16268 shlibpath_var=
16269 shlibpath_overrides_runpath=unknown
16270 version_type=none
16271 dynamic_linker="$host_os ld.so"
16272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16273 need_lib_prefix=unknown
16274 hardcode_into_libs=no
16275
16276 # when you set need_version to no, make sure it does not cause -set_version
16277 # flags to be left without arguments
16278 need_version=unknown
16279
16280 case $host_os in
16281 aix3*)
16282   version_type=linux
16283   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16284   shlibpath_var=LIBPATH
16285
16286   # AIX 3 has no versioning support, so we append a major version to the name.
16287   soname_spec='${libname}${release}${shared_ext}$major'
16288   ;;
16289
16290 aix[4-9]*)
16291   version_type=linux
16292   need_lib_prefix=no
16293   need_version=no
16294   hardcode_into_libs=yes
16295   if test "$host_cpu" = ia64; then
16296     # AIX 5 supports IA64
16297     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16298     shlibpath_var=LD_LIBRARY_PATH
16299   else
16300     # With GCC up to 2.95.x, collect2 would create an import file
16301     # for dependence libraries.  The import file would start with
16302     # the line `#! .'.  This would cause the generated library to
16303     # depend on `.', always an invalid library.  This was fixed in
16304     # development snapshots of GCC prior to 3.0.
16305     case $host_os in
16306       aix4 | aix4.[01] | aix4.[01].*)
16307       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16308            echo ' yes '
16309            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16310         :
16311       else
16312         can_build_shared=no
16313       fi
16314       ;;
16315     esac
16316     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16317     # soname into executable. Probably we can add versioning support to
16318     # collect2, so additional links can be useful in future.
16319     if test "$aix_use_runtimelinking" = yes; then
16320       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16321       # instead of lib<name>.a to let people know that these are not
16322       # typical AIX shared libraries.
16323       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324     else
16325       # We preserve .a as extension for shared libraries through AIX4.2
16326       # and later when we are not doing run time linking.
16327       library_names_spec='${libname}${release}.a $libname.a'
16328       soname_spec='${libname}${release}${shared_ext}$major'
16329     fi
16330     shlibpath_var=LIBPATH
16331   fi
16332   ;;
16333
16334 amigaos*)
16335   case $host_cpu in
16336   powerpc)
16337     # Since July 2007 AmigaOS4 officially supports .so libraries.
16338     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340     ;;
16341   m68k)
16342     library_names_spec='$libname.ixlibrary $libname.a'
16343     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16344     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'
16345     ;;
16346   esac
16347   ;;
16348
16349 beos*)
16350   library_names_spec='${libname}${shared_ext}'
16351   dynamic_linker="$host_os ld.so"
16352   shlibpath_var=LIBRARY_PATH
16353   ;;
16354
16355 bsdi[45]*)
16356   version_type=linux
16357   need_version=no
16358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359   soname_spec='${libname}${release}${shared_ext}$major'
16360   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16361   shlibpath_var=LD_LIBRARY_PATH
16362   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16363   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16364   # the default ld.so.conf also contains /usr/contrib/lib and
16365   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16366   # libtool to hard-code these into programs
16367   ;;
16368
16369 cygwin* | mingw* | pw32* | cegcc*)
16370   version_type=windows
16371   shrext_cmds=".dll"
16372   need_version=no
16373   need_lib_prefix=no
16374
16375   case $GCC,$host_os in
16376   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16377     library_names_spec='$libname.dll.a'
16378     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16379     postinstall_cmds='base_file=`basename \${file}`~
16380       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16381       dldir=$destdir/`dirname \$dlpath`~
16382       test -d \$dldir || mkdir -p \$dldir~
16383       $install_prog $dir/$dlname \$dldir/$dlname~
16384       chmod a+x \$dldir/$dlname~
16385       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16386         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16387       fi'
16388     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16389       dlpath=$dir/\$dldll~
16390        $RM \$dlpath'
16391     shlibpath_overrides_runpath=yes
16392
16393     case $host_os in
16394     cygwin*)
16395       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16396       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16397
16398       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16399       ;;
16400     mingw* | cegcc*)
16401       # MinGW DLLs use traditional 'lib' prefix
16402       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16403       ;;
16404     pw32*)
16405       # pw32 DLLs use 'pw' prefix rather than 'lib'
16406       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16407       ;;
16408     esac
16409     ;;
16410
16411   *)
16412     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16413     ;;
16414   esac
16415   dynamic_linker='Win32 ld.exe'
16416   # FIXME: first we should search . and the directory the executable is in
16417   shlibpath_var=PATH
16418   ;;
16419
16420 darwin* | rhapsody*)
16421   dynamic_linker="$host_os dyld"
16422   version_type=darwin
16423   need_lib_prefix=no
16424   need_version=no
16425   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16426   soname_spec='${libname}${release}${major}$shared_ext'
16427   shlibpath_overrides_runpath=yes
16428   shlibpath_var=DYLD_LIBRARY_PATH
16429   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16430
16431   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16432   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16433   ;;
16434
16435 dgux*)
16436   version_type=linux
16437   need_lib_prefix=no
16438   need_version=no
16439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16440   soname_spec='${libname}${release}${shared_ext}$major'
16441   shlibpath_var=LD_LIBRARY_PATH
16442   ;;
16443
16444 freebsd1*)
16445   dynamic_linker=no
16446   ;;
16447
16448 freebsd* | dragonfly*)
16449   # DragonFly does not have aout.  When/if they implement a new
16450   # versioning mechanism, adjust this.
16451   if test -x /usr/bin/objformat; then
16452     objformat=`/usr/bin/objformat`
16453   else
16454     case $host_os in
16455     freebsd[123]*) objformat=aout ;;
16456     *) objformat=elf ;;
16457     esac
16458   fi
16459   version_type=freebsd-$objformat
16460   case $version_type in
16461     freebsd-elf*)
16462       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16463       need_version=no
16464       need_lib_prefix=no
16465       ;;
16466     freebsd-*)
16467       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16468       need_version=yes
16469       ;;
16470   esac
16471   shlibpath_var=LD_LIBRARY_PATH
16472   case $host_os in
16473   freebsd2*)
16474     shlibpath_overrides_runpath=yes
16475     ;;
16476   freebsd3.[01]* | freebsdelf3.[01]*)
16477     shlibpath_overrides_runpath=yes
16478     hardcode_into_libs=yes
16479     ;;
16480   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16481   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16482     shlibpath_overrides_runpath=no
16483     hardcode_into_libs=yes
16484     ;;
16485   *) # from 4.6 on, and DragonFly
16486     shlibpath_overrides_runpath=yes
16487     hardcode_into_libs=yes
16488     ;;
16489   esac
16490   ;;
16491
16492 gnu*)
16493   version_type=linux
16494   need_lib_prefix=no
16495   need_version=no
16496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16497   soname_spec='${libname}${release}${shared_ext}$major'
16498   shlibpath_var=LD_LIBRARY_PATH
16499   hardcode_into_libs=yes
16500   ;;
16501
16502 haiku*)
16503   version_type=linux
16504   need_lib_prefix=no
16505   need_version=no
16506   dynamic_linker="$host_os runtime_loader"
16507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16508   soname_spec='${libname}${release}${shared_ext}$major'
16509   shlibpath_var=LIBRARY_PATH
16510   shlibpath_overrides_runpath=yes
16511   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16512   hardcode_into_libs=yes
16513   ;;
16514
16515 hpux9* | hpux10* | hpux11*)
16516   # Give a soname corresponding to the major version so that dld.sl refuses to
16517   # link against other versions.
16518   version_type=sunos
16519   need_lib_prefix=no
16520   need_version=no
16521   case $host_cpu in
16522   ia64*)
16523     shrext_cmds='.so'
16524     hardcode_into_libs=yes
16525     dynamic_linker="$host_os dld.so"
16526     shlibpath_var=LD_LIBRARY_PATH
16527     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529     soname_spec='${libname}${release}${shared_ext}$major'
16530     if test "X$HPUX_IA64_MODE" = X32; then
16531       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16532     else
16533       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16534     fi
16535     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16536     ;;
16537   hppa*64*)
16538     shrext_cmds='.sl'
16539     hardcode_into_libs=yes
16540     dynamic_linker="$host_os dld.sl"
16541     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16542     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16544     soname_spec='${libname}${release}${shared_ext}$major'
16545     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16546     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16547     ;;
16548   *)
16549     shrext_cmds='.sl'
16550     dynamic_linker="$host_os dld.sl"
16551     shlibpath_var=SHLIB_PATH
16552     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554     soname_spec='${libname}${release}${shared_ext}$major'
16555     ;;
16556   esac
16557   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16558   postinstall_cmds='chmod 555 $lib'
16559   # or fails outright, so override atomically:
16560   install_override_mode=555
16561   ;;
16562
16563 interix[3-9]*)
16564   version_type=linux
16565   need_lib_prefix=no
16566   need_version=no
16567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16568   soname_spec='${libname}${release}${shared_ext}$major'
16569   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16570   shlibpath_var=LD_LIBRARY_PATH
16571   shlibpath_overrides_runpath=no
16572   hardcode_into_libs=yes
16573   ;;
16574
16575 irix5* | irix6* | nonstopux*)
16576   case $host_os in
16577     nonstopux*) version_type=nonstopux ;;
16578     *)
16579         if test "$lt_cv_prog_gnu_ld" = yes; then
16580                 version_type=linux
16581         else
16582                 version_type=irix
16583         fi ;;
16584   esac
16585   need_lib_prefix=no
16586   need_version=no
16587   soname_spec='${libname}${release}${shared_ext}$major'
16588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16589   case $host_os in
16590   irix5* | nonstopux*)
16591     libsuff= shlibsuff=
16592     ;;
16593   *)
16594     case $LD in # libtool.m4 will add one of these switches to LD
16595     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16596       libsuff= shlibsuff= libmagic=32-bit;;
16597     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16598       libsuff=32 shlibsuff=N32 libmagic=N32;;
16599     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16600       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16601     *) libsuff= shlibsuff= libmagic=never-match;;
16602     esac
16603     ;;
16604   esac
16605   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16606   shlibpath_overrides_runpath=no
16607   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16608   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16609   hardcode_into_libs=yes
16610   ;;
16611
16612 # No shared lib support for Linux oldld, aout, or coff.
16613 linux*oldld* | linux*aout* | linux*coff*)
16614   dynamic_linker=no
16615   ;;
16616
16617 # This must be Linux ELF.
16618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16619   version_type=linux
16620   need_lib_prefix=no
16621   need_version=no
16622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623   soname_spec='${libname}${release}${shared_ext}$major'
16624   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625   shlibpath_var=LD_LIBRARY_PATH
16626   shlibpath_overrides_runpath=no
16627
16628   # Some binutils ld are patched to set DT_RUNPATH
16629   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16630   $as_echo_n "(cached) " >&6
16631 else
16632   lt_cv_shlibpath_overrides_runpath=no
16633     save_LDFLAGS=$LDFLAGS
16634     save_libdir=$libdir
16635     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16636          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h.  */
16639
16640 int
16641 main ()
16642 {
16643
16644   ;
16645   return 0;
16646 }
16647 _ACEOF
16648 if ac_fn_c_try_link "$LINENO"; then :
16649   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16650   lt_cv_shlibpath_overrides_runpath=yes
16651 fi
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext \
16654     conftest$ac_exeext conftest.$ac_ext
16655     LDFLAGS=$save_LDFLAGS
16656     libdir=$save_libdir
16657
16658 fi
16659
16660   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16661
16662   # This implies no fast_install, which is unacceptable.
16663   # Some rework will be needed to allow for fast_install
16664   # before this can be enabled.
16665   hardcode_into_libs=yes
16666
16667   # Append ld.so.conf contents to the search path
16668   if test -f /etc/ld.so.conf; then
16669     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' ' '`
16670     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16671   fi
16672
16673   # We used to test for /lib/ld.so.1 and disable shared libraries on
16674   # powerpc, because MkLinux only supported shared libraries with the
16675   # GNU dynamic linker.  Since this was broken with cross compilers,
16676   # most powerpc-linux boxes support dynamic linking these days and
16677   # people can always --disable-shared, the test was removed, and we
16678   # assume the GNU/Linux dynamic linker is in use.
16679   dynamic_linker='GNU/Linux ld.so'
16680   ;;
16681
16682 netbsd*)
16683   version_type=sunos
16684   need_lib_prefix=no
16685   need_version=no
16686   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16688     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16689     dynamic_linker='NetBSD (a.out) ld.so'
16690   else
16691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16692     soname_spec='${libname}${release}${shared_ext}$major'
16693     dynamic_linker='NetBSD ld.elf_so'
16694   fi
16695   shlibpath_var=LD_LIBRARY_PATH
16696   shlibpath_overrides_runpath=yes
16697   hardcode_into_libs=yes
16698   ;;
16699
16700 newsos6)
16701   version_type=linux
16702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703   shlibpath_var=LD_LIBRARY_PATH
16704   shlibpath_overrides_runpath=yes
16705   ;;
16706
16707 *nto* | *qnx*)
16708   version_type=qnx
16709   need_lib_prefix=no
16710   need_version=no
16711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712   soname_spec='${libname}${release}${shared_ext}$major'
16713   shlibpath_var=LD_LIBRARY_PATH
16714   shlibpath_overrides_runpath=no
16715   hardcode_into_libs=yes
16716   dynamic_linker='ldqnx.so'
16717   ;;
16718
16719 openbsd*)
16720   version_type=sunos
16721   sys_lib_dlsearch_path_spec="/usr/lib"
16722   need_lib_prefix=no
16723   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16724   case $host_os in
16725     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16726     *)                          need_version=no  ;;
16727   esac
16728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16729   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16730   shlibpath_var=LD_LIBRARY_PATH
16731   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16732     case $host_os in
16733       openbsd2.[89] | openbsd2.[89].*)
16734         shlibpath_overrides_runpath=no
16735         ;;
16736       *)
16737         shlibpath_overrides_runpath=yes
16738         ;;
16739       esac
16740   else
16741     shlibpath_overrides_runpath=yes
16742   fi
16743   ;;
16744
16745 os2*)
16746   libname_spec='$name'
16747   shrext_cmds=".dll"
16748   need_lib_prefix=no
16749   library_names_spec='$libname${shared_ext} $libname.a'
16750   dynamic_linker='OS/2 ld.exe'
16751   shlibpath_var=LIBPATH
16752   ;;
16753
16754 osf3* | osf4* | osf5*)
16755   version_type=osf
16756   need_lib_prefix=no
16757   need_version=no
16758   soname_spec='${libname}${release}${shared_ext}$major'
16759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760   shlibpath_var=LD_LIBRARY_PATH
16761   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16762   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16763   ;;
16764
16765 rdos*)
16766   dynamic_linker=no
16767   ;;
16768
16769 solaris*)
16770   version_type=linux
16771   need_lib_prefix=no
16772   need_version=no
16773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774   soname_spec='${libname}${release}${shared_ext}$major'
16775   shlibpath_var=LD_LIBRARY_PATH
16776   shlibpath_overrides_runpath=yes
16777   hardcode_into_libs=yes
16778   # ldd complains unless libraries are executable
16779   postinstall_cmds='chmod +x $lib'
16780   ;;
16781
16782 sunos4*)
16783   version_type=sunos
16784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16785   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16786   shlibpath_var=LD_LIBRARY_PATH
16787   shlibpath_overrides_runpath=yes
16788   if test "$with_gnu_ld" = yes; then
16789     need_lib_prefix=no
16790   fi
16791   need_version=yes
16792   ;;
16793
16794 sysv4 | sysv4.3*)
16795   version_type=linux
16796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797   soname_spec='${libname}${release}${shared_ext}$major'
16798   shlibpath_var=LD_LIBRARY_PATH
16799   case $host_vendor in
16800     sni)
16801       shlibpath_overrides_runpath=no
16802       need_lib_prefix=no
16803       runpath_var=LD_RUN_PATH
16804       ;;
16805     siemens)
16806       need_lib_prefix=no
16807       ;;
16808     motorola)
16809       need_lib_prefix=no
16810       need_version=no
16811       shlibpath_overrides_runpath=no
16812       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16813       ;;
16814   esac
16815   ;;
16816
16817 sysv4*MP*)
16818   if test -d /usr/nec ;then
16819     version_type=linux
16820     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16821     soname_spec='$libname${shared_ext}.$major'
16822     shlibpath_var=LD_LIBRARY_PATH
16823   fi
16824   ;;
16825
16826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16827   version_type=freebsd-elf
16828   need_lib_prefix=no
16829   need_version=no
16830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16831   soname_spec='${libname}${release}${shared_ext}$major'
16832   shlibpath_var=LD_LIBRARY_PATH
16833   shlibpath_overrides_runpath=yes
16834   hardcode_into_libs=yes
16835   if test "$with_gnu_ld" = yes; then
16836     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16837   else
16838     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16839     case $host_os in
16840       sco3.2v5*)
16841         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16842         ;;
16843     esac
16844   fi
16845   sys_lib_dlsearch_path_spec='/usr/lib'
16846   ;;
16847
16848 tpf*)
16849   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16850   version_type=linux
16851   need_lib_prefix=no
16852   need_version=no
16853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854   shlibpath_var=LD_LIBRARY_PATH
16855   shlibpath_overrides_runpath=no
16856   hardcode_into_libs=yes
16857   ;;
16858
16859 uts4*)
16860   version_type=linux
16861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862   soname_spec='${libname}${release}${shared_ext}$major'
16863   shlibpath_var=LD_LIBRARY_PATH
16864   ;;
16865
16866 *)
16867   dynamic_linker=no
16868   ;;
16869 esac
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16871 $as_echo "$dynamic_linker" >&6; }
16872 test "$dynamic_linker" = no && can_build_shared=no
16873
16874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16875 if test "$GCC" = yes; then
16876   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16877 fi
16878
16879 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16880   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16881 fi
16882 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16883   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16884 fi
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16978 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16979 hardcode_action=
16980 if test -n "$hardcode_libdir_flag_spec" ||
16981    test -n "$runpath_var" ||
16982    test "X$hardcode_automatic" = "Xyes" ; then
16983
16984   # We can hardcode non-existent directories.
16985   if test "$hardcode_direct" != no &&
16986      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16987      # have to relink, otherwise we might link with an installed library
16988      # when we should be linking with a yet-to-be-installed one
16989      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16990      test "$hardcode_minus_L" != no; then
16991     # Linking always hardcodes the temporary library directory.
16992     hardcode_action=relink
16993   else
16994     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16995     hardcode_action=immediate
16996   fi
16997 else
16998   # We cannot hardcode anything, or else we can only hardcode existing
16999   # directories.
17000   hardcode_action=unsupported
17001 fi
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17003 $as_echo "$hardcode_action" >&6; }
17004
17005 if test "$hardcode_action" = relink ||
17006    test "$inherit_rpath" = yes; then
17007   # Fast installation is not supported
17008   enable_fast_install=no
17009 elif test "$shlibpath_overrides_runpath" = yes ||
17010      test "$enable_shared" = no; then
17011   # Fast installation is not necessary
17012   enable_fast_install=needless
17013 fi
17014
17015
17016
17017
17018
17019
17020   if test "x$enable_dlopen" != xyes; then
17021   enable_dlopen=unknown
17022   enable_dlopen_self=unknown
17023   enable_dlopen_self_static=unknown
17024 else
17025   lt_cv_dlopen=no
17026   lt_cv_dlopen_libs=
17027
17028   case $host_os in
17029   beos*)
17030     lt_cv_dlopen="load_add_on"
17031     lt_cv_dlopen_libs=
17032     lt_cv_dlopen_self=yes
17033     ;;
17034
17035   mingw* | pw32* | cegcc*)
17036     lt_cv_dlopen="LoadLibrary"
17037     lt_cv_dlopen_libs=
17038     ;;
17039
17040   cygwin*)
17041     lt_cv_dlopen="dlopen"
17042     lt_cv_dlopen_libs=
17043     ;;
17044
17045   darwin*)
17046   # if libdl is installed we need to link against it
17047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17050   $as_echo_n "(cached) " >&6
17051 else
17052   ac_check_lib_save_LIBS=$LIBS
17053 LIBS="-ldl  $LIBS"
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h.  */
17056
17057 /* Override any GCC internal prototype to avoid an error.
17058    Use char because int might match the return type of a GCC
17059    builtin and then its argument prototype would still apply.  */
17060 #ifdef __cplusplus
17061 extern "C"
17062 #endif
17063 char dlopen ();
17064 int
17065 main ()
17066 {
17067 return dlopen ();
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 if ac_fn_c_try_link "$LINENO"; then :
17073   ac_cv_lib_dl_dlopen=yes
17074 else
17075   ac_cv_lib_dl_dlopen=no
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext \
17078     conftest$ac_exeext conftest.$ac_ext
17079 LIBS=$ac_check_lib_save_LIBS
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17083 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17084   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17085 else
17086
17087     lt_cv_dlopen="dyld"
17088     lt_cv_dlopen_libs=
17089     lt_cv_dlopen_self=yes
17090
17091 fi
17092
17093     ;;
17094
17095   *)
17096     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17097 if test "x$ac_cv_func_shl_load" = x""yes; then :
17098   lt_cv_dlopen="shl_load"
17099 else
17100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17101 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17102 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17103   $as_echo_n "(cached) " >&6
17104 else
17105   ac_check_lib_save_LIBS=$LIBS
17106 LIBS="-ldld  $LIBS"
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h.  */
17109
17110 /* Override any GCC internal prototype to avoid an error.
17111    Use char because int might match the return type of a GCC
17112    builtin and then its argument prototype would still apply.  */
17113 #ifdef __cplusplus
17114 extern "C"
17115 #endif
17116 char shl_load ();
17117 int
17118 main ()
17119 {
17120 return shl_load ();
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 if ac_fn_c_try_link "$LINENO"; then :
17126   ac_cv_lib_dld_shl_load=yes
17127 else
17128   ac_cv_lib_dld_shl_load=no
17129 fi
17130 rm -f core conftest.err conftest.$ac_objext \
17131     conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17133 fi
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17135 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17136 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17137   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17138 else
17139   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17140 if test "x$ac_cv_func_dlopen" = x""yes; then :
17141   lt_cv_dlopen="dlopen"
17142 else
17143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17144 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17146   $as_echo_n "(cached) " >&6
17147 else
17148   ac_check_lib_save_LIBS=$LIBS
17149 LIBS="-ldl  $LIBS"
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h.  */
17152
17153 /* Override any GCC internal prototype to avoid an error.
17154    Use char because int might match the return type of a GCC
17155    builtin and then its argument prototype would still apply.  */
17156 #ifdef __cplusplus
17157 extern "C"
17158 #endif
17159 char dlopen ();
17160 int
17161 main ()
17162 {
17163 return dlopen ();
17164   ;
17165   return 0;
17166 }
17167 _ACEOF
17168 if ac_fn_c_try_link "$LINENO"; then :
17169   ac_cv_lib_dl_dlopen=yes
17170 else
17171   ac_cv_lib_dl_dlopen=no
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext \
17174     conftest$ac_exeext conftest.$ac_ext
17175 LIBS=$ac_check_lib_save_LIBS
17176 fi
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17178 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17179 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17180   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17181 else
17182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17183 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17184 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17185   $as_echo_n "(cached) " >&6
17186 else
17187   ac_check_lib_save_LIBS=$LIBS
17188 LIBS="-lsvld  $LIBS"
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h.  */
17191
17192 /* Override any GCC internal prototype to avoid an error.
17193    Use char because int might match the return type of a GCC
17194    builtin and then its argument prototype would still apply.  */
17195 #ifdef __cplusplus
17196 extern "C"
17197 #endif
17198 char dlopen ();
17199 int
17200 main ()
17201 {
17202 return dlopen ();
17203   ;
17204   return 0;
17205 }
17206 _ACEOF
17207 if ac_fn_c_try_link "$LINENO"; then :
17208   ac_cv_lib_svld_dlopen=yes
17209 else
17210   ac_cv_lib_svld_dlopen=no
17211 fi
17212 rm -f core conftest.err conftest.$ac_objext \
17213     conftest$ac_exeext conftest.$ac_ext
17214 LIBS=$ac_check_lib_save_LIBS
17215 fi
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17217 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17218 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17219   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17220 else
17221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17222 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17223 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17224   $as_echo_n "(cached) " >&6
17225 else
17226   ac_check_lib_save_LIBS=$LIBS
17227 LIBS="-ldld  $LIBS"
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h.  */
17230
17231 /* Override any GCC internal prototype to avoid an error.
17232    Use char because int might match the return type of a GCC
17233    builtin and then its argument prototype would still apply.  */
17234 #ifdef __cplusplus
17235 extern "C"
17236 #endif
17237 char dld_link ();
17238 int
17239 main ()
17240 {
17241 return dld_link ();
17242   ;
17243   return 0;
17244 }
17245 _ACEOF
17246 if ac_fn_c_try_link "$LINENO"; then :
17247   ac_cv_lib_dld_dld_link=yes
17248 else
17249   ac_cv_lib_dld_dld_link=no
17250 fi
17251 rm -f core conftest.err conftest.$ac_objext \
17252     conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17254 fi
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17256 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17257 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17258   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17259 fi
17260
17261
17262 fi
17263
17264
17265 fi
17266
17267
17268 fi
17269
17270
17271 fi
17272
17273
17274 fi
17275
17276     ;;
17277   esac
17278
17279   if test "x$lt_cv_dlopen" != xno; then
17280     enable_dlopen=yes
17281   else
17282     enable_dlopen=no
17283   fi
17284
17285   case $lt_cv_dlopen in
17286   dlopen)
17287     save_CPPFLAGS="$CPPFLAGS"
17288     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17289
17290     save_LDFLAGS="$LDFLAGS"
17291     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17292
17293     save_LIBS="$LIBS"
17294     LIBS="$lt_cv_dlopen_libs $LIBS"
17295
17296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17297 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17298 if test "${lt_cv_dlopen_self+set}" = set; then :
17299   $as_echo_n "(cached) " >&6
17300 else
17301           if test "$cross_compiling" = yes; then :
17302   lt_cv_dlopen_self=cross
17303 else
17304   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17305   lt_status=$lt_dlunknown
17306   cat > conftest.$ac_ext <<_LT_EOF
17307 #line 17307 "configure"
17308 #include "confdefs.h"
17309
17310 #if HAVE_DLFCN_H
17311 #include <dlfcn.h>
17312 #endif
17313
17314 #include <stdio.h>
17315
17316 #ifdef RTLD_GLOBAL
17317 #  define LT_DLGLOBAL           RTLD_GLOBAL
17318 #else
17319 #  ifdef DL_GLOBAL
17320 #    define LT_DLGLOBAL         DL_GLOBAL
17321 #  else
17322 #    define LT_DLGLOBAL         0
17323 #  endif
17324 #endif
17325
17326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17327    find out it does not work in some platform. */
17328 #ifndef LT_DLLAZY_OR_NOW
17329 #  ifdef RTLD_LAZY
17330 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17331 #  else
17332 #    ifdef DL_LAZY
17333 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17334 #    else
17335 #      ifdef RTLD_NOW
17336 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17337 #      else
17338 #        ifdef DL_NOW
17339 #          define LT_DLLAZY_OR_NOW      DL_NOW
17340 #        else
17341 #          define LT_DLLAZY_OR_NOW      0
17342 #        endif
17343 #      endif
17344 #    endif
17345 #  endif
17346 #endif
17347
17348 /* When -fvisbility=hidden is used, assume the code has been annotated
17349    correspondingly for the symbols needed.  */
17350 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17351 void fnord () __attribute__((visibility("default")));
17352 #endif
17353
17354 void fnord () { int i=42; }
17355 int main ()
17356 {
17357   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17358   int status = $lt_dlunknown;
17359
17360   if (self)
17361     {
17362       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17363       else
17364         {
17365           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17366           else puts (dlerror ());
17367         }
17368       /* dlclose (self); */
17369     }
17370   else
17371     puts (dlerror ());
17372
17373   return status;
17374 }
17375 _LT_EOF
17376   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17377   (eval $ac_link) 2>&5
17378   ac_status=$?
17379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17380   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17381     (./conftest; exit; ) >&5 2>/dev/null
17382     lt_status=$?
17383     case x$lt_status in
17384       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17385       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17386       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17387     esac
17388   else :
17389     # compilation failed
17390     lt_cv_dlopen_self=no
17391   fi
17392 fi
17393 rm -fr conftest*
17394
17395
17396 fi
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17398 $as_echo "$lt_cv_dlopen_self" >&6; }
17399
17400     if test "x$lt_cv_dlopen_self" = xyes; then
17401       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17402       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17403 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17404 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17405   $as_echo_n "(cached) " >&6
17406 else
17407           if test "$cross_compiling" = yes; then :
17408   lt_cv_dlopen_self_static=cross
17409 else
17410   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17411   lt_status=$lt_dlunknown
17412   cat > conftest.$ac_ext <<_LT_EOF
17413 #line 17413 "configure"
17414 #include "confdefs.h"
17415
17416 #if HAVE_DLFCN_H
17417 #include <dlfcn.h>
17418 #endif
17419
17420 #include <stdio.h>
17421
17422 #ifdef RTLD_GLOBAL
17423 #  define LT_DLGLOBAL           RTLD_GLOBAL
17424 #else
17425 #  ifdef DL_GLOBAL
17426 #    define LT_DLGLOBAL         DL_GLOBAL
17427 #  else
17428 #    define LT_DLGLOBAL         0
17429 #  endif
17430 #endif
17431
17432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17433    find out it does not work in some platform. */
17434 #ifndef LT_DLLAZY_OR_NOW
17435 #  ifdef RTLD_LAZY
17436 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17437 #  else
17438 #    ifdef DL_LAZY
17439 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17440 #    else
17441 #      ifdef RTLD_NOW
17442 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17443 #      else
17444 #        ifdef DL_NOW
17445 #          define LT_DLLAZY_OR_NOW      DL_NOW
17446 #        else
17447 #          define LT_DLLAZY_OR_NOW      0
17448 #        endif
17449 #      endif
17450 #    endif
17451 #  endif
17452 #endif
17453
17454 /* When -fvisbility=hidden is used, assume the code has been annotated
17455    correspondingly for the symbols needed.  */
17456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17457 void fnord () __attribute__((visibility("default")));
17458 #endif
17459
17460 void fnord () { int i=42; }
17461 int main ()
17462 {
17463   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17464   int status = $lt_dlunknown;
17465
17466   if (self)
17467     {
17468       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17469       else
17470         {
17471           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17472           else puts (dlerror ());
17473         }
17474       /* dlclose (self); */
17475     }
17476   else
17477     puts (dlerror ());
17478
17479   return status;
17480 }
17481 _LT_EOF
17482   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17483   (eval $ac_link) 2>&5
17484   ac_status=$?
17485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17486   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17487     (./conftest; exit; ) >&5 2>/dev/null
17488     lt_status=$?
17489     case x$lt_status in
17490       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17491       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17492       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17493     esac
17494   else :
17495     # compilation failed
17496     lt_cv_dlopen_self_static=no
17497   fi
17498 fi
17499 rm -fr conftest*
17500
17501
17502 fi
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17504 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17505     fi
17506
17507     CPPFLAGS="$save_CPPFLAGS"
17508     LDFLAGS="$save_LDFLAGS"
17509     LIBS="$save_LIBS"
17510     ;;
17511   esac
17512
17513   case $lt_cv_dlopen_self in
17514   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17515   *) enable_dlopen_self=unknown ;;
17516   esac
17517
17518   case $lt_cv_dlopen_self_static in
17519   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17520   *) enable_dlopen_self_static=unknown ;;
17521   esac
17522 fi
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540 striplib=
17541 old_striplib=
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17543 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17544 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17545   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17546   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17548 $as_echo "yes" >&6; }
17549 else
17550 # FIXME - insert some real tests, host_os isn't really good enough
17551   case $host_os in
17552   darwin*)
17553     if test -n "$STRIP" ; then
17554       striplib="$STRIP -x"
17555       old_striplib="$STRIP -S"
17556       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17557 $as_echo "yes" >&6; }
17558     else
17559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17560 $as_echo "no" >&6; }
17561     fi
17562     ;;
17563   *)
17564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565 $as_echo "no" >&6; }
17566     ;;
17567   esac
17568 fi
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581   # Report which library types will actually be built
17582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17583 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17585 $as_echo "$can_build_shared" >&6; }
17586
17587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17588 $as_echo_n "checking whether to build shared libraries... " >&6; }
17589   test "$can_build_shared" = "no" && enable_shared=no
17590
17591   # On AIX, shared libraries and static libraries use the same namespace, and
17592   # are all built from PIC.
17593   case $host_os in
17594   aix3*)
17595     test "$enable_shared" = yes && enable_static=no
17596     if test -n "$RANLIB"; then
17597       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17598       postinstall_cmds='$RANLIB $lib'
17599     fi
17600     ;;
17601
17602   aix[4-9]*)
17603     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17604       test "$enable_shared" = yes && enable_static=no
17605     fi
17606     ;;
17607   esac
17608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17609 $as_echo "$enable_shared" >&6; }
17610
17611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17612 $as_echo_n "checking whether to build static libraries... " >&6; }
17613   # Make sure either enable_shared or enable_static is yes.
17614   test "$enable_shared" = yes || enable_static=yes
17615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17616 $as_echo "$enable_static" >&6; }
17617
17618
17619
17620
17621 fi
17622 ac_ext=c
17623 ac_cpp='$CPP $CPPFLAGS'
17624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17627
17628 CC="$lt_save_CC"
17629
17630       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17631     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17632     (test "X$CXX" != "Xg++"))) ; then
17633   ac_ext=cpp
17634 ac_cpp='$CXXCPP $CPPFLAGS'
17635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17639 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17640 if test -z "$CXXCPP"; then
17641   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17642   $as_echo_n "(cached) " >&6
17643 else
17644       # Double quotes because CXXCPP needs to be expanded
17645     for CXXCPP in "$CXX -E" "/lib/cpp"
17646     do
17647       ac_preproc_ok=false
17648 for ac_cxx_preproc_warn_flag in '' yes
17649 do
17650   # Use a header file that comes with gcc, so configuring glibc
17651   # with a fresh cross-compiler works.
17652   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17653   # <limits.h> exists even on freestanding compilers.
17654   # On the NeXT, cc -E runs the code through the compiler's parser,
17655   # not just through cpp. "Syntax error" is here to catch this case.
17656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h.  */
17658 #ifdef __STDC__
17659 # include <limits.h>
17660 #else
17661 # include <assert.h>
17662 #endif
17663                      Syntax error
17664 _ACEOF
17665 if ac_fn_cxx_try_cpp "$LINENO"; then :
17666
17667 else
17668   # Broken: fails on valid input.
17669 continue
17670 fi
17671 rm -f conftest.err conftest.$ac_ext
17672
17673   # OK, works on sane cases.  Now check whether nonexistent headers
17674   # can be detected and how.
17675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h.  */
17677 #include <ac_nonexistent.h>
17678 _ACEOF
17679 if ac_fn_cxx_try_cpp "$LINENO"; then :
17680   # Broken: success on invalid input.
17681 continue
17682 else
17683   # Passes both tests.
17684 ac_preproc_ok=:
17685 break
17686 fi
17687 rm -f conftest.err conftest.$ac_ext
17688
17689 done
17690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17691 rm -f conftest.err conftest.$ac_ext
17692 if $ac_preproc_ok; then :
17693   break
17694 fi
17695
17696     done
17697     ac_cv_prog_CXXCPP=$CXXCPP
17698
17699 fi
17700   CXXCPP=$ac_cv_prog_CXXCPP
17701 else
17702   ac_cv_prog_CXXCPP=$CXXCPP
17703 fi
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17705 $as_echo "$CXXCPP" >&6; }
17706 ac_preproc_ok=false
17707 for ac_cxx_preproc_warn_flag in '' yes
17708 do
17709   # Use a header file that comes with gcc, so configuring glibc
17710   # with a fresh cross-compiler works.
17711   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712   # <limits.h> exists even on freestanding compilers.
17713   # On the NeXT, cc -E runs the code through the compiler's parser,
17714   # not just through cpp. "Syntax error" is here to catch this case.
17715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h.  */
17717 #ifdef __STDC__
17718 # include <limits.h>
17719 #else
17720 # include <assert.h>
17721 #endif
17722                      Syntax error
17723 _ACEOF
17724 if ac_fn_cxx_try_cpp "$LINENO"; then :
17725
17726 else
17727   # Broken: fails on valid input.
17728 continue
17729 fi
17730 rm -f conftest.err conftest.$ac_ext
17731
17732   # OK, works on sane cases.  Now check whether nonexistent headers
17733   # can be detected and how.
17734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h.  */
17736 #include <ac_nonexistent.h>
17737 _ACEOF
17738 if ac_fn_cxx_try_cpp "$LINENO"; then :
17739   # Broken: success on invalid input.
17740 continue
17741 else
17742   # Passes both tests.
17743 ac_preproc_ok=:
17744 break
17745 fi
17746 rm -f conftest.err conftest.$ac_ext
17747
17748 done
17749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17750 rm -f conftest.err conftest.$ac_ext
17751 if $ac_preproc_ok; then :
17752
17753 else
17754   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17756 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17757 See \`config.log' for more details." "$LINENO" 5; }
17758 fi
17759
17760 ac_ext=c
17761 ac_cpp='$CPP $CPPFLAGS'
17762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17765
17766 else
17767   _lt_caught_CXX_error=yes
17768 fi
17769
17770 ac_ext=cpp
17771 ac_cpp='$CXXCPP $CPPFLAGS'
17772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17775
17776 archive_cmds_need_lc_CXX=no
17777 allow_undefined_flag_CXX=
17778 always_export_symbols_CXX=no
17779 archive_expsym_cmds_CXX=
17780 compiler_needs_object_CXX=no
17781 export_dynamic_flag_spec_CXX=
17782 hardcode_direct_CXX=no
17783 hardcode_direct_absolute_CXX=no
17784 hardcode_libdir_flag_spec_CXX=
17785 hardcode_libdir_flag_spec_ld_CXX=
17786 hardcode_libdir_separator_CXX=
17787 hardcode_minus_L_CXX=no
17788 hardcode_shlibpath_var_CXX=unsupported
17789 hardcode_automatic_CXX=no
17790 inherit_rpath_CXX=no
17791 module_cmds_CXX=
17792 module_expsym_cmds_CXX=
17793 link_all_deplibs_CXX=unknown
17794 old_archive_cmds_CXX=$old_archive_cmds
17795 reload_flag_CXX=$reload_flag
17796 reload_cmds_CXX=$reload_cmds
17797 no_undefined_flag_CXX=
17798 whole_archive_flag_spec_CXX=
17799 enable_shared_with_static_runtimes_CXX=no
17800
17801 # Source file extension for C++ test sources.
17802 ac_ext=cpp
17803
17804 # Object file extension for compiled C++ test sources.
17805 objext=o
17806 objext_CXX=$objext
17807
17808 # No sense in running all these tests if we already determined that
17809 # the CXX compiler isn't working.  Some variables (like enable_shared)
17810 # are currently assumed to apply to all compilers on this platform,
17811 # and will be corrupted by setting them based on a non-working compiler.
17812 if test "$_lt_caught_CXX_error" != yes; then
17813   # Code to be used in simple compile tests
17814   lt_simple_compile_test_code="int some_variable = 0;"
17815
17816   # Code to be used in simple link tests
17817   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17818
17819   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17820
17821
17822
17823
17824
17825
17826 # If no C compiler was specified, use CC.
17827 LTCC=${LTCC-"$CC"}
17828
17829 # If no C compiler flags were specified, use CFLAGS.
17830 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17831
17832 # Allow CC to be a program name with arguments.
17833 compiler=$CC
17834
17835
17836   # save warnings/boilerplate of simple test code
17837   ac_outfile=conftest.$ac_objext
17838 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17839 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17840 _lt_compiler_boilerplate=`cat conftest.err`
17841 $RM conftest*
17842
17843   ac_outfile=conftest.$ac_objext
17844 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17845 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17846 _lt_linker_boilerplate=`cat conftest.err`
17847 $RM -r conftest*
17848
17849
17850   # Allow CC to be a program name with arguments.
17851   lt_save_CC=$CC
17852   lt_save_LD=$LD
17853   lt_save_GCC=$GCC
17854   GCC=$GXX
17855   lt_save_with_gnu_ld=$with_gnu_ld
17856   lt_save_path_LD=$lt_cv_path_LD
17857   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17858     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17859   else
17860     $as_unset lt_cv_prog_gnu_ld
17861   fi
17862   if test -n "${lt_cv_path_LDCXX+set}"; then
17863     lt_cv_path_LD=$lt_cv_path_LDCXX
17864   else
17865     $as_unset lt_cv_path_LD
17866   fi
17867   test -z "${LDCXX+set}" || LD=$LDCXX
17868   CC=${CXX-"c++"}
17869   compiler=$CC
17870   compiler_CXX=$CC
17871   for cc_temp in $compiler""; do
17872   case $cc_temp in
17873     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17874     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17875     \-*) ;;
17876     *) break;;
17877   esac
17878 done
17879 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17880
17881
17882   if test -n "$compiler"; then
17883     # We don't want -fno-exception when compiling C++ code, so set the
17884     # no_builtin_flag separately
17885     if test "$GXX" = yes; then
17886       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17887     else
17888       lt_prog_compiler_no_builtin_flag_CXX=
17889     fi
17890
17891     if test "$GXX" = yes; then
17892       # Set up default GNU C++ configuration
17893
17894
17895
17896 # Check whether --with-gnu-ld was given.
17897 if test "${with_gnu_ld+set}" = set; then :
17898   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17899 else
17900   with_gnu_ld=no
17901 fi
17902
17903 ac_prog=ld
17904 if test "$GCC" = yes; then
17905   # Check if gcc -print-prog-name=ld gives a path.
17906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17907 $as_echo_n "checking for ld used by $CC... " >&6; }
17908   case $host in
17909   *-*-mingw*)
17910     # gcc leaves a trailing carriage return which upsets mingw
17911     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17912   *)
17913     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17914   esac
17915   case $ac_prog in
17916     # Accept absolute paths.
17917     [\\/]* | ?:[\\/]*)
17918       re_direlt='/[^/][^/]*/\.\./'
17919       # Canonicalize the pathname of ld
17920       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17921       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17922         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17923       done
17924       test -z "$LD" && LD="$ac_prog"
17925       ;;
17926   "")
17927     # If it fails, then pretend we aren't using GCC.
17928     ac_prog=ld
17929     ;;
17930   *)
17931     # If it is relative, then search for the first ld in PATH.
17932     with_gnu_ld=unknown
17933     ;;
17934   esac
17935 elif test "$with_gnu_ld" = yes; then
17936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17937 $as_echo_n "checking for GNU ld... " >&6; }
17938 else
17939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17940 $as_echo_n "checking for non-GNU ld... " >&6; }
17941 fi
17942 if test "${lt_cv_path_LD+set}" = set; then :
17943   $as_echo_n "(cached) " >&6
17944 else
17945   if test -z "$LD"; then
17946   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17947   for ac_dir in $PATH; do
17948     IFS="$lt_save_ifs"
17949     test -z "$ac_dir" && ac_dir=.
17950     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17951       lt_cv_path_LD="$ac_dir/$ac_prog"
17952       # Check to see if the program is GNU ld.  I'd rather use --version,
17953       # but apparently some variants of GNU ld only accept -v.
17954       # Break only if it was the GNU/non-GNU ld that we prefer.
17955       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17956       *GNU* | *'with BFD'*)
17957         test "$with_gnu_ld" != no && break
17958         ;;
17959       *)
17960         test "$with_gnu_ld" != yes && break
17961         ;;
17962       esac
17963     fi
17964   done
17965   IFS="$lt_save_ifs"
17966 else
17967   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17968 fi
17969 fi
17970
17971 LD="$lt_cv_path_LD"
17972 if test -n "$LD"; then
17973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17974 $as_echo "$LD" >&6; }
17975 else
17976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17977 $as_echo "no" >&6; }
17978 fi
17979 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17981 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17982 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17983   $as_echo_n "(cached) " >&6
17984 else
17985   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17986 case `$LD -v 2>&1 </dev/null` in
17987 *GNU* | *'with BFD'*)
17988   lt_cv_prog_gnu_ld=yes
17989   ;;
17990 *)
17991   lt_cv_prog_gnu_ld=no
17992   ;;
17993 esac
17994 fi
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17996 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17997 with_gnu_ld=$lt_cv_prog_gnu_ld
17998
17999
18000
18001
18002
18003
18004
18005       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18006       # archiving commands below assume that GNU ld is being used.
18007       if test "$with_gnu_ld" = yes; then
18008         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009         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'
18010
18011         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18012         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18013
18014         # If archive_cmds runs LD, not CC, wlarc should be empty
18015         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18016         #     investigate it a little bit more. (MM)
18017         wlarc='${wl}'
18018
18019         # ancient GNU ld didn't support --whole-archive et. al.
18020         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18021           $GREP 'no-whole-archive' > /dev/null; then
18022           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18023         else
18024           whole_archive_flag_spec_CXX=
18025         fi
18026       else
18027         with_gnu_ld=no
18028         wlarc=
18029
18030         # A generic and very simple default shared library creation
18031         # command for GNU C++ for the case where it uses the native
18032         # linker, instead of GNU ld.  If possible, this setting should
18033         # overridden to take advantage of the native linker features on
18034         # the platform it is being used on.
18035         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18036       fi
18037
18038       # Commands to make compiler produce verbose output that lists
18039       # what "hidden" libraries, object files and flags are used when
18040       # linking a shared library.
18041       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18042
18043     else
18044       GXX=no
18045       with_gnu_ld=no
18046       wlarc=
18047     fi
18048
18049     # PORTME: fill in a description of your system's C++ link characteristics
18050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18051 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18052     ld_shlibs_CXX=yes
18053     case $host_os in
18054       aix3*)
18055         # FIXME: insert proper C++ library support
18056         ld_shlibs_CXX=no
18057         ;;
18058       aix[4-9]*)
18059         if test "$host_cpu" = ia64; then
18060           # On IA64, the linker does run time linking by default, so we don't
18061           # have to do anything special.
18062           aix_use_runtimelinking=no
18063           exp_sym_flag='-Bexport'
18064           no_entry_flag=""
18065         else
18066           aix_use_runtimelinking=no
18067
18068           # Test if we are trying to use run time linking or normal
18069           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18070           # need to do runtime linking.
18071           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18072             for ld_flag in $LDFLAGS; do
18073               case $ld_flag in
18074               *-brtl*)
18075                 aix_use_runtimelinking=yes
18076                 break
18077                 ;;
18078               esac
18079             done
18080             ;;
18081           esac
18082
18083           exp_sym_flag='-bexport'
18084           no_entry_flag='-bnoentry'
18085         fi
18086
18087         # When large executables or shared objects are built, AIX ld can
18088         # have problems creating the table of contents.  If linking a library
18089         # or program results in "error TOC overflow" add -mminimal-toc to
18090         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18091         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18092
18093         archive_cmds_CXX=''
18094         hardcode_direct_CXX=yes
18095         hardcode_direct_absolute_CXX=yes
18096         hardcode_libdir_separator_CXX=':'
18097         link_all_deplibs_CXX=yes
18098         file_list_spec_CXX='${wl}-f,'
18099
18100         if test "$GXX" = yes; then
18101           case $host_os in aix4.[012]|aix4.[012].*)
18102           # We only want to do this on AIX 4.2 and lower, the check
18103           # below for broken collect2 doesn't work under 4.3+
18104           collect2name=`${CC} -print-prog-name=collect2`
18105           if test -f "$collect2name" &&
18106              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18107           then
18108             # We have reworked collect2
18109             :
18110           else
18111             # We have old collect2
18112             hardcode_direct_CXX=unsupported
18113             # It fails to find uninstalled libraries when the uninstalled
18114             # path is not listed in the libpath.  Setting hardcode_minus_L
18115             # to unsupported forces relinking
18116             hardcode_minus_L_CXX=yes
18117             hardcode_libdir_flag_spec_CXX='-L$libdir'
18118             hardcode_libdir_separator_CXX=
18119           fi
18120           esac
18121           shared_flag='-shared'
18122           if test "$aix_use_runtimelinking" = yes; then
18123             shared_flag="$shared_flag "'${wl}-G'
18124           fi
18125         else
18126           # not using gcc
18127           if test "$host_cpu" = ia64; then
18128           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18129           # chokes on -Wl,-G. The following line is correct:
18130           shared_flag='-G'
18131           else
18132             if test "$aix_use_runtimelinking" = yes; then
18133               shared_flag='${wl}-G'
18134             else
18135               shared_flag='${wl}-bM:SRE'
18136             fi
18137           fi
18138         fi
18139
18140         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18141         # It seems that -bexpall does not export symbols beginning with
18142         # underscore (_), so it is better to generate a list of symbols to
18143         # export.
18144         always_export_symbols_CXX=yes
18145         if test "$aix_use_runtimelinking" = yes; then
18146           # Warning - without using the other runtime loading flags (-brtl),
18147           # -berok will link without error, but may produce a broken library.
18148           allow_undefined_flag_CXX='-berok'
18149           # Determine the default libpath from the value encoded in an empty
18150           # executable.
18151           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h.  */
18153
18154 int
18155 main ()
18156 {
18157
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 if ac_fn_cxx_try_link "$LINENO"; then :
18163
18164 lt_aix_libpath_sed='
18165     /Import File Strings/,/^$/ {
18166         /^0/ {
18167             s/^0  *\(.*\)$/\1/
18168             p
18169         }
18170     }'
18171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18172 # Check for a 64-bit object if we didn't find anything.
18173 if test -z "$aix_libpath"; then
18174   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18175 fi
18176 fi
18177 rm -f core conftest.err conftest.$ac_objext \
18178     conftest$ac_exeext conftest.$ac_ext
18179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18180
18181           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18182
18183           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"
18184         else
18185           if test "$host_cpu" = ia64; then
18186             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18187             allow_undefined_flag_CXX="-z nodefs"
18188             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"
18189           else
18190             # Determine the default libpath from the value encoded in an
18191             # empty executable.
18192             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h.  */
18194
18195 int
18196 main ()
18197 {
18198
18199   ;
18200   return 0;
18201 }
18202 _ACEOF
18203 if ac_fn_cxx_try_link "$LINENO"; then :
18204
18205 lt_aix_libpath_sed='
18206     /Import File Strings/,/^$/ {
18207         /^0/ {
18208             s/^0  *\(.*\)$/\1/
18209             p
18210         }
18211     }'
18212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18213 # Check for a 64-bit object if we didn't find anything.
18214 if test -z "$aix_libpath"; then
18215   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18216 fi
18217 fi
18218 rm -f core conftest.err conftest.$ac_objext \
18219     conftest$ac_exeext conftest.$ac_ext
18220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18221
18222             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18223             # Warning - without using the other run time loading flags,
18224             # -berok will link without error, but may produce a broken library.
18225             no_undefined_flag_CXX=' ${wl}-bernotok'
18226             allow_undefined_flag_CXX=' ${wl}-berok'
18227             if test "$with_gnu_ld" = yes; then
18228               # We only use this code for GNU lds that support --whole-archive.
18229               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18230             else
18231               # Exported symbols can be pulled into shared objects from archives
18232               whole_archive_flag_spec_CXX='$convenience'
18233             fi
18234             archive_cmds_need_lc_CXX=yes
18235             # This is similar to how AIX traditionally builds its shared
18236             # libraries.
18237             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'
18238           fi
18239         fi
18240         ;;
18241
18242       beos*)
18243         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18244           allow_undefined_flag_CXX=unsupported
18245           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18246           # support --undefined.  This deserves some investigation.  FIXME
18247           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18248         else
18249           ld_shlibs_CXX=no
18250         fi
18251         ;;
18252
18253       chorus*)
18254         case $cc_basename in
18255           *)
18256           # FIXME: insert proper C++ library support
18257           ld_shlibs_CXX=no
18258           ;;
18259         esac
18260         ;;
18261
18262       cygwin* | mingw* | pw32* | cegcc*)
18263         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18264         # as there is no search path for DLLs.
18265         hardcode_libdir_flag_spec_CXX='-L$libdir'
18266         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18267         allow_undefined_flag_CXX=unsupported
18268         always_export_symbols_CXX=no
18269         enable_shared_with_static_runtimes_CXX=yes
18270
18271         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18272           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'
18273           # If the export-symbols file already is a .def file (1st line
18274           # is EXPORTS), use it as is; otherwise, prepend...
18275           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18276             cp $export_symbols $output_objdir/$soname.def;
18277           else
18278             echo EXPORTS > $output_objdir/$soname.def;
18279             cat $export_symbols >> $output_objdir/$soname.def;
18280           fi~
18281           $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'
18282         else
18283           ld_shlibs_CXX=no
18284         fi
18285         ;;
18286       darwin* | rhapsody*)
18287
18288
18289   archive_cmds_need_lc_CXX=no
18290   hardcode_direct_CXX=no
18291   hardcode_automatic_CXX=yes
18292   hardcode_shlibpath_var_CXX=unsupported
18293   if test "$lt_cv_ld_force_load" = "yes"; then
18294     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\"`'
18295   else
18296     whole_archive_flag_spec_CXX=''
18297   fi
18298   link_all_deplibs_CXX=yes
18299   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18300   case $cc_basename in
18301      ifort*) _lt_dar_can_shared=yes ;;
18302      *) _lt_dar_can_shared=$GCC ;;
18303   esac
18304   if test "$_lt_dar_can_shared" = "yes"; then
18305     output_verbose_link_cmd=func_echo_all
18306     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}"
18307     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18308     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}"
18309     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}"
18310        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18311       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}"
18312       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}"
18313     fi
18314
18315   else
18316   ld_shlibs_CXX=no
18317   fi
18318
18319         ;;
18320
18321       dgux*)
18322         case $cc_basename in
18323           ec++*)
18324             # FIXME: insert proper C++ library support
18325             ld_shlibs_CXX=no
18326             ;;
18327           ghcx*)
18328             # Green Hills C++ Compiler
18329             # FIXME: insert proper C++ library support
18330             ld_shlibs_CXX=no
18331             ;;
18332           *)
18333             # FIXME: insert proper C++ library support
18334             ld_shlibs_CXX=no
18335             ;;
18336         esac
18337         ;;
18338
18339       freebsd[12]*)
18340         # C++ shared libraries reported to be fairly broken before
18341         # switch to ELF
18342         ld_shlibs_CXX=no
18343         ;;
18344
18345       freebsd-elf*)
18346         archive_cmds_need_lc_CXX=no
18347         ;;
18348
18349       freebsd* | dragonfly*)
18350         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18351         # conventions
18352         ld_shlibs_CXX=yes
18353         ;;
18354
18355       gnu*)
18356         ;;
18357
18358       haiku*)
18359         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18360         link_all_deplibs_CXX=yes
18361         ;;
18362
18363       hpux9*)
18364         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18365         hardcode_libdir_separator_CXX=:
18366         export_dynamic_flag_spec_CXX='${wl}-E'
18367         hardcode_direct_CXX=yes
18368         hardcode_minus_L_CXX=yes # Not in the search PATH,
18369                                              # but as the default
18370                                              # location of the library.
18371
18372         case $cc_basename in
18373           CC*)
18374             # FIXME: insert proper C++ library support
18375             ld_shlibs_CXX=no
18376             ;;
18377           aCC*)
18378             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'
18379             # Commands to make compiler produce verbose output that lists
18380             # what "hidden" libraries, object files and flags are used when
18381             # linking a shared library.
18382             #
18383             # There doesn't appear to be a way to prevent this compiler from
18384             # explicitly linking system object files so we need to strip them
18385             # from the output so that they don't get included in the library
18386             # dependencies.
18387             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"'
18388             ;;
18389           *)
18390             if test "$GXX" = yes; then
18391               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'
18392             else
18393               # FIXME: insert proper C++ library support
18394               ld_shlibs_CXX=no
18395             fi
18396             ;;
18397         esac
18398         ;;
18399
18400       hpux10*|hpux11*)
18401         if test $with_gnu_ld = no; then
18402           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18403           hardcode_libdir_separator_CXX=:
18404
18405           case $host_cpu in
18406             hppa*64*|ia64*)
18407               ;;
18408             *)
18409               export_dynamic_flag_spec_CXX='${wl}-E'
18410               ;;
18411           esac
18412         fi
18413         case $host_cpu in
18414           hppa*64*|ia64*)
18415             hardcode_direct_CXX=no
18416             hardcode_shlibpath_var_CXX=no
18417             ;;
18418           *)
18419             hardcode_direct_CXX=yes
18420             hardcode_direct_absolute_CXX=yes
18421             hardcode_minus_L_CXX=yes # Not in the search PATH,
18422                                                  # but as the default
18423                                                  # location of the library.
18424             ;;
18425         esac
18426
18427         case $cc_basename in
18428           CC*)
18429             # FIXME: insert proper C++ library support
18430             ld_shlibs_CXX=no
18431             ;;
18432           aCC*)
18433             case $host_cpu in
18434               hppa*64*)
18435                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18436                 ;;
18437               ia64*)
18438                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18439                 ;;
18440               *)
18441                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18442                 ;;
18443             esac
18444             # Commands to make compiler produce verbose output that lists
18445             # what "hidden" libraries, object files and flags are used when
18446             # linking a shared library.
18447             #
18448             # There doesn't appear to be a way to prevent this compiler from
18449             # explicitly linking system object files so we need to strip them
18450             # from the output so that they don't get included in the library
18451             # dependencies.
18452             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"'
18453             ;;
18454           *)
18455             if test "$GXX" = yes; then
18456               if test $with_gnu_ld = no; then
18457                 case $host_cpu in
18458                   hppa*64*)
18459                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18460                     ;;
18461                   ia64*)
18462                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18463                     ;;
18464                   *)
18465                     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'
18466                     ;;
18467                 esac
18468               fi
18469             else
18470               # FIXME: insert proper C++ library support
18471               ld_shlibs_CXX=no
18472             fi
18473             ;;
18474         esac
18475         ;;
18476
18477       interix[3-9]*)
18478         hardcode_direct_CXX=no
18479         hardcode_shlibpath_var_CXX=no
18480         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18481         export_dynamic_flag_spec_CXX='${wl}-E'
18482         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18483         # Instead, shared libraries are loaded at an image base (0x10000000 by
18484         # default) and relocated if they conflict, which is a slow very memory
18485         # consuming and fragmenting process.  To avoid this, we pick a random,
18486         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18487         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18488         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'
18489         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'
18490         ;;
18491       irix5* | irix6*)
18492         case $cc_basename in
18493           CC*)
18494             # SGI C++
18495             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'
18496
18497             # Archives containing C++ object files must be created using
18498             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18499             # necessary to make sure instantiated templates are included
18500             # in the archive.
18501             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18502             ;;
18503           *)
18504             if test "$GXX" = yes; then
18505               if test "$with_gnu_ld" = no; then
18506                 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'
18507               else
18508                 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'
18509               fi
18510             fi
18511             link_all_deplibs_CXX=yes
18512             ;;
18513         esac
18514         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18515         hardcode_libdir_separator_CXX=:
18516         inherit_rpath_CXX=yes
18517         ;;
18518
18519       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18520         case $cc_basename in
18521           KCC*)
18522             # Kuck and Associates, Inc. (KAI) C++ Compiler
18523
18524             # KCC will only create a shared library if the output file
18525             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18526             # to its proper name (with version) after linking.
18527             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'
18528             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'
18529             # Commands to make compiler produce verbose output that lists
18530             # what "hidden" libraries, object files and flags are used when
18531             # linking a shared library.
18532             #
18533             # There doesn't appear to be a way to prevent this compiler from
18534             # explicitly linking system object files so we need to strip them
18535             # from the output so that they don't get included in the library
18536             # dependencies.
18537             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"'
18538
18539             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18540             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18541
18542             # Archives containing C++ object files must be created using
18543             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18544             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18545             ;;
18546           icpc* | ecpc* )
18547             # Intel C++
18548             with_gnu_ld=yes
18549             # version 8.0 and above of icpc choke on multiply defined symbols
18550             # if we add $predep_objects and $postdep_objects, however 7.1 and
18551             # earlier do not add the objects themselves.
18552             case `$CC -V 2>&1` in
18553               *"Version 7."*)
18554                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18555                 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'
18556                 ;;
18557               *)  # Version 8.0 or newer
18558                 tmp_idyn=
18559                 case $host_cpu in
18560                   ia64*) tmp_idyn=' -i_dynamic';;
18561                 esac
18562                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18563                 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'
18564                 ;;
18565             esac
18566             archive_cmds_need_lc_CXX=no
18567             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18568             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18569             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18570             ;;
18571           pgCC* | pgcpp*)
18572             # Portland Group C++ compiler
18573             case `$CC -V` in
18574             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18575               prelink_cmds_CXX='tpldir=Template.dir~
18576                 rm -rf $tpldir~
18577                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18578                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18579               old_archive_cmds_CXX='tpldir=Template.dir~
18580                 rm -rf $tpldir~
18581                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18582                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18583                 $RANLIB $oldlib'
18584               archive_cmds_CXX='tpldir=Template.dir~
18585                 rm -rf $tpldir~
18586                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18587                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18588               archive_expsym_cmds_CXX='tpldir=Template.dir~
18589                 rm -rf $tpldir~
18590                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18591                 $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'
18592               ;;
18593             *) # Version 6 and above use weak symbols
18594               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18595               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'
18596               ;;
18597             esac
18598
18599             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18600             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18601             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'
18602             ;;
18603           cxx*)
18604             # Compaq C++
18605             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18606             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'
18607
18608             runpath_var=LD_RUN_PATH
18609             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18610             hardcode_libdir_separator_CXX=:
18611
18612             # Commands to make compiler produce verbose output that lists
18613             # what "hidden" libraries, object files and flags are used when
18614             # linking a shared library.
18615             #
18616             # There doesn't appear to be a way to prevent this compiler from
18617             # explicitly linking system object files so we need to strip them
18618             # from the output so that they don't get included in the library
18619             # dependencies.
18620             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'
18621             ;;
18622           xl* | mpixl* | bgxl*)
18623             # IBM XL 8.0 on PPC, with GNU ld
18624             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18625             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18626             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18627             if test "x$supports_anon_versioning" = xyes; then
18628               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18629                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18630                 echo "local: *; };" >> $output_objdir/$libname.ver~
18631                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18632             fi
18633             ;;
18634           *)
18635             case `$CC -V 2>&1 | sed 5q` in
18636             *Sun\ C*)
18637               # Sun C++ 5.9
18638               no_undefined_flag_CXX=' -zdefs'
18639               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18640               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'
18641               hardcode_libdir_flag_spec_CXX='-R$libdir'
18642               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'
18643               compiler_needs_object_CXX=yes
18644
18645               # Not sure whether something based on
18646               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18647               # would be better.
18648               output_verbose_link_cmd='func_echo_all'
18649
18650               # Archives containing C++ object files must be created using
18651               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18652               # necessary to make sure instantiated templates are included
18653               # in the archive.
18654               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18655               ;;
18656             esac
18657             ;;
18658         esac
18659         ;;
18660
18661       lynxos*)
18662         # FIXME: insert proper C++ library support
18663         ld_shlibs_CXX=no
18664         ;;
18665
18666       m88k*)
18667         # FIXME: insert proper C++ library support
18668         ld_shlibs_CXX=no
18669         ;;
18670
18671       mvs*)
18672         case $cc_basename in
18673           cxx*)
18674             # FIXME: insert proper C++ library support
18675             ld_shlibs_CXX=no
18676             ;;
18677           *)
18678             # FIXME: insert proper C++ library support
18679             ld_shlibs_CXX=no
18680             ;;
18681         esac
18682         ;;
18683
18684       netbsd*)
18685         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18686           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18687           wlarc=
18688           hardcode_libdir_flag_spec_CXX='-R$libdir'
18689           hardcode_direct_CXX=yes
18690           hardcode_shlibpath_var_CXX=no
18691         fi
18692         # Workaround some broken pre-1.5 toolchains
18693         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18694         ;;
18695
18696       *nto* | *qnx*)
18697         ld_shlibs_CXX=yes
18698         ;;
18699
18700       openbsd2*)
18701         # C++ shared libraries are fairly broken
18702         ld_shlibs_CXX=no
18703         ;;
18704
18705       openbsd*)
18706         if test -f /usr/libexec/ld.so; then
18707           hardcode_direct_CXX=yes
18708           hardcode_shlibpath_var_CXX=no
18709           hardcode_direct_absolute_CXX=yes
18710           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18711           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18712           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18713             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18714             export_dynamic_flag_spec_CXX='${wl}-E'
18715             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18716           fi
18717           output_verbose_link_cmd=func_echo_all
18718         else
18719           ld_shlibs_CXX=no
18720         fi
18721         ;;
18722
18723       osf3* | osf4* | osf5*)
18724         case $cc_basename in
18725           KCC*)
18726             # Kuck and Associates, Inc. (KAI) C++ Compiler
18727
18728             # KCC will only create a shared library if the output file
18729             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18730             # to its proper name (with version) after linking.
18731             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'
18732
18733             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18734             hardcode_libdir_separator_CXX=:
18735
18736             # Archives containing C++ object files must be created using
18737             # the KAI C++ compiler.
18738             case $host in
18739               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18740               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18741             esac
18742             ;;
18743           RCC*)
18744             # Rational C++ 2.4.1
18745             # FIXME: insert proper C++ library support
18746             ld_shlibs_CXX=no
18747             ;;
18748           cxx*)
18749             case $host in
18750               osf3*)
18751                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18752                 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'
18753                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18754                 ;;
18755               *)
18756                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18757                 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'
18758                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18759                   echo "-hidden">> $lib.exp~
18760                   $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~
18761                   $RM $lib.exp'
18762                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18763                 ;;
18764             esac
18765
18766             hardcode_libdir_separator_CXX=:
18767
18768             # Commands to make compiler produce verbose output that lists
18769             # what "hidden" libraries, object files and flags are used when
18770             # linking a shared library.
18771             #
18772             # There doesn't appear to be a way to prevent this compiler from
18773             # explicitly linking system object files so we need to strip them
18774             # from the output so that they don't get included in the library
18775             # dependencies.
18776             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"'
18777             ;;
18778           *)
18779             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18780               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18781               case $host in
18782                 osf3*)
18783                   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'
18784                   ;;
18785                 *)
18786                   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'
18787                   ;;
18788               esac
18789
18790               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18791               hardcode_libdir_separator_CXX=:
18792
18793               # Commands to make compiler produce verbose output that lists
18794               # what "hidden" libraries, object files and flags are used when
18795               # linking a shared library.
18796               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18797
18798             else
18799               # FIXME: insert proper C++ library support
18800               ld_shlibs_CXX=no
18801             fi
18802             ;;
18803         esac
18804         ;;
18805
18806       psos*)
18807         # FIXME: insert proper C++ library support
18808         ld_shlibs_CXX=no
18809         ;;
18810
18811       sunos4*)
18812         case $cc_basename in
18813           CC*)
18814             # Sun C++ 4.x
18815             # FIXME: insert proper C++ library support
18816             ld_shlibs_CXX=no
18817             ;;
18818           lcc*)
18819             # Lucid
18820             # FIXME: insert proper C++ library support
18821             ld_shlibs_CXX=no
18822             ;;
18823           *)
18824             # FIXME: insert proper C++ library support
18825             ld_shlibs_CXX=no
18826             ;;
18827         esac
18828         ;;
18829
18830       solaris*)
18831         case $cc_basename in
18832           CC*)
18833             # Sun C++ 4.2, 5.x and Centerline C++
18834             archive_cmds_need_lc_CXX=yes
18835             no_undefined_flag_CXX=' -zdefs'
18836             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18837             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18838               $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'
18839
18840             hardcode_libdir_flag_spec_CXX='-R$libdir'
18841             hardcode_shlibpath_var_CXX=no
18842             case $host_os in
18843               solaris2.[0-5] | solaris2.[0-5].*) ;;
18844               *)
18845                 # The compiler driver will combine and reorder linker options,
18846                 # but understands `-z linker_flag'.
18847                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18848                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18849                 ;;
18850             esac
18851             link_all_deplibs_CXX=yes
18852
18853             output_verbose_link_cmd='func_echo_all'
18854
18855             # Archives containing C++ object files must be created using
18856             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18857             # necessary to make sure instantiated templates are included
18858             # in the archive.
18859             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18860             ;;
18861           gcx*)
18862             # Green Hills C++ Compiler
18863             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18864
18865             # The C++ compiler must be used to create the archive.
18866             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18867             ;;
18868           *)
18869             # GNU C++ compiler with Solaris linker
18870             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18871               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18872               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18873                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18874                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18875                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18876
18877                 # Commands to make compiler produce verbose output that lists
18878                 # what "hidden" libraries, object files and flags are used when
18879                 # linking a shared library.
18880                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18881               else
18882                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18883                 # platform.
18884                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18885                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18886                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18887
18888                 # Commands to make compiler produce verbose output that lists
18889                 # what "hidden" libraries, object files and flags are used when
18890                 # linking a shared library.
18891                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18892               fi
18893
18894               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18895               case $host_os in
18896                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18897                 *)
18898                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18899                   ;;
18900               esac
18901             fi
18902             ;;
18903         esac
18904         ;;
18905
18906     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18907       no_undefined_flag_CXX='${wl}-z,text'
18908       archive_cmds_need_lc_CXX=no
18909       hardcode_shlibpath_var_CXX=no
18910       runpath_var='LD_RUN_PATH'
18911
18912       case $cc_basename in
18913         CC*)
18914           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18915           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18916           ;;
18917         *)
18918           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18919           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18920           ;;
18921       esac
18922       ;;
18923
18924       sysv5* | sco3.2v5* | sco5v6*)
18925         # Note: We can NOT use -z defs as we might desire, because we do not
18926         # link with -lc, and that would cause any symbols used from libc to
18927         # always be unresolved, which means just about no library would
18928         # ever link correctly.  If we're not using GNU ld we use -z text
18929         # though, which does catch some bad symbols but isn't as heavy-handed
18930         # as -z defs.
18931         no_undefined_flag_CXX='${wl}-z,text'
18932         allow_undefined_flag_CXX='${wl}-z,nodefs'
18933         archive_cmds_need_lc_CXX=no
18934         hardcode_shlibpath_var_CXX=no
18935         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18936         hardcode_libdir_separator_CXX=':'
18937         link_all_deplibs_CXX=yes
18938         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18939         runpath_var='LD_RUN_PATH'
18940
18941         case $cc_basename in
18942           CC*)
18943             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18944             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18945             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18946               '"$old_archive_cmds_CXX"
18947             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18948               '"$reload_cmds_CXX"
18949             ;;
18950           *)
18951             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18952             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18953             ;;
18954         esac
18955       ;;
18956
18957       tandem*)
18958         case $cc_basename in
18959           NCC*)
18960             # NonStop-UX NCC 3.20
18961             # FIXME: insert proper C++ library support
18962             ld_shlibs_CXX=no
18963             ;;
18964           *)
18965             # FIXME: insert proper C++ library support
18966             ld_shlibs_CXX=no
18967             ;;
18968         esac
18969         ;;
18970
18971       vxworks*)
18972         # FIXME: insert proper C++ library support
18973         ld_shlibs_CXX=no
18974         ;;
18975
18976       *)
18977         # FIXME: insert proper C++ library support
18978         ld_shlibs_CXX=no
18979         ;;
18980     esac
18981
18982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18983 $as_echo "$ld_shlibs_CXX" >&6; }
18984     test "$ld_shlibs_CXX" = no && can_build_shared=no
18985
18986     GCC_CXX="$GXX"
18987     LD_CXX="$LD"
18988
18989     ## CAVEAT EMPTOR:
18990     ## There is no encapsulation within the following macros, do not change
18991     ## the running order or otherwise move them around unless you know exactly
18992     ## what you are doing...
18993     # Dependencies to place before and after the object being linked:
18994 predep_objects_CXX=
18995 postdep_objects_CXX=
18996 predeps_CXX=
18997 postdeps_CXX=
18998 compiler_lib_search_path_CXX=
18999
19000 cat > conftest.$ac_ext <<_LT_EOF
19001 class Foo
19002 {
19003 public:
19004   Foo (void) { a = 0; }
19005 private:
19006   int a;
19007 };
19008 _LT_EOF
19009
19010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19011   (eval $ac_compile) 2>&5
19012   ac_status=$?
19013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19014   test $ac_status = 0; }; then
19015   # Parse the compiler output and extract the necessary
19016   # objects, libraries and library flags.
19017
19018   # Sentinel used to keep track of whether or not we are before
19019   # the conftest object file.
19020   pre_test_object_deps_done=no
19021
19022   for p in `eval "$output_verbose_link_cmd"`; do
19023     case $p in
19024
19025     -L* | -R* | -l*)
19026        # Some compilers place space between "-{L,R}" and the path.
19027        # Remove the space.
19028        if test $p = "-L" ||
19029           test $p = "-R"; then
19030          prev=$p
19031          continue
19032        else
19033          prev=
19034        fi
19035
19036        if test "$pre_test_object_deps_done" = no; then
19037          case $p in
19038          -L* | -R*)
19039            # Internal compiler library paths should come after those
19040            # provided the user.  The postdeps already come after the
19041            # user supplied libs so there is no need to process them.
19042            if test -z "$compiler_lib_search_path_CXX"; then
19043              compiler_lib_search_path_CXX="${prev}${p}"
19044            else
19045              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19046            fi
19047            ;;
19048          # The "-l" case would never come before the object being
19049          # linked, so don't bother handling this case.
19050          esac
19051        else
19052          if test -z "$postdeps_CXX"; then
19053            postdeps_CXX="${prev}${p}"
19054          else
19055            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19056          fi
19057        fi
19058        ;;
19059
19060     *.$objext)
19061        # This assumes that the test object file only shows up
19062        # once in the compiler output.
19063        if test "$p" = "conftest.$objext"; then
19064          pre_test_object_deps_done=yes
19065          continue
19066        fi
19067
19068        if test "$pre_test_object_deps_done" = no; then
19069          if test -z "$predep_objects_CXX"; then
19070            predep_objects_CXX="$p"
19071          else
19072            predep_objects_CXX="$predep_objects_CXX $p"
19073          fi
19074        else
19075          if test -z "$postdep_objects_CXX"; then
19076            postdep_objects_CXX="$p"
19077          else
19078            postdep_objects_CXX="$postdep_objects_CXX $p"
19079          fi
19080        fi
19081        ;;
19082
19083     *) ;; # Ignore the rest.
19084
19085     esac
19086   done
19087
19088   # Clean up.
19089   rm -f a.out a.exe
19090 else
19091   echo "libtool.m4: error: problem compiling CXX test program"
19092 fi
19093
19094 $RM -f confest.$objext
19095
19096 # PORTME: override above test on systems where it is broken
19097 case $host_os in
19098 interix[3-9]*)
19099   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19100   # hack all around it, let's just trust "g++" to DTRT.
19101   predep_objects_CXX=
19102   postdep_objects_CXX=
19103   postdeps_CXX=
19104   ;;
19105
19106 linux*)
19107   case `$CC -V 2>&1 | sed 5q` in
19108   *Sun\ C*)
19109     # Sun C++ 5.9
19110
19111     # The more standards-conforming stlport4 library is
19112     # incompatible with the Cstd library. Avoid specifying
19113     # it if it's in CXXFLAGS. Ignore libCrun as
19114     # -library=stlport4 depends on it.
19115     case " $CXX $CXXFLAGS " in
19116     *" -library=stlport4 "*)
19117       solaris_use_stlport4=yes
19118       ;;
19119     esac
19120
19121     if test "$solaris_use_stlport4" != yes; then
19122       postdeps_CXX='-library=Cstd -library=Crun'
19123     fi
19124     ;;
19125   esac
19126   ;;
19127
19128 solaris*)
19129   case $cc_basename in
19130   CC*)
19131     # The more standards-conforming stlport4 library is
19132     # incompatible with the Cstd library. Avoid specifying
19133     # it if it's in CXXFLAGS. Ignore libCrun as
19134     # -library=stlport4 depends on it.
19135     case " $CXX $CXXFLAGS " in
19136     *" -library=stlport4 "*)
19137       solaris_use_stlport4=yes
19138       ;;
19139     esac
19140
19141     # Adding this requires a known-good setup of shared libraries for
19142     # Sun compiler versions before 5.6, else PIC objects from an old
19143     # archive will be linked into the output, leading to subtle bugs.
19144     if test "$solaris_use_stlport4" != yes; then
19145       postdeps_CXX='-library=Cstd -library=Crun'
19146     fi
19147     ;;
19148   esac
19149   ;;
19150 esac
19151
19152
19153 case " $postdeps_CXX " in
19154 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19155 esac
19156  compiler_lib_search_dirs_CXX=
19157 if test -n "${compiler_lib_search_path_CXX}"; then
19158  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19159 fi
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191     lt_prog_compiler_wl_CXX=
19192 lt_prog_compiler_pic_CXX=
19193 lt_prog_compiler_static_CXX=
19194
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19196 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19197
19198   # C++ specific cases for pic, static, wl, etc.
19199   if test "$GXX" = yes; then
19200     lt_prog_compiler_wl_CXX='-Wl,'
19201     lt_prog_compiler_static_CXX='-static'
19202
19203     case $host_os in
19204     aix*)
19205       # All AIX code is PIC.
19206       if test "$host_cpu" = ia64; then
19207         # AIX 5 now supports IA64 processor
19208         lt_prog_compiler_static_CXX='-Bstatic'
19209       fi
19210       ;;
19211
19212     amigaos*)
19213       case $host_cpu in
19214       powerpc)
19215             # see comment about AmigaOS4 .so support
19216             lt_prog_compiler_pic_CXX='-fPIC'
19217         ;;
19218       m68k)
19219             # FIXME: we need at least 68020 code to build shared libraries, but
19220             # adding the `-m68020' flag to GCC prevents building anything better,
19221             # like `-m68040'.
19222             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19223         ;;
19224       esac
19225       ;;
19226
19227     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19228       # PIC is the default for these OSes.
19229       ;;
19230     mingw* | cygwin* | os2* | pw32* | cegcc*)
19231       # This hack is so that the source file can tell whether it is being
19232       # built for inclusion in a dll (and should export symbols for example).
19233       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19234       # (--disable-auto-import) libraries
19235       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19236       ;;
19237     darwin* | rhapsody*)
19238       # PIC is the default on this platform
19239       # Common symbols not allowed in MH_DYLIB files
19240       lt_prog_compiler_pic_CXX='-fno-common'
19241       ;;
19242     *djgpp*)
19243       # DJGPP does not support shared libraries at all
19244       lt_prog_compiler_pic_CXX=
19245       ;;
19246     haiku*)
19247       # PIC is the default for Haiku.
19248       # The "-static" flag exists, but is broken.
19249       lt_prog_compiler_static_CXX=
19250       ;;
19251     interix[3-9]*)
19252       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19253       # Instead, we relocate shared libraries at runtime.
19254       ;;
19255     sysv4*MP*)
19256       if test -d /usr/nec; then
19257         lt_prog_compiler_pic_CXX=-Kconform_pic
19258       fi
19259       ;;
19260     hpux*)
19261       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19262       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19263       # sets the default TLS model and affects inlining.
19264       case $host_cpu in
19265       hppa*64*)
19266         ;;
19267       *)
19268         lt_prog_compiler_pic_CXX='-fPIC'
19269         ;;
19270       esac
19271       ;;
19272     *qnx* | *nto*)
19273       # QNX uses GNU C++, but need to define -shared option too, otherwise
19274       # it will coredump.
19275       lt_prog_compiler_pic_CXX='-fPIC -shared'
19276       ;;
19277     *)
19278       lt_prog_compiler_pic_CXX='-fPIC'
19279       ;;
19280     esac
19281   else
19282     case $host_os in
19283       aix[4-9]*)
19284         # All AIX code is PIC.
19285         if test "$host_cpu" = ia64; then
19286           # AIX 5 now supports IA64 processor
19287           lt_prog_compiler_static_CXX='-Bstatic'
19288         else
19289           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19290         fi
19291         ;;
19292       chorus*)
19293         case $cc_basename in
19294         cxch68*)
19295           # Green Hills C++ Compiler
19296           # _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"
19297           ;;
19298         esac
19299         ;;
19300       dgux*)
19301         case $cc_basename in
19302           ec++*)
19303             lt_prog_compiler_pic_CXX='-KPIC'
19304             ;;
19305           ghcx*)
19306             # Green Hills C++ Compiler
19307             lt_prog_compiler_pic_CXX='-pic'
19308             ;;
19309           *)
19310             ;;
19311         esac
19312         ;;
19313       freebsd* | dragonfly*)
19314         # FreeBSD uses GNU C++
19315         ;;
19316       hpux9* | hpux10* | hpux11*)
19317         case $cc_basename in
19318           CC*)
19319             lt_prog_compiler_wl_CXX='-Wl,'
19320             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19321             if test "$host_cpu" != ia64; then
19322               lt_prog_compiler_pic_CXX='+Z'
19323             fi
19324             ;;
19325           aCC*)
19326             lt_prog_compiler_wl_CXX='-Wl,'
19327             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19328             case $host_cpu in
19329             hppa*64*|ia64*)
19330               # +Z the default
19331               ;;
19332             *)
19333               lt_prog_compiler_pic_CXX='+Z'
19334               ;;
19335             esac
19336             ;;
19337           *)
19338             ;;
19339         esac
19340         ;;
19341       interix*)
19342         # This is c89, which is MS Visual C++ (no shared libs)
19343         # Anyone wants to do a port?
19344         ;;
19345       irix5* | irix6* | nonstopux*)
19346         case $cc_basename in
19347           CC*)
19348             lt_prog_compiler_wl_CXX='-Wl,'
19349             lt_prog_compiler_static_CXX='-non_shared'
19350             # CC pic flag -KPIC is the default.
19351             ;;
19352           *)
19353             ;;
19354         esac
19355         ;;
19356       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19357         case $cc_basename in
19358           KCC*)
19359             # KAI C++ Compiler
19360             lt_prog_compiler_wl_CXX='--backend -Wl,'
19361             lt_prog_compiler_pic_CXX='-fPIC'
19362             ;;
19363           ecpc* )
19364             # old Intel C++ for x86_64 which still supported -KPIC.
19365             lt_prog_compiler_wl_CXX='-Wl,'
19366             lt_prog_compiler_pic_CXX='-KPIC'
19367             lt_prog_compiler_static_CXX='-static'
19368             ;;
19369           icpc* )
19370             # Intel C++, used to be incompatible with GCC.
19371             # ICC 10 doesn't accept -KPIC any more.
19372             lt_prog_compiler_wl_CXX='-Wl,'
19373             lt_prog_compiler_pic_CXX='-fPIC'
19374             lt_prog_compiler_static_CXX='-static'
19375             ;;
19376           pgCC* | pgcpp*)
19377             # Portland Group C++ compiler
19378             lt_prog_compiler_wl_CXX='-Wl,'
19379             lt_prog_compiler_pic_CXX='-fpic'
19380             lt_prog_compiler_static_CXX='-Bstatic'
19381             ;;
19382           cxx*)
19383             # Compaq C++
19384             # Make sure the PIC flag is empty.  It appears that all Alpha
19385             # Linux and Compaq Tru64 Unix objects are PIC.
19386             lt_prog_compiler_pic_CXX=
19387             lt_prog_compiler_static_CXX='-non_shared'
19388             ;;
19389           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19390             # IBM XL 8.0, 9.0 on PPC and BlueGene
19391             lt_prog_compiler_wl_CXX='-Wl,'
19392             lt_prog_compiler_pic_CXX='-qpic'
19393             lt_prog_compiler_static_CXX='-qstaticlink'
19394             ;;
19395           *)
19396             case `$CC -V 2>&1 | sed 5q` in
19397             *Sun\ C*)
19398               # Sun C++ 5.9
19399               lt_prog_compiler_pic_CXX='-KPIC'
19400               lt_prog_compiler_static_CXX='-Bstatic'
19401               lt_prog_compiler_wl_CXX='-Qoption ld '
19402               ;;
19403             esac
19404             ;;
19405         esac
19406         ;;
19407       lynxos*)
19408         ;;
19409       m88k*)
19410         ;;
19411       mvs*)
19412         case $cc_basename in
19413           cxx*)
19414             lt_prog_compiler_pic_CXX='-W c,exportall'
19415             ;;
19416           *)
19417             ;;
19418         esac
19419         ;;
19420       netbsd*)
19421         ;;
19422       *qnx* | *nto*)
19423         # QNX uses GNU C++, but need to define -shared option too, otherwise
19424         # it will coredump.
19425         lt_prog_compiler_pic_CXX='-fPIC -shared'
19426         ;;
19427       osf3* | osf4* | osf5*)
19428         case $cc_basename in
19429           KCC*)
19430             lt_prog_compiler_wl_CXX='--backend -Wl,'
19431             ;;
19432           RCC*)
19433             # Rational C++ 2.4.1
19434             lt_prog_compiler_pic_CXX='-pic'
19435             ;;
19436           cxx*)
19437             # Digital/Compaq C++
19438             lt_prog_compiler_wl_CXX='-Wl,'
19439             # Make sure the PIC flag is empty.  It appears that all Alpha
19440             # Linux and Compaq Tru64 Unix objects are PIC.
19441             lt_prog_compiler_pic_CXX=
19442             lt_prog_compiler_static_CXX='-non_shared'
19443             ;;
19444           *)
19445             ;;
19446         esac
19447         ;;
19448       psos*)
19449         ;;
19450       solaris*)
19451         case $cc_basename in
19452           CC*)
19453             # Sun C++ 4.2, 5.x and Centerline C++
19454             lt_prog_compiler_pic_CXX='-KPIC'
19455             lt_prog_compiler_static_CXX='-Bstatic'
19456             lt_prog_compiler_wl_CXX='-Qoption ld '
19457             ;;
19458           gcx*)
19459             # Green Hills C++ Compiler
19460             lt_prog_compiler_pic_CXX='-PIC'
19461             ;;
19462           *)
19463             ;;
19464         esac
19465         ;;
19466       sunos4*)
19467         case $cc_basename in
19468           CC*)
19469             # Sun C++ 4.x
19470             lt_prog_compiler_pic_CXX='-pic'
19471             lt_prog_compiler_static_CXX='-Bstatic'
19472             ;;
19473           lcc*)
19474             # Lucid
19475             lt_prog_compiler_pic_CXX='-pic'
19476             ;;
19477           *)
19478             ;;
19479         esac
19480         ;;
19481       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19482         case $cc_basename in
19483           CC*)
19484             lt_prog_compiler_wl_CXX='-Wl,'
19485             lt_prog_compiler_pic_CXX='-KPIC'
19486             lt_prog_compiler_static_CXX='-Bstatic'
19487             ;;
19488         esac
19489         ;;
19490       tandem*)
19491         case $cc_basename in
19492           NCC*)
19493             # NonStop-UX NCC 3.20
19494             lt_prog_compiler_pic_CXX='-KPIC'
19495             ;;
19496           *)
19497             ;;
19498         esac
19499         ;;
19500       vxworks*)
19501         ;;
19502       *)
19503         lt_prog_compiler_can_build_shared_CXX=no
19504         ;;
19505     esac
19506   fi
19507
19508 case $host_os in
19509   # For platforms which do not support PIC, -DPIC is meaningless:
19510   *djgpp*)
19511     lt_prog_compiler_pic_CXX=
19512     ;;
19513   *)
19514     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19515     ;;
19516 esac
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19518 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19519
19520
19521
19522 #
19523 # Check to make sure the PIC flag actually works.
19524 #
19525 if test -n "$lt_prog_compiler_pic_CXX"; then
19526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19527 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19528 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19529   $as_echo_n "(cached) " >&6
19530 else
19531   lt_cv_prog_compiler_pic_works_CXX=no
19532    ac_outfile=conftest.$ac_objext
19533    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19534    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19535    # Insert the option either (1) after the last *FLAGS variable, or
19536    # (2) before a word containing "conftest.", or (3) at the end.
19537    # Note that $ac_compile itself does not contain backslashes and begins
19538    # with a dollar sign (not a hyphen), so the echo should work correctly.
19539    # The option is referenced via a variable to avoid confusing sed.
19540    lt_compile=`echo "$ac_compile" | $SED \
19541    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19543    -e 's:$: $lt_compiler_flag:'`
19544    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19545    (eval "$lt_compile" 2>conftest.err)
19546    ac_status=$?
19547    cat conftest.err >&5
19548    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549    if (exit $ac_status) && test -s "$ac_outfile"; then
19550      # The compiler can only warn and ignore the option if not recognized
19551      # So say no if there are warnings other than the usual output.
19552      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19553      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19554      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19555        lt_cv_prog_compiler_pic_works_CXX=yes
19556      fi
19557    fi
19558    $RM conftest*
19559
19560 fi
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19562 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19563
19564 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19565     case $lt_prog_compiler_pic_CXX in
19566      "" | " "*) ;;
19567      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19568      esac
19569 else
19570     lt_prog_compiler_pic_CXX=
19571      lt_prog_compiler_can_build_shared_CXX=no
19572 fi
19573
19574 fi
19575
19576
19577
19578 #
19579 # Check to make sure the static flag actually works.
19580 #
19581 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19583 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19584 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19585   $as_echo_n "(cached) " >&6
19586 else
19587   lt_cv_prog_compiler_static_works_CXX=no
19588    save_LDFLAGS="$LDFLAGS"
19589    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19590    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19591    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19592      # The linker can only warn and ignore the option if not recognized
19593      # So say no if there are warnings
19594      if test -s conftest.err; then
19595        # Append any errors to the config.log.
19596        cat conftest.err 1>&5
19597        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19598        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19599        if diff conftest.exp conftest.er2 >/dev/null; then
19600          lt_cv_prog_compiler_static_works_CXX=yes
19601        fi
19602      else
19603        lt_cv_prog_compiler_static_works_CXX=yes
19604      fi
19605    fi
19606    $RM -r conftest*
19607    LDFLAGS="$save_LDFLAGS"
19608
19609 fi
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19611 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19612
19613 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19614     :
19615 else
19616     lt_prog_compiler_static_CXX=
19617 fi
19618
19619
19620
19621
19622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19623 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19624 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19625   $as_echo_n "(cached) " >&6
19626 else
19627   lt_cv_prog_compiler_c_o_CXX=no
19628    $RM -r conftest 2>/dev/null
19629    mkdir conftest
19630    cd conftest
19631    mkdir out
19632    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19633
19634    lt_compiler_flag="-o out/conftest2.$ac_objext"
19635    # Insert the option either (1) after the last *FLAGS variable, or
19636    # (2) before a word containing "conftest.", or (3) at the end.
19637    # Note that $ac_compile itself does not contain backslashes and begins
19638    # with a dollar sign (not a hyphen), so the echo should work correctly.
19639    lt_compile=`echo "$ac_compile" | $SED \
19640    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19641    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19642    -e 's:$: $lt_compiler_flag:'`
19643    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19644    (eval "$lt_compile" 2>out/conftest.err)
19645    ac_status=$?
19646    cat out/conftest.err >&5
19647    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19649    then
19650      # The compiler can only warn and ignore the option if not recognized
19651      # So say no if there are warnings
19652      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19653      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19654      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19655        lt_cv_prog_compiler_c_o_CXX=yes
19656      fi
19657    fi
19658    chmod u+w . 2>&5
19659    $RM conftest*
19660    # SGI C++ compiler will create directory out/ii_files/ for
19661    # template instantiation
19662    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19663    $RM out/* && rmdir out
19664    cd ..
19665    $RM -r conftest
19666    $RM conftest*
19667
19668 fi
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19670 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19671
19672
19673
19674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19675 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19676 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19677   $as_echo_n "(cached) " >&6
19678 else
19679   lt_cv_prog_compiler_c_o_CXX=no
19680    $RM -r conftest 2>/dev/null
19681    mkdir conftest
19682    cd conftest
19683    mkdir out
19684    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19685
19686    lt_compiler_flag="-o out/conftest2.$ac_objext"
19687    # Insert the option either (1) after the last *FLAGS variable, or
19688    # (2) before a word containing "conftest.", or (3) at the end.
19689    # Note that $ac_compile itself does not contain backslashes and begins
19690    # with a dollar sign (not a hyphen), so the echo should work correctly.
19691    lt_compile=`echo "$ac_compile" | $SED \
19692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19694    -e 's:$: $lt_compiler_flag:'`
19695    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19696    (eval "$lt_compile" 2>out/conftest.err)
19697    ac_status=$?
19698    cat out/conftest.err >&5
19699    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19701    then
19702      # The compiler can only warn and ignore the option if not recognized
19703      # So say no if there are warnings
19704      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19705      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19706      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19707        lt_cv_prog_compiler_c_o_CXX=yes
19708      fi
19709    fi
19710    chmod u+w . 2>&5
19711    $RM conftest*
19712    # SGI C++ compiler will create directory out/ii_files/ for
19713    # template instantiation
19714    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19715    $RM out/* && rmdir out
19716    cd ..
19717    $RM -r conftest
19718    $RM conftest*
19719
19720 fi
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19722 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19723
19724
19725
19726
19727 hard_links="nottested"
19728 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19729   # do not overwrite the value of need_locks provided by the user
19730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19731 $as_echo_n "checking if we can lock with hard links... " >&6; }
19732   hard_links=yes
19733   $RM conftest*
19734   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19735   touch conftest.a
19736   ln conftest.a conftest.b 2>&5 || hard_links=no
19737   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19739 $as_echo "$hard_links" >&6; }
19740   if test "$hard_links" = no; then
19741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19742 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19743     need_locks=warn
19744   fi
19745 else
19746   need_locks=no
19747 fi
19748
19749
19750
19751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19752 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19753
19754   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19755   case $host_os in
19756   aix[4-9]*)
19757     # If we're using GNU nm, then we don't want the "-C" option.
19758     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19759     # Also, AIX nm treats weak defined symbols like other global defined
19760     # symbols, whereas GNU nm marks them as "W".
19761     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19762       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'
19763     else
19764       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'
19765     fi
19766     ;;
19767   pw32*)
19768     export_symbols_cmds_CXX="$ltdll_cmds"
19769   ;;
19770   cygwin* | mingw* | cegcc*)
19771     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'
19772   ;;
19773   *)
19774     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19775   ;;
19776   esac
19777   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19778
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19780 $as_echo "$ld_shlibs_CXX" >&6; }
19781 test "$ld_shlibs_CXX" = no && can_build_shared=no
19782
19783 with_gnu_ld_CXX=$with_gnu_ld
19784
19785
19786
19787
19788
19789
19790 #
19791 # Do we need to explicitly link libc?
19792 #
19793 case "x$archive_cmds_need_lc_CXX" in
19794 x|xyes)
19795   # Assume -lc should be added
19796   archive_cmds_need_lc_CXX=yes
19797
19798   if test "$enable_shared" = yes && test "$GCC" = yes; then
19799     case $archive_cmds_CXX in
19800     *'~'*)
19801       # FIXME: we may have to deal with multi-command sequences.
19802       ;;
19803     '$CC '*)
19804       # Test whether the compiler implicitly links with -lc since on some
19805       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19806       # to ld, don't add -lc before -lgcc.
19807       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19808 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19809 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19810   $as_echo_n "(cached) " >&6
19811 else
19812   $RM conftest*
19813         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19814
19815         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19816   (eval $ac_compile) 2>&5
19817   ac_status=$?
19818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19819   test $ac_status = 0; } 2>conftest.err; then
19820           soname=conftest
19821           lib=conftest
19822           libobjs=conftest.$ac_objext
19823           deplibs=
19824           wl=$lt_prog_compiler_wl_CXX
19825           pic_flag=$lt_prog_compiler_pic_CXX
19826           compiler_flags=-v
19827           linker_flags=-v
19828           verstring=
19829           output_objdir=.
19830           libname=conftest
19831           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19832           allow_undefined_flag_CXX=
19833           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19834   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19835   ac_status=$?
19836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19837   test $ac_status = 0; }
19838           then
19839             lt_cv_archive_cmds_need_lc_CXX=no
19840           else
19841             lt_cv_archive_cmds_need_lc_CXX=yes
19842           fi
19843           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19844         else
19845           cat conftest.err 1>&5
19846         fi
19847         $RM conftest*
19848
19849 fi
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19851 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19852       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19853       ;;
19854     esac
19855   fi
19856   ;;
19857 esac
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19923 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19924
19925 library_names_spec=
19926 libname_spec='lib$name'
19927 soname_spec=
19928 shrext_cmds=".so"
19929 postinstall_cmds=
19930 postuninstall_cmds=
19931 finish_cmds=
19932 finish_eval=
19933 shlibpath_var=
19934 shlibpath_overrides_runpath=unknown
19935 version_type=none
19936 dynamic_linker="$host_os ld.so"
19937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19938 need_lib_prefix=unknown
19939 hardcode_into_libs=no
19940
19941 # when you set need_version to no, make sure it does not cause -set_version
19942 # flags to be left without arguments
19943 need_version=unknown
19944
19945 case $host_os in
19946 aix3*)
19947   version_type=linux
19948   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19949   shlibpath_var=LIBPATH
19950
19951   # AIX 3 has no versioning support, so we append a major version to the name.
19952   soname_spec='${libname}${release}${shared_ext}$major'
19953   ;;
19954
19955 aix[4-9]*)
19956   version_type=linux
19957   need_lib_prefix=no
19958   need_version=no
19959   hardcode_into_libs=yes
19960   if test "$host_cpu" = ia64; then
19961     # AIX 5 supports IA64
19962     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19963     shlibpath_var=LD_LIBRARY_PATH
19964   else
19965     # With GCC up to 2.95.x, collect2 would create an import file
19966     # for dependence libraries.  The import file would start with
19967     # the line `#! .'.  This would cause the generated library to
19968     # depend on `.', always an invalid library.  This was fixed in
19969     # development snapshots of GCC prior to 3.0.
19970     case $host_os in
19971       aix4 | aix4.[01] | aix4.[01].*)
19972       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19973            echo ' yes '
19974            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19975         :
19976       else
19977         can_build_shared=no
19978       fi
19979       ;;
19980     esac
19981     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19982     # soname into executable. Probably we can add versioning support to
19983     # collect2, so additional links can be useful in future.
19984     if test "$aix_use_runtimelinking" = yes; then
19985       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19986       # instead of lib<name>.a to let people know that these are not
19987       # typical AIX shared libraries.
19988       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19989     else
19990       # We preserve .a as extension for shared libraries through AIX4.2
19991       # and later when we are not doing run time linking.
19992       library_names_spec='${libname}${release}.a $libname.a'
19993       soname_spec='${libname}${release}${shared_ext}$major'
19994     fi
19995     shlibpath_var=LIBPATH
19996   fi
19997   ;;
19998
19999 amigaos*)
20000   case $host_cpu in
20001   powerpc)
20002     # Since July 2007 AmigaOS4 officially supports .so libraries.
20003     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20005     ;;
20006   m68k)
20007     library_names_spec='$libname.ixlibrary $libname.a'
20008     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20009     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'
20010     ;;
20011   esac
20012   ;;
20013
20014 beos*)
20015   library_names_spec='${libname}${shared_ext}'
20016   dynamic_linker="$host_os ld.so"
20017   shlibpath_var=LIBRARY_PATH
20018   ;;
20019
20020 bsdi[45]*)
20021   version_type=linux
20022   need_version=no
20023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20024   soname_spec='${libname}${release}${shared_ext}$major'
20025   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20026   shlibpath_var=LD_LIBRARY_PATH
20027   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20028   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20029   # the default ld.so.conf also contains /usr/contrib/lib and
20030   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20031   # libtool to hard-code these into programs
20032   ;;
20033
20034 cygwin* | mingw* | pw32* | cegcc*)
20035   version_type=windows
20036   shrext_cmds=".dll"
20037   need_version=no
20038   need_lib_prefix=no
20039
20040   case $GCC,$host_os in
20041   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20042     library_names_spec='$libname.dll.a'
20043     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20044     postinstall_cmds='base_file=`basename \${file}`~
20045       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20046       dldir=$destdir/`dirname \$dlpath`~
20047       test -d \$dldir || mkdir -p \$dldir~
20048       $install_prog $dir/$dlname \$dldir/$dlname~
20049       chmod a+x \$dldir/$dlname~
20050       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20051         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20052       fi'
20053     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20054       dlpath=$dir/\$dldll~
20055        $RM \$dlpath'
20056     shlibpath_overrides_runpath=yes
20057
20058     case $host_os in
20059     cygwin*)
20060       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20061       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20062
20063       ;;
20064     mingw* | cegcc*)
20065       # MinGW DLLs use traditional 'lib' prefix
20066       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20067       ;;
20068     pw32*)
20069       # pw32 DLLs use 'pw' prefix rather than 'lib'
20070       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20071       ;;
20072     esac
20073     ;;
20074
20075   *)
20076     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20077     ;;
20078   esac
20079   dynamic_linker='Win32 ld.exe'
20080   # FIXME: first we should search . and the directory the executable is in
20081   shlibpath_var=PATH
20082   ;;
20083
20084 darwin* | rhapsody*)
20085   dynamic_linker="$host_os dyld"
20086   version_type=darwin
20087   need_lib_prefix=no
20088   need_version=no
20089   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20090   soname_spec='${libname}${release}${major}$shared_ext'
20091   shlibpath_overrides_runpath=yes
20092   shlibpath_var=DYLD_LIBRARY_PATH
20093   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20094
20095   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20096   ;;
20097
20098 dgux*)
20099   version_type=linux
20100   need_lib_prefix=no
20101   need_version=no
20102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20103   soname_spec='${libname}${release}${shared_ext}$major'
20104   shlibpath_var=LD_LIBRARY_PATH
20105   ;;
20106
20107 freebsd1*)
20108   dynamic_linker=no
20109   ;;
20110
20111 freebsd* | dragonfly*)
20112   # DragonFly does not have aout.  When/if they implement a new
20113   # versioning mechanism, adjust this.
20114   if test -x /usr/bin/objformat; then
20115     objformat=`/usr/bin/objformat`
20116   else
20117     case $host_os in
20118     freebsd[123]*) objformat=aout ;;
20119     *) objformat=elf ;;
20120     esac
20121   fi
20122   version_type=freebsd-$objformat
20123   case $version_type in
20124     freebsd-elf*)
20125       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20126       need_version=no
20127       need_lib_prefix=no
20128       ;;
20129     freebsd-*)
20130       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20131       need_version=yes
20132       ;;
20133   esac
20134   shlibpath_var=LD_LIBRARY_PATH
20135   case $host_os in
20136   freebsd2*)
20137     shlibpath_overrides_runpath=yes
20138     ;;
20139   freebsd3.[01]* | freebsdelf3.[01]*)
20140     shlibpath_overrides_runpath=yes
20141     hardcode_into_libs=yes
20142     ;;
20143   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20144   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20145     shlibpath_overrides_runpath=no
20146     hardcode_into_libs=yes
20147     ;;
20148   *) # from 4.6 on, and DragonFly
20149     shlibpath_overrides_runpath=yes
20150     hardcode_into_libs=yes
20151     ;;
20152   esac
20153   ;;
20154
20155 gnu*)
20156   version_type=linux
20157   need_lib_prefix=no
20158   need_version=no
20159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20160   soname_spec='${libname}${release}${shared_ext}$major'
20161   shlibpath_var=LD_LIBRARY_PATH
20162   hardcode_into_libs=yes
20163   ;;
20164
20165 haiku*)
20166   version_type=linux
20167   need_lib_prefix=no
20168   need_version=no
20169   dynamic_linker="$host_os runtime_loader"
20170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20171   soname_spec='${libname}${release}${shared_ext}$major'
20172   shlibpath_var=LIBRARY_PATH
20173   shlibpath_overrides_runpath=yes
20174   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20175   hardcode_into_libs=yes
20176   ;;
20177
20178 hpux9* | hpux10* | hpux11*)
20179   # Give a soname corresponding to the major version so that dld.sl refuses to
20180   # link against other versions.
20181   version_type=sunos
20182   need_lib_prefix=no
20183   need_version=no
20184   case $host_cpu in
20185   ia64*)
20186     shrext_cmds='.so'
20187     hardcode_into_libs=yes
20188     dynamic_linker="$host_os dld.so"
20189     shlibpath_var=LD_LIBRARY_PATH
20190     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20192     soname_spec='${libname}${release}${shared_ext}$major'
20193     if test "X$HPUX_IA64_MODE" = X32; then
20194       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20195     else
20196       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20197     fi
20198     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20199     ;;
20200   hppa*64*)
20201     shrext_cmds='.sl'
20202     hardcode_into_libs=yes
20203     dynamic_linker="$host_os dld.sl"
20204     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20205     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207     soname_spec='${libname}${release}${shared_ext}$major'
20208     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20209     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20210     ;;
20211   *)
20212     shrext_cmds='.sl'
20213     dynamic_linker="$host_os dld.sl"
20214     shlibpath_var=SHLIB_PATH
20215     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20217     soname_spec='${libname}${release}${shared_ext}$major'
20218     ;;
20219   esac
20220   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20221   postinstall_cmds='chmod 555 $lib'
20222   # or fails outright, so override atomically:
20223   install_override_mode=555
20224   ;;
20225
20226 interix[3-9]*)
20227   version_type=linux
20228   need_lib_prefix=no
20229   need_version=no
20230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20231   soname_spec='${libname}${release}${shared_ext}$major'
20232   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20233   shlibpath_var=LD_LIBRARY_PATH
20234   shlibpath_overrides_runpath=no
20235   hardcode_into_libs=yes
20236   ;;
20237
20238 irix5* | irix6* | nonstopux*)
20239   case $host_os in
20240     nonstopux*) version_type=nonstopux ;;
20241     *)
20242         if test "$lt_cv_prog_gnu_ld" = yes; then
20243                 version_type=linux
20244         else
20245                 version_type=irix
20246         fi ;;
20247   esac
20248   need_lib_prefix=no
20249   need_version=no
20250   soname_spec='${libname}${release}${shared_ext}$major'
20251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20252   case $host_os in
20253   irix5* | nonstopux*)
20254     libsuff= shlibsuff=
20255     ;;
20256   *)
20257     case $LD in # libtool.m4 will add one of these switches to LD
20258     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20259       libsuff= shlibsuff= libmagic=32-bit;;
20260     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20261       libsuff=32 shlibsuff=N32 libmagic=N32;;
20262     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20263       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20264     *) libsuff= shlibsuff= libmagic=never-match;;
20265     esac
20266     ;;
20267   esac
20268   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20269   shlibpath_overrides_runpath=no
20270   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20271   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20272   hardcode_into_libs=yes
20273   ;;
20274
20275 # No shared lib support for Linux oldld, aout, or coff.
20276 linux*oldld* | linux*aout* | linux*coff*)
20277   dynamic_linker=no
20278   ;;
20279
20280 # This must be Linux ELF.
20281 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20282   version_type=linux
20283   need_lib_prefix=no
20284   need_version=no
20285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286   soname_spec='${libname}${release}${shared_ext}$major'
20287   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20288   shlibpath_var=LD_LIBRARY_PATH
20289   shlibpath_overrides_runpath=no
20290
20291   # Some binutils ld are patched to set DT_RUNPATH
20292   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20293   $as_echo_n "(cached) " >&6
20294 else
20295   lt_cv_shlibpath_overrides_runpath=no
20296     save_LDFLAGS=$LDFLAGS
20297     save_libdir=$libdir
20298     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20299          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h.  */
20302
20303 int
20304 main ()
20305 {
20306
20307   ;
20308   return 0;
20309 }
20310 _ACEOF
20311 if ac_fn_cxx_try_link "$LINENO"; then :
20312   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20313   lt_cv_shlibpath_overrides_runpath=yes
20314 fi
20315 fi
20316 rm -f core conftest.err conftest.$ac_objext \
20317     conftest$ac_exeext conftest.$ac_ext
20318     LDFLAGS=$save_LDFLAGS
20319     libdir=$save_libdir
20320
20321 fi
20322
20323   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20324
20325   # This implies no fast_install, which is unacceptable.
20326   # Some rework will be needed to allow for fast_install
20327   # before this can be enabled.
20328   hardcode_into_libs=yes
20329
20330   # Append ld.so.conf contents to the search path
20331   if test -f /etc/ld.so.conf; then
20332     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' ' '`
20333     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20334   fi
20335
20336   # We used to test for /lib/ld.so.1 and disable shared libraries on
20337   # powerpc, because MkLinux only supported shared libraries with the
20338   # GNU dynamic linker.  Since this was broken with cross compilers,
20339   # most powerpc-linux boxes support dynamic linking these days and
20340   # people can always --disable-shared, the test was removed, and we
20341   # assume the GNU/Linux dynamic linker is in use.
20342   dynamic_linker='GNU/Linux ld.so'
20343   ;;
20344
20345 netbsd*)
20346   version_type=sunos
20347   need_lib_prefix=no
20348   need_version=no
20349   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352     dynamic_linker='NetBSD (a.out) ld.so'
20353   else
20354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20355     soname_spec='${libname}${release}${shared_ext}$major'
20356     dynamic_linker='NetBSD ld.elf_so'
20357   fi
20358   shlibpath_var=LD_LIBRARY_PATH
20359   shlibpath_overrides_runpath=yes
20360   hardcode_into_libs=yes
20361   ;;
20362
20363 newsos6)
20364   version_type=linux
20365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366   shlibpath_var=LD_LIBRARY_PATH
20367   shlibpath_overrides_runpath=yes
20368   ;;
20369
20370 *nto* | *qnx*)
20371   version_type=qnx
20372   need_lib_prefix=no
20373   need_version=no
20374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375   soname_spec='${libname}${release}${shared_ext}$major'
20376   shlibpath_var=LD_LIBRARY_PATH
20377   shlibpath_overrides_runpath=no
20378   hardcode_into_libs=yes
20379   dynamic_linker='ldqnx.so'
20380   ;;
20381
20382 openbsd*)
20383   version_type=sunos
20384   sys_lib_dlsearch_path_spec="/usr/lib"
20385   need_lib_prefix=no
20386   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20387   case $host_os in
20388     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20389     *)                          need_version=no  ;;
20390   esac
20391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20392   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20393   shlibpath_var=LD_LIBRARY_PATH
20394   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20395     case $host_os in
20396       openbsd2.[89] | openbsd2.[89].*)
20397         shlibpath_overrides_runpath=no
20398         ;;
20399       *)
20400         shlibpath_overrides_runpath=yes
20401         ;;
20402       esac
20403   else
20404     shlibpath_overrides_runpath=yes
20405   fi
20406   ;;
20407
20408 os2*)
20409   libname_spec='$name'
20410   shrext_cmds=".dll"
20411   need_lib_prefix=no
20412   library_names_spec='$libname${shared_ext} $libname.a'
20413   dynamic_linker='OS/2 ld.exe'
20414   shlibpath_var=LIBPATH
20415   ;;
20416
20417 osf3* | osf4* | osf5*)
20418   version_type=osf
20419   need_lib_prefix=no
20420   need_version=no
20421   soname_spec='${libname}${release}${shared_ext}$major'
20422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423   shlibpath_var=LD_LIBRARY_PATH
20424   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20425   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20426   ;;
20427
20428 rdos*)
20429   dynamic_linker=no
20430   ;;
20431
20432 solaris*)
20433   version_type=linux
20434   need_lib_prefix=no
20435   need_version=no
20436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20437   soname_spec='${libname}${release}${shared_ext}$major'
20438   shlibpath_var=LD_LIBRARY_PATH
20439   shlibpath_overrides_runpath=yes
20440   hardcode_into_libs=yes
20441   # ldd complains unless libraries are executable
20442   postinstall_cmds='chmod +x $lib'
20443   ;;
20444
20445 sunos4*)
20446   version_type=sunos
20447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20448   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20449   shlibpath_var=LD_LIBRARY_PATH
20450   shlibpath_overrides_runpath=yes
20451   if test "$with_gnu_ld" = yes; then
20452     need_lib_prefix=no
20453   fi
20454   need_version=yes
20455   ;;
20456
20457 sysv4 | sysv4.3*)
20458   version_type=linux
20459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20460   soname_spec='${libname}${release}${shared_ext}$major'
20461   shlibpath_var=LD_LIBRARY_PATH
20462   case $host_vendor in
20463     sni)
20464       shlibpath_overrides_runpath=no
20465       need_lib_prefix=no
20466       runpath_var=LD_RUN_PATH
20467       ;;
20468     siemens)
20469       need_lib_prefix=no
20470       ;;
20471     motorola)
20472       need_lib_prefix=no
20473       need_version=no
20474       shlibpath_overrides_runpath=no
20475       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20476       ;;
20477   esac
20478   ;;
20479
20480 sysv4*MP*)
20481   if test -d /usr/nec ;then
20482     version_type=linux
20483     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20484     soname_spec='$libname${shared_ext}.$major'
20485     shlibpath_var=LD_LIBRARY_PATH
20486   fi
20487   ;;
20488
20489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20490   version_type=freebsd-elf
20491   need_lib_prefix=no
20492   need_version=no
20493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20494   soname_spec='${libname}${release}${shared_ext}$major'
20495   shlibpath_var=LD_LIBRARY_PATH
20496   shlibpath_overrides_runpath=yes
20497   hardcode_into_libs=yes
20498   if test "$with_gnu_ld" = yes; then
20499     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20500   else
20501     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20502     case $host_os in
20503       sco3.2v5*)
20504         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20505         ;;
20506     esac
20507   fi
20508   sys_lib_dlsearch_path_spec='/usr/lib'
20509   ;;
20510
20511 tpf*)
20512   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20513   version_type=linux
20514   need_lib_prefix=no
20515   need_version=no
20516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20517   shlibpath_var=LD_LIBRARY_PATH
20518   shlibpath_overrides_runpath=no
20519   hardcode_into_libs=yes
20520   ;;
20521
20522 uts4*)
20523   version_type=linux
20524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525   soname_spec='${libname}${release}${shared_ext}$major'
20526   shlibpath_var=LD_LIBRARY_PATH
20527   ;;
20528
20529 *)
20530   dynamic_linker=no
20531   ;;
20532 esac
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20534 $as_echo "$dynamic_linker" >&6; }
20535 test "$dynamic_linker" = no && can_build_shared=no
20536
20537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20538 if test "$GCC" = yes; then
20539   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20540 fi
20541
20542 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20543   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20544 fi
20545 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20546   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20547 fi
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20587 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20588 hardcode_action_CXX=
20589 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20590    test -n "$runpath_var_CXX" ||
20591    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20592
20593   # We can hardcode non-existent directories.
20594   if test "$hardcode_direct_CXX" != no &&
20595      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20596      # have to relink, otherwise we might link with an installed library
20597      # when we should be linking with a yet-to-be-installed one
20598      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20599      test "$hardcode_minus_L_CXX" != no; then
20600     # Linking always hardcodes the temporary library directory.
20601     hardcode_action_CXX=relink
20602   else
20603     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20604     hardcode_action_CXX=immediate
20605   fi
20606 else
20607   # We cannot hardcode anything, or else we can only hardcode existing
20608   # directories.
20609   hardcode_action_CXX=unsupported
20610 fi
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20612 $as_echo "$hardcode_action_CXX" >&6; }
20613
20614 if test "$hardcode_action_CXX" = relink ||
20615    test "$inherit_rpath_CXX" = yes; then
20616   # Fast installation is not supported
20617   enable_fast_install=no
20618 elif test "$shlibpath_overrides_runpath" = yes ||
20619      test "$enable_shared" = no; then
20620   # Fast installation is not necessary
20621   enable_fast_install=needless
20622 fi
20623
20624
20625
20626
20627
20628
20629
20630   fi # test -n "$compiler"
20631
20632   CC=$lt_save_CC
20633   LDCXX=$LD
20634   LD=$lt_save_LD
20635   GCC=$lt_save_GCC
20636   with_gnu_ld=$lt_save_with_gnu_ld
20637   lt_cv_path_LDCXX=$lt_cv_path_LD
20638   lt_cv_path_LD=$lt_save_path_LD
20639   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20640   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20641 fi # test "$_lt_caught_CXX_error" != yes
20642
20643 ac_ext=c
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664 # Only expand once:
20665
20666
20667
20668
20669
20670 # Identify the assembler which will work hand-in-glove with the newly
20671 # built GCC, so that we can examine its features.  This is the assembler
20672 # which will be driven by the driver program.
20673 #
20674 # If build != host, and we aren't building gas in-tree, we identify a
20675 # build->target assembler and hope that it will have the same features
20676 # as the host->target assembler we'll be using.
20677 gcc_cv_gas_major_version=
20678 gcc_cv_gas_minor_version=
20679 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20680
20681 if test "${gcc_cv_as+set}" = set; then :
20682
20683 else
20684
20685 if test -x "$DEFAULT_ASSEMBLER"; then
20686         gcc_cv_as="$DEFAULT_ASSEMBLER"
20687 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20688      && test -f ../gas/Makefile \
20689      && test x$build = x$host; then
20690         gcc_cv_as=../gas/as-new$build_exeext
20691 elif test -x as$build_exeext; then
20692         # Build using assembler in the current directory.
20693         gcc_cv_as=./as$build_exeext
20694 elif test -x $AS_FOR_TARGET; then
20695         gcc_cv_as="$AS_FOR_TARGET"
20696 else
20697         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20698 set dummy $AS_FOR_TARGET; ac_word=$2
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20700 $as_echo_n "checking for $ac_word... " >&6; }
20701 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20702   $as_echo_n "(cached) " >&6
20703 else
20704   case $gcc_cv_as in
20705   [\\/]* | ?:[\\/]*)
20706   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20707   ;;
20708   *)
20709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20710 for as_dir in $PATH
20711 do
20712   IFS=$as_save_IFS
20713   test -z "$as_dir" && as_dir=.
20714     for ac_exec_ext in '' $ac_executable_extensions; do
20715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20716     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20718     break 2
20719   fi
20720 done
20721   done
20722 IFS=$as_save_IFS
20723
20724   ;;
20725 esac
20726 fi
20727 gcc_cv_as=$ac_cv_path_gcc_cv_as
20728 if test -n "$gcc_cv_as"; then
20729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20730 $as_echo "$gcc_cv_as" >&6; }
20731 else
20732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20733 $as_echo "no" >&6; }
20734 fi
20735
20736
20737 fi
20738 fi
20739
20740 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20741
20742 case "$ORIGINAL_AS_FOR_TARGET" in
20743   ./as | ./as$build_exeext) ;;
20744   *) ac_config_files="$ac_config_files as:exec-tool.in"
20745  ;;
20746 esac
20747
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20749 $as_echo_n "checking what assembler to use... " >&6; }
20750 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20751   # Single tree build which includes gas.  We want to prefer it
20752   # over whatever linker top-level may have detected, since
20753   # we'll use what we're building after installation anyway.
20754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20755 $as_echo "newly built gas" >&6; }
20756   in_tree_gas=yes
20757   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20758 for f in $gcc_cv_as_bfd_srcdir/configure \
20759          $gcc_cv_as_gas_srcdir/configure \
20760          $gcc_cv_as_gas_srcdir/configure.in \
20761          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20762   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20763   if test x$gcc_cv_gas_version != x; then
20764     break
20765   fi
20766 done
20767 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20768 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20769 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20770 case $gcc_cv_gas_patch_version in
20771   "") gcc_cv_gas_patch_version="0" ;;
20772 esac
20773 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20774                             + $gcc_cv_gas_minor_version \) \* 1000 \
20775                             + $gcc_cv_gas_patch_version`
20776
20777   in_tree_gas_is_elf=no
20778   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20779      || (grep 'obj_format = multi' ../gas/Makefile \
20780          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20781   then
20782     in_tree_gas_is_elf=yes
20783   fi
20784 else
20785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20786 $as_echo "$gcc_cv_as" >&6; }
20787   in_tree_gas=no
20788 fi
20789
20790 # Identify the linker which will work hand-in-glove with the newly
20791 # built GCC, so that we can examine its features.  This is the linker
20792 # which will be driven by the driver program.
20793 #
20794 # If build != host, and we aren't building gas in-tree, we identify a
20795 # build->target linker and hope that it will have the same features
20796 # as the host->target linker we'll be using.
20797 gcc_cv_gld_major_version=
20798 gcc_cv_gld_minor_version=
20799 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20800 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20801
20802 if test "${gcc_cv_ld+set}" = set; then :
20803
20804 else
20805
20806 if test -x "$DEFAULT_LINKER"; then
20807         gcc_cv_ld="$DEFAULT_LINKER"
20808 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20809      && test -f ../ld/Makefile \
20810      && test x$build = x$host; then
20811         gcc_cv_ld=../ld/ld-new$build_exeext
20812 elif test -x collect-ld$build_exeext; then
20813         # Build using linker in the current directory.
20814         gcc_cv_ld=./collect-ld$build_exeext
20815 elif test -x $LD_FOR_TARGET; then
20816         gcc_cv_ld="$LD_FOR_TARGET"
20817 else
20818         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20819 set dummy $LD_FOR_TARGET; ac_word=$2
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20821 $as_echo_n "checking for $ac_word... " >&6; }
20822 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20823   $as_echo_n "(cached) " >&6
20824 else
20825   case $gcc_cv_ld in
20826   [\\/]* | ?:[\\/]*)
20827   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20828   ;;
20829   *)
20830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20831 for as_dir in $PATH
20832 do
20833   IFS=$as_save_IFS
20834   test -z "$as_dir" && as_dir=.
20835     for ac_exec_ext in '' $ac_executable_extensions; do
20836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20837     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20839     break 2
20840   fi
20841 done
20842   done
20843 IFS=$as_save_IFS
20844
20845   ;;
20846 esac
20847 fi
20848 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20849 if test -n "$gcc_cv_ld"; then
20850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20851 $as_echo "$gcc_cv_ld" >&6; }
20852 else
20853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20854 $as_echo "no" >&6; }
20855 fi
20856
20857
20858 fi
20859 fi
20860
20861 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20862 PLUGIN_LD=`basename $gcc_cv_ld`
20863
20864 # Check whether --with-plugin-ld was given.
20865 if test "${with_plugin_ld+set}" = set; then :
20866   withval=$with_plugin_ld; if test x"$withval" != x; then
20867    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20868    PLUGIN_LD="$withval"
20869  fi
20870 fi
20871
20872
20873
20874 cat >>confdefs.h <<_ACEOF
20875 #define PLUGIN_LD "$PLUGIN_LD"
20876 _ACEOF
20877
20878
20879 # Check to see if we are using gold instead of ld
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20881 $as_echo_n "checking whether we are using gold... " >&6; }
20882 ld_is_gold=no
20883 if test x$gcc_cv_ld != x; then
20884   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20885      | grep "GNU gold" > /dev/null; then
20886     ld_is_gold=yes
20887   fi
20888 fi
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20890 $as_echo "$ld_is_gold" >&6; }
20891
20892 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20893
20894 case "$ORIGINAL_LD_FOR_TARGET" in
20895   ./collect-ld | ./collect-ld$build_exeext) ;;
20896   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20897  ;;
20898 esac
20899
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20901 $as_echo_n "checking what linker to use... " >&6; }
20902 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20903         # Single tree build which includes ld.  We want to prefer it
20904         # over whatever linker top-level may have detected, since
20905         # we'll use what we're building after installation anyway.
20906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20907 $as_echo "newly built ld" >&6; }
20908         in_tree_ld=yes
20909         in_tree_ld_is_elf=no
20910         if (grep 'EMUL = .*elf' ../ld/Makefile \
20911             || grep 'EMUL = .*linux' ../ld/Makefile \
20912             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20913           in_tree_ld_is_elf=yes
20914         fi
20915         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
20916         do
20917                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20918                 if test x$gcc_cv_gld_version != x; then
20919                         break
20920                 fi
20921         done
20922         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20923         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20924 else
20925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20926 $as_echo "$gcc_cv_ld" >&6; }
20927         in_tree_ld=no
20928 fi
20929
20930 # Figure out what nm we will be using.
20931 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20932 if test "${gcc_cv_nm+set}" = set; then :
20933
20934 else
20935
20936 if test -f $gcc_cv_binutils_srcdir/configure.in \
20937      && test -f ../binutils/Makefile \
20938      && test x$build = x$host; then
20939         gcc_cv_nm=../binutils/nm-new$build_exeext
20940 elif test -x nm$build_exeext; then
20941         gcc_cv_nm=./nm$build_exeext
20942 elif test -x $NM_FOR_TARGET; then
20943         gcc_cv_nm="$NM_FOR_TARGET"
20944 else
20945         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20946 set dummy $NM_FOR_TARGET; ac_word=$2
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20948 $as_echo_n "checking for $ac_word... " >&6; }
20949 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20950   $as_echo_n "(cached) " >&6
20951 else
20952   case $gcc_cv_nm in
20953   [\\/]* | ?:[\\/]*)
20954   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20955   ;;
20956   *)
20957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20958 for as_dir in $PATH
20959 do
20960   IFS=$as_save_IFS
20961   test -z "$as_dir" && as_dir=.
20962     for ac_exec_ext in '' $ac_executable_extensions; do
20963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20964     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20966     break 2
20967   fi
20968 done
20969   done
20970 IFS=$as_save_IFS
20971
20972   ;;
20973 esac
20974 fi
20975 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20976 if test -n "$gcc_cv_nm"; then
20977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20978 $as_echo "$gcc_cv_nm" >&6; }
20979 else
20980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981 $as_echo "no" >&6; }
20982 fi
20983
20984
20985 fi
20986 fi
20987
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20989 $as_echo_n "checking what nm to use... " >&6; }
20990 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20991         # Single tree build which includes binutils.
20992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20993 $as_echo "newly built nm" >&6; }
20994         in_tree_nm=yes
20995 else
20996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20997 $as_echo "$gcc_cv_nm" >&6; }
20998         in_tree_nm=no
20999 fi
21000
21001 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21002
21003 case "$ORIGINAL_NM_FOR_TARGET" in
21004   ./nm | ./nm$build_exeext) ;;
21005   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21006  ;;
21007 esac
21008
21009
21010 # Figure out what objdump we will be using.
21011 if test "${gcc_cv_objdump+set}" = set; then :
21012
21013 else
21014
21015 if test -f $gcc_cv_binutils_srcdir/configure.in \
21016      && test -f ../binutils/Makefile \
21017      && test x$build = x$host; then
21018         # Single tree build which includes binutils.
21019         gcc_cv_objdump=../binutils/objdump$build_exeext
21020 elif test -x objdump$build_exeext; then
21021         gcc_cv_objdump=./objdump$build_exeext
21022 elif test -x $OBJDUMP_FOR_TARGET; then
21023         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21024 else
21025         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21026 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21028 $as_echo_n "checking for $ac_word... " >&6; }
21029 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21030   $as_echo_n "(cached) " >&6
21031 else
21032   case $gcc_cv_objdump in
21033   [\\/]* | ?:[\\/]*)
21034   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21035   ;;
21036   *)
21037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21038 for as_dir in $PATH
21039 do
21040   IFS=$as_save_IFS
21041   test -z "$as_dir" && as_dir=.
21042     for ac_exec_ext in '' $ac_executable_extensions; do
21043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21044     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21046     break 2
21047   fi
21048 done
21049   done
21050 IFS=$as_save_IFS
21051
21052   ;;
21053 esac
21054 fi
21055 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21056 if test -n "$gcc_cv_objdump"; then
21057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21058 $as_echo "$gcc_cv_objdump" >&6; }
21059 else
21060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061 $as_echo "no" >&6; }
21062 fi
21063
21064
21065 fi
21066 fi
21067
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21069 $as_echo_n "checking what objdump to use... " >&6; }
21070 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21071         # Single tree build which includes binutils.
21072         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21073 $as_echo "newly built objdump" >&6; }
21074 elif test x$gcc_cv_objdump = x; then
21075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21076 $as_echo "not found" >&6; }
21077 else
21078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21079 $as_echo "$gcc_cv_objdump" >&6; }
21080 fi
21081
21082 # Figure out what readelf we will be using.
21083 if test "${gcc_cv_readelf+set}" = set; then :
21084
21085 else
21086
21087 if test -f $gcc_cv_binutils_srcdir/configure.in \
21088      && test -f ../binutils/Makefile \
21089      && test x$build = x$host; then
21090         # Single tree build which includes binutils.
21091         gcc_cv_readelf=../binutils/readelf$build_exeext
21092 elif test -x readelf$build_exeext; then
21093         gcc_cv_readelf=./readelf$build_exeext
21094 else
21095         # Extract the first word of "readelf", so it can be a program name with args.
21096 set dummy readelf; ac_word=$2
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21098 $as_echo_n "checking for $ac_word... " >&6; }
21099 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21100   $as_echo_n "(cached) " >&6
21101 else
21102   case $gcc_cv_readelf in
21103   [\\/]* | ?:[\\/]*)
21104   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21105   ;;
21106   *)
21107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21108 for as_dir in $PATH
21109 do
21110   IFS=$as_save_IFS
21111   test -z "$as_dir" && as_dir=.
21112     for ac_exec_ext in '' $ac_executable_extensions; do
21113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21114     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21116     break 2
21117   fi
21118 done
21119   done
21120 IFS=$as_save_IFS
21121
21122   ;;
21123 esac
21124 fi
21125 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21126 if test -n "$gcc_cv_readelf"; then
21127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21128 $as_echo "$gcc_cv_readelf" >&6; }
21129 else
21130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21131 $as_echo "no" >&6; }
21132 fi
21133
21134
21135 fi
21136 fi
21137
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21139 $as_echo_n "checking what readelf to use... " >&6; }
21140 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21141         # Single tree build which includes binutils.
21142         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21143 $as_echo "newly built readelf" >&6; }
21144 elif test x$gcc_cv_readelf = x; then
21145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21146 $as_echo "not found" >&6; }
21147 else
21148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21149 $as_echo "$gcc_cv_readelf" >&6; }
21150 fi
21151
21152 # Figure out what assembler alignment features are present.
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21154 $as_echo_n "checking assembler flags... " >&6; }
21155 if test "${gcc_cv_as_flags+set}" = set; then :
21156   $as_echo_n "(cached) " >&6
21157 else
21158    case "$target" in
21159   i[34567]86-*-linux*)
21160         gcc_cv_as_flags="--32"
21161     ;;
21162   *)
21163     gcc_cv_as_flags=" "
21164     ;;
21165   esac
21166 fi
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21168 $as_echo "$gcc_cv_as_flags" >&6; }
21169
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21171 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21172 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21173   $as_echo_n "(cached) " >&6
21174 else
21175   gcc_cv_as_balign_and_p2align=no
21176     if test $in_tree_gas = yes; then
21177     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21178   then gcc_cv_as_balign_and_p2align=yes
21179 fi
21180   elif test x$gcc_cv_as != x; then
21181     echo '.balign 4
21182 .p2align 2' > conftest.s
21183     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21184   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21185   (eval $ac_try) 2>&5
21186   ac_status=$?
21187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21188   test $ac_status = 0; }; }
21189     then
21190         gcc_cv_as_balign_and_p2align=yes
21191     else
21192       echo "configure: failed program was" >&5
21193       cat conftest.s >&5
21194     fi
21195     rm -f conftest.o conftest.s
21196   fi
21197 fi
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21199 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21200 if test $gcc_cv_as_balign_and_p2align = yes; then
21201
21202 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21203
21204 fi
21205
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21207 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21208 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21209   $as_echo_n "(cached) " >&6
21210 else
21211   gcc_cv_as_max_skip_p2align=no
21212     if test $in_tree_gas = yes; then
21213     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21214   then gcc_cv_as_max_skip_p2align=yes
21215 fi
21216   elif test x$gcc_cv_as != x; then
21217     echo '.p2align 4,,7' > conftest.s
21218     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21219   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21220   (eval $ac_try) 2>&5
21221   ac_status=$?
21222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21223   test $ac_status = 0; }; }
21224     then
21225         gcc_cv_as_max_skip_p2align=yes
21226     else
21227       echo "configure: failed program was" >&5
21228       cat conftest.s >&5
21229     fi
21230     rm -f conftest.o conftest.s
21231   fi
21232 fi
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21234 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21235 if test $gcc_cv_as_max_skip_p2align = yes; then
21236
21237 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21238
21239 fi
21240
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21242 $as_echo_n "checking assembler for .literal16... " >&6; }
21243 if test "${gcc_cv_as_literal16+set}" = set; then :
21244   $as_echo_n "(cached) " >&6
21245 else
21246   gcc_cv_as_literal16=no
21247     if test $in_tree_gas = yes; then
21248     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21249   then gcc_cv_as_literal16=yes
21250 fi
21251   elif test x$gcc_cv_as != x; then
21252     echo '.literal16' > conftest.s
21253     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21254   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21255   (eval $ac_try) 2>&5
21256   ac_status=$?
21257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21258   test $ac_status = 0; }; }
21259     then
21260         gcc_cv_as_literal16=yes
21261     else
21262       echo "configure: failed program was" >&5
21263       cat conftest.s >&5
21264     fi
21265     rm -f conftest.o conftest.s
21266   fi
21267 fi
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21269 $as_echo "$gcc_cv_as_literal16" >&6; }
21270 if test $gcc_cv_as_literal16 = yes; then
21271
21272 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21273
21274 fi
21275
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21277 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21278 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21279   $as_echo_n "(cached) " >&6
21280 else
21281   gcc_cv_as_subsection_m1=no
21282     if test $in_tree_gas = yes; then
21283     if test $in_tree_gas_is_elf = yes \
21284   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21285   then gcc_cv_as_subsection_m1=yes
21286 fi
21287   elif test x$gcc_cv_as != x; then
21288     echo 'conftest_label1: .word 0
21289 .subsection -1
21290 conftest_label2: .word 0
21291 .previous' > conftest.s
21292     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21293   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21294   (eval $ac_try) 2>&5
21295   ac_status=$?
21296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21297   test $ac_status = 0; }; }
21298     then
21299         if test x$gcc_cv_nm != x; then
21300     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21301     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21302     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21303     then :
21304     else gcc_cv_as_subsection_m1=yes
21305     fi
21306     rm -f conftest.nm1 conftest.nm2
21307   fi
21308     else
21309       echo "configure: failed program was" >&5
21310       cat conftest.s >&5
21311     fi
21312     rm -f conftest.o conftest.s
21313   fi
21314 fi
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21316 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21317 if test $gcc_cv_as_subsection_m1 = yes; then
21318
21319 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21320
21321 fi
21322
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21324 $as_echo_n "checking assembler for .weak... " >&6; }
21325 if test "${gcc_cv_as_weak+set}" = set; then :
21326   $as_echo_n "(cached) " >&6
21327 else
21328   gcc_cv_as_weak=no
21329     if test $in_tree_gas = yes; then
21330     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21331   then gcc_cv_as_weak=yes
21332 fi
21333   elif test x$gcc_cv_as != x; then
21334     echo '      .weak foobar' > conftest.s
21335     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21336   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21337   (eval $ac_try) 2>&5
21338   ac_status=$?
21339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21340   test $ac_status = 0; }; }
21341     then
21342         gcc_cv_as_weak=yes
21343     else
21344       echo "configure: failed program was" >&5
21345       cat conftest.s >&5
21346     fi
21347     rm -f conftest.o conftest.s
21348   fi
21349 fi
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21351 $as_echo "$gcc_cv_as_weak" >&6; }
21352 if test $gcc_cv_as_weak = yes; then
21353
21354 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21355
21356 fi
21357
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21359 $as_echo_n "checking assembler for .weakref... " >&6; }
21360 if test "${gcc_cv_as_weakref+set}" = set; then :
21361   $as_echo_n "(cached) " >&6
21362 else
21363   gcc_cv_as_weakref=no
21364     if test $in_tree_gas = yes; then
21365     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21366   then gcc_cv_as_weakref=yes
21367 fi
21368   elif test x$gcc_cv_as != x; then
21369     echo '      .weakref foobar, barfnot' > conftest.s
21370     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21371   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21372   (eval $ac_try) 2>&5
21373   ac_status=$?
21374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21375   test $ac_status = 0; }; }
21376     then
21377         gcc_cv_as_weakref=yes
21378     else
21379       echo "configure: failed program was" >&5
21380       cat conftest.s >&5
21381     fi
21382     rm -f conftest.o conftest.s
21383   fi
21384 fi
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21386 $as_echo "$gcc_cv_as_weakref" >&6; }
21387 if test $gcc_cv_as_weakref = yes; then
21388
21389 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21390
21391 fi
21392
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21394 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21395 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21396   $as_echo_n "(cached) " >&6
21397 else
21398   gcc_cv_as_nsubspa_comdat=no
21399     if test $in_tree_gas = yes; then
21400     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21401   then gcc_cv_as_nsubspa_comdat=yes
21402 fi
21403   elif test x$gcc_cv_as != x; then
21404     echo '      .SPACE $TEXT$
21405         .NSUBSPA $CODE$,COMDAT' > conftest.s
21406     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21407   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21408   (eval $ac_try) 2>&5
21409   ac_status=$?
21410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21411   test $ac_status = 0; }; }
21412     then
21413         gcc_cv_as_nsubspa_comdat=yes
21414     else
21415       echo "configure: failed program was" >&5
21416       cat conftest.s >&5
21417     fi
21418     rm -f conftest.o conftest.s
21419   fi
21420 fi
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21422 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21423 if test $gcc_cv_as_nsubspa_comdat = yes; then
21424
21425 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21426
21427 fi
21428
21429 # .hidden needs to be supported in both the assembler and the linker,
21430 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21431 # This is irritatingly difficult to feature test for; we have to check the
21432 # date string after the version number.  If we've got an in-tree
21433 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21434 # to be safe.
21435 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21437 $as_echo_n "checking assembler for .hidden... " >&6; }
21438 if test "${gcc_cv_as_hidden+set}" = set; then :
21439   $as_echo_n "(cached) " >&6
21440 else
21441   gcc_cv_as_hidden=no
21442     if test $in_tree_gas = yes; then
21443     if test $in_tree_gas_is_elf = yes \
21444   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21445   then gcc_cv_as_hidden=yes
21446 fi
21447   elif test x$gcc_cv_as != x; then
21448     echo '      .hidden foobar
21449 foobar:' > conftest.s
21450     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21451   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21452   (eval $ac_try) 2>&5
21453   ac_status=$?
21454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21455   test $ac_status = 0; }; }
21456     then
21457
21458 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21459 # STV_HIDDEN, so disable .hidden support if so.
21460 case "${target}" in
21461   i?86-*-solaris2*)
21462     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21463       cat > conftest.s <<EOF
21464 .globl hidden
21465         .hidden hidden
21466 hidden:
21467 .globl default
21468         .set    default,hidden
21469 EOF
21470       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21471         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21472         grep '\.hidden default' > /dev/null; then
21473         gcc_cv_as_hidden=no
21474       else
21475         gcc_cv_as_hidden=yes
21476       fi
21477     else
21478       # Assume bug is present if objdump is missing.
21479       gcc_cv_as_hidden=no
21480     fi
21481     ;;
21482   *)
21483     gcc_cv_as_hidden=yes
21484     ;;
21485 esac
21486     else
21487       echo "configure: failed program was" >&5
21488       cat conftest.s >&5
21489     fi
21490     rm -f conftest.o conftest.s
21491   fi
21492 fi
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21494 $as_echo "$gcc_cv_as_hidden" >&6; }
21495
21496
21497 # gnu_indirect_function type is an extension proposed at
21498 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21499 # selection of function implementation
21500 # Check whether --enable-gnu-indirect-function was given.
21501 if test "${enable_gnu_indirect_function+set}" = set; then :
21502   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21503     yes | no) ;;
21504     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21505 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21506   esac
21507 else
21508   enable_gnu_indirect_function="$default_gnu_indirect_function"
21509 fi
21510
21511 if test x$enable_gnu_indirect_function = xyes; then
21512
21513 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21514
21515 fi
21516
21517 if test $in_tree_ld != yes ; then
21518   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21519   if test x"$ld_is_gold" = xyes; then
21520     gcc_cv_ld_hidden=yes
21521   elif echo "$ld_ver" | grep GNU > /dev/null; then
21522     ld_vers=`echo $ld_ver | sed -n \
21523         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21524     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'`
21525     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21526     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21527     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21528   else
21529     case "${target}" in
21530       *-*-solaris2*)
21531         #
21532         # Solaris 2 ld -V output looks like this for a regular version:
21533         #
21534         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21535         #
21536         # but test versions add stuff at the end:
21537         #
21538         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21539         #
21540         ld_ver=`$gcc_cv_ld -V 2>&1`
21541         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21542           ld_vers=`echo $ld_ver | sed -n \
21543             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21544           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21545           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21546         fi
21547         ;;
21548     esac
21549   fi
21550 fi
21551
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21553 $as_echo_n "checking linker for .hidden support... " >&6; }
21554 if test "${gcc_cv_ld_hidden+set}" = set; then :
21555   $as_echo_n "(cached) " >&6
21556 else
21557   if test $in_tree_ld = yes ; then
21558   gcc_cv_ld_hidden=no
21559   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 \
21560      && test $in_tree_ld_is_elf = yes; then
21561      gcc_cv_ld_hidden=yes
21562   fi
21563 else
21564   gcc_cv_ld_hidden=yes
21565   if echo "$ld_ver" | grep GNU > /dev/null; then
21566     if test 0"$ld_date" -lt 20020404; then
21567       if test -n "$ld_date"; then
21568         # If there was date string, but was earlier than 2002-04-04, fail
21569         gcc_cv_ld_hidden=no
21570       elif test -z "$ld_vers"; then
21571         # If there was no date string nor ld version number, something is wrong
21572         gcc_cv_ld_hidden=no
21573       else
21574         test -z "$ld_vers_patch" && ld_vers_patch=0
21575         if test "$ld_vers_major" -lt 2; then
21576           gcc_cv_ld_hidden=no
21577         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21578           gcc_cv_ld_hidden="no"
21579         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21580           gcc_cv_ld_hidden=no
21581         fi
21582       fi
21583     fi
21584   else
21585     case "${target}" in
21586       hppa64*-*-hpux* | ia64*-*-hpux*)
21587         gcc_cv_ld_hidden=yes
21588         ;;
21589       *-*-solaris2.8*)
21590         # .hidden support was backported to Solaris 8, starting with ld
21591         # version 1.276.
21592         if test "$ld_vers_minor" -ge 276; then
21593           gcc_cv_ld_hidden=yes
21594         else
21595           gcc_cv_ld_hidden=no
21596         fi
21597         ;;
21598       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21599         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21600         # .symbolic was only added in Solaris 9 12/02.
21601         gcc_cv_ld_hidden=yes
21602         ;;
21603       *)
21604         gcc_cv_ld_hidden=no
21605         ;;
21606     esac
21607   fi
21608 fi
21609 fi
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21611 $as_echo "$gcc_cv_ld_hidden" >&6; }
21612 libgcc_visibility=no
21613
21614
21615 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21616   libgcc_visibility=yes
21617
21618 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21619
21620 fi
21621
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21623 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21624 gcc_cv_ld_ro_rw_mix=unknown
21625 if test $in_tree_ld = yes ; then
21626   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 \
21627      && test $in_tree_ld_is_elf = yes; then
21628     gcc_cv_ld_ro_rw_mix=read-write
21629   fi
21630 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21631   echo '.section myfoosect, "a"' > conftest1.s
21632   echo '.section myfoosect, "aw"' > conftest2.s
21633   echo '.byte 1' >> conftest2.s
21634   echo '.section myfoosect, "a"' > conftest3.s
21635   echo '.byte 0' >> conftest3.s
21636   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21637      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21638      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21639      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21640         conftest2.o conftest3.o > /dev/null 2>&1; then
21641     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21642                          | sed -e '/myfoosect/!d' -e N`
21643     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21644       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21645         gcc_cv_ld_ro_rw_mix=read-only
21646       else
21647         gcc_cv_ld_ro_rw_mix=read-write
21648       fi
21649     fi
21650   fi
21651   rm -f conftest.* conftest[123].*
21652 fi
21653 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21654
21655 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21656
21657 fi
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21659 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21660
21661 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21663 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21664 if test "${gcc_cv_as_leb128+set}" = set; then :
21665   $as_echo_n "(cached) " >&6
21666 else
21667   gcc_cv_as_leb128=no
21668     if test $in_tree_gas = yes; then
21669     if test $in_tree_gas_is_elf = yes \
21670   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21671   then gcc_cv_as_leb128=yes
21672 fi
21673   elif test x$gcc_cv_as != x; then
21674     echo '      .data
21675         .uleb128 L2 - L1
21676 L1:
21677         .uleb128 1280
21678         .sleb128 -1010
21679 L2:' > conftest.s
21680     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21681   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21682   (eval $ac_try) 2>&5
21683   ac_status=$?
21684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21685   test $ac_status = 0; }; }
21686     then
21687         # GAS versions before 2.11 do not support uleb128,
21688   # despite appearing to.
21689   # ??? There exists an elf-specific test that will crash
21690   # the assembler.  Perhaps it's better to figure out whether
21691   # arbitrary sections are supported and try the test.
21692   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21693   if echo "$as_ver" | grep GNU > /dev/null; then
21694     as_vers=`echo $as_ver | sed -n \
21695         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21696     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21697     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21698     if test $as_major -eq 2 && test $as_minor -lt 11
21699     then :
21700     else gcc_cv_as_leb128=yes
21701     fi
21702   fi
21703     else
21704       echo "configure: failed program was" >&5
21705       cat conftest.s >&5
21706     fi
21707     rm -f conftest.o conftest.s
21708   fi
21709 fi
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21711 $as_echo "$gcc_cv_as_leb128" >&6; }
21712 if test $gcc_cv_as_leb128 = yes; then
21713
21714 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21715
21716 fi
21717
21718 # Check if we have assembler support for unwind directives.
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21720 $as_echo_n "checking assembler for cfi directives... " >&6; }
21721 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21722   $as_echo_n "(cached) " >&6
21723 else
21724   gcc_cv_as_cfi_directive=no
21725   if test x$gcc_cv_as != x; then
21726     echo '      .text
21727         .cfi_startproc
21728         .cfi_offset 0, 0
21729         .cfi_same_value 1
21730         .cfi_def_cfa 1, 2
21731         .cfi_escape 1, 2, 3, 4, 5
21732         .cfi_endproc' > conftest.s
21733     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21734   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21735   (eval $ac_try) 2>&5
21736   ac_status=$?
21737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21738   test $ac_status = 0; }; }
21739     then
21740         case "$target" in
21741   *-*-solaris*)
21742     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21743     # read-only and read-write sections, we need to make sure that the
21744     # assembler used emits read-write .eh_frame sections.
21745     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21746       if test "x$gcc_cv_objdump" != x; then
21747         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21748                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21749           gcc_cv_as_cfi_directive=no
21750         else
21751           case "$target" in
21752             i?86-*-solaris2.1[0-9]*)
21753               # On Solaris/x86, make sure that GCC and gas agree on using
21754               # read-only .eh_frame sections for 64-bit.
21755               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21756                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21757                         sed -e /.eh_frame/!d -e N | \
21758                         grep READONLY > /dev/null; then
21759                 gcc_cv_as_cfi_directive=yes
21760               else
21761                 gcc_cv_as_cfi_directive=no
21762               fi
21763               ;;
21764             *)
21765               gcc_cv_as_cfi_directive=yes
21766               ;;
21767           esac
21768         fi
21769       else
21770         # no objdump, err on the side of caution
21771         gcc_cv_as_cfi_directive=no
21772       fi
21773     else
21774       gcc_cv_as_cfi_directive=yes
21775     fi
21776     ;;
21777   *-*-*)
21778     gcc_cv_as_cfi_directive=yes
21779     ;;
21780 esac
21781     else
21782       echo "configure: failed program was" >&5
21783       cat conftest.s >&5
21784     fi
21785     rm -f conftest.o conftest.s
21786   fi
21787 fi
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21789 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21790
21791 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21793 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21794 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21795   $as_echo_n "(cached) " >&6
21796 else
21797   gcc_cv_as_cfi_advance_working=no
21798   if test x$gcc_cv_as != x; then
21799     echo '      .text
21800         .cfi_startproc
21801         .cfi_adjust_cfa_offset 64
21802         .skip 75040, 0
21803         .cfi_adjust_cfa_offset 128
21804         .cfi_endproc' > conftest.s
21805     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21806   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21807   (eval $ac_try) 2>&5
21808   ac_status=$?
21809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21810   test $ac_status = 0; }; }
21811     then
21812
21813 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21814     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
21815    gcc_cv_as_cfi_advance_working=yes
21816 fi
21817
21818     else
21819       echo "configure: failed program was" >&5
21820       cat conftest.s >&5
21821     fi
21822     rm -f conftest.o conftest.s
21823   fi
21824 fi
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21826 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21827
21828 else
21829   # no objdump, err on the side of caution
21830   gcc_cv_as_cfi_advance_working=no
21831 fi
21832
21833
21834 cat >>confdefs.h <<_ACEOF
21835 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21836        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21837 _ACEOF
21838
21839
21840
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21842 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21843 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21844   $as_echo_n "(cached) " >&6
21845 else
21846   gcc_cv_as_cfi_personality_directive=no
21847   if test x$gcc_cv_as != x; then
21848     echo '      .text
21849         .cfi_startproc
21850         .cfi_personality 0, symbol
21851         .cfi_endproc' > conftest.s
21852     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21853   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21854   (eval $ac_try) 2>&5
21855   ac_status=$?
21856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21857   test $ac_status = 0; }; }
21858     then
21859         gcc_cv_as_cfi_personality_directive=yes
21860     else
21861       echo "configure: failed program was" >&5
21862       cat conftest.s >&5
21863     fi
21864     rm -f conftest.o conftest.s
21865   fi
21866 fi
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21868 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21869
21870
21871 cat >>confdefs.h <<_ACEOF
21872 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21873     then echo 1; else echo 0; fi`
21874 _ACEOF
21875
21876
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21878 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21879 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21880   $as_echo_n "(cached) " >&6
21881 else
21882   gcc_cv_as_cfi_sections_directive=no
21883   if test x$gcc_cv_as != x; then
21884     echo '      .text
21885         .cfi_sections .debug_frame, .eh_frame
21886         .cfi_startproc
21887         .cfi_endproc' > conftest.s
21888     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21889   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890   (eval $ac_try) 2>&5
21891   ac_status=$?
21892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893   test $ac_status = 0; }; }
21894     then
21895         case $target_os in
21896   win32 | pe | cygwin* | mingw32* | uwin*)
21897     # Need to check that we generated the correct relocation for the
21898     # .debug_frame section.  This was fixed for binutils 2.21.
21899     gcc_cv_as_cfi_sections_directive=no
21900     if test "x$gcc_cv_objdump" != x; then
21901      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21902         grep secrel > /dev/null; then
21903       gcc_cv_as_cfi_sections_directive=yes
21904      fi
21905     fi
21906     ;;
21907   *)
21908     gcc_cv_as_cfi_sections_directive=yes
21909     ;;
21910 esac
21911     else
21912       echo "configure: failed program was" >&5
21913       cat conftest.s >&5
21914     fi
21915     rm -f conftest.o conftest.s
21916   fi
21917 fi
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21919 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21920
21921
21922
21923 cat >>confdefs.h <<_ACEOF
21924 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21925     then echo 1; else echo 0; fi`
21926 _ACEOF
21927
21928
21929 # GAS versions up to and including 2.11.0 may mis-optimize
21930 # .eh_frame data.
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21932 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21933 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21934   $as_echo_n "(cached) " >&6
21935 else
21936   gcc_cv_as_eh_frame=no
21937     if test $in_tree_gas = yes; then
21938     if test $in_tree_gas_is_elf = yes \
21939   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21940   then gcc_cv_as_eh_frame=yes
21941 fi
21942   elif test x$gcc_cv_as != x; then
21943     echo '      .text
21944 .LFB1:
21945         .4byte  0
21946 .L1:
21947         .4byte  0
21948 .LFE1:
21949         .section        .eh_frame,"aw",@progbits
21950 __FRAME_BEGIN__:
21951         .4byte  .LECIE1-.LSCIE1
21952 .LSCIE1:
21953         .4byte  0x0
21954         .byte   0x1
21955         .ascii "z\0"
21956         .byte   0x1
21957         .byte   0x78
21958         .byte   0x1a
21959         .byte   0x0
21960         .byte   0x4
21961         .4byte  1
21962         .p2align 1
21963 .LECIE1:
21964 .LSFDE1:
21965         .4byte  .LEFDE1-.LASFDE1
21966 .LASFDE1:
21967         .4byte  .LASFDE1-__FRAME_BEGIN__
21968         .4byte  .LFB1
21969         .4byte  .LFE1-.LFB1
21970         .byte   0x4
21971         .4byte  .LFE1-.LFB1
21972         .byte   0x4
21973         .4byte  .L1-.LFB1
21974 .LEFDE1:' > 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           cat > conftest.lit <<EOF
21983  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21984  0010 01000000 12000000 18000000 00000000  ................
21985  0020 08000000 04080000 0044               .........D      
21986 EOF
21987 cat > conftest.big <<EOF
21988  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21989  0010 00000001 00000012 00000018 00000000  ................
21990  0020 00000008 04000000 0844               .........D      
21991 EOF
21992   # If the assembler didn't choke, and we can objdump,
21993   # and we got the correct data, then succeed.
21994   # The text in the here-document typically retains its unix-style line
21995   # endings, while the output of objdump will use host line endings.
21996   # Therefore, use diff -b for the comparisons.
21997   if test x$gcc_cv_objdump != x \
21998   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21999      | tail -3 > conftest.got \
22000   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22001     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22002   then
22003     gcc_cv_as_eh_frame=yes
22004   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22005   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22006   (eval $ac_try) 2>&5
22007   ac_status=$?
22008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22009   test $ac_status = 0; }; }; then
22010     gcc_cv_as_eh_frame=buggy
22011   else
22012     # Uh oh, what do we do now?
22013     gcc_cv_as_eh_frame=no
22014   fi
22015     else
22016       echo "configure: failed program was" >&5
22017       cat conftest.s >&5
22018     fi
22019     rm -f conftest.o conftest.s
22020   fi
22021 fi
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22023 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22024
22025
22026 if test $gcc_cv_as_eh_frame = buggy; then
22027
22028 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22029
22030 fi
22031
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22033 $as_echo_n "checking assembler for section merging support... " >&6; }
22034 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22035   $as_echo_n "(cached) " >&6
22036 else
22037   gcc_cv_as_shf_merge=no
22038     if test $in_tree_gas = yes; then
22039     if test $in_tree_gas_is_elf = yes \
22040   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22041   then gcc_cv_as_shf_merge=yes
22042 fi
22043   elif test x$gcc_cv_as != x; then
22044     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22045     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22046   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22047   (eval $ac_try) 2>&5
22048   ac_status=$?
22049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22050   test $ac_status = 0; }; }
22051     then
22052         gcc_cv_as_shf_merge=yes
22053     else
22054       echo "configure: failed program was" >&5
22055       cat conftest.s >&5
22056     fi
22057     rm -f conftest.o conftest.s
22058   fi
22059 fi
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22061 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22062
22063 if test $gcc_cv_as_shf_merge = no; then
22064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22065 $as_echo_n "checking assembler for section merging support... " >&6; }
22066 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22067   $as_echo_n "(cached) " >&6
22068 else
22069   gcc_cv_as_shf_merge=no
22070     if test $in_tree_gas = yes; then
22071     if test $in_tree_gas_is_elf = yes \
22072   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22073   then gcc_cv_as_shf_merge=yes
22074 fi
22075   elif test x$gcc_cv_as != x; then
22076     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22077     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22079   (eval $ac_try) 2>&5
22080   ac_status=$?
22081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082   test $ac_status = 0; }; }
22083     then
22084         gcc_cv_as_shf_merge=yes
22085     else
22086       echo "configure: failed program was" >&5
22087       cat conftest.s >&5
22088     fi
22089     rm -f conftest.o conftest.s
22090   fi
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22093 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22094
22095 fi
22096
22097 cat >>confdefs.h <<_ACEOF
22098 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22099 _ACEOF
22100
22101
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22103 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22104 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22105   $as_echo_n "(cached) " >&6
22106 else
22107   gcc_cv_as_comdat_group=no
22108     if test $in_tree_gas = yes; then
22109     if test $in_tree_gas_is_elf = yes \
22110   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22111   then gcc_cv_as_comdat_group=yes
22112 fi
22113   elif test x$gcc_cv_as != x; then
22114     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22115     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22116   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22117   (eval $ac_try) 2>&5
22118   ac_status=$?
22119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22120   test $ac_status = 0; }; }
22121     then
22122         gcc_cv_as_comdat_group=yes
22123     else
22124       echo "configure: failed program was" >&5
22125       cat conftest.s >&5
22126     fi
22127     rm -f conftest.o conftest.s
22128   fi
22129 fi
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22131 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22132
22133 if test $gcc_cv_as_comdat_group = yes; then
22134   gcc_cv_as_comdat_group_percent=no
22135 else
22136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22137 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22138 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22139   $as_echo_n "(cached) " >&6
22140 else
22141   gcc_cv_as_comdat_group_percent=no
22142     if test $in_tree_gas = yes; then
22143     if test $in_tree_gas_is_elf = yes \
22144   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22145   then gcc_cv_as_comdat_group_percent=yes
22146 fi
22147   elif test x$gcc_cv_as != x; then
22148     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22149     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22150   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22151   (eval $ac_try) 2>&5
22152   ac_status=$?
22153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22154   test $ac_status = 0; }; }
22155     then
22156         gcc_cv_as_comdat_group_percent=yes
22157     else
22158       echo "configure: failed program was" >&5
22159       cat conftest.s >&5
22160     fi
22161     rm -f conftest.o conftest.s
22162   fi
22163 fi
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22165 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22166
22167 fi
22168 if test x"$ld_is_gold" = xyes; then
22169   comdat_group=yes
22170 elif test $in_tree_ld = yes ; then
22171   comdat_group=no
22172   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 \
22173      && test $in_tree_ld_is_elf = yes; then
22174      comdat_group=yes
22175   fi
22176 elif echo "$ld_ver" | grep GNU > /dev/null; then
22177   comdat_group=yes
22178   if test 0"$ld_date" -lt 20050308; then
22179     if test -n "$ld_date"; then
22180       # If there was date string, but was earlier than 2005-03-08, fail
22181       comdat_group=no
22182     elif test "$ld_vers_major" -lt 2; then
22183       comdat_group=no
22184     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22185       comdat_group=no
22186     fi
22187   fi
22188 else
22189   case "${target}" in
22190     *-*-solaris2.1[1-9]*)
22191       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22192       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22193       # version 1.688.
22194       #
22195       # FIXME: Maybe need to refine later when COMDAT group support with
22196       # Sun as is implemented.
22197       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22198         comdat_group=yes
22199       else
22200         comdat_group=no
22201       fi
22202       ;;
22203     *)
22204       # Assume linkers other than GNU ld don't support COMDAT group.
22205       comdat_group=no
22206       ;;
22207   esac
22208 fi
22209 # Allow overriding the automatic COMDAT group tests above.
22210 # Check whether --enable-comdat was given.
22211 if test "${enable_comdat+set}" = set; then :
22212   enableval=$enable_comdat; comdat_group="$enable_comdat"
22213 fi
22214
22215 if test $comdat_group = no; then
22216   gcc_cv_as_comdat_group=no
22217   gcc_cv_as_comdat_group_percent=no
22218 fi
22219
22220 cat >>confdefs.h <<_ACEOF
22221 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22222 _ACEOF
22223
22224
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22226 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22227 if test "${gcc_cv_as_discriminator+set}" = set; then :
22228   $as_echo_n "(cached) " >&6
22229 else
22230   gcc_cv_as_discriminator=no
22231     if test $in_tree_gas = yes; then
22232     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22233   then gcc_cv_as_discriminator=yes
22234 fi
22235   elif test x$gcc_cv_as != x; then
22236     echo '      .text
22237         .file 1 "conf.c"
22238         .loc 1 1 0 discriminator 1' > conftest.s
22239     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22240   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22241   (eval $ac_try) 2>&5
22242   ac_status=$?
22243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22244   test $ac_status = 0; }; }
22245     then
22246         gcc_cv_as_discriminator=yes
22247     else
22248       echo "configure: failed program was" >&5
22249       cat conftest.s >&5
22250     fi
22251     rm -f conftest.o conftest.s
22252   fi
22253 fi
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22255 $as_echo "$gcc_cv_as_discriminator" >&6; }
22256 if test $gcc_cv_as_discriminator = yes; then
22257
22258 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22259
22260 fi
22261
22262 # Thread-local storage - the check is heavily parameterized.
22263 conftest_s=
22264 tls_first_major=
22265 tls_first_minor=
22266 tls_as_opt=
22267 case "$target" in
22268   alpha*-*-*)
22269     conftest_s='
22270         .section ".tdata","awT",@progbits
22271 foo:    .long   25
22272         .text
22273         ldq     $27,__tls_get_addr($29)         !literal!1
22274         lda     $16,foo($29)                    !tlsgd!1
22275         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22276         ldq     $27,__tls_get_addr($29)         !literal!2
22277         lda     $16,foo($29)                    !tlsldm!2
22278         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22279         ldq     $1,foo($29)                     !gotdtprel
22280         ldah    $2,foo($29)                     !dtprelhi
22281         lda     $3,foo($2)                      !dtprello
22282         lda     $4,foo($29)                     !dtprel
22283         ldq     $1,foo($29)                     !gottprel
22284         ldah    $2,foo($29)                     !tprelhi
22285         lda     $3,foo($2)                      !tprello
22286         lda     $4,foo($29)                     !tprel'
22287         tls_first_major=2
22288         tls_first_minor=13
22289         tls_as_opt=--fatal-warnings
22290         ;;
22291   cris-*-*|crisv32-*-*)
22292     conftest_s='
22293         .section ".tdata","awT",@progbits
22294 x:      .long   25
22295         .text
22296         move.d x:IE,$r10
22297         nop'
22298         tls_first_major=2
22299         tls_first_minor=20
22300         tls_as_opt=--fatal-warnings
22301         ;;
22302   frv*-*-*)
22303     conftest_s='
22304         .section ".tdata","awT",@progbits
22305 x:      .long   25
22306         .text
22307         call    #gettlsoff(x)'
22308         tls_first_major=2
22309         tls_first_minor=14
22310         ;;
22311   hppa*-*-linux*)
22312     conftest_s='
22313 t1:     .reg    %r20
22314 t2:     .reg    %r21
22315 gp:     .reg    %r19
22316         .section ".tdata","awT",@progbits
22317 foo:    .long   25
22318         .text
22319         .align  4
22320         addil LT%foo-$tls_gdidx$,gp
22321         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22322         b __tls_get_addr
22323         nop
22324         addil LT%foo-$tls_ldidx$,gp
22325         b __tls_get_addr
22326         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22327         addil LR%foo-$tls_dtpoff$,%ret0
22328         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22329         mfctl %cr27,%t1
22330         addil LT%foo-$tls_ieoff$,gp
22331         ldw RT%foo-$tls_ieoff$(%r1),%t2
22332         add %t1,%t2,%t3
22333         mfctl %cr27,%t1
22334         addil LR%foo-$tls_leoff$,%t1
22335         ldo RR%foo-$tls_leoff$(%r1),%t2'
22336         tls_first_major=2
22337         tls_first_minor=15
22338         tls_as_opt=--fatal-warnings
22339         ;;
22340   arm*-*-*)
22341     conftest_s='
22342         .section ".tdata","awT",%progbits
22343 foo:    .long   25
22344         .text
22345 .word foo(gottpoff)
22346 .word foo(tpoff)
22347 .word foo(tlsgd)
22348 .word foo(tlsldm)
22349 .word foo(tlsldo)'
22350         tls_first_major=2
22351         tls_first_minor=17
22352         ;;
22353   i[34567]86-*-*)
22354     case "$target" in
22355       i[34567]86-*-solaris2.*)
22356         on_solaris=yes
22357         tga_func=___tls_get_addr
22358         ;;
22359       *)
22360         on_solaris=no
22361         ;;
22362     esac
22363     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22364       conftest_s='
22365         .section .tdata,"awt",@progbits'
22366       tls_first_major=0
22367       tls_first_minor=0
22368
22369 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22370
22371     else
22372       conftest_s='
22373         .section ".tdata","awT",@progbits'
22374       tls_first_major=2
22375       tls_first_minor=14
22376       tls_as_opt="--fatal-warnings"
22377     fi
22378     conftest_s="$conftest_s
22379 foo:    .long   25
22380         .text
22381         movl    %gs:0, %eax
22382         leal    foo@tlsgd(,%ebx,1), %eax
22383         leal    foo@tlsldm(%ebx), %eax
22384         leal    foo@dtpoff(%eax), %edx
22385         movl    foo@gottpoff(%ebx), %eax
22386         subl    foo@gottpoff(%ebx), %eax
22387         addl    foo@gotntpoff(%ebx), %eax
22388         movl    foo@indntpoff, %eax
22389         movl    \$foo@tpoff, %eax
22390         subl    \$foo@tpoff, %eax
22391         leal    foo@ntpoff(%ecx), %eax"
22392     ;;
22393   x86_64-*-*)
22394     conftest_s='
22395         .section ".tdata","awT",@progbits
22396 foo:    .long   25
22397         .text
22398         movq    %fs:0, %rax
22399         leaq    foo@TLSGD(%rip), %rdi
22400         leaq    foo@TLSLD(%rip), %rdi
22401         leaq    foo@DTPOFF(%rax), %rdx
22402         movq    foo@GOTTPOFF(%rip), %rax
22403         movq    $foo@TPOFF, %rax'
22404         tls_first_major=2
22405         tls_first_minor=14
22406         tls_as_opt=--fatal-warnings
22407         ;;
22408   ia64-*-*)
22409     conftest_s='
22410         .section ".tdata","awT",@progbits
22411 foo:    data8   25
22412         .text
22413         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22414         addl    r17 = @ltoff(@dtprel(foo#)), gp
22415         addl    r18 = @ltoff(@tprel(foo#)), gp
22416         addl    r19 = @dtprel(foo#), gp
22417         adds    r21 = @dtprel(foo#), r13
22418         movl    r23 = @dtprel(foo#)
22419         addl    r20 = @tprel(foo#), gp
22420         adds    r22 = @tprel(foo#), r13
22421         movl    r24 = @tprel(foo#)'
22422         tls_first_major=2
22423         tls_first_minor=13
22424         tls_as_opt=--fatal-warnings
22425         ;;
22426   mips*-*-*)
22427     conftest_s='
22428         .section .tdata,"awT",@progbits
22429 x:
22430         .word 2
22431         .text
22432         addiu $4, $28, %tlsgd(x)
22433         addiu $4, $28, %tlsldm(x)
22434         lui $4, %dtprel_hi(x)
22435         addiu $4, $4, %dtprel_lo(x)
22436         lw $4, %gottprel(x)($28)
22437         lui $4, %tprel_hi(x)
22438         addiu $4, $4, %tprel_lo(x)'
22439         tls_first_major=2
22440         tls_first_minor=16
22441         tls_as_opt='-32 --fatal-warnings'
22442         ;;
22443   m68k-*-*)
22444     conftest_s='
22445         .section .tdata,"awT",@progbits
22446 x:
22447         .word 2
22448         .text
22449 foo:
22450         move.l x@TLSGD(%a5),%a0
22451         move.l x@TLSLDM(%a5),%a0
22452         move.l x@TLSLDO(%a5),%a0
22453         move.l x@TLSIE(%a5),%a0
22454         move.l x@TLSLE(%a5),%a0'
22455         tls_first_major=2
22456         tls_first_minor=19
22457         tls_as_opt='--fatal-warnings'
22458         ;;
22459   powerpc-*-*)
22460     conftest_s='
22461         .section ".tdata","awT",@progbits
22462         .align 2
22463 ld0:    .space 4
22464 ld1:    .space 4
22465 x1:     .space 4
22466 x2:     .space 4
22467 x3:     .space 4
22468         .text
22469         addi 3,31,ld0@got@tlsgd
22470         bl __tls_get_addr
22471         addi 3,31,x1@got@tlsld
22472         bl __tls_get_addr
22473         addi 9,3,x1@dtprel
22474         addis 9,3,x2@dtprel@ha
22475         addi 9,9,x2@dtprel@l
22476         lwz 9,x3@got@tprel(31)
22477         add 9,9,x@tls
22478         addi 9,2,x1@tprel
22479         addis 9,2,x2@tprel@ha
22480         addi 9,9,x2@tprel@l'
22481         tls_first_major=2
22482         tls_first_minor=14
22483         tls_as_opt="-a32 --fatal-warnings"
22484         ;;
22485   powerpc64-*-*)
22486     conftest_s='
22487         .section ".tdata","awT",@progbits
22488         .align 3
22489 ld0:    .space 8
22490 ld1:    .space 8
22491 x1:     .space 8
22492 x2:     .space 8
22493 x3:     .space 8
22494         .text
22495         addi 3,2,ld0@got@tlsgd
22496         bl .__tls_get_addr
22497         nop
22498         addi 3,2,ld1@toc
22499         bl .__tls_get_addr
22500         nop
22501         addi 3,2,x1@got@tlsld
22502         bl .__tls_get_addr
22503         nop
22504         addi 9,3,x1@dtprel
22505         bl .__tls_get_addr
22506         nop
22507         addis 9,3,x2@dtprel@ha
22508         addi 9,9,x2@dtprel@l
22509         bl .__tls_get_addr
22510         nop
22511         ld 9,x3@got@dtprel(2)
22512         add 9,9,3
22513         bl .__tls_get_addr
22514         nop'
22515         tls_first_major=2
22516         tls_first_minor=14
22517         tls_as_opt="-a64 --fatal-warnings"
22518         ;;
22519   s390-*-*)
22520     conftest_s='
22521         .section ".tdata","awT",@progbits
22522 foo:    .long   25
22523         .text
22524         .long   foo@TLSGD
22525         .long   foo@TLSLDM
22526         .long   foo@DTPOFF
22527         .long   foo@NTPOFF
22528         .long   foo@GOTNTPOFF
22529         .long   foo@INDNTPOFF
22530         l       %r1,foo@GOTNTPOFF(%r12)
22531         l       %r1,0(%r1):tls_load:foo
22532         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22533         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22534         tls_first_major=2
22535         tls_first_minor=14
22536         tls_as_opt="-m31 --fatal-warnings"
22537         ;;
22538   s390x-*-*)
22539     conftest_s='
22540         .section ".tdata","awT",@progbits
22541 foo:    .long   25
22542         .text
22543         .quad   foo@TLSGD
22544         .quad   foo@TLSLDM
22545         .quad   foo@DTPOFF
22546         .quad   foo@NTPOFF
22547         .quad   foo@GOTNTPOFF
22548         lg      %r1,foo@GOTNTPOFF(%r12)
22549         larl    %r1,foo@INDNTPOFF
22550         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22551         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22552         tls_first_major=2
22553         tls_first_minor=14
22554         tls_as_opt="-m64 -Aesame --fatal-warnings"
22555         ;;
22556   sh-*-* | sh[34]-*-*)
22557     conftest_s='
22558         .section ".tdata","awT",@progbits
22559 foo:    .long   25
22560         .text
22561         .long   foo@TLSGD
22562         .long   foo@TLSLDM
22563         .long   foo@DTPOFF
22564         .long   foo@GOTTPOFF
22565         .long   foo@TPOFF'
22566         tls_first_major=2
22567         tls_first_minor=13
22568         tls_as_opt=--fatal-warnings
22569         ;;
22570   sparc*-*-*)
22571     case "$target" in
22572       sparc*-sun-solaris2.*)
22573         on_solaris=yes
22574         tga_func=__tls_get_addr
22575         ;;
22576       *)
22577         on_solaris=no
22578         ;;
22579     esac
22580     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22581       conftest_s='
22582         .section ".tdata",#alloc,#write,#tls'
22583         tls_first_major=0
22584         tls_first_minor=0
22585     else
22586       conftest_s='
22587         .section ".tdata","awT",@progbits'
22588         tls_first_major=2
22589         tls_first_minor=14
22590         tls_as_opt="-32 --fatal-warnings"
22591     fi
22592     conftest_s="$conftest_s
22593 foo:    .long   25
22594         .text
22595         sethi   %tgd_hi22(foo), %o0
22596         add     %o0, %tgd_lo10(foo), %o1
22597         add     %l7, %o1, %o0, %tgd_add(foo)
22598         call    __tls_get_addr, %tgd_call(foo)
22599         sethi   %tldm_hi22(foo), %l1
22600         add     %l1, %tldm_lo10(foo), %l2
22601         add     %l7, %l2, %o0, %tldm_add(foo)
22602         call    __tls_get_addr, %tldm_call(foo)
22603         sethi   %tldo_hix22(foo), %l3
22604         xor     %l3, %tldo_lox10(foo), %l4
22605         add     %o0, %l4, %l5, %tldo_add(foo)
22606         sethi   %tie_hi22(foo), %o3
22607         add     %o3, %tie_lo10(foo), %o3
22608         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22609         add     %g7, %o2, %o4, %tie_add(foo)
22610         sethi   %tle_hix22(foo), %l1
22611         xor     %l1, %tle_lox10(foo), %o5
22612         ld      [%g7 + %o5], %o1"
22613         ;;
22614   xtensa*-*-*)
22615     conftest_s='
22616         .section ".tdata","awT",@progbits
22617 foo:    .long   25
22618         .text
22619         movi    a8, foo@TLSFUNC
22620         movi    a10, foo@TLSARG
22621         callx8.tls a8, foo@TLSCALL'
22622         tls_first_major=2
22623         tls_first_minor=19
22624         ;;
22625 esac
22626 set_have_as_tls=no
22627 if test "x$enable_tls" = xno ; then
22628   : # TLS explicitly disabled.
22629 elif test "x$enable_tls" = xyes ; then
22630   set_have_as_tls=yes # TLS explicitly enabled.
22631 elif test -z "$tls_first_major"; then
22632   : # If we don't have a check, assume no support.
22633 else
22634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22635 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22636 if test "${gcc_cv_as_tls+set}" = set; then :
22637   $as_echo_n "(cached) " >&6
22638 else
22639   gcc_cv_as_tls=no
22640     if test $in_tree_gas = yes; then
22641     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22642   then gcc_cv_as_tls=yes
22643 fi
22644   elif test x$gcc_cv_as != x; then
22645     echo "$conftest_s" > conftest.s
22646     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22647   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22648   (eval $ac_try) 2>&5
22649   ac_status=$?
22650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22651   test $ac_status = 0; }; }
22652     then
22653         gcc_cv_as_tls=yes
22654     else
22655       echo "configure: failed program was" >&5
22656       cat conftest.s >&5
22657     fi
22658     rm -f conftest.o conftest.s
22659   fi
22660 fi
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22662 $as_echo "$gcc_cv_as_tls" >&6; }
22663 if test $gcc_cv_as_tls = yes; then
22664   set_have_as_tls=yes
22665 fi
22666 fi
22667 case "$target" in
22668   *-*-irix6*)
22669     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22670     # with TLS support are in use, native TLS cannot work.
22671     set_have_as_tls=no
22672     ;;
22673   *-*-osf*)
22674     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22675     # gld with TLS support are in use, native TLS cannot work.
22676     set_have_as_tls=no
22677     ;;
22678   # TLS was introduced in the Solaris 9 FCS release and backported to
22679   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22680   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22681   # ld and GCC don't support any longer.
22682   *-*-solaris2.*)
22683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22684 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22685     ld_tls_support=no
22686     # Check ld and ld.so.1 TLS support.
22687     if echo "$ld_ver" | grep GNU > /dev/null; then
22688       # Assume all interesting versions of GNU ld have TLS support.
22689       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22690       ld_tls_support=yes
22691     else
22692       case "$target" in
22693         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22694         i?86-*-solaris2.8)
22695           min_tls_ld_vers_minor=280
22696           ;;
22697         # Solaris 8/SPARC ld has TLS support since version 1.272.
22698         sparc*-*-solaris2.8)
22699           min_tls_ld_vers_minor=272
22700           ;;
22701         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22702         i?86-*-solaris2.9)
22703           min_tls_ld_vers_minor=374
22704           ;;
22705         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22706         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22707           min_tls_ld_vers_minor=343
22708           ;;
22709       esac
22710       if test "$ld_vers_major" -gt 1 || \
22711         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22712         ld_tls_support=yes
22713       else
22714         set_have_as_tls=no
22715       fi
22716     fi
22717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22718 $as_echo "$ld_tls_support" >&6; }
22719
22720     save_LIBS="$LIBS"
22721     save_LDFLAGS="$LDFLAGS"
22722     LIBS=
22723     LDFLAGS=
22724
22725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22726 $as_echo_n "checking alternate thread library... " >&6; }
22727     case "$target" in
22728       # TLS support was backported to Solaris 8 patches, but only lives in
22729       # the alternate thread library which became the default in Solaris 9.
22730       # We want to always use that, irrespective of TLS support.
22731       *-*-solaris2.8)
22732         # Take multilib subdir into account.  There's no spec to handle
22733         # this.  The 64 symlink exists since Solaris 8.
22734         lwp_dir=/usr/lib/lwp
22735         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22736         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22737         ;;
22738       *-*-solaris2*)
22739         lwp_dir="none"
22740         lwp_spec=""
22741         ;;
22742     esac
22743     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22744
22745 cat >>confdefs.h <<_ACEOF
22746 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22747 _ACEOF
22748
22749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22750 $as_echo "$lwp_dir" >&6; }
22751
22752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22753 $as_echo_n "checking library containing $tga_func... " >&6; }
22754     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22755     # (32-bit x86) only lived in libthread, so check for that.  Keep
22756     # set_have_as_tls if found, disable if not.
22757     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22759 $as_echo_n "checking for library containing $tga_func... " >&6; }
22760 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22761   $as_echo_n "(cached) " >&6
22762 else
22763   ac_func_search_save_LIBS=$LIBS
22764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765 /* end confdefs.h.  */
22766
22767 /* Override any GCC internal prototype to avoid an error.
22768    Use char because int might match the return type of a GCC
22769    builtin and then its argument prototype would still apply.  */
22770 #ifdef __cplusplus
22771 extern "C"
22772 #endif
22773 char $tga_func ();
22774 int
22775 main ()
22776 {
22777 return $tga_func ();
22778   ;
22779   return 0;
22780 }
22781 _ACEOF
22782 for ac_lib in '' thread; do
22783   if test -z "$ac_lib"; then
22784     ac_res="none required"
22785   else
22786     ac_res=-l$ac_lib
22787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22788   fi
22789   if ac_fn_c_try_link "$LINENO"; then :
22790   eval "$as_ac_Search=\$ac_res"
22791 fi
22792 rm -f core conftest.err conftest.$ac_objext \
22793     conftest$ac_exeext
22794   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22795   break
22796 fi
22797 done
22798 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22799
22800 else
22801   eval "$as_ac_Search=no"
22802 fi
22803 rm conftest.$ac_ext
22804 LIBS=$ac_func_search_save_LIBS
22805 fi
22806 eval ac_res=\$$as_ac_Search
22807                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22808 $as_echo "$ac_res" >&6; }
22809 eval ac_res=\$$as_ac_Search
22810 if test "$ac_res" != no; then :
22811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22812
22813 else
22814   set_have_as_tls=no
22815 fi
22816
22817     # Clear LIBS if we cannot support TLS.
22818     if test $set_have_as_tls = no; then
22819       LIBS=
22820     fi
22821     # Always define LIB_TLS_SPEC, even without TLS support.
22822
22823 cat >>confdefs.h <<_ACEOF
22824 #define LIB_TLS_SPEC "$LIBS"
22825 _ACEOF
22826
22827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22828 $as_echo "$LIBS" >&6; }
22829
22830     LIBS="$save_LIBS"
22831     LDFLAGS="$save_LDFLAGS"
22832     ;;
22833 esac
22834 if test $set_have_as_tls = yes ; then
22835
22836 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22837
22838 fi
22839
22840 # Target-specific assembler checks.
22841
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22843 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22844 gcc_cv_ld_static_dynamic=no
22845 if test $in_tree_ld = yes ; then
22846   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
22847     gcc_cv_ld_static_dynamic=yes
22848   fi
22849 elif test x$gcc_cv_ld != x; then
22850         # Check if linker supports -Bstatic/-Bdynamic option
22851         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22852           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22853                 gcc_cv_ld_static_dynamic=yes
22854         fi
22855 fi
22856 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22857
22858 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22859
22860 fi
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22862 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22863
22864 if test x"$demangler_in_ld" = xyes; then
22865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22866 $as_echo_n "checking linker --demangle support... " >&6; }
22867   gcc_cv_ld_demangle=no
22868   if test $in_tree_ld = yes; then
22869     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 \
22870       gcc_cv_ld_demangle=yes
22871     fi
22872   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22873     # Check if the GNU linker supports --demangle option
22874     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22875       gcc_cv_ld_demangle=yes
22876     fi
22877   fi
22878   if test x"$gcc_cv_ld_demangle" = xyes; then
22879
22880 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22881
22882   fi
22883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22884 $as_echo "$gcc_cv_ld_demangle" >&6; }
22885 fi
22886
22887 case "$target" in
22888   # All TARGET_ABI_OSF targets.
22889   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22891 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22892 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22893   $as_echo_n "(cached) " >&6
22894 else
22895   gcc_cv_as_alpha_explicit_relocs=no
22896     if test $in_tree_gas = yes; then
22897     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22898   then gcc_cv_as_alpha_explicit_relocs=yes
22899 fi
22900   elif test x$gcc_cv_as != x; then
22901     echo '      .set nomacro
22902         .text
22903         extbl   $3, $2, $3      !lituse_bytoff!1
22904         ldq     $2, a($29)      !literal!1
22905         ldq     $4, b($29)      !literal!2
22906         ldq_u   $3, 0($2)       !lituse_base!1
22907         ldq     $27, f($29)     !literal!5
22908         jsr     $26, ($27), f   !lituse_jsr!5
22909         ldah    $29, 0($26)     !gpdisp!3
22910         lda     $0, c($29)      !gprel
22911         ldah    $1, d($29)      !gprelhigh
22912         lda     $1, d($1)       !gprellow
22913         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22914     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22915   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22916   (eval $ac_try) 2>&5
22917   ac_status=$?
22918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22919   test $ac_status = 0; }; }
22920     then
22921         gcc_cv_as_alpha_explicit_relocs=yes
22922     else
22923       echo "configure: failed program was" >&5
22924       cat conftest.s >&5
22925     fi
22926     rm -f conftest.o conftest.s
22927   fi
22928 fi
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22930 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22931 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22932
22933 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22934
22935 fi
22936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22937 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22938 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22939   $as_echo_n "(cached) " >&6
22940 else
22941   gcc_cv_as_alpha_jsrdirect_relocs=no
22942     if test $in_tree_gas = yes; then
22943     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22944   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22945 fi
22946   elif test x$gcc_cv_as != x; then
22947     echo '      .set nomacro
22948         .text
22949         ldq     $27, a($29)     !literal!1
22950         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22951     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22952   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22953   (eval $ac_try) 2>&5
22954   ac_status=$?
22955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22956   test $ac_status = 0; }; }
22957     then
22958         gcc_cv_as_alpha_jsrdirect_relocs=yes
22959     else
22960       echo "configure: failed program was" >&5
22961       cat conftest.s >&5
22962     fi
22963     rm -f conftest.o conftest.s
22964   fi
22965 fi
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22967 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22968 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22969
22970 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22971
22972 fi
22973     ;;
22974
22975   cris-*-*)
22976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22977 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22978 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22979   $as_echo_n "(cached) " >&6
22980 else
22981   gcc_cv_as_cris_no_mul_bug=no
22982     if test $in_tree_gas = yes; then
22983     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22984   then gcc_cv_as_cris_no_mul_bug=yes
22985 fi
22986   elif test x$gcc_cv_as != x; then
22987     echo '.text' > conftest.s
22988     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22989   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22990   (eval $ac_try) 2>&5
22991   ac_status=$?
22992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993   test $ac_status = 0; }; }
22994     then
22995         gcc_cv_as_cris_no_mul_bug=yes
22996     else
22997       echo "configure: failed program was" >&5
22998       cat conftest.s >&5
22999     fi
23000     rm -f conftest.o conftest.s
23001   fi
23002 fi
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23004 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23005 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23006
23007 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23008
23009 fi
23010     ;;
23011
23012   sparc*-*-*)
23013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23014 $as_echo_n "checking assembler for .register... " >&6; }
23015 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23016   $as_echo_n "(cached) " >&6
23017 else
23018   gcc_cv_as_sparc_register_op=no
23019   if test x$gcc_cv_as != x; then
23020     echo '.register %g2, #scratch' > conftest.s
23021     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23022   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23023   (eval $ac_try) 2>&5
23024   ac_status=$?
23025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23026   test $ac_status = 0; }; }
23027     then
23028         gcc_cv_as_sparc_register_op=yes
23029     else
23030       echo "configure: failed program was" >&5
23031       cat conftest.s >&5
23032     fi
23033     rm -f conftest.o conftest.s
23034   fi
23035 fi
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23037 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23038 if test $gcc_cv_as_sparc_register_op = yes; then
23039
23040 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23041
23042 fi
23043
23044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23045 $as_echo_n "checking assembler for -relax option... " >&6; }
23046 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23047   $as_echo_n "(cached) " >&6
23048 else
23049   gcc_cv_as_sparc_relax=no
23050   if test x$gcc_cv_as != x; then
23051     echo '.text' > conftest.s
23052     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23053   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23057   test $ac_status = 0; }; }
23058     then
23059         gcc_cv_as_sparc_relax=yes
23060     else
23061       echo "configure: failed program was" >&5
23062       cat conftest.s >&5
23063     fi
23064     rm -f conftest.o conftest.s
23065   fi
23066 fi
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23068 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23069 if test $gcc_cv_as_sparc_relax = yes; then
23070
23071 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23072
23073 fi
23074
23075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23076 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23077 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23078   $as_echo_n "(cached) " >&6
23079 else
23080   gcc_cv_as_sparc_gotdata_op=no
23081   if test x$gcc_cv_as != x; then
23082     echo '.text
23083 foo:
23084         nop
23085 bar:
23086         sethi %gdop_hix22(foo), %g1
23087         xor    %g1, %gdop_lox10(foo), %g1
23088         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23089     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23090   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23091   (eval $ac_try) 2>&5
23092   ac_status=$?
23093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23094   test $ac_status = 0; }; }
23095     then
23096         if test x$gcc_cv_ld != x \
23097        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23098          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23099            if test x$gcc_cv_objdump != x; then
23100              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23101                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23102                gcc_cv_as_sparc_gotdata_op=no
23103              else
23104                gcc_cv_as_sparc_gotdata_op=yes
23105              fi
23106            fi
23107          else
23108            gcc_cv_as_sparc_gotdata_op=yes
23109          fi
23110        fi
23111        rm -f conftest
23112     else
23113       echo "configure: failed program was" >&5
23114       cat conftest.s >&5
23115     fi
23116     rm -f conftest.o conftest.s
23117   fi
23118 fi
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23120 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23121 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23122
23123 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23124
23125 fi
23126
23127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23128 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23129 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23130   $as_echo_n "(cached) " >&6
23131 else
23132   gcc_cv_as_sparc_ua_pcrel=no
23133   if test x$gcc_cv_as != x; then
23134     echo '.text
23135 foo:
23136         nop
23137 .data
23138 .align 4
23139 .byte 0
23140 .uaword %r_disp32(foo)' > conftest.s
23141     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23142   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23143   (eval $ac_try) 2>&5
23144   ac_status=$?
23145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23146   test $ac_status = 0; }; }
23147     then
23148         if test x$gcc_cv_ld != x \
23149        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23150          gcc_cv_as_sparc_ua_pcrel=yes
23151        fi
23152        rm -f conftest
23153     else
23154       echo "configure: failed program was" >&5
23155       cat conftest.s >&5
23156     fi
23157     rm -f conftest.o conftest.s
23158   fi
23159 fi
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23161 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23162 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23163
23164 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23165
23166
23167       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23168 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23169 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23170   $as_echo_n "(cached) " >&6
23171 else
23172   gcc_cv_as_sparc_ua_pcrel_hidden=no
23173   if test x$gcc_cv_as != x; then
23174     echo '.data
23175 .align 4
23176 .byte 0x31
23177 .uaword %r_disp32(foo)
23178 .byte 0x32, 0x33, 0x34
23179 .global foo
23180 .hidden foo
23181 foo:
23182 .skip 4' > conftest.s
23183     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23184   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23185   (eval $ac_try) 2>&5
23186   ac_status=$?
23187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23188   test $ac_status = 0; }; }
23189     then
23190         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23191          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23192          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23193             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23194             if $gcc_cv_objdump -R conftest 2> /dev/null \
23195                | grep 'DISP32' > /dev/null 2>&1; then
23196                 :
23197             else
23198                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23199             fi
23200          fi
23201          rm -f conftest
23202     else
23203       echo "configure: failed program was" >&5
23204       cat conftest.s >&5
23205     fi
23206     rm -f conftest.o conftest.s
23207   fi
23208 fi
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23210 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23211 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23212
23213 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23214
23215 fi
23216
23217 fi # unaligned pcrel relocs
23218
23219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23220 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23221 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23222   $as_echo_n "(cached) " >&6
23223 else
23224   gcc_cv_as_sparc_offsetable_lo10=no
23225   if test x$gcc_cv_as != x; then
23226     echo '.text
23227         or %g1, %lo(ab) + 12, %g1
23228         or %g1, %lo(ab + 12), %g1' > conftest.s
23229     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23230   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23231   (eval $ac_try) 2>&5
23232   ac_status=$?
23233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23234   test $ac_status = 0; }; }
23235     then
23236         if test x$gcc_cv_objdump != x \
23237        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23238           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23239          gcc_cv_as_sparc_offsetable_lo10=yes
23240        fi
23241     else
23242       echo "configure: failed program was" >&5
23243       cat conftest.s >&5
23244     fi
23245     rm -f conftest.o conftest.s
23246   fi
23247 fi
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23249 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23250 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23251
23252 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23253
23254 fi
23255     ;;
23256
23257   i[34567]86-*-* | x86_64-*-*)
23258     case $target_os in
23259       cygwin*)
23260         # Full C++ conformance when using a shared libstdc++-v3 requires some
23261         # support from the Cygwin DLL, which in more recent versions exports
23262         # wrappers to aid in interposing and redirecting operators new, delete,
23263         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23264         # are configuring for a version of Cygwin that exports the wrappers.
23265         if test x$host = x$target; then
23266           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23267 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23268   gcc_ac_cygwin_dll_wrappers=yes
23269 else
23270   gcc_ac_cygwin_dll_wrappers=no
23271 fi
23272
23273         else
23274           # Can't check presence of libc functions during cross-compile, so
23275           # we just have to assume we're building for an up-to-date target.
23276           gcc_ac_cygwin_dll_wrappers=yes
23277         fi
23278
23279 cat >>confdefs.h <<_ACEOF
23280 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23281 _ACEOF
23282
23283     esac
23284     case $target_os in
23285       cygwin* | pe | mingw32*)
23286         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23287         # definition is used unconditionally to initialise the default state of
23288         # the target option variable that governs usage of the feature.
23289         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23290 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23291 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23292   $as_echo_n "(cached) " >&6
23293 else
23294   gcc_cv_as_comm_has_align=no
23295     if test $in_tree_gas = yes; then
23296     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23297   then gcc_cv_as_comm_has_align=yes
23298 fi
23299   elif test x$gcc_cv_as != x; then
23300     echo '.comm foo,1,32' > conftest.s
23301     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23302   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23303   (eval $ac_try) 2>&5
23304   ac_status=$?
23305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23306   test $ac_status = 0; }; }
23307     then
23308         gcc_cv_as_comm_has_align=yes
23309     else
23310       echo "configure: failed program was" >&5
23311       cat conftest.s >&5
23312     fi
23313     rm -f conftest.o conftest.s
23314   fi
23315 fi
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23317 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23318
23319
23320 cat >>confdefs.h <<_ACEOF
23321 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23322 _ACEOF
23323
23324         # Used for DWARF 2 in PE
23325         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23326 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23327 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23328   $as_echo_n "(cached) " >&6
23329 else
23330   gcc_cv_as_ix86_pe_secrel32=no
23331     if test $in_tree_gas = yes; then
23332     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23333   then gcc_cv_as_ix86_pe_secrel32=yes
23334 fi
23335   elif test x$gcc_cv_as != x; then
23336     echo '.text
23337 foo:    nop
23338 .data
23339         .secrel32 foo' > 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         if test x$gcc_cv_ld != x \
23348            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23349              gcc_cv_as_ix86_pe_secrel32=yes
23350            fi
23351            rm -f conftest
23352     else
23353       echo "configure: failed program was" >&5
23354       cat conftest.s >&5
23355     fi
23356     rm -f conftest.o conftest.s
23357   fi
23358 fi
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23360 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23361 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23362
23363 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23364
23365 fi
23366         # Test if the assembler supports the extended form of the .section
23367         # directive that specifies section alignment.  LTO support uses this,
23368         # but normally only after installation, so we warn but don't fail the
23369         # configure if LTO is enabled but the assembler does not support it.
23370         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23371 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23372 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23373   $as_echo_n "(cached) " >&6
23374 else
23375   gcc_cv_as_section_has_align=no
23376     if test $in_tree_gas = yes; then
23377     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23378   then gcc_cv_as_section_has_align=yes
23379 fi
23380   elif test x$gcc_cv_as != x; then
23381     echo '.section lto_test,"dr0"' > conftest.s
23382     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23383   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23387   test $ac_status = 0; }; }
23388     then
23389         gcc_cv_as_section_has_align=yes
23390     else
23391       echo "configure: failed program was" >&5
23392       cat conftest.s >&5
23393     fi
23394     rm -f conftest.o conftest.s
23395   fi
23396 fi
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23398 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23399
23400         if test x$gcc_cv_as_section_has_align != xyes; then
23401           case ",$enable_languages," in
23402             *,lto,*)
23403               { $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
23404 $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;}
23405               ;;
23406           esac
23407         fi
23408         ;;
23409     esac
23410
23411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23412 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23413 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23414   $as_echo_n "(cached) " >&6
23415 else
23416   gcc_cv_as_ix86_filds=no
23417   if test x$gcc_cv_as != x; then
23418     echo 'filds mem; fists mem' > conftest.s
23419     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23420   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23421   (eval $ac_try) 2>&5
23422   ac_status=$?
23423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424   test $ac_status = 0; }; }
23425     then
23426         gcc_cv_as_ix86_filds=yes
23427     else
23428       echo "configure: failed program was" >&5
23429       cat conftest.s >&5
23430     fi
23431     rm -f conftest.o conftest.s
23432   fi
23433 fi
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23435 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23436 if test $gcc_cv_as_ix86_filds = yes; then
23437
23438 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23439
23440 fi
23441
23442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23443 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23444 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23445   $as_echo_n "(cached) " >&6
23446 else
23447   gcc_cv_as_ix86_fildq=no
23448   if test x$gcc_cv_as != x; then
23449     echo 'fildq mem; fistpq mem' > conftest.s
23450     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23451   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23452   (eval $ac_try) 2>&5
23453   ac_status=$?
23454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455   test $ac_status = 0; }; }
23456     then
23457         gcc_cv_as_ix86_fildq=yes
23458     else
23459       echo "configure: failed program was" >&5
23460       cat conftest.s >&5
23461     fi
23462     rm -f conftest.o conftest.s
23463   fi
23464 fi
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23466 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23467 if test $gcc_cv_as_ix86_fildq = yes; then
23468
23469 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23470
23471 fi
23472
23473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23474 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23475 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23476   $as_echo_n "(cached) " >&6
23477 else
23478   gcc_cv_as_ix86_cmov_sun_syntax=no
23479   if test x$gcc_cv_as != x; then
23480     echo 'cmovl.l %edx, %eax' > conftest.s
23481     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23482   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23483   (eval $ac_try) 2>&5
23484   ac_status=$?
23485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23486   test $ac_status = 0; }; }
23487     then
23488         gcc_cv_as_ix86_cmov_sun_syntax=yes
23489     else
23490       echo "configure: failed program was" >&5
23491       cat conftest.s >&5
23492     fi
23493     rm -f conftest.o conftest.s
23494   fi
23495 fi
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23497 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23498 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23499
23500 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23501
23502 fi
23503
23504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23505 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23506 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23507   $as_echo_n "(cached) " >&6
23508 else
23509   gcc_cv_as_ix86_ffreep=no
23510   if test x$gcc_cv_as != x; then
23511     echo 'ffreep %st(1)' > conftest.s
23512     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23513   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23514   (eval $ac_try) 2>&5
23515   ac_status=$?
23516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23517   test $ac_status = 0; }; }
23518     then
23519         gcc_cv_as_ix86_ffreep=yes
23520     else
23521       echo "configure: failed program was" >&5
23522       cat conftest.s >&5
23523     fi
23524     rm -f conftest.o conftest.s
23525   fi
23526 fi
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23528 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23529 if test $gcc_cv_as_ix86_ffreep = yes; then
23530
23531 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23532
23533 fi
23534
23535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23536 $as_echo_n "checking assembler for .quad directive... " >&6; }
23537 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23538   $as_echo_n "(cached) " >&6
23539 else
23540   gcc_cv_as_ix86_quad=no
23541   if test x$gcc_cv_as != x; then
23542     echo '.quad 0' > conftest.s
23543     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23544   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23545   (eval $ac_try) 2>&5
23546   ac_status=$?
23547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23548   test $ac_status = 0; }; }
23549     then
23550         gcc_cv_as_ix86_quad=yes
23551     else
23552       echo "configure: failed program was" >&5
23553       cat conftest.s >&5
23554     fi
23555     rm -f conftest.o conftest.s
23556   fi
23557 fi
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23559 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23560 if test $gcc_cv_as_ix86_quad = yes; then
23561
23562 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23563
23564 fi
23565
23566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23567 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23568 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23569   $as_echo_n "(cached) " >&6
23570 else
23571   gcc_cv_as_ix86_sahf=no
23572   if test x$gcc_cv_as != x; then
23573     echo '.code64
23574        sahf' > conftest.s
23575     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23576   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23577   (eval $ac_try) 2>&5
23578   ac_status=$?
23579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23580   test $ac_status = 0; }; }
23581     then
23582         gcc_cv_as_ix86_sahf=yes
23583     else
23584       echo "configure: failed program was" >&5
23585       cat conftest.s >&5
23586     fi
23587     rm -f conftest.o conftest.s
23588   fi
23589 fi
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23591 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23592 if test $gcc_cv_as_ix86_sahf = yes; then
23593
23594 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23595
23596 fi
23597
23598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23599 $as_echo_n "checking assembler for swap suffix... " >&6; }
23600 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23601   $as_echo_n "(cached) " >&6
23602 else
23603   gcc_cv_as_ix86_swap=no
23604   if test x$gcc_cv_as != x; then
23605     echo 'movl.s %esp, %ebp' > conftest.s
23606     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23607   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23608   (eval $ac_try) 2>&5
23609   ac_status=$?
23610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23611   test $ac_status = 0; }; }
23612     then
23613         gcc_cv_as_ix86_swap=yes
23614     else
23615       echo "configure: failed program was" >&5
23616       cat conftest.s >&5
23617     fi
23618     rm -f conftest.o conftest.s
23619   fi
23620 fi
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23622 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23623 if test $gcc_cv_as_ix86_swap = yes; then
23624
23625 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23626
23627 fi
23628
23629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23630 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23631 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23632   $as_echo_n "(cached) " >&6
23633 else
23634   gcc_cv_as_ix86_diff_sect_delta=no
23635   if test x$gcc_cv_as != x; then
23636     echo '.section .rodata
23637 .L1:
23638         .long .L2-.L1
23639         .long .L3-.L1
23640         .text
23641 .L3:    nop
23642 .L2:    nop' > conftest.s
23643     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23644   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23645   (eval $ac_try) 2>&5
23646   ac_status=$?
23647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23648   test $ac_status = 0; }; }
23649     then
23650         gcc_cv_as_ix86_diff_sect_delta=yes
23651     else
23652       echo "configure: failed program was" >&5
23653       cat conftest.s >&5
23654     fi
23655     rm -f conftest.o conftest.s
23656   fi
23657 fi
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23659 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23660 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23661
23662 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23663
23664 fi
23665
23666     # These two are used unconditionally by i386.[ch]; it is to be defined
23667     # to 1 if the feature is present, 0 otherwise.
23668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23669 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23670 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23671   $as_echo_n "(cached) " >&6
23672 else
23673   gcc_cv_as_ix86_gotoff_in_data=no
23674     if test $in_tree_gas = yes; then
23675     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23676   then gcc_cv_as_ix86_gotoff_in_data=yes
23677 fi
23678   elif test x$gcc_cv_as != x; then
23679     echo '      .text
23680 .L0:
23681         nop
23682         .data
23683         .long .L0@GOTOFF' > conftest.s
23684     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23685   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23686   (eval $ac_try) 2>&5
23687   ac_status=$?
23688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23689   test $ac_status = 0; }; }
23690     then
23691         gcc_cv_as_ix86_gotoff_in_data=yes
23692     else
23693       echo "configure: failed program was" >&5
23694       cat conftest.s >&5
23695     fi
23696     rm -f conftest.o conftest.s
23697   fi
23698 fi
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23700 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23701
23702
23703 cat >>confdefs.h <<_ACEOF
23704 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23705 _ACEOF
23706
23707
23708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23709 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23710 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23711   $as_echo_n "(cached) " >&6
23712 else
23713   gcc_cv_as_ix86_rep_lock_prefix=no
23714   if test x$gcc_cv_as != x; then
23715     echo 'rep movsl
23716          lock addl %edi, (%eax,%esi)
23717          lock orl $0, (%esp)' > conftest.s
23718     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23719   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23720   (eval $ac_try) 2>&5
23721   ac_status=$?
23722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23723   test $ac_status = 0; }; }
23724     then
23725         gcc_cv_as_ix86_rep_lock_prefix=yes
23726     else
23727       echo "configure: failed program was" >&5
23728       cat conftest.s >&5
23729     fi
23730     rm -f conftest.o conftest.s
23731   fi
23732 fi
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23734 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23735 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23736
23737 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23738
23739 fi
23740
23741     ;;
23742
23743   ia64*-*-*)
23744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23745 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23746 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23747   $as_echo_n "(cached) " >&6
23748 else
23749   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23750     if test $in_tree_gas = yes; then
23751     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23752   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23753 fi
23754   elif test x$gcc_cv_as != x; then
23755     echo '      .text
23756         addl r15 = @ltoffx(x#), gp
23757         ;;
23758         ld8.mov r16 = [r15], x#' > conftest.s
23759     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23760   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23761   (eval $ac_try) 2>&5
23762   ac_status=$?
23763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23764   test $ac_status = 0; }; }
23765     then
23766         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23767     else
23768       echo "configure: failed program was" >&5
23769       cat conftest.s >&5
23770     fi
23771     rm -f conftest.o conftest.s
23772   fi
23773 fi
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23775 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23776 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23777
23778 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23779
23780 fi
23781
23782     ;;
23783
23784   powerpc*-*-*)
23785     case $target in
23786       *-*-aix*) conftest_s='    .machine "pwr5"
23787         .csect .text[PR]
23788         mfcr 3,128';;
23789       *-*-darwin*)
23790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23791 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23792 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23793   $as_echo_n "(cached) " >&6
23794 else
23795   gcc_cv_as_machine_directive=no
23796   if test x$gcc_cv_as != x; then
23797     echo '      .machine ppc7400' > conftest.s
23798     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23799   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23800   (eval $ac_try) 2>&5
23801   ac_status=$?
23802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23803   test $ac_status = 0; }; }
23804     then
23805         gcc_cv_as_machine_directive=yes
23806     else
23807       echo "configure: failed program was" >&5
23808       cat conftest.s >&5
23809     fi
23810     rm -f conftest.o conftest.s
23811   fi
23812 fi
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23814 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23815
23816         if test x$gcc_cv_as_machine_directive != xyes; then
23817           echo "*** This target requires an assembler supporting \".machine\"" >&2
23818           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23819           test x$build = x$target && exit 1
23820         fi
23821         conftest_s='    .text
23822         mfcr r3,128';;
23823       *) conftest_s='   .machine power4
23824         .text
23825         mfcr 3,128';;
23826     esac
23827
23828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23829 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23830 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23831   $as_echo_n "(cached) " >&6
23832 else
23833   gcc_cv_as_powerpc_mfcrf=no
23834     if test $in_tree_gas = yes; then
23835     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23836   then gcc_cv_as_powerpc_mfcrf=yes
23837 fi
23838   elif test x$gcc_cv_as != x; then
23839     echo "$conftest_s" > conftest.s
23840     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23841   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23842   (eval $ac_try) 2>&5
23843   ac_status=$?
23844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23845   test $ac_status = 0; }; }
23846     then
23847         gcc_cv_as_powerpc_mfcrf=yes
23848     else
23849       echo "configure: failed program was" >&5
23850       cat conftest.s >&5
23851     fi
23852     rm -f conftest.o conftest.s
23853   fi
23854 fi
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23856 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23857 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23858
23859 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23860
23861 fi
23862
23863     case $target in
23864       *-*-aix*) conftest_s='    .machine "pwr5"
23865         .csect .text[PR]
23866         popcntb 3,3';;
23867       *) conftest_s='   .machine power5
23868         .text
23869         popcntb 3,3';;
23870     esac
23871
23872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23873 $as_echo_n "checking assembler for popcntb support... " >&6; }
23874 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23875   $as_echo_n "(cached) " >&6
23876 else
23877   gcc_cv_as_powerpc_popcntb=no
23878     if test $in_tree_gas = yes; then
23879     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23880   then gcc_cv_as_powerpc_popcntb=yes
23881 fi
23882   elif test x$gcc_cv_as != x; then
23883     echo "$conftest_s" > conftest.s
23884     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23885   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23886   (eval $ac_try) 2>&5
23887   ac_status=$?
23888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889   test $ac_status = 0; }; }
23890     then
23891         gcc_cv_as_powerpc_popcntb=yes
23892     else
23893       echo "configure: failed program was" >&5
23894       cat conftest.s >&5
23895     fi
23896     rm -f conftest.o conftest.s
23897   fi
23898 fi
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23900 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23901 if test $gcc_cv_as_powerpc_popcntb = yes; then
23902
23903 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23904
23905 fi
23906
23907     case $target in
23908       *-*-aix*) conftest_s='    .machine "pwr5x"
23909         .csect .text[PR]
23910         frin 1,1';;
23911       *) conftest_s='   .machine power5
23912         .text
23913         frin 1,1';;
23914     esac
23915
23916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23917 $as_echo_n "checking assembler for fp round support... " >&6; }
23918 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23919   $as_echo_n "(cached) " >&6
23920 else
23921   gcc_cv_as_powerpc_fprnd=no
23922     if test $in_tree_gas = yes; then
23923     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23924   then gcc_cv_as_powerpc_fprnd=yes
23925 fi
23926   elif test x$gcc_cv_as != x; then
23927     echo "$conftest_s" > conftest.s
23928     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23929   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23930   (eval $ac_try) 2>&5
23931   ac_status=$?
23932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23933   test $ac_status = 0; }; }
23934     then
23935         gcc_cv_as_powerpc_fprnd=yes
23936     else
23937       echo "configure: failed program was" >&5
23938       cat conftest.s >&5
23939     fi
23940     rm -f conftest.o conftest.s
23941   fi
23942 fi
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23944 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23945 if test $gcc_cv_as_powerpc_fprnd = yes; then
23946
23947 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23948
23949 fi
23950
23951     case $target in
23952       *-*-aix*) conftest_s='    .machine "pwr6"
23953         .csect .text[PR]
23954         mffgpr 1,3';;
23955       *) conftest_s='   .machine power6
23956         .text
23957         mffgpr 1,3';;
23958     esac
23959
23960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23961 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23962 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23963   $as_echo_n "(cached) " >&6
23964 else
23965   gcc_cv_as_powerpc_mfpgpr=no
23966     if test $in_tree_gas = yes; then
23967     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23968   then gcc_cv_as_powerpc_mfpgpr=yes
23969 fi
23970   elif test x$gcc_cv_as != x; then
23971     echo "$conftest_s" > conftest.s
23972     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23973   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23974   (eval $ac_try) 2>&5
23975   ac_status=$?
23976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23977   test $ac_status = 0; }; }
23978     then
23979         gcc_cv_as_powerpc_mfpgpr=yes
23980     else
23981       echo "configure: failed program was" >&5
23982       cat conftest.s >&5
23983     fi
23984     rm -f conftest.o conftest.s
23985   fi
23986 fi
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23988 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23989 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23990
23991 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23992
23993 fi
23994
23995     case $target in
23996       *-*-aix*) conftest_s='    .csect .text[PR]
23997 LCF..0:
23998         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23999       *-*-darwin*)
24000         conftest_s='    .text
24001 LCF0:
24002         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24003       *) conftest_s='   .text
24004 .LCF0:
24005         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24006     esac
24007
24008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24009 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24010 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24011   $as_echo_n "(cached) " >&6
24012 else
24013   gcc_cv_as_powerpc_rel16=no
24014     if test $in_tree_gas = yes; then
24015     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24016   then gcc_cv_as_powerpc_rel16=yes
24017 fi
24018   elif test x$gcc_cv_as != x; then
24019     echo "$conftest_s" > conftest.s
24020     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24021   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24022   (eval $ac_try) 2>&5
24023   ac_status=$?
24024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24025   test $ac_status = 0; }; }
24026     then
24027         gcc_cv_as_powerpc_rel16=yes
24028     else
24029       echo "configure: failed program was" >&5
24030       cat conftest.s >&5
24031     fi
24032     rm -f conftest.o conftest.s
24033   fi
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24036 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24037 if test $gcc_cv_as_powerpc_rel16 = yes; then
24038
24039 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24040
24041 fi
24042
24043     case $target in
24044       *-*-aix*) conftest_s='    .machine "pwr6"
24045         .csect .text[PR]
24046         cmpb 3,4,5';;
24047       *) conftest_s='   .machine power6
24048         .text
24049         cmpb 3,4,5';;
24050     esac
24051
24052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24053 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24054 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24055   $as_echo_n "(cached) " >&6
24056 else
24057   gcc_cv_as_powerpc_cmpb=no
24058     if test $in_tree_gas = yes; then
24059     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24060   then gcc_cv_as_powerpc_cmpb=yes
24061 fi
24062   elif test x$gcc_cv_as != x; then
24063     echo "$conftest_s" > conftest.s
24064     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24065   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066   (eval $ac_try) 2>&5
24067   ac_status=$?
24068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069   test $ac_status = 0; }; }
24070     then
24071         gcc_cv_as_powerpc_cmpb=yes
24072     else
24073       echo "configure: failed program was" >&5
24074       cat conftest.s >&5
24075     fi
24076     rm -f conftest.o conftest.s
24077   fi
24078 fi
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24080 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24081 if test $gcc_cv_as_powerpc_cmpb = yes; then
24082
24083 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24084
24085 fi
24086
24087     case $target in
24088       *-*-aix*) conftest_s='    .machine "pwr6"
24089         .csect .text[PR]
24090         dadd 1,2,3';;
24091       *) conftest_s='   .machine power6
24092         .text
24093         dadd 1,2,3';;
24094     esac
24095
24096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24097 $as_echo_n "checking assembler for decimal float support... " >&6; }
24098 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24099   $as_echo_n "(cached) " >&6
24100 else
24101   gcc_cv_as_powerpc_dfp=no
24102     if test $in_tree_gas = yes; then
24103     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24104   then gcc_cv_as_powerpc_dfp=yes
24105 fi
24106   elif test x$gcc_cv_as != x; then
24107     echo "$conftest_s" > conftest.s
24108     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24109   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24110   (eval $ac_try) 2>&5
24111   ac_status=$?
24112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24113   test $ac_status = 0; }; }
24114     then
24115         gcc_cv_as_powerpc_dfp=yes
24116     else
24117       echo "configure: failed program was" >&5
24118       cat conftest.s >&5
24119     fi
24120     rm -f conftest.o conftest.s
24121   fi
24122 fi
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24124 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24125 if test $gcc_cv_as_powerpc_dfp = yes; then
24126
24127 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24128
24129 fi
24130
24131     case $target in
24132       *-*-aix*) conftest_s='    .machine "pwr7"
24133         .csect .text[PR]
24134         lxvd2x 1,2,3';;
24135       *) conftest_s='   .machine power7
24136         .text
24137         lxvd2x 1,2,3';;
24138     esac
24139
24140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24141 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24142 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24143   $as_echo_n "(cached) " >&6
24144 else
24145   gcc_cv_as_powerpc_vsx=no
24146     if test $in_tree_gas = yes; then
24147     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24148   then gcc_cv_as_powerpc_vsx=yes
24149 fi
24150   elif test x$gcc_cv_as != x; then
24151     echo "$conftest_s" > conftest.s
24152     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24153   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24157   test $ac_status = 0; }; }
24158     then
24159         gcc_cv_as_powerpc_vsx=yes
24160     else
24161       echo "configure: failed program was" >&5
24162       cat conftest.s >&5
24163     fi
24164     rm -f conftest.o conftest.s
24165   fi
24166 fi
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24168 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24169 if test $gcc_cv_as_powerpc_vsx = yes; then
24170
24171 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24172
24173 fi
24174
24175     case $target in
24176       *-*-aix*) conftest_s='    .machine "pwr7"
24177         .csect .text[PR]
24178         popcntd 3,3';;
24179       *) conftest_s='   .machine power7
24180         .text
24181         popcntd 3,3';;
24182     esac
24183
24184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24185 $as_echo_n "checking assembler for popcntd support... " >&6; }
24186 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24187   $as_echo_n "(cached) " >&6
24188 else
24189   gcc_cv_as_powerpc_popcntd=no
24190     if test $in_tree_gas = yes; then
24191     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24192   then gcc_cv_as_powerpc_popcntd=yes
24193 fi
24194   elif test x$gcc_cv_as != x; then
24195     echo "$conftest_s" > conftest.s
24196     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24197   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24198   (eval $ac_try) 2>&5
24199   ac_status=$?
24200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24201   test $ac_status = 0; }; }
24202     then
24203         gcc_cv_as_powerpc_popcntd=yes
24204     else
24205       echo "configure: failed program was" >&5
24206       cat conftest.s >&5
24207     fi
24208     rm -f conftest.o conftest.s
24209   fi
24210 fi
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24212 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24213 if test $gcc_cv_as_powerpc_popcntd = yes; then
24214
24215 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24216
24217 fi
24218
24219     case $target in
24220       *-*-aix*) conftest_s='    .csect .text[PR]
24221         lwsync';;
24222       *) conftest_s='   .text
24223         lwsync';;
24224     esac
24225
24226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24227 $as_echo_n "checking assembler for lwsync support... " >&6; }
24228 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24229   $as_echo_n "(cached) " >&6
24230 else
24231   gcc_cv_as_powerpc_lwsync=no
24232     if test $in_tree_gas = yes; then
24233     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24234   then gcc_cv_as_powerpc_lwsync=yes
24235 fi
24236   elif test x$gcc_cv_as != x; then
24237     echo "$conftest_s" > conftest.s
24238     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24239   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24240   (eval $ac_try) 2>&5
24241   ac_status=$?
24242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24243   test $ac_status = 0; }; }
24244     then
24245         gcc_cv_as_powerpc_lwsync=yes
24246     else
24247       echo "configure: failed program was" >&5
24248       cat conftest.s >&5
24249     fi
24250     rm -f conftest.o conftest.s
24251   fi
24252 fi
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24254 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24255 if test $gcc_cv_as_powerpc_lwsync = yes; then
24256
24257 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24258
24259 fi
24260
24261     case $target in
24262       *-*-aix*) conftest_s='    .machine "476"
24263         .csect .text[PR]
24264         dci 0';;
24265       *) conftest_s='   .machine "476"
24266         .text
24267         dci 0';;
24268     esac
24269
24270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24271 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24272 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24273   $as_echo_n "(cached) " >&6
24274 else
24275   gcc_cv_as_powerpc_dci=no
24276     if test $in_tree_gas = yes; then
24277     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24278   then gcc_cv_as_powerpc_dci=yes
24279 fi
24280   elif test x$gcc_cv_as != x; then
24281     echo "$conftest_s" > conftest.s
24282     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24283   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24284   (eval $ac_try) 2>&5
24285   ac_status=$?
24286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24287   test $ac_status = 0; }; }
24288     then
24289         gcc_cv_as_powerpc_dci=yes
24290     else
24291       echo "configure: failed program was" >&5
24292       cat conftest.s >&5
24293     fi
24294     rm -f conftest.o conftest.s
24295   fi
24296 fi
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24298 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24299 if test $gcc_cv_as_powerpc_dci = yes; then
24300
24301 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24302
24303 fi
24304
24305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24306 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24307 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24308   $as_echo_n "(cached) " >&6
24309 else
24310   gcc_cv_as_powerpc_gnu_attribute=no
24311     if test $in_tree_gas = yes; then
24312     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24313   then gcc_cv_as_powerpc_gnu_attribute=yes
24314 fi
24315   elif test x$gcc_cv_as != x; then
24316     echo '.gnu_attribute 4,1' > conftest.s
24317     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24318   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24319   (eval $ac_try) 2>&5
24320   ac_status=$?
24321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24322   test $ac_status = 0; }; }
24323     then
24324         gcc_cv_as_powerpc_gnu_attribute=yes
24325     else
24326       echo "configure: failed program was" >&5
24327       cat conftest.s >&5
24328     fi
24329     rm -f conftest.o conftest.s
24330   fi
24331 fi
24332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24333 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24334 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24335
24336 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24337
24338 fi
24339
24340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24341 $as_echo_n "checking assembler for tls marker support... " >&6; }
24342 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24343   $as_echo_n "(cached) " >&6
24344 else
24345   gcc_cv_as_powerpc_tls_markers=no
24346     if test $in_tree_gas = yes; then
24347     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24348   then gcc_cv_as_powerpc_tls_markers=yes
24349 fi
24350   elif test x$gcc_cv_as != x; then
24351     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24352     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24353   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24354   (eval $ac_try) 2>&5
24355   ac_status=$?
24356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24357   test $ac_status = 0; }; }
24358     then
24359         gcc_cv_as_powerpc_tls_markers=yes
24360     else
24361       echo "configure: failed program was" >&5
24362       cat conftest.s >&5
24363     fi
24364     rm -f conftest.o conftest.s
24365   fi
24366 fi
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24368 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24369 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24370
24371 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24372
24373 fi
24374
24375     case $target in
24376       *-*-aix*)
24377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24378 $as_echo_n "checking assembler for .ref support... " >&6; }
24379 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24380   $as_echo_n "(cached) " >&6
24381 else
24382   gcc_cv_as_aix_ref=no
24383     if test $in_tree_gas = yes; then
24384     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24385   then :
24386 fi
24387   elif test x$gcc_cv_as != x; then
24388     echo '      .csect stuff[rw]
24389              stuff:
24390                 .long 1
24391                 .extern sym
24392                 .ref sym
24393           ' > conftest.s
24394     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24395   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24396   (eval $ac_try) 2>&5
24397   ac_status=$?
24398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24399   test $ac_status = 0; }; }
24400     then
24401         gcc_cv_as_aix_ref=yes
24402     else
24403       echo "configure: failed program was" >&5
24404       cat conftest.s >&5
24405     fi
24406     rm -f conftest.o conftest.s
24407   fi
24408 fi
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24410 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24411 if test $gcc_cv_as_aix_ref = yes; then
24412
24413 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24414
24415 fi
24416         ;;
24417     esac
24418     ;;
24419
24420   mips*-*-*)
24421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24422 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24423 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24424   $as_echo_n "(cached) " >&6
24425 else
24426   gcc_cv_as_mips_explicit_relocs=no
24427     if test $in_tree_gas = yes; then
24428     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24429   then gcc_cv_as_mips_explicit_relocs=yes
24430 fi
24431   elif test x$gcc_cv_as != x; then
24432     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24433     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24434   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24435   (eval $ac_try) 2>&5
24436   ac_status=$?
24437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24438   test $ac_status = 0; }; }
24439     then
24440         gcc_cv_as_mips_explicit_relocs=yes
24441     else
24442       echo "configure: failed program was" >&5
24443       cat conftest.s >&5
24444     fi
24445     rm -f conftest.o conftest.s
24446   fi
24447 fi
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24449 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24450 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24451   if test x$target_cpu_default = x
24452        then target_cpu_default=MASK_EXPLICIT_RELOCS
24453        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24454        fi
24455 fi
24456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24457 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24458 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24459   $as_echo_n "(cached) " >&6
24460 else
24461   gcc_cv_as_mips_no_shared=no
24462     if test $in_tree_gas = yes; then
24463     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24464   then gcc_cv_as_mips_no_shared=yes
24465 fi
24466   elif test x$gcc_cv_as != x; then
24467     echo 'nop' > conftest.s
24468     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -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_mips_no_shared=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_mips_no_shared" >&5
24484 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24485 if test $gcc_cv_as_mips_no_shared = yes; then
24486
24487 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24488
24489 fi
24490
24491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24492 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24493 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24494   $as_echo_n "(cached) " >&6
24495 else
24496   gcc_cv_as_mips_gnu_attribute=no
24497     if test $in_tree_gas = yes; then
24498     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24499   then gcc_cv_as_mips_gnu_attribute=yes
24500 fi
24501   elif test x$gcc_cv_as != x; then
24502     echo '.gnu_attribute 4,1' > conftest.s
24503     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24504   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505   (eval $ac_try) 2>&5
24506   ac_status=$?
24507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508   test $ac_status = 0; }; }
24509     then
24510         gcc_cv_as_mips_gnu_attribute=yes
24511     else
24512       echo "configure: failed program was" >&5
24513       cat conftest.s >&5
24514     fi
24515     rm -f conftest.o conftest.s
24516   fi
24517 fi
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24519 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24520 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24521
24522 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24523
24524 fi
24525
24526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24527 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24528 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24529   $as_echo_n "(cached) " >&6
24530 else
24531   gcc_cv_as_mips_dtprelword=no
24532     if test $in_tree_gas = yes; then
24533     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24534   then gcc_cv_as_mips_dtprelword=yes
24535 fi
24536   elif test x$gcc_cv_as != x; then
24537     echo '.section .tdata,"awT",@progbits
24538 x:
24539         .word 2
24540         .text
24541         .dtprelword x+0x8000' > conftest.s
24542     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24543   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544   (eval $ac_try) 2>&5
24545   ac_status=$?
24546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547   test $ac_status = 0; }; }
24548     then
24549         gcc_cv_as_mips_dtprelword=yes
24550     else
24551       echo "configure: failed program was" >&5
24552       cat conftest.s >&5
24553     fi
24554     rm -f conftest.o conftest.s
24555   fi
24556 fi
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24558 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24559 if test $gcc_cv_as_mips_dtprelword = yes; then
24560
24561 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24562
24563 fi
24564
24565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24566 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24567 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24568   $as_echo_n "(cached) " >&6
24569 else
24570   gcc_cv_as_mips_dspr1_mult=no
24571   if test x$gcc_cv_as != x; then
24572     echo '      .set    mips32r2
24573         .set    nodspr2
24574         .set    dsp
24575         madd    $ac3,$4,$5
24576         maddu   $ac3,$4,$5
24577         msub    $ac3,$4,$5
24578         msubu   $ac3,$4,$5
24579         mult    $ac3,$4,$5
24580         multu   $ac3,$4,$5' > conftest.s
24581     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24582   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24583   (eval $ac_try) 2>&5
24584   ac_status=$?
24585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24586   test $ac_status = 0; }; }
24587     then
24588         gcc_cv_as_mips_dspr1_mult=yes
24589     else
24590       echo "configure: failed program was" >&5
24591       cat conftest.s >&5
24592     fi
24593     rm -f conftest.o conftest.s
24594   fi
24595 fi
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24597 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24598 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24599
24600 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24601
24602 fi
24603
24604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24605 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24606     gcc_cv_as_ld_jalr_reloc=no
24607     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24608       if test $in_tree_ld = yes ; then
24609         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 \
24610            && test $in_tree_ld_is_elf = yes; then
24611           gcc_cv_as_ld_jalr_reloc=yes
24612         fi
24613       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24614         echo '  .ent x' > conftest.s
24615         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24616         echo '  ld $25,%call16(y)($28)' >> conftest.s
24617         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24618         echo '1:        jalr $25' >> conftest.s
24619         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24620         echo '1:        jalr $25' >> conftest.s
24621         echo '  .end x' >> conftest.s
24622         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24623            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24624           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24625              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24626             gcc_cv_as_ld_jalr_reloc=yes
24627           fi
24628         fi
24629         rm -f conftest.*
24630       fi
24631     fi
24632     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24633       if test x$target_cpu_default = x; then
24634         target_cpu_default=MASK_RELAX_PIC_CALLS
24635       else
24636         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24637       fi
24638     fi
24639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24640 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24641
24642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24643 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24644 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24645   $as_echo_n "(cached) " >&6
24646 else
24647   gcc_cv_ld_mips_personality_relaxation=no
24648        if test $in_tree_ld = yes ; then
24649          if test "$gcc_cv_gld_major_version" -eq 2 \
24650                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24651                  -o "$gcc_cv_gld_major_version" -gt 2; then
24652            gcc_cv_ld_mips_personality_relaxation=yes
24653          fi
24654        elif test x$gcc_cv_as != x \
24655                  -a x$gcc_cv_ld != x \
24656                  -a x$gcc_cv_readelf != x ; then
24657          cat > conftest.s <<EOF
24658         .cfi_startproc
24659         .cfi_personality 0x80,indirect_ptr
24660         .ent test
24661 test:
24662         nop
24663         .end test
24664         .cfi_endproc
24665
24666         .section .data,"aw",@progbits
24667 indirect_ptr:
24668         .dc.a personality
24669 EOF
24670          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24671             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24672            if $gcc_cv_readelf -d conftest 2>&1 \
24673               | grep TEXTREL > /dev/null 2>&1; then
24674              :
24675            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24676                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24677              :
24678            else
24679              gcc_cv_ld_mips_personality_relaxation=yes
24680            fi
24681          fi
24682        fi
24683        rm -f conftest.s conftest.o conftest
24684 fi
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24686 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24687     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24688
24689 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24690
24691     fi
24692     ;;
24693 esac
24694
24695 # Mips and HP-UX need the GNU assembler.
24696 # Linux on IA64 might be able to use the Intel assembler.
24697
24698 case "$target" in
24699   mips*-*-* | *-*-hpux* )
24700     if test x$gas_flag = xyes \
24701        || test x"$host" != x"$build" \
24702        || test ! -x "$gcc_cv_as" \
24703        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24704       :
24705     else
24706       echo "*** This configuration requires the GNU assembler" >&2
24707       exit 1
24708     fi
24709     ;;
24710 esac
24711
24712 # ??? Not all targets support dwarf2 debug_line, even within a version
24713 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24714 # info to the output file.  So, as supported targets are added to gas 2.11,
24715 # add some instruction here to (also) show we expect this might work.
24716 # ??? Once 2.11 is released, probably need to add first known working
24717 # version to the per-target configury.
24718 case "$cpu_type" in
24719   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24720   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24721     insn="nop"
24722     ;;
24723   ia64 | s390)
24724     insn="nop 0"
24725     ;;
24726   mmix)
24727     insn="swym 0"
24728     ;;
24729 esac
24730 if test x"$insn" != x; then
24731  conftest_s="\
24732         .file 1 \"conftest.s\"
24733         .loc 1 3 0
24734         $insn"
24735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24736 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24737 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24738   $as_echo_n "(cached) " >&6
24739 else
24740   gcc_cv_as_dwarf2_debug_line=no
24741     if test $in_tree_gas = yes; then
24742     if test $in_tree_gas_is_elf = yes \
24743   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24744   then gcc_cv_as_dwarf2_debug_line=yes
24745 fi
24746   elif test x$gcc_cv_as != x; then
24747     echo "$conftest_s" > conftest.s
24748     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24749   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750   (eval $ac_try) 2>&5
24751   ac_status=$?
24752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753   test $ac_status = 0; }; }
24754     then
24755         if test x$gcc_cv_objdump != x \
24756    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24757       | grep debug_line > /dev/null 2>&1; then
24758      gcc_cv_as_dwarf2_debug_line=yes
24759    fi
24760     else
24761       echo "configure: failed program was" >&5
24762       cat conftest.s >&5
24763     fi
24764     rm -f conftest.o conftest.s
24765   fi
24766 fi
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24768 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24769
24770
24771 # The .debug_line file table must be in the exact order that
24772 # we specified the files, since these indices are also used
24773 # by DW_AT_decl_file.  Approximate this test by testing if
24774 # the assembler bitches if the same index is assigned twice.
24775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24776 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24777 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24778   $as_echo_n "(cached) " >&6
24779 else
24780   gcc_cv_as_dwarf2_file_buggy=no
24781   if test x$gcc_cv_as != x; then
24782     echo '      .file 1 "foo.s"
24783         .file 1 "bar.s"' > conftest.s
24784     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24785   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24786   (eval $ac_try) 2>&5
24787   ac_status=$?
24788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24789   test $ac_status = 0; }; }
24790     then
24791         gcc_cv_as_dwarf2_file_buggy=yes
24792     else
24793       echo "configure: failed program was" >&5
24794       cat conftest.s >&5
24795     fi
24796     rm -f conftest.o conftest.s
24797   fi
24798 fi
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24800 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24801
24802
24803  if test $gcc_cv_as_dwarf2_debug_line = yes \
24804  && test $gcc_cv_as_dwarf2_file_buggy = no; then
24805
24806 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24807
24808  fi
24809
24810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24811 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24812 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24813   $as_echo_n "(cached) " >&6
24814 else
24815   gcc_cv_as_gdwarf2_flag=no
24816     if test $in_tree_gas = yes; then
24817     if test $in_tree_gas_is_elf = yes \
24818   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24819   then gcc_cv_as_gdwarf2_flag=yes
24820 fi
24821   elif test x$gcc_cv_as != x; then
24822     echo "$insn" > conftest.s
24823     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24824   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24825   (eval $ac_try) 2>&5
24826   ac_status=$?
24827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24828   test $ac_status = 0; }; }
24829     then
24830         gcc_cv_as_gdwarf2_flag=yes
24831     else
24832       echo "configure: failed program was" >&5
24833       cat conftest.s >&5
24834     fi
24835     rm -f conftest.o conftest.s
24836   fi
24837 fi
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24839 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24840 if test $gcc_cv_as_gdwarf2_flag = yes; then
24841
24842 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24843
24844 fi
24845
24846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24847 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24848 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24849   $as_echo_n "(cached) " >&6
24850 else
24851   gcc_cv_as_gstabs_flag=no
24852     if test $in_tree_gas = yes; then
24853     if test $in_tree_gas_is_elf = yes \
24854   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24855   then gcc_cv_as_gstabs_flag=yes
24856 fi
24857   elif test x$gcc_cv_as != x; then
24858     echo "$insn" > conftest.s
24859     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24860   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861   (eval $ac_try) 2>&5
24862   ac_status=$?
24863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864   test $ac_status = 0; }; }
24865     then
24866         # The native Solaris 9/Intel assembler doesn't understand --gstabs
24867    # and warns about it, but still exits successfully.  So check for
24868    # this.
24869    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24870   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24871   (eval $ac_try) 2>&5
24872   ac_status=$?
24873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24874   test $ac_status = 0; }; }
24875    then :
24876    else gcc_cv_as_gstabs_flag=yes
24877    fi
24878     else
24879       echo "configure: failed program was" >&5
24880       cat conftest.s >&5
24881     fi
24882     rm -f conftest.o conftest.s
24883   fi
24884 fi
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24886 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24887 if test $gcc_cv_as_gstabs_flag = yes; then
24888
24889 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24890
24891 fi
24892
24893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24894 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24895 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24896   $as_echo_n "(cached) " >&6
24897 else
24898   gcc_cv_as_debug_prefix_map_flag=no
24899     if test $in_tree_gas = yes; then
24900     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24901   then gcc_cv_as_debug_prefix_map_flag=yes
24902 fi
24903   elif test x$gcc_cv_as != x; then
24904     echo "$insn" > conftest.s
24905     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24907   (eval $ac_try) 2>&5
24908   ac_status=$?
24909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24910   test $ac_status = 0; }; }
24911     then
24912         gcc_cv_as_debug_prefix_map_flag=yes
24913     else
24914       echo "configure: failed program was" >&5
24915       cat conftest.s >&5
24916     fi
24917     rm -f conftest.o conftest.s
24918   fi
24919 fi
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24921 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24922 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24923
24924 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24925
24926 fi
24927 fi
24928
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24930 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24931 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24932   $as_echo_n "(cached) " >&6
24933 else
24934   gcc_cv_as_lcomm_with_alignment=no
24935   if test x$gcc_cv_as != x; then
24936     echo '.lcomm bar,4,16' > conftest.s
24937     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24938   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24939   (eval $ac_try) 2>&5
24940   ac_status=$?
24941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24942   test $ac_status = 0; }; }
24943     then
24944         gcc_cv_as_lcomm_with_alignment=yes
24945     else
24946       echo "configure: failed program was" >&5
24947       cat conftest.s >&5
24948     fi
24949     rm -f conftest.o conftest.s
24950   fi
24951 fi
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24953 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24954 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24955
24956 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24957
24958 fi
24959
24960 # Check whether --enable-gnu-unique-object was given.
24961 if test "${enable_gnu_unique_object+set}" = set; then :
24962   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24963     yes | no) ;;
24964     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24965 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24966   esac
24967 else
24968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24969 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24970 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24971   $as_echo_n "(cached) " >&6
24972 else
24973   gcc_cv_as_gnu_unique_object=no
24974     if test $in_tree_gas = yes; then
24975     if test $in_tree_gas_is_elf = yes \
24976   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24977   then gcc_cv_as_gnu_unique_object=yes
24978 fi
24979   elif test x$gcc_cv_as != x; then
24980     echo '.type foo, @gnu_unique_object' > conftest.s
24981     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24982   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983   (eval $ac_try) 2>&5
24984   ac_status=$?
24985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986   test $ac_status = 0; }; }
24987     then
24988         gcc_cv_as_gnu_unique_object=yes
24989     else
24990       echo "configure: failed program was" >&5
24991       cat conftest.s >&5
24992     fi
24993     rm -f conftest.o conftest.s
24994   fi
24995 fi
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24997 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24998 if test $gcc_cv_as_gnu_unique_object = yes; then
24999   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25000    if test x$host = x$build -a x$host = x$target &&
25001        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25002       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25003       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25004       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25005       if test "$glibcnum" -ge 2011 ; then
25006         enable_gnu_unique_object=yes
25007       fi
25008     fi
25009 fi
25010 fi
25011
25012 if test x$enable_gnu_unique_object = xyes; then
25013
25014 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25015
25016 fi
25017
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25019 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25020 if test "${gcc_cv_as_line_zero+set}" = set; then :
25021   $as_echo_n "(cached) " >&6
25022 else
25023   gcc_cv_as_line_zero=no
25024   if test $in_tree_gas = yes; then
25025     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25026   then gcc_cv_as_line_zero=yes
25027 fi
25028   elif test "x$gcc_cv_as" != x; then
25029     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25030     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25031   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25032   (eval $ac_try) 2>&5
25033   ac_status=$?
25034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25035   test $ac_status = 0; }; } &&
25036        test "x`cat conftest.out`" = x
25037     then
25038       gcc_cv_as_line_zero=yes
25039     else
25040       echo "configure: failed program was" >&5
25041       cat conftest.s >&5
25042       echo "configure: error output was" >&5
25043       cat conftest.out >&5
25044     fi
25045     rm -f conftest.o conftest.s conftest.out
25046   fi
25047 fi
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25049 $as_echo "$gcc_cv_as_line_zero" >&6; }
25050 if test "x$gcc_cv_as_line_zero" = xyes; then
25051
25052 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25053
25054 fi
25055
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25057 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25058 gcc_cv_ld_eh_frame_hdr=no
25059 if test $in_tree_ld = yes ; then
25060   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 \
25061      && test $in_tree_ld_is_elf = yes; then
25062     gcc_cv_ld_eh_frame_hdr=yes
25063   fi
25064 elif test x$gcc_cv_ld != x; then
25065         # Check if linker supports --eh-frame-hdr option
25066         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25067                 gcc_cv_ld_eh_frame_hdr=yes
25068         fi
25069 fi
25070
25071 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25072
25073 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25074
25075 fi
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25077 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25078
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25080 $as_echo_n "checking linker position independent executable support... " >&6; }
25081 gcc_cv_ld_pie=no
25082 if test $in_tree_ld = yes ; then
25083   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 \
25084      && test $in_tree_ld_is_elf = yes; then
25085     gcc_cv_ld_pie=yes
25086   fi
25087 elif test x$gcc_cv_ld != x; then
25088         # Check if linker supports -pie option
25089         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25090                 gcc_cv_ld_pie=yes
25091         fi
25092 fi
25093 if test x"$gcc_cv_ld_pie" = xyes; then
25094
25095 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25096
25097 fi
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25099 $as_echo "$gcc_cv_ld_pie" >&6; }
25100
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25102 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25103 gcc_cv_ld_eh_gc_sections=no
25104 if test $in_tree_ld = yes ; then
25105   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 \
25106      && test $in_tree_ld_is_elf = yes; then
25107     gcc_cv_ld_eh_gc_sections=yes
25108   fi
25109 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25110   cat > conftest.s <<EOF
25111         .section        .text
25112 .globl _start
25113         .type _start, @function
25114 _start:
25115         .long foo
25116         .size _start, .-_start
25117         .section        .text.foo,"ax",@progbits
25118         .type foo, @function
25119 foo:
25120         .long 0
25121         .size foo, .-foo
25122         .section        .gcc_except_table.foo,"a",@progbits
25123 .L0:
25124         .long 0
25125         .section        .eh_frame,"a",@progbits
25126         .long .L0
25127 EOF
25128   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25129     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25130          | grep "gc-sections option ignored" > /dev/null; then
25131       gcc_cv_ld_eh_gc_sections=no
25132     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25133          | grep gcc_except_table > /dev/null; then
25134       gcc_cv_ld_eh_gc_sections=yes
25135       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25136       if test x$gcc_cv_as_comdat_group != xyes; then
25137         gcc_cv_ld_eh_gc_sections=no
25138         cat > conftest.s <<EOF
25139         .section        .text
25140 .globl _start
25141         .type _start, @function
25142 _start:
25143         .long foo
25144         .size _start, .-_start
25145         .section        .gnu.linkonce.t.foo,"ax",@progbits
25146         .type foo, @function
25147 foo:
25148         .long 0
25149         .size foo, .-foo
25150         .section        .gcc_except_table.foo,"a",@progbits
25151 .L0:
25152         .long 0
25153         .section        .eh_frame,"a",@progbits
25154         .long .L0
25155 EOF
25156         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25157           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25158                | grep "gc-sections option ignored" > /dev/null; then
25159             gcc_cv_ld_eh_gc_sections=no
25160           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25161                | grep gcc_except_table > /dev/null; then
25162             gcc_cv_ld_eh_gc_sections=yes
25163           fi
25164         fi
25165       fi
25166     fi
25167   fi
25168   rm -f conftest.s conftest.o conftest
25169 fi
25170 case "$target" in
25171   hppa*-*-linux*)
25172     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25173     gcc_cv_ld_eh_gc_sections=no
25174     ;;
25175 esac
25176 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25177
25178 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25179
25180 fi
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25182 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25183
25184 # --------
25185 # UNSORTED
25186 # --------
25187
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25189 $as_echo_n "checking linker --as-needed support... " >&6; }
25190 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25191   $as_echo_n "(cached) " >&6
25192 else
25193   gcc_cv_ld_as_needed=no
25194 if test $in_tree_ld = yes ; then
25195   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 \
25196      && test $in_tree_ld_is_elf = yes; then
25197     gcc_cv_ld_as_needed=yes
25198   fi
25199 elif test x$gcc_cv_ld != x; then
25200         # Check if linker supports --as-needed and --no-as-needed options
25201         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25202                 gcc_cv_ld_as_needed=yes
25203         fi
25204 fi
25205
25206 fi
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25208 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25209 if test x"$gcc_cv_ld_as_needed" = xyes; then
25210
25211 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25212
25213 fi
25214
25215 case "$target:$tm_file" in
25216   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25218 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25219 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25220   $as_echo_n "(cached) " >&6
25221 else
25222   gcc_cv_ld_no_dot_syms=no
25223     if test $in_tree_ld = yes ; then
25224       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
25225         gcc_cv_ld_no_dot_syms=yes
25226       fi
25227     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25228       cat > conftest1.s <<EOF
25229         .text
25230         bl .foo
25231 EOF
25232       cat > conftest2.s <<EOF
25233         .section ".opd","aw"
25234         .align 3
25235         .globl foo
25236         .type foo,@function
25237 foo:
25238         .quad .LEfoo,.TOC.@tocbase,0
25239         .text
25240 .LEfoo:
25241         blr
25242         .size foo,.-.LEfoo
25243 EOF
25244       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25245          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25246          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25247         gcc_cv_ld_no_dot_syms=yes
25248       fi
25249       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25250     fi
25251
25252 fi
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25254 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25255     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25256
25257 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25258
25259     fi
25260
25261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25262 $as_echo_n "checking linker large toc support... " >&6; }
25263 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25264   $as_echo_n "(cached) " >&6
25265 else
25266   gcc_cv_ld_large_toc=no
25267     if test $in_tree_ld = yes ; then
25268       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
25269         gcc_cv_ld_large_toc=yes
25270       fi
25271     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25272       cat > conftest.s <<EOF
25273         .section ".tbss","awT",@nobits
25274         .align 3
25275 ie0:    .space 8
25276         .global _start
25277         .text
25278 _start:
25279         addis 9,13,ie0@got@tprel@ha
25280         ld 9,ie0@got@tprel@l(9)
25281 EOF
25282       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25283          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25284         gcc_cv_ld_large_toc=yes
25285       fi
25286       rm -f conftest conftest.o conftest.s
25287     fi
25288
25289 fi
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25291 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25292     if test x"$gcc_cv_ld_large_toc" = xyes; then
25293
25294 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25295
25296     fi
25297     ;;
25298 esac
25299
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25301 $as_echo_n "checking linker --build-id support... " >&6; }
25302 if test "${gcc_cv_ld_buildid+set}" = set; then :
25303   $as_echo_n "(cached) " >&6
25304 else
25305   gcc_cv_ld_buildid=no
25306   if test $in_tree_ld = yes ; then
25307     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25308        "$gcc_cv_gld_minor_version" -ge 18 -o \
25309        "$gcc_cv_gld_major_version" -gt 2 \
25310        && test $in_tree_ld_is_elf = yes; then
25311       gcc_cv_ld_buildid=yes
25312     fi
25313   elif test x$gcc_cv_ld != x; then
25314     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25315       gcc_cv_ld_buildid=yes
25316     fi
25317   fi
25318 fi
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25320 $as_echo "$gcc_cv_ld_buildid" >&6; }
25321 if test x"$gcc_cv_ld_buildid" = xyes; then
25322
25323 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25324
25325 fi
25326
25327 # Check whether --enable-linker-build-id was given.
25328 if test "${enable_linker_build_id+set}" = set; then :
25329   enableval=$enable_linker_build_id;
25330 else
25331   enable_linker_build_id=no
25332 fi
25333
25334
25335 if test x"$enable_linker_build_id" = xyes; then
25336   if test x"$gcc_cv_ld_buildid" = xyes; then
25337
25338 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25339
25340   else
25341     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25342 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25343   fi
25344 fi
25345
25346 # In binutils 2.21, GNU ld gained support for new emulations fully
25347 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25349 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25350 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25351   $as_echo_n "(cached) " >&6
25352 else
25353   gcc_cv_ld_sol2_emulation=no
25354   if test $in_tree_ld = yes ; then
25355     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25356        "$gcc_cv_gld_minor_version" -ge 21 -o \
25357        "$gcc_cv_gld_major_version" -gt 2 \
25358        && test $in_tree_ld_is_elf = yes; then
25359       gcc_cv_ld_sol2_emulation=yes
25360     fi
25361   elif test x$gcc_cv_ld != x; then
25362     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25363        grep _sol2 > /dev/null; then
25364       gcc_cv_ld_sol2_emulation=yes
25365     fi
25366   fi
25367 fi
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25369 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25370 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25371
25372 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25373
25374 fi
25375
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25377 $as_echo_n "checking linker --sysroot support... " >&6; }
25378 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25379   $as_echo_n "(cached) " >&6
25380 else
25381   gcc_cv_ld_sysroot=no
25382   if test $in_tree_ld = yes ; then
25383       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
25384         gcc_cv_ld_sysroot=yes
25385       fi
25386   elif test x$gcc_cv_ld != x; then
25387     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25388       gcc_cv_ld_sysroot=yes
25389     fi
25390   fi
25391 fi
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25393 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25394 if test x"$gcc_cv_ld_sysroot" = xyes; then
25395
25396 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25397
25398 fi
25399
25400 if test x$with_sysroot = x && test x$host = x$target \
25401    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25402    && test "$prefix" != "NONE"; then
25403
25404 cat >>confdefs.h <<_ACEOF
25405 #define PREFIX_INCLUDE_DIR "$prefix/include"
25406 _ACEOF
25407
25408 fi
25409
25410 # Test for stack protector support in target C library.
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25412 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25413 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25414   $as_echo_n "(cached) " >&6
25415 else
25416   gcc_cv_libc_provides_ssp=no
25417     case "$target" in
25418        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25419       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25420         if test "x$with_headers" != x; then
25421           glibc_header_dir=$with_headers
25422         elif test "x$with_sysroot" = x; then
25423           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25424         elif test "x$with_build_sysroot" != "x"; then
25425           glibc_header_dir="${with_build_sysroot}/usr/include"
25426         elif test "x$with_sysroot" = xyes; then
25427           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25428         else
25429           glibc_header_dir="${with_sysroot}/usr/include"
25430         fi
25431       else
25432         glibc_header_dir=/usr/include
25433       fi
25434       # glibc 2.4 and later provides __stack_chk_fail and
25435       # either __stack_chk_guard, or TLS access to stack guard canary.
25436       if test -f $glibc_header_dir/features.h \
25437          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25438             $glibc_header_dir/features.h > /dev/null; then
25439         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25440            $glibc_header_dir/features.h > /dev/null; then
25441           gcc_cv_libc_provides_ssp=yes
25442         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25443              $glibc_header_dir/features.h > /dev/null \
25444              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25445              $glibc_header_dir/features.h > /dev/null; then
25446           gcc_cv_libc_provides_ssp=yes
25447         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25448              $glibc_header_dir/features.h > /dev/null && \
25449              test -f $glibc_header_dir/bits/uClibc_config.h && \
25450              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25451              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25452           gcc_cv_libc_provides_ssp=yes
25453         fi
25454       fi
25455         ;;
25456        *-*-gnu*)
25457          # Avoid complicated tests (see
25458          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25459          # simply assert that glibc does provide this, which is true for all
25460          # realistically usable GNU/Hurd configurations.
25461          gcc_cv_libc_provides_ssp=yes;;
25462        *-*-darwin* | *-*-freebsd*)
25463          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25464 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25465   gcc_cv_libc_provides_ssp=yes
25466 else
25467   echo "no __stack_chk_fail on this target"
25468 fi
25469
25470         ;;
25471   *) gcc_cv_libc_provides_ssp=no ;;
25472     esac
25473 fi
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25475 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25476
25477 if test x$gcc_cv_libc_provides_ssp = xyes; then
25478
25479 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25480
25481 fi
25482
25483 # Check if TFmode long double should be used by default or not.
25484 # Some glibc targets used DFmode long double, but with glibc 2.4
25485 # and later they can use TFmode.
25486 case "$target" in
25487   powerpc*-*-linux* | \
25488   powerpc*-*-gnu* | \
25489   sparc*-*-linux* | \
25490   s390*-*-linux* | \
25491   alpha*-*-linux*)
25492
25493 # Check whether --with-long-double-128 was given.
25494 if test "${with_long_double_128+set}" = set; then :
25495   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25496 else
25497   gcc_cv_target_ldbl128=no
25498       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25499         if test "x$with_sysroot" = x; then
25500           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25501         elif test "x$with_build_sysroot" != "x"; then
25502           glibc_header_dir="${with_build_sysroot}/usr/include"
25503         elif test "x$with_sysroot" = xyes; then
25504           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25505         else
25506           glibc_header_dir="${with_sysroot}/usr/include"
25507         fi
25508       else
25509         glibc_header_dir=/usr/include
25510       fi
25511       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25512         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25513       && gcc_cv_target_ldbl128=yes
25514
25515 fi
25516
25517     ;;
25518 esac
25519 if test x$gcc_cv_target_ldbl128 = xyes; then
25520
25521 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25522
25523 fi
25524
25525 # Find out what GC implementation we want, or may, use.
25526
25527 # Check whether --with-gc was given.
25528 if test "${with_gc+set}" = set; then :
25529   withval=$with_gc; case "$withval" in
25530   page)
25531     GGC=ggc-$withval
25532     ;;
25533   zone)
25534     GGC=ggc-$withval
25535
25536 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25537
25538     ;;
25539   *)
25540     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25541     ;;
25542 esac
25543 else
25544   GGC=ggc-page
25545 fi
25546
25547
25548 echo "Using $GGC for garbage collection."
25549
25550 # Libraries to use on the host.  This will normally be set by the top
25551 # level Makefile.  Here we simply capture the value for our Makefile.
25552 if test -z "${HOST_LIBS+set}"; then
25553   HOST_LIBS=
25554 fi
25555
25556
25557 # Use the system's zlib library.
25558 zlibdir=-L../zlib
25559 zlibinc="-I\$(srcdir)/../zlib"
25560
25561 # Check whether --with-system-zlib was given.
25562 if test "${with_system_zlib+set}" = set; then :
25563   withval=$with_system_zlib; zlibdir=
25564 zlibinc=
25565
25566 fi
25567
25568
25569
25570
25571
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25573 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25574     # Check whether --enable-maintainer-mode was given.
25575 if test "${enable_maintainer_mode+set}" = set; then :
25576   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25577 else
25578   maintainer_mode=no
25579 fi
25580
25581
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25583 $as_echo "$maintainer_mode" >&6; }
25584
25585 if test "$maintainer_mode" = "yes"; then
25586   MAINT=''
25587 else
25588   MAINT='#'
25589 fi
25590
25591 # --------------
25592 # Language hooks
25593 # --------------
25594
25595 # Make empty files to contain the specs and options for each language.
25596 # Then add #include lines to for a compiler that has specs and/or options.
25597
25598 subdirs=
25599 lang_opt_files=
25600 lang_specs_files=
25601 lang_tree_files=
25602 # These (without "all_") are set in each config-lang.in.
25603 # `language' must be a single word so is spelled singularly.
25604 all_languages=
25605 all_compilers=
25606 all_outputs='Makefile'
25607 # List of language makefile fragments.
25608 all_lang_makefrags=
25609 # Additional files for gengtype
25610 all_gtfiles="$target_gtfiles"
25611
25612 # These are the languages that are set in --enable-languages,
25613 # and are available in the GCC tree.
25614 all_selected_languages=
25615
25616 # Add the language fragments.
25617 # Languages are added via two mechanisms.  Some information must be
25618 # recorded in makefile variables, these are defined in config-lang.in.
25619 # We accumulate them and plug them into the main Makefile.
25620 # The other mechanism is a set of hooks for each of the main targets
25621 # like `clean', `install', etc.
25622
25623 language_hooks="Make-hooks"
25624
25625 for lang in ${srcdir}/*/config-lang.in
25626 do
25627         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25628
25629         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25630         if test "x$lang_alias" = x
25631         then
25632               echo "$lang doesn't set \$language." 1>&2
25633               exit 1
25634         fi
25635         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25636         subdirs="$subdirs $subdir"
25637
25638         # $gcc_subdir is where the gcc integration files are to be found
25639         # for a language, both for internal compiler purposes (compiler
25640         # sources implementing front-end to GCC tree converters), and for
25641         # build infrastructure purposes (Make-lang.in, etc.)
25642         #
25643         # This will be <subdir> (relative to $srcdir) if a line like
25644         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25645         # is found in <langdir>/config-lang.in, and will remain <langdir>
25646         # otherwise.
25647         #
25648         # Except for the language alias (fetched above), the regular
25649         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25650         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25651         # only this and the language alias.
25652
25653         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25654         if [ "$gcc_subdir" = "" ]; then
25655            gcc_subdir="$subdir"
25656         fi
25657
25658         case ",$enable_languages," in
25659         *,$lang_alias,*)
25660             all_selected_languages="$all_selected_languages $lang_alias"
25661             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25662                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25663             fi
25664             ;;
25665         esac
25666
25667         language=
25668         boot_language=
25669         compilers=
25670         outputs=
25671         gtfiles=
25672         subdir_requires=
25673         . ${srcdir}/$gcc_subdir/config-lang.in
25674         if test "x$language" = x
25675         then
25676                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25677                 exit 1
25678         fi
25679
25680         ok=:
25681         case ",$enable_languages," in
25682                 *,$lang_alias,*) ;;
25683                 *)
25684                         for i in $subdir_requires; do
25685                                 test -f "${srcdir}/$i/config-lang.in" && continue
25686                                 ok=false
25687                                 break
25688                         done
25689                 ;;
25690         esac
25691         $ok || continue
25692
25693         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25694         if test -f $srcdir/$gcc_subdir/lang.opt; then
25695             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25696             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
25697         fi
25698         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25699             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25700         fi
25701         all_languages="$all_languages $language"
25702         all_compilers="$all_compilers $compilers"
25703         all_outputs="$all_outputs $outputs"
25704         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25705         case ",$enable_languages," in
25706                 *,lto,*)
25707
25708 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25709
25710                     enable_lto=yes
25711
25712                     ;;
25713                 *) ;;
25714         esac
25715 done
25716
25717 # Pick up gtfiles for c
25718 gtfiles=
25719 . ${srcdir}/c-config-lang.in
25720 all_gtfiles="$all_gtfiles [c] $gtfiles"
25721
25722 check_languages=
25723 for language in $all_selected_languages
25724 do
25725         check_languages="$check_languages check-$language"
25726 done
25727
25728 # We link each language in with a set of hooks, reached indirectly via
25729 # lang.${target}.  Only do so for selected languages.
25730
25731 rm -f Make-hooks
25732 touch Make-hooks
25733 target_list="all.cross start.encap rest.encap tags \
25734         install-common install-man install-info install-pdf install-html dvi \
25735         pdf html uninstall info man srcextra srcman srcinfo \
25736         mostlyclean clean distclean maintainer-clean install-plugin"
25737
25738 for t in $target_list
25739 do
25740         x=
25741         for lang in $all_selected_languages
25742         do
25743                 x="$x $lang.$t"
25744         done
25745         echo "lang.$t: $x" >> Make-hooks
25746 done
25747
25748 # --------
25749 # Option include files
25750 # --------
25751
25752 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
25753 option_includes="option-includes.mk"
25754
25755
25756 # --------
25757 # UNSORTED
25758 # --------
25759
25760 # Create .gdbinit.
25761
25762 echo "dir ." > .gdbinit
25763 echo "dir ${srcdir}" >> .gdbinit
25764 if test x$gdb_needs_out_file_path = xyes
25765 then
25766         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25767 fi
25768 if test "x$subdirs" != x; then
25769         for s in $subdirs
25770         do
25771                 echo "dir ${srcdir}/$s" >> .gdbinit
25772         done
25773 fi
25774 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25775
25776 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25777
25778
25779
25780 # Find a directory in which to install a shared libgcc.
25781
25782 # Check whether --enable-version-specific-runtime-libs was given.
25783 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25784   enableval=$enable_version_specific_runtime_libs;
25785 fi
25786
25787
25788
25789 # Check whether --with-slibdir was given.
25790 if test "${with_slibdir+set}" = set; then :
25791   withval=$with_slibdir; slibdir="$with_slibdir"
25792 else
25793   if test "${enable_version_specific_runtime_libs+set}" = set; then
25794   slibdir='$(libsubdir)'
25795 elif test "$host" != "$target"; then
25796   slibdir='$(build_tooldir)/lib'
25797 else
25798   slibdir='$(libdir)'
25799 fi
25800 fi
25801
25802
25803
25804 # Substitute configuration variables
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867 # Echo link setup.
25868 if test x${build} = x${host} ; then
25869   if test x${host} = x${target} ; then
25870     echo "Links are now set up to build a native compiler for ${target}." 1>&2
25871   else
25872     echo "Links are now set up to build a cross-compiler" 1>&2
25873     echo " from ${host} to ${target}." 1>&2
25874   fi
25875 else
25876   if test x${host} = x${target} ; then
25877     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25878     echo " for ${target}." 1>&2
25879   else
25880     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25881     echo " from ${host} to ${target}." 1>&2
25882   fi
25883 fi
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893 if test "x${CLOOGLIBS}" != "x" ; then
25894
25895 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25896
25897 fi
25898
25899 # Check for plugin support
25900 # Check whether --enable-plugin was given.
25901 if test "${enable_plugin+set}" = set; then :
25902   enableval=$enable_plugin; enable_plugin=$enableval
25903 else
25904   enable_plugin=yes; default_plugin=yes
25905 fi
25906
25907
25908 pluginlibs=
25909
25910 case "${host}" in
25911   *-*-darwin*)
25912     if test x$build = x$host; then
25913       export_sym_check="nm${exeext} -g"
25914     elif test x$host = x$target; then
25915       export_sym_check="$gcc_cv_nm -g"
25916     else
25917       export_sym_check=
25918     fi
25919   ;;
25920   *)
25921     if test x$build = x$host; then
25922       export_sym_check="objdump${exeext} -T"
25923     elif test x$host = x$target; then
25924       export_sym_check="$gcc_cv_objdump -T"
25925     else
25926       export_sym_check=
25927     fi
25928   ;;
25929 esac
25930
25931 if test x"$enable_plugin" = x"yes"; then
25932
25933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25934 $as_echo_n "checking for exported symbols... " >&6; }
25935   if test "x$export_sym_check" != x; then
25936     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25937     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25938     if $export_sym_check conftest | grep foobar > /dev/null; then
25939       : # No need to use a flag
25940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25941 $as_echo "yes" >&6; }
25942     else
25943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25944 $as_echo "yes" >&6; }
25945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25946 $as_echo_n "checking for -rdynamic... " >&6; }
25947       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25948       if $export_sym_check conftest | grep foobar > /dev/null; then
25949         plugin_rdynamic=yes
25950         pluginlibs="-rdynamic"
25951       else
25952         plugin_rdynamic=no
25953         enable_plugin=no
25954       fi
25955       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25956 $as_echo "$plugin_rdynamic" >&6; }
25957     fi
25958   else
25959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25960 $as_echo "unable to check" >&6; }
25961   fi
25962
25963   # Check -ldl
25964   saved_LIBS="$LIBS"
25965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25966 $as_echo_n "checking for library containing dlopen... " >&6; }
25967 if test "${ac_cv_search_dlopen+set}" = set; then :
25968   $as_echo_n "(cached) " >&6
25969 else
25970   ac_func_search_save_LIBS=$LIBS
25971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25972 /* end confdefs.h.  */
25973
25974 /* Override any GCC internal prototype to avoid an error.
25975    Use char because int might match the return type of a GCC
25976    builtin and then its argument prototype would still apply.  */
25977 #ifdef __cplusplus
25978 extern "C"
25979 #endif
25980 char dlopen ();
25981 int
25982 main ()
25983 {
25984 return dlopen ();
25985   ;
25986   return 0;
25987 }
25988 _ACEOF
25989 for ac_lib in '' dl; do
25990   if test -z "$ac_lib"; then
25991     ac_res="none required"
25992   else
25993     ac_res=-l$ac_lib
25994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25995   fi
25996   if ac_fn_c_try_link "$LINENO"; then :
25997   ac_cv_search_dlopen=$ac_res
25998 fi
25999 rm -f core conftest.err conftest.$ac_objext \
26000     conftest$ac_exeext
26001   if test "${ac_cv_search_dlopen+set}" = set; then :
26002   break
26003 fi
26004 done
26005 if test "${ac_cv_search_dlopen+set}" = set; then :
26006
26007 else
26008   ac_cv_search_dlopen=no
26009 fi
26010 rm conftest.$ac_ext
26011 LIBS=$ac_func_search_save_LIBS
26012 fi
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26014 $as_echo "$ac_cv_search_dlopen" >&6; }
26015 ac_res=$ac_cv_search_dlopen
26016 if test "$ac_res" != no; then :
26017   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26018
26019 fi
26020
26021   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26022     pluginlibs="$pluginlibs -ldl"
26023   fi
26024   LIBS="$saved_LIBS"
26025
26026   # Check that we can build shared objects with -fPIC -shared
26027   saved_LDFLAGS="$LDFLAGS"
26028   saved_CFLAGS="$CFLAGS"
26029   case "${host}" in
26030     *-*-darwin*)
26031       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26032       CFLAGS="$CFLAGS -fPIC"
26033       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26034     ;;
26035     *)
26036       CFLAGS="$CFLAGS -fPIC"
26037       LDFLAGS="$LDFLAGS -fPIC -shared"
26038     ;;
26039   esac
26040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26041 $as_echo_n "checking for -fPIC -shared... " >&6; }
26042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26043 /* end confdefs.h.  */
26044 extern int X;
26045 int
26046 main ()
26047 {
26048 return X == 0;
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 if ac_fn_c_try_link "$LINENO"; then :
26054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26055 $as_echo "yes" >&6; }; have_pic_shared=yes
26056 else
26057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26058 $as_echo "no" >&6; }; have_pic_shared=no
26059 fi
26060 rm -f core conftest.err conftest.$ac_objext \
26061     conftest$ac_exeext conftest.$ac_ext
26062   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26063     pluginlibs=
26064     enable_plugin=no
26065   fi
26066   LDFLAGS="$saved_LDFLAGS"
26067   CFLAGS="$saved_CFLAGS"
26068
26069   # If plugin support had been requested but not available, fail.
26070   if test x"$enable_plugin" = x"no" ; then
26071     if test x"$default_plugin" != x"yes"; then
26072       as_fn_error "
26073 Building GCC with plugin support requires a host that supports
26074 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26075     fi
26076   fi
26077 fi
26078
26079
26080
26081 if test x"$enable_plugin" = x"yes"; then
26082
26083 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26084
26085 fi
26086
26087 # Configure the subdirectories
26088 # AC_CONFIG_SUBDIRS($subdirs)
26089
26090 # Create the Makefile
26091 # and configure language subdirectories
26092 ac_config_files="$ac_config_files $all_outputs"
26093
26094
26095 ac_config_commands="$ac_config_commands default"
26096
26097 cat >confcache <<\_ACEOF
26098 # This file is a shell script that caches the results of configure
26099 # tests run on this system so they can be shared between configure
26100 # scripts and configure runs, see configure's option --config-cache.
26101 # It is not useful on other systems.  If it contains results you don't
26102 # want to keep, you may remove or edit it.
26103 #
26104 # config.status only pays attention to the cache file if you give it
26105 # the --recheck option to rerun configure.
26106 #
26107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26109 # following values.
26110
26111 _ACEOF
26112
26113 # The following way of writing the cache mishandles newlines in values,
26114 # but we know of no workaround that is simple, portable, and efficient.
26115 # So, we kill variables containing newlines.
26116 # Ultrix sh set writes to stderr and can't be redirected directly,
26117 # and sets the high bit in the cache file unless we assign to the vars.
26118 (
26119   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26120     eval ac_val=\$$ac_var
26121     case $ac_val in #(
26122     *${as_nl}*)
26123       case $ac_var in #(
26124       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26126       esac
26127       case $ac_var in #(
26128       _ | IFS | as_nl) ;; #(
26129       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26130       *) { eval $ac_var=; unset $ac_var;} ;;
26131       esac ;;
26132     esac
26133   done
26134
26135   (set) 2>&1 |
26136     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26137     *${as_nl}ac_space=\ *)
26138       # `set' does not quote correctly, so add quotes: double-quote
26139       # substitution turns \\\\ into \\, and sed turns \\ into \.
26140       sed -n \
26141         "s/'/'\\\\''/g;
26142           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26143       ;; #(
26144     *)
26145       # `set' quotes correctly as required by POSIX, so do not add quotes.
26146       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26147       ;;
26148     esac |
26149     sort
26150 ) |
26151   sed '
26152      /^ac_cv_env_/b end
26153      t clear
26154      :clear
26155      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26156      t end
26157      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26158      :end' >>confcache
26159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26160   if test -w "$cache_file"; then
26161     test "x$cache_file" != "x/dev/null" &&
26162       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26163 $as_echo "$as_me: updating cache $cache_file" >&6;}
26164     cat confcache >$cache_file
26165   else
26166     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26167 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26168   fi
26169 fi
26170 rm -f confcache
26171
26172 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26173 # Let make expand exec_prefix.
26174 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26175
26176 DEFS=-DHAVE_CONFIG_H
26177
26178 ac_libobjs=
26179 ac_ltlibobjs=
26180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26181   # 1. Remove the extension, and $U if already installed.
26182   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26183   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26184   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26185   #    will be set to the directory where LIBOBJS objects are built.
26186   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26187   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26188 done
26189 LIBOBJS=$ac_libobjs
26190
26191 LTLIBOBJS=$ac_ltlibobjs
26192
26193
26194
26195
26196 : ${CONFIG_STATUS=./config.status}
26197 ac_write_fail=0
26198 ac_clean_files_save=$ac_clean_files
26199 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26201 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26202 as_write_fail=0
26203 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26204 #! $SHELL
26205 # Generated by $as_me.
26206 # Run this file to recreate the current configuration.
26207 # Compiler output produced by configure, useful for debugging
26208 # configure, is in config.log if it exists.
26209
26210 debug=false
26211 ac_cs_recheck=false
26212 ac_cs_silent=false
26213
26214 SHELL=\${CONFIG_SHELL-$SHELL}
26215 export SHELL
26216 _ASEOF
26217 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26218 ## -------------------- ##
26219 ## M4sh Initialization. ##
26220 ## -------------------- ##
26221
26222 # Be more Bourne compatible
26223 DUALCASE=1; export DUALCASE # for MKS sh
26224 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26225   emulate sh
26226   NULLCMD=:
26227   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26228   # is contrary to our usage.  Disable this feature.
26229   alias -g '${1+"$@"}'='"$@"'
26230   setopt NO_GLOB_SUBST
26231 else
26232   case `(set -o) 2>/dev/null` in #(
26233   *posix*) :
26234     set -o posix ;; #(
26235   *) :
26236      ;;
26237 esac
26238 fi
26239
26240
26241 as_nl='
26242 '
26243 export as_nl
26244 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26245 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26248 # Prefer a ksh shell builtin over an external printf program on Solaris,
26249 # but without wasting forks for bash or zsh.
26250 if test -z "$BASH_VERSION$ZSH_VERSION" \
26251     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26252   as_echo='print -r --'
26253   as_echo_n='print -rn --'
26254 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26255   as_echo='printf %s\n'
26256   as_echo_n='printf %s'
26257 else
26258   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26259     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26260     as_echo_n='/usr/ucb/echo -n'
26261   else
26262     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26263     as_echo_n_body='eval
26264       arg=$1;
26265       case $arg in #(
26266       *"$as_nl"*)
26267         expr "X$arg" : "X\\(.*\\)$as_nl";
26268         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26269       esac;
26270       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26271     '
26272     export as_echo_n_body
26273     as_echo_n='sh -c $as_echo_n_body as_echo'
26274   fi
26275   export as_echo_body
26276   as_echo='sh -c $as_echo_body as_echo'
26277 fi
26278
26279 # The user is always right.
26280 if test "${PATH_SEPARATOR+set}" != set; then
26281   PATH_SEPARATOR=:
26282   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26283     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26284       PATH_SEPARATOR=';'
26285   }
26286 fi
26287
26288
26289 # IFS
26290 # We need space, tab and new line, in precisely that order.  Quoting is
26291 # there to prevent editors from complaining about space-tab.
26292 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26293 # splitting by setting IFS to empty value.)
26294 IFS=" ""        $as_nl"
26295
26296 # Find who we are.  Look in the path if we contain no directory separator.
26297 case $0 in #((
26298   *[\\/]* ) as_myself=$0 ;;
26299   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26300 for as_dir in $PATH
26301 do
26302   IFS=$as_save_IFS
26303   test -z "$as_dir" && as_dir=.
26304     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26305   done
26306 IFS=$as_save_IFS
26307
26308      ;;
26309 esac
26310 # We did not find ourselves, most probably we were run as `sh COMMAND'
26311 # in which case we are not to be found in the path.
26312 if test "x$as_myself" = x; then
26313   as_myself=$0
26314 fi
26315 if test ! -f "$as_myself"; then
26316   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26317   exit 1
26318 fi
26319
26320 # Unset variables that we do not need and which cause bugs (e.g. in
26321 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26322 # suppresses any "Segmentation fault" message there.  '((' could
26323 # trigger a bug in pdksh 5.2.14.
26324 for as_var in BASH_ENV ENV MAIL MAILPATH
26325 do eval test x\${$as_var+set} = xset \
26326   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26327 done
26328 PS1='$ '
26329 PS2='> '
26330 PS4='+ '
26331
26332 # NLS nuisances.
26333 LC_ALL=C
26334 export LC_ALL
26335 LANGUAGE=C
26336 export LANGUAGE
26337
26338 # CDPATH.
26339 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26340
26341
26342 # as_fn_error ERROR [LINENO LOG_FD]
26343 # ---------------------------------
26344 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26345 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26346 # script with status $?, using 1 if that was 0.
26347 as_fn_error ()
26348 {
26349   as_status=$?; test $as_status -eq 0 && as_status=1
26350   if test "$3"; then
26351     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26352     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26353   fi
26354   $as_echo "$as_me: error: $1" >&2
26355   as_fn_exit $as_status
26356 } # as_fn_error
26357
26358
26359 # as_fn_set_status STATUS
26360 # -----------------------
26361 # Set $? to STATUS, without forking.
26362 as_fn_set_status ()
26363 {
26364   return $1
26365 } # as_fn_set_status
26366
26367 # as_fn_exit STATUS
26368 # -----------------
26369 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26370 as_fn_exit ()
26371 {
26372   set +e
26373   as_fn_set_status $1
26374   exit $1
26375 } # as_fn_exit
26376
26377 # as_fn_unset VAR
26378 # ---------------
26379 # Portably unset VAR.
26380 as_fn_unset ()
26381 {
26382   { eval $1=; unset $1;}
26383 }
26384 as_unset=as_fn_unset
26385 # as_fn_append VAR VALUE
26386 # ----------------------
26387 # Append the text in VALUE to the end of the definition contained in VAR. Take
26388 # advantage of any shell optimizations that allow amortized linear growth over
26389 # repeated appends, instead of the typical quadratic growth present in naive
26390 # implementations.
26391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26392   eval 'as_fn_append ()
26393   {
26394     eval $1+=\$2
26395   }'
26396 else
26397   as_fn_append ()
26398   {
26399     eval $1=\$$1\$2
26400   }
26401 fi # as_fn_append
26402
26403 # as_fn_arith ARG...
26404 # ------------------
26405 # Perform arithmetic evaluation on the ARGs, and store the result in the
26406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26407 # must be portable across $(()) and expr.
26408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26409   eval 'as_fn_arith ()
26410   {
26411     as_val=$(( $* ))
26412   }'
26413 else
26414   as_fn_arith ()
26415   {
26416     as_val=`expr "$@" || test $? -eq 1`
26417   }
26418 fi # as_fn_arith
26419
26420
26421 if expr a : '\(a\)' >/dev/null 2>&1 &&
26422    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26423   as_expr=expr
26424 else
26425   as_expr=false
26426 fi
26427
26428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26429   as_basename=basename
26430 else
26431   as_basename=false
26432 fi
26433
26434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26435   as_dirname=dirname
26436 else
26437   as_dirname=false
26438 fi
26439
26440 as_me=`$as_basename -- "$0" ||
26441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26442          X"$0" : 'X\(//\)$' \| \
26443          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26444 $as_echo X/"$0" |
26445     sed '/^.*\/\([^/][^/]*\)\/*$/{
26446             s//\1/
26447             q
26448           }
26449           /^X\/\(\/\/\)$/{
26450             s//\1/
26451             q
26452           }
26453           /^X\/\(\/\).*/{
26454             s//\1/
26455             q
26456           }
26457           s/.*/./; q'`
26458
26459 # Avoid depending upon Character Ranges.
26460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26463 as_cr_digits='0123456789'
26464 as_cr_alnum=$as_cr_Letters$as_cr_digits
26465
26466 ECHO_C= ECHO_N= ECHO_T=
26467 case `echo -n x` in #(((((
26468 -n*)
26469   case `echo 'xy\c'` in
26470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26471   xy)  ECHO_C='\c';;
26472   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26473        ECHO_T=' ';;
26474   esac;;
26475 *)
26476   ECHO_N='-n';;
26477 esac
26478
26479 rm -f conf$$ conf$$.exe conf$$.file
26480 if test -d conf$$.dir; then
26481   rm -f conf$$.dir/conf$$.file
26482 else
26483   rm -f conf$$.dir
26484   mkdir conf$$.dir 2>/dev/null
26485 fi
26486 if (echo >conf$$.file) 2>/dev/null; then
26487   if ln -s conf$$.file conf$$ 2>/dev/null; then
26488     as_ln_s='ln -s'
26489     # ... but there are two gotchas:
26490     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26491     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26492     # In both cases, we have to default to `cp -p'.
26493     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26494       as_ln_s='cp -p'
26495   elif ln conf$$.file conf$$ 2>/dev/null; then
26496     as_ln_s=ln
26497   else
26498     as_ln_s='cp -p'
26499   fi
26500 else
26501   as_ln_s='cp -p'
26502 fi
26503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26504 rmdir conf$$.dir 2>/dev/null
26505
26506
26507 # as_fn_mkdir_p
26508 # -------------
26509 # Create "$as_dir" as a directory, including parents if necessary.
26510 as_fn_mkdir_p ()
26511 {
26512
26513   case $as_dir in #(
26514   -*) as_dir=./$as_dir;;
26515   esac
26516   test -d "$as_dir" || eval $as_mkdir_p || {
26517     as_dirs=
26518     while :; do
26519       case $as_dir in #(
26520       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26521       *) as_qdir=$as_dir;;
26522       esac
26523       as_dirs="'$as_qdir' $as_dirs"
26524       as_dir=`$as_dirname -- "$as_dir" ||
26525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26526          X"$as_dir" : 'X\(//\)[^/]' \| \
26527          X"$as_dir" : 'X\(//\)$' \| \
26528          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26529 $as_echo X"$as_dir" |
26530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26531             s//\1/
26532             q
26533           }
26534           /^X\(\/\/\)[^/].*/{
26535             s//\1/
26536             q
26537           }
26538           /^X\(\/\/\)$/{
26539             s//\1/
26540             q
26541           }
26542           /^X\(\/\).*/{
26543             s//\1/
26544             q
26545           }
26546           s/.*/./; q'`
26547       test -d "$as_dir" && break
26548     done
26549     test -z "$as_dirs" || eval "mkdir $as_dirs"
26550   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26551
26552
26553 } # as_fn_mkdir_p
26554 if mkdir -p . 2>/dev/null; then
26555   as_mkdir_p='mkdir -p "$as_dir"'
26556 else
26557   test -d ./-p && rmdir ./-p
26558   as_mkdir_p=false
26559 fi
26560
26561 if test -x / >/dev/null 2>&1; then
26562   as_test_x='test -x'
26563 else
26564   if ls -dL / >/dev/null 2>&1; then
26565     as_ls_L_option=L
26566   else
26567     as_ls_L_option=
26568   fi
26569   as_test_x='
26570     eval sh -c '\''
26571       if test -d "$1"; then
26572         test -d "$1/.";
26573       else
26574         case $1 in #(
26575         -*)set "./$1";;
26576         esac;
26577         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26578         ???[sx]*):;;*)false;;esac;fi
26579     '\'' sh
26580   '
26581 fi
26582 as_executable_p=$as_test_x
26583
26584 # Sed expression to map a string onto a valid CPP name.
26585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26586
26587 # Sed expression to map a string onto a valid variable name.
26588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26589
26590
26591 exec 6>&1
26592 ## ----------------------------------- ##
26593 ## Main body of $CONFIG_STATUS script. ##
26594 ## ----------------------------------- ##
26595 _ASEOF
26596 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26597
26598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26599 # Save the log message, to keep $0 and so on meaningful, and to
26600 # report actual input values of CONFIG_FILES etc. instead of their
26601 # values after options handling.
26602 ac_log="
26603 This file was extended by $as_me, which was
26604 generated by GNU Autoconf 2.64.  Invocation command line was
26605
26606   CONFIG_FILES    = $CONFIG_FILES
26607   CONFIG_HEADERS  = $CONFIG_HEADERS
26608   CONFIG_LINKS    = $CONFIG_LINKS
26609   CONFIG_COMMANDS = $CONFIG_COMMANDS
26610   $ $0 $@
26611
26612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26613 "
26614
26615 _ACEOF
26616
26617 case $ac_config_files in *"
26618 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26619 esac
26620
26621 case $ac_config_headers in *"
26622 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26623 esac
26624
26625
26626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26627 # Files that config.status was made for.
26628 config_files="$ac_config_files"
26629 config_headers="$ac_config_headers"
26630 config_commands="$ac_config_commands"
26631
26632 _ACEOF
26633
26634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26635 ac_cs_usage="\
26636 \`$as_me' instantiates files and other configuration actions
26637 from templates according to the current configuration.  Unless the files
26638 and actions are specified as TAGs, all are instantiated by default.
26639
26640 Usage: $0 [OPTION]... [TAG]...
26641
26642   -h, --help       print this help, then exit
26643   -V, --version    print version number and configuration settings, then exit
26644   -q, --quiet, --silent
26645                    do not print progress messages
26646   -d, --debug      don't remove temporary files
26647       --recheck    update $as_me by reconfiguring in the same conditions
26648       --file=FILE[:TEMPLATE]
26649                    instantiate the configuration file FILE
26650       --header=FILE[:TEMPLATE]
26651                    instantiate the configuration header FILE
26652
26653 Configuration files:
26654 $config_files
26655
26656 Configuration headers:
26657 $config_headers
26658
26659 Configuration commands:
26660 $config_commands
26661
26662 Report bugs to the package provider."
26663
26664 _ACEOF
26665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26666 ac_cs_version="\\
26667 config.status
26668 configured by $0, generated by GNU Autoconf 2.64,
26669   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26670
26671 Copyright (C) 2009 Free Software Foundation, Inc.
26672 This config.status script is free software; the Free Software Foundation
26673 gives unlimited permission to copy, distribute and modify it."
26674
26675 ac_pwd='$ac_pwd'
26676 srcdir='$srcdir'
26677 AWK='$AWK'
26678 test -n "\$AWK" || AWK=awk
26679 _ACEOF
26680
26681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26682 # The default lists apply if the user does not specify any file.
26683 ac_need_defaults=:
26684 while test $# != 0
26685 do
26686   case $1 in
26687   --*=*)
26688     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26689     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26690     ac_shift=:
26691     ;;
26692   *)
26693     ac_option=$1
26694     ac_optarg=$2
26695     ac_shift=shift
26696     ;;
26697   esac
26698
26699   case $ac_option in
26700   # Handling of the options.
26701   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26702     ac_cs_recheck=: ;;
26703   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26704     $as_echo "$ac_cs_version"; exit ;;
26705   --debug | --debu | --deb | --de | --d | -d )
26706     debug=: ;;
26707   --file | --fil | --fi | --f )
26708     $ac_shift
26709     case $ac_optarg in
26710     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26711     esac
26712     as_fn_append CONFIG_FILES " '$ac_optarg'"
26713     ac_need_defaults=false;;
26714   --header | --heade | --head | --hea )
26715     $ac_shift
26716     case $ac_optarg in
26717     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26718     esac
26719     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26720     ac_need_defaults=false;;
26721   --he | --h)
26722     # Conflict between --help and --header
26723     as_fn_error "ambiguous option: \`$1'
26724 Try \`$0 --help' for more information.";;
26725   --help | --hel | -h )
26726     $as_echo "$ac_cs_usage"; exit ;;
26727   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26728   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26729     ac_cs_silent=: ;;
26730
26731   # This is an error.
26732   -*) as_fn_error "unrecognized option: \`$1'
26733 Try \`$0 --help' for more information." ;;
26734
26735   *) as_fn_append ac_config_targets " $1"
26736      ac_need_defaults=false ;;
26737
26738   esac
26739   shift
26740 done
26741
26742 ac_configure_extra_args=
26743
26744 if $ac_cs_silent; then
26745   exec 6>/dev/null
26746   ac_configure_extra_args="$ac_configure_extra_args --silent"
26747 fi
26748
26749 _ACEOF
26750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26751 if \$ac_cs_recheck; then
26752   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26753   shift
26754   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26755   CONFIG_SHELL='$SHELL'
26756   export CONFIG_SHELL
26757   exec "\$@"
26758 fi
26759
26760 _ACEOF
26761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26762 exec 5>>config.log
26763 {
26764   echo
26765   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26766 ## Running $as_me. ##
26767 _ASBOX
26768   $as_echo "$ac_log"
26769 } >&5
26770
26771 _ACEOF
26772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26773 #
26774 # INIT-COMMANDS
26775 #
26776 subdirs='$subdirs'
26777
26778 _ACEOF
26779
26780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26781
26782 # Handling of arguments.
26783 for ac_config_target in $ac_config_targets
26784 do
26785   case $ac_config_target in
26786     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26787     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26788     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26789     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26790     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26791     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26792
26793   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26794   esac
26795 done
26796
26797
26798 # If the user did not use the arguments to specify the items to instantiate,
26799 # then the envvar interface is used.  Set only those that are not.
26800 # We use the long form for the default assignment because of an extremely
26801 # bizarre bug on SunOS 4.1.3.
26802 if $ac_need_defaults; then
26803   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26804   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26805   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26806 fi
26807
26808 # Have a temporary directory for convenience.  Make it in the build tree
26809 # simply because there is no reason against having it here, and in addition,
26810 # creating and moving files from /tmp can sometimes cause problems.
26811 # Hook for its removal unless debugging.
26812 # Note that there is a small window in which the directory will not be cleaned:
26813 # after its creation but before its name has been assigned to `$tmp'.
26814 $debug ||
26815 {
26816   tmp=
26817   trap 'exit_status=$?
26818   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26819 ' 0
26820   trap 'as_fn_exit 1' 1 2 13 15
26821 }
26822 # Create a (secure) tmp directory for tmp files.
26823
26824 {
26825   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26826   test -n "$tmp" && test -d "$tmp"
26827 }  ||
26828 {
26829   tmp=./conf$$-$RANDOM
26830   (umask 077 && mkdir "$tmp")
26831 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26832
26833 # Set up the scripts for CONFIG_FILES section.
26834 # No need to generate them if there are no CONFIG_FILES.
26835 # This happens for instance with `./config.status config.h'.
26836 if test -n "$CONFIG_FILES"; then
26837
26838 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26839   ac_cs_awk_getline=:
26840   ac_cs_awk_pipe_init=
26841   ac_cs_awk_read_file='
26842       while ((getline aline < (F[key])) > 0)
26843         print(aline)
26844       close(F[key])'
26845   ac_cs_awk_pipe_fini=
26846 else
26847   ac_cs_awk_getline=false
26848   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26849   ac_cs_awk_read_file='
26850       print "|#_!!_#|"
26851       print "cat " F[key] " &&"
26852       '$ac_cs_awk_pipe_init
26853   # The final `:' finishes the AND list.
26854   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26855 fi
26856 ac_cr=`echo X | tr X '\015'`
26857 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26858 # But we know of no other shell where ac_cr would be empty at this
26859 # point, so we can use a bashism as a fallback.
26860 if test "x$ac_cr" = x; then
26861   eval ac_cr=\$\'\\r\'
26862 fi
26863 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26864 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26865   ac_cs_awk_cr='\r'
26866 else
26867   ac_cs_awk_cr=$ac_cr
26868 fi
26869
26870 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26871 _ACEOF
26872
26873 # Create commands to substitute file output variables.
26874 {
26875   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26876   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26877   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26878   echo "_ACAWK" &&
26879   echo "_ACEOF"
26880 } >conf$$files.sh &&
26881 . ./conf$$files.sh ||
26882   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26883 rm -f conf$$files.sh
26884
26885 {
26886   echo "cat >conf$$subs.awk <<_ACEOF" &&
26887   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26888   echo "_ACEOF"
26889 } >conf$$subs.sh ||
26890   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26891 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26892 ac_delim='%!_!# '
26893 for ac_last_try in false false false false false :; do
26894   . ./conf$$subs.sh ||
26895     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26896
26897   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26898   if test $ac_delim_n = $ac_delim_num; then
26899     break
26900   elif $ac_last_try; then
26901     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26902   else
26903     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26904   fi
26905 done
26906 rm -f conf$$subs.sh
26907
26908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26909 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26910 _ACEOF
26911 sed -n '
26912 h
26913 s/^/S["/; s/!.*/"]=/
26914 p
26915 g
26916 s/^[^!]*!//
26917 :repl
26918 t repl
26919 s/'"$ac_delim"'$//
26920 t delim
26921 :nl
26922 h
26923 s/\(.\{148\}\).*/\1/
26924 t more1
26925 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26926 p
26927 n
26928 b repl
26929 :more1
26930 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26931 p
26932 g
26933 s/.\{148\}//
26934 t nl
26935 :delim
26936 h
26937 s/\(.\{148\}\).*/\1/
26938 t more2
26939 s/["\\]/\\&/g; s/^/"/; s/$/"/
26940 p
26941 b
26942 :more2
26943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26944 p
26945 g
26946 s/.\{148\}//
26947 t delim
26948 ' <conf$$subs.awk | sed '
26949 /^[^""]/{
26950   N
26951   s/\n//
26952 }
26953 ' >>$CONFIG_STATUS || ac_write_fail=1
26954 rm -f conf$$subs.awk
26955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26956 _ACAWK
26957 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26958   for (key in S) S_is_set[key] = 1
26959   FS = "\a"
26960   \$ac_cs_awk_pipe_init
26961 }
26962 {
26963   line = $ 0
26964   nfields = split(line, field, "@")
26965   substed = 0
26966   len = length(field[1])
26967   for (i = 2; i < nfields; i++) {
26968     key = field[i]
26969     keylen = length(key)
26970     if (S_is_set[key]) {
26971       value = S[key]
26972       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26973       len += length(value) + length(field[++i])
26974       substed = 1
26975     } else
26976       len += 1 + keylen
26977   }
26978   if (nfields == 3 && !substed) {
26979     key = field[2]
26980     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
26981       \$ac_cs_awk_read_file
26982       next
26983     }
26984   }
26985   print line
26986 }
26987 \$ac_cs_awk_pipe_fini
26988 _ACAWK
26989 _ACEOF
26990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26991 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26992   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26993 else
26994   cat
26995 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26996   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26997 _ACEOF
26998
26999 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27000 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27001 # trailing colons and then remove the whole line if VPATH becomes empty
27002 # (actually we leave an empty line to preserve line numbers).
27003 if test "x$srcdir" = x.; then
27004   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27005 s/:*\$(srcdir):*/:/
27006 s/:*\${srcdir}:*/:/
27007 s/:*@srcdir@:*/:/
27008 s/^\([^=]*=[     ]*\):*/\1/
27009 s/:*$//
27010 s/^[^=]*=[       ]*$//
27011 }'
27012 fi
27013
27014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27015 fi # test -n "$CONFIG_FILES"
27016
27017 # Set up the scripts for CONFIG_HEADERS section.
27018 # No need to generate them if there are no CONFIG_HEADERS.
27019 # This happens for instance with `./config.status Makefile'.
27020 if test -n "$CONFIG_HEADERS"; then
27021 cat >"$tmp/defines.awk" <<\_ACAWK ||
27022 BEGIN {
27023 _ACEOF
27024
27025 # Transform confdefs.h into an awk script `defines.awk', embedded as
27026 # here-document in config.status, that substitutes the proper values into
27027 # config.h.in to produce config.h.
27028
27029 # Create a delimiter string that does not exist in confdefs.h, to ease
27030 # handling of long lines.
27031 ac_delim='%!_!# '
27032 for ac_last_try in false false :; do
27033   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27034   if test -z "$ac_t"; then
27035     break
27036   elif $ac_last_try; then
27037     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27038   else
27039     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27040   fi
27041 done
27042
27043 # For the awk script, D is an array of macro values keyed by name,
27044 # likewise P contains macro parameters if any.  Preserve backslash
27045 # newline sequences.
27046
27047 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27048 sed -n '
27049 s/.\{148\}/&'"$ac_delim"'/g
27050 t rset
27051 :rset
27052 s/^[     ]*#[    ]*define[       ][      ]*/ /
27053 t def
27054 d
27055 :def
27056 s/\\$//
27057 t bsnl
27058 s/["\\]/\\&/g
27059 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27060 D["\1"]=" \3"/p
27061 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27062 d
27063 :bsnl
27064 s/["\\]/\\&/g
27065 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27066 D["\1"]=" \3\\\\\\n"\\/p
27067 t cont
27068 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27069 t cont
27070 d
27071 :cont
27072 n
27073 s/.\{148\}/&'"$ac_delim"'/g
27074 t clear
27075 :clear
27076 s/\\$//
27077 t bsnlc
27078 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27079 d
27080 :bsnlc
27081 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27082 b cont
27083 ' <confdefs.h | sed '
27084 s/'"$ac_delim"'/"\\\
27085 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27086
27087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27088   for (key in D) D_is_set[key] = 1
27089   FS = "\a"
27090 }
27091 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27092   line = \$ 0
27093   split(line, arg, " ")
27094   if (arg[1] == "#") {
27095     defundef = arg[2]
27096     mac1 = arg[3]
27097   } else {
27098     defundef = substr(arg[1], 2)
27099     mac1 = arg[2]
27100   }
27101   split(mac1, mac2, "(") #)
27102   macro = mac2[1]
27103   prefix = substr(line, 1, index(line, defundef) - 1)
27104   if (D_is_set[macro]) {
27105     # Preserve the white space surrounding the "#".
27106     print prefix "define", macro P[macro] D[macro]
27107     next
27108   } else {
27109     # Replace #undef with comments.  This is necessary, for example,
27110     # in the case of _POSIX_SOURCE, which is predefined and required
27111     # on some systems where configure will not decide to define it.
27112     if (defundef == "undef") {
27113       print "/*", prefix defundef, macro, "*/"
27114       next
27115     }
27116   }
27117 }
27118 { print }
27119 _ACAWK
27120 _ACEOF
27121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27122   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27123 fi # test -n "$CONFIG_HEADERS"
27124
27125
27126 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27127 shift
27128 for ac_tag
27129 do
27130   case $ac_tag in
27131   :[FHLC]) ac_mode=$ac_tag; continue;;
27132   esac
27133   case $ac_mode$ac_tag in
27134   :[FHL]*:*);;
27135   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27136   :[FH]-) ac_tag=-:-;;
27137   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27138   esac
27139   ac_save_IFS=$IFS
27140   IFS=:
27141   set x $ac_tag
27142   IFS=$ac_save_IFS
27143   shift
27144   ac_file=$1
27145   shift
27146
27147   case $ac_mode in
27148   :L) ac_source=$1;;
27149   :[FH])
27150     ac_file_inputs=
27151     for ac_f
27152     do
27153       case $ac_f in
27154       -) ac_f="$tmp/stdin";;
27155       *) # Look for the file first in the build tree, then in the source tree
27156          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27157          # because $ac_f cannot contain `:'.
27158          test -f "$ac_f" ||
27159            case $ac_f in
27160            [\\/$]*) false;;
27161            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27162            esac ||
27163            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27164       esac
27165       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27166       as_fn_append ac_file_inputs " '$ac_f'"
27167     done
27168
27169     # Let's still pretend it is `configure' which instantiates (i.e., don't
27170     # use $as_me), people would be surprised to read:
27171     #    /* config.h.  Generated by config.status.  */
27172     configure_input='Generated from '`
27173           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27174         `' by configure.'
27175     if test x"$ac_file" != x-; then
27176       configure_input="$ac_file.  $configure_input"
27177       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27178 $as_echo "$as_me: creating $ac_file" >&6;}
27179     fi
27180     # Neutralize special characters interpreted by sed in replacement strings.
27181     case $configure_input in #(
27182     *\&* | *\|* | *\\* )
27183        ac_sed_conf_input=`$as_echo "$configure_input" |
27184        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27185     *) ac_sed_conf_input=$configure_input;;
27186     esac
27187
27188     case $ac_tag in
27189     *:-:* | *:-) cat >"$tmp/stdin" \
27190       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27191     esac
27192     ;;
27193   esac
27194
27195   ac_dir=`$as_dirname -- "$ac_file" ||
27196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27197          X"$ac_file" : 'X\(//\)[^/]' \| \
27198          X"$ac_file" : 'X\(//\)$' \| \
27199          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27200 $as_echo X"$ac_file" |
27201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27202             s//\1/
27203             q
27204           }
27205           /^X\(\/\/\)[^/].*/{
27206             s//\1/
27207             q
27208           }
27209           /^X\(\/\/\)$/{
27210             s//\1/
27211             q
27212           }
27213           /^X\(\/\).*/{
27214             s//\1/
27215             q
27216           }
27217           s/.*/./; q'`
27218   as_dir="$ac_dir"; as_fn_mkdir_p
27219   ac_builddir=.
27220
27221 case "$ac_dir" in
27222 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27223 *)
27224   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27225   # A ".." for each directory in $ac_dir_suffix.
27226   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27227   case $ac_top_builddir_sub in
27228   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27229   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27230   esac ;;
27231 esac
27232 ac_abs_top_builddir=$ac_pwd
27233 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27234 # for backward compatibility:
27235 ac_top_builddir=$ac_top_build_prefix
27236
27237 case $srcdir in
27238   .)  # We are building in place.
27239     ac_srcdir=.
27240     ac_top_srcdir=$ac_top_builddir_sub
27241     ac_abs_top_srcdir=$ac_pwd ;;
27242   [\\/]* | ?:[\\/]* )  # Absolute name.
27243     ac_srcdir=$srcdir$ac_dir_suffix;
27244     ac_top_srcdir=$srcdir
27245     ac_abs_top_srcdir=$srcdir ;;
27246   *) # Relative name.
27247     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27248     ac_top_srcdir=$ac_top_build_prefix$srcdir
27249     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27250 esac
27251 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27252
27253
27254   case $ac_mode in
27255   :F)
27256   #
27257   # CONFIG_FILE
27258   #
27259
27260 _ACEOF
27261
27262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27263 # If the template does not know about datarootdir, expand it.
27264 # FIXME: This hack should be removed a few years after 2.60.
27265 ac_datarootdir_hack=; ac_datarootdir_seen=
27266 ac_sed_dataroot='
27267 /datarootdir/ {
27268   p
27269   q
27270 }
27271 /@datadir@/p
27272 /@docdir@/p
27273 /@infodir@/p
27274 /@localedir@/p
27275 /@mandir@/p'
27276 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27277 *datarootdir*) ac_datarootdir_seen=yes;;
27278 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27279   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27280 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27281 _ACEOF
27282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27283   ac_datarootdir_hack='
27284   s&@datadir@&$datadir&g
27285   s&@docdir@&$docdir&g
27286   s&@infodir@&$infodir&g
27287   s&@localedir@&$localedir&g
27288   s&@mandir@&$mandir&g
27289   s&\\\${datarootdir}&$datarootdir&g' ;;
27290 esac
27291 _ACEOF
27292
27293 # Neutralize VPATH when `$srcdir' = `.'.
27294 # Shell code in configure.ac might set extrasub.
27295 # FIXME: do we really want to maintain this feature?
27296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27297 ac_sed_extra="$ac_vpsub
27298 $extrasub
27299 _ACEOF
27300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27301 :t
27302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27303 s|@configure_input@|$ac_sed_conf_input|;t t
27304 s&@top_builddir@&$ac_top_builddir_sub&;t t
27305 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27306 s&@srcdir@&$ac_srcdir&;t t
27307 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27308 s&@top_srcdir@&$ac_top_srcdir&;t t
27309 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27310 s&@builddir@&$ac_builddir&;t t
27311 s&@abs_builddir@&$ac_abs_builddir&;t t
27312 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27313 $ac_datarootdir_hack
27314 "
27315 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27316 if $ac_cs_awk_getline; then
27317   $AWK -f "$tmp/subs.awk"
27318 else
27319   $AWK -f "$tmp/subs.awk" | $SHELL
27320 fi >$tmp/out \
27321   || as_fn_error "could not create $ac_file" "$LINENO" 5
27322
27323 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27324   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27325   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27326   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27327 which seems to be undefined.  Please make sure it is defined." >&5
27328 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27329 which seems to be undefined.  Please make sure it is defined." >&2;}
27330
27331   rm -f "$tmp/stdin"
27332   case $ac_file in
27333   -) cat "$tmp/out" && rm -f "$tmp/out";;
27334   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27335   esac \
27336   || as_fn_error "could not create $ac_file" "$LINENO" 5
27337  ;;
27338   :H)
27339   #
27340   # CONFIG_HEADER
27341   #
27342   if test x"$ac_file" != x-; then
27343     {
27344       $as_echo "/* $configure_input  */" \
27345       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27346     } >"$tmp/config.h" \
27347       || as_fn_error "could not create $ac_file" "$LINENO" 5
27348     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27349       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27350 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27351     else
27352       rm -f "$ac_file"
27353       mv "$tmp/config.h" "$ac_file" \
27354         || as_fn_error "could not create $ac_file" "$LINENO" 5
27355     fi
27356   else
27357     $as_echo "/* $configure_input  */" \
27358       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27359       || as_fn_error "could not create -" "$LINENO" 5
27360   fi
27361  ;;
27362
27363   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27364 $as_echo "$as_me: executing $ac_file commands" >&6;}
27365  ;;
27366   esac
27367
27368
27369   case $ac_file$ac_mode in
27370     "as":F) chmod +x as ;;
27371     "collect-ld":F) chmod +x collect-ld ;;
27372     "nm":F) chmod +x nm ;;
27373     "default":C)
27374 case ${CONFIG_HEADERS} in
27375   *auto-host.h:config.in*)
27376   echo > cstamp-h ;;
27377 esac
27378 # Make sure all the subdirs exist.
27379 for d in $subdirs doc build c-family
27380 do
27381     test -d $d || mkdir $d
27382 done
27383  ;;
27384
27385   esac
27386 done # for ac_tag
27387
27388
27389 as_fn_exit 0
27390 _ACEOF
27391 ac_clean_files=$ac_clean_files_save
27392
27393 test $ac_write_fail = 0 ||
27394   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27395
27396
27397 # configure is writing to config.log, and then calls config.status.
27398 # config.status does its own redirection, appending to config.log.
27399 # Unfortunately, on DOS this fails, as config.log is still kept open
27400 # by configure, so config.status won't be able to write to it; its
27401 # output is simply discarded.  So we exec the FD to /dev/null,
27402 # effectively closing config.log, so it can be properly (re)opened and
27403 # appended to by config.status.  When coming back to configure, we
27404 # need to make the FD available again.
27405 if test "$no_create" != yes; then
27406   ac_cs_success=:
27407   ac_config_status_args=
27408   test "$silent" = yes &&
27409     ac_config_status_args="$ac_config_status_args --quiet"
27410   exec 5>/dev/null
27411   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27412   exec 5>>config.log
27413   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27414   # would make configure fail if this is the last instruction.
27415   $ac_cs_success || as_fn_exit $?
27416 fi
27417 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27418   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27419 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27420 fi
27421
27422