OSDN Git Service

abf0b9acf748cc2bbcd626debbdf01be39a32884
[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   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
702
703 ac_unique_file="tree.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 #  include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 #  include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739
740 ac_subst_vars='LTLIBOBJS
741 LIBOBJS
742 enable_plugin
743 pluginlibs
744 LIBELFINC
745 LIBELFLIBS
746 CLOOGINC
747 CLOOGLIBS
748 PPLINC
749 PPLLIBS
750 GMPINC
751 GMPLIBS
752 target_cpu_default
753 fortran_target_objs
754 cxx_target_objs
755 c_target_objs
756 use_gcc_stdint
757 xm_defines
758 xm_include_list
759 xm_file_list
760 tm_p_include_list
761 tm_p_file_list
762 tm_defines
763 tm_include_list
764 tm_file_list
765 thread_file
766 out_object_file
767 out_file
768 objc_boehm_gc
769 md_file
770 local_prefix
771 lang_tree_files
772 lang_specs_files
773 lang_opt_files
774 install
775 out_host_hook_obj
776 host_xm_defines
777 host_xm_include_list
778 host_xm_file_list
779 host_exeext
780 gcc_gxx_include_dir
781 gcc_config_arguments
782 float_h_file
783 extra_programs
784 extra_passes
785 extra_parts
786 extra_objs
787 extra_headers_list
788 extra_gcc_objs
789 TM_MULTILIB_EXCEPTIONS_CONFIG
790 TM_MULTILIB_CONFIG
791 TM_ENDIAN_CONFIG
792 tmake_file
793 xmake_file
794 cpp_install_dir
795 check_languages
796 build_file_translate
797 build_xm_defines
798 build_xm_include_list
799 build_xm_file_list
800 build_install_headers_dir
801 build_exeext
802 all_selected_languages
803 all_languages
804 all_lang_makefiles
805 all_lang_makefrags
806 all_gtfiles
807 all_compilers
808 srcdir
809 subdirs
810 slibdir
811 dollar
812 gcc_tooldir
813 enable_lto
814 MAINT
815 zlibinc
816 zlibdir
817 HOST_LIBS
818 GGC
819 libgcc_visibility
820 gcc_cv_readelf
821 gcc_cv_objdump
822 ORIGINAL_NM_FOR_TARGET
823 gcc_cv_nm
824 ORIGINAL_LD_FOR_TARGET
825 ORIGINAL_PLUGIN_LD_FOR_TARGET
826 gcc_cv_ld
827 ORIGINAL_AS_FOR_TARGET
828 gcc_cv_as
829 enable_fast_install
830 objdir
831 CXXCPP
832 OTOOL64
833 OTOOL
834 LIPO
835 NMEDIT
836 DSYMUTIL
837 lt_ECHO
838 STRIP
839 OBJDUMP
840 ac_ct_DUMPBIN
841 DUMPBIN
842 LD
843 FGREP
844 SED
845 LIBTOOL
846 collect2
847 STMP_FIXINC
848 BUILD_LDFLAGS
849 BUILD_CFLAGS
850 CC_FOR_BUILD
851 inhibit_libc
852 SYSTEM_HEADER_DIR
853 ALL
854 CROSS
855 CATOBJEXT
856 GENCAT
857 INSTOBJEXT
858 DATADIRNAME
859 CATALOGS
860 POSUB
861 GMSGFMT
862 XGETTEXT
863 INCINTL
864 LIBINTL_DEP
865 LIBINTL
866 USE_NLS
867 extra_opt_files
868 extra_modes_file
869 gthread_flags
870 objext
871 manext
872 LIBICONV_DEP
873 LTLIBICONV
874 LIBICONV
875 LDEXP_LIB
876 GNAT_LIBEXC
877 COLLECT2_LIBS
878 AR
879 NM
880 BISON
881 FLEX
882 GENERATED_MANPAGES
883 BUILD_INFO
884 MAKEINFO
885 have_mktemp_command
886 make_compare_target
887 INSTALL_DATA
888 INSTALL_PROGRAM
889 INSTALL
890 ranlib_flags
891 RANLIB
892 LN
893 LN_S
894 AWK
895 SET_MAKE
896 REPORT_BUGS_TEXI
897 REPORT_BUGS_TO
898 PKGVERSION
899 onestep
900 CROSS_SYSTEM_HEADER_DIR
901 TARGET_SYSTEM_ROOT_DEFINE
902 TARGET_SYSTEM_ROOT
903 enable_shared
904 enable_fixed_point
905 enable_decimal_float
906 enable_multilib
907 ENABLE_BUILD_WITH_CXX
908 coverage_flags
909 valgrind_command
910 valgrind_path_defines
911 valgrind_path
912 TREEBROWSER
913 nocommon_flag
914 warn_cxxflags
915 warn_cflags
916 c_strict_warn
917 strict_warn
918 c_loose_warn
919 loose_warn
920 EGREP
921 GREP
922 CPP
923 OUTPUT_OPTION
924 NO_MINUS_C_MINUS_O
925 GNATMAKE
926 GNATBIND
927 ac_ct_CXX
928 CXXFLAGS
929 CXX
930 OBJEXT
931 EXEEXT
932 ac_ct_CC
933 CPPFLAGS
934 LDFLAGS
935 CFLAGS
936 CC
937 GENINSRC
938 target_subdir
939 host_subdir
940 build_subdir
941 build_libsubdir
942 target_noncanonical
943 target_os
944 target_vendor
945 target_cpu
946 target
947 host_os
948 host_vendor
949 host_cpu
950 host
951 build_os
952 build_vendor
953 build_cpu
954 build
955 target_alias
956 host_alias
957 build_alias
958 LIBS
959 ECHO_T
960 ECHO_N
961 ECHO_C
962 DEFS
963 mandir
964 localedir
965 libdir
966 psdir
967 pdfdir
968 dvidir
969 htmldir
970 infodir
971 docdir
972 oldincludedir
973 includedir
974 localstatedir
975 sharedstatedir
976 sysconfdir
977 datadir
978 datarootdir
979 libexecdir
980 sbindir
981 bindir
982 program_transform_name
983 prefix
984 exec_prefix
985 PACKAGE_URL
986 PACKAGE_BUGREPORT
987 PACKAGE_STRING
988 PACKAGE_VERSION
989 PACKAGE_TARNAME
990 PACKAGE_NAME
991 PATH_SEPARATOR
992 SHELL'
993 ac_subst_files='language_hooks'
994 ac_user_opts='
995 enable_option_checking
996 with_build_libsubdir
997 with_local_prefix
998 with_gxx_include_dir
999 with_cpp_install_dir
1000 enable_generated_files_in_srcdir
1001 with_gnu_ld
1002 with_ld
1003 with_demangler_in_ld
1004 with_gnu_as
1005 with_as
1006 enable_werror_always
1007 enable_checking
1008 enable_coverage
1009 enable_gather_detailed_mem_stats
1010 enable_build_with_cxx
1011 with_stabs
1012 enable_multilib
1013 enable___cxa_atexit
1014 enable_decimal_float
1015 enable_fixed_point
1016 enable_threads
1017 enable_tls
1018 enable_objc_gc
1019 with_dwarf2
1020 enable_shared
1021 with_build_sysroot
1022 with_sysroot
1023 enable_intermodule
1024 with_pkgversion
1025 with_bugurl
1026 enable_languages
1027 with_multilib_list
1028 enable_rpath
1029 with_libiconv_prefix
1030 enable_initfini_array
1031 enable_sjlj_exceptions
1032 with_system_libunwind
1033 enable_secureplt
1034 enable_cld
1035 enable_win32_registry
1036 enable_static
1037 with_pic
1038 enable_fast_install
1039 enable_libtool_lock
1040 with_plugin_ld
1041 enable_gnu_unique_object
1042 enable_linker_build_id
1043 with_long_double_128
1044 with_gc
1045 with_system_zlib
1046 enable_maintainer_mode
1047 enable_version_specific_runtime_libs
1048 with_slibdir
1049 enable_plugin
1050 '
1051       ac_precious_vars='build_alias
1052 host_alias
1053 target_alias
1054 CC
1055 CFLAGS
1056 LDFLAGS
1057 LIBS
1058 CPPFLAGS
1059 CXX
1060 CXXFLAGS
1061 CCC
1062 CPP
1063 CXXCPP
1064 GMPLIBS
1065 GMPINC
1066 PPLLIBS
1067 PPLINC
1068 CLOOGLIBS
1069 CLOOGINC
1070 LIBELFLIBS
1071 LIBELFINC'
1072
1073
1074 # Initialize some variables set by options.
1075 ac_init_help=
1076 ac_init_version=false
1077 ac_unrecognized_opts=
1078 ac_unrecognized_sep=
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file=/dev/null
1082 exec_prefix=NONE
1083 no_create=
1084 no_recursion=
1085 prefix=NONE
1086 program_prefix=NONE
1087 program_suffix=NONE
1088 program_transform_name=s,x,x,
1089 silent=
1090 site=
1091 srcdir=
1092 verbose=
1093 x_includes=NONE
1094 x_libraries=NONE
1095
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir='${exec_prefix}/bin'
1103 sbindir='${exec_prefix}/sbin'
1104 libexecdir='${exec_prefix}/libexec'
1105 datarootdir='${prefix}/share'
1106 datadir='${datarootdir}'
1107 sysconfdir='${prefix}/etc'
1108 sharedstatedir='${prefix}/com'
1109 localstatedir='${prefix}/var'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE}'
1113 infodir='${datarootdir}/info'
1114 htmldir='${docdir}'
1115 dvidir='${docdir}'
1116 pdfdir='${docdir}'
1117 psdir='${docdir}'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1121
1122 ac_prev=
1123 ac_dashdash=
1124 for ac_option
1125 do
1126   # If the previous option needs an argument, assign it.
1127   if test -n "$ac_prev"; then
1128     eval $ac_prev=\$ac_option
1129     ac_prev=
1130     continue
1131   fi
1132
1133   case $ac_option in
1134   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135   *)    ac_optarg=yes ;;
1136   esac
1137
1138   # Accept the important Cygnus configure options, so we can diagnose typos.
1139
1140   case $ac_dashdash$ac_option in
1141   --)
1142     ac_dashdash=yes ;;
1143
1144   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1145     ac_prev=bindir ;;
1146   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1147     bindir=$ac_optarg ;;
1148
1149   -build | --build | --buil | --bui | --bu)
1150     ac_prev=build_alias ;;
1151   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1152     build_alias=$ac_optarg ;;
1153
1154   -cache-file | --cache-file | --cache-fil | --cache-fi \
1155   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1156     ac_prev=cache_file ;;
1157   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1158   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1159     cache_file=$ac_optarg ;;
1160
1161   --config-cache | -C)
1162     cache_file=config.cache ;;
1163
1164   -datadir | --datadir | --datadi | --datad)
1165     ac_prev=datadir ;;
1166   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1167     datadir=$ac_optarg ;;
1168
1169   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1170   | --dataroo | --dataro | --datar)
1171     ac_prev=datarootdir ;;
1172   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1173   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1174     datarootdir=$ac_optarg ;;
1175
1176   -disable-* | --disable-*)
1177     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180       as_fn_error "invalid feature name: $ac_useropt"
1181     ac_useropt_orig=$ac_useropt
1182     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183     case $ac_user_opts in
1184       *"
1185 "enable_$ac_useropt"
1186 "*) ;;
1187       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1188          ac_unrecognized_sep=', ';;
1189     esac
1190     eval enable_$ac_useropt=no ;;
1191
1192   -docdir | --docdir | --docdi | --doc | --do)
1193     ac_prev=docdir ;;
1194   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1195     docdir=$ac_optarg ;;
1196
1197   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1198     ac_prev=dvidir ;;
1199   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1200     dvidir=$ac_optarg ;;
1201
1202   -enable-* | --enable-*)
1203     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206       as_fn_error "invalid feature name: $ac_useropt"
1207     ac_useropt_orig=$ac_useropt
1208     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209     case $ac_user_opts in
1210       *"
1211 "enable_$ac_useropt"
1212 "*) ;;
1213       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1214          ac_unrecognized_sep=', ';;
1215     esac
1216     eval enable_$ac_useropt=\$ac_optarg ;;
1217
1218   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1219   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1220   | --exec | --exe | --ex)
1221     ac_prev=exec_prefix ;;
1222   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1223   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1224   | --exec=* | --exe=* | --ex=*)
1225     exec_prefix=$ac_optarg ;;
1226
1227   -gas | --gas | --ga | --g)
1228     # Obsolete; use --with-gas.
1229     with_gas=yes ;;
1230
1231   -help | --help | --hel | --he | -h)
1232     ac_init_help=long ;;
1233   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1234     ac_init_help=recursive ;;
1235   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1236     ac_init_help=short ;;
1237
1238   -host | --host | --hos | --ho)
1239     ac_prev=host_alias ;;
1240   -host=* | --host=* | --hos=* | --ho=*)
1241     host_alias=$ac_optarg ;;
1242
1243   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1244     ac_prev=htmldir ;;
1245   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1246   | --ht=*)
1247     htmldir=$ac_optarg ;;
1248
1249   -includedir | --includedir | --includedi | --included | --include \
1250   | --includ | --inclu | --incl | --inc)
1251     ac_prev=includedir ;;
1252   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1253   | --includ=* | --inclu=* | --incl=* | --inc=*)
1254     includedir=$ac_optarg ;;
1255
1256   -infodir | --infodir | --infodi | --infod | --info | --inf)
1257     ac_prev=infodir ;;
1258   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1259     infodir=$ac_optarg ;;
1260
1261   -libdir | --libdir | --libdi | --libd)
1262     ac_prev=libdir ;;
1263   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1264     libdir=$ac_optarg ;;
1265
1266   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1267   | --libexe | --libex | --libe)
1268     ac_prev=libexecdir ;;
1269   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1270   | --libexe=* | --libex=* | --libe=*)
1271     libexecdir=$ac_optarg ;;
1272
1273   -localedir | --localedir | --localedi | --localed | --locale)
1274     ac_prev=localedir ;;
1275   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1276     localedir=$ac_optarg ;;
1277
1278   -localstatedir | --localstatedir | --localstatedi | --localstated \
1279   | --localstate | --localstat | --localsta | --localst | --locals)
1280     ac_prev=localstatedir ;;
1281   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1282   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1283     localstatedir=$ac_optarg ;;
1284
1285   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1286     ac_prev=mandir ;;
1287   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1288     mandir=$ac_optarg ;;
1289
1290   -nfp | --nfp | --nf)
1291     # Obsolete; use --without-fp.
1292     with_fp=no ;;
1293
1294   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1295   | --no-cr | --no-c | -n)
1296     no_create=yes ;;
1297
1298   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1299   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1300     no_recursion=yes ;;
1301
1302   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1303   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1304   | --oldin | --oldi | --old | --ol | --o)
1305     ac_prev=oldincludedir ;;
1306   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1307   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1308   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1309     oldincludedir=$ac_optarg ;;
1310
1311   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1312     ac_prev=prefix ;;
1313   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1314     prefix=$ac_optarg ;;
1315
1316   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1317   | --program-pre | --program-pr | --program-p)
1318     ac_prev=program_prefix ;;
1319   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1320   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1321     program_prefix=$ac_optarg ;;
1322
1323   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1324   | --program-suf | --program-su | --program-s)
1325     ac_prev=program_suffix ;;
1326   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1327   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1328     program_suffix=$ac_optarg ;;
1329
1330   -program-transform-name | --program-transform-name \
1331   | --program-transform-nam | --program-transform-na \
1332   | --program-transform-n | --program-transform- \
1333   | --program-transform | --program-transfor \
1334   | --program-transfo | --program-transf \
1335   | --program-trans | --program-tran \
1336   | --progr-tra | --program-tr | --program-t)
1337     ac_prev=program_transform_name ;;
1338   -program-transform-name=* | --program-transform-name=* \
1339   | --program-transform-nam=* | --program-transform-na=* \
1340   | --program-transform-n=* | --program-transform-=* \
1341   | --program-transform=* | --program-transfor=* \
1342   | --program-transfo=* | --program-transf=* \
1343   | --program-trans=* | --program-tran=* \
1344   | --progr-tra=* | --program-tr=* | --program-t=*)
1345     program_transform_name=$ac_optarg ;;
1346
1347   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1348     ac_prev=pdfdir ;;
1349   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1350     pdfdir=$ac_optarg ;;
1351
1352   -psdir | --psdir | --psdi | --psd | --ps)
1353     ac_prev=psdir ;;
1354   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1355     psdir=$ac_optarg ;;
1356
1357   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1358   | -silent | --silent | --silen | --sile | --sil)
1359     silent=yes ;;
1360
1361   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1362     ac_prev=sbindir ;;
1363   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1364   | --sbi=* | --sb=*)
1365     sbindir=$ac_optarg ;;
1366
1367   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1368   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1369   | --sharedst | --shareds | --shared | --share | --shar \
1370   | --sha | --sh)
1371     ac_prev=sharedstatedir ;;
1372   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1373   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1374   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1375   | --sha=* | --sh=*)
1376     sharedstatedir=$ac_optarg ;;
1377
1378   -site | --site | --sit)
1379     ac_prev=site ;;
1380   -site=* | --site=* | --sit=*)
1381     site=$ac_optarg ;;
1382
1383   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1384     ac_prev=srcdir ;;
1385   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1386     srcdir=$ac_optarg ;;
1387
1388   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1389   | --syscon | --sysco | --sysc | --sys | --sy)
1390     ac_prev=sysconfdir ;;
1391   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1392   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1393     sysconfdir=$ac_optarg ;;
1394
1395   -target | --target | --targe | --targ | --tar | --ta | --t)
1396     ac_prev=target_alias ;;
1397   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1398     target_alias=$ac_optarg ;;
1399
1400   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1401     verbose=yes ;;
1402
1403   -version | --version | --versio | --versi | --vers | -V)
1404     ac_init_version=: ;;
1405
1406   -with-* | --with-*)
1407     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1408     # Reject names that are not valid shell variable names.
1409     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1410       as_fn_error "invalid package name: $ac_useropt"
1411     ac_useropt_orig=$ac_useropt
1412     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413     case $ac_user_opts in
1414       *"
1415 "with_$ac_useropt"
1416 "*) ;;
1417       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418          ac_unrecognized_sep=', ';;
1419     esac
1420     eval with_$ac_useropt=\$ac_optarg ;;
1421
1422   -without-* | --without-*)
1423     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424     # Reject names that are not valid shell variable names.
1425     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1426       as_fn_error "invalid package name: $ac_useropt"
1427     ac_useropt_orig=$ac_useropt
1428     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1429     case $ac_user_opts in
1430       *"
1431 "with_$ac_useropt"
1432 "*) ;;
1433       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1434          ac_unrecognized_sep=', ';;
1435     esac
1436     eval with_$ac_useropt=no ;;
1437
1438   --x)
1439     # Obsolete; use --with-x.
1440     with_x=yes ;;
1441
1442   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1443   | --x-incl | --x-inc | --x-in | --x-i)
1444     ac_prev=x_includes ;;
1445   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1446   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1447     x_includes=$ac_optarg ;;
1448
1449   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1450   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1451     ac_prev=x_libraries ;;
1452   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1453   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1454     x_libraries=$ac_optarg ;;
1455
1456   -*) as_fn_error "unrecognized option: \`$ac_option'
1457 Try \`$0 --help' for more information."
1458     ;;
1459
1460   *=*)
1461     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1462     # Reject names that are not valid shell variable names.
1463     case $ac_envvar in #(
1464       '' | [0-9]* | *[!_$as_cr_alnum]* )
1465       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1466     esac
1467     eval $ac_envvar=\$ac_optarg
1468     export $ac_envvar ;;
1469
1470   *)
1471     # FIXME: should be removed in autoconf 3.0.
1472     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1473     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1474       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1475     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1476     ;;
1477
1478   esac
1479 done
1480
1481 if test -n "$ac_prev"; then
1482   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1483   as_fn_error "missing argument to $ac_option"
1484 fi
1485
1486 if test -n "$ac_unrecognized_opts"; then
1487   case $enable_option_checking in
1488     no) ;;
1489     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1490     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1491   esac
1492 fi
1493
1494 # Check all directory arguments for consistency.
1495 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1496                 datadir sysconfdir sharedstatedir localstatedir includedir \
1497                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1498                 libdir localedir mandir
1499 do
1500   eval ac_val=\$$ac_var
1501   # Remove trailing slashes.
1502   case $ac_val in
1503     */ )
1504       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1505       eval $ac_var=\$ac_val;;
1506   esac
1507   # Be sure to have absolute directory names.
1508   case $ac_val in
1509     [\\/$]* | ?:[\\/]* )  continue;;
1510     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1511   esac
1512   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1513 done
1514
1515 # There might be people who depend on the old broken behavior: `$host'
1516 # used to hold the argument of --host etc.
1517 # FIXME: To remove some day.
1518 build=$build_alias
1519 host=$host_alias
1520 target=$target_alias
1521
1522 # FIXME: To remove some day.
1523 if test "x$host_alias" != x; then
1524   if test "x$build_alias" = x; then
1525     cross_compiling=maybe
1526     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1527     If a cross compiler is detected then cross compile mode will be used." >&2
1528   elif test "x$build_alias" != "x$host_alias"; then
1529     cross_compiling=yes
1530   fi
1531 fi
1532
1533 ac_tool_prefix=
1534 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1535
1536 test "$silent" = yes && exec 6>/dev/null
1537
1538
1539 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1540 ac_ls_di=`ls -di .` &&
1541 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1542   as_fn_error "working directory cannot be determined"
1543 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1544   as_fn_error "pwd does not report name of working directory"
1545
1546
1547 # Find the source files, if location was not specified.
1548 if test -z "$srcdir"; then
1549   ac_srcdir_defaulted=yes
1550   # Try the directory containing this script, then the parent directory.
1551   ac_confdir=`$as_dirname -- "$as_myself" ||
1552 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1553          X"$as_myself" : 'X\(//\)[^/]' \| \
1554          X"$as_myself" : 'X\(//\)$' \| \
1555          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1556 $as_echo X"$as_myself" |
1557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1558             s//\1/
1559             q
1560           }
1561           /^X\(\/\/\)[^/].*/{
1562             s//\1/
1563             q
1564           }
1565           /^X\(\/\/\)$/{
1566             s//\1/
1567             q
1568           }
1569           /^X\(\/\).*/{
1570             s//\1/
1571             q
1572           }
1573           s/.*/./; q'`
1574   srcdir=$ac_confdir
1575   if test ! -r "$srcdir/$ac_unique_file"; then
1576     srcdir=..
1577   fi
1578 else
1579   ac_srcdir_defaulted=no
1580 fi
1581 if test ! -r "$srcdir/$ac_unique_file"; then
1582   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1583   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1584 fi
1585 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1586 ac_abs_confdir=`(
1587         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1588         pwd)`
1589 # When building in place, set srcdir=.
1590 if test "$ac_abs_confdir" = "$ac_pwd"; then
1591   srcdir=.
1592 fi
1593 # Remove unnecessary trailing slashes from srcdir.
1594 # Double slashes in file names in object file debugging info
1595 # mess up M-x gdb in Emacs.
1596 case $srcdir in
1597 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1598 esac
1599 for ac_var in $ac_precious_vars; do
1600   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1601   eval ac_env_${ac_var}_value=\$${ac_var}
1602   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1603   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1604 done
1605
1606 #
1607 # Report the --help message.
1608 #
1609 if test "$ac_init_help" = "long"; then
1610   # Omit some internal or obsolete options to make the list less imposing.
1611   # This message is too long to be a string in the A/UX 3.1 sh.
1612   cat <<_ACEOF
1613 \`configure' configures this package to adapt to many kinds of systems.
1614
1615 Usage: $0 [OPTION]... [VAR=VALUE]...
1616
1617 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1618 VAR=VALUE.  See below for descriptions of some of the useful variables.
1619
1620 Defaults for the options are specified in brackets.
1621
1622 Configuration:
1623   -h, --help              display this help and exit
1624       --help=short        display options specific to this package
1625       --help=recursive    display the short help of all the included packages
1626   -V, --version           display version information and exit
1627   -q, --quiet, --silent   do not print \`checking...' messages
1628       --cache-file=FILE   cache test results in FILE [disabled]
1629   -C, --config-cache      alias for \`--cache-file=config.cache'
1630   -n, --no-create         do not create output files
1631       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1632
1633 Installation directories:
1634   --prefix=PREFIX         install architecture-independent files in PREFIX
1635                           [$ac_default_prefix]
1636   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1637                           [PREFIX]
1638
1639 By default, \`make install' will install all the files in
1640 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1641 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1642 for instance \`--prefix=\$HOME'.
1643
1644 For better control, use the options below.
1645
1646 Fine tuning of the installation directories:
1647   --bindir=DIR            user executables [EPREFIX/bin]
1648   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1649   --libexecdir=DIR        program executables [EPREFIX/libexec]
1650   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1651   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1652   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1653   --libdir=DIR            object code libraries [EPREFIX/lib]
1654   --includedir=DIR        C header files [PREFIX/include]
1655   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1656   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1657   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1658   --infodir=DIR           info documentation [DATAROOTDIR/info]
1659   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1660   --mandir=DIR            man documentation [DATAROOTDIR/man]
1661   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1662   --htmldir=DIR           html documentation [DOCDIR]
1663   --dvidir=DIR            dvi documentation [DOCDIR]
1664   --pdfdir=DIR            pdf documentation [DOCDIR]
1665   --psdir=DIR             ps documentation [DOCDIR]
1666 _ACEOF
1667
1668   cat <<\_ACEOF
1669
1670 Program names:
1671   --program-prefix=PREFIX            prepend PREFIX to installed program names
1672   --program-suffix=SUFFIX            append SUFFIX to installed program names
1673   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1674
1675 System types:
1676   --build=BUILD     configure for building on BUILD [guessed]
1677   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1678   --target=TARGET   configure for building compilers for TARGET [HOST]
1679 _ACEOF
1680 fi
1681
1682 if test -n "$ac_init_help"; then
1683
1684   cat <<\_ACEOF
1685
1686 Optional Features:
1687   --disable-option-checking  ignore unrecognized --enable/--with options
1688   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1689   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1690   --enable-generated-files-in-srcdir
1691                           put copies of generated files in source dir
1692                           intended for creating source tarballs for users
1693                           without texinfo bison or flex.
1694   --enable-werror-always  enable -Werror despite compiler version
1695   --enable-checking=LIST
1696                           enable expensive run-time checks.  With LIST,
1697                           enable only specific categories of checks.
1698                           Categories are: yes,no,all,none,release.
1699                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1700                           rtlflag,rtl,runtime,tree,valgrind,types.
1701   --enable-coverage=LEVEL
1702                           enable compiler's code coverage collection.
1703                           Use to measure compiler performance and locate
1704                           unused parts of the compiler. With LEVEL, specify
1705                           optimization. Values are opt, noopt,
1706                           default is noopt
1707   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1708   --enable-build-with-cxx build with C++ compiler instead of C compiler
1709   --enable-multilib       enable library support for multiple ABIs
1710   --enable-__cxa_atexit   enable __cxa_atexit for C++
1711   --enable-decimal-float={no,yes,bid,dpd}
1712                         enable decimal float extension to C.  Selecting 'bid'
1713                         or 'dpd' choses which decimal floating point format
1714                         to use
1715   --enable-fixed-point    enable fixed-point arithmetic extension to C
1716   --enable-threads        enable thread usage for target GCC
1717   --enable-threads=LIB    use LIB thread package for target GCC
1718   --enable-tls            enable or disable generation of tls code
1719                           overriding the assembler check for tls support
1720   --enable-objc-gc        enable the use of Boehm's garbage collector with
1721                           the GNU Objective-C runtime
1722   --disable-shared        don't provide a shared libgcc
1723   --enable-intermodule    build the compiler in one step
1724   --enable-languages=LIST specify which front-ends to build
1725   --disable-rpath         do not hardcode runtime library paths
1726   --enable-initfini-array       use .init_array/.fini_array sections
1727   --enable-sjlj-exceptions
1728                           arrange to use setjmp/longjmp exception handling
1729   --enable-secureplt      enable -msecure-plt by default for PowerPC
1730   --enable-cld            enable -mcld by default for 32bit x86
1731   --disable-win32-registry
1732                           disable lookup of installation paths in the
1733                           Registry on Windows hosts
1734   --enable-win32-registry enable registry lookup (default)
1735   --enable-win32-registry=KEY
1736                           use KEY instead of GCC version as the last portion
1737                           of the registry key
1738   --enable-shared[=PKGS]  build shared libraries [default=yes]
1739   --enable-static[=PKGS]  build static libraries [default=yes]
1740   --enable-fast-install[=PKGS]
1741                           optimize for fast installation [default=yes]
1742   --disable-libtool-lock  avoid locking (might break parallel builds)
1743   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1744                                 glibc systems
1745   --enable-linker-build-id
1746                           compiler will always pass --build-id to linker
1747   --enable-maintainer-mode
1748                           enable make rules and dependencies not useful
1749                           (and sometimes confusing) to the casual installer
1750   --enable-version-specific-runtime-libs
1751                           specify that runtime libraries should be
1752                           installed in a compiler-specific directory
1753   --enable-plugin         enable plugin support
1754
1755 Optional Packages:
1756   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1757   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1758   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1759   --with-local-prefix=DIR specifies directory to put local include
1760   --with-gxx-include-dir=DIR
1761                           specifies directory to put g++ header files
1762   --with-cpp-install-dir=DIR
1763                           install the user visible C preprocessor in DIR
1764                           (relative to PREFIX) as well as PREFIX/bin
1765   --with-gnu-ld           arrange to work with GNU ld.
1766   --with-ld               arrange to use the specified ld (full pathname)
1767   --with-demangler-in-ld  try to use demangler in GNU ld.
1768   --with-gnu-as           arrange to work with GNU as
1769   --with-as               arrange to use the specified as (full pathname)
1770   --with-stabs            arrange to use stabs instead of host debug format
1771   --with-dwarf2           force the default debug format to be DWARF 2
1772   --with-build-sysroot=sysroot
1773                           use sysroot as the system root during the build
1774   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1775   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1776   --with-bugurl=URL       Direct users to URL to report a bug
1777   --with-multilib-list    Select multilibs (SH only)
1778   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1779   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1780   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1781   --with-system-libunwind use installed libunwind
1782   --with-pic              try to use only PIC/non-PIC objects [default=use
1783                           both]
1784   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1785   --with-plugin-ld=[ARG]  specify the plugin linker
1786   --with-long-double-128  Use 128-bit long double by default.
1787   --with-gc={page,zone}   choose the garbage collection mechanism to use
1788                           with the compiler
1789   --with-system-zlib      use installed libz
1790   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1791
1792 Some influential environment variables:
1793   CC          C compiler command
1794   CFLAGS      C compiler flags
1795   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1796               nonstandard directory <lib dir>
1797   LIBS        libraries to pass to the linker, e.g. -l<library>
1798   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1799               you have headers in a nonstandard directory <include dir>
1800   CXX         C++ compiler command
1801   CXXFLAGS    C++ compiler flags
1802   CPP         C preprocessor
1803   CXXCPP      C++ preprocessor
1804   GMPLIBS     How to link GMP
1805   GMPINC      How to find GMP include files
1806   PPLLIBS     How to link PPL
1807   PPLINC      How to find PPL include files
1808   CLOOGLIBS   How to link CLOOG
1809   CLOOGINC    How to find CLOOG include files
1810   LIBELFLIBS  How to link libelf
1811   LIBELFINC   How to find libelf include files
1812
1813 Use these variables to override the choices made by `configure' or to help
1814 it to find libraries and programs with nonstandard names/locations.
1815
1816 Report bugs to the package provider.
1817 _ACEOF
1818 ac_status=$?
1819 fi
1820
1821 if test "$ac_init_help" = "recursive"; then
1822   # If there are subdirs, report their specific --help.
1823   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1824     test -d "$ac_dir" ||
1825       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1826       continue
1827     ac_builddir=.
1828
1829 case "$ac_dir" in
1830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1831 *)
1832   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1833   # A ".." for each directory in $ac_dir_suffix.
1834   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1835   case $ac_top_builddir_sub in
1836   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1837   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1838   esac ;;
1839 esac
1840 ac_abs_top_builddir=$ac_pwd
1841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1842 # for backward compatibility:
1843 ac_top_builddir=$ac_top_build_prefix
1844
1845 case $srcdir in
1846   .)  # We are building in place.
1847     ac_srcdir=.
1848     ac_top_srcdir=$ac_top_builddir_sub
1849     ac_abs_top_srcdir=$ac_pwd ;;
1850   [\\/]* | ?:[\\/]* )  # Absolute name.
1851     ac_srcdir=$srcdir$ac_dir_suffix;
1852     ac_top_srcdir=$srcdir
1853     ac_abs_top_srcdir=$srcdir ;;
1854   *) # Relative name.
1855     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1856     ac_top_srcdir=$ac_top_build_prefix$srcdir
1857     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1858 esac
1859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1860
1861     cd "$ac_dir" || { ac_status=$?; continue; }
1862     # Check for guested configure.
1863     if test -f "$ac_srcdir/configure.gnu"; then
1864       echo &&
1865       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1866     elif test -f "$ac_srcdir/configure"; then
1867       echo &&
1868       $SHELL "$ac_srcdir/configure" --help=recursive
1869     else
1870       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1871     fi || ac_status=$?
1872     cd "$ac_pwd" || { ac_status=$?; break; }
1873   done
1874 fi
1875
1876 test -n "$ac_init_help" && exit $ac_status
1877 if $ac_init_version; then
1878   cat <<\_ACEOF
1879 configure
1880 generated by GNU Autoconf 2.64
1881
1882 Copyright (C) 2009 Free Software Foundation, Inc.
1883 This configure script is free software; the Free Software Foundation
1884 gives unlimited permission to copy, distribute and modify it.
1885 _ACEOF
1886   exit
1887 fi
1888
1889 ## ------------------------ ##
1890 ## Autoconf initialization. ##
1891 ## ------------------------ ##
1892
1893 # ac_fn_c_try_compile LINENO
1894 # --------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_compile ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   rm -f conftest.$ac_objext
1900   if { { ac_try="$ac_compile"
1901 case "(($ac_try" in
1902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903   *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907   (eval "$ac_compile") 2>conftest.err
1908   ac_status=$?
1909   if test -s conftest.err; then
1910     grep -v '^ *+' conftest.err >conftest.er1
1911     cat conftest.er1 >&5
1912     mv -f conftest.er1 conftest.err
1913   fi
1914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915   test $ac_status = 0; } && {
1916          test -z "$ac_c_werror_flag" ||
1917          test ! -s conftest.err
1918        } && test -s conftest.$ac_objext; then :
1919   ac_retval=0
1920 else
1921   $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924         ac_retval=1
1925 fi
1926   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927   return $ac_retval
1928
1929 } # ac_fn_c_try_compile
1930
1931 # ac_fn_cxx_try_compile LINENO
1932 # ----------------------------
1933 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_compile ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   rm -f conftest.$ac_objext
1938   if { { ac_try="$ac_compile"
1939 case "(($ac_try" in
1940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941   *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945   (eval "$ac_compile") 2>conftest.err
1946   ac_status=$?
1947   if test -s conftest.err; then
1948     grep -v '^ *+' conftest.err >conftest.er1
1949     cat conftest.er1 >&5
1950     mv -f conftest.er1 conftest.err
1951   fi
1952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953   test $ac_status = 0; } && {
1954          test -z "$ac_cxx_werror_flag" ||
1955          test ! -s conftest.err
1956        } && test -s conftest.$ac_objext; then :
1957   ac_retval=0
1958 else
1959   $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962         ac_retval=1
1963 fi
1964   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965   return $ac_retval
1966
1967 } # ac_fn_cxx_try_compile
1968
1969 # ac_fn_c_try_cpp LINENO
1970 # ----------------------
1971 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_c_try_cpp ()
1973 {
1974   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975   if { { ac_try="$ac_cpp conftest.$ac_ext"
1976 case "(($ac_try" in
1977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978   *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1983   ac_status=$?
1984   if test -s conftest.err; then
1985     grep -v '^ *+' conftest.err >conftest.er1
1986     cat conftest.er1 >&5
1987     mv -f conftest.er1 conftest.err
1988   fi
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; } >/dev/null && {
1991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1992          test ! -s conftest.err
1993        }; then :
1994   ac_retval=0
1995 else
1996   $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1998
1999     ac_retval=1
2000 fi
2001   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002   return $ac_retval
2003
2004 } # ac_fn_c_try_cpp
2005
2006 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009 # the include files in INCLUDES and setting the cache variable VAR
2010 # accordingly.
2011 ac_fn_c_check_header_mongrel ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018   $as_echo_n "(cached) " >&6
2019 fi
2020 eval ac_res=\$$3
2021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 else
2024   # Is the header compilable?
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026 $as_echo_n "checking $2 usability... " >&6; }
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   ac_header_compiler=yes
2034 else
2035   ac_header_compiler=no
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039 $as_echo "$ac_header_compiler" >&6; }
2040
2041 # Is the header present?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043 $as_echo_n "checking $2 presence... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h.  */
2046 #include <$2>
2047 _ACEOF
2048 if ac_fn_c_try_cpp "$LINENO"; then :
2049   ac_header_preproc=yes
2050 else
2051   ac_header_preproc=no
2052 fi
2053 rm -f conftest.err conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055 $as_echo "$ac_header_preproc" >&6; }
2056
2057 # So?  What about this header?
2058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2059   yes:no: )
2060     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064     ;;
2065   no:yes:* )
2066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2069 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2073 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2074     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076     ;;
2077 esac
2078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081   $as_echo_n "(cached) " >&6
2082 else
2083   eval "$3=\$ac_header_compiler"
2084 fi
2085 eval ac_res=\$$3
2086                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 fi
2089   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090
2091 } # ac_fn_c_check_header_mongrel
2092
2093 # ac_fn_c_try_run LINENO
2094 # ----------------------
2095 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2096 # that executables *can* be run.
2097 ac_fn_c_try_run ()
2098 {
2099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100   if { { ac_try="$ac_link"
2101 case "(($ac_try" in
2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103   *) ac_try_echo=$ac_try;;
2104 esac
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107   (eval "$ac_link") 2>&5
2108   ac_status=$?
2109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2111   { { case "(($ac_try" in
2112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113   *) ac_try_echo=$ac_try;;
2114 esac
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117   (eval "$ac_try") 2>&5
2118   ac_status=$?
2119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120   test $ac_status = 0; }; }; then :
2121   ac_retval=0
2122 else
2123   $as_echo "$as_me: program exited with status $ac_status" >&5
2124        $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127        ac_retval=$ac_status
2128 fi
2129   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2130   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2131   return $ac_retval
2132
2133 } # ac_fn_c_try_run
2134
2135 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2136 # -------------------------------------------------------
2137 # Tests whether HEADER exists and can be compiled using the include files in
2138 # INCLUDES, setting the cache variable VAR accordingly.
2139 ac_fn_c_check_header_compile ()
2140 {
2141   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143 $as_echo_n "checking for $2... " >&6; }
2144 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2145   $as_echo_n "(cached) " >&6
2146 else
2147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h.  */
2149 $4
2150 #include <$2>
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153   eval "$3=yes"
2154 else
2155   eval "$3=no"
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 fi
2159 eval ac_res=\$$3
2160                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163
2164 } # ac_fn_c_check_header_compile
2165
2166 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2167 # --------------------------------------------
2168 # Tries to find the compile-time value of EXPR in a program that includes
2169 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2170 # computed
2171 ac_fn_c_compute_int ()
2172 {
2173   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174   if test "$cross_compiling" = yes; then
2175     # Depending upon the size, compute the lo and hi bounds.
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h.  */
2178 $4
2179 int
2180 main ()
2181 {
2182 static int test_array [1 - 2 * !(($2) >= 0)];
2183 test_array [0] = 0
2184
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190   ac_lo=0 ac_mid=0
2191   while :; do
2192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h.  */
2194 $4
2195 int
2196 main ()
2197 {
2198 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2199 test_array [0] = 0
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206   ac_hi=$ac_mid; break
2207 else
2208   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2209                         if test $ac_lo -le $ac_mid; then
2210                           ac_lo= ac_hi=
2211                           break
2212                         fi
2213                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216   done
2217 else
2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h.  */
2220 $4
2221 int
2222 main ()
2223 {
2224 static int test_array [1 - 2 * !(($2) < 0)];
2225 test_array [0] = 0
2226
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232   ac_hi=-1 ac_mid=-1
2233   while :; do
2234     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h.  */
2236 $4
2237 int
2238 main ()
2239 {
2240 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2241 test_array [0] = 0
2242
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248   ac_lo=$ac_mid; break
2249 else
2250   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2251                         if test $ac_mid -le $ac_hi; then
2252                           ac_lo= ac_hi=
2253                           break
2254                         fi
2255                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258   done
2259 else
2260   ac_lo= ac_hi=
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 # Binary search between lo and hi bounds.
2266 while test "x$ac_lo" != "x$ac_hi"; do
2267   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h.  */
2270 $4
2271 int
2272 main ()
2273 {
2274 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2275 test_array [0] = 0
2276
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"; then :
2282   ac_hi=$ac_mid
2283 else
2284   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2285 fi
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 done
2288 case $ac_lo in #((
2289 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2290 '') ac_retval=1 ;;
2291 esac
2292   else
2293     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $4
2296 static long int longval () { return $2; }
2297 static unsigned long int ulongval () { return $2; }
2298 #include <stdio.h>
2299 #include <stdlib.h>
2300 int
2301 main ()
2302 {
2303
2304   FILE *f = fopen ("conftest.val", "w");
2305   if (! f)
2306     return 1;
2307   if (($2) < 0)
2308     {
2309       long int i = longval ();
2310       if (i != ($2))
2311         return 1;
2312       fprintf (f, "%ld", i);
2313     }
2314   else
2315     {
2316       unsigned long int i = ulongval ();
2317       if (i != ($2))
2318         return 1;
2319       fprintf (f, "%lu", i);
2320     }
2321   /* Do not output a trailing newline, as this causes \r\n confusion
2322      on some platforms.  */
2323   return ferror (f) || fclose (f) != 0;
2324
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 if ac_fn_c_try_run "$LINENO"; then :
2330   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2331 else
2332   ac_retval=1
2333 fi
2334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2335   conftest.$ac_objext conftest.beam conftest.$ac_ext
2336 rm -f conftest.val
2337
2338   fi
2339   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2340   return $ac_retval
2341
2342 } # ac_fn_c_compute_int
2343
2344 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2345 # -------------------------------------------
2346 # Tests whether TYPE exists after having included INCLUDES, setting cache
2347 # variable VAR accordingly.
2348 ac_fn_c_check_type ()
2349 {
2350   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2352 $as_echo_n "checking for $2... " >&6; }
2353 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2354   $as_echo_n "(cached) " >&6
2355 else
2356   eval "$3=no"
2357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h.  */
2359 $4
2360 int
2361 main ()
2362 {
2363 if (sizeof ($2))
2364          return 0;
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 if ac_fn_c_try_compile "$LINENO"; then :
2370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 $4
2373 int
2374 main ()
2375 {
2376 if (sizeof (($2)))
2377             return 0;
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383
2384 else
2385   eval "$3=yes"
2386 fi
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 fi
2391 eval ac_res=\$$3
2392                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2393 $as_echo "$ac_res" >&6; }
2394   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2395
2396 } # ac_fn_c_check_type
2397
2398 # ac_fn_c_find_intX_t LINENO BITS VAR
2399 # -----------------------------------
2400 # Finds a signed integer type with width BITS, setting cache variable VAR
2401 # accordingly.
2402 ac_fn_c_find_intX_t ()
2403 {
2404   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2406 $as_echo_n "checking for int$2_t... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408   $as_echo_n "(cached) " >&6
2409 else
2410   eval "$3=no"
2411      for ac_type in int$2_t 'int' 'long int' \
2412          'long long int' 'short int' 'signed char'; do
2413        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h.  */
2415 $ac_includes_default
2416 int
2417 main ()
2418 {
2419 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2420 test_array [0] = 0
2421
2422   ;
2423   return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h.  */
2429 $ac_includes_default
2430 int
2431 main ()
2432 {
2433 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2434                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2435 test_array [0] = 0
2436
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442
2443 else
2444   case $ac_type in #(
2445   int$2_t) :
2446     eval "$3=yes" ;; #(
2447   *) :
2448     eval "$3=\$ac_type" ;;
2449 esac
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454        eval as_val=\$$3
2455    if test "x$as_val" = x""no; then :
2456
2457 else
2458   break
2459 fi
2460      done
2461 fi
2462 eval ac_res=\$$3
2463                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2466
2467 } # ac_fn_c_find_intX_t
2468
2469 # ac_fn_c_try_link LINENO
2470 # -----------------------
2471 # Try to link conftest.$ac_ext, and return whether this succeeded.
2472 ac_fn_c_try_link ()
2473 {
2474   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475   rm -f conftest.$ac_objext conftest$ac_exeext
2476   if { { ac_try="$ac_link"
2477 case "(($ac_try" in
2478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479   *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482 $as_echo "$ac_try_echo"; } >&5
2483   (eval "$ac_link") 2>conftest.err
2484   ac_status=$?
2485   if test -s conftest.err; then
2486     grep -v '^ *+' conftest.err >conftest.er1
2487     cat conftest.er1 >&5
2488     mv -f conftest.er1 conftest.err
2489   fi
2490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491   test $ac_status = 0; } && {
2492          test -z "$ac_c_werror_flag" ||
2493          test ! -s conftest.err
2494        } && test -s conftest$ac_exeext && {
2495          test "$cross_compiling" = yes ||
2496          $as_test_x conftest$ac_exeext
2497        }; then :
2498   ac_retval=0
2499 else
2500   $as_echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2502
2503         ac_retval=1
2504 fi
2505   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2506   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2507   # interfere with the next link command; also delete a directory that is
2508   # left behind by Apple's compiler.  We do this before executing the actions.
2509   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2510   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511   return $ac_retval
2512
2513 } # ac_fn_c_try_link
2514
2515 # ac_fn_c_find_uintX_t LINENO BITS VAR
2516 # ------------------------------------
2517 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2518 # accordingly.
2519 ac_fn_c_find_uintX_t ()
2520 {
2521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2523 $as_echo_n "checking for uint$2_t... " >&6; }
2524 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   eval "$3=no"
2528      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2529          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2530        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h.  */
2532 $ac_includes_default
2533 int
2534 main ()
2535 {
2536 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2537 test_array [0] = 0
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 if ac_fn_c_try_compile "$LINENO"; then :
2544   case $ac_type in #(
2545   uint$2_t) :
2546     eval "$3=yes" ;; #(
2547   *) :
2548     eval "$3=\$ac_type" ;;
2549 esac
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552        eval as_val=\$$3
2553    if test "x$as_val" = x""no; then :
2554
2555 else
2556   break
2557 fi
2558      done
2559 fi
2560 eval ac_res=\$$3
2561                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2564
2565 } # ac_fn_c_find_uintX_t
2566
2567 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2568 # ----------------------------------------------
2569 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2570 ac_fn_c_check_header_preproc ()
2571 {
2572   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574 $as_echo_n "checking for $2... " >&6; }
2575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2576   $as_echo_n "(cached) " >&6
2577 else
2578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h.  */
2580 #include <$2>
2581 _ACEOF
2582 if ac_fn_c_try_cpp "$LINENO"; then :
2583   eval "$3=yes"
2584 else
2585   eval "$3=no"
2586 fi
2587 rm -f conftest.err conftest.$ac_ext
2588 fi
2589 eval ac_res=\$$3
2590                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2593
2594 } # ac_fn_c_check_header_preproc
2595
2596 # ac_fn_c_check_func LINENO FUNC VAR
2597 # ----------------------------------
2598 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2599 ac_fn_c_check_func ()
2600 {
2601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h.  */
2609 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2611 #define $2 innocuous_$2
2612
2613 /* System header to define __stub macros and hopefully few prototypes,
2614     which can conflict with char $2 (); below.
2615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2616     <limits.h> exists even on freestanding compilers.  */
2617
2618 #ifdef __STDC__
2619 # include <limits.h>
2620 #else
2621 # include <assert.h>
2622 #endif
2623
2624 #undef $2
2625
2626 /* Override any GCC internal prototype to avoid an error.
2627    Use char because int might match the return type of a GCC
2628    builtin and then its argument prototype would still apply.  */
2629 #ifdef __cplusplus
2630 extern "C"
2631 #endif
2632 char $2 ();
2633 /* The GNU C library defines this for functions which it implements
2634     to always fail with ENOSYS.  Some functions are actually named
2635     something starting with __ and the normal name is an alias.  */
2636 #if defined __stub_$2 || defined __stub___$2
2637 choke me
2638 #endif
2639
2640 int
2641 main ()
2642 {
2643 return $2 ();
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 if ac_fn_c_try_link "$LINENO"; then :
2649   eval "$3=yes"
2650 else
2651   eval "$3=no"
2652 fi
2653 rm -f core conftest.err conftest.$ac_objext \
2654     conftest$ac_exeext conftest.$ac_ext
2655 fi
2656 eval ac_res=\$$3
2657                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660
2661 } # ac_fn_c_check_func
2662
2663 # ac_fn_cxx_try_cpp LINENO
2664 # ------------------------
2665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2666 ac_fn_cxx_try_cpp ()
2667 {
2668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669   if { { ac_try="$ac_cpp conftest.$ac_ext"
2670 case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2677   ac_status=$?
2678   if test -s conftest.err; then
2679     grep -v '^ *+' conftest.err >conftest.er1
2680     cat conftest.er1 >&5
2681     mv -f conftest.er1 conftest.err
2682   fi
2683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684   test $ac_status = 0; } >/dev/null && {
2685          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2686          test ! -s conftest.err
2687        }; then :
2688   ac_retval=0
2689 else
2690   $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693     ac_retval=1
2694 fi
2695   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2696   return $ac_retval
2697
2698 } # ac_fn_cxx_try_cpp
2699
2700 # ac_fn_cxx_try_link LINENO
2701 # -------------------------
2702 # Try to link conftest.$ac_ext, and return whether this succeeded.
2703 ac_fn_cxx_try_link ()
2704 {
2705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706   rm -f conftest.$ac_objext conftest$ac_exeext
2707   if { { ac_try="$ac_link"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714   (eval "$ac_link") 2>conftest.err
2715   ac_status=$?
2716   if test -s conftest.err; then
2717     grep -v '^ *+' conftest.err >conftest.er1
2718     cat conftest.er1 >&5
2719     mv -f conftest.er1 conftest.err
2720   fi
2721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722   test $ac_status = 0; } && {
2723          test -z "$ac_cxx_werror_flag" ||
2724          test ! -s conftest.err
2725        } && test -s conftest$ac_exeext && {
2726          test "$cross_compiling" = yes ||
2727          $as_test_x conftest$ac_exeext
2728        }; then :
2729   ac_retval=0
2730 else
2731   $as_echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734         ac_retval=1
2735 fi
2736   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2737   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2738   # interfere with the next link command; also delete a directory that is
2739   # left behind by Apple's compiler.  We do this before executing the actions.
2740   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2741   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2742   return $ac_retval
2743
2744 } # ac_fn_cxx_try_link
2745 cat >config.log <<_ACEOF
2746 This file contains any messages produced by compilers while
2747 running configure, to aid debugging if configure makes a mistake.
2748
2749 It was created by $as_me, which was
2750 generated by GNU Autoconf 2.64.  Invocation command line was
2751
2752   $ $0 $@
2753
2754 _ACEOF
2755 exec 5>>config.log
2756 {
2757 cat <<_ASUNAME
2758 ## --------- ##
2759 ## Platform. ##
2760 ## --------- ##
2761
2762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2767
2768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2769 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2770
2771 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2772 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2774 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2775 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2776 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2777 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2778
2779 _ASUNAME
2780
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786     $as_echo "PATH: $as_dir"
2787   done
2788 IFS=$as_save_IFS
2789
2790 } >&5
2791
2792 cat >&5 <<_ACEOF
2793
2794
2795 ## ----------- ##
2796 ## Core tests. ##
2797 ## ----------- ##
2798
2799 _ACEOF
2800
2801
2802 # Keep a trace of the command line.
2803 # Strip out --no-create and --no-recursion so they do not pile up.
2804 # Strip out --silent because we don't want to record it for future runs.
2805 # Also quote any args containing shell meta-characters.
2806 # Make two passes to allow for proper duplicate-argument suppression.
2807 ac_configure_args=
2808 ac_configure_args0=
2809 ac_configure_args1=
2810 ac_must_keep_next=false
2811 for ac_pass in 1 2
2812 do
2813   for ac_arg
2814   do
2815     case $ac_arg in
2816     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2817     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2818     | -silent | --silent | --silen | --sile | --sil)
2819       continue ;;
2820     *\'*)
2821       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2822     esac
2823     case $ac_pass in
2824     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2825     2)
2826       as_fn_append ac_configure_args1 " '$ac_arg'"
2827       if test $ac_must_keep_next = true; then
2828         ac_must_keep_next=false # Got value, back to normal.
2829       else
2830         case $ac_arg in
2831           *=* | --config-cache | -C | -disable-* | --disable-* \
2832           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2833           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2834           | -with-* | --with-* | -without-* | --without-* | --x)
2835             case "$ac_configure_args0 " in
2836               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2837             esac
2838             ;;
2839           -* ) ac_must_keep_next=true ;;
2840         esac
2841       fi
2842       as_fn_append ac_configure_args " '$ac_arg'"
2843       ;;
2844     esac
2845   done
2846 done
2847 { ac_configure_args0=; unset ac_configure_args0;}
2848 { ac_configure_args1=; unset ac_configure_args1;}
2849
2850 # When interrupted or exit'd, cleanup temporary files, and complete
2851 # config.log.  We remove comments because anyway the quotes in there
2852 # would cause problems or look ugly.
2853 # WARNING: Use '\'' to represent an apostrophe within the trap.
2854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2855 trap 'exit_status=$?
2856   # Save into config.log some information that might help in debugging.
2857   {
2858     echo
2859
2860     cat <<\_ASBOX
2861 ## ---------------- ##
2862 ## Cache variables. ##
2863 ## ---------------- ##
2864 _ASBOX
2865     echo
2866     # The following way of writing the cache mishandles newlines in values,
2867 (
2868   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2869     eval ac_val=\$$ac_var
2870     case $ac_val in #(
2871     *${as_nl}*)
2872       case $ac_var in #(
2873       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2875       esac
2876       case $ac_var in #(
2877       _ | IFS | as_nl) ;; #(
2878       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2879       *) { eval $ac_var=; unset $ac_var;} ;;
2880       esac ;;
2881     esac
2882   done
2883   (set) 2>&1 |
2884     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2885     *${as_nl}ac_space=\ *)
2886       sed -n \
2887         "s/'\''/'\''\\\\'\'''\''/g;
2888           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2889       ;; #(
2890     *)
2891       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2892       ;;
2893     esac |
2894     sort
2895 )
2896     echo
2897
2898     cat <<\_ASBOX
2899 ## ----------------- ##
2900 ## Output variables. ##
2901 ## ----------------- ##
2902 _ASBOX
2903     echo
2904     for ac_var in $ac_subst_vars
2905     do
2906       eval ac_val=\$$ac_var
2907       case $ac_val in
2908       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2909       esac
2910       $as_echo "$ac_var='\''$ac_val'\''"
2911     done | sort
2912     echo
2913
2914     if test -n "$ac_subst_files"; then
2915       cat <<\_ASBOX
2916 ## ------------------- ##
2917 ## File substitutions. ##
2918 ## ------------------- ##
2919 _ASBOX
2920       echo
2921       for ac_var in $ac_subst_files
2922       do
2923         eval ac_val=\$$ac_var
2924         case $ac_val in
2925         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2926         esac
2927         $as_echo "$ac_var='\''$ac_val'\''"
2928       done | sort
2929       echo
2930     fi
2931
2932     if test -s confdefs.h; then
2933       cat <<\_ASBOX
2934 ## ----------- ##
2935 ## confdefs.h. ##
2936 ## ----------- ##
2937 _ASBOX
2938       echo
2939       cat confdefs.h
2940       echo
2941     fi
2942     test "$ac_signal" != 0 &&
2943       $as_echo "$as_me: caught signal $ac_signal"
2944     $as_echo "$as_me: exit $exit_status"
2945   } >&5
2946   rm -f core *.core core.conftest.* &&
2947     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2948     exit $exit_status
2949 ' 0
2950 for ac_signal in 1 2 13 15; do
2951   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2952 done
2953 ac_signal=0
2954
2955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2956 rm -f -r conftest* confdefs.h
2957
2958 $as_echo "/* confdefs.h */" > confdefs.h
2959
2960 # Predefined preprocessor variables.
2961
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_NAME "$PACKAGE_NAME"
2964 _ACEOF
2965
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2968 _ACEOF
2969
2970 cat >>confdefs.h <<_ACEOF
2971 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2972 _ACEOF
2973
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE_STRING "$PACKAGE_STRING"
2976 _ACEOF
2977
2978 cat >>confdefs.h <<_ACEOF
2979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2980 _ACEOF
2981
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE_URL "$PACKAGE_URL"
2984 _ACEOF
2985
2986
2987 # Let the site file select an alternate cache file if it wants to.
2988 # Prefer an explicitly selected file to automatically selected ones.
2989 ac_site_file1=NONE
2990 ac_site_file2=NONE
2991 if test -n "$CONFIG_SITE"; then
2992   ac_site_file1=$CONFIG_SITE
2993 elif test "x$prefix" != xNONE; then
2994   ac_site_file1=$prefix/share/config.site
2995   ac_site_file2=$prefix/etc/config.site
2996 else
2997   ac_site_file1=$ac_default_prefix/share/config.site
2998   ac_site_file2=$ac_default_prefix/etc/config.site
2999 fi
3000 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3001 do
3002   test "x$ac_site_file" = xNONE && continue
3003   if test -r "$ac_site_file"; then
3004     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3005 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3006     sed 's/^/| /' "$ac_site_file" >&5
3007     . "$ac_site_file"
3008   fi
3009 done
3010
3011 if test -r "$cache_file"; then
3012   # Some versions of bash will fail to source /dev/null (special
3013   # files actually), so we avoid doing that.
3014   if test -f "$cache_file"; then
3015     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3016 $as_echo "$as_me: loading cache $cache_file" >&6;}
3017     case $cache_file in
3018       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3019       *)                      . "./$cache_file";;
3020     esac
3021   fi
3022 else
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3024 $as_echo "$as_me: creating cache $cache_file" >&6;}
3025   >$cache_file
3026 fi
3027
3028 # Check that the precious variables saved in the cache have kept the same
3029 # value.
3030 ac_cache_corrupted=false
3031 for ac_var in $ac_precious_vars; do
3032   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3033   eval ac_new_set=\$ac_env_${ac_var}_set
3034   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3035   eval ac_new_val=\$ac_env_${ac_var}_value
3036   case $ac_old_set,$ac_new_set in
3037     set,)
3038       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3039 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3040       ac_cache_corrupted=: ;;
3041     ,set)
3042       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3043 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3044       ac_cache_corrupted=: ;;
3045     ,);;
3046     *)
3047       if test "x$ac_old_val" != "x$ac_new_val"; then
3048         # differences in whitespace do not lead to failure.
3049         ac_old_val_w=`echo x $ac_old_val`
3050         ac_new_val_w=`echo x $ac_new_val`
3051         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3052           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3053 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3054           ac_cache_corrupted=:
3055         else
3056           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3057 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3058           eval $ac_var=\$ac_old_val
3059         fi
3060         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3061 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3062         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3063 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3064       fi;;
3065   esac
3066   # Pass precious variables to config.status.
3067   if test "$ac_new_set" = set; then
3068     case $ac_new_val in
3069     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3070     *) ac_arg=$ac_var=$ac_new_val ;;
3071     esac
3072     case " $ac_configure_args " in
3073       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3074       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3075     esac
3076   fi
3077 done
3078 if $ac_cache_corrupted; then
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3082 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3083   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3084 fi
3085 ## -------------------- ##
3086 ## Main body of script. ##
3087 ## -------------------- ##
3088
3089 ac_ext=c
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094
3095
3096
3097
3098
3099
3100 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3101
3102
3103 gcc_version=`cat $srcdir/BASE-VER`
3104
3105 # Determine the host, build, and target systems
3106 ac_aux_dir=
3107 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3108   for ac_t in install-sh install.sh shtool; do
3109     if test -f "$ac_dir/$ac_t"; then
3110       ac_aux_dir=$ac_dir
3111       ac_install_sh="$ac_aux_dir/$ac_t -c"
3112       break 2
3113     fi
3114   done
3115 done
3116 if test -z "$ac_aux_dir"; then
3117   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3118 fi
3119
3120 # These three variables are undocumented and unsupported,
3121 # and are intended to be withdrawn in a future Autoconf release.
3122 # They can cause serious problems if a builder's source tree is in a directory
3123 # whose full name contains unusual characters.
3124 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3125 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3126 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3127
3128
3129 # Make sure we can run config.sub.
3130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3131   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3132
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3134 $as_echo_n "checking build system type... " >&6; }
3135 if test "${ac_cv_build+set}" = set; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   ac_build_alias=$build_alias
3139 test "x$ac_build_alias" = x &&
3140   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3141 test "x$ac_build_alias" = x &&
3142   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3144   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3145
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3148 $as_echo "$ac_cv_build" >&6; }
3149 case $ac_cv_build in
3150 *-*-*) ;;
3151 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3152 esac
3153 build=$ac_cv_build
3154 ac_save_IFS=$IFS; IFS='-'
3155 set x $ac_cv_build
3156 shift
3157 build_cpu=$1
3158 build_vendor=$2
3159 shift; shift
3160 # Remember, the first character of IFS is used to create $*,
3161 # except with old shells:
3162 build_os=$*
3163 IFS=$ac_save_IFS
3164 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3165
3166
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3168 $as_echo_n "checking host system type... " >&6; }
3169 if test "${ac_cv_host+set}" = set; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   if test "x$host_alias" = x; then
3173   ac_cv_host=$ac_cv_build
3174 else
3175   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3176     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3177 fi
3178
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3181 $as_echo "$ac_cv_host" >&6; }
3182 case $ac_cv_host in
3183 *-*-*) ;;
3184 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3185 esac
3186 host=$ac_cv_host
3187 ac_save_IFS=$IFS; IFS='-'
3188 set x $ac_cv_host
3189 shift
3190 host_cpu=$1
3191 host_vendor=$2
3192 shift; shift
3193 # Remember, the first character of IFS is used to create $*,
3194 # except with old shells:
3195 host_os=$*
3196 IFS=$ac_save_IFS
3197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3198
3199
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3201 $as_echo_n "checking target system type... " >&6; }
3202 if test "${ac_cv_target+set}" = set; then :
3203   $as_echo_n "(cached) " >&6
3204 else
3205   if test "x$target_alias" = x; then
3206   ac_cv_target=$ac_cv_host
3207 else
3208   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3209     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3210 fi
3211
3212 fi
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3214 $as_echo "$ac_cv_target" >&6; }
3215 case $ac_cv_target in
3216 *-*-*) ;;
3217 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3218 esac
3219 target=$ac_cv_target
3220 ac_save_IFS=$IFS; IFS='-'
3221 set x $ac_cv_target
3222 shift
3223 target_cpu=$1
3224 target_vendor=$2
3225 shift; shift
3226 # Remember, the first character of IFS is used to create $*,
3227 # except with old shells:
3228 target_os=$*
3229 IFS=$ac_save_IFS
3230 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3231
3232
3233 # The aliases save the names the user supplied, while $host etc.
3234 # will get canonicalized.
3235 test -n "$target_alias" &&
3236   test "$program_prefix$program_suffix$program_transform_name" = \
3237     NONENONEs,x,x, &&
3238   program_prefix=${target_alias}-
3239
3240 # Determine the noncanonical target name, for directory use.
3241  case ${build_alias} in
3242   "") build_noncanonical=${build} ;;
3243   *) build_noncanonical=${build_alias} ;;
3244 esac
3245
3246  case ${host_alias} in
3247   "") host_noncanonical=${build_noncanonical} ;;
3248   *) host_noncanonical=${host_alias} ;;
3249 esac
3250
3251  case ${target_alias} in
3252   "") target_noncanonical=${host_noncanonical} ;;
3253   *) target_noncanonical=${target_alias} ;;
3254 esac
3255
3256
3257
3258
3259 # Determine the target- and build-specific subdirectories
3260
3261 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3262 # have matching libraries, they should use host libraries: Makefile.tpl
3263 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3264 # However, they still use the build modules, because the corresponding
3265 # host modules (e.g. bison) are only built for the host when bootstrap
3266 # finishes. So:
3267 # - build_subdir is where we find build modules, and never changes.
3268 # - build_libsubdir is where we find build libraries, and can be overridden.
3269
3270 # Prefix 'build-' so this never conflicts with target_subdir.
3271 build_subdir="build-${build_noncanonical}"
3272
3273 # Check whether --with-build-libsubdir was given.
3274 if test "${with_build_libsubdir+set}" = set; then :
3275   withval=$with_build_libsubdir; build_libsubdir="$withval"
3276 else
3277   build_libsubdir="$build_subdir"
3278 fi
3279
3280 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3281 if ( test $srcdir = . && test -d gcc ) \
3282    || test -d $srcdir/../host-${host_noncanonical}; then
3283   host_subdir="host-${host_noncanonical}"
3284 else
3285   host_subdir=.
3286 fi
3287 # No prefix.
3288 target_subdir=${target_noncanonical}
3289
3290
3291 # Set program_transform_name
3292 test "$program_prefix" != NONE &&
3293   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3294 # Use a double $ so make ignores it.
3295 test "$program_suffix" != NONE &&
3296   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3297 # Double any \ or $.
3298 # By default was `s,x,x', remove it if useless.
3299 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3300 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3301
3302
3303 # Check for bogus environment variables.
3304 # Test if LIBRARY_PATH contains the notation for the current directory
3305 # since this would lead to problems installing/building glibc.
3306 # LIBRARY_PATH contains the current directory if one of the following
3307 # is true:
3308 # - one of the terminals (":" and ";") is the first or last sign
3309 # - two terminals occur directly after each other
3310 # - the path contains an element with a dot in it
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3312 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3313 case ${LIBRARY_PATH} in
3314   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3315     library_path_setting="contains current directory"
3316     ;;
3317   *)
3318     library_path_setting="ok"
3319     ;;
3320 esac
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3322 $as_echo "$library_path_setting" >&6; }
3323 if test "$library_path_setting" != "ok"; then
3324 as_fn_error "
3325 *** LIBRARY_PATH shouldn't contain the current directory when
3326 *** building gcc. Please change the environment variable
3327 *** and run configure again." "$LINENO" 5
3328 fi
3329
3330 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3331 # since this would lead to problems installing/building glibc.
3332 # GCC_EXEC_PREFIX contains the current directory if one of the following
3333 # is true:
3334 # - one of the terminals (":" and ";") is the first or last sign
3335 # - two terminals occur directly after each other
3336 # - the path contains an element with a dot in it
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3338 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3339 case ${GCC_EXEC_PREFIX} in
3340   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3341     gcc_exec_prefix_setting="contains current directory"
3342     ;;
3343   *)
3344     gcc_exec_prefix_setting="ok"
3345     ;;
3346 esac
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3348 $as_echo "$gcc_exec_prefix_setting" >&6; }
3349 if test "$gcc_exec_prefix_setting" != "ok"; then
3350 as_fn_error "
3351 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3352 *** building gcc. Please change the environment variable
3353 *** and run configure again." "$LINENO" 5
3354 fi
3355
3356 # -----------
3357 # Directories
3358 # -----------
3359
3360 # Specify the local prefix
3361 local_prefix=
3362
3363 # Check whether --with-local-prefix was given.
3364 if test "${with_local_prefix+set}" = set; then :
3365   withval=$with_local_prefix; case "${withval}" in
3366 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3367 no)     ;;
3368 *)      local_prefix=$with_local_prefix ;;
3369 esac
3370 fi
3371
3372
3373 # Default local prefix if it is empty
3374 if test x$local_prefix = x; then
3375         local_prefix=/usr/local
3376 fi
3377
3378 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3379 # passed in by the toplevel make and thus we'd get different behavior
3380 # depending on where we built the sources.
3381 gcc_gxx_include_dir=
3382 # Specify the g++ header file directory
3383
3384 # Check whether --with-gxx-include-dir was given.
3385 if test "${with_gxx_include_dir+set}" = set; then :
3386   withval=$with_gxx_include_dir; case "${withval}" in
3387 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3388 no)     ;;
3389 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3390 esac
3391 fi
3392
3393
3394 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3395 if test x${gcc_gxx_include_dir} = x; then
3396   if test x${enable_version_specific_runtime_libs} = xyes; then
3397     gcc_gxx_include_dir='${libsubdir}/include/c++'
3398   else
3399     libstdcxx_incdir='include/c++/$(version)'
3400     if test x$host != x$target; then
3401        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3402     fi
3403     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3404   fi
3405 fi
3406
3407
3408 # Check whether --with-cpp_install_dir was given.
3409 if test "${with_cpp_install_dir+set}" = set; then :
3410   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3411   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3412 elif test x$withval != xno; then
3413   cpp_install_dir=$withval
3414 fi
3415 fi
3416
3417
3418 # We would like to our source tree to be readonly.  However when releases or
3419 # pre-releases are generated, the flex/bison generated files as well as the
3420 # various formats of manuals need to be included along with the rest of the
3421 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3422 # just that.
3423
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3425 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3426     # Check whether --enable-generated-files-in-srcdir was given.
3427 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3428   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3429 else
3430   generated_files_in_srcdir=no
3431 fi
3432
3433
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3435 $as_echo "$generated_files_in_srcdir" >&6; }
3436
3437 if test "$generated_files_in_srcdir" = "yes"; then
3438   GENINSRC=''
3439 else
3440   GENINSRC='#'
3441 fi
3442
3443
3444 # -------------------
3445 # Find default linker
3446 # -------------------
3447
3448 # With GNU ld
3449
3450 # Check whether --with-gnu-ld was given.
3451 if test "${with_gnu_ld+set}" = set; then :
3452   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3453 else
3454   gnu_ld_flag=no
3455 fi
3456
3457
3458 # With pre-defined ld
3459
3460 # Check whether --with-ld was given.
3461 if test "${with_ld+set}" = set; then :
3462   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3463 fi
3464
3465 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3466   if test ! -x "$DEFAULT_LINKER"; then
3467     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3468   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3469     gnu_ld_flag=yes
3470   fi
3471
3472 cat >>confdefs.h <<_ACEOF
3473 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3474 _ACEOF
3475
3476 fi
3477
3478 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3479
3480 cat >>confdefs.h <<_ACEOF
3481 #define HAVE_GNU_LD $gnu_ld
3482 _ACEOF
3483
3484
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3486 $as_echo_n "checking whether a default linker was specified... " >&6; }
3487 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3488   if test x"$gnu_ld_flag" = x"no"; then
3489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3490 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3491   else
3492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3493 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3494   fi
3495 else
3496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 fi
3499
3500 # With demangler in GNU ld
3501
3502 # Check whether --with-demangler-in-ld was given.
3503 if test "${with_demangler_in_ld+set}" = set; then :
3504   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3505 else
3506   demangler_in_ld=no
3507 fi
3508
3509
3510 # ----------------------
3511 # Find default assembler
3512 # ----------------------
3513
3514 # With GNU as
3515
3516 # Check whether --with-gnu-as was given.
3517 if test "${with_gnu_as+set}" = set; then :
3518   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3519 else
3520   gas_flag=no
3521 fi
3522
3523
3524
3525 # Check whether --with-as was given.
3526 if test "${with_as+set}" = set; then :
3527   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3528 fi
3529
3530 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3531   if test ! -x "$DEFAULT_ASSEMBLER"; then
3532     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3533   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3534     gas_flag=yes
3535   fi
3536
3537 cat >>confdefs.h <<_ACEOF
3538 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3539 _ACEOF
3540
3541 fi
3542
3543 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3544
3545 cat >>confdefs.h <<_ACEOF
3546 #define HAVE_GNU_AS $gnu_as
3547 _ACEOF
3548
3549
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3551 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3552 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3553   if test x"$gas_flag" = x"no"; then
3554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3555 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3556   else
3557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3558 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3559   fi
3560 else
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 fi
3564
3565 # ---------------
3566 # Find C compiler
3567 # ---------------
3568
3569 # If a non-executable a.out is present (e.g. created by GNU as above even if
3570 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3571 # file, even when creating an executable, so an execution test fails.
3572 # Remove possible default executable files to avoid this.
3573 #
3574 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3575 # Autoconf includes it.
3576 rm -f a.out a.exe b.out
3577
3578 # Find the native compiler
3579 ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 if test -n "$ac_tool_prefix"; then
3585   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3586 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590   $as_echo_n "(cached) " >&6
3591 else
3592   if test -n "$CC"; then
3593   ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598   IFS=$as_save_IFS
3599   test -z "$as_dir" && as_dir=.
3600     for ac_exec_ext in '' $ac_executable_extensions; do
3601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604     break 2
3605   fi
3606 done
3607   done
3608 IFS=$as_save_IFS
3609
3610 fi
3611 fi
3612 CC=$ac_cv_prog_CC
3613 if test -n "$CC"; then
3614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3616 else
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 fi
3620
3621
3622 fi
3623 if test -z "$ac_cv_prog_CC"; then
3624   ac_ct_CC=$CC
3625   # Extract the first word of "gcc", so it can be a program name with args.
3626 set dummy gcc; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   if test -n "$ac_ct_CC"; then
3633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640     for ac_exec_ext in '' $ac_executable_extensions; do
3641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642     ac_cv_prog_ac_ct_CC="gcc"
3643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647   done
3648 IFS=$as_save_IFS
3649
3650 fi
3651 fi
3652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3653 if test -n "$ac_ct_CC"; then
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3655 $as_echo "$ac_ct_CC" >&6; }
3656 else
3657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3659 fi
3660
3661   if test "x$ac_ct_CC" = x; then
3662     CC=""
3663   else
3664     case $cross_compiling:$ac_tool_warned in
3665 yes:)
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3668 ac_tool_warned=yes ;;
3669 esac
3670     CC=$ac_ct_CC
3671   fi
3672 else
3673   CC="$ac_cv_prog_CC"
3674 fi
3675
3676 if test -z "$CC"; then
3677           if test -n "$ac_tool_prefix"; then
3678     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}cc; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if test "${ac_cv_prog_CC+set}" = set; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685   if test -n "$CC"; then
3686   ac_cv_prog_CC="$CC" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691   IFS=$as_save_IFS
3692   test -z "$as_dir" && as_dir=.
3693     for ac_exec_ext in '' $ac_executable_extensions; do
3694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695     ac_cv_prog_CC="${ac_tool_prefix}cc"
3696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697     break 2
3698   fi
3699 done
3700   done
3701 IFS=$as_save_IFS
3702
3703 fi
3704 fi
3705 CC=$ac_cv_prog_CC
3706 if test -n "$CC"; then
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 $as_echo "$CC" >&6; }
3709 else
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3713
3714
3715   fi
3716 fi
3717 if test -z "$CC"; then
3718   # Extract the first word of "cc", so it can be a program name with args.
3719 set dummy cc; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if test "${ac_cv_prog_CC+set}" = set; then :
3723   $as_echo_n "(cached) " >&6
3724 else
3725   if test -n "$CC"; then
3726   ac_cv_prog_CC="$CC" # Let the user override the test.
3727 else
3728   ac_prog_rejected=no
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734     for ac_exec_ext in '' $ac_executable_extensions; do
3735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3737        ac_prog_rejected=yes
3738        continue
3739      fi
3740     ac_cv_prog_CC="cc"
3741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745   done
3746 IFS=$as_save_IFS
3747
3748 if test $ac_prog_rejected = yes; then
3749   # We found a bogon in the path, so make sure we never use it.
3750   set dummy $ac_cv_prog_CC
3751   shift
3752   if test $# != 0; then
3753     # We chose a different compiler from the bogus one.
3754     # However, it has the same basename, so the bogon will be chosen
3755     # first if we set CC to just the basename; use the full file name.
3756     shift
3757     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3758   fi
3759 fi
3760 fi
3761 fi
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3766 else
3767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772 fi
3773 if test -z "$CC"; then
3774   if test -n "$ac_tool_prefix"; then
3775   for ac_prog in cl.exe
3776   do
3777     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if test "${ac_cv_prog_CC+set}" = set; then :
3782   $as_echo_n "(cached) " >&6
3783 else
3784   if test -n "$CC"; then
3785   ac_cv_prog_CC="$CC" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3789 do
3790   IFS=$as_save_IFS
3791   test -z "$as_dir" && as_dir=.
3792     for ac_exec_ext in '' $ac_executable_extensions; do
3793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796     break 2
3797   fi
3798 done
3799   done
3800 IFS=$as_save_IFS
3801
3802 fi
3803 fi
3804 CC=$ac_cv_prog_CC
3805 if test -n "$CC"; then
3806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807 $as_echo "$CC" >&6; }
3808 else
3809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3811 fi
3812
3813
3814     test -n "$CC" && break
3815   done
3816 fi
3817 if test -z "$CC"; then
3818   ac_ct_CC=$CC
3819   for ac_prog in cl.exe
3820 do
3821   # Extract the first word of "$ac_prog", so it can be a program name with args.
3822 set dummy $ac_prog; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3826   $as_echo_n "(cached) " >&6
3827 else
3828   if test -n "$ac_ct_CC"; then
3829   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836     for ac_exec_ext in '' $ac_executable_extensions; do
3837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3838     ac_cv_prog_ac_ct_CC="$ac_prog"
3839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840     break 2
3841   fi
3842 done
3843   done
3844 IFS=$as_save_IFS
3845
3846 fi
3847 fi
3848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3849 if test -n "$ac_ct_CC"; then
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3851 $as_echo "$ac_ct_CC" >&6; }
3852 else
3853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3855 fi
3856
3857
3858   test -n "$ac_ct_CC" && break
3859 done
3860
3861   if test "x$ac_ct_CC" = x; then
3862     CC=""
3863   else
3864     case $cross_compiling:$ac_tool_warned in
3865 yes:)
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868 ac_tool_warned=yes ;;
3869 esac
3870     CC=$ac_ct_CC
3871   fi
3872 fi
3873
3874 fi
3875
3876
3877 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error "no acceptable C compiler found in \$PATH
3880 See \`config.log' for more details." "$LINENO" 5; }
3881
3882 # Provide some information about the compiler.
3883 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3884 set X $ac_compile
3885 ac_compiler=$2
3886 for ac_option in --version -v -V -qversion; do
3887   { { ac_try="$ac_compiler $ac_option >&5"
3888 case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3895   ac_status=$?
3896   if test -s conftest.err; then
3897     sed '10a\
3898 ... rest of stderr output deleted ...
3899          10q' conftest.err >conftest.er1
3900     cat conftest.er1 >&5
3901     rm -f conftest.er1 conftest.err
3902   fi
3903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904   test $ac_status = 0; }
3905 done
3906
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 ac_clean_files_save=$ac_clean_files
3919 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3920 # Try to create an executable without -o first, disregard a.out.
3921 # It will help us diagnose broken compilers, and finding out an intuition
3922 # of exeext.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924 $as_echo_n "checking for C compiler default output file name... " >&6; }
3925 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3926
3927 # The possible output files:
3928 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3929
3930 ac_rmfiles=
3931 for ac_file in $ac_files
3932 do
3933   case $ac_file in
3934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3936   esac
3937 done
3938 rm -f $ac_rmfiles
3939
3940 if { { ac_try="$ac_link_default"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947   (eval "$ac_link_default") 2>&5
3948   ac_status=$?
3949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950   test $ac_status = 0; }; then :
3951   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3952 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3953 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3954 # so that the user can short-circuit this test for compilers unknown to
3955 # Autoconf.
3956 for ac_file in $ac_files ''
3957 do
3958   test -f "$ac_file" || continue
3959   case $ac_file in
3960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3961         ;;
3962     [ab].out )
3963         # We found the default executable, but exeext='' is most
3964         # certainly right.
3965         break;;
3966     *.* )
3967         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3968         then :; else
3969            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3970         fi
3971         # We set ac_cv_exeext here because the later test for it is not
3972         # safe: cross compilers may not add the suffix if given an `-o'
3973         # argument, so we may need to know it at that point already.
3974         # Even if this section looks crufty: it has the advantage of
3975         # actually working.
3976         break;;
3977     * )
3978         break;;
3979   esac
3980 done
3981 test "$ac_cv_exeext" = no && ac_cv_exeext=
3982
3983 else
3984   ac_file=''
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987 $as_echo "$ac_file" >&6; }
3988 if test -z "$ac_file"; then :
3989   $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 { as_fn_set_status 77
3995 as_fn_error "C compiler cannot create executables
3996 See \`config.log' for more details." "$LINENO" 5; }; }
3997 fi
3998 ac_exeext=$ac_cv_exeext
3999
4000 # Check that the compiler produces executables we can run.  If not, either
4001 # the compiler is broken, or we cross compile.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4003 $as_echo_n "checking whether the C compiler works... " >&6; }
4004 # If not cross compiling, check that we can run a simple program.
4005 if test "$cross_compiling" != yes; then
4006   if { ac_try='./$ac_file'
4007   { { case "(($ac_try" in
4008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009   *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013   (eval "$ac_try") 2>&5
4014   ac_status=$?
4015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016   test $ac_status = 0; }; }; then
4017     cross_compiling=no
4018   else
4019     if test "$cross_compiling" = maybe; then
4020         cross_compiling=yes
4021     else
4022         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error "cannot run C compiled programs.
4025 If you meant to cross compile, use \`--host'.
4026 See \`config.log' for more details." "$LINENO" 5; }
4027     fi
4028   fi
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031 $as_echo "yes" >&6; }
4032
4033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4034 ac_clean_files=$ac_clean_files_save
4035 # Check that the compiler produces executables we can run.  If not, either
4036 # the compiler is broken, or we cross compile.
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4038 $as_echo_n "checking whether we are cross compiling... " >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4040 $as_echo "$cross_compiling" >&6; }
4041
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4043 $as_echo_n "checking for suffix of executables... " >&6; }
4044 if { { ac_try="$ac_link"
4045 case "(($ac_try" in
4046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047   *) ac_try_echo=$ac_try;;
4048 esac
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051   (eval "$ac_link") 2>&5
4052   ac_status=$?
4053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054   test $ac_status = 0; }; then :
4055   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4057 # work properly (i.e., refer to `conftest.exe'), while it won't with
4058 # `rm'.
4059 for ac_file in conftest.exe conftest conftest.*; do
4060   test -f "$ac_file" || continue
4061   case $ac_file in
4062     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4064           break;;
4065     * ) break;;
4066   esac
4067 done
4068 else
4069   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of executables: cannot compile and link
4072 See \`config.log' for more details." "$LINENO" 5; }
4073 fi
4074 rm -f conftest$ac_cv_exeext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076 $as_echo "$ac_cv_exeext" >&6; }
4077
4078 rm -f conftest.$ac_ext
4079 EXEEXT=$ac_cv_exeext
4080 ac_exeext=$EXEEXT
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4082 $as_echo_n "checking for suffix of object files... " >&6; }
4083 if test "${ac_cv_objext+set}" = set; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h.  */
4088
4089 int
4090 main ()
4091 {
4092
4093   ;
4094   return 0;
4095 }
4096 _ACEOF
4097 rm -f conftest.o conftest.obj
4098 if { { ac_try="$ac_compile"
4099 case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105   (eval "$ac_compile") 2>&5
4106   ac_status=$?
4107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108   test $ac_status = 0; }; then :
4109   for ac_file in conftest.o conftest.obj conftest.*; do
4110   test -f "$ac_file" || continue;
4111   case $ac_file in
4112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4113     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4114        break;;
4115   esac
4116 done
4117 else
4118   $as_echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4123 as_fn_error "cannot compute suffix of object files: cannot compile
4124 See \`config.log' for more details." "$LINENO" 5; }
4125 fi
4126 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4129 $as_echo "$ac_cv_objext" >&6; }
4130 OBJEXT=$ac_cv_objext
4131 ac_objext=$OBJEXT
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4133 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4134 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h.  */
4139
4140 int
4141 main ()
4142 {
4143 #ifndef __GNUC__
4144        choke me
4145 #endif
4146
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152   ac_compiler_gnu=yes
4153 else
4154   ac_compiler_gnu=no
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4158
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4161 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4162 if test $ac_compiler_gnu = yes; then
4163   GCC=yes
4164 else
4165   GCC=
4166 fi
4167 ac_test_CFLAGS=${CFLAGS+set}
4168 ac_save_CFLAGS=$CFLAGS
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4170 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4171 if test "${ac_cv_prog_cc_g+set}" = set; then :
4172   $as_echo_n "(cached) " >&6
4173 else
4174   ac_save_c_werror_flag=$ac_c_werror_flag
4175    ac_c_werror_flag=yes
4176    ac_cv_prog_cc_g=no
4177    CFLAGS="-g"
4178    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h.  */
4180
4181 int
4182 main ()
4183 {
4184
4185   ;
4186   return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190   ac_cv_prog_cc_g=yes
4191 else
4192   CFLAGS=""
4193       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h.  */
4195
4196 int
4197 main ()
4198 {
4199
4200   ;
4201   return 0;
4202 }
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205
4206 else
4207   ac_c_werror_flag=$ac_save_c_werror_flag
4208          CFLAGS="-g"
4209          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h.  */
4211
4212 int
4213 main ()
4214 {
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221   ac_cv_prog_cc_g=yes
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228    ac_c_werror_flag=$ac_save_c_werror_flag
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4231 $as_echo "$ac_cv_prog_cc_g" >&6; }
4232 if test "$ac_test_CFLAGS" = set; then
4233   CFLAGS=$ac_save_CFLAGS
4234 elif test $ac_cv_prog_cc_g = yes; then
4235   if test "$GCC" = yes; then
4236     CFLAGS="-g -O2"
4237   else
4238     CFLAGS="-g"
4239   fi
4240 else
4241   if test "$GCC" = yes; then
4242     CFLAGS="-O2"
4243   else
4244     CFLAGS=
4245   fi
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4249 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252   ac_cv_prog_cc_c89=no
4253 ac_save_CC=$CC
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256 #include <stdarg.h>
4257 #include <stdio.h>
4258 #include <sys/types.h>
4259 #include <sys/stat.h>
4260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4261 struct buf { int x; };
4262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4263 static char *e (p, i)
4264      char **p;
4265      int i;
4266 {
4267   return p[i];
4268 }
4269 static char *f (char * (*g) (char **, int), char **p, ...)
4270 {
4271   char *s;
4272   va_list v;
4273   va_start (v,p);
4274   s = g (p, va_arg (v,int));
4275   va_end (v);
4276   return s;
4277 }
4278
4279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4280    function prototypes and stuff, but not '\xHH' hex character constants.
4281    These don't provoke an error unfortunately, instead are silently treated
4282    as 'x'.  The following induces an error, until -std is added to get
4283    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4284    array size at least.  It's necessary to write '\x00'==0 to get something
4285    that's true only with -std.  */
4286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4287
4288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4289    inside strings and character constants.  */
4290 #define FOO(x) 'x'
4291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4292
4293 int test (int i, double x);
4294 struct s1 {int (*f) (int a);};
4295 struct s2 {int (*f) (double a);};
4296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4297 int argc;
4298 char **argv;
4299 int
4300 main ()
4301 {
4302 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4308         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4309 do
4310   CC="$ac_save_CC $ac_arg"
4311   if ac_fn_c_try_compile "$LINENO"; then :
4312   ac_cv_prog_cc_c89=$ac_arg
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext
4315   test "x$ac_cv_prog_cc_c89" != "xno" && break
4316 done
4317 rm -f conftest.$ac_ext
4318 CC=$ac_save_CC
4319
4320 fi
4321 # AC_CACHE_VAL
4322 case "x$ac_cv_prog_cc_c89" in
4323   x)
4324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4325 $as_echo "none needed" >&6; } ;;
4326   xno)
4327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 $as_echo "unsupported" >&6; } ;;
4329   *)
4330     CC="$CC $ac_cv_prog_cc_c89"
4331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4333 esac
4334 if test "x$ac_cv_prog_cc_c89" != xno; then :
4335
4336 fi
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344 if test "x$CC" != xcc; then
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4346 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4347 else
4348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4349 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4350 fi
4351 set dummy $CC; ac_cc=`$as_echo "$2" |
4352                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4353 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4354   $as_echo_n "(cached) " >&6
4355 else
4356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h.  */
4358
4359 int
4360 main ()
4361 {
4362
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 # Make sure it works both with $CC and with simple cc.
4368 # We do the test twice because some compilers refuse to overwrite an
4369 # existing .o file with -o, though they will create one.
4370 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4371 rm -f conftest2.*
4372 if { { case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378   (eval "$ac_try") 2>&5
4379   ac_status=$?
4380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381   test $ac_status = 0; } &&
4382    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388   (eval "$ac_try") 2>&5
4389   ac_status=$?
4390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391   test $ac_status = 0; };
4392 then
4393   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4394   if test "x$CC" != xcc; then
4395     # Test first that cc exists at all.
4396     if { ac_try='cc -c conftest.$ac_ext >&5'
4397   { { case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406   test $ac_status = 0; }; }; then
4407       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4408       rm -f conftest2.*
4409       if { { case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415   (eval "$ac_try") 2>&5
4416   ac_status=$?
4417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418   test $ac_status = 0; } &&
4419          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425   (eval "$ac_try") 2>&5
4426   ac_status=$?
4427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428   test $ac_status = 0; };
4429       then
4430         # cc works too.
4431         :
4432       else
4433         # cc exists but doesn't like -o.
4434         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4435       fi
4436     fi
4437   fi
4438 else
4439   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4440 fi
4441 rm -f core conftest*
4442
4443 fi
4444 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4446 $as_echo "yes" >&6; }
4447 else
4448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450
4451 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4452
4453 fi
4454
4455 # expand $ac_aux_dir to an absolute path
4456 am_aux_dir=`cd $ac_aux_dir && pwd`
4457
4458 # FIXME: we rely on the cache variable name because
4459 # there is no other way.
4460 set dummy $CC
4461 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4462 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4463 if test "$am_t" != yes; then
4464    # Losing compiler, so override with the script.
4465    # FIXME: It is wrong to rewrite CC.
4466    # But if we don't then we get into trouble of one sort or another.
4467    # A longer-term fix would be to have automake use am__CC in this case,
4468    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4469    CC="$am_aux_dir/compile $CC"
4470 fi
4471
4472
4473 ac_ext=cpp
4474 ac_cpp='$CXXCPP $CPPFLAGS'
4475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4478 if test -z "$CXX"; then
4479   if test -n "$CCC"; then
4480     CXX=$CCC
4481   else
4482     if test -n "$ac_tool_prefix"; then
4483   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4484   do
4485     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if test "${ac_cv_prog_CXX+set}" = set; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492   if test -n "$CXX"; then
4493   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498   IFS=$as_save_IFS
4499   test -z "$as_dir" && as_dir=.
4500     for ac_exec_ext in '' $ac_executable_extensions; do
4501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504     break 2
4505   fi
4506 done
4507   done
4508 IFS=$as_save_IFS
4509
4510 fi
4511 fi
4512 CXX=$ac_cv_prog_CXX
4513 if test -n "$CXX"; then
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4515 $as_echo "$CXX" >&6; }
4516 else
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4519 fi
4520
4521
4522     test -n "$CXX" && break
4523   done
4524 fi
4525 if test -z "$CXX"; then
4526   ac_ct_CXX=$CXX
4527   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4528 do
4529   # Extract the first word of "$ac_prog", so it can be a program name with args.
4530 set dummy $ac_prog; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   if test -n "$ac_ct_CXX"; then
4537   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544     for ac_exec_ext in '' $ac_executable_extensions; do
4545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546     ac_cv_prog_ac_ct_CXX="$ac_prog"
4547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551   done
4552 IFS=$as_save_IFS
4553
4554 fi
4555 fi
4556 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4557 if test -n "$ac_ct_CXX"; then
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4559 $as_echo "$ac_ct_CXX" >&6; }
4560 else
4561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4563 fi
4564
4565
4566   test -n "$ac_ct_CXX" && break
4567 done
4568
4569   if test "x$ac_ct_CXX" = x; then
4570     CXX="g++"
4571   else
4572     case $cross_compiling:$ac_tool_warned in
4573 yes:)
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4576 ac_tool_warned=yes ;;
4577 esac
4578     CXX=$ac_ct_CXX
4579   fi
4580 fi
4581
4582   fi
4583 fi
4584 # Provide some information about the compiler.
4585 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4586 set X $ac_compile
4587 ac_compiler=$2
4588 for ac_option in --version -v -V -qversion; do
4589   { { ac_try="$ac_compiler $ac_option >&5"
4590 case "(($ac_try" in
4591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592   *) ac_try_echo=$ac_try;;
4593 esac
4594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595 $as_echo "$ac_try_echo"; } >&5
4596   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4597   ac_status=$?
4598   if test -s conftest.err; then
4599     sed '10a\
4600 ... rest of stderr output deleted ...
4601          10q' conftest.err >conftest.er1
4602     cat conftest.er1 >&5
4603     rm -f conftest.er1 conftest.err
4604   fi
4605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4606   test $ac_status = 0; }
4607 done
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4610 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4611 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h.  */
4616
4617 int
4618 main ()
4619 {
4620 #ifndef __GNUC__
4621        choke me
4622 #endif
4623
4624   ;
4625   return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_cxx_try_compile "$LINENO"; then :
4629   ac_compiler_gnu=yes
4630 else
4631   ac_compiler_gnu=no
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4635
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4638 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4639 if test $ac_compiler_gnu = yes; then
4640   GXX=yes
4641 else
4642   GXX=
4643 fi
4644 ac_test_CXXFLAGS=${CXXFLAGS+set}
4645 ac_save_CXXFLAGS=$CXXFLAGS
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4647 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4648 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4652    ac_cxx_werror_flag=yes
4653    ac_cv_prog_cxx_g=no
4654    CXXFLAGS="-g"
4655    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h.  */
4657
4658 int
4659 main ()
4660 {
4661
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_cxx_try_compile "$LINENO"; then :
4667   ac_cv_prog_cxx_g=yes
4668 else
4669   CXXFLAGS=""
4670       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h.  */
4672
4673 int
4674 main ()
4675 {
4676
4677   ;
4678   return 0;
4679 }
4680 _ACEOF
4681 if ac_fn_cxx_try_compile "$LINENO"; then :
4682
4683 else
4684   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4685          CXXFLAGS="-g"
4686          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h.  */
4688
4689 int
4690 main ()
4691 {
4692
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 if ac_fn_cxx_try_compile "$LINENO"; then :
4698   ac_cv_prog_cxx_g=yes
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4708 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4709 if test "$ac_test_CXXFLAGS" = set; then
4710   CXXFLAGS=$ac_save_CXXFLAGS
4711 elif test $ac_cv_prog_cxx_g = yes; then
4712   if test "$GXX" = yes; then
4713     CXXFLAGS="-g -O2"
4714   else
4715     CXXFLAGS="-g"
4716   fi
4717 else
4718   if test "$GXX" = yes; then
4719     CXXFLAGS="-O2"
4720   else
4721     CXXFLAGS=
4722   fi
4723 fi
4724 ac_ext=c
4725 ac_cpp='$CPP $CPPFLAGS'
4726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4729
4730
4731
4732
4733 if test -n "$ac_tool_prefix"; then
4734   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -n "$GNATBIND"; then
4742   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_exec_ext in '' $ac_executable_extensions; do
4750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756   done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 GNATBIND=$ac_cv_prog_GNATBIND
4762 if test -n "$GNATBIND"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4764 $as_echo "$GNATBIND" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771 fi
4772 if test -z "$ac_cv_prog_GNATBIND"; then
4773   ac_ct_GNATBIND=$GNATBIND
4774   # Extract the first word of "gnatbind", so it can be a program name with args.
4775 set dummy gnatbind; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   if test -n "$ac_ct_GNATBIND"; then
4782   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789     for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793     break 2
4794   fi
4795 done
4796   done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4802 if test -n "$ac_ct_GNATBIND"; then
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4804 $as_echo "$ac_ct_GNATBIND" >&6; }
4805 else
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810   if test "x$ac_ct_GNATBIND" = x; then
4811     GNATBIND="no"
4812   else
4813     case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819     GNATBIND=$ac_ct_GNATBIND
4820   fi
4821 else
4822   GNATBIND="$ac_cv_prog_GNATBIND"
4823 fi
4824
4825 if test -n "$ac_tool_prefix"; then
4826   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   if test -n "$GNATMAKE"; then
4834   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841     for ac_exec_ext in '' $ac_executable_extensions; do
4842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845     break 2
4846   fi
4847 done
4848   done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 GNATMAKE=$ac_cv_prog_GNATMAKE
4854 if test -n "$GNATMAKE"; then
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4856 $as_echo "$GNATMAKE" >&6; }
4857 else
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862
4863 fi
4864 if test -z "$ac_cv_prog_GNATMAKE"; then
4865   ac_ct_GNATMAKE=$GNATMAKE
4866   # Extract the first word of "gnatmake", so it can be a program name with args.
4867 set dummy gnatmake; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   if test -n "$ac_ct_GNATMAKE"; then
4874   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881     for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888   done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4894 if test -n "$ac_ct_GNATMAKE"; then
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4896 $as_echo "$ac_ct_GNATMAKE" >&6; }
4897 else
4898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902   if test "x$ac_ct_GNATMAKE" = x; then
4903     GNATMAKE="no"
4904   else
4905     case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911     GNATMAKE=$ac_ct_GNATMAKE
4912   fi
4913 else
4914   GNATMAKE="$ac_cv_prog_GNATMAKE"
4915 fi
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4918 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4919 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   cat >conftest.adb <<EOF
4923 procedure conftest is begin null; end conftest;
4924 EOF
4925 acx_cv_cc_gcc_supports_ada=no
4926 # There is a bug in old released versions of GCC which causes the
4927 # driver to exit successfully when the appropriate language module
4928 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4929 # Therefore we must check for the error message as well as an
4930 # unsuccessful exit.
4931 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4932 # given a .adb file, but produce no object file.  So we must check
4933 # if an object file was really produced to guard against this.
4934 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4935 if test x"$errors" = x && test -f conftest.$ac_objext; then
4936   acx_cv_cc_gcc_supports_ada=yes
4937 fi
4938 rm -f conftest.*
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4941 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4942
4943 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4944   have_gnat=yes
4945 else
4946   have_gnat=no
4947 fi
4948
4949
4950 # autoconf is lame and doesn't give us any substitution variable for this.
4951 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4952   NO_MINUS_C_MINUS_O=yes
4953 else
4954   OUTPUT_OPTION='-o $@'
4955 fi
4956
4957
4958
4959 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4960 # optimizations to be activated explicitly by the toplevel.
4961 case "$CC" in
4962   */prev-gcc/xgcc*) ;;
4963   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4964 esac
4965
4966
4967 # -------------------------
4968 # Check C compiler features
4969 # -------------------------
4970
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4978 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4979 # On Suns, sometimes $CPP names a directory.
4980 if test -n "$CPP" && test -d "$CPP"; then
4981   CPP=
4982 fi
4983 if test -z "$CPP"; then
4984   if test "${ac_cv_prog_CPP+set}" = set; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987       # Double quotes because CPP needs to be expanded
4988     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4989     do
4990       ac_preproc_ok=false
4991 for ac_c_preproc_warn_flag in '' yes
4992 do
4993   # Use a header file that comes with gcc, so configuring glibc
4994   # with a fresh cross-compiler works.
4995   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996   # <limits.h> exists even on freestanding compilers.
4997   # On the NeXT, cc -E runs the code through the compiler's parser,
4998   # not just through cpp. "Syntax error" is here to catch this case.
4999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h.  */
5001 #ifdef __STDC__
5002 # include <limits.h>
5003 #else
5004 # include <assert.h>
5005 #endif
5006                      Syntax error
5007 _ACEOF
5008 if ac_fn_c_try_cpp "$LINENO"; then :
5009
5010 else
5011   # Broken: fails on valid input.
5012 continue
5013 fi
5014 rm -f conftest.err conftest.$ac_ext
5015
5016   # OK, works on sane cases.  Now check whether nonexistent headers
5017   # can be detected and how.
5018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h.  */
5020 #include <ac_nonexistent.h>
5021 _ACEOF
5022 if ac_fn_c_try_cpp "$LINENO"; then :
5023   # Broken: success on invalid input.
5024 continue
5025 else
5026   # Passes both tests.
5027 ac_preproc_ok=:
5028 break
5029 fi
5030 rm -f conftest.err conftest.$ac_ext
5031
5032 done
5033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034 rm -f conftest.err conftest.$ac_ext
5035 if $ac_preproc_ok; then :
5036   break
5037 fi
5038
5039     done
5040     ac_cv_prog_CPP=$CPP
5041
5042 fi
5043   CPP=$ac_cv_prog_CPP
5044 else
5045   ac_cv_prog_CPP=$CPP
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5048 $as_echo "$CPP" >&6; }
5049 ac_preproc_ok=false
5050 for ac_c_preproc_warn_flag in '' yes
5051 do
5052   # Use a header file that comes with gcc, so configuring glibc
5053   # with a fresh cross-compiler works.
5054   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055   # <limits.h> exists even on freestanding compilers.
5056   # On the NeXT, cc -E runs the code through the compiler's parser,
5057   # not just through cpp. "Syntax error" is here to catch this case.
5058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h.  */
5060 #ifdef __STDC__
5061 # include <limits.h>
5062 #else
5063 # include <assert.h>
5064 #endif
5065                      Syntax error
5066 _ACEOF
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5068
5069 else
5070   # Broken: fails on valid input.
5071 continue
5072 fi
5073 rm -f conftest.err conftest.$ac_ext
5074
5075   # OK, works on sane cases.  Now check whether nonexistent headers
5076   # can be detected and how.
5077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h.  */
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if ac_fn_c_try_cpp "$LINENO"; then :
5082   # Broken: success on invalid input.
5083 continue
5084 else
5085   # Passes both tests.
5086 ac_preproc_ok=:
5087 break
5088 fi
5089 rm -f conftest.err conftest.$ac_ext
5090
5091 done
5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093 rm -f conftest.err conftest.$ac_ext
5094 if $ac_preproc_ok; then :
5095
5096 else
5097   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5099 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5100 See \`config.log' for more details." "$LINENO" 5; }
5101 fi
5102
5103 ac_ext=c
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108
5109
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5111 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5112 if test "${ac_cv_path_GREP+set}" = set; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   if test -z "$GREP"; then
5116   ac_path_GREP_found=false
5117   # Loop through the user's path and test for each of PROGNAME-LIST
5118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123     for ac_prog in grep ggrep; do
5124     for ac_exec_ext in '' $ac_executable_extensions; do
5125       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5126       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5127 # Check for GNU ac_path_GREP and select it if it is found.
5128   # Check for GNU $ac_path_GREP
5129 case `"$ac_path_GREP" --version 2>&1` in
5130 *GNU*)
5131   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5132 *)
5133   ac_count=0
5134   $as_echo_n 0123456789 >"conftest.in"
5135   while :
5136   do
5137     cat "conftest.in" "conftest.in" >"conftest.tmp"
5138     mv "conftest.tmp" "conftest.in"
5139     cp "conftest.in" "conftest.nl"
5140     $as_echo 'GREP' >> "conftest.nl"
5141     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143     as_fn_arith $ac_count + 1 && ac_count=$as_val
5144     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5145       # Best one so far, save it but keep looking for a better one
5146       ac_cv_path_GREP="$ac_path_GREP"
5147       ac_path_GREP_max=$ac_count
5148     fi
5149     # 10*(2^10) chars as input seems more than enough
5150     test $ac_count -gt 10 && break
5151   done
5152   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 esac
5154
5155       $ac_path_GREP_found && break 3
5156     done
5157   done
5158   done
5159 IFS=$as_save_IFS
5160   if test -z "$ac_cv_path_GREP"; then
5161     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162   fi
5163 else
5164   ac_cv_path_GREP=$GREP
5165 fi
5166
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5169 $as_echo "$ac_cv_path_GREP" >&6; }
5170  GREP="$ac_cv_path_GREP"
5171
5172
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5174 $as_echo_n "checking for egrep... " >&6; }
5175 if test "${ac_cv_path_EGREP+set}" = set; then :
5176   $as_echo_n "(cached) " >&6
5177 else
5178   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5179    then ac_cv_path_EGREP="$GREP -E"
5180    else
5181      if test -z "$EGREP"; then
5182   ac_path_EGREP_found=false
5183   # Loop through the user's path and test for each of PROGNAME-LIST
5184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186 do
5187   IFS=$as_save_IFS
5188   test -z "$as_dir" && as_dir=.
5189     for ac_prog in egrep; do
5190     for ac_exec_ext in '' $ac_executable_extensions; do
5191       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5192       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5193 # Check for GNU ac_path_EGREP and select it if it is found.
5194   # Check for GNU $ac_path_EGREP
5195 case `"$ac_path_EGREP" --version 2>&1` in
5196 *GNU*)
5197   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5198 *)
5199   ac_count=0
5200   $as_echo_n 0123456789 >"conftest.in"
5201   while :
5202   do
5203     cat "conftest.in" "conftest.in" >"conftest.tmp"
5204     mv "conftest.tmp" "conftest.in"
5205     cp "conftest.in" "conftest.nl"
5206     $as_echo 'EGREP' >> "conftest.nl"
5207     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5208     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5209     as_fn_arith $ac_count + 1 && ac_count=$as_val
5210     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5211       # Best one so far, save it but keep looking for a better one
5212       ac_cv_path_EGREP="$ac_path_EGREP"
5213       ac_path_EGREP_max=$ac_count
5214     fi
5215     # 10*(2^10) chars as input seems more than enough
5216     test $ac_count -gt 10 && break
5217   done
5218   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5219 esac
5220
5221       $ac_path_EGREP_found && break 3
5222     done
5223   done
5224   done
5225 IFS=$as_save_IFS
5226   if test -z "$ac_cv_path_EGREP"; then
5227     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5228   fi
5229 else
5230   ac_cv_path_EGREP=$EGREP
5231 fi
5232
5233    fi
5234 fi
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5236 $as_echo "$ac_cv_path_EGREP" >&6; }
5237  EGREP="$ac_cv_path_EGREP"
5238
5239
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5241 $as_echo_n "checking for ANSI C header files... " >&6; }
5242 if test "${ac_cv_header_stdc+set}" = set; then :
5243   $as_echo_n "(cached) " >&6
5244 else
5245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h.  */
5247 #include <stdlib.h>
5248 #include <stdarg.h>
5249 #include <string.h>
5250 #include <float.h>
5251
5252 int
5253 main ()
5254 {
5255
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261   ac_cv_header_stdc=yes
5262 else
5263   ac_cv_header_stdc=no
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266
5267 if test $ac_cv_header_stdc = yes; then
5268   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h.  */
5271 #include <string.h>
5272
5273 _ACEOF
5274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5275   $EGREP "memchr" >/dev/null 2>&1; then :
5276
5277 else
5278   ac_cv_header_stdc=no
5279 fi
5280 rm -f conftest*
5281
5282 fi
5283
5284 if test $ac_cv_header_stdc = yes; then
5285   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h.  */
5288 #include <stdlib.h>
5289
5290 _ACEOF
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292   $EGREP "free" >/dev/null 2>&1; then :
5293
5294 else
5295   ac_cv_header_stdc=no
5296 fi
5297 rm -f conftest*
5298
5299 fi
5300
5301 if test $ac_cv_header_stdc = yes; then
5302   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5303   if test "$cross_compiling" = yes; then :
5304   :
5305 else
5306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h.  */
5308 #include <ctype.h>
5309 #include <stdlib.h>
5310 #if ((' ' & 0x0FF) == 0x020)
5311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5313 #else
5314 # define ISLOWER(c) \
5315                    (('a' <= (c) && (c) <= 'i') \
5316                      || ('j' <= (c) && (c) <= 'r') \
5317                      || ('s' <= (c) && (c) <= 'z'))
5318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5319 #endif
5320
5321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5322 int
5323 main ()
5324 {
5325   int i;
5326   for (i = 0; i < 256; i++)
5327     if (XOR (islower (i), ISLOWER (i))
5328         || toupper (i) != TOUPPER (i))
5329       return 2;
5330   return 0;
5331 }
5332 _ACEOF
5333 if ac_fn_c_try_run "$LINENO"; then :
5334
5335 else
5336   ac_cv_header_stdc=no
5337 fi
5338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5339   conftest.$ac_objext conftest.beam conftest.$ac_ext
5340 fi
5341
5342 fi
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5345 $as_echo "$ac_cv_header_stdc" >&6; }
5346 if test $ac_cv_header_stdc = yes; then
5347
5348 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5349
5350 fi
5351
5352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5354                   inttypes.h stdint.h unistd.h
5355 do :
5356   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5357 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5358 "
5359 eval as_val=\$$as_ac_Header
5360    if test "x$as_val" = x""yes; then :
5361   cat >>confdefs.h <<_ACEOF
5362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5363 _ACEOF
5364
5365 fi
5366
5367 done
5368
5369
5370
5371   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5372 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5373   MINIX=yes
5374 else
5375   MINIX=
5376 fi
5377
5378
5379   if test "$MINIX" = yes; then
5380
5381 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5382
5383
5384 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5385
5386
5387 $as_echo "#define _MINIX 1" >>confdefs.h
5388
5389   fi
5390
5391
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5393 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5394 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h.  */
5399
5400 #         define __EXTENSIONS__ 1
5401           $ac_includes_default
5402 int
5403 main ()
5404 {
5405
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411   ac_cv_safe_to_define___extensions__=yes
5412 else
5413   ac_cv_safe_to_define___extensions__=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5418 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5419   test $ac_cv_safe_to_define___extensions__ = yes &&
5420     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5421
5422   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5423
5424   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5425
5426   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5427
5428   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5429
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5437 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5438 # On Suns, sometimes $CPP names a directory.
5439 if test -n "$CPP" && test -d "$CPP"; then
5440   CPP=
5441 fi
5442 if test -z "$CPP"; then
5443   if test "${ac_cv_prog_CPP+set}" = set; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446       # Double quotes because CPP needs to be expanded
5447     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5448     do
5449       ac_preproc_ok=false
5450 for ac_c_preproc_warn_flag in '' yes
5451 do
5452   # Use a header file that comes with gcc, so configuring glibc
5453   # with a fresh cross-compiler works.
5454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5455   # <limits.h> exists even on freestanding compilers.
5456   # On the NeXT, cc -E runs the code through the compiler's parser,
5457   # not just through cpp. "Syntax error" is here to catch this case.
5458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h.  */
5460 #ifdef __STDC__
5461 # include <limits.h>
5462 #else
5463 # include <assert.h>
5464 #endif
5465                      Syntax error
5466 _ACEOF
5467 if ac_fn_c_try_cpp "$LINENO"; then :
5468
5469 else
5470   # Broken: fails on valid input.
5471 continue
5472 fi
5473 rm -f conftest.err conftest.$ac_ext
5474
5475   # OK, works on sane cases.  Now check whether nonexistent headers
5476   # can be detected and how.
5477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h.  */
5479 #include <ac_nonexistent.h>
5480 _ACEOF
5481 if ac_fn_c_try_cpp "$LINENO"; then :
5482   # Broken: success on invalid input.
5483 continue
5484 else
5485   # Passes both tests.
5486 ac_preproc_ok=:
5487 break
5488 fi
5489 rm -f conftest.err conftest.$ac_ext
5490
5491 done
5492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493 rm -f conftest.err conftest.$ac_ext
5494 if $ac_preproc_ok; then :
5495   break
5496 fi
5497
5498     done
5499     ac_cv_prog_CPP=$CPP
5500
5501 fi
5502   CPP=$ac_cv_prog_CPP
5503 else
5504   ac_cv_prog_CPP=$CPP
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5507 $as_echo "$CPP" >&6; }
5508 ac_preproc_ok=false
5509 for ac_c_preproc_warn_flag in '' yes
5510 do
5511   # Use a header file that comes with gcc, so configuring glibc
5512   # with a fresh cross-compiler works.
5513   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514   # <limits.h> exists even on freestanding compilers.
5515   # On the NeXT, cc -E runs the code through the compiler's parser,
5516   # not just through cpp. "Syntax error" is here to catch this case.
5517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h.  */
5519 #ifdef __STDC__
5520 # include <limits.h>
5521 #else
5522 # include <assert.h>
5523 #endif
5524                      Syntax error
5525 _ACEOF
5526 if ac_fn_c_try_cpp "$LINENO"; then :
5527
5528 else
5529   # Broken: fails on valid input.
5530 continue
5531 fi
5532 rm -f conftest.err conftest.$ac_ext
5533
5534   # OK, works on sane cases.  Now check whether nonexistent headers
5535   # can be detected and how.
5536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h.  */
5538 #include <ac_nonexistent.h>
5539 _ACEOF
5540 if ac_fn_c_try_cpp "$LINENO"; then :
5541   # Broken: success on invalid input.
5542 continue
5543 else
5544   # Passes both tests.
5545 ac_preproc_ok=:
5546 break
5547 fi
5548 rm -f conftest.err conftest.$ac_ext
5549
5550 done
5551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5552 rm -f conftest.err conftest.$ac_ext
5553 if $ac_preproc_ok; then :
5554
5555 else
5556   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5558 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5559 See \`config.log' for more details." "$LINENO" 5; }
5560 fi
5561
5562 ac_ext=c
5563 ac_cpp='$CPP $CPPFLAGS'
5564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5569 $as_echo_n "checking for inline... " >&6; }
5570 if test "${ac_cv_c_inline+set}" = set; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   ac_cv_c_inline=no
5574 for ac_kw in inline __inline__ __inline; do
5575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h.  */
5577 #ifndef __cplusplus
5578 typedef int foo_t;
5579 static $ac_kw foo_t static_foo () {return 0; }
5580 $ac_kw foo_t foo () {return 0; }
5581 #endif
5582
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585   ac_cv_c_inline=$ac_kw
5586 fi
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588   test "$ac_cv_c_inline" != no && break
5589 done
5590
5591 fi
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5593 $as_echo "$ac_cv_c_inline" >&6; }
5594
5595 case $ac_cv_c_inline in
5596   inline | yes) ;;
5597   *)
5598     case $ac_cv_c_inline in
5599       no) ac_val=;;
5600       *) ac_val=$ac_cv_c_inline;;
5601     esac
5602     cat >>confdefs.h <<_ACEOF
5603 #ifndef __cplusplus
5604 #define inline $ac_val
5605 #endif
5606 _ACEOF
5607     ;;
5608 esac
5609
5610
5611 # sizeof(char) is 1 by definition.
5612 # The cast to long int works around a bug in the HP C Compiler
5613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5615 # This bug is HP SR number 8606223364.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5617 $as_echo_n "checking size of void *... " >&6; }
5618 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5622
5623 else
5624   if test "$ac_cv_type_void_p" = yes; then
5625      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5627 { as_fn_set_status 77
5628 as_fn_error "cannot compute sizeof (void *)
5629 See \`config.log' for more details." "$LINENO" 5; }; }
5630    else
5631      ac_cv_sizeof_void_p=0
5632    fi
5633 fi
5634
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5637 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5638
5639
5640
5641 cat >>confdefs.h <<_ACEOF
5642 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5643 _ACEOF
5644
5645
5646 # The cast to long int works around a bug in the HP C Compiler
5647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5649 # This bug is HP SR number 8606223364.
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5651 $as_echo_n "checking size of short... " >&6; }
5652 if test "${ac_cv_sizeof_short+set}" = set; then :
5653   $as_echo_n "(cached) " >&6
5654 else
5655   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5656
5657 else
5658   if test "$ac_cv_type_short" = yes; then
5659      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5661 { as_fn_set_status 77
5662 as_fn_error "cannot compute sizeof (short)
5663 See \`config.log' for more details." "$LINENO" 5; }; }
5664    else
5665      ac_cv_sizeof_short=0
5666    fi
5667 fi
5668
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5671 $as_echo "$ac_cv_sizeof_short" >&6; }
5672
5673
5674
5675 cat >>confdefs.h <<_ACEOF
5676 #define SIZEOF_SHORT $ac_cv_sizeof_short
5677 _ACEOF
5678
5679
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 int" >&5
5685 $as_echo_n "checking size of int... " >&6; }
5686 if test "${ac_cv_sizeof_int+set}" = set; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5690
5691 else
5692   if test "$ac_cv_type_int" = 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 (int)
5697 See \`config.log' for more details." "$LINENO" 5; }; }
5698    else
5699      ac_cv_sizeof_int=0
5700    fi
5701 fi
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5705 $as_echo "$ac_cv_sizeof_int" >&6; }
5706
5707
5708
5709 cat >>confdefs.h <<_ACEOF
5710 #define SIZEOF_INT $ac_cv_sizeof_int
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 long" >&5
5719 $as_echo_n "checking size of long... " >&6; }
5720 if test "${ac_cv_sizeof_long+set}" = set; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5724
5725 else
5726   if test "$ac_cv_type_long" = 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 (long)
5731 See \`config.log' for more details." "$LINENO" 5; }; }
5732    else
5733      ac_cv_sizeof_long=0
5734    fi
5735 fi
5736
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5739 $as_echo "$ac_cv_sizeof_long" >&6; }
5740
5741
5742
5743 cat >>confdefs.h <<_ACEOF
5744 #define SIZEOF_LONG $ac_cv_sizeof_long
5745 _ACEOF
5746
5747
5748 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5749 if test "x$ac_cv_type_long_long" = x""yes; then :
5750
5751 cat >>confdefs.h <<_ACEOF
5752 #define HAVE_LONG_LONG 1
5753 _ACEOF
5754
5755 # The cast to long int works around a bug in the HP C Compiler
5756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5758 # This bug is HP SR number 8606223364.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5760 $as_echo_n "checking size of long long... " >&6; }
5761 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5765
5766 else
5767   if test "$ac_cv_type_long_long" = yes; then
5768      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5770 { as_fn_set_status 77
5771 as_fn_error "cannot compute sizeof (long long)
5772 See \`config.log' for more details." "$LINENO" 5; }; }
5773    else
5774      ac_cv_sizeof_long_long=0
5775    fi
5776 fi
5777
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5780 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5781
5782
5783
5784 cat >>confdefs.h <<_ACEOF
5785 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5786 _ACEOF
5787
5788
5789 fi
5790
5791 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5792 if test "x$ac_cv_type___int64" = x""yes; then :
5793
5794 cat >>confdefs.h <<_ACEOF
5795 #define HAVE___INT64 1
5796 _ACEOF
5797
5798 # The cast to long int works around a bug in the HP C Compiler
5799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5801 # This bug is HP SR number 8606223364.
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5803 $as_echo_n "checking size of __int64... " >&6; }
5804 if test "${ac_cv_sizeof___int64+set}" = set; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5808
5809 else
5810   if test "$ac_cv_type___int64" = yes; then
5811      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5813 { as_fn_set_status 77
5814 as_fn_error "cannot compute sizeof (__int64)
5815 See \`config.log' for more details." "$LINENO" 5; }; }
5816    else
5817      ac_cv_sizeof___int64=0
5818    fi
5819 fi
5820
5821 fi
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5823 $as_echo "$ac_cv_sizeof___int64" >&6; }
5824
5825
5826
5827 cat >>confdefs.h <<_ACEOF
5828 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5829 _ACEOF
5830
5831
5832 fi
5833
5834 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5835 case $ac_cv_c_int8_t in #(
5836   no|yes) ;; #(
5837   *)
5838
5839 cat >>confdefs.h <<_ACEOF
5840 #define int8_t $ac_cv_c_int8_t
5841 _ACEOF
5842 ;;
5843 esac
5844
5845 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5846 case $ac_cv_c_int16_t in #(
5847   no|yes) ;; #(
5848   *)
5849
5850 cat >>confdefs.h <<_ACEOF
5851 #define int16_t $ac_cv_c_int16_t
5852 _ACEOF
5853 ;;
5854 esac
5855
5856 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5857 case $ac_cv_c_int32_t in #(
5858   no|yes) ;; #(
5859   *)
5860
5861 cat >>confdefs.h <<_ACEOF
5862 #define int32_t $ac_cv_c_int32_t
5863 _ACEOF
5864 ;;
5865 esac
5866
5867 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5868 case $ac_cv_c_int64_t in #(
5869   no|yes) ;; #(
5870   *)
5871
5872 cat >>confdefs.h <<_ACEOF
5873 #define int64_t $ac_cv_c_int64_t
5874 _ACEOF
5875 ;;
5876 esac
5877
5878
5879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5880 $as_echo_n "checking for long long int... " >&6; }
5881 if test "${ac_cv_type_long_long_int+set}" = set; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h.  */
5886
5887   /* For now, do not test the preprocessor; as of 2007 there are too many
5888          implementations with broken preprocessors.  Perhaps this can
5889          be revisited in 2012.  In the meantime, code should not expect
5890          #if to work with literals wider than 32 bits.  */
5891       /* Test literals.  */
5892       long long int ll = 9223372036854775807ll;
5893       long long int nll = -9223372036854775807LL;
5894       unsigned long long int ull = 18446744073709551615ULL;
5895       /* Test constant expressions.   */
5896       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5897                      ? 1 : -1)];
5898       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5899                      ? 1 : -1)];
5900       int i = 63;
5901 int
5902 main ()
5903 {
5904 /* Test availability of runtime routines for shift and division.  */
5905       long long int llmax = 9223372036854775807ll;
5906       unsigned long long int ullmax = 18446744073709551615ull;
5907       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5908               | (llmax / ll) | (llmax % ll)
5909               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5910               | (ullmax / ull) | (ullmax % ull));
5911   ;
5912   return 0;
5913 }
5914
5915 _ACEOF
5916 if ac_fn_c_try_link "$LINENO"; then :
5917                         if test "$cross_compiling" = yes; then :
5918   ac_cv_type_long_long_int=yes
5919 else
5920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h.  */
5922 #include <limits.h>
5923                #ifndef LLONG_MAX
5924                # define HALF \
5925                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5926                # define LLONG_MAX (HALF - 1 + HALF)
5927                #endif
5928 int
5929 main ()
5930 {
5931 long long int n = 1;
5932                int i;
5933                for (i = 0; ; i++)
5934                  {
5935                    long long int m = n << i;
5936                    if (m >> i != n)
5937                      return 1;
5938                    if (LLONG_MAX / 2 < m)
5939                      break;
5940                  }
5941                return 0;
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_run "$LINENO"; then :
5947   ac_cv_type_long_long_int=yes
5948 else
5949   ac_cv_type_long_long_int=no
5950 fi
5951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5952   conftest.$ac_objext conftest.beam conftest.$ac_ext
5953 fi
5954
5955 else
5956   ac_cv_type_long_long_int=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext \
5959     conftest$ac_exeext conftest.$ac_ext
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5962 $as_echo "$ac_cv_type_long_long_int" >&6; }
5963   if test $ac_cv_type_long_long_int = yes; then
5964
5965 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5966
5967   fi
5968
5969
5970
5971   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5972 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5973
5974 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5975
5976 else
5977   test $ac_cv_type_long_long_int = yes \
5978        && ac_type='long long int' \
5979        || ac_type='long int'
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define intmax_t $ac_type
5983 _ACEOF
5984
5985 fi
5986
5987
5988
5989   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5990 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5991
5992 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5993
5994 else
5995   for ac_type in 'int' 'long int' 'long long int'; do
5996        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h.  */
5998 $ac_includes_default
5999 int
6000 main ()
6001 {
6002 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6003 test_array [0] = 0
6004
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 if ac_fn_c_try_compile "$LINENO"; then :
6010
6011 cat >>confdefs.h <<_ACEOF
6012 #define intptr_t $ac_type
6013 _ACEOF
6014
6015           ac_type=
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018        test -z "$ac_type" && break
6019      done
6020 fi
6021
6022
6023 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6024 case $ac_cv_c_uint8_t in #(
6025   no|yes) ;; #(
6026   *)
6027
6028 $as_echo "#define _UINT8_T 1" >>confdefs.h
6029
6030
6031 cat >>confdefs.h <<_ACEOF
6032 #define uint8_t $ac_cv_c_uint8_t
6033 _ACEOF
6034 ;;
6035   esac
6036
6037 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6038 case $ac_cv_c_uint16_t in #(
6039   no|yes) ;; #(
6040   *)
6041
6042
6043 cat >>confdefs.h <<_ACEOF
6044 #define uint16_t $ac_cv_c_uint16_t
6045 _ACEOF
6046 ;;
6047   esac
6048
6049 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6050 case $ac_cv_c_uint32_t in #(
6051   no|yes) ;; #(
6052   *)
6053
6054 $as_echo "#define _UINT32_T 1" >>confdefs.h
6055
6056
6057 cat >>confdefs.h <<_ACEOF
6058 #define uint32_t $ac_cv_c_uint32_t
6059 _ACEOF
6060 ;;
6061   esac
6062
6063 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6064 case $ac_cv_c_uint64_t in #(
6065   no|yes) ;; #(
6066   *)
6067
6068 $as_echo "#define _UINT64_T 1" >>confdefs.h
6069
6070
6071 cat >>confdefs.h <<_ACEOF
6072 #define uint64_t $ac_cv_c_uint64_t
6073 _ACEOF
6074 ;;
6075   esac
6076
6077
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6079 $as_echo_n "checking for unsigned long long int... " >&6; }
6080 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h.  */
6085
6086   /* For now, do not test the preprocessor; as of 2007 there are too many
6087          implementations with broken preprocessors.  Perhaps this can
6088          be revisited in 2012.  In the meantime, code should not expect
6089          #if to work with literals wider than 32 bits.  */
6090       /* Test literals.  */
6091       long long int ll = 9223372036854775807ll;
6092       long long int nll = -9223372036854775807LL;
6093       unsigned long long int ull = 18446744073709551615ULL;
6094       /* Test constant expressions.   */
6095       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6096                      ? 1 : -1)];
6097       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6098                      ? 1 : -1)];
6099       int i = 63;
6100 int
6101 main ()
6102 {
6103 /* Test availability of runtime routines for shift and division.  */
6104       long long int llmax = 9223372036854775807ll;
6105       unsigned long long int ullmax = 18446744073709551615ull;
6106       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6107               | (llmax / ll) | (llmax % ll)
6108               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6109               | (ullmax / ull) | (ullmax % ull));
6110   ;
6111   return 0;
6112 }
6113
6114 _ACEOF
6115 if ac_fn_c_try_link "$LINENO"; then :
6116   ac_cv_type_unsigned_long_long_int=yes
6117 else
6118   ac_cv_type_unsigned_long_long_int=no
6119 fi
6120 rm -f core conftest.err conftest.$ac_objext \
6121     conftest$ac_exeext conftest.$ac_ext
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6124 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6125   if test $ac_cv_type_unsigned_long_long_int = yes; then
6126
6127 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6128
6129   fi
6130
6131
6132
6133   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6134 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6135
6136 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6137
6138 else
6139   test $ac_cv_type_unsigned_long_long_int = yes \
6140        && ac_type='unsigned long long int' \
6141        || ac_type='unsigned long int'
6142
6143 cat >>confdefs.h <<_ACEOF
6144 #define uintmax_t $ac_type
6145 _ACEOF
6146
6147 fi
6148
6149
6150
6151   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6152 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6153
6154 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6155
6156 else
6157   for ac_type in 'unsigned int' 'unsigned long int' \
6158         'unsigned long long int'; do
6159        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h.  */
6161 $ac_includes_default
6162 int
6163 main ()
6164 {
6165 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6166 test_array [0] = 0
6167
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 if ac_fn_c_try_compile "$LINENO"; then :
6173
6174 cat >>confdefs.h <<_ACEOF
6175 #define uintptr_t $ac_type
6176 _ACEOF
6177
6178           ac_type=
6179 fi
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181        test -z "$ac_type" && break
6182      done
6183 fi
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 # ---------------------
6200 # Warnings and checking
6201 # ---------------------
6202
6203 # Check $CC warning features (if it's GCC).
6204 # We want to use -pedantic, but we don't want warnings about
6205 # * 'long long'
6206 # * variadic macros
6207 # * overlong strings
6208 # So, we only use -pedantic if we can disable those warnings.
6209
6210 loose_warn=
6211 save_CFLAGS="$CFLAGS"
6212 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6213   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6214
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6216 $as_echo_n "checking whether $CC supports $option... " >&6; }
6217 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   CFLAGS="$option"
6221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h.  */
6223
6224 int
6225 main ()
6226 {
6227
6228   ;
6229   return 0;
6230 }
6231 _ACEOF
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233   eval "$as_acx_Woption=yes"
6234 else
6235   eval "$as_acx_Woption=no"
6236 fi
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238
6239 fi
6240 eval ac_res=\$$as_acx_Woption
6241                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6242 $as_echo "$ac_res" >&6; }
6243   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6244   loose_warn="$loose_warn${loose_warn:+ }$option"
6245 fi
6246   done
6247 CFLAGS="$save_CFLAGS"
6248
6249 c_loose_warn=
6250 save_CFLAGS="$CFLAGS"
6251 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6252   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6253
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6255 $as_echo_n "checking whether $CC supports $option... " >&6; }
6256 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6257   $as_echo_n "(cached) " >&6
6258 else
6259   CFLAGS="$option"
6260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h.  */
6262
6263 int
6264 main ()
6265 {
6266
6267   ;
6268   return 0;
6269 }
6270 _ACEOF
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272   eval "$as_acx_Woption=yes"
6273 else
6274   eval "$as_acx_Woption=no"
6275 fi
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277
6278 fi
6279 eval ac_res=\$$as_acx_Woption
6280                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6281 $as_echo "$ac_res" >&6; }
6282   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6283   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6284 fi
6285   done
6286 CFLAGS="$save_CFLAGS"
6287
6288 strict_warn=
6289 save_CFLAGS="$CFLAGS"
6290 for option in -Wmissing-format-attribute; do
6291   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6292
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6294 $as_echo_n "checking whether $CC supports $option... " >&6; }
6295 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298   CFLAGS="$option"
6299     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h.  */
6301
6302 int
6303 main ()
6304 {
6305
6306   ;
6307   return 0;
6308 }
6309 _ACEOF
6310 if ac_fn_c_try_compile "$LINENO"; then :
6311   eval "$as_acx_Woption=yes"
6312 else
6313   eval "$as_acx_Woption=no"
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
6317 fi
6318 eval ac_res=\$$as_acx_Woption
6319                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6320 $as_echo "$ac_res" >&6; }
6321   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6322   strict_warn="$strict_warn${strict_warn:+ }$option"
6323 fi
6324   done
6325 CFLAGS="$save_CFLAGS"
6326
6327 c_strict_warn=
6328 save_CFLAGS="$CFLAGS"
6329 for option in -Wold-style-definition -Wc++-compat; do
6330   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6331
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6333 $as_echo_n "checking whether $CC supports $option... " >&6; }
6334 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   CFLAGS="$option"
6338     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h.  */
6340
6341 int
6342 main ()
6343 {
6344
6345   ;
6346   return 0;
6347 }
6348 _ACEOF
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350   eval "$as_acx_Woption=yes"
6351 else
6352   eval "$as_acx_Woption=no"
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355
6356 fi
6357 eval ac_res=\$$as_acx_Woption
6358                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6359 $as_echo "$ac_res" >&6; }
6360   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6361   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6362 fi
6363   done
6364 CFLAGS="$save_CFLAGS"
6365
6366 if test "$GCC" = yes; then :
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6368 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6369 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6370   $as_echo_n "(cached) " >&6
6371 else
6372   save_CFLAGS="$CFLAGS"
6373 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h.  */
6376
6377 int
6378 main ()
6379 {
6380
6381   ;
6382   return 0;
6383 }
6384 _ACEOF
6385 if ac_fn_c_try_compile "$LINENO"; then :
6386   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6387 else
6388   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6389 fi
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 CFLAGS="$save_CFLAGS"
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6394 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6395 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6396   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6397 fi
6398
6399 fi
6400
6401 # Check whether --enable-werror-always was given.
6402 if test "${enable_werror_always+set}" = set; then :
6403   enableval=$enable_werror_always;
6404 else
6405   enable_werror_always=no
6406 fi
6407
6408 if test $enable_werror_always = yes; then :
6409   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6410 fi
6411
6412
6413
6414 # The above macros do nothing if the compiler is not GCC.  However, the
6415 # Makefile has more goo to add other flags, so these variables are used
6416 # to enable warnings only for GCC.
6417 warn_cflags=
6418 warn_cxxflags=
6419 if test "x$GCC" = "xyes"; then
6420   warn_cflags='$(GCC_WARN_CFLAGS)'
6421   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6422 fi
6423
6424
6425
6426 # Enable expensive internal checks
6427 is_release=
6428 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6429   is_release=yes
6430 fi
6431
6432 # Check whether --enable-checking was given.
6433 if test "${enable_checking+set}" = set; then :
6434   enableval=$enable_checking; ac_checking_flags="${enableval}"
6435 else
6436
6437 # Determine the default checks.
6438 if test x$is_release = x ; then
6439   ac_checking_flags=yes
6440 else
6441   ac_checking_flags=release
6442 fi
6443 fi
6444
6445 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6446 for check in release $ac_checking_flags
6447 do
6448         case $check in
6449         # these set all the flags to specific states
6450         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6451                         ac_fold_checking= ; ac_gc_checking=1 ;
6452                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6453                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6454                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6455                         ac_types_checking=1 ;;
6456         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6457                         ac_fold_checking= ; ac_gc_checking= ;
6458                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6459                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6460                         ac_tree_checking= ; ac_valgrind_checking= ;
6461                         ac_types_checking= ;;
6462         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6463                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6464                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6465                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6466                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6467                         ac_types_checking=1 ;;
6468         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6469                         ac_fold_checking= ; ac_gc_checking= ;
6470                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6471                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6472                         ac_tree_checking= ; ac_valgrind_checking= ;
6473                         ac_types_checking= ;;
6474         # these enable particular checks
6475         assert)         ac_assert_checking=1 ;;
6476         df)             ac_df_checking=1 ;;
6477         fold)           ac_fold_checking=1 ;;
6478         gc)             ac_gc_checking=1 ;;
6479         gcac)           ac_gc_always_collect=1 ;;
6480         gimple)         ac_gimple_checking=1 ;;
6481         misc)           ac_checking=1 ;;
6482         rtl)            ac_rtl_checking=1 ;;
6483         rtlflag)        ac_rtlflag_checking=1 ;;
6484         runtime)        ac_runtime_checking=1 ;;
6485         tree)           ac_tree_checking=1 ;;
6486         types)          ac_types_checking=1 ;;
6487         valgrind)       ac_valgrind_checking=1 ;;
6488         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6489         esac
6490 done
6491 IFS="$ac_save_IFS"
6492
6493 nocommon_flag=""
6494 if test x$ac_checking != x ; then
6495
6496 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6497
6498   nocommon_flag=-fno-common
6499 fi
6500
6501 if test x$ac_df_checking != x ; then
6502
6503 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6504
6505 fi
6506 if test x$ac_assert_checking != x ; then
6507
6508 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6509
6510 fi
6511 if test x$ac_gimple_checking != x ; then
6512
6513 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6514
6515 fi
6516
6517 if test x$ac_runtime_checking != x ; then
6518
6519 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6520
6521 fi
6522 if test x$ac_tree_checking != x ; then
6523
6524 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6525
6526   TREEBROWSER=tree-browser.o
6527 fi
6528 if test x$ac_types_checking != x ; then
6529
6530 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6531
6532 fi
6533
6534 if test x$ac_rtl_checking != x ; then
6535
6536 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6537
6538 fi
6539 if test x$ac_rtlflag_checking != x ; then
6540
6541 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6542
6543 fi
6544 if test x$ac_gc_checking != x ; then
6545
6546 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6547
6548 fi
6549 if test x$ac_gc_always_collect != x ; then
6550
6551 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6552
6553 fi
6554 if test x$ac_fold_checking != x ; then
6555
6556 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6557
6558 fi
6559 valgrind_path_defines=
6560 valgrind_command=
6561
6562 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6563 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6564   have_valgrind_h=yes
6565 else
6566   have_valgrind_h=no
6567 fi
6568
6569
6570
6571 if test x$ac_valgrind_checking != x ; then
6572   # It is certainly possible that there's valgrind but no valgrind.h.
6573   # GCC relies on making annotations so we must have both.
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6575 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h.  */
6578 #include <valgrind/memcheck.h>
6579 #ifndef VALGRIND_DISCARD
6580 #error VALGRIND_DISCARD not defined
6581 #endif
6582 _ACEOF
6583 if ac_fn_c_try_cpp "$LINENO"; then :
6584   gcc_cv_header_valgrind_memcheck_h=yes
6585 else
6586   gcc_cv_header_valgrind_memcheck_h=no
6587 fi
6588 rm -f conftest.err conftest.$ac_ext
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6590 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6592 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h.  */
6595 #include <memcheck.h>
6596 #ifndef VALGRIND_DISCARD
6597 #error VALGRIND_DISCARD not defined
6598 #endif
6599 _ACEOF
6600 if ac_fn_c_try_cpp "$LINENO"; then :
6601   gcc_cv_header_memcheck_h=yes
6602 else
6603   gcc_cv_header_memcheck_h=no
6604 fi
6605 rm -f conftest.err conftest.$ac_ext
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6607 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6608
6609 # Prepare PATH_SEPARATOR.
6610 # The user is always right.
6611 if test "${PATH_SEPARATOR+set}" != set; then
6612   echo "#! /bin/sh" >conf$$.sh
6613   echo  "exit 0"   >>conf$$.sh
6614   chmod +x conf$$.sh
6615   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6616     PATH_SEPARATOR=';'
6617   else
6618     PATH_SEPARATOR=:
6619   fi
6620   rm -f conf$$.sh
6621 fi
6622
6623 # Find out how to test for executable files. Don't use a zero-byte file,
6624 # as systems may use methods other than mode bits to determine executability.
6625 cat >conf$$.file <<_ASEOF
6626 #! /bin/sh
6627 exit 0
6628 _ASEOF
6629 chmod +x conf$$.file
6630 if test -x conf$$.file >/dev/null 2>&1; then
6631   ac_executable_p="test -x"
6632 else
6633   ac_executable_p="test -f"
6634 fi
6635 rm -f conf$$.file
6636
6637 # Extract the first word of "valgrind", so it can be a program name with args.
6638 set dummy valgrind; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   case "$valgrind_path" in
6645   [\\/]* | ?:[\\/]*)
6646     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6647     ;;
6648   *)
6649     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6650     for ac_dir in $PATH; do
6651       IFS="$ac_save_IFS"
6652       test -z "$ac_dir" && ac_dir=.
6653       for ac_exec_ext in '' $ac_executable_extensions; do
6654         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6655           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6656             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6657             break 2
6658           fi
6659         fi
6660       done
6661     done
6662     IFS="$ac_save_IFS"
6663     ;;
6664 esac
6665 fi
6666 valgrind_path="$ac_cv_path_valgrind_path"
6667 if test -n "$valgrind_path"; then
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6669 $as_echo "$valgrind_path" >&6; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675   if test "x$valgrind_path" = "x" \
6676     || (test $have_valgrind_h = no \
6677         && test $gcc_cv_header_memcheck_h = no \
6678         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6679         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6680   fi
6681   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6682   valgrind_command="$valgrind_path -q"
6683
6684 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6685
6686   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6687
6688 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6689
6690   fi
6691   if test $gcc_cv_header_memcheck_h = yes; then
6692
6693 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6694
6695   fi
6696 fi
6697
6698
6699
6700 # Enable code coverage collection
6701 # Check whether --enable-coverage was given.
6702 if test "${enable_coverage+set}" = set; then :
6703   enableval=$enable_coverage; case "${enableval}" in
6704   yes|noopt)
6705     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6706     ;;
6707   opt)
6708     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6709     ;;
6710   no)
6711     # a.k.a. --disable-coverage
6712     coverage_flags=""
6713     ;;
6714   *)
6715     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6716     ;;
6717 esac
6718 else
6719   coverage_flags=""
6720 fi
6721
6722
6723
6724 # Check whether --enable-gather-detailed-mem-stats was given.
6725 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6726   enableval=$enable_gather_detailed_mem_stats;
6727 else
6728   enable_gather_detailed_mem_stats=no
6729 fi
6730
6731 if test x$enable_gather_detailed_mem_stats = xyes ; then
6732
6733 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6734
6735 fi
6736
6737 # -------------------------------
6738 # Miscenalleous configure options
6739 # -------------------------------
6740
6741 # See if we are building gcc with C++.
6742 # Check whether --enable-build-with-cxx was given.
6743 if test "${enable_build_with_cxx+set}" = set; then :
6744   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6745 else
6746   ENABLE_BUILD_WITH_CXX=no
6747 fi
6748
6749
6750
6751 # With stabs
6752
6753 # Check whether --with-stabs was given.
6754 if test "${with_stabs+set}" = set; then :
6755   withval=$with_stabs; stabs="$with_stabs"
6756 else
6757   stabs=no
6758 fi
6759
6760
6761 # Determine whether or not multilibs are enabled.
6762 # Check whether --enable-multilib was given.
6763 if test "${enable_multilib+set}" = set; then :
6764   enableval=$enable_multilib;
6765 else
6766   enable_multilib=yes
6767 fi
6768
6769
6770
6771 # Enable __cxa_atexit for C++.
6772 # Check whether --enable-__cxa_atexit was given.
6773 if test "${enable___cxa_atexit+set}" = set; then :
6774   enableval=$enable___cxa_atexit;
6775 fi
6776
6777
6778 # Enable C extension for decimal float if target supports it.
6779 # Check whether --enable-decimal-float was given.
6780 if test "${enable_decimal_float+set}" = set; then :
6781   enableval=$enable_decimal_float;
6782   case $enable_decimal_float in
6783     yes | no | bid | dpd) ;;
6784     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6785 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6786   esac
6787
6788 else
6789
6790   case $target in
6791     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6792       enable_decimal_float=yes
6793       ;;
6794     *)
6795       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6796 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6797       enable_decimal_float=no
6798       ;;
6799   esac
6800
6801 fi
6802
6803
6804 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6805
6806 cat >>confdefs.h <<_ACEOF
6807 #define ENABLE_DECIMAL_FLOAT $dfp
6808 _ACEOF
6809
6810
6811 # x86's use BID format instead of DPD
6812 case x$enable_decimal_float in
6813   xyes)
6814     case $target in
6815       i?86*-*-linux* | x86_64*-*-linux*)
6816         enable_decimal_float=bid
6817         ;;
6818       *)
6819         enable_decimal_float=dpd
6820         ;;
6821     esac
6822     ;;
6823   xno)
6824     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6825     # dependency on libdecnumber.
6826     enable_decimal_float=dpd
6827     ;;
6828 esac
6829
6830
6831 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6832
6833 cat >>confdefs.h <<_ACEOF
6834 #define ENABLE_DECIMAL_BID_FORMAT $bid
6835 _ACEOF
6836
6837
6838 # Enable C extension for fixed-point arithmetic.
6839 # Check whether --enable-fixed-point was given.
6840 if test "${enable_fixed_point+set}" = set; then :
6841   enableval=$enable_fixed_point;
6842
6843 else
6844
6845   case $target in
6846     mips*-*-*)
6847       case $host in
6848         mips*-sgi-irix*)
6849           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6850 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6851           enable_fixed_point=no
6852           ;;
6853         *)
6854           enable_fixed_point=yes
6855           ;;
6856       esac
6857       ;;
6858     *)
6859       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6860 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6861       enable_fixed_point=no
6862       ;;
6863   esac
6864
6865 fi
6866
6867
6868
6869 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6870
6871 cat >>confdefs.h <<_ACEOF
6872 #define ENABLE_FIXED_POINT $fixedpoint
6873 _ACEOF
6874
6875
6876 # Enable threads
6877 # Pass with no value to take the default
6878 # Pass with a value to specify a thread package
6879 # Check whether --enable-threads was given.
6880 if test "${enable_threads+set}" = set; then :
6881   enableval=$enable_threads;
6882 else
6883   enable_threads=''
6884 fi
6885
6886
6887 # Check whether --enable-tls was given.
6888 if test "${enable_tls+set}" = set; then :
6889   enableval=$enable_tls;
6890   case $enable_tls in
6891     yes | no) ;;
6892     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6893 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6894   esac
6895
6896 else
6897   enable_tls=''
6898 fi
6899
6900
6901 # Check whether --enable-objc-gc was given.
6902 if test "${enable_objc_gc+set}" = set; then :
6903   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6904         objc_boehm_gc=''
6905 else
6906         objc_boehm_gc=1
6907 fi
6908 else
6909   objc_boehm_gc=''
6910 fi
6911
6912
6913
6914 # Check whether --with-dwarf2 was given.
6915 if test "${with_dwarf2+set}" = set; then :
6916   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6917 else
6918   dwarf2=no
6919 fi
6920
6921
6922 # Check whether --enable-shared was given.
6923 if test "${enable_shared+set}" = set; then :
6924   enableval=$enable_shared;
6925   case $enable_shared in
6926   yes | no) ;;
6927   *)
6928     enable_shared=no
6929     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6930     for pkg in $enableval; do
6931       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6932         enable_shared=yes
6933       fi
6934     done
6935     IFS="$ac_save_ifs"
6936     ;;
6937   esac
6938
6939 else
6940   enable_shared=yes
6941 fi
6942
6943
6944
6945
6946 # Check whether --with-build-sysroot was given.
6947 if test "${with_build_sysroot+set}" = set; then :
6948   withval=$with_build_sysroot;
6949 fi
6950
6951
6952
6953 # Check whether --with-sysroot was given.
6954 if test "${with_sysroot+set}" = set; then :
6955   withval=$with_sysroot;
6956  case ${with_sysroot} in
6957  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6958  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6959  esac
6960
6961  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6962  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6963
6964  if test "x$prefix" = xNONE; then
6965   test_prefix=/usr/local
6966  else
6967   test_prefix=$prefix
6968  fi
6969  if test "x$exec_prefix" = xNONE; then
6970   test_exec_prefix=$test_prefix
6971  else
6972   test_exec_prefix=$exec_prefix
6973  fi
6974  case ${TARGET_SYSTEM_ROOT} in
6975  "${test_prefix}"|"${test_prefix}/"*|\
6976  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6977  '${prefix}'|'${prefix}/'*|\
6978  '${exec_prefix}'|'${exec_prefix}/'*)
6979    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6980    TARGET_SYSTEM_ROOT_DEFINE="$t"
6981    ;;
6982  esac
6983
6984 else
6985
6986  TARGET_SYSTEM_ROOT=
6987  TARGET_SYSTEM_ROOT_DEFINE=
6988  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6989
6990 fi
6991
6992
6993
6994
6995
6996 # Build with intermodule optimisations
6997 # Check whether --enable-intermodule was given.
6998 if test "${enable_intermodule+set}" = set; then :
6999   enableval=$enable_intermodule; case ${enable_intermodule} in
7000   yes) onestep="-onestep";;
7001   *) onestep="";;
7002 esac
7003 else
7004   onestep=""
7005 fi
7006
7007
7008
7009
7010
7011 # Check whether --with-pkgversion was given.
7012 if test "${with_pkgversion+set}" = set; then :
7013   withval=$with_pkgversion; case "$withval" in
7014       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7015       no)  PKGVERSION= ;;
7016       *)   PKGVERSION="($withval) " ;;
7017      esac
7018 else
7019   PKGVERSION="(GCC) "
7020
7021 fi
7022
7023
7024
7025
7026
7027 # Check whether --with-bugurl was given.
7028 if test "${with_bugurl+set}" = set; then :
7029   withval=$with_bugurl; case "$withval" in
7030       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7031       no)  BUGURL=
7032            ;;
7033       *)   BUGURL="$withval"
7034            ;;
7035      esac
7036 else
7037   BUGURL="http://gcc.gnu.org/bugs.html"
7038
7039 fi
7040
7041   case ${BUGURL} in
7042   "")
7043     REPORT_BUGS_TO=
7044     REPORT_BUGS_TEXI=
7045     ;;
7046   *)
7047     REPORT_BUGS_TO="<$BUGURL>"
7048     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7049     ;;
7050   esac;
7051
7052
7053
7054
7055 # Sanity check enable_languages in case someone does not run the toplevel
7056 # configure # script.
7057 # Check whether --enable-languages was given.
7058 if test "${enable_languages+set}" = set; then :
7059   enableval=$enable_languages; case ,${enable_languages}, in
7060        ,,|,yes,)
7061                 # go safe -- we cannot be much sure without the toplevel
7062                 # configure's
7063                 # analysis of which target libs are present and usable
7064                 enable_languages=c
7065                 ;;
7066          *,all,*)
7067                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7068                 ;;
7069         *,c,*)
7070                 ;;
7071         *)
7072                 enable_languages=c,${enable_languages}
7073                 ;;
7074 esac
7075 else
7076   enable_languages=c
7077 fi
7078
7079
7080
7081 # Check whether --with-multilib-list was given.
7082 if test "${with_multilib_list+set}" = set; then :
7083   withval=$with_multilib_list; :
7084 else
7085   with_multilib_list=default
7086 fi
7087
7088
7089 # -------------------------
7090 # Checks for other programs
7091 # -------------------------
7092
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7094 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7095 set x ${MAKE-make}
7096 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7097 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   cat >conftest.make <<\_ACEOF
7101 SHELL = /bin/sh
7102 all:
7103         @echo '@@@%%%=$(MAKE)=@@@%%%'
7104 _ACEOF
7105 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7106 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7107   *@@@%%%=?*=@@@%%%*)
7108     eval ac_cv_prog_make_${ac_make}_set=yes;;
7109   *)
7110     eval ac_cv_prog_make_${ac_make}_set=no;;
7111 esac
7112 rm -f conftest.make
7113 fi
7114 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7116 $as_echo "yes" >&6; }
7117   SET_MAKE=
7118 else
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121   SET_MAKE="MAKE=${MAKE-make}"
7122 fi
7123
7124
7125 # Find some useful tools
7126 for ac_prog in gawk mawk nawk awk
7127 do
7128   # Extract the first word of "$ac_prog", so it can be a program name with args.
7129 set dummy $ac_prog; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if test "${ac_cv_prog_AWK+set}" = set; then :
7133   $as_echo_n "(cached) " >&6
7134 else
7135   if test -n "$AWK"; then
7136   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143     for ac_exec_ext in '' $ac_executable_extensions; do
7144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145     ac_cv_prog_AWK="$ac_prog"
7146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150   done
7151 IFS=$as_save_IFS
7152
7153 fi
7154 fi
7155 AWK=$ac_cv_prog_AWK
7156 if test -n "$AWK"; then
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7158 $as_echo "$AWK" >&6; }
7159 else
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163
7164
7165   test -n "$AWK" && break
7166 done
7167
7168 # We need awk to create options.c and options.h.
7169 # Bail out if it's missing.
7170 case ${AWK} in
7171   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7172 esac
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7175 $as_echo_n "checking whether ln -s works... " >&6; }
7176 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7177   $as_echo_n "(cached) " >&6
7178 else
7179   rm -f conftestdata_t
7180 echo >conftestdata_f
7181 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7182 then
7183   gcc_cv_prog_LN_S="ln -s"
7184 else
7185   if ln conftestdata_f conftestdata_t 2>/dev/null
7186   then
7187     gcc_cv_prog_LN_S=ln
7188   else
7189     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7190     then
7191       gcc_cv_prog_LN_S="cp -p"
7192     else
7193       gcc_cv_prog_LN_S=cp
7194     fi
7195   fi
7196 fi
7197 rm -f conftestdata_f conftestdata_t
7198
7199 fi
7200 LN_S="$gcc_cv_prog_LN_S"
7201 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7203 $as_echo "yes" >&6; }
7204 else
7205   if test "$gcc_cv_prog_LN_S" = "ln"; then
7206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7207 $as_echo "no, using ln" >&6; }
7208   else
7209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7210 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7211   fi
7212 fi
7213
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7215 $as_echo_n "checking whether ln works... " >&6; }
7216 if test "${acx_cv_prog_LN+set}" = set; then :
7217   $as_echo_n "(cached) " >&6
7218 else
7219   rm -f conftestdata_t
7220 echo >conftestdata_f
7221 if ln conftestdata_f conftestdata_t 2>/dev/null
7222 then
7223   acx_cv_prog_LN=ln
7224 else
7225   acx_cv_prog_LN=no
7226 fi
7227 rm -f conftestdata_f conftestdata_t
7228
7229 fi
7230 if test $acx_cv_prog_LN = no; then
7231   LN="$LN_S"
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7233 $as_echo "no, using $LN" >&6; }
7234 else
7235   LN="$acx_cv_prog_LN"
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7238 fi
7239
7240 if test -n "$ac_tool_prefix"; then
7241   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7246   $as_echo_n "(cached) " >&6
7247 else
7248   if test -n "$RANLIB"; then
7249   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263   done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 RANLIB=$ac_cv_prog_RANLIB
7269 if test -n "$RANLIB"; then
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7271 $as_echo "$RANLIB" >&6; }
7272 else
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277
7278 fi
7279 if test -z "$ac_cv_prog_RANLIB"; then
7280   ac_ct_RANLIB=$RANLIB
7281   # Extract the first word of "ranlib", so it can be a program name with args.
7282 set dummy ranlib; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   if test -n "$ac_ct_RANLIB"; then
7289   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294   IFS=$as_save_IFS
7295   test -z "$as_dir" && as_dir=.
7296     for ac_exec_ext in '' $ac_executable_extensions; do
7297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298     ac_cv_prog_ac_ct_RANLIB="ranlib"
7299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300     break 2
7301   fi
7302 done
7303   done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7309 if test -n "$ac_ct_RANLIB"; then
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7311 $as_echo "$ac_ct_RANLIB" >&6; }
7312 else
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317   if test "x$ac_ct_RANLIB" = x; then
7318     RANLIB=":"
7319   else
7320     case $cross_compiling:$ac_tool_warned in
7321 yes:)
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324 ac_tool_warned=yes ;;
7325 esac
7326     RANLIB=$ac_ct_RANLIB
7327   fi
7328 else
7329   RANLIB="$ac_cv_prog_RANLIB"
7330 fi
7331
7332 case "${host}" in
7333 *-*-darwin*)
7334   # By default, the Darwin ranlib will not treat common symbols as
7335   # definitions when  building the archive table of contents.  Other
7336   # ranlibs do that; pass an option to the Darwin ranlib that makes
7337   # it behave similarly.
7338   ranlib_flags="-c"
7339   ;;
7340 *)
7341   ranlib_flags=""
7342 esac
7343
7344
7345 # Find a good install program.  We prefer a C program (faster),
7346 # so one script is as good as another.  But avoid the broken or
7347 # incompatible versions:
7348 # SysV /etc/install, /usr/sbin/install
7349 # SunOS /usr/etc/install
7350 # IRIX /sbin/install
7351 # AIX /bin/install
7352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7354 # ./install, which can be erroneously created by make from ./install.sh.
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7356 $as_echo_n "checking for a BSD compatible install... " >&6; }
7357 if test -z "$INSTALL"; then
7358 if test "${ac_cv_path_install+set}" = set; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7362   for ac_dir in $PATH; do
7363     # Account for people who put trailing slashes in PATH elements.
7364     case "$ac_dir/" in
7365     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7366     *)
7367       # OSF1 and SCO ODT 3.0 have their own names for install.
7368       for ac_prog in ginstall scoinst install; do
7369         if test -f $ac_dir/$ac_prog; then
7370           if test $ac_prog = install &&
7371             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7372             # AIX install.  It has an incompatible calling convention.
7373             # OSF/1 installbsd also uses dspmsg, but is usable.
7374             :
7375           else
7376             ac_cv_path_install="$ac_dir/$ac_prog -c"
7377             break 2
7378           fi
7379         fi
7380       done
7381       ;;
7382     esac
7383   done
7384   IFS="$ac_save_IFS"
7385
7386 fi
7387   if test "${ac_cv_path_install+set}" = set; then
7388     INSTALL="$ac_cv_path_install"
7389   else
7390     # As a last resort, use the slow shell script.  We don't cache a
7391     # path for INSTALL within a source directory, because that will
7392     # break other packages using the cache if that directory is
7393     # removed, or if the path is relative.
7394     INSTALL="$ac_install_sh"
7395   fi
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7398 $as_echo "$INSTALL" >&6; }
7399
7400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7401 # It thinks the first close brace ends the variable substitution.
7402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7403
7404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7405
7406
7407 # See if cmp has --ignore-initial.
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7409 $as_echo_n "checking for cmp's capabilities... " >&6; }
7410 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413    echo abfoo >t1
7414   echo cdfoo >t2
7415   gcc_cv_prog_cmp_skip=slowcompare
7416   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7417     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7418       :
7419     else
7420       gcc_cv_prog_cmp_skip=gnucompare
7421     fi
7422   fi
7423   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7424     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7425       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7426         :
7427       else
7428         gcc_cv_prog_cmp_skip=fastcompare
7429       fi
7430     fi
7431   fi
7432   rm t1 t2
7433
7434 fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7436 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7437 make_compare_target=$gcc_cv_prog_cmp_skip
7438
7439
7440
7441 # See if we have the mktemp command.
7442 # Extract the first word of "mktemp", so it can be a program name with args.
7443 set dummy mktemp; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   if test -n "$have_mktemp_command"; then
7450   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457     for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_prog_have_mktemp_command="yes"
7460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464   done
7465 IFS=$as_save_IFS
7466
7467   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7468 fi
7469 fi
7470 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7471 if test -n "$have_mktemp_command"; then
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7473 $as_echo "$have_mktemp_command" >&6; }
7474 else
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479
7480
7481 # See if makeinfo has been installed and is modern enough
7482 # that we can use it.
7483
7484   # Extract the first word of "makeinfo", so it can be a program name with args.
7485 set dummy makeinfo; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   if test -n "$MAKEINFO"; then
7492   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499     for ac_exec_ext in '' $ac_executable_extensions; do
7500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501     ac_cv_prog_MAKEINFO="makeinfo"
7502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506   done
7507 IFS=$as_save_IFS
7508
7509 fi
7510 fi
7511 MAKEINFO=$ac_cv_prog_MAKEINFO
7512 if test -n "$MAKEINFO"; then
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7514 $as_echo "$MAKEINFO" >&6; }
7515 else
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520
7521   if test -n "$MAKEINFO"; then
7522     # Found it, now check the version.
7523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7524 $as_echo_n "checking for modern makeinfo... " >&6; }
7525 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7529                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7530
7531                     case $ac_prog_version in
7532                       '')  gcc_cv_prog_makeinfo_modern=no;;
7533                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7534                       *)   gcc_cv_prog_makeinfo_modern=no;;
7535                     esac
7536
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7539 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7540   else
7541     gcc_cv_prog_makeinfo_modern=no
7542   fi
7543   if test $gcc_cv_prog_makeinfo_modern = no; then
7544     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7545   fi
7546
7547 if test $gcc_cv_prog_makeinfo_modern = no; then
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7549 *** Makeinfo is missing or too old.
7550 *** Info documentation will not be built." >&5
7551 $as_echo "$as_me: WARNING:
7552 *** Makeinfo is missing or too old.
7553 *** Info documentation will not be built." >&2;}
7554   BUILD_INFO=
7555 else
7556   BUILD_INFO=info
7557 fi
7558
7559
7560 # Is pod2man recent enough to regenerate manpages?
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7562 $as_echo_n "checking for recent Pod::Man... " >&6; }
7563 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7565 $as_echo "yes" >&6; }
7566   GENERATED_MANPAGES=generated-manpages
7567 else
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570   GENERATED_MANPAGES=
7571 fi
7572
7573
7574 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7575
7576 # How about lex?
7577 for ac_prog in flex
7578 do
7579   # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if test "${ac_cv_prog_FLEX+set}" = set; then :
7584   $as_echo_n "(cached) " >&6
7585 else
7586   if test -n "$FLEX"; then
7587   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592   IFS=$as_save_IFS
7593   test -z "$as_dir" && as_dir=.
7594     for ac_exec_ext in '' $ac_executable_extensions; do
7595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596     ac_cv_prog_FLEX="$ac_prog"
7597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598     break 2
7599   fi
7600 done
7601   done
7602 IFS=$as_save_IFS
7603
7604 fi
7605 fi
7606 FLEX=$ac_cv_prog_FLEX
7607 if test -n "$FLEX"; then
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7609 $as_echo "$FLEX" >&6; }
7610 else
7611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7613 fi
7614
7615
7616   test -n "$FLEX" && break
7617 done
7618 test -n "$FLEX" || FLEX="$MISSING flex"
7619
7620
7621 # Bison?
7622 for ac_prog in bison
7623 do
7624   # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if test "${ac_cv_prog_BISON+set}" = set; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631   if test -n "$BISON"; then
7632   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639     for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_prog_BISON="$ac_prog"
7642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646   done
7647 IFS=$as_save_IFS
7648
7649 fi
7650 fi
7651 BISON=$ac_cv_prog_BISON
7652 if test -n "$BISON"; then
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7654 $as_echo "$BISON" >&6; }
7655 else
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 fi
7659
7660
7661   test -n "$BISON" && break
7662 done
7663 test -n "$BISON" || BISON="$MISSING bison"
7664
7665
7666 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7667 # check for build == host before using them.
7668
7669 # NM
7670 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7671   && test -d ../binutils ; then
7672   NM='$(objdir)/../binutils/nm-new'
7673 else
7674   # Extract the first word of "nm", so it can be a program name with args.
7675 set dummy nm; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_NM+set}" = set; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   if test -n "$NM"; then
7682   ac_cv_prog_NM="$NM" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687   IFS=$as_save_IFS
7688   test -z "$as_dir" && as_dir=.
7689     for ac_exec_ext in '' $ac_executable_extensions; do
7690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691     ac_cv_prog_NM="nm"
7692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693     break 2
7694   fi
7695 done
7696   done
7697 IFS=$as_save_IFS
7698
7699   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7700 fi
7701 fi
7702 NM=$ac_cv_prog_NM
7703 if test -n "$NM"; then
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7705 $as_echo "$NM" >&6; }
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711
7712 fi
7713
7714 # AR
7715 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7716   && test -d ../binutils ; then
7717   AR='$(objdir)/../binutils/ar'
7718 else
7719   # Extract the first word of "ar", so it can be a program name with args.
7720 set dummy ar; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if test "${ac_cv_prog_AR+set}" = set; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   if test -n "$AR"; then
7727   ac_cv_prog_AR="$AR" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734     for ac_exec_ext in '' $ac_executable_extensions; do
7735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736     ac_cv_prog_AR="ar"
7737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741   done
7742 IFS=$as_save_IFS
7743
7744   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7745 fi
7746 fi
7747 AR=$ac_cv_prog_AR
7748 if test -n "$AR"; then
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7750 $as_echo "$AR" >&6; }
7751 else
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756
7757 fi
7758
7759
7760 # --------------------
7761 # Checks for C headers
7762 # --------------------
7763
7764 # Need to reject headers which give warnings, so that the -Werror bootstrap
7765 # works later. *sigh*  This needs to come before all header checks.
7766
7767 ac_c_preproc_warn_flag=yes
7768
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7770 $as_echo_n "checking for ANSI C header files... " >&6; }
7771 if test "${ac_cv_header_stdc+set}" = set; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h.  */
7776 #include <stdlib.h>
7777 #include <stdarg.h>
7778 #include <string.h>
7779 #include <float.h>
7780
7781 int
7782 main ()
7783 {
7784
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 if ac_fn_c_try_compile "$LINENO"; then :
7790   ac_cv_header_stdc=yes
7791 else
7792   ac_cv_header_stdc=no
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795
7796 if test $ac_cv_header_stdc = yes; then
7797   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h.  */
7800 #include <string.h>
7801
7802 _ACEOF
7803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7804   $EGREP "memchr" >/dev/null 2>&1; then :
7805
7806 else
7807   ac_cv_header_stdc=no
7808 fi
7809 rm -f conftest*
7810
7811 fi
7812
7813 if test $ac_cv_header_stdc = yes; then
7814   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h.  */
7817 #include <stdlib.h>
7818
7819 _ACEOF
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821   $EGREP "free" >/dev/null 2>&1; then :
7822
7823 else
7824   ac_cv_header_stdc=no
7825 fi
7826 rm -f conftest*
7827
7828 fi
7829
7830 if test $ac_cv_header_stdc = yes; then
7831   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7832   if test "$cross_compiling" = yes; then :
7833   :
7834 else
7835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h.  */
7837 #include <ctype.h>
7838 #include <stdlib.h>
7839 #if ((' ' & 0x0FF) == 0x020)
7840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7842 #else
7843 # define ISLOWER(c) \
7844                    (('a' <= (c) && (c) <= 'i') \
7845                      || ('j' <= (c) && (c) <= 'r') \
7846                      || ('s' <= (c) && (c) <= 'z'))
7847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7848 #endif
7849
7850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7851 int
7852 main ()
7853 {
7854   int i;
7855   for (i = 0; i < 256; i++)
7856     if (XOR (islower (i), ISLOWER (i))
7857         || toupper (i) != TOUPPER (i))
7858       return 2;
7859   return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_run "$LINENO"; then :
7863
7864 else
7865   ac_cv_header_stdc=no
7866 fi
7867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7868   conftest.$ac_objext conftest.beam conftest.$ac_ext
7869 fi
7870
7871 fi
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7874 $as_echo "$ac_cv_header_stdc" >&6; }
7875 if test $ac_cv_header_stdc = yes; then
7876
7877 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7878
7879 fi
7880
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7882 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7883 if test "${ac_cv_header_time+set}" = set; then :
7884   $as_echo_n "(cached) " >&6
7885 else
7886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h.  */
7888 #include <sys/types.h>
7889 #include <sys/time.h>
7890 #include <time.h>
7891
7892 int
7893 main ()
7894 {
7895 if ((struct tm *) 0)
7896 return 0;
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"; then :
7902   ac_cv_header_time=yes
7903 else
7904   ac_cv_header_time=no
7905 fi
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7909 $as_echo "$ac_cv_header_time" >&6; }
7910 if test $ac_cv_header_time = yes; then
7911
7912 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7913
7914 fi
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7917 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7918 if test "${gcc_cv_header_string+set}" = set; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h.  */
7923 #include <string.h>
7924 #include <strings.h>
7925 int
7926 main ()
7927 {
7928
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934   gcc_cv_header_string=yes
7935 else
7936   gcc_cv_header_string=no
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7941 $as_echo "$gcc_cv_header_string" >&6; }
7942 if test $gcc_cv_header_string = yes; then
7943
7944 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7945
7946 fi
7947
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7949 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7950 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h.  */
7955 #include <sys/types.h>
7956 #include <sys/wait.h>
7957 #ifndef WEXITSTATUS
7958 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7959 #endif
7960 #ifndef WIFEXITED
7961 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7962 #endif
7963
7964 int
7965 main ()
7966 {
7967   int s;
7968   wait (&s);
7969   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7970   ;
7971   return 0;
7972 }
7973 _ACEOF
7974 if ac_fn_c_try_compile "$LINENO"; then :
7975   ac_cv_header_sys_wait_h=yes
7976 else
7977   ac_cv_header_sys_wait_h=no
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7980 fi
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7982 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7983 if test $ac_cv_header_sys_wait_h = yes; then
7984
7985 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7986
7987 fi
7988
7989 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7990                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7991                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7992                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7993 do :
7994   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7996 eval as_val=\$$as_ac_Header
7997    if test "x$as_val" = x""yes; then :
7998   cat >>confdefs.h <<_ACEOF
7999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000 _ACEOF
8001
8002 fi
8003 done
8004
8005
8006 # Check for thread headers.
8007 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8008 if test "x$ac_cv_header_thread_h" = x""yes; then :
8009   have_thread_h=yes
8010 else
8011   have_thread_h=
8012 fi
8013
8014 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8015 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8016   have_pthread_h=yes
8017 else
8018   have_pthread_h=
8019 fi
8020
8021
8022 # These tests can't be done till we know if we have limits.h.
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8024 $as_echo_n "checking for CHAR_BIT... " >&6; }
8025 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8026   $as_echo_n "(cached) " >&6
8027 else
8028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h.  */
8030 #ifdef HAVE_LIMITS_H
8031 #include <limits.h>
8032 #endif
8033 #ifdef CHAR_BIT
8034 found
8035 #endif
8036 _ACEOF
8037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8038   $EGREP "found" >/dev/null 2>&1; then :
8039   gcc_cv_decl_char_bit=yes
8040 else
8041   gcc_cv_decl_char_bit=no
8042 fi
8043 rm -f conftest*
8044
8045
8046 fi
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8048 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8049 if test $gcc_cv_decl_char_bit = no; then
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8051 $as_echo_n "checking number of bits in a byte... " >&6; }
8052 if test "${gcc_cv_c_nbby+set}" = set; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   i=8
8056  gcc_cv_c_nbby=
8057  while test $i -lt 65; do
8058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h.  */
8060
8061 int
8062 main ()
8063 {
8064 switch(0) {
8065   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8066   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8067   ; }
8068   ;
8069   return 0;
8070 }
8071 _ACEOF
8072 if ac_fn_c_try_compile "$LINENO"; then :
8073   gcc_cv_c_nbby=$i; break
8074 fi
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076    i=`expr $i + 1`
8077  done
8078  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8079
8080 fi
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8082 $as_echo "$gcc_cv_c_nbby" >&6; }
8083 if test $gcc_cv_c_nbby = failed; then
8084   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8085 else
8086
8087 cat >>confdefs.h <<_ACEOF
8088 #define CHAR_BIT $gcc_cv_c_nbby
8089 _ACEOF
8090
8091 fi
8092 fi
8093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8094 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8095 if test "${ac_cv_c_bigendian+set}" = set; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098   ac_cv_c_bigendian=unknown
8099     # See if we're dealing with a universal compiler.
8100     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h.  */
8102 #ifndef __APPLE_CC__
8103                not a universal capable compiler
8104              #endif
8105              typedef int dummy;
8106
8107 _ACEOF
8108 if ac_fn_c_try_compile "$LINENO"; then :
8109
8110         # Check for potential -arch flags.  It is not universal unless
8111         # there are at least two -arch flags with different values.
8112         ac_arch=
8113         ac_prev=
8114         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8115          if test -n "$ac_prev"; then
8116            case $ac_word in
8117              i?86 | x86_64 | ppc | ppc64)
8118                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8119                  ac_arch=$ac_word
8120                else
8121                  ac_cv_c_bigendian=universal
8122                  break
8123                fi
8124                ;;
8125            esac
8126            ac_prev=
8127          elif test "x$ac_word" = "x-arch"; then
8128            ac_prev=arch
8129          fi
8130        done
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133     if test $ac_cv_c_bigendian = unknown; then
8134       # See if sys/param.h defines the BYTE_ORDER macro.
8135       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h.  */
8137 #include <sys/types.h>
8138              #include <sys/param.h>
8139
8140 int
8141 main ()
8142 {
8143 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8144                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8145                      && LITTLE_ENDIAN)
8146               bogus endian macros
8147              #endif
8148
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 if ac_fn_c_try_compile "$LINENO"; then :
8154   # It does; now see whether it defined to BIG_ENDIAN or not.
8155          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h.  */
8157 #include <sys/types.h>
8158                 #include <sys/param.h>
8159
8160 int
8161 main ()
8162 {
8163 #if BYTE_ORDER != BIG_ENDIAN
8164                  not big endian
8165                 #endif
8166
8167   ;
8168   return 0;
8169 }
8170 _ACEOF
8171 if ac_fn_c_try_compile "$LINENO"; then :
8172   ac_cv_c_bigendian=yes
8173 else
8174   ac_cv_c_bigendian=no
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179     fi
8180     if test $ac_cv_c_bigendian = unknown; then
8181       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8182       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h.  */
8184 #include <limits.h>
8185
8186 int
8187 main ()
8188 {
8189 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8190               bogus endian macros
8191              #endif
8192
8193   ;
8194   return 0;
8195 }
8196 _ACEOF
8197 if ac_fn_c_try_compile "$LINENO"; then :
8198   # It does; now see whether it defined to _BIG_ENDIAN or not.
8199          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h.  */
8201 #include <limits.h>
8202
8203 int
8204 main ()
8205 {
8206 #ifndef _BIG_ENDIAN
8207                  not big endian
8208                 #endif
8209
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215   ac_cv_c_bigendian=yes
8216 else
8217   ac_cv_c_bigendian=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222     fi
8223     if test $ac_cv_c_bigendian = unknown; then
8224       # Compile a test program.
8225       if test "$cross_compiling" = yes; then :
8226   # Try to guess by grepping values from an object file.
8227          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h.  */
8229 short int ascii_mm[] =
8230                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8231                 short int ascii_ii[] =
8232                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8233                 int use_ascii (int i) {
8234                   return ascii_mm[i] + ascii_ii[i];
8235                 }
8236                 short int ebcdic_ii[] =
8237                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8238                 short int ebcdic_mm[] =
8239                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8240                 int use_ebcdic (int i) {
8241                   return ebcdic_mm[i] + ebcdic_ii[i];
8242                 }
8243                 extern int foo;
8244
8245 int
8246 main ()
8247 {
8248 return use_ascii (foo) == use_ebcdic (foo);
8249   ;
8250   return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_compile "$LINENO"; then :
8254   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8255               ac_cv_c_bigendian=yes
8256             fi
8257             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8258               if test "$ac_cv_c_bigendian" = unknown; then
8259                 ac_cv_c_bigendian=no
8260               else
8261                 # finding both strings is unlikely to happen, but who knows?
8262                 ac_cv_c_bigendian=unknown
8263               fi
8264             fi
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 else
8268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h.  */
8270 $ac_includes_default
8271 int
8272 main ()
8273 {
8274
8275              /* Are we little or big endian?  From Harbison&Steele.  */
8276              union
8277              {
8278                long int l;
8279                char c[sizeof (long int)];
8280              } u;
8281              u.l = 1;
8282              return u.c[sizeof (long int) - 1] == 1;
8283
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_run "$LINENO"; then :
8289   ac_cv_c_bigendian=no
8290 else
8291   ac_cv_c_bigendian=yes
8292 fi
8293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8294   conftest.$ac_objext conftest.beam conftest.$ac_ext
8295 fi
8296
8297     fi
8298 fi
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8300 $as_echo "$ac_cv_c_bigendian" >&6; }
8301  case $ac_cv_c_bigendian in #(
8302    yes)
8303      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8304 ;; #(
8305    no)
8306       ;; #(
8307    universal)
8308
8309 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8310
8311      ;; #(
8312    *)
8313      as_fn_error "unknown endianness
8314  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8315  esac
8316
8317
8318 # --------
8319 # UNSORTED
8320 # --------
8321
8322
8323 # These libraries may be used by collect2.
8324 # We may need a special search path to get them linked.
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8326 $as_echo_n "checking for collect2 libraries... " >&6; }
8327 if test "${gcc_cv_collect2_libs+set}" = set; then :
8328   $as_echo_n "(cached) " >&6
8329 else
8330   save_LIBS="$LIBS"
8331 for libs in '' -lld -lmld \
8332                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8333                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8334 do
8335         LIBS="$libs"
8336         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h.  */
8338
8339 /* Override any GCC internal prototype to avoid an error.
8340    Use char because int might match the return type of a GCC
8341    builtin and then its argument prototype would still apply.  */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 char ldopen ();
8346 int
8347 main ()
8348 {
8349 return ldopen ();
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 if ac_fn_c_try_link "$LINENO"; then :
8355   gcc_cv_collect2_libs="$libs"; break
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext \
8358     conftest$ac_exeext conftest.$ac_ext
8359 done
8360 LIBS="$save_LIBS"
8361 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8364 $as_echo "$gcc_cv_collect2_libs" >&6; }
8365 case $gcc_cv_collect2_libs in
8366         "none required")        ;;
8367         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8368 esac
8369
8370
8371 # When building Ada code on Alpha, we need exc_resume which is usually in
8372 # -lexc.  So test for it.
8373 save_LIBS="$LIBS"
8374 LIBS=
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8376 $as_echo_n "checking for library containing exc_resume... " >&6; }
8377 if test "${ac_cv_search_exc_resume+set}" = set; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   ac_func_search_save_LIBS=$LIBS
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h.  */
8383
8384 /* Override any GCC internal prototype to avoid an error.
8385    Use char because int might match the return type of a GCC
8386    builtin and then its argument prototype would still apply.  */
8387 #ifdef __cplusplus
8388 extern "C"
8389 #endif
8390 char exc_resume ();
8391 int
8392 main ()
8393 {
8394 return exc_resume ();
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 for ac_lib in '' exc; do
8400   if test -z "$ac_lib"; then
8401     ac_res="none required"
8402   else
8403     ac_res=-l$ac_lib
8404     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8405   fi
8406   if ac_fn_c_try_link "$LINENO"; then :
8407   ac_cv_search_exc_resume=$ac_res
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext \
8410     conftest$ac_exeext
8411   if test "${ac_cv_search_exc_resume+set}" = set; then :
8412   break
8413 fi
8414 done
8415 if test "${ac_cv_search_exc_resume+set}" = set; then :
8416
8417 else
8418   ac_cv_search_exc_resume=no
8419 fi
8420 rm conftest.$ac_ext
8421 LIBS=$ac_func_search_save_LIBS
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8424 $as_echo "$ac_cv_search_exc_resume" >&6; }
8425 ac_res=$ac_cv_search_exc_resume
8426 if test "$ac_res" != no; then :
8427   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8428
8429 fi
8430
8431 GNAT_LIBEXC="$LIBS"
8432 LIBS="$save_LIBS"
8433
8434
8435 # Some systems put ldexp and frexp in libm instead of libc; assume
8436 # they're both in the same place.  jcf-dump needs them.
8437 save_LIBS="$LIBS"
8438 LIBS=
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8440 $as_echo_n "checking for library containing ldexp... " >&6; }
8441 if test "${ac_cv_search_ldexp+set}" = set; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   ac_func_search_save_LIBS=$LIBS
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h.  */
8447
8448 /* Override any GCC internal prototype to avoid an error.
8449    Use char because int might match the return type of a GCC
8450    builtin and then its argument prototype would still apply.  */
8451 #ifdef __cplusplus
8452 extern "C"
8453 #endif
8454 char ldexp ();
8455 int
8456 main ()
8457 {
8458 return ldexp ();
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 for ac_lib in '' m; do
8464   if test -z "$ac_lib"; then
8465     ac_res="none required"
8466   else
8467     ac_res=-l$ac_lib
8468     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8469   fi
8470   if ac_fn_c_try_link "$LINENO"; then :
8471   ac_cv_search_ldexp=$ac_res
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext \
8474     conftest$ac_exeext
8475   if test "${ac_cv_search_ldexp+set}" = set; then :
8476   break
8477 fi
8478 done
8479 if test "${ac_cv_search_ldexp+set}" = set; then :
8480
8481 else
8482   ac_cv_search_ldexp=no
8483 fi
8484 rm conftest.$ac_ext
8485 LIBS=$ac_func_search_save_LIBS
8486 fi
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8488 $as_echo "$ac_cv_search_ldexp" >&6; }
8489 ac_res=$ac_cv_search_ldexp
8490 if test "$ac_res" != no; then :
8491   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8492
8493 fi
8494
8495 LDEXP_LIB="$LIBS"
8496 LIBS="$save_LIBS"
8497
8498
8499 # Use <inttypes.h> only if it exists,
8500 # doesn't clash with <sys/types.h>, and declares intmax_t.
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8502 $as_echo_n "checking for inttypes.h... " >&6; }
8503 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8504   $as_echo_n "(cached) " >&6
8505 else
8506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h.  */
8508 #include <sys/types.h>
8509 #include <inttypes.h>
8510 int
8511 main ()
8512 {
8513 intmax_t i = -1;
8514   ;
8515   return 0;
8516 }
8517 _ACEOF
8518 if ac_fn_c_try_compile "$LINENO"; then :
8519   gcc_cv_header_inttypes_h=yes
8520 else
8521   gcc_cv_header_inttypes_h=no
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8527 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8528 if test $gcc_cv_header_inttypes_h = yes; then
8529
8530 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8531
8532 fi
8533
8534
8535
8536 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8537         sysconf strsignal getrusage nl_langinfo \
8538         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8539         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
8540 do :
8541   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8543 eval as_val=\$$as_ac_var
8544    if test "x$as_val" = x""yes; then :
8545   cat >>confdefs.h <<_ACEOF
8546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8547 _ACEOF
8548
8549 fi
8550 done
8551
8552
8553 if test x$ac_cv_func_mbstowcs = xyes; then
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8555 $as_echo_n "checking whether mbstowcs works... " >&6; }
8556 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8557   $as_echo_n "(cached) " >&6
8558 else
8559       if test "$cross_compiling" = yes; then :
8560   gcc_cv_func_mbstowcs_works=yes
8561 else
8562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h.  */
8564 #include <stdlib.h>
8565 int main()
8566 {
8567   mbstowcs(0, "", 0);
8568   return 0;
8569 }
8570 _ACEOF
8571 if ac_fn_c_try_run "$LINENO"; then :
8572   gcc_cv_func_mbstowcs_works=yes
8573 else
8574   gcc_cv_func_mbstowcs_works=no
8575 fi
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577   conftest.$ac_objext conftest.beam conftest.$ac_ext
8578 fi
8579
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8582 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8583   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8584
8585 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8586
8587   fi
8588 fi
8589
8590 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8591 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8592
8593 else
8594
8595 cat >>confdefs.h <<_ACEOF
8596 #define ssize_t int
8597 _ACEOF
8598
8599 fi
8600
8601 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8602 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8603
8604 else
8605
8606 cat >>confdefs.h <<_ACEOF
8607 #define caddr_t char *
8608 _ACEOF
8609
8610 fi
8611
8612
8613
8614 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8615 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8616   gcc_header_sys_mman_h=yes
8617 else
8618   gcc_header_sys_mman_h=no
8619 fi
8620
8621 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8622 if test "x$ac_cv_func_mmap" = x""yes; then :
8623   gcc_func_mmap=yes
8624 else
8625   gcc_func_mmap=no
8626 fi
8627
8628 if test "$gcc_header_sys_mman_h" != yes \
8629  || test "$gcc_func_mmap" != yes; then
8630    gcc_cv_func_mmap_file=no
8631    gcc_cv_func_mmap_dev_zero=no
8632    gcc_cv_func_mmap_anon=no
8633 else
8634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8635 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8636 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8637   $as_echo_n "(cached) " >&6
8638 else
8639   # Add a system to this blacklist if
8640    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8641    # memory area containing the same data that you'd get if you applied
8642    # read() to the same fd.  The only system known to have a problem here
8643    # is VMS, where text files have record structure.
8644    case "$host_os" in
8645      vms* | ultrix*)
8646         gcc_cv_func_mmap_file=no ;;
8647      *)
8648         gcc_cv_func_mmap_file=yes;;
8649    esac
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8652 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8654 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8655 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8656   $as_echo_n "(cached) " >&6
8657 else
8658   # Add a system to this blacklist if it has mmap() but /dev/zero
8659    # does not exist, or if mmapping /dev/zero does not give anonymous
8660    # zeroed pages with both the following properties:
8661    # 1. If you map N consecutive pages in with one call, and then
8662    #    unmap any subset of those pages, the pages that were not
8663    #    explicitly unmapped remain accessible.
8664    # 2. If you map two adjacent blocks of memory and then unmap them
8665    #    both at once, they must both go away.
8666    # Systems known to be in this category are Windows (all variants),
8667    # VMS, and Darwin.
8668    case "$host_os" in
8669      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8670         gcc_cv_func_mmap_dev_zero=no ;;
8671      *)
8672         gcc_cv_func_mmap_dev_zero=yes;;
8673    esac
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8676 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8677
8678    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8680 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8681 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h.  */
8686 #include <sys/types.h>
8687 #include <sys/mman.h>
8688 #include <unistd.h>
8689
8690 #ifndef MAP_ANONYMOUS
8691 #define MAP_ANONYMOUS MAP_ANON
8692 #endif
8693
8694 int
8695 main ()
8696 {
8697 int n = MAP_ANONYMOUS;
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"; then :
8703   gcc_cv_decl_map_anon=yes
8704 else
8705   gcc_cv_decl_map_anon=no
8706 fi
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8710 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8711
8712    if test $gcc_cv_decl_map_anon = no; then
8713      gcc_cv_func_mmap_anon=no
8714    else
8715      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8716 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8717 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8721    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8722    # doesn't give anonymous zeroed pages with the same properties listed
8723    # above for use of /dev/zero.
8724    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8725    case "$host_os" in
8726      vms* | cygwin* | pe | mingw* | sco* | udk* )
8727         gcc_cv_func_mmap_anon=no ;;
8728      *)
8729         gcc_cv_func_mmap_anon=yes;;
8730    esac
8731 fi
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8733 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8734    fi
8735 fi
8736
8737 if test $gcc_cv_func_mmap_file = yes; then
8738
8739 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8740
8741 fi
8742 if test $gcc_cv_func_mmap_dev_zero = yes; then
8743
8744 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8745
8746 fi
8747 if test $gcc_cv_func_mmap_anon = yes; then
8748
8749 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8750
8751 fi
8752
8753
8754 case "${host}" in
8755 *-*-*vms*)
8756   # Under VMS, vfork works very differently than on Unix. The standard test
8757   # won't work, and it isn't easily adaptable. It makes more sense to
8758   # just force it.
8759   ac_cv_func_vfork_works=yes
8760   ;;
8761 esac
8762 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8763 if test "x$ac_cv_type_pid_t" = x""yes; then :
8764
8765 else
8766
8767 cat >>confdefs.h <<_ACEOF
8768 #define pid_t int
8769 _ACEOF
8770
8771 fi
8772
8773 for ac_header in vfork.h
8774 do :
8775   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8776 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8777   cat >>confdefs.h <<_ACEOF
8778 #define HAVE_VFORK_H 1
8779 _ACEOF
8780
8781 fi
8782 done
8783
8784 for ac_func in fork vfork
8785 do :
8786   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8787 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8788 eval as_val=\$$as_ac_var
8789    if test "x$as_val" = x""yes; then :
8790   cat >>confdefs.h <<_ACEOF
8791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8792 _ACEOF
8793
8794 fi
8795 done
8796
8797 if test "x$ac_cv_func_fork" = xyes; then
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8799 $as_echo_n "checking for working fork... " >&6; }
8800 if test "${ac_cv_func_fork_works+set}" = set; then :
8801   $as_echo_n "(cached) " >&6
8802 else
8803   if test "$cross_compiling" = yes; then :
8804   ac_cv_func_fork_works=cross
8805 else
8806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h.  */
8808 $ac_includes_default
8809 int
8810 main ()
8811 {
8812
8813           /* By Ruediger Kuhlmann. */
8814           return fork () < 0;
8815
8816   ;
8817   return 0;
8818 }
8819 _ACEOF
8820 if ac_fn_c_try_run "$LINENO"; then :
8821   ac_cv_func_fork_works=yes
8822 else
8823   ac_cv_func_fork_works=no
8824 fi
8825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8826   conftest.$ac_objext conftest.beam conftest.$ac_ext
8827 fi
8828
8829 fi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8831 $as_echo "$ac_cv_func_fork_works" >&6; }
8832
8833 else
8834   ac_cv_func_fork_works=$ac_cv_func_fork
8835 fi
8836 if test "x$ac_cv_func_fork_works" = xcross; then
8837   case $host in
8838     *-*-amigaos* | *-*-msdosdjgpp*)
8839       # Override, as these systems have only a dummy fork() stub
8840       ac_cv_func_fork_works=no
8841       ;;
8842     *)
8843       ac_cv_func_fork_works=yes
8844       ;;
8845   esac
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8847 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8848 fi
8849 ac_cv_func_vfork_works=$ac_cv_func_vfork
8850 if test "x$ac_cv_func_vfork" = xyes; then
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8852 $as_echo_n "checking for working vfork... " >&6; }
8853 if test "${ac_cv_func_vfork_works+set}" = set; then :
8854   $as_echo_n "(cached) " >&6
8855 else
8856   if test "$cross_compiling" = yes; then :
8857   ac_cv_func_vfork_works=cross
8858 else
8859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h.  */
8861 /* Thanks to Paul Eggert for this test.  */
8862 $ac_includes_default
8863 #include <sys/wait.h>
8864 #ifdef HAVE_VFORK_H
8865 # include <vfork.h>
8866 #endif
8867 /* On some sparc systems, changes by the child to local and incoming
8868    argument registers are propagated back to the parent.  The compiler
8869    is told about this with #include <vfork.h>, but some compilers
8870    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8871    static variable whose address is put into a register that is
8872    clobbered by the vfork.  */
8873 static void
8874 #ifdef __cplusplus
8875 sparc_address_test (int arg)
8876 # else
8877 sparc_address_test (arg) int arg;
8878 #endif
8879 {
8880   static pid_t child;
8881   if (!child) {
8882     child = vfork ();
8883     if (child < 0) {
8884       perror ("vfork");
8885       _exit(2);
8886     }
8887     if (!child) {
8888       arg = getpid();
8889       write(-1, "", 0);
8890       _exit (arg);
8891     }
8892   }
8893 }
8894
8895 int
8896 main ()
8897 {
8898   pid_t parent = getpid ();
8899   pid_t child;
8900
8901   sparc_address_test (0);
8902
8903   child = vfork ();
8904
8905   if (child == 0) {
8906     /* Here is another test for sparc vfork register problems.  This
8907        test uses lots of local variables, at least as many local
8908        variables as main has allocated so far including compiler
8909        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8910        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8911        reuse the register of parent for one of the local variables,
8912        since it will think that parent can't possibly be used any more
8913        in this routine.  Assigning to the local variable will thus
8914        munge parent in the parent process.  */
8915     pid_t
8916       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8917       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8918     /* Convince the compiler that p..p7 are live; otherwise, it might
8919        use the same hardware register for all 8 local variables.  */
8920     if (p != p1 || p != p2 || p != p3 || p != p4
8921         || p != p5 || p != p6 || p != p7)
8922       _exit(1);
8923
8924     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8925        from child file descriptors.  If the child closes a descriptor
8926        before it execs or exits, this munges the parent's descriptor
8927        as well.  Test for this by closing stdout in the child.  */
8928     _exit(close(fileno(stdout)) != 0);
8929   } else {
8930     int status;
8931     struct stat st;
8932
8933     while (wait(&status) != child)
8934       ;
8935     return (
8936          /* Was there some problem with vforking?  */
8937          child < 0
8938
8939          /* Did the child fail?  (This shouldn't happen.)  */
8940          || status
8941
8942          /* Did the vfork/compiler bug occur?  */
8943          || parent != getpid()
8944
8945          /* Did the file descriptor bug occur?  */
8946          || fstat(fileno(stdout), &st) != 0
8947          );
8948   }
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_run "$LINENO"; then :
8952   ac_cv_func_vfork_works=yes
8953 else
8954   ac_cv_func_vfork_works=no
8955 fi
8956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8957   conftest.$ac_objext conftest.beam conftest.$ac_ext
8958 fi
8959
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8962 $as_echo "$ac_cv_func_vfork_works" >&6; }
8963
8964 fi;
8965 if test "x$ac_cv_func_fork_works" = xcross; then
8966   ac_cv_func_vfork_works=$ac_cv_func_vfork
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8968 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8969 fi
8970
8971 if test "x$ac_cv_func_vfork_works" = xyes; then
8972
8973 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8974
8975 else
8976
8977 $as_echo "#define vfork fork" >>confdefs.h
8978
8979 fi
8980 if test "x$ac_cv_func_fork_works" = xyes; then
8981
8982 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8983
8984 fi
8985
8986
8987
8988       if test "X$prefix" = "XNONE"; then
8989     acl_final_prefix="$ac_default_prefix"
8990   else
8991     acl_final_prefix="$prefix"
8992   fi
8993   if test "X$exec_prefix" = "XNONE"; then
8994     acl_final_exec_prefix='${prefix}'
8995   else
8996     acl_final_exec_prefix="$exec_prefix"
8997   fi
8998   acl_save_prefix="$prefix"
8999   prefix="$acl_final_prefix"
9000   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9001   prefix="$acl_save_prefix"
9002
9003
9004 # Check whether --with-gnu-ld was given.
9005 if test "${with_gnu_ld+set}" = set; then :
9006   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9007 else
9008   with_gnu_ld=no
9009 fi
9010
9011 # Prepare PATH_SEPARATOR.
9012 # The user is always right.
9013 if test "${PATH_SEPARATOR+set}" != set; then
9014   echo "#! /bin/sh" >conf$$.sh
9015   echo  "exit 0"   >>conf$$.sh
9016   chmod +x conf$$.sh
9017   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9018     PATH_SEPARATOR=';'
9019   else
9020     PATH_SEPARATOR=:
9021   fi
9022   rm -f conf$$.sh
9023 fi
9024 ac_prog=ld
9025 if test "$GCC" = yes; then
9026   # Check if gcc -print-prog-name=ld gives a path.
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9028 $as_echo_n "checking for ld used by GCC... " >&6; }
9029   case $host in
9030   *-*-mingw*)
9031     # gcc leaves a trailing carriage return which upsets mingw
9032     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9033   *)
9034     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9035   esac
9036   case $ac_prog in
9037     # Accept absolute paths.
9038     [\\/]* | [A-Za-z]:[\\/]*)
9039       re_direlt='/[^/][^/]*/\.\./'
9040       # Canonicalize the path of ld
9041       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9042       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9043         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9044       done
9045       test -z "$LD" && LD="$ac_prog"
9046       ;;
9047   "")
9048     # If it fails, then pretend we aren't using GCC.
9049     ac_prog=ld
9050     ;;
9051   *)
9052     # If it is relative, then search for the first ld in PATH.
9053     with_gnu_ld=unknown
9054     ;;
9055   esac
9056 elif test "$with_gnu_ld" = yes; then
9057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9058 $as_echo_n "checking for GNU ld... " >&6; }
9059 else
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9061 $as_echo_n "checking for non-GNU ld... " >&6; }
9062 fi
9063 if test "${acl_cv_path_LD+set}" = set; then :
9064   $as_echo_n "(cached) " >&6
9065 else
9066   if test -z "$LD"; then
9067   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9068   for ac_dir in $PATH; do
9069     test -z "$ac_dir" && ac_dir=.
9070     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9071       acl_cv_path_LD="$ac_dir/$ac_prog"
9072       # Check to see if the program is GNU ld.  I'd rather use --version,
9073       # but apparently some GNU ld's only accept -v.
9074       # Break only if it was the GNU/non-GNU ld that we prefer.
9075       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9076         test "$with_gnu_ld" != no && break
9077       else
9078         test "$with_gnu_ld" != yes && break
9079       fi
9080     fi
9081   done
9082   IFS="$ac_save_ifs"
9083 else
9084   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9085 fi
9086 fi
9087
9088 LD="$acl_cv_path_LD"
9089 if test -n "$LD"; then
9090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9091 $as_echo "$LD" >&6; }
9092 else
9093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9095 fi
9096 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9098 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9099 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9100   $as_echo_n "(cached) " >&6
9101 else
9102   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9103 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9104   acl_cv_prog_gnu_ld=yes
9105 else
9106   acl_cv_prog_gnu_ld=no
9107 fi
9108 fi
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9110 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9111 with_gnu_ld=$acl_cv_prog_gnu_ld
9112
9113
9114
9115                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9116 $as_echo_n "checking for shared library run path origin... " >&6; }
9117 if test "${acl_cv_rpath+set}" = set; then :
9118   $as_echo_n "(cached) " >&6
9119 else
9120
9121     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9122     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9123     . ./conftest.sh
9124     rm -f ./conftest.sh
9125     acl_cv_rpath=done
9126
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9129 $as_echo "$acl_cv_rpath" >&6; }
9130   wl="$acl_cv_wl"
9131   libext="$acl_cv_libext"
9132   shlibext="$acl_cv_shlibext"
9133   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9134   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9135   hardcode_direct="$acl_cv_hardcode_direct"
9136   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9137     # Check whether --enable-rpath was given.
9138 if test "${enable_rpath+set}" = set; then :
9139   enableval=$enable_rpath; :
9140 else
9141   enable_rpath=yes
9142 fi
9143
9144
9145
9146
9147
9148
9149
9150
9151     use_additional=yes
9152
9153   acl_save_prefix="$prefix"
9154   prefix="$acl_final_prefix"
9155   acl_save_exec_prefix="$exec_prefix"
9156   exec_prefix="$acl_final_exec_prefix"
9157
9158     eval additional_includedir=\"$includedir\"
9159     eval additional_libdir=\"$libdir\"
9160
9161   exec_prefix="$acl_save_exec_prefix"
9162   prefix="$acl_save_prefix"
9163
9164
9165 # Check whether --with-libiconv-prefix was given.
9166 if test "${with_libiconv_prefix+set}" = set; then :
9167   withval=$with_libiconv_prefix;
9168     if test "X$withval" = "Xno"; then
9169       use_additional=no
9170     else
9171       if test "X$withval" = "X"; then
9172
9173   acl_save_prefix="$prefix"
9174   prefix="$acl_final_prefix"
9175   acl_save_exec_prefix="$exec_prefix"
9176   exec_prefix="$acl_final_exec_prefix"
9177
9178           eval additional_includedir=\"$includedir\"
9179           eval additional_libdir=\"$libdir\"
9180
9181   exec_prefix="$acl_save_exec_prefix"
9182   prefix="$acl_save_prefix"
9183
9184       else
9185         additional_includedir="$withval/include"
9186         additional_libdir="$withval/lib"
9187       fi
9188     fi
9189
9190 fi
9191
9192       LIBICONV=
9193   LTLIBICONV=
9194   INCICONV=
9195   rpathdirs=
9196   ltrpathdirs=
9197   names_already_handled=
9198   names_next_round='iconv '
9199   while test -n "$names_next_round"; do
9200     names_this_round="$names_next_round"
9201     names_next_round=
9202     for name in $names_this_round; do
9203       already_handled=
9204       for n in $names_already_handled; do
9205         if test "$n" = "$name"; then
9206           already_handled=yes
9207           break
9208         fi
9209       done
9210       if test -z "$already_handled"; then
9211         names_already_handled="$names_already_handled $name"
9212                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9213         eval value=\"\$HAVE_LIB$uppername\"
9214         if test -n "$value"; then
9215           if test "$value" = yes; then
9216             eval value=\"\$LIB$uppername\"
9217             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9218             eval value=\"\$LTLIB$uppername\"
9219             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9220           else
9221                                     :
9222           fi
9223         else
9224                               found_dir=
9225           found_la=
9226           found_so=
9227           found_a=
9228           if test $use_additional = yes; then
9229             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9230               found_dir="$additional_libdir"
9231               found_so="$additional_libdir/lib$name.$shlibext"
9232               if test -f "$additional_libdir/lib$name.la"; then
9233                 found_la="$additional_libdir/lib$name.la"
9234               fi
9235             else
9236               if test -f "$additional_libdir/lib$name.$libext"; then
9237                 found_dir="$additional_libdir"
9238                 found_a="$additional_libdir/lib$name.$libext"
9239                 if test -f "$additional_libdir/lib$name.la"; then
9240                   found_la="$additional_libdir/lib$name.la"
9241                 fi
9242               fi
9243             fi
9244           fi
9245           if test "X$found_dir" = "X"; then
9246             for x in $LDFLAGS $LTLIBICONV; do
9247
9248   acl_save_prefix="$prefix"
9249   prefix="$acl_final_prefix"
9250   acl_save_exec_prefix="$exec_prefix"
9251   exec_prefix="$acl_final_exec_prefix"
9252   eval x=\"$x\"
9253   exec_prefix="$acl_save_exec_prefix"
9254   prefix="$acl_save_prefix"
9255
9256               case "$x" in
9257                 -L*)
9258                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9259                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9260                     found_dir="$dir"
9261                     found_so="$dir/lib$name.$shlibext"
9262                     if test -f "$dir/lib$name.la"; then
9263                       found_la="$dir/lib$name.la"
9264                     fi
9265                   else
9266                     if test -f "$dir/lib$name.$libext"; then
9267                       found_dir="$dir"
9268                       found_a="$dir/lib$name.$libext"
9269                       if test -f "$dir/lib$name.la"; then
9270                         found_la="$dir/lib$name.la"
9271                       fi
9272                     fi
9273                   fi
9274                   ;;
9275               esac
9276               if test "X$found_dir" != "X"; then
9277                 break
9278               fi
9279             done
9280           fi
9281           if test "X$found_dir" != "X"; then
9282                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9283             if test "X$found_so" != "X"; then
9284                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9285                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9286               else
9287                                                                                 haveit=
9288                 for x in $ltrpathdirs; do
9289                   if test "X$x" = "X$found_dir"; then
9290                     haveit=yes
9291                     break
9292                   fi
9293                 done
9294                 if test -z "$haveit"; then
9295                   ltrpathdirs="$ltrpathdirs $found_dir"
9296                 fi
9297                                 if test "$hardcode_direct" = yes; then
9298                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9299                 else
9300                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9301                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9302                                                             haveit=
9303                     for x in $rpathdirs; do
9304                       if test "X$x" = "X$found_dir"; then
9305                         haveit=yes
9306                         break
9307                       fi
9308                     done
9309                     if test -z "$haveit"; then
9310                       rpathdirs="$rpathdirs $found_dir"
9311                     fi
9312                   else
9313                                                                                 haveit=
9314                     for x in $LDFLAGS $LIBICONV; do
9315
9316   acl_save_prefix="$prefix"
9317   prefix="$acl_final_prefix"
9318   acl_save_exec_prefix="$exec_prefix"
9319   exec_prefix="$acl_final_exec_prefix"
9320   eval x=\"$x\"
9321   exec_prefix="$acl_save_exec_prefix"
9322   prefix="$acl_save_prefix"
9323
9324                       if test "X$x" = "X-L$found_dir"; then
9325                         haveit=yes
9326                         break
9327                       fi
9328                     done
9329                     if test -z "$haveit"; then
9330                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9331                     fi
9332                     if test "$hardcode_minus_L" != no; then
9333                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9334                     else
9335                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9336                     fi
9337                   fi
9338                 fi
9339               fi
9340             else
9341               if test "X$found_a" != "X"; then
9342                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9343               else
9344                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9345               fi
9346             fi
9347                         additional_includedir=
9348             case "$found_dir" in
9349               */lib | */lib/)
9350                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9351                 additional_includedir="$basedir/include"
9352                 ;;
9353             esac
9354             if test "X$additional_includedir" != "X"; then
9355                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9356                 haveit=
9357                 if test "X$additional_includedir" = "X/usr/local/include"; then
9358                   if test -n "$GCC"; then
9359                     case $host_os in
9360                       linux*) haveit=yes;;
9361                     esac
9362                   fi
9363                 fi
9364                 if test -z "$haveit"; then
9365                   for x in $CPPFLAGS $INCICONV; do
9366
9367   acl_save_prefix="$prefix"
9368   prefix="$acl_final_prefix"
9369   acl_save_exec_prefix="$exec_prefix"
9370   exec_prefix="$acl_final_exec_prefix"
9371   eval x=\"$x\"
9372   exec_prefix="$acl_save_exec_prefix"
9373   prefix="$acl_save_prefix"
9374
9375                     if test "X$x" = "X-I$additional_includedir"; then
9376                       haveit=yes
9377                       break
9378                     fi
9379                   done
9380                   if test -z "$haveit"; then
9381                     if test -d "$additional_includedir"; then
9382                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9383                     fi
9384                   fi
9385                 fi
9386               fi
9387             fi
9388                         if test -n "$found_la"; then
9389                                                         save_libdir="$libdir"
9390               case "$found_la" in
9391                 */* | *\\*) . "$found_la" ;;
9392                 *) . "./$found_la" ;;
9393               esac
9394               libdir="$save_libdir"
9395                             for dep in $dependency_libs; do
9396                 case "$dep" in
9397                   -L*)
9398                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9399                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9400                       haveit=
9401                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9402                         if test -n "$GCC"; then
9403                           case $host_os in
9404                             linux*) haveit=yes;;
9405                           esac
9406                         fi
9407                       fi
9408                       if test -z "$haveit"; then
9409                         haveit=
9410                         for x in $LDFLAGS $LIBICONV; do
9411
9412   acl_save_prefix="$prefix"
9413   prefix="$acl_final_prefix"
9414   acl_save_exec_prefix="$exec_prefix"
9415   exec_prefix="$acl_final_exec_prefix"
9416   eval x=\"$x\"
9417   exec_prefix="$acl_save_exec_prefix"
9418   prefix="$acl_save_prefix"
9419
9420                           if test "X$x" = "X-L$additional_libdir"; then
9421                             haveit=yes
9422                             break
9423                           fi
9424                         done
9425                         if test -z "$haveit"; then
9426                           if test -d "$additional_libdir"; then
9427                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9428                           fi
9429                         fi
9430                         haveit=
9431                         for x in $LDFLAGS $LTLIBICONV; do
9432
9433   acl_save_prefix="$prefix"
9434   prefix="$acl_final_prefix"
9435   acl_save_exec_prefix="$exec_prefix"
9436   exec_prefix="$acl_final_exec_prefix"
9437   eval x=\"$x\"
9438   exec_prefix="$acl_save_exec_prefix"
9439   prefix="$acl_save_prefix"
9440
9441                           if test "X$x" = "X-L$additional_libdir"; then
9442                             haveit=yes
9443                             break
9444                           fi
9445                         done
9446                         if test -z "$haveit"; then
9447                           if test -d "$additional_libdir"; then
9448                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9449                           fi
9450                         fi
9451                       fi
9452                     fi
9453                     ;;
9454                   -R*)
9455                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9456                     if test "$enable_rpath" != no; then
9457                                                                   haveit=
9458                       for x in $rpathdirs; do
9459                         if test "X$x" = "X$dir"; then
9460                           haveit=yes
9461                           break
9462                         fi
9463                       done
9464                       if test -z "$haveit"; then
9465                         rpathdirs="$rpathdirs $dir"
9466                       fi
9467                                                                   haveit=
9468                       for x in $ltrpathdirs; do
9469                         if test "X$x" = "X$dir"; then
9470                           haveit=yes
9471                           break
9472                         fi
9473                       done
9474                       if test -z "$haveit"; then
9475                         ltrpathdirs="$ltrpathdirs $dir"
9476                       fi
9477                     fi
9478                     ;;
9479                   -l*)
9480                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9481                     ;;
9482                   *.la)
9483                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9484                     ;;
9485                   *)
9486                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9487                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9488                     ;;
9489                 esac
9490               done
9491             fi
9492           else
9493                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9494             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9495           fi
9496         fi
9497       fi
9498     done
9499   done
9500   if test "X$rpathdirs" != "X"; then
9501     if test -n "$hardcode_libdir_separator"; then
9502                         alldirs=
9503       for found_dir in $rpathdirs; do
9504         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9505       done
9506             acl_save_libdir="$libdir"
9507       libdir="$alldirs"
9508       eval flag=\"$hardcode_libdir_flag_spec\"
9509       libdir="$acl_save_libdir"
9510       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9511     else
9512             for found_dir in $rpathdirs; do
9513         acl_save_libdir="$libdir"
9514         libdir="$found_dir"
9515         eval flag=\"$hardcode_libdir_flag_spec\"
9516         libdir="$acl_save_libdir"
9517         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9518       done
9519     fi
9520   fi
9521   if test "X$ltrpathdirs" != "X"; then
9522             for found_dir in $ltrpathdirs; do
9523       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9524     done
9525   fi
9526
9527
9528
9529
9530
9531
9532
9533           am_save_CPPFLAGS="$CPPFLAGS"
9534
9535   for element in $INCICONV; do
9536     haveit=
9537     for x in $CPPFLAGS; do
9538
9539   acl_save_prefix="$prefix"
9540   prefix="$acl_final_prefix"
9541   acl_save_exec_prefix="$exec_prefix"
9542   exec_prefix="$acl_final_exec_prefix"
9543   eval x=\"$x\"
9544   exec_prefix="$acl_save_exec_prefix"
9545   prefix="$acl_save_prefix"
9546
9547       if test "X$x" = "X$element"; then
9548         haveit=yes
9549         break
9550       fi
9551     done
9552     if test -z "$haveit"; then
9553       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9554     fi
9555   done
9556
9557
9558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9559 $as_echo_n "checking for iconv... " >&6; }
9560 if test "${am_cv_func_iconv+set}" = set; then :
9561   $as_echo_n "(cached) " >&6
9562 else
9563
9564     am_cv_func_iconv="no, consider installing GNU libiconv"
9565     am_cv_lib_iconv=no
9566     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h.  */
9568 #include <stdlib.h>
9569 #include <iconv.h>
9570 int
9571 main ()
9572 {
9573 iconv_t cd = iconv_open("","");
9574        iconv(cd,NULL,NULL,NULL,NULL);
9575        iconv_close(cd);
9576   ;
9577   return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581   am_cv_func_iconv=yes
9582 fi
9583 rm -f core conftest.err conftest.$ac_objext \
9584     conftest$ac_exeext conftest.$ac_ext
9585     if test "$am_cv_func_iconv" != yes; then
9586       am_save_LIBS="$LIBS"
9587       LIBS="$LIBS $LIBICONV"
9588       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h.  */
9590 #include <stdlib.h>
9591 #include <iconv.h>
9592 int
9593 main ()
9594 {
9595 iconv_t cd = iconv_open("","");
9596          iconv(cd,NULL,NULL,NULL,NULL);
9597          iconv_close(cd);
9598   ;
9599   return 0;
9600 }
9601 _ACEOF
9602 if ac_fn_c_try_link "$LINENO"; then :
9603   am_cv_lib_iconv=yes
9604         am_cv_func_iconv=yes
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext \
9607     conftest$ac_exeext conftest.$ac_ext
9608       LIBS="$am_save_LIBS"
9609     fi
9610
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9613 $as_echo "$am_cv_func_iconv" >&6; }
9614   if test "$am_cv_func_iconv" = yes; then
9615
9616 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9617
9618   fi
9619   if test "$am_cv_lib_iconv" = yes; then
9620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9621 $as_echo_n "checking how to link with libiconv... " >&6; }
9622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9623 $as_echo "$LIBICONV" >&6; }
9624   else
9625             CPPFLAGS="$am_save_CPPFLAGS"
9626     LIBICONV=
9627     LTLIBICONV=
9628   fi
9629
9630
9631
9632   if test "$am_cv_func_iconv" = yes; then
9633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9634 $as_echo_n "checking for iconv declaration... " >&6; }
9635     if test "${am_cv_proto_iconv+set}" = set; then :
9636   $as_echo_n "(cached) " >&6
9637 else
9638
9639       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h.  */
9641
9642 #include <stdlib.h>
9643 #include <iconv.h>
9644 extern
9645 #ifdef __cplusplus
9646 "C"
9647 #endif
9648 #if defined(__STDC__) || defined(__cplusplus)
9649 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9650 #else
9651 size_t iconv();
9652 #endif
9653
9654 int
9655 main ()
9656 {
9657
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 if ac_fn_c_try_compile "$LINENO"; then :
9663   am_cv_proto_iconv_arg1=""
9664 else
9665   am_cv_proto_iconv_arg1="const"
9666 fi
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668       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);"
9669 fi
9670
9671     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9673          }$am_cv_proto_iconv" >&5
9674 $as_echo "${ac_t:-
9675          }$am_cv_proto_iconv" >&6; }
9676
9677 cat >>confdefs.h <<_ACEOF
9678 #define ICONV_CONST $am_cv_proto_iconv_arg1
9679 _ACEOF
9680
9681   fi
9682
9683 # Until we have in-tree GNU iconv:
9684 LIBICONV_DEP=
9685
9686
9687
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9689 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9690 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9691   $as_echo_n "(cached) " >&6
9692 else
9693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h.  */
9695 #include <locale.h>
9696 int
9697 main ()
9698 {
9699 return LC_MESSAGES
9700   ;
9701   return 0;
9702 }
9703 _ACEOF
9704 if ac_fn_c_try_link "$LINENO"; then :
9705   am_cv_val_LC_MESSAGES=yes
9706 else
9707   am_cv_val_LC_MESSAGES=no
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext \
9710     conftest$ac_exeext conftest.$ac_ext
9711 fi
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9713 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9714   if test $am_cv_val_LC_MESSAGES = yes; then
9715
9716 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9717
9718   fi
9719
9720
9721
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9723 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9724 if test "${am_cv_langinfo_codeset+set}" = set; then :
9725   $as_echo_n "(cached) " >&6
9726 else
9727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h.  */
9729 #include <langinfo.h>
9730 int
9731 main ()
9732 {
9733 char* cs = nl_langinfo(CODESET);
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739   am_cv_langinfo_codeset=yes
9740 else
9741   am_cv_langinfo_codeset=no
9742 fi
9743 rm -f core conftest.err conftest.$ac_objext \
9744     conftest$ac_exeext conftest.$ac_ext
9745
9746 fi
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9748 $as_echo "$am_cv_langinfo_codeset" >&6; }
9749   if test $am_cv_langinfo_codeset = yes; then
9750
9751 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9752
9753   fi
9754
9755
9756 # We will need to find libiberty.h and ansidecl.h
9757 saved_CFLAGS="$CFLAGS"
9758 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9759 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9760         strsignal strstr strverscmp \
9761         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9762         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
9763 do
9764   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9766 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9767 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9768   $as_echo_n "(cached) " >&6
9769 else
9770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h.  */
9772 #undef $ac_tr_decl
9773 #define $ac_tr_decl 1
9774
9775 #include "ansidecl.h"
9776 #include "system.h"
9777
9778 int
9779 main ()
9780 {
9781 #ifndef $ac_func
9782 char *(*pfn) = (char *(*)) $ac_func ;
9783 #endif
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 if ac_fn_c_try_compile "$LINENO"; then :
9789   eval "gcc_cv_have_decl_$ac_func=yes"
9790 else
9791   eval "gcc_cv_have_decl_$ac_func=no"
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 fi
9795
9796 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9798 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9799 #define $ac_tr_decl 1
9800 _ACEOF
9801
9802 else
9803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9805 #define $ac_tr_decl 0
9806 _ACEOF
9807
9808 fi
9809
9810 done
9811
9812
9813 for ac_func in getrlimit setrlimit getrusage
9814 do
9815   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9817 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9818 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9819   $as_echo_n "(cached) " >&6
9820 else
9821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h.  */
9823 #undef $ac_tr_decl
9824 #define $ac_tr_decl 1
9825
9826 #include "ansidecl.h"
9827 #include "system.h"
9828 #ifdef HAVE_SYS_RESOURCE_H
9829 #include <sys/resource.h>
9830 #endif
9831
9832
9833 int
9834 main ()
9835 {
9836 #ifndef $ac_func
9837 char *(*pfn) = (char *(*)) $ac_func ;
9838 #endif
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 if ac_fn_c_try_compile "$LINENO"; then :
9844   eval "gcc_cv_have_decl_$ac_func=yes"
9845 else
9846   eval "gcc_cv_have_decl_$ac_func=no"
9847 fi
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 fi
9850
9851 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9853 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9854 #define $ac_tr_decl 1
9855 _ACEOF
9856
9857 else
9858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9860 #define $ac_tr_decl 0
9861 _ACEOF
9862
9863 fi
9864
9865 done
9866
9867
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h.  */
9870
9871 #include "ansidecl.h"
9872 #include "system.h"
9873 #ifdef HAVE_SYS_RESOURCE_H
9874 #include <sys/resource.h>
9875 #endif
9876
9877 int
9878 main ()
9879 {
9880 rlim_t l = 0;
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 if ac_fn_c_try_compile "$LINENO"; then :
9886
9887 else
9888
9889 $as_echo "#define rlim_t long" >>confdefs.h
9890
9891 fi
9892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9893
9894 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9895 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9896 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9897 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9898 for ac_func in ldgetname
9899 do
9900   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9902 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9903 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9904   $as_echo_n "(cached) " >&6
9905 else
9906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h.  */
9908 #undef $ac_tr_decl
9909 #define $ac_tr_decl 1
9910
9911 #include "ansidecl.h"
9912 #include "system.h"
9913 #ifdef HAVE_LDFCN_H
9914 #undef FREAD
9915 #undef FWRITE
9916 #include <ldfcn.h>
9917 #endif
9918
9919
9920 int
9921 main ()
9922 {
9923 #ifndef $ac_func
9924 char *(*pfn) = (char *(*)) $ac_func ;
9925 #endif
9926   ;
9927   return 0;
9928 }
9929 _ACEOF
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931   eval "gcc_cv_have_decl_$ac_func=yes"
9932 else
9933   eval "gcc_cv_have_decl_$ac_func=no"
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 fi
9937
9938 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9940 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9941 #define $ac_tr_decl 1
9942 _ACEOF
9943
9944 else
9945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9947 #define $ac_tr_decl 0
9948 _ACEOF
9949
9950 fi
9951
9952 done
9953
9954
9955 for ac_func in times
9956 do
9957   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9959 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9960 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9961   $as_echo_n "(cached) " >&6
9962 else
9963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h.  */
9965 #undef $ac_tr_decl
9966 #define $ac_tr_decl 1
9967
9968 #include "ansidecl.h"
9969 #include "system.h"
9970 #ifdef HAVE_SYS_TIMES_H
9971 #include <sys/times.h>
9972 #endif
9973
9974
9975 int
9976 main ()
9977 {
9978 #ifndef $ac_func
9979 char *(*pfn) = (char *(*)) $ac_func ;
9980 #endif
9981   ;
9982   return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_compile "$LINENO"; then :
9986   eval "gcc_cv_have_decl_$ac_func=yes"
9987 else
9988   eval "gcc_cv_have_decl_$ac_func=no"
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 fi
9992
9993 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9995 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9996 #define $ac_tr_decl 1
9997 _ACEOF
9998
9999 else
10000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10002 #define $ac_tr_decl 0
10003 _ACEOF
10004
10005 fi
10006
10007 done
10008
10009
10010 for ac_func in sigaltstack
10011 do
10012   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10014 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10015 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10016   $as_echo_n "(cached) " >&6
10017 else
10018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h.  */
10020 #undef $ac_tr_decl
10021 #define $ac_tr_decl 1
10022
10023 #include "ansidecl.h"
10024 #include "system.h"
10025 #include <signal.h>
10026
10027
10028 int
10029 main ()
10030 {
10031 #ifndef $ac_func
10032 char *(*pfn) = (char *(*)) $ac_func ;
10033 #endif
10034   ;
10035   return 0;
10036 }
10037 _ACEOF
10038 if ac_fn_c_try_compile "$LINENO"; then :
10039   eval "gcc_cv_have_decl_$ac_func=yes"
10040 else
10041   eval "gcc_cv_have_decl_$ac_func=no"
10042 fi
10043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044 fi
10045
10046 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10048 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10049 #define $ac_tr_decl 1
10050 _ACEOF
10051
10052 else
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10055 #define $ac_tr_decl 0
10056 _ACEOF
10057
10058 fi
10059
10060 done
10061
10062
10063 # More time-related stuff.
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10065 $as_echo_n "checking for struct tms... " >&6; }
10066 if test "${ac_cv_struct_tms+set}" = set; then :
10067   $as_echo_n "(cached) " >&6
10068 else
10069
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h.  */
10072
10073 #include "ansidecl.h"
10074 #include "system.h"
10075 #ifdef HAVE_SYS_TIMES_H
10076 #include <sys/times.h>
10077 #endif
10078
10079 int
10080 main ()
10081 {
10082 struct tms tms;
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 if ac_fn_c_try_compile "$LINENO"; then :
10088   ac_cv_struct_tms=yes
10089 else
10090   ac_cv_struct_tms=no
10091 fi
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 fi
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10095 $as_echo "$ac_cv_struct_tms" >&6; }
10096 if test $ac_cv_struct_tms = yes; then
10097
10098 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10099
10100 fi
10101
10102 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10103 # revisit after autoconf 2.50.
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10105 $as_echo_n "checking for clock_t... " >&6; }
10106 if test "${gcc_cv_type_clock_t+set}" = set; then :
10107   $as_echo_n "(cached) " >&6
10108 else
10109
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h.  */
10112
10113 #include "ansidecl.h"
10114 #include "system.h"
10115
10116 int
10117 main ()
10118 {
10119 clock_t x;
10120   ;
10121   return 0;
10122 }
10123 _ACEOF
10124 if ac_fn_c_try_compile "$LINENO"; then :
10125   gcc_cv_type_clock_t=yes
10126 else
10127   gcc_cv_type_clock_t=no
10128 fi
10129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130 fi
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10132 $as_echo "$gcc_cv_type_clock_t" >&6; }
10133 if test $gcc_cv_type_clock_t = yes; then
10134
10135 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10136
10137 fi
10138
10139 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10140 CFLAGS="$saved_CFLAGS"
10141
10142 # Check whether --enable-initfini-array was given.
10143 if test "${enable_initfini_array+set}" = set; then :
10144   enableval=$enable_initfini_array;
10145 else
10146
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10148 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10149 if test "${gcc_cv_initfini_array+set}" = set; then :
10150   $as_echo_n "(cached) " >&6
10151 else
10152     if test "$cross_compiling" = yes; then :
10153   gcc_cv_initfini_array=no
10154 else
10155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h.  */
10157
10158 static int x = -1;
10159 int main (void) { return x; }
10160 int foo (void) { x = 0; }
10161 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10162 _ACEOF
10163 if ac_fn_c_try_run "$LINENO"; then :
10164   gcc_cv_initfini_array=yes
10165 else
10166   gcc_cv_initfini_array=no
10167 fi
10168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10169   conftest.$ac_objext conftest.beam conftest.$ac_ext
10170 fi
10171
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10174 $as_echo "$gcc_cv_initfini_array" >&6; }
10175   enable_initfini_array=$gcc_cv_initfini_array
10176
10177 fi
10178
10179 if test $enable_initfini_array = yes; then
10180
10181 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10182
10183 fi
10184
10185 # mkdir takes a single argument on some systems.
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10187 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10188 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10189   $as_echo_n "(cached) " >&6
10190 else
10191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h.  */
10193
10194 #include <sys/types.h>
10195 #ifdef HAVE_SYS_STAT_H
10196 # include <sys/stat.h>
10197 #endif
10198 #ifdef HAVE_UNISTD_H
10199 # include <unistd.h>
10200 #endif
10201 #ifdef HAVE_DIRECT_H
10202 # include <direct.h>
10203 #endif
10204 int
10205 main ()
10206 {
10207 mkdir ("foo", 0);
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 if ac_fn_c_try_compile "$LINENO"; then :
10213   gcc_cv_mkdir_takes_one_arg=no
10214 else
10215   gcc_cv_mkdir_takes_one_arg=yes
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10220 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10221 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10222
10223 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10224
10225 fi
10226
10227
10228 # File extensions
10229 manext='.1'
10230 objext='.o'
10231
10232
10233
10234 # With Setjmp/Longjmp based exception handling.
10235 # Check whether --enable-sjlj-exceptions was given.
10236 if test "${enable_sjlj_exceptions+set}" = set; then :
10237   enableval=$enable_sjlj_exceptions; case $target in
10238   *-*-hpux10*)
10239     if test $enableval != yes; then
10240       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10241 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10242       enableval=yes
10243     fi
10244     ;;
10245 esac
10246 force_sjlj_exceptions=yes
10247 else
10248   case $target in
10249   *-*-hpux10*)
10250     force_sjlj_exceptions=yes
10251     enableval=yes
10252     ;;
10253   *)
10254     force_sjlj_exceptions=no
10255     ;;
10256 esac
10257 fi
10258
10259 if test $force_sjlj_exceptions = yes; then
10260   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10261
10262 cat >>confdefs.h <<_ACEOF
10263 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10264 _ACEOF
10265
10266 fi
10267
10268 # For platforms with the unwind ABI which includes an unwind library,
10269 # libunwind, we can choose to use the system libunwind.
10270 # config.gcc also contains tests of with_system_libunwind.
10271
10272
10273 # Check whether --with-system-libunwind was given.
10274 if test "${with_system_libunwind+set}" = set; then :
10275   withval=$with_system_libunwind;
10276 fi
10277
10278   # If system-libunwind was not specifically set, pick a default setting.
10279   if test x$with_system_libunwind = x; then
10280     case ${target} in
10281       ia64-*-hpux*) with_system_libunwind=yes ;;
10282       *) with_system_libunwind=no ;;
10283     esac
10284   fi
10285   # Based on system-libunwind and target, do we have ipinfo?
10286   if  test x$with_system_libunwind = xyes; then
10287     case ${target} in
10288       ia64-*-*) have_unwind_getipinfo=no ;;
10289       *) have_unwind_getipinfo=yes ;;
10290     esac
10291   else
10292     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10293
10294     case ${target} in
10295       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10296       *) have_unwind_getipinfo=yes ;;
10297     esac
10298
10299   fi
10300
10301   if test x$have_unwind_getipinfo = xyes; then
10302
10303 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10304
10305   fi
10306
10307
10308 # --------------------------------------------------------
10309 # Build, host, and target specific configuration fragments
10310 # --------------------------------------------------------
10311
10312 # Collect build-machine-specific information.
10313 . ${srcdir}/config.build
10314
10315 # Collect host-machine-specific information.
10316 . ${srcdir}/config.host
10317
10318 target_gtfiles=
10319
10320 # Collect target-machine-specific information.
10321 . ${srcdir}/config.gcc
10322
10323 extra_objs="${host_extra_objs} ${extra_objs}"
10324 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10325
10326 # Default the target-machine variables that were not explicitly set.
10327 if test x"$tm_file" = x
10328 then tm_file=$cpu_type/$cpu_type.h; fi
10329
10330 if test x"$extra_headers" = x
10331 then extra_headers=; fi
10332
10333 if test x$md_file = x
10334 then md_file=$cpu_type/$cpu_type.md; fi
10335
10336 if test x$out_file = x
10337 then out_file=$cpu_type/$cpu_type.c; fi
10338
10339 if test x"$tmake_file" = x
10340 then tmake_file=$cpu_type/t-$cpu_type
10341 fi
10342
10343 if test x"$dwarf2" = xyes
10344 then tm_file="$tm_file tm-dwarf2.h"
10345 fi
10346
10347 # Say what files are being used for the output code and MD file.
10348 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10349 echo "Using \`$srcdir/config/$md_file' as machine description file."
10350
10351 # If any of the xm_file variables contain nonexistent files, warn
10352 # about them and drop them.
10353
10354 bx=
10355 for x in $build_xm_file; do
10356   if    test -f $srcdir/config/$x
10357   then      bx="$bx $x"
10358   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10359 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10360   fi
10361 done
10362 build_xm_file="$bx"
10363
10364 hx=
10365 for x in $host_xm_file; do
10366   if    test -f $srcdir/config/$x
10367   then      hx="$hx $x"
10368   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10369 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10370   fi
10371 done
10372 host_xm_file="$hx"
10373
10374 tx=
10375 for x in $xm_file; do
10376   if    test -f $srcdir/config/$x
10377   then      tx="$tx $x"
10378   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10379 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10380   fi
10381 done
10382 xm_file="$tx"
10383
10384 count=a
10385 for f in $tm_file; do
10386         count=${count}x
10387 done
10388 if test $count = ax; then
10389         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10390 else
10391         echo "Using the following target machine macro files:"
10392         for f in $tm_file; do
10393                 echo "  $srcdir/config/$f"
10394         done
10395 fi
10396
10397 if test x$need_64bit_hwint = xyes; then
10398
10399 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10400
10401 fi
10402
10403 if test x$use_long_long_for_widest_fast_int = xyes; then
10404
10405 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10406
10407 fi
10408
10409 count=a
10410 for f in $host_xm_file; do
10411         count=${count}x
10412 done
10413 if test $count = a; then
10414         :
10415 elif test $count = ax; then
10416         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10417 else
10418         echo "Using the following host machine macro files:"
10419         for f in $host_xm_file; do
10420                 echo "  $srcdir/config/$f"
10421         done
10422 fi
10423 echo "Using ${out_host_hook_obj} for host machine hooks."
10424
10425 if test "$host_xm_file" != "$build_xm_file"; then
10426         count=a
10427         for f in $build_xm_file; do
10428                 count=${count}x
10429         done
10430         if test $count = a; then
10431                 :
10432         elif test $count = ax; then
10433                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10434         else
10435                 echo "Using the following build machine macro files:"
10436                 for f in $build_xm_file; do
10437                         echo "  $srcdir/config/$f"
10438                 done
10439         fi
10440 fi
10441
10442 case ${host} in
10443   powerpc*-*-darwin*)
10444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10445 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10446 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10447   $as_echo_n "(cached) " >&6
10448 else
10449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h.  */
10451
10452 #include <sys/cdefs.h>
10453 #include <sys/signal.h>
10454 #include <ucontext.h>
10455 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10456
10457 _ACEOF
10458 if ac_fn_c_try_compile "$LINENO"; then :
10459   gcc_cv_mcontext_underscores=no
10460 else
10461   gcc_cv_mcontext_underscores=yes
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 fi
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10466 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10467       if test $gcc_cv_mcontext_underscores = yes; then
10468
10469 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10470
10471       fi
10472     ;;
10473 esac
10474
10475 # ---------
10476 # Threading
10477 # ---------
10478
10479 # Check if a valid thread package
10480 case ${enable_threads} in
10481   "" | no)
10482     # No threads
10483     target_thread_file='single'
10484     ;;
10485   yes)
10486     # default
10487     target_thread_file='single'
10488     ;;
10489   aix | dce | gnat | irix | posix | posix95 | rtems | \
10490   single | solaris | vxworks | win32 | mipssde)
10491     target_thread_file=${enable_threads}
10492     ;;
10493   *)
10494     echo "${enable_threads} is an unknown thread package" 1>&2
10495     exit 1
10496     ;;
10497 esac
10498
10499 if test x${thread_file} = x; then
10500   # No thread file set by target-specific clauses in config.gcc,
10501   # so use file chosen by default logic above
10502   thread_file=${target_thread_file}
10503 fi
10504
10505 # Make gthr-default.h if we have a thread file.
10506 gthread_flags=
10507 if test $thread_file != single; then
10508   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10509   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10510     rm -f gthr-default.h-t
10511   else
10512     mv -f gthr-default.h-t gthr-default.h
10513   fi
10514   gthread_flags=-DHAVE_GTHR_DEFAULT
10515 fi
10516
10517
10518 # --------
10519 # UNSORTED
10520 # --------
10521
10522 use_cxa_atexit=no
10523 if test x$enable___cxa_atexit = xyes || \
10524    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10525   if test x$host = x$target; then
10526     case $host in
10527       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10528       # keyed to flag_use_cxa_atexit
10529       *-*-mingw32*)
10530         use_cxa_atexit=yes
10531         ;;
10532       *)
10533         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10534 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10535   use_cxa_atexit=yes
10536 else
10537   echo "__cxa_atexit can't be enabled on this target"
10538 fi
10539
10540         ;;
10541     esac
10542   else
10543     # We can't check for __cxa_atexit when building a cross, so assume
10544     # it is available
10545     use_cxa_atexit=yes
10546   fi
10547   if test x$use_cxa_atexit = xyes; then
10548
10549 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10550
10551   fi
10552 fi
10553
10554 # Look for a file containing extra machine modes.
10555 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10556   extra_modes_file='$(srcdir)'/config/${extra_modes}
10557
10558
10559 cat >>confdefs.h <<_ACEOF
10560 #define EXTRA_MODES_FILE "config/$extra_modes"
10561 _ACEOF
10562
10563 fi
10564
10565 # Convert extra_options into a form suitable for Makefile use.
10566 extra_opt_files=
10567 for f in $extra_options; do
10568   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10569 done
10570
10571
10572 # auto-host.h is the file containing items generated by autoconf and is
10573 # the first file included by config.h.
10574 # If host=build, it is correct to have bconfig include auto-host.h
10575 # as well.  If host!=build, we are in error and need to do more
10576 # work to find out the build config parameters.
10577 if test x$host = x$build
10578 then
10579         build_auto=auto-host.h
10580 else
10581         # We create a subdir, then run autoconf in the subdir.
10582         # To prevent recursion we set host and build for the new
10583         # invocation of configure to the build for this invocation
10584         # of configure.
10585         tempdir=build.$$
10586         rm -rf $tempdir
10587         mkdir $tempdir
10588         cd $tempdir
10589         case ${srcdir} in
10590         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10591         *) realsrcdir=../${srcdir};;
10592         esac
10593         saved_CFLAGS="${CFLAGS}"
10594         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10595         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10596         ${realsrcdir}/configure \
10597                 --enable-languages=${enable_languages-all} \
10598                 --target=$target_alias --host=$build_alias --build=$build_alias
10599         CFLAGS="${saved_CFLAGS}"
10600
10601         # We just finished tests for the build machine, so rename
10602         # the file auto-build.h in the gcc directory.
10603         mv auto-host.h ../auto-build.h
10604         cd ..
10605         rm -rf $tempdir
10606         build_auto=auto-build.h
10607 fi
10608
10609
10610 tm_file="${tm_file} defaults.h"
10611 tm_p_file="${tm_p_file} tm-preds.h"
10612 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10613 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10614 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10615 # put this back in temporarily.
10616 xm_file="auto-host.h ansidecl.h ${xm_file}"
10617
10618 # --------
10619 # UNSORTED
10620 # --------
10621
10622 # Compile in configure arguments.
10623 if test -f configargs.h ; then
10624         # Being re-configured.
10625         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10626         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10627 else
10628         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10629 fi
10630
10631 # Double all backslashes and backslash all quotes to turn
10632 # gcc_config_arguments into a C string.
10633 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10634 $gcc_config_arguments
10635 EOF
10636 gcc_config_arguments_str=`cat conftest.out`
10637 rm -f conftest.out
10638
10639 cat > configargs.h <<EOF
10640 /* Generated automatically. */
10641 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10642 static const char thread_model[] = "$thread_file";
10643
10644 static const struct {
10645   const char *name, *value;
10646 } configure_default_options[] = $configure_default_options;
10647 EOF
10648
10649 gcc_BASEVER=`cat $srcdir/BASE-VER`
10650 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10651 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10652 if test -f $srcdir/REVISION ; then
10653         gcc_REVISION=`cat $srcdir/REVISION`
10654 else
10655         gcc_REVISION=""
10656 fi
10657 cat > plugin-version.h <<EOF
10658 #include "configargs.h"
10659
10660 static char basever[] = "$gcc_BASEVER";
10661 static char datestamp[] = "$gcc_DATESTAMP";
10662 static char devphase[] = "$gcc_DEVPHASE";
10663 static char revision[] = "$gcc_REVISION";
10664
10665 /* FIXME plugins: We should make the version information more precise.
10666    One way to do is to add a checksum. */
10667
10668 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10669                                                 devphase, revision,
10670                                                 configuration_arguments};
10671 EOF
10672
10673 # Internationalization
10674 # If we haven't got the data from the intl directory,
10675 # assume NLS is disabled.
10676 USE_NLS=no
10677 LIBINTL=
10678 LIBINTL_DEP=
10679 INCINTL=
10680 XGETTEXT=
10681 GMSGFMT=
10682 POSUB=
10683
10684 if test -f  ../intl/config.intl; then
10685   .  ../intl/config.intl
10686 fi
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10688 $as_echo_n "checking whether NLS is requested... " >&6; }
10689 if test x"$USE_NLS" != xyes; then
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10692 else
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10694 $as_echo "yes" >&6; }
10695
10696 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10697
10698
10699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10700 $as_echo_n "checking for catalogs to be installed... " >&6; }
10701   # Look for .po and .gmo files in the source directory.
10702   CATALOGS=
10703   XLINGUAS=
10704   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10705     # If there aren't any .gmo files the shell will give us the
10706     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10707     # weeded out.
10708     case "$cat" in *\**)
10709       continue;;
10710     esac
10711     # The quadruple backslash is collapsed to a double backslash
10712     # by the backticks, then collapsed again by the double quotes,
10713     # leaving us with one backslash in the sed expression (right
10714     # before the dot that mustn't act as a wildcard).
10715     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10716     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10717     # The user is allowed to set LINGUAS to a list of languages to
10718     # install catalogs for.  If it's empty that means "all of them."
10719     if test "x$LINGUAS" = x; then
10720       CATALOGS="$CATALOGS $cat"
10721       XLINGUAS="$XLINGUAS $lang"
10722     else
10723       case "$LINGUAS" in *$lang*)
10724         CATALOGS="$CATALOGS $cat"
10725         XLINGUAS="$XLINGUAS $lang"
10726         ;;
10727       esac
10728     fi
10729   done
10730   LINGUAS="$XLINGUAS"
10731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10732 $as_echo "$LINGUAS" >&6; }
10733
10734
10735     DATADIRNAME=share
10736
10737   INSTOBJEXT=.mo
10738
10739   GENCAT=gencat
10740
10741   CATOBJEXT=.gmo
10742
10743 fi
10744
10745 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10746 # -liconv on the link line twice.
10747 case "$LIBINTL" in *$LIBICONV*)
10748         LIBICONV= ;;
10749 esac
10750
10751 # Check whether --enable-secureplt was given.
10752 if test "${enable_secureplt+set}" = set; then :
10753   enableval=$enable_secureplt;
10754 fi
10755
10756
10757 # Check whether --enable-cld was given.
10758 if test "${enable_cld+set}" = set; then :
10759   enableval=$enable_cld;
10760 else
10761   enable_cld=no
10762 fi
10763
10764
10765 # Windows32 Registry support for specifying GCC installation paths.
10766 # Check whether --enable-win32-registry was given.
10767 if test "${enable_win32_registry+set}" = set; then :
10768   enableval=$enable_win32_registry;
10769 fi
10770
10771
10772 case $host_os in
10773   win32 | pe | cygwin* | mingw32* | uwin*)
10774     if test "x$enable_win32_registry" != xno; then
10775       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10776 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10777 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10778   $as_echo_n "(cached) " >&6
10779 else
10780   ac_func_search_save_LIBS=$LIBS
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h.  */
10783
10784 /* Override any GCC internal prototype to avoid an error.
10785    Use char because int might match the return type of a GCC
10786    builtin and then its argument prototype would still apply.  */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char RegOpenKeyExA ();
10791 int
10792 main ()
10793 {
10794 return RegOpenKeyExA ();
10795   ;
10796   return 0;
10797 }
10798 _ACEOF
10799 for ac_lib in '' advapi32; do
10800   if test -z "$ac_lib"; then
10801     ac_res="none required"
10802   else
10803     ac_res=-l$ac_lib
10804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10805   fi
10806   if ac_fn_c_try_link "$LINENO"; then :
10807   ac_cv_search_RegOpenKeyExA=$ac_res
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext \
10810     conftest$ac_exeext
10811   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10812   break
10813 fi
10814 done
10815 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10816
10817 else
10818   ac_cv_search_RegOpenKeyExA=no
10819 fi
10820 rm conftest.$ac_ext
10821 LIBS=$ac_func_search_save_LIBS
10822 fi
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10824 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10825 ac_res=$ac_cv_search_RegOpenKeyExA
10826 if test "$ac_res" != no; then :
10827   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10828
10829 else
10830   enable_win32_registry=no
10831 fi
10832
10833     fi
10834
10835     if test "x$enable_win32_registry" != xno; then
10836
10837 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10838
10839
10840       if test "x$enable_win32_registry" != xyes \
10841          && test "x$enable_win32_registry" != x; then
10842
10843 cat >>confdefs.h <<_ACEOF
10844 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10845 _ACEOF
10846
10847       fi
10848     fi
10849   ;;
10850 esac
10851
10852 # Get an absolute path to the GCC top-level source directory
10853 holddir=`${PWDCMD-pwd}`
10854 cd $srcdir
10855 topdir=`${PWDCMD-pwd}`
10856 cd $holddir
10857
10858 # Conditionalize the makefile for this host machine.
10859 xmake_file=
10860 for f in ${host_xmake_file}
10861 do
10862         if test -f ${srcdir}/config/$f
10863         then
10864                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10865         fi
10866 done
10867
10868 # Conditionalize the makefile for this target machine.
10869 tmake_file_=
10870 for f in ${tmake_file}
10871 do
10872         if test -f ${srcdir}/config/$f
10873         then
10874                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10875         fi
10876 done
10877 tmake_file="${tmake_file_}"
10878
10879 out_object_file=`basename $out_file .c`.o
10880
10881 tm_file_list="options.h"
10882 tm_include_list="options.h"
10883 for f in $tm_file; do
10884   case $f in
10885     ./* )
10886        f=`echo $f | sed 's/^..//'`
10887        tm_file_list="${tm_file_list} $f"
10888        tm_include_list="${tm_include_list} $f"
10889        ;;
10890     defaults.h )
10891        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10892        tm_include_list="${tm_include_list} $f"
10893        ;;
10894     * )
10895        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10896        tm_include_list="${tm_include_list} config/$f"
10897        ;;
10898   esac
10899 done
10900
10901 tm_p_file_list=
10902 tm_p_include_list=
10903 for f in $tm_p_file; do
10904   case $f in
10905     tm-preds.h )
10906        tm_p_file_list="${tm_p_file_list} $f"
10907        tm_p_include_list="${tm_p_include_list} $f"
10908        ;;
10909     * )
10910        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10911        tm_p_include_list="${tm_p_include_list} config/$f"
10912   esac
10913 done
10914
10915 xm_file_list=
10916 xm_include_list=
10917 for f in $xm_file; do
10918   case $f in
10919     ansidecl.h )
10920        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10921        xm_include_list="${xm_include_list} $f"
10922        ;;
10923     auto-host.h )
10924        xm_file_list="${xm_file_list} $f"
10925        xm_include_list="${xm_include_list} $f"
10926        ;;
10927     * )
10928        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10929        xm_include_list="${xm_include_list} config/$f"
10930        ;;
10931   esac
10932 done
10933
10934 host_xm_file_list=
10935 host_xm_include_list=
10936 for f in $host_xm_file; do
10937   case $f in
10938     ansidecl.h )
10939        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10940        host_xm_include_list="${host_xm_include_list} $f"
10941        ;;
10942     auto-host.h )
10943        host_xm_file_list="${host_xm_file_list} $f"
10944        host_xm_include_list="${host_xm_include_list} $f"
10945        ;;
10946     * )
10947        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10948        host_xm_include_list="${host_xm_include_list} config/$f"
10949        ;;
10950   esac
10951 done
10952
10953 build_xm_file_list=
10954 for f in $build_xm_file; do
10955   case $f in
10956     ansidecl.h )
10957        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10958        build_xm_include_list="${build_xm_include_list} $f"
10959        ;;
10960     auto-build.h | auto-host.h )
10961        build_xm_file_list="${build_xm_file_list} $f"
10962        build_xm_include_list="${build_xm_include_list} $f"
10963        ;;
10964     * )
10965        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10966        build_xm_include_list="${build_xm_include_list} config/$f"
10967        ;;
10968   esac
10969 done
10970
10971 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10972 # cross-compiler which does not use the native headers and libraries.
10973 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10974 CROSS=
10975 ALL=all.internal
10976 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10977
10978 if test "x$with_build_sysroot" != x; then
10979   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10980 else
10981   # This value is used, even on a native system, because
10982   # CROSS_SYSTEM_HEADER_DIR is just
10983   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10984   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10985 fi
10986
10987 if test x$host != x$target
10988 then
10989         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10990         ALL=all.cross
10991         SYSTEM_HEADER_DIR=$build_system_header_dir
10992         case "$host","$target" in
10993         # Darwin crosses can use the host system's libraries and headers,
10994         # because of the fat library support.  Of course, it must be the
10995         # same version of Darwin on both sides.  Allow the user to
10996         # just say --target=foo-darwin without a version number to mean
10997         # "the version on this system".
10998             *-*-darwin*,*-*-darwin*)
10999                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11000                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11001                 if test $hostos = $targetos -o $targetos = darwin ; then
11002                     CROSS=
11003                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11004                     with_headers=yes
11005                 fi
11006                 ;;
11007
11008             i?86-*-*,x86_64-*-* \
11009             | powerpc*-*-*,powerpc64*-*-*)
11010                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11011         esac
11012 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11013         SYSTEM_HEADER_DIR=$build_system_header_dir
11014 fi
11015
11016 # If this is a cross-compiler that does not
11017 # have its own set of headers then define
11018 # inhibit_libc
11019
11020 # If this is using newlib, without having the headers available now,
11021 # then define inhibit_libc in LIBGCC2_CFLAGS.
11022 # This prevents libgcc2 from containing any code which requires libc
11023 # support.
11024 : ${inhibit_libc=false}
11025 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11026        test x$with_newlib = xyes ; } &&
11027      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11028        inhibit_libc=true
11029 fi
11030
11031
11032 # When building gcc with a cross-compiler, we need to adjust things so
11033 # that the generator programs are still built with the native compiler.
11034 # Also, we cannot run fixincludes.
11035
11036 # These are the normal (build=host) settings:
11037 CC_FOR_BUILD='$(CC)'
11038 BUILD_CFLAGS='$(ALL_CFLAGS)'
11039 BUILD_LDFLAGS='$(LDFLAGS)'
11040 STMP_FIXINC=stmp-fixinc
11041
11042 # And these apply if build != host, or we are generating coverage data
11043 if test x$build != x$host || test "x$coverage_flags" != x
11044 then
11045     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11046     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11047 fi
11048
11049 # Expand extra_headers to include complete path.
11050 # This substitutes for lots of t-* files.
11051 extra_headers_list=
11052 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11053 for file in ${extra_headers} ; do
11054   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11055 done
11056
11057 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11058 if test x"$use_gcc_tgmath" = xyes
11059 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11060 fi
11061
11062 # Define collect2 in Makefile.
11063 case $host_can_use_collect2 in
11064   no) collect2= ;;
11065   *) collect2='collect2$(exeext)' ;;
11066 esac
11067
11068
11069 # Add a definition of USE_COLLECT2 if system wants one.
11070 case $use_collect2 in
11071   no) use_collect2= ;;
11072   "") ;;
11073   *)
11074     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11075     xm_defines="${xm_defines} USE_COLLECT2"
11076     case $host_can_use_collect2 in
11077       no)
11078         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11079         ;;
11080     esac
11081     ;;
11082 esac
11083
11084 # ---------------------------
11085 # Assembler & linker features
11086 # ---------------------------
11087
11088 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11089 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11090 # However when ld-new is first executed from the build tree, libtool will
11091 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11092 # to the build tree.  While doing this we need to use the previous-stage
11093 # linker, or we have an infinite loop.  The presence of a shell script as
11094 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11095 # the gcc/collect-ld script.  So we need to know how libtool works, or
11096 # exec-tool will fail.
11097
11098
11099 case `pwd` in
11100   *\ * | *\     *)
11101     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11102 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11103 esac
11104
11105
11106
11107 macro_version='2.2.6'
11108 macro_revision='1.3012'
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122 ltmain="$ac_aux_dir/ltmain.sh"
11123
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11126 if test "${ac_cv_path_SED+set}" = set; then :
11127   $as_echo_n "(cached) " >&6
11128 else
11129             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11130      for ac_i in 1 2 3 4 5 6 7; do
11131        ac_script="$ac_script$as_nl$ac_script"
11132      done
11133      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11134      { ac_script=; unset ac_script;}
11135      if test -z "$SED"; then
11136   ac_path_SED_found=false
11137   # Loop through the user's path and test for each of PROGNAME-LIST
11138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11140 do
11141   IFS=$as_save_IFS
11142   test -z "$as_dir" && as_dir=.
11143     for ac_prog in sed gsed; do
11144     for ac_exec_ext in '' $ac_executable_extensions; do
11145       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11146       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11147 # Check for GNU ac_path_SED and select it if it is found.
11148   # Check for GNU $ac_path_SED
11149 case `"$ac_path_SED" --version 2>&1` in
11150 *GNU*)
11151   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11152 *)
11153   ac_count=0
11154   $as_echo_n 0123456789 >"conftest.in"
11155   while :
11156   do
11157     cat "conftest.in" "conftest.in" >"conftest.tmp"
11158     mv "conftest.tmp" "conftest.in"
11159     cp "conftest.in" "conftest.nl"
11160     $as_echo '' >> "conftest.nl"
11161     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11162     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11163     as_fn_arith $ac_count + 1 && ac_count=$as_val
11164     if test $ac_count -gt ${ac_path_SED_max-0}; then
11165       # Best one so far, save it but keep looking for a better one
11166       ac_cv_path_SED="$ac_path_SED"
11167       ac_path_SED_max=$ac_count
11168     fi
11169     # 10*(2^10) chars as input seems more than enough
11170     test $ac_count -gt 10 && break
11171   done
11172   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11173 esac
11174
11175       $ac_path_SED_found && break 3
11176     done
11177   done
11178   done
11179 IFS=$as_save_IFS
11180   if test -z "$ac_cv_path_SED"; then
11181     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11182   fi
11183 else
11184   ac_cv_path_SED=$SED
11185 fi
11186
11187 fi
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11189 $as_echo "$ac_cv_path_SED" >&6; }
11190  SED="$ac_cv_path_SED"
11191   rm -f conftest.sed
11192
11193 test -z "$SED" && SED=sed
11194 Xsed="$SED -e 1s/^X//"
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11207 $as_echo_n "checking for fgrep... " >&6; }
11208 if test "${ac_cv_path_FGREP+set}" = set; then :
11209   $as_echo_n "(cached) " >&6
11210 else
11211   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11212    then ac_cv_path_FGREP="$GREP -F"
11213    else
11214      if test -z "$FGREP"; then
11215   ac_path_FGREP_found=false
11216   # Loop through the user's path and test for each of PROGNAME-LIST
11217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11219 do
11220   IFS=$as_save_IFS
11221   test -z "$as_dir" && as_dir=.
11222     for ac_prog in fgrep; do
11223     for ac_exec_ext in '' $ac_executable_extensions; do
11224       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11225       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11226 # Check for GNU ac_path_FGREP and select it if it is found.
11227   # Check for GNU $ac_path_FGREP
11228 case `"$ac_path_FGREP" --version 2>&1` in
11229 *GNU*)
11230   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11231 *)
11232   ac_count=0
11233   $as_echo_n 0123456789 >"conftest.in"
11234   while :
11235   do
11236     cat "conftest.in" "conftest.in" >"conftest.tmp"
11237     mv "conftest.tmp" "conftest.in"
11238     cp "conftest.in" "conftest.nl"
11239     $as_echo 'FGREP' >> "conftest.nl"
11240     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11241     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11242     as_fn_arith $ac_count + 1 && ac_count=$as_val
11243     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11244       # Best one so far, save it but keep looking for a better one
11245       ac_cv_path_FGREP="$ac_path_FGREP"
11246       ac_path_FGREP_max=$ac_count
11247     fi
11248     # 10*(2^10) chars as input seems more than enough
11249     test $ac_count -gt 10 && break
11250   done
11251   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11252 esac
11253
11254       $ac_path_FGREP_found && break 3
11255     done
11256   done
11257   done
11258 IFS=$as_save_IFS
11259   if test -z "$ac_cv_path_FGREP"; then
11260     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11261   fi
11262 else
11263   ac_cv_path_FGREP=$FGREP
11264 fi
11265
11266    fi
11267 fi
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11269 $as_echo "$ac_cv_path_FGREP" >&6; }
11270  FGREP="$ac_cv_path_FGREP"
11271
11272
11273 test -z "$GREP" && GREP=grep
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293 # Check whether --with-gnu-ld was given.
11294 if test "${with_gnu_ld+set}" = set; then :
11295   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11296 else
11297   with_gnu_ld=no
11298 fi
11299
11300 ac_prog=ld
11301 if test "$GCC" = yes; then
11302   # Check if gcc -print-prog-name=ld gives a path.
11303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11304 $as_echo_n "checking for ld used by $CC... " >&6; }
11305   case $host in
11306   *-*-mingw*)
11307     # gcc leaves a trailing carriage return which upsets mingw
11308     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11309   *)
11310     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11311   esac
11312   case $ac_prog in
11313     # Accept absolute paths.
11314     [\\/]* | ?:[\\/]*)
11315       re_direlt='/[^/][^/]*/\.\./'
11316       # Canonicalize the pathname of ld
11317       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11318       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11319         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11320       done
11321       test -z "$LD" && LD="$ac_prog"
11322       ;;
11323   "")
11324     # If it fails, then pretend we aren't using GCC.
11325     ac_prog=ld
11326     ;;
11327   *)
11328     # If it is relative, then search for the first ld in PATH.
11329     with_gnu_ld=unknown
11330     ;;
11331   esac
11332 elif test "$with_gnu_ld" = yes; then
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11334 $as_echo_n "checking for GNU ld... " >&6; }
11335 else
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11337 $as_echo_n "checking for non-GNU ld... " >&6; }
11338 fi
11339 if test "${lt_cv_path_LD+set}" = set; then :
11340   $as_echo_n "(cached) " >&6
11341 else
11342   if test -z "$LD"; then
11343   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11344   for ac_dir in $PATH; do
11345     IFS="$lt_save_ifs"
11346     test -z "$ac_dir" && ac_dir=.
11347     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11348       lt_cv_path_LD="$ac_dir/$ac_prog"
11349       # Check to see if the program is GNU ld.  I'd rather use --version,
11350       # but apparently some variants of GNU ld only accept -v.
11351       # Break only if it was the GNU/non-GNU ld that we prefer.
11352       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11353       *GNU* | *'with BFD'*)
11354         test "$with_gnu_ld" != no && break
11355         ;;
11356       *)
11357         test "$with_gnu_ld" != yes && break
11358         ;;
11359       esac
11360     fi
11361   done
11362   IFS="$lt_save_ifs"
11363 else
11364   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11365 fi
11366 fi
11367
11368 LD="$lt_cv_path_LD"
11369 if test -n "$LD"; then
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11371 $as_echo "$LD" >&6; }
11372 else
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 fi
11376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11380   $as_echo_n "(cached) " >&6
11381 else
11382   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11383 case `$LD -v 2>&1 </dev/null` in
11384 *GNU* | *'with BFD'*)
11385   lt_cv_prog_gnu_ld=yes
11386   ;;
11387 *)
11388   lt_cv_prog_gnu_ld=no
11389   ;;
11390 esac
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11394 with_gnu_ld=$lt_cv_prog_gnu_ld
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11406 if test "${lt_cv_path_NM+set}" = set; then :
11407   $as_echo_n "(cached) " >&6
11408 else
11409   if test -n "$NM"; then
11410   # Let the user override the test.
11411   lt_cv_path_NM="$NM"
11412 else
11413   lt_nm_to_check="${ac_tool_prefix}nm"
11414   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11415     lt_nm_to_check="$lt_nm_to_check nm"
11416   fi
11417   for lt_tmp_nm in $lt_nm_to_check; do
11418     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11419     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11420       IFS="$lt_save_ifs"
11421       test -z "$ac_dir" && ac_dir=.
11422       tmp_nm="$ac_dir/$lt_tmp_nm"
11423       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11424         # Check to see if the nm accepts a BSD-compat flag.
11425         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11426         #   nm: unknown option "B" ignored
11427         # Tru64's nm complains that /dev/null is an invalid object file
11428         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11429         */dev/null* | *'Invalid file or object type'*)
11430           lt_cv_path_NM="$tmp_nm -B"
11431           break
11432           ;;
11433         *)
11434           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11435           */dev/null*)
11436             lt_cv_path_NM="$tmp_nm -p"
11437             break
11438             ;;
11439           *)
11440             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11441             continue # so that we can try to find one that supports BSD flags
11442             ;;
11443           esac
11444           ;;
11445         esac
11446       fi
11447     done
11448     IFS="$lt_save_ifs"
11449   done
11450   : ${lt_cv_path_NM=no}
11451 fi
11452 fi
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11454 $as_echo "$lt_cv_path_NM" >&6; }
11455 if test "$lt_cv_path_NM" != "no"; then
11456   NM="$lt_cv_path_NM"
11457 else
11458   # Didn't find any BSD compatible name lister, look for dumpbin.
11459   if test -n "$ac_tool_prefix"; then
11460   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11461   do
11462     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11467   $as_echo_n "(cached) " >&6
11468 else
11469   if test -n "$DUMPBIN"; then
11470   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11471 else
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11474 do
11475   IFS=$as_save_IFS
11476   test -z "$as_dir" && as_dir=.
11477     for ac_exec_ext in '' $ac_executable_extensions; do
11478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11479     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481     break 2
11482   fi
11483 done
11484   done
11485 IFS=$as_save_IFS
11486
11487 fi
11488 fi
11489 DUMPBIN=$ac_cv_prog_DUMPBIN
11490 if test -n "$DUMPBIN"; then
11491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11492 $as_echo "$DUMPBIN" >&6; }
11493 else
11494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11496 fi
11497
11498
11499     test -n "$DUMPBIN" && break
11500   done
11501 fi
11502 if test -z "$DUMPBIN"; then
11503   ac_ct_DUMPBIN=$DUMPBIN
11504   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11505 do
11506   # Extract the first word of "$ac_prog", so it can be a program name with args.
11507 set dummy $ac_prog; ac_word=$2
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509 $as_echo_n "checking for $ac_word... " >&6; }
11510 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11511   $as_echo_n "(cached) " >&6
11512 else
11513   if test -n "$ac_ct_DUMPBIN"; then
11514   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11515 else
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11518 do
11519   IFS=$as_save_IFS
11520   test -z "$as_dir" && as_dir=.
11521     for ac_exec_ext in '' $ac_executable_extensions; do
11522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11525     break 2
11526   fi
11527 done
11528   done
11529 IFS=$as_save_IFS
11530
11531 fi
11532 fi
11533 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11534 if test -n "$ac_ct_DUMPBIN"; then
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11536 $as_echo "$ac_ct_DUMPBIN" >&6; }
11537 else
11538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11540 fi
11541
11542
11543   test -n "$ac_ct_DUMPBIN" && break
11544 done
11545
11546   if test "x$ac_ct_DUMPBIN" = x; then
11547     DUMPBIN=":"
11548   else
11549     case $cross_compiling:$ac_tool_warned in
11550 yes:)
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11553 ac_tool_warned=yes ;;
11554 esac
11555     DUMPBIN=$ac_ct_DUMPBIN
11556   fi
11557 fi
11558
11559
11560   if test "$DUMPBIN" != ":"; then
11561     NM="$DUMPBIN"
11562   fi
11563 fi
11564 test -z "$NM" && NM=nm
11565
11566
11567
11568
11569
11570
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11572 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11573 if test "${lt_cv_nm_interface+set}" = set; then :
11574   $as_echo_n "(cached) " >&6
11575 else
11576   lt_cv_nm_interface="BSD nm"
11577   echo "int some_variable = 0;" > conftest.$ac_ext
11578   (eval echo "\"\$as_me:11578: $ac_compile\"" >&5)
11579   (eval "$ac_compile" 2>conftest.err)
11580   cat conftest.err >&5
11581   (eval echo "\"\$as_me:11581: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11582   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11583   cat conftest.err >&5
11584   (eval echo "\"\$as_me:11584: output\"" >&5)
11585   cat conftest.out >&5
11586   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11587     lt_cv_nm_interface="MS dumpbin"
11588   fi
11589   rm -f conftest*
11590 fi
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11592 $as_echo "$lt_cv_nm_interface" >&6; }
11593
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11595 $as_echo_n "checking whether ln -s works... " >&6; }
11596 LN_S=$as_ln_s
11597 if test "$LN_S" = "ln -s"; then
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599 $as_echo "yes" >&6; }
11600 else
11601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11602 $as_echo "no, using $LN_S" >&6; }
11603 fi
11604
11605 # find the maximum length of command line arguments
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11607 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11608 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611     i=0
11612   teststring="ABCD"
11613
11614   case $build_os in
11615   msdosdjgpp*)
11616     # On DJGPP, this test can blow up pretty badly due to problems in libc
11617     # (any single argument exceeding 2000 bytes causes a buffer overrun
11618     # during glob expansion).  Even if it were fixed, the result of this
11619     # check would be larger than it should be.
11620     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11621     ;;
11622
11623   gnu*)
11624     # Under GNU Hurd, this test is not required because there is
11625     # no limit to the length of command line arguments.
11626     # Libtool will interpret -1 as no limit whatsoever
11627     lt_cv_sys_max_cmd_len=-1;
11628     ;;
11629
11630   cygwin* | mingw* | cegcc*)
11631     # On Win9x/ME, this test blows up -- it succeeds, but takes
11632     # about 5 minutes as the teststring grows exponentially.
11633     # Worse, since 9x/ME are not pre-emptively multitasking,
11634     # you end up with a "frozen" computer, even though with patience
11635     # the test eventually succeeds (with a max line length of 256k).
11636     # Instead, let's just punt: use the minimum linelength reported by
11637     # all of the supported platforms: 8192 (on NT/2K/XP).
11638     lt_cv_sys_max_cmd_len=8192;
11639     ;;
11640
11641   amigaos*)
11642     # On AmigaOS with pdksh, this test takes hours, literally.
11643     # So we just punt and use a minimum line length of 8192.
11644     lt_cv_sys_max_cmd_len=8192;
11645     ;;
11646
11647   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11648     # This has been around since 386BSD, at least.  Likely further.
11649     if test -x /sbin/sysctl; then
11650       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11651     elif test -x /usr/sbin/sysctl; then
11652       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11653     else
11654       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11655     fi
11656     # And add a safety zone
11657     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11658     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11659     ;;
11660
11661   interix*)
11662     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11663     lt_cv_sys_max_cmd_len=196608
11664     ;;
11665
11666   osf*)
11667     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11668     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11669     # nice to cause kernel panics so lets avoid the loop below.
11670     # First set a reasonable default.
11671     lt_cv_sys_max_cmd_len=16384
11672     #
11673     if test -x /sbin/sysconfig; then
11674       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11675         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11676       esac
11677     fi
11678     ;;
11679   sco3.2v5*)
11680     lt_cv_sys_max_cmd_len=102400
11681     ;;
11682   sysv5* | sco5v6* | sysv4.2uw2*)
11683     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11684     if test -n "$kargmax"; then
11685       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11686     else
11687       lt_cv_sys_max_cmd_len=32768
11688     fi
11689     ;;
11690   *)
11691     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11692     if test -n "$lt_cv_sys_max_cmd_len"; then
11693       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11694       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11695     else
11696       # Make teststring a little bigger before we do anything with it.
11697       # a 1K string should be a reasonable start.
11698       for i in 1 2 3 4 5 6 7 8 ; do
11699         teststring=$teststring$teststring
11700       done
11701       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11702       # If test is not a shell built-in, we'll probably end up computing a
11703       # maximum length that is only half of the actual maximum length, but
11704       # we can't tell.
11705       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11706                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11707               test $i != 17 # 1/2 MB should be enough
11708       do
11709         i=`expr $i + 1`
11710         teststring=$teststring$teststring
11711       done
11712       # Only check the string length outside the loop.
11713       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11714       teststring=
11715       # Add a significant safety factor because C++ compilers can tack on
11716       # massive amounts of additional arguments before passing them to the
11717       # linker.  It appears as though 1/2 is a usable value.
11718       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11719     fi
11720     ;;
11721   esac
11722
11723 fi
11724
11725 if test -n $lt_cv_sys_max_cmd_len ; then
11726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11727 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11728 else
11729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11730 $as_echo "none" >&6; }
11731 fi
11732 max_cmd_len=$lt_cv_sys_max_cmd_len
11733
11734
11735
11736
11737
11738
11739 : ${CP="cp -f"}
11740 : ${MV="mv -f"}
11741 : ${RM="rm -f"}
11742
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11744 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11745 # Try some XSI features
11746 xsi_shell=no
11747 ( _lt_dummy="a/b/c"
11748   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11749       = c,a/b,, \
11750     && eval 'test $(( 1 + 1 )) -eq 2 \
11751     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11752   && xsi_shell=yes
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11754 $as_echo "$xsi_shell" >&6; }
11755
11756
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11758 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11759 lt_shell_append=no
11760 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11761     >/dev/null 2>&1 \
11762   && lt_shell_append=yes
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11764 $as_echo "$lt_shell_append" >&6; }
11765
11766
11767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11768   lt_unset=unset
11769 else
11770   lt_unset=false
11771 fi
11772
11773
11774
11775
11776
11777 # test EBCDIC or ASCII
11778 case `echo X|tr X '\101'` in
11779  A) # ASCII based system
11780     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11781   lt_SP2NL='tr \040 \012'
11782   lt_NL2SP='tr \015\012 \040\040'
11783   ;;
11784  *) # EBCDIC based system
11785   lt_SP2NL='tr \100 \n'
11786   lt_NL2SP='tr \r\n \100\100'
11787   ;;
11788 esac
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11799 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11800 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11801   $as_echo_n "(cached) " >&6
11802 else
11803   lt_cv_ld_reload_flag='-r'
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11806 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11807 reload_flag=$lt_cv_ld_reload_flag
11808 case $reload_flag in
11809 "" | " "*) ;;
11810 *) reload_flag=" $reload_flag" ;;
11811 esac
11812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11813 case $host_os in
11814   darwin*)
11815     if test "$GCC" = yes; then
11816       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11817     else
11818       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11819     fi
11820     ;;
11821 esac
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831 if test -n "$ac_tool_prefix"; then
11832   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11833 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11837   $as_echo_n "(cached) " >&6
11838 else
11839   if test -n "$OBJDUMP"; then
11840   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11841 else
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11844 do
11845   IFS=$as_save_IFS
11846   test -z "$as_dir" && as_dir=.
11847     for ac_exec_ext in '' $ac_executable_extensions; do
11848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851     break 2
11852   fi
11853 done
11854   done
11855 IFS=$as_save_IFS
11856
11857 fi
11858 fi
11859 OBJDUMP=$ac_cv_prog_OBJDUMP
11860 if test -n "$OBJDUMP"; then
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11862 $as_echo "$OBJDUMP" >&6; }
11863 else
11864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11866 fi
11867
11868
11869 fi
11870 if test -z "$ac_cv_prog_OBJDUMP"; then
11871   ac_ct_OBJDUMP=$OBJDUMP
11872   # Extract the first word of "objdump", so it can be a program name with args.
11873 set dummy objdump; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   if test -n "$ac_ct_OBJDUMP"; then
11880   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11881 else
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11884 do
11885   IFS=$as_save_IFS
11886   test -z "$as_dir" && as_dir=.
11887     for ac_exec_ext in '' $ac_executable_extensions; do
11888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11889     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891     break 2
11892   fi
11893 done
11894   done
11895 IFS=$as_save_IFS
11896
11897 fi
11898 fi
11899 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11900 if test -n "$ac_ct_OBJDUMP"; then
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11902 $as_echo "$ac_ct_OBJDUMP" >&6; }
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907
11908   if test "x$ac_ct_OBJDUMP" = x; then
11909     OBJDUMP="false"
11910   else
11911     case $cross_compiling:$ac_tool_warned in
11912 yes:)
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11915 ac_tool_warned=yes ;;
11916 esac
11917     OBJDUMP=$ac_ct_OBJDUMP
11918   fi
11919 else
11920   OBJDUMP="$ac_cv_prog_OBJDUMP"
11921 fi
11922
11923 test -z "$OBJDUMP" && OBJDUMP=objdump
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11934 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11935 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11936   $as_echo_n "(cached) " >&6
11937 else
11938   lt_cv_file_magic_cmd='$MAGIC_CMD'
11939 lt_cv_file_magic_test_file=
11940 lt_cv_deplibs_check_method='unknown'
11941 # Need to set the preceding variable on all platforms that support
11942 # interlibrary dependencies.
11943 # 'none' -- dependencies not supported.
11944 # `unknown' -- same as none, but documents that we really don't know.
11945 # 'pass_all' -- all dependencies passed with no checks.
11946 # 'test_compile' -- check by making test program.
11947 # 'file_magic [[regex]]' -- check by looking for files in library path
11948 # which responds to the $file_magic_cmd with a given extended regex.
11949 # If you have `file' or equivalent on your system and you're not sure
11950 # whether `pass_all' will *always* work, you probably want this one.
11951
11952 case $host_os in
11953 aix[4-9]*)
11954   lt_cv_deplibs_check_method=pass_all
11955   ;;
11956
11957 beos*)
11958   lt_cv_deplibs_check_method=pass_all
11959   ;;
11960
11961 bsdi[45]*)
11962   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11963   lt_cv_file_magic_cmd='/usr/bin/file -L'
11964   lt_cv_file_magic_test_file=/shlib/libc.so
11965   ;;
11966
11967 cygwin*)
11968   # func_win32_libid is a shell function defined in ltmain.sh
11969   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11970   lt_cv_file_magic_cmd='func_win32_libid'
11971   ;;
11972
11973 mingw* | pw32*)
11974   # Base MSYS/MinGW do not provide the 'file' command needed by
11975   # func_win32_libid shell function, so use a weaker test based on 'objdump',
11976   # unless we find 'file', for example because we are cross-compiling.
11977   if ( file / ) >/dev/null 2>&1; then
11978     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11979     lt_cv_file_magic_cmd='func_win32_libid'
11980   else
11981     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11982     lt_cv_file_magic_cmd='$OBJDUMP -f'
11983   fi
11984   ;;
11985
11986 cegcc)
11987   # use the weaker test based on 'objdump'. See mingw*.
11988   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11989   lt_cv_file_magic_cmd='$OBJDUMP -f'
11990   ;;
11991
11992 darwin* | rhapsody*)
11993   lt_cv_deplibs_check_method=pass_all
11994   ;;
11995
11996 freebsd* | dragonfly*)
11997   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11998     case $host_cpu in
11999     i*86 )
12000       # Not sure whether the presence of OpenBSD here was a mistake.
12001       # Let's accept both of them until this is cleared up.
12002       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12003       lt_cv_file_magic_cmd=/usr/bin/file
12004       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12005       ;;
12006     esac
12007   else
12008     lt_cv_deplibs_check_method=pass_all
12009   fi
12010   ;;
12011
12012 gnu*)
12013   lt_cv_deplibs_check_method=pass_all
12014   ;;
12015
12016 hpux10.20* | hpux11*)
12017   lt_cv_file_magic_cmd=/usr/bin/file
12018   case $host_cpu in
12019   ia64*)
12020     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12021     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12022     ;;
12023   hppa*64*)
12024     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
12025     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12026     ;;
12027   *)
12028     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12029     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12030     ;;
12031   esac
12032   ;;
12033
12034 interix[3-9]*)
12035   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12036   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12037   ;;
12038
12039 irix5* | irix6* | nonstopux*)
12040   case $LD in
12041   *-32|*"-32 ") libmagic=32-bit;;
12042   *-n32|*"-n32 ") libmagic=N32;;
12043   *-64|*"-64 ") libmagic=64-bit;;
12044   *) libmagic=never-match;;
12045   esac
12046   lt_cv_deplibs_check_method=pass_all
12047   ;;
12048
12049 # This must be Linux ELF.
12050 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12051   lt_cv_deplibs_check_method=pass_all
12052   ;;
12053
12054 netbsd*)
12055   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12056     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12057   else
12058     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12059   fi
12060   ;;
12061
12062 newos6*)
12063   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12064   lt_cv_file_magic_cmd=/usr/bin/file
12065   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12066   ;;
12067
12068 *nto* | *qnx*)
12069   lt_cv_deplibs_check_method=pass_all
12070   ;;
12071
12072 openbsd*)
12073   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12074     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12075   else
12076     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12077   fi
12078   ;;
12079
12080 osf3* | osf4* | osf5*)
12081   lt_cv_deplibs_check_method=pass_all
12082   ;;
12083
12084 rdos*)
12085   lt_cv_deplibs_check_method=pass_all
12086   ;;
12087
12088 solaris*)
12089   lt_cv_deplibs_check_method=pass_all
12090   ;;
12091
12092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12093   lt_cv_deplibs_check_method=pass_all
12094   ;;
12095
12096 sysv4 | sysv4.3*)
12097   case $host_vendor in
12098   motorola)
12099     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]'
12100     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12101     ;;
12102   ncr)
12103     lt_cv_deplibs_check_method=pass_all
12104     ;;
12105   sequent)
12106     lt_cv_file_magic_cmd='/bin/file'
12107     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12108     ;;
12109   sni)
12110     lt_cv_file_magic_cmd='/bin/file'
12111     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12112     lt_cv_file_magic_test_file=/lib/libc.so
12113     ;;
12114   siemens)
12115     lt_cv_deplibs_check_method=pass_all
12116     ;;
12117   pc)
12118     lt_cv_deplibs_check_method=pass_all
12119     ;;
12120   esac
12121   ;;
12122
12123 tpf*)
12124   lt_cv_deplibs_check_method=pass_all
12125   ;;
12126 esac
12127
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12130 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12131 file_magic_cmd=$lt_cv_file_magic_cmd
12132 deplibs_check_method=$lt_cv_deplibs_check_method
12133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146 if test -n "$ac_tool_prefix"; then
12147   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12148 set dummy ${ac_tool_prefix}ar; ac_word=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if test "${ac_cv_prog_AR+set}" = set; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154   if test -n "$AR"; then
12155   ac_cv_prog_AR="$AR" # Let the user override the test.
12156 else
12157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158 for as_dir in $PATH
12159 do
12160   IFS=$as_save_IFS
12161   test -z "$as_dir" && as_dir=.
12162     for ac_exec_ext in '' $ac_executable_extensions; do
12163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12164     ac_cv_prog_AR="${ac_tool_prefix}ar"
12165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12166     break 2
12167   fi
12168 done
12169   done
12170 IFS=$as_save_IFS
12171
12172 fi
12173 fi
12174 AR=$ac_cv_prog_AR
12175 if test -n "$AR"; then
12176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12177 $as_echo "$AR" >&6; }
12178 else
12179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12181 fi
12182
12183
12184 fi
12185 if test -z "$ac_cv_prog_AR"; then
12186   ac_ct_AR=$AR
12187   # Extract the first word of "ar", so it can be a program name with args.
12188 set dummy ar; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   if test -n "$ac_ct_AR"; then
12195   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12196 else
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12199 do
12200   IFS=$as_save_IFS
12201   test -z "$as_dir" && as_dir=.
12202     for ac_exec_ext in '' $ac_executable_extensions; do
12203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12204     ac_cv_prog_ac_ct_AR="ar"
12205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206     break 2
12207   fi
12208 done
12209   done
12210 IFS=$as_save_IFS
12211
12212 fi
12213 fi
12214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12215 if test -n "$ac_ct_AR"; then
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12217 $as_echo "$ac_ct_AR" >&6; }
12218 else
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12221 fi
12222
12223   if test "x$ac_ct_AR" = x; then
12224     AR="false"
12225   else
12226     case $cross_compiling:$ac_tool_warned in
12227 yes:)
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12230 ac_tool_warned=yes ;;
12231 esac
12232     AR=$ac_ct_AR
12233   fi
12234 else
12235   AR="$ac_cv_prog_AR"
12236 fi
12237
12238 test -z "$AR" && AR=ar
12239 test -z "$AR_FLAGS" && AR_FLAGS=cru
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251 if test -n "$ac_tool_prefix"; then
12252   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12253 set dummy ${ac_tool_prefix}strip; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if test "${ac_cv_prog_STRIP+set}" = set; then :
12257   $as_echo_n "(cached) " >&6
12258 else
12259   if test -n "$STRIP"; then
12260   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265   IFS=$as_save_IFS
12266   test -z "$as_dir" && as_dir=.
12267     for ac_exec_ext in '' $ac_executable_extensions; do
12268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271     break 2
12272   fi
12273 done
12274   done
12275 IFS=$as_save_IFS
12276
12277 fi
12278 fi
12279 STRIP=$ac_cv_prog_STRIP
12280 if test -n "$STRIP"; then
12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12282 $as_echo "$STRIP" >&6; }
12283 else
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287
12288
12289 fi
12290 if test -z "$ac_cv_prog_STRIP"; then
12291   ac_ct_STRIP=$STRIP
12292   # Extract the first word of "strip", so it can be a program name with args.
12293 set dummy strip; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12297   $as_echo_n "(cached) " >&6
12298 else
12299   if test -n "$ac_ct_STRIP"; then
12300   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12301 else
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12304 do
12305   IFS=$as_save_IFS
12306   test -z "$as_dir" && as_dir=.
12307     for ac_exec_ext in '' $ac_executable_extensions; do
12308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12309     ac_cv_prog_ac_ct_STRIP="strip"
12310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311     break 2
12312   fi
12313 done
12314   done
12315 IFS=$as_save_IFS
12316
12317 fi
12318 fi
12319 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12320 if test -n "$ac_ct_STRIP"; then
12321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12322 $as_echo "$ac_ct_STRIP" >&6; }
12323 else
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326 fi
12327
12328   if test "x$ac_ct_STRIP" = x; then
12329     STRIP=":"
12330   else
12331     case $cross_compiling:$ac_tool_warned in
12332 yes:)
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12335 ac_tool_warned=yes ;;
12336 esac
12337     STRIP=$ac_ct_STRIP
12338   fi
12339 else
12340   STRIP="$ac_cv_prog_STRIP"
12341 fi
12342
12343 test -z "$STRIP" && STRIP=:
12344
12345
12346
12347
12348
12349
12350 if test -n "$ac_tool_prefix"; then
12351   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12356   $as_echo_n "(cached) " >&6
12357 else
12358   if test -n "$RANLIB"; then
12359   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12360 else
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12363 do
12364   IFS=$as_save_IFS
12365   test -z "$as_dir" && as_dir=.
12366     for ac_exec_ext in '' $ac_executable_extensions; do
12367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370     break 2
12371   fi
12372 done
12373   done
12374 IFS=$as_save_IFS
12375
12376 fi
12377 fi
12378 RANLIB=$ac_cv_prog_RANLIB
12379 if test -n "$RANLIB"; then
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12381 $as_echo "$RANLIB" >&6; }
12382 else
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12385 fi
12386
12387
12388 fi
12389 if test -z "$ac_cv_prog_RANLIB"; then
12390   ac_ct_RANLIB=$RANLIB
12391   # Extract the first word of "ranlib", so it can be a program name with args.
12392 set dummy ranlib; ac_word=$2
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394 $as_echo_n "checking for $ac_word... " >&6; }
12395 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12396   $as_echo_n "(cached) " >&6
12397 else
12398   if test -n "$ac_ct_RANLIB"; then
12399   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12400 else
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12403 do
12404   IFS=$as_save_IFS
12405   test -z "$as_dir" && as_dir=.
12406     for ac_exec_ext in '' $ac_executable_extensions; do
12407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408     ac_cv_prog_ac_ct_RANLIB="ranlib"
12409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410     break 2
12411   fi
12412 done
12413   done
12414 IFS=$as_save_IFS
12415
12416 fi
12417 fi
12418 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12419 if test -n "$ac_ct_RANLIB"; then
12420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12421 $as_echo "$ac_ct_RANLIB" >&6; }
12422 else
12423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12425 fi
12426
12427   if test "x$ac_ct_RANLIB" = x; then
12428     RANLIB=":"
12429   else
12430     case $cross_compiling:$ac_tool_warned in
12431 yes:)
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12434 ac_tool_warned=yes ;;
12435 esac
12436     RANLIB=$ac_ct_RANLIB
12437   fi
12438 else
12439   RANLIB="$ac_cv_prog_RANLIB"
12440 fi
12441
12442 test -z "$RANLIB" && RANLIB=:
12443
12444
12445
12446
12447
12448
12449 # Determine commands to create old-style static archives.
12450 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12451 old_postinstall_cmds='chmod 644 $oldlib'
12452 old_postuninstall_cmds=
12453
12454 if test -n "$RANLIB"; then
12455   case $host_os in
12456   openbsd*)
12457     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12458     ;;
12459   *)
12460     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12461     ;;
12462   esac
12463   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12464 fi
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499 # If no C compiler was specified, use CC.
12500 LTCC=${LTCC-"$CC"}
12501
12502 # If no C compiler flags were specified, use CFLAGS.
12503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12504
12505 # Allow CC to be a program name with arguments.
12506 compiler=$CC
12507
12508
12509 # Check for command to grab the raw symbol name followed by C symbol from nm.
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12511 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12512 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12513   $as_echo_n "(cached) " >&6
12514 else
12515
12516 # These are sane defaults that work on at least a few old systems.
12517 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12518
12519 # Character class describing NM global symbol codes.
12520 symcode='[BCDEGRST]'
12521
12522 # Regexp to match symbols that can be accessed directly from C.
12523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12524
12525 # Define system-specific variables.
12526 case $host_os in
12527 aix*)
12528   symcode='[BCDT]'
12529   ;;
12530 cygwin* | mingw* | pw32* | cegcc*)
12531   symcode='[ABCDGISTW]'
12532   ;;
12533 hpux*)
12534   if test "$host_cpu" = ia64; then
12535     symcode='[ABCDEGRST]'
12536   fi
12537   ;;
12538 irix* | nonstopux*)
12539   symcode='[BCDEGRST]'
12540   ;;
12541 osf*)
12542   symcode='[BCDEGQRST]'
12543   ;;
12544 solaris*)
12545   symcode='[BDRT]'
12546   ;;
12547 sco3.2v5*)
12548   symcode='[DT]'
12549   ;;
12550 sysv4.2uw2*)
12551   symcode='[DT]'
12552   ;;
12553 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12554   symcode='[ABDT]'
12555   ;;
12556 sysv4)
12557   symcode='[DFNSTU]'
12558   ;;
12559 esac
12560
12561 # If we're using GNU nm, then use its standard symbol codes.
12562 case `$NM -V 2>&1` in
12563 *GNU* | *'with BFD'*)
12564   symcode='[ABCDGIRSTW]' ;;
12565 esac
12566
12567 # Transform an extracted symbol line into a proper C declaration.
12568 # Some systems (esp. on ia64) link data and code symbols differently,
12569 # so use this general approach.
12570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12571
12572 # Transform an extracted symbol line into symbol name and symbol address
12573 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12574 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'"
12575
12576 # Handle CRLF in mingw tool chain
12577 opt_cr=
12578 case $build_os in
12579 mingw*)
12580   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12581   ;;
12582 esac
12583
12584 # Try without a prefix underscore, then with it.
12585 for ac_symprfx in "" "_"; do
12586
12587   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12588   symxfrm="\\1 $ac_symprfx\\2 \\2"
12589
12590   # Write the raw and C identifiers.
12591   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12592     # Fake it for dumpbin and say T for any non-static function
12593     # and D for any global variable.
12594     # Also find C++ and __fastcall symbols from MSVC++,
12595     # which start with @ or ?.
12596     lt_cv_sys_global_symbol_pipe="$AWK '"\
12597 "     {last_section=section; section=\$ 3};"\
12598 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12599 "     \$ 0!~/External *\|/{next};"\
12600 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12601 "     {if(hide[section]) next};"\
12602 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12603 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12604 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12605 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12606 "     ' prfx=^$ac_symprfx"
12607   else
12608     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12609   fi
12610
12611   # Check to see that the pipe works correctly.
12612   pipe_works=no
12613
12614   rm -f conftest*
12615   cat > conftest.$ac_ext <<_LT_EOF
12616 #ifdef __cplusplus
12617 extern "C" {
12618 #endif
12619 char nm_test_var;
12620 void nm_test_func(void);
12621 void nm_test_func(void){}
12622 #ifdef __cplusplus
12623 }
12624 #endif
12625 int main(){nm_test_var='a';nm_test_func();return(0);}
12626 _LT_EOF
12627
12628   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12629   (eval $ac_compile) 2>&5
12630   ac_status=$?
12631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12632   test $ac_status = 0; }; then
12633     # Now try to grab the symbols.
12634     nlist=conftest.nm
12635     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
12636   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12637   ac_status=$?
12638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12639   test $ac_status = 0; } && test -s "$nlist"; then
12640       # Try sorting and uniquifying the output.
12641       if sort "$nlist" | uniq > "$nlist"T; then
12642         mv -f "$nlist"T "$nlist"
12643       else
12644         rm -f "$nlist"T
12645       fi
12646
12647       # Make sure that we snagged all the symbols we need.
12648       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12649         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12650           cat <<_LT_EOF > conftest.$ac_ext
12651 #ifdef __cplusplus
12652 extern "C" {
12653 #endif
12654
12655 _LT_EOF
12656           # Now generate the symbol file.
12657           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12658
12659           cat <<_LT_EOF >> conftest.$ac_ext
12660
12661 /* The mapping between symbol names and symbols.  */
12662 const struct {
12663   const char *name;
12664   void       *address;
12665 }
12666 lt__PROGRAM__LTX_preloaded_symbols[] =
12667 {
12668   { "@PROGRAM@", (void *) 0 },
12669 _LT_EOF
12670           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12671           cat <<\_LT_EOF >> conftest.$ac_ext
12672   {0, (void *) 0}
12673 };
12674
12675 /* This works around a problem in FreeBSD linker */
12676 #ifdef FREEBSD_WORKAROUND
12677 static const void *lt_preloaded_setup() {
12678   return lt__PROGRAM__LTX_preloaded_symbols;
12679 }
12680 #endif
12681
12682 #ifdef __cplusplus
12683 }
12684 #endif
12685 _LT_EOF
12686           # Now try linking the two files.
12687           mv conftest.$ac_objext conftstm.$ac_objext
12688           lt_save_LIBS="$LIBS"
12689           lt_save_CFLAGS="$CFLAGS"
12690           LIBS="conftstm.$ac_objext"
12691           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12692           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12693   (eval $ac_link) 2>&5
12694   ac_status=$?
12695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12696   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12697             pipe_works=yes
12698           fi
12699           LIBS="$lt_save_LIBS"
12700           CFLAGS="$lt_save_CFLAGS"
12701         else
12702           echo "cannot find nm_test_func in $nlist" >&5
12703         fi
12704       else
12705         echo "cannot find nm_test_var in $nlist" >&5
12706       fi
12707     else
12708       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12709     fi
12710   else
12711     echo "$progname: failed program was:" >&5
12712     cat conftest.$ac_ext >&5
12713   fi
12714   rm -rf conftest* conftst*
12715
12716   # Do not use the global_symbol_pipe unless it works.
12717   if test "$pipe_works" = yes; then
12718     break
12719   else
12720     lt_cv_sys_global_symbol_pipe=
12721   fi
12722 done
12723
12724 fi
12725
12726 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12727   lt_cv_sys_global_symbol_to_cdecl=
12728 fi
12729 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12731 $as_echo "failed" >&6; }
12732 else
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12734 $as_echo "ok" >&6; }
12735 fi
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758 # Check whether --enable-libtool-lock was given.
12759 if test "${enable_libtool_lock+set}" = set; then :
12760   enableval=$enable_libtool_lock;
12761 fi
12762
12763 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12764
12765 # Some flags need to be propagated to the compiler or linker for good
12766 # libtool support.
12767 case $host in
12768 ia64-*-hpux*)
12769   # Find out which ABI we are using.
12770   echo 'int i;' > conftest.$ac_ext
12771   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12772   (eval $ac_compile) 2>&5
12773   ac_status=$?
12774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12775   test $ac_status = 0; }; then
12776     case `/usr/bin/file conftest.$ac_objext` in
12777       *ELF-32*)
12778         HPUX_IA64_MODE="32"
12779         ;;
12780       *ELF-64*)
12781         HPUX_IA64_MODE="64"
12782         ;;
12783     esac
12784   fi
12785   rm -rf conftest*
12786   ;;
12787 *-*-irix6*)
12788   # Find out which ABI we are using.
12789   echo '#line 12789 "configure"' > conftest.$ac_ext
12790   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12791   (eval $ac_compile) 2>&5
12792   ac_status=$?
12793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794   test $ac_status = 0; }; then
12795     if test "$lt_cv_prog_gnu_ld" = yes; then
12796       case `/usr/bin/file conftest.$ac_objext` in
12797         *32-bit*)
12798           LD="${LD-ld} -melf32bsmip"
12799           ;;
12800         *N32*)
12801           LD="${LD-ld} -melf32bmipn32"
12802           ;;
12803         *64-bit*)
12804           LD="${LD-ld} -melf64bmip"
12805         ;;
12806       esac
12807     else
12808       case `/usr/bin/file conftest.$ac_objext` in
12809         *32-bit*)
12810           LD="${LD-ld} -32"
12811           ;;
12812         *N32*)
12813           LD="${LD-ld} -n32"
12814           ;;
12815         *64-bit*)
12816           LD="${LD-ld} -64"
12817           ;;
12818       esac
12819     fi
12820   fi
12821   rm -rf conftest*
12822   ;;
12823
12824 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12825 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12826   # Find out which ABI we are using.
12827   echo 'int i;' > conftest.$ac_ext
12828   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12829   (eval $ac_compile) 2>&5
12830   ac_status=$?
12831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12832   test $ac_status = 0; }; then
12833     case `/usr/bin/file conftest.o` in
12834       *32-bit*)
12835         case $host in
12836           x86_64-*kfreebsd*-gnu)
12837             LD="${LD-ld} -m elf_i386_fbsd"
12838             ;;
12839           x86_64-*linux*)
12840             LD="${LD-ld} -m elf_i386"
12841             ;;
12842           ppc64-*linux*|powerpc64-*linux*)
12843             LD="${LD-ld} -m elf32ppclinux"
12844             ;;
12845           s390x-*linux*)
12846             LD="${LD-ld} -m elf_s390"
12847             ;;
12848           sparc64-*linux*)
12849             LD="${LD-ld} -m elf32_sparc"
12850             ;;
12851         esac
12852         ;;
12853       *64-bit*)
12854         case $host in
12855           x86_64-*kfreebsd*-gnu)
12856             LD="${LD-ld} -m elf_x86_64_fbsd"
12857             ;;
12858           x86_64-*linux*)
12859             LD="${LD-ld} -m elf_x86_64"
12860             ;;
12861           ppc*-*linux*|powerpc*-*linux*)
12862             LD="${LD-ld} -m elf64ppc"
12863             ;;
12864           s390*-*linux*|s390*-*tpf*)
12865             LD="${LD-ld} -m elf64_s390"
12866             ;;
12867           sparc*-*linux*)
12868             LD="${LD-ld} -m elf64_sparc"
12869             ;;
12870         esac
12871         ;;
12872     esac
12873   fi
12874   rm -rf conftest*
12875   ;;
12876
12877 *-*-sco3.2v5*)
12878   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12879   SAVE_CFLAGS="$CFLAGS"
12880   CFLAGS="$CFLAGS -belf"
12881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12882 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12883 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12884   $as_echo_n "(cached) " >&6
12885 else
12886   ac_ext=c
12887 ac_cpp='$CPP $CPPFLAGS'
12888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12891
12892      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h.  */
12894
12895 int
12896 main ()
12897 {
12898
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 if ac_fn_c_try_link "$LINENO"; then :
12904   lt_cv_cc_needs_belf=yes
12905 else
12906   lt_cv_cc_needs_belf=no
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext \
12909     conftest$ac_exeext conftest.$ac_ext
12910      ac_ext=c
12911 ac_cpp='$CPP $CPPFLAGS'
12912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12915
12916 fi
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12918 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12919   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12920     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12921     CFLAGS="$SAVE_CFLAGS"
12922   fi
12923   ;;
12924 sparc*-*solaris*)
12925   # Find out which ABI we are using.
12926   echo 'int i;' > conftest.$ac_ext
12927   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12928   (eval $ac_compile) 2>&5
12929   ac_status=$?
12930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12931   test $ac_status = 0; }; then
12932     case `/usr/bin/file conftest.o` in
12933     *64-bit*)
12934       case $lt_cv_prog_gnu_ld in
12935       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12936       *)
12937         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12938           LD="${LD-ld} -64"
12939         fi
12940         ;;
12941       esac
12942       ;;
12943     esac
12944   fi
12945   rm -rf conftest*
12946   ;;
12947 esac
12948
12949 need_locks="$enable_libtool_lock"
12950
12951
12952   case $host_os in
12953     rhapsody* | darwin*)
12954     if test -n "$ac_tool_prefix"; then
12955   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12956 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958 $as_echo_n "checking for $ac_word... " >&6; }
12959 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12960   $as_echo_n "(cached) " >&6
12961 else
12962   if test -n "$DSYMUTIL"; then
12963   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12964 else
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12967 do
12968   IFS=$as_save_IFS
12969   test -z "$as_dir" && as_dir=.
12970     for ac_exec_ext in '' $ac_executable_extensions; do
12971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974     break 2
12975   fi
12976 done
12977   done
12978 IFS=$as_save_IFS
12979
12980 fi
12981 fi
12982 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12983 if test -n "$DSYMUTIL"; then
12984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12985 $as_echo "$DSYMUTIL" >&6; }
12986 else
12987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12989 fi
12990
12991
12992 fi
12993 if test -z "$ac_cv_prog_DSYMUTIL"; then
12994   ac_ct_DSYMUTIL=$DSYMUTIL
12995   # Extract the first word of "dsymutil", so it can be a program name with args.
12996 set dummy dsymutil; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13000   $as_echo_n "(cached) " >&6
13001 else
13002   if test -n "$ac_ct_DSYMUTIL"; then
13003   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13007 do
13008   IFS=$as_save_IFS
13009   test -z "$as_dir" && as_dir=.
13010     for ac_exec_ext in '' $ac_executable_extensions; do
13011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13012     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014     break 2
13015   fi
13016 done
13017   done
13018 IFS=$as_save_IFS
13019
13020 fi
13021 fi
13022 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13023 if test -n "$ac_ct_DSYMUTIL"; then
13024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13025 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13026 else
13027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13029 fi
13030
13031   if test "x$ac_ct_DSYMUTIL" = x; then
13032     DSYMUTIL=":"
13033   else
13034     case $cross_compiling:$ac_tool_warned in
13035 yes:)
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13038 ac_tool_warned=yes ;;
13039 esac
13040     DSYMUTIL=$ac_ct_DSYMUTIL
13041   fi
13042 else
13043   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13044 fi
13045
13046     if test -n "$ac_tool_prefix"; then
13047   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13048 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050 $as_echo_n "checking for $ac_word... " >&6; }
13051 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13052   $as_echo_n "(cached) " >&6
13053 else
13054   if test -n "$NMEDIT"; then
13055   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13056 else
13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 for as_dir in $PATH
13059 do
13060   IFS=$as_save_IFS
13061   test -z "$as_dir" && as_dir=.
13062     for ac_exec_ext in '' $ac_executable_extensions; do
13063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13064     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066     break 2
13067   fi
13068 done
13069   done
13070 IFS=$as_save_IFS
13071
13072 fi
13073 fi
13074 NMEDIT=$ac_cv_prog_NMEDIT
13075 if test -n "$NMEDIT"; then
13076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13077 $as_echo "$NMEDIT" >&6; }
13078 else
13079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13081 fi
13082
13083
13084 fi
13085 if test -z "$ac_cv_prog_NMEDIT"; then
13086   ac_ct_NMEDIT=$NMEDIT
13087   # Extract the first word of "nmedit", so it can be a program name with args.
13088 set dummy nmedit; ac_word=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094   if test -n "$ac_ct_NMEDIT"; then
13095   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13096 else
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13099 do
13100   IFS=$as_save_IFS
13101   test -z "$as_dir" && as_dir=.
13102     for ac_exec_ext in '' $ac_executable_extensions; do
13103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13104     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13106     break 2
13107   fi
13108 done
13109   done
13110 IFS=$as_save_IFS
13111
13112 fi
13113 fi
13114 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13115 if test -n "$ac_ct_NMEDIT"; then
13116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13117 $as_echo "$ac_ct_NMEDIT" >&6; }
13118 else
13119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13121 fi
13122
13123   if test "x$ac_ct_NMEDIT" = x; then
13124     NMEDIT=":"
13125   else
13126     case $cross_compiling:$ac_tool_warned in
13127 yes:)
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13130 ac_tool_warned=yes ;;
13131 esac
13132     NMEDIT=$ac_ct_NMEDIT
13133   fi
13134 else
13135   NMEDIT="$ac_cv_prog_NMEDIT"
13136 fi
13137
13138     if test -n "$ac_tool_prefix"; then
13139   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13140 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_prog_LIPO+set}" = set; then :
13144   $as_echo_n "(cached) " >&6
13145 else
13146   if test -n "$LIPO"; then
13147   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13151 do
13152   IFS=$as_save_IFS
13153   test -z "$as_dir" && as_dir=.
13154     for ac_exec_ext in '' $ac_executable_extensions; do
13155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158     break 2
13159   fi
13160 done
13161   done
13162 IFS=$as_save_IFS
13163
13164 fi
13165 fi
13166 LIPO=$ac_cv_prog_LIPO
13167 if test -n "$LIPO"; then
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13169 $as_echo "$LIPO" >&6; }
13170 else
13171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175
13176 fi
13177 if test -z "$ac_cv_prog_LIPO"; then
13178   ac_ct_LIPO=$LIPO
13179   # Extract the first word of "lipo", so it can be a program name with args.
13180 set dummy lipo; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13184   $as_echo_n "(cached) " >&6
13185 else
13186   if test -n "$ac_ct_LIPO"; then
13187   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13191 do
13192   IFS=$as_save_IFS
13193   test -z "$as_dir" && as_dir=.
13194     for ac_exec_ext in '' $ac_executable_extensions; do
13195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196     ac_cv_prog_ac_ct_LIPO="lipo"
13197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198     break 2
13199   fi
13200 done
13201   done
13202 IFS=$as_save_IFS
13203
13204 fi
13205 fi
13206 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13207 if test -n "$ac_ct_LIPO"; then
13208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13209 $as_echo "$ac_ct_LIPO" >&6; }
13210 else
13211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13213 fi
13214
13215   if test "x$ac_ct_LIPO" = x; then
13216     LIPO=":"
13217   else
13218     case $cross_compiling:$ac_tool_warned in
13219 yes:)
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13222 ac_tool_warned=yes ;;
13223 esac
13224     LIPO=$ac_ct_LIPO
13225   fi
13226 else
13227   LIPO="$ac_cv_prog_LIPO"
13228 fi
13229
13230     if test -n "$ac_tool_prefix"; then
13231   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13232 set dummy ${ac_tool_prefix}otool; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13236   $as_echo_n "(cached) " >&6
13237 else
13238   if test -n "$OTOOL"; then
13239   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13240 else
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13243 do
13244   IFS=$as_save_IFS
13245   test -z "$as_dir" && as_dir=.
13246     for ac_exec_ext in '' $ac_executable_extensions; do
13247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13248     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250     break 2
13251   fi
13252 done
13253   done
13254 IFS=$as_save_IFS
13255
13256 fi
13257 fi
13258 OTOOL=$ac_cv_prog_OTOOL
13259 if test -n "$OTOOL"; then
13260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13261 $as_echo "$OTOOL" >&6; }
13262 else
13263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265 fi
13266
13267
13268 fi
13269 if test -z "$ac_cv_prog_OTOOL"; then
13270   ac_ct_OTOOL=$OTOOL
13271   # Extract the first word of "otool", so it can be a program name with args.
13272 set dummy otool; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13276   $as_echo_n "(cached) " >&6
13277 else
13278   if test -n "$ac_ct_OTOOL"; then
13279   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13283 do
13284   IFS=$as_save_IFS
13285   test -z "$as_dir" && as_dir=.
13286     for ac_exec_ext in '' $ac_executable_extensions; do
13287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13288     ac_cv_prog_ac_ct_OTOOL="otool"
13289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290     break 2
13291   fi
13292 done
13293   done
13294 IFS=$as_save_IFS
13295
13296 fi
13297 fi
13298 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13299 if test -n "$ac_ct_OTOOL"; then
13300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13301 $as_echo "$ac_ct_OTOOL" >&6; }
13302 else
13303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305 fi
13306
13307   if test "x$ac_ct_OTOOL" = x; then
13308     OTOOL=":"
13309   else
13310     case $cross_compiling:$ac_tool_warned in
13311 yes:)
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13314 ac_tool_warned=yes ;;
13315 esac
13316     OTOOL=$ac_ct_OTOOL
13317   fi
13318 else
13319   OTOOL="$ac_cv_prog_OTOOL"
13320 fi
13321
13322     if test -n "$ac_tool_prefix"; then
13323   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13324 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13328   $as_echo_n "(cached) " >&6
13329 else
13330   if test -n "$OTOOL64"; then
13331   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13332 else
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13335 do
13336   IFS=$as_save_IFS
13337   test -z "$as_dir" && as_dir=.
13338     for ac_exec_ext in '' $ac_executable_extensions; do
13339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13340     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342     break 2
13343   fi
13344 done
13345   done
13346 IFS=$as_save_IFS
13347
13348 fi
13349 fi
13350 OTOOL64=$ac_cv_prog_OTOOL64
13351 if test -n "$OTOOL64"; then
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13353 $as_echo "$OTOOL64" >&6; }
13354 else
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357 fi
13358
13359
13360 fi
13361 if test -z "$ac_cv_prog_OTOOL64"; then
13362   ac_ct_OTOOL64=$OTOOL64
13363   # Extract the first word of "otool64", so it can be a program name with args.
13364 set dummy otool64; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13368   $as_echo_n "(cached) " >&6
13369 else
13370   if test -n "$ac_ct_OTOOL64"; then
13371   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13372 else
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13375 do
13376   IFS=$as_save_IFS
13377   test -z "$as_dir" && as_dir=.
13378     for ac_exec_ext in '' $ac_executable_extensions; do
13379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13380     ac_cv_prog_ac_ct_OTOOL64="otool64"
13381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382     break 2
13383   fi
13384 done
13385   done
13386 IFS=$as_save_IFS
13387
13388 fi
13389 fi
13390 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13391 if test -n "$ac_ct_OTOOL64"; then
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13393 $as_echo "$ac_ct_OTOOL64" >&6; }
13394 else
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13397 fi
13398
13399   if test "x$ac_ct_OTOOL64" = x; then
13400     OTOOL64=":"
13401   else
13402     case $cross_compiling:$ac_tool_warned in
13403 yes:)
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13406 ac_tool_warned=yes ;;
13407 esac
13408     OTOOL64=$ac_ct_OTOOL64
13409   fi
13410 else
13411   OTOOL64="$ac_cv_prog_OTOOL64"
13412 fi
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13441 $as_echo_n "checking for -single_module linker flag... " >&6; }
13442 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13443   $as_echo_n "(cached) " >&6
13444 else
13445   lt_cv_apple_cc_single_mod=no
13446       if test -z "${LT_MULTI_MODULE}"; then
13447         # By default we will add the -single_module flag. You can override
13448         # by either setting the environment variable LT_MULTI_MODULE
13449         # non-empty at configure time, or by adding -multi_module to the
13450         # link flags.
13451         rm -rf libconftest.dylib*
13452         echo "int foo(void){return 1;}" > conftest.c
13453         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13454 -dynamiclib -Wl,-single_module conftest.c" >&5
13455         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13456           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13457         _lt_result=$?
13458         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13459           lt_cv_apple_cc_single_mod=yes
13460         else
13461           cat conftest.err >&5
13462         fi
13463         rm -rf libconftest.dylib*
13464         rm -f conftest.*
13465       fi
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13468 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13470 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13471 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13472   $as_echo_n "(cached) " >&6
13473 else
13474   lt_cv_ld_exported_symbols_list=no
13475       save_LDFLAGS=$LDFLAGS
13476       echo "_main" > conftest.sym
13477       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13478       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h.  */
13480
13481 int
13482 main ()
13483 {
13484
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 if ac_fn_c_try_link "$LINENO"; then :
13490   lt_cv_ld_exported_symbols_list=yes
13491 else
13492   lt_cv_ld_exported_symbols_list=no
13493 fi
13494 rm -f core conftest.err conftest.$ac_objext \
13495     conftest$ac_exeext conftest.$ac_ext
13496         LDFLAGS="$save_LDFLAGS"
13497
13498 fi
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13500 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13501     case $host_os in
13502     rhapsody* | darwin1.[012])
13503       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13504     darwin1.*)
13505       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13506     darwin*) # darwin 5.x on
13507       # if running on 10.5 or later, the deployment target defaults
13508       # to the OS version, if on x86, and 10.4, the deployment
13509       # target defaults to 10.4. Don't you love it?
13510       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13511         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13512           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13513         10.[012]*)
13514           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13515         10.*)
13516           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13517       esac
13518     ;;
13519   esac
13520     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13521       _lt_dar_single_mod='$single_module'
13522     fi
13523     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13524       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13525     else
13526       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13527     fi
13528     if test "$DSYMUTIL" != ":"; then
13529       _lt_dsymutil='~$DSYMUTIL $lib || :'
13530     else
13531       _lt_dsymutil=
13532     fi
13533     ;;
13534   esac
13535
13536 for ac_header in dlfcn.h
13537 do :
13538   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13539 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13540   cat >>confdefs.h <<_ACEOF
13541 #define HAVE_DLFCN_H 1
13542 _ACEOF
13543
13544 fi
13545 done
13546
13547
13548
13549 ac_ext=cpp
13550 ac_cpp='$CXXCPP $CPPFLAGS'
13551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13554 if test -z "$CXX"; then
13555   if test -n "$CCC"; then
13556     CXX=$CCC
13557   else
13558     if test -n "$ac_tool_prefix"; then
13559   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13560   do
13561     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if test "${ac_cv_prog_CXX+set}" = set; then :
13566   $as_echo_n "(cached) " >&6
13567 else
13568   if test -n "$CXX"; then
13569   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13570 else
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576     for ac_exec_ext in '' $ac_executable_extensions; do
13577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13578     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13580     break 2
13581   fi
13582 done
13583   done
13584 IFS=$as_save_IFS
13585
13586 fi
13587 fi
13588 CXX=$ac_cv_prog_CXX
13589 if test -n "$CXX"; then
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13591 $as_echo "$CXX" >&6; }
13592 else
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13595 fi
13596
13597
13598     test -n "$CXX" && break
13599   done
13600 fi
13601 if test -z "$CXX"; then
13602   ac_ct_CXX=$CXX
13603   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13604 do
13605   # Extract the first word of "$ac_prog", so it can be a program name with args.
13606 set dummy $ac_prog; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13610   $as_echo_n "(cached) " >&6
13611 else
13612   if test -n "$ac_ct_CXX"; then
13613   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13614 else
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13617 do
13618   IFS=$as_save_IFS
13619   test -z "$as_dir" && as_dir=.
13620     for ac_exec_ext in '' $ac_executable_extensions; do
13621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13622     ac_cv_prog_ac_ct_CXX="$ac_prog"
13623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624     break 2
13625   fi
13626 done
13627   done
13628 IFS=$as_save_IFS
13629
13630 fi
13631 fi
13632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13633 if test -n "$ac_ct_CXX"; then
13634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13635 $as_echo "$ac_ct_CXX" >&6; }
13636 else
13637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13639 fi
13640
13641
13642   test -n "$ac_ct_CXX" && break
13643 done
13644
13645   if test "x$ac_ct_CXX" = x; then
13646     CXX="g++"
13647   else
13648     case $cross_compiling:$ac_tool_warned in
13649 yes:)
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13652 ac_tool_warned=yes ;;
13653 esac
13654     CXX=$ac_ct_CXX
13655   fi
13656 fi
13657
13658   fi
13659 fi
13660 # Provide some information about the compiler.
13661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13662 set X $ac_compile
13663 ac_compiler=$2
13664 for ac_option in --version -v -V -qversion; do
13665   { { ac_try="$ac_compiler $ac_option >&5"
13666 case "(($ac_try" in
13667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668   *) ac_try_echo=$ac_try;;
13669 esac
13670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13671 $as_echo "$ac_try_echo"; } >&5
13672   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13673   ac_status=$?
13674   if test -s conftest.err; then
13675     sed '10a\
13676 ... rest of stderr output deleted ...
13677          10q' conftest.err >conftest.er1
13678     cat conftest.er1 >&5
13679     rm -f conftest.er1 conftest.err
13680   fi
13681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13682   test $ac_status = 0; }
13683 done
13684
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13686 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13688   $as_echo_n "(cached) " >&6
13689 else
13690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h.  */
13692
13693 int
13694 main ()
13695 {
13696 #ifndef __GNUC__
13697        choke me
13698 #endif
13699
13700   ;
13701   return 0;
13702 }
13703 _ACEOF
13704 if ac_fn_cxx_try_compile "$LINENO"; then :
13705   ac_compiler_gnu=yes
13706 else
13707   ac_compiler_gnu=no
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13711
13712 fi
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13714 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13715 if test $ac_compiler_gnu = yes; then
13716   GXX=yes
13717 else
13718   GXX=
13719 fi
13720 ac_test_CXXFLAGS=${CXXFLAGS+set}
13721 ac_save_CXXFLAGS=$CXXFLAGS
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13723 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13724 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13725   $as_echo_n "(cached) " >&6
13726 else
13727   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13728    ac_cxx_werror_flag=yes
13729    ac_cv_prog_cxx_g=no
13730    CXXFLAGS="-g"
13731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h.  */
13733
13734 int
13735 main ()
13736 {
13737
13738   ;
13739   return 0;
13740 }
13741 _ACEOF
13742 if ac_fn_cxx_try_compile "$LINENO"; then :
13743   ac_cv_prog_cxx_g=yes
13744 else
13745   CXXFLAGS=""
13746       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h.  */
13748
13749 int
13750 main ()
13751 {
13752
13753   ;
13754   return 0;
13755 }
13756 _ACEOF
13757 if ac_fn_cxx_try_compile "$LINENO"; then :
13758
13759 else
13760   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13761          CXXFLAGS="-g"
13762          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h.  */
13764
13765 int
13766 main ()
13767 {
13768
13769   ;
13770   return 0;
13771 }
13772 _ACEOF
13773 if ac_fn_cxx_try_compile "$LINENO"; then :
13774   ac_cv_prog_cxx_g=yes
13775 fi
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 fi
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 fi
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13782 fi
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13784 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13785 if test "$ac_test_CXXFLAGS" = set; then
13786   CXXFLAGS=$ac_save_CXXFLAGS
13787 elif test $ac_cv_prog_cxx_g = yes; then
13788   if test "$GXX" = yes; then
13789     CXXFLAGS="-g -O2"
13790   else
13791     CXXFLAGS="-g"
13792   fi
13793 else
13794   if test "$GXX" = yes; then
13795     CXXFLAGS="-O2"
13796   else
13797     CXXFLAGS=
13798   fi
13799 fi
13800 ac_ext=c
13801 ac_cpp='$CPP $CPPFLAGS'
13802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13805
13806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13807     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13808     (test "X$CXX" != "Xg++"))) ; then
13809   ac_ext=cpp
13810 ac_cpp='$CXXCPP $CPPFLAGS'
13811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13815 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13816 if test -z "$CXXCPP"; then
13817   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13818   $as_echo_n "(cached) " >&6
13819 else
13820       # Double quotes because CXXCPP needs to be expanded
13821     for CXXCPP in "$CXX -E" "/lib/cpp"
13822     do
13823       ac_preproc_ok=false
13824 for ac_cxx_preproc_warn_flag in '' yes
13825 do
13826   # Use a header file that comes with gcc, so configuring glibc
13827   # with a fresh cross-compiler works.
13828   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13829   # <limits.h> exists even on freestanding compilers.
13830   # On the NeXT, cc -E runs the code through the compiler's parser,
13831   # not just through cpp. "Syntax error" is here to catch this case.
13832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h.  */
13834 #ifdef __STDC__
13835 # include <limits.h>
13836 #else
13837 # include <assert.h>
13838 #endif
13839                      Syntax error
13840 _ACEOF
13841 if ac_fn_cxx_try_cpp "$LINENO"; then :
13842
13843 else
13844   # Broken: fails on valid input.
13845 continue
13846 fi
13847 rm -f conftest.err conftest.$ac_ext
13848
13849   # OK, works on sane cases.  Now check whether nonexistent headers
13850   # can be detected and how.
13851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h.  */
13853 #include <ac_nonexistent.h>
13854 _ACEOF
13855 if ac_fn_cxx_try_cpp "$LINENO"; then :
13856   # Broken: success on invalid input.
13857 continue
13858 else
13859   # Passes both tests.
13860 ac_preproc_ok=:
13861 break
13862 fi
13863 rm -f conftest.err conftest.$ac_ext
13864
13865 done
13866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13867 rm -f conftest.err conftest.$ac_ext
13868 if $ac_preproc_ok; then :
13869   break
13870 fi
13871
13872     done
13873     ac_cv_prog_CXXCPP=$CXXCPP
13874
13875 fi
13876   CXXCPP=$ac_cv_prog_CXXCPP
13877 else
13878   ac_cv_prog_CXXCPP=$CXXCPP
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13881 $as_echo "$CXXCPP" >&6; }
13882 ac_preproc_ok=false
13883 for ac_cxx_preproc_warn_flag in '' yes
13884 do
13885   # Use a header file that comes with gcc, so configuring glibc
13886   # with a fresh cross-compiler works.
13887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888   # <limits.h> exists even on freestanding compilers.
13889   # On the NeXT, cc -E runs the code through the compiler's parser,
13890   # not just through cpp. "Syntax error" is here to catch this case.
13891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h.  */
13893 #ifdef __STDC__
13894 # include <limits.h>
13895 #else
13896 # include <assert.h>
13897 #endif
13898                      Syntax error
13899 _ACEOF
13900 if ac_fn_cxx_try_cpp "$LINENO"; then :
13901
13902 else
13903   # Broken: fails on valid input.
13904 continue
13905 fi
13906 rm -f conftest.err conftest.$ac_ext
13907
13908   # OK, works on sane cases.  Now check whether nonexistent headers
13909   # can be detected and how.
13910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h.  */
13912 #include <ac_nonexistent.h>
13913 _ACEOF
13914 if ac_fn_cxx_try_cpp "$LINENO"; then :
13915   # Broken: success on invalid input.
13916 continue
13917 else
13918   # Passes both tests.
13919 ac_preproc_ok=:
13920 break
13921 fi
13922 rm -f conftest.err conftest.$ac_ext
13923
13924 done
13925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13926 rm -f conftest.err conftest.$ac_ext
13927 if $ac_preproc_ok; then :
13928
13929 else
13930   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13932 _lt_caught_CXX_error=yes; }
13933 fi
13934
13935 ac_ext=c
13936 ac_cpp='$CPP $CPPFLAGS'
13937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13940
13941 else
13942   _lt_caught_CXX_error=yes
13943 fi
13944
13945
13946
13947
13948
13949 # Set options
13950
13951
13952
13953         enable_dlopen=no
13954
13955
13956   enable_win32_dll=no
13957
13958
13959             # Check whether --enable-shared was given.
13960 if test "${enable_shared+set}" = set; then :
13961   enableval=$enable_shared; p=${PACKAGE-default}
13962     case $enableval in
13963     yes) enable_shared=yes ;;
13964     no) enable_shared=no ;;
13965     *)
13966       enable_shared=no
13967       # Look at the argument we got.  We use all the common list separators.
13968       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13969       for pkg in $enableval; do
13970         IFS="$lt_save_ifs"
13971         if test "X$pkg" = "X$p"; then
13972           enable_shared=yes
13973         fi
13974       done
13975       IFS="$lt_save_ifs"
13976       ;;
13977     esac
13978 else
13979   enable_shared=yes
13980 fi
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990   # Check whether --enable-static was given.
13991 if test "${enable_static+set}" = set; then :
13992   enableval=$enable_static; p=${PACKAGE-default}
13993     case $enableval in
13994     yes) enable_static=yes ;;
13995     no) enable_static=no ;;
13996     *)
13997      enable_static=no
13998       # Look at the argument we got.  We use all the common list separators.
13999       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14000       for pkg in $enableval; do
14001         IFS="$lt_save_ifs"
14002         if test "X$pkg" = "X$p"; then
14003           enable_static=yes
14004         fi
14005       done
14006       IFS="$lt_save_ifs"
14007       ;;
14008     esac
14009 else
14010   enable_static=yes
14011 fi
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022 # Check whether --with-pic was given.
14023 if test "${with_pic+set}" = set; then :
14024   withval=$with_pic; pic_mode="$withval"
14025 else
14026   pic_mode=default
14027 fi
14028
14029
14030 test -z "$pic_mode" && pic_mode=default
14031
14032
14033
14034
14035
14036
14037
14038   # Check whether --enable-fast-install was given.
14039 if test "${enable_fast_install+set}" = set; then :
14040   enableval=$enable_fast_install; p=${PACKAGE-default}
14041     case $enableval in
14042     yes) enable_fast_install=yes ;;
14043     no) enable_fast_install=no ;;
14044     *)
14045       enable_fast_install=no
14046       # Look at the argument we got.  We use all the common list separators.
14047       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14048       for pkg in $enableval; do
14049         IFS="$lt_save_ifs"
14050         if test "X$pkg" = "X$p"; then
14051           enable_fast_install=yes
14052         fi
14053       done
14054       IFS="$lt_save_ifs"
14055       ;;
14056     esac
14057 else
14058   enable_fast_install=yes
14059 fi
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071 # This can be used to rebuild libtool when needed
14072 LIBTOOL_DEPS="$ltmain"
14073
14074 # Always use our own libtool.
14075 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101 test -z "$LN_S" && LN_S="ln -s"
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116 if test -n "${ZSH_VERSION+set}" ; then
14117    setopt NO_GLOB_SUBST
14118 fi
14119
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14121 $as_echo_n "checking for objdir... " >&6; }
14122 if test "${lt_cv_objdir+set}" = set; then :
14123   $as_echo_n "(cached) " >&6
14124 else
14125   rm -f .libs 2>/dev/null
14126 mkdir .libs 2>/dev/null
14127 if test -d .libs; then
14128   lt_cv_objdir=.libs
14129 else
14130   # MS-DOS does not allow filenames that begin with a dot.
14131   lt_cv_objdir=_libs
14132 fi
14133 rmdir .libs 2>/dev/null
14134 fi
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14136 $as_echo "$lt_cv_objdir" >&6; }
14137 objdir=$lt_cv_objdir
14138
14139
14140
14141
14142
14143 cat >>confdefs.h <<_ACEOF
14144 #define LT_OBJDIR "$lt_cv_objdir/"
14145 _ACEOF
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163 case $host_os in
14164 aix3*)
14165   # AIX sometimes has problems with the GCC collect2 program.  For some
14166   # reason, if we set the COLLECT_NAMES environment variable, the problems
14167   # vanish in a puff of smoke.
14168   if test "X${COLLECT_NAMES+set}" != Xset; then
14169     COLLECT_NAMES=
14170     export COLLECT_NAMES
14171   fi
14172   ;;
14173 esac
14174
14175 # Sed substitution that helps us do robust quoting.  It backslashifies
14176 # metacharacters that are still active within double-quoted strings.
14177 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14178
14179 # Same as above, but do not quote variable references.
14180 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14181
14182 # Sed substitution to delay expansion of an escaped shell variable in a
14183 # double_quote_subst'ed string.
14184 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14185
14186 # Sed substitution to delay expansion of an escaped single quote.
14187 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14188
14189 # Sed substitution to avoid accidental globbing in evaled expressions
14190 no_glob_subst='s/\*/\\\*/g'
14191
14192 # Global variables:
14193 ofile=libtool
14194 can_build_shared=yes
14195
14196 # All known linkers require a `.a' archive for static linking (except MSVC,
14197 # which needs '.lib').
14198 libext=a
14199
14200 with_gnu_ld="$lt_cv_prog_gnu_ld"
14201
14202 old_CC="$CC"
14203 old_CFLAGS="$CFLAGS"
14204
14205 # Set sane defaults for various variables
14206 test -z "$CC" && CC=cc
14207 test -z "$LTCC" && LTCC=$CC
14208 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14209 test -z "$LD" && LD=ld
14210 test -z "$ac_objext" && ac_objext=o
14211
14212 for cc_temp in $compiler""; do
14213   case $cc_temp in
14214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14216     \-*) ;;
14217     *) break;;
14218   esac
14219 done
14220 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14221
14222
14223 # Only perform the check for file, if the check method requires it
14224 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14225 case $deplibs_check_method in
14226 file_magic*)
14227   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14229 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14230 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14231   $as_echo_n "(cached) " >&6
14232 else
14233   case $MAGIC_CMD in
14234 [\\/*] |  ?:[\\/]*)
14235   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14236   ;;
14237 *)
14238   lt_save_MAGIC_CMD="$MAGIC_CMD"
14239   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14240   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14241   for ac_dir in $ac_dummy; do
14242     IFS="$lt_save_ifs"
14243     test -z "$ac_dir" && ac_dir=.
14244     if test -f $ac_dir/${ac_tool_prefix}file; then
14245       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14246       if test -n "$file_magic_test_file"; then
14247         case $deplibs_check_method in
14248         "file_magic "*)
14249           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14250           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14251           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14252             $EGREP "$file_magic_regex" > /dev/null; then
14253             :
14254           else
14255             cat <<_LT_EOF 1>&2
14256
14257 *** Warning: the command libtool uses to detect shared libraries,
14258 *** $file_magic_cmd, produces output that libtool cannot recognize.
14259 *** The result is that libtool may fail to recognize shared libraries
14260 *** as such.  This will affect the creation of libtool libraries that
14261 *** depend on shared libraries, but programs linked with such libtool
14262 *** libraries will work regardless of this problem.  Nevertheless, you
14263 *** may want to report the problem to your system manager and/or to
14264 *** bug-libtool@gnu.org
14265
14266 _LT_EOF
14267           fi ;;
14268         esac
14269       fi
14270       break
14271     fi
14272   done
14273   IFS="$lt_save_ifs"
14274   MAGIC_CMD="$lt_save_MAGIC_CMD"
14275   ;;
14276 esac
14277 fi
14278
14279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14280 if test -n "$MAGIC_CMD"; then
14281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14282 $as_echo "$MAGIC_CMD" >&6; }
14283 else
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14286 fi
14287
14288
14289
14290
14291
14292 if test -z "$lt_cv_path_MAGIC_CMD"; then
14293   if test -n "$ac_tool_prefix"; then
14294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14295 $as_echo_n "checking for file... " >&6; }
14296 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14297   $as_echo_n "(cached) " >&6
14298 else
14299   case $MAGIC_CMD in
14300 [\\/*] |  ?:[\\/]*)
14301   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14302   ;;
14303 *)
14304   lt_save_MAGIC_CMD="$MAGIC_CMD"
14305   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14306   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14307   for ac_dir in $ac_dummy; do
14308     IFS="$lt_save_ifs"
14309     test -z "$ac_dir" && ac_dir=.
14310     if test -f $ac_dir/file; then
14311       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14312       if test -n "$file_magic_test_file"; then
14313         case $deplibs_check_method in
14314         "file_magic "*)
14315           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14316           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14317           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14318             $EGREP "$file_magic_regex" > /dev/null; then
14319             :
14320           else
14321             cat <<_LT_EOF 1>&2
14322
14323 *** Warning: the command libtool uses to detect shared libraries,
14324 *** $file_magic_cmd, produces output that libtool cannot recognize.
14325 *** The result is that libtool may fail to recognize shared libraries
14326 *** as such.  This will affect the creation of libtool libraries that
14327 *** depend on shared libraries, but programs linked with such libtool
14328 *** libraries will work regardless of this problem.  Nevertheless, you
14329 *** may want to report the problem to your system manager and/or to
14330 *** bug-libtool@gnu.org
14331
14332 _LT_EOF
14333           fi ;;
14334         esac
14335       fi
14336       break
14337     fi
14338   done
14339   IFS="$lt_save_ifs"
14340   MAGIC_CMD="$lt_save_MAGIC_CMD"
14341   ;;
14342 esac
14343 fi
14344
14345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14346 if test -n "$MAGIC_CMD"; then
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14348 $as_echo "$MAGIC_CMD" >&6; }
14349 else
14350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352 fi
14353
14354
14355   else
14356     MAGIC_CMD=:
14357   fi
14358 fi
14359
14360   fi
14361   ;;
14362 esac
14363
14364 # Use C for the default configuration in the libtool script
14365
14366 lt_save_CC="$CC"
14367 ac_ext=c
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372
14373
14374 # Source file extension for C test sources.
14375 ac_ext=c
14376
14377 # Object file extension for compiled C test sources.
14378 objext=o
14379 objext=$objext
14380
14381 # Code to be used in simple compile tests
14382 lt_simple_compile_test_code="int some_variable = 0;"
14383
14384 # Code to be used in simple link tests
14385 lt_simple_link_test_code='int main(){return(0);}'
14386
14387
14388
14389
14390
14391
14392
14393 # If no C compiler was specified, use CC.
14394 LTCC=${LTCC-"$CC"}
14395
14396 # If no C compiler flags were specified, use CFLAGS.
14397 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14398
14399 # Allow CC to be a program name with arguments.
14400 compiler=$CC
14401
14402 # Save the default compiler, since it gets overwritten when the other
14403 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14404 compiler_DEFAULT=$CC
14405
14406 # save warnings/boilerplate of simple test code
14407 ac_outfile=conftest.$ac_objext
14408 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14409 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14410 _lt_compiler_boilerplate=`cat conftest.err`
14411 $RM conftest*
14412
14413 ac_outfile=conftest.$ac_objext
14414 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14415 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14416 _lt_linker_boilerplate=`cat conftest.err`
14417 $RM -r conftest*
14418
14419
14420 ## CAVEAT EMPTOR:
14421 ## There is no encapsulation within the following macros, do not change
14422 ## the running order or otherwise move them around unless you know exactly
14423 ## what you are doing...
14424 if test -n "$compiler"; then
14425
14426 lt_prog_compiler_no_builtin_flag=
14427
14428 if test "$GCC" = yes; then
14429   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14430
14431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14432 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14434   $as_echo_n "(cached) " >&6
14435 else
14436   lt_cv_prog_compiler_rtti_exceptions=no
14437    ac_outfile=conftest.$ac_objext
14438    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14439    lt_compiler_flag="-fno-rtti -fno-exceptions"
14440    # Insert the option either (1) after the last *FLAGS variable, or
14441    # (2) before a word containing "conftest.", or (3) at the end.
14442    # Note that $ac_compile itself does not contain backslashes and begins
14443    # with a dollar sign (not a hyphen), so the echo should work correctly.
14444    # The option is referenced via a variable to avoid confusing sed.
14445    lt_compile=`echo "$ac_compile" | $SED \
14446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14448    -e 's:$: $lt_compiler_flag:'`
14449    (eval echo "\"\$as_me:14449: $lt_compile\"" >&5)
14450    (eval "$lt_compile" 2>conftest.err)
14451    ac_status=$?
14452    cat conftest.err >&5
14453    echo "$as_me:14453: \$? = $ac_status" >&5
14454    if (exit $ac_status) && test -s "$ac_outfile"; then
14455      # The compiler can only warn and ignore the option if not recognized
14456      # So say no if there are warnings other than the usual output.
14457      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14458      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14459      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14460        lt_cv_prog_compiler_rtti_exceptions=yes
14461      fi
14462    fi
14463    $RM conftest*
14464
14465 fi
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14467 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14468
14469 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14470     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14471 else
14472     :
14473 fi
14474
14475 fi
14476
14477
14478
14479
14480
14481
14482   lt_prog_compiler_wl=
14483 lt_prog_compiler_pic=
14484 lt_prog_compiler_static=
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14487 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14488
14489   if test "$GCC" = yes; then
14490     lt_prog_compiler_wl='-Wl,'
14491     lt_prog_compiler_static='-static'
14492
14493     case $host_os in
14494       aix*)
14495       # All AIX code is PIC.
14496       if test "$host_cpu" = ia64; then
14497         # AIX 5 now supports IA64 processor
14498         lt_prog_compiler_static='-Bstatic'
14499       fi
14500       ;;
14501
14502     amigaos*)
14503       case $host_cpu in
14504       powerpc)
14505             # see comment about AmigaOS4 .so support
14506             lt_prog_compiler_pic='-fPIC'
14507         ;;
14508       m68k)
14509             # FIXME: we need at least 68020 code to build shared libraries, but
14510             # adding the `-m68020' flag to GCC prevents building anything better,
14511             # like `-m68040'.
14512             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14513         ;;
14514       esac
14515       ;;
14516
14517     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14518       # PIC is the default for these OSes.
14519       ;;
14520
14521     mingw* | cygwin* | pw32* | os2* | cegcc*)
14522       # This hack is so that the source file can tell whether it is being
14523       # built for inclusion in a dll (and should export symbols for example).
14524       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14525       # (--disable-auto-import) libraries
14526       lt_prog_compiler_pic='-DDLL_EXPORT'
14527       ;;
14528
14529     darwin* | rhapsody*)
14530       # PIC is the default on this platform
14531       # Common symbols not allowed in MH_DYLIB files
14532       lt_prog_compiler_pic='-fno-common'
14533       ;;
14534
14535     hpux*)
14536       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14537       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14538       # sets the default TLS model and affects inlining.
14539       case $host_cpu in
14540       hppa*64*)
14541         # +Z the default
14542         ;;
14543       *)
14544         lt_prog_compiler_pic='-fPIC'
14545         ;;
14546       esac
14547       ;;
14548
14549     interix[3-9]*)
14550       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14551       # Instead, we relocate shared libraries at runtime.
14552       ;;
14553
14554     msdosdjgpp*)
14555       # Just because we use GCC doesn't mean we suddenly get shared libraries
14556       # on systems that don't support them.
14557       lt_prog_compiler_can_build_shared=no
14558       enable_shared=no
14559       ;;
14560
14561     *nto* | *qnx*)
14562       # QNX uses GNU C++, but need to define -shared option too, otherwise
14563       # it will coredump.
14564       lt_prog_compiler_pic='-fPIC -shared'
14565       ;;
14566
14567     sysv4*MP*)
14568       if test -d /usr/nec; then
14569         lt_prog_compiler_pic=-Kconform_pic
14570       fi
14571       ;;
14572
14573     *)
14574       lt_prog_compiler_pic='-fPIC'
14575       ;;
14576     esac
14577   else
14578     # PORTME Check for flag to pass linker flags through the system compiler.
14579     case $host_os in
14580     aix*)
14581       lt_prog_compiler_wl='-Wl,'
14582       if test "$host_cpu" = ia64; then
14583         # AIX 5 now supports IA64 processor
14584         lt_prog_compiler_static='-Bstatic'
14585       else
14586         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14587       fi
14588       ;;
14589
14590     mingw* | cygwin* | pw32* | os2* | cegcc*)
14591       # This hack is so that the source file can tell whether it is being
14592       # built for inclusion in a dll (and should export symbols for example).
14593       lt_prog_compiler_pic='-DDLL_EXPORT'
14594       ;;
14595
14596     hpux9* | hpux10* | hpux11*)
14597       lt_prog_compiler_wl='-Wl,'
14598       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14599       # not for PA HP-UX.
14600       case $host_cpu in
14601       hppa*64*|ia64*)
14602         # +Z the default
14603         ;;
14604       *)
14605         lt_prog_compiler_pic='+Z'
14606         ;;
14607       esac
14608       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14609       lt_prog_compiler_static='${wl}-a ${wl}archive'
14610       ;;
14611
14612     irix5* | irix6* | nonstopux*)
14613       lt_prog_compiler_wl='-Wl,'
14614       # PIC (with -KPIC) is the default.
14615       lt_prog_compiler_static='-non_shared'
14616       ;;
14617
14618     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14619       case $cc_basename in
14620       # old Intel for x86_64 which still supported -KPIC.
14621       ecc*)
14622         lt_prog_compiler_wl='-Wl,'
14623         lt_prog_compiler_pic='-KPIC'
14624         lt_prog_compiler_static='-static'
14625         ;;
14626       # icc used to be incompatible with GCC.
14627       # ICC 10 doesn't accept -KPIC any more.
14628       icc* | ifort*)
14629         lt_prog_compiler_wl='-Wl,'
14630         lt_prog_compiler_pic='-fPIC'
14631         lt_prog_compiler_static='-static'
14632         ;;
14633       # Lahey Fortran 8.1.
14634       lf95*)
14635         lt_prog_compiler_wl='-Wl,'
14636         lt_prog_compiler_pic='--shared'
14637         lt_prog_compiler_static='--static'
14638         ;;
14639       pgcc* | pgf77* | pgf90* | pgf95*)
14640         # Portland Group compilers (*not* the Pentium gcc compiler,
14641         # which looks to be a dead project)
14642         lt_prog_compiler_wl='-Wl,'
14643         lt_prog_compiler_pic='-fpic'
14644         lt_prog_compiler_static='-Bstatic'
14645         ;;
14646       ccc*)
14647         lt_prog_compiler_wl='-Wl,'
14648         # All Alpha code is PIC.
14649         lt_prog_compiler_static='-non_shared'
14650         ;;
14651       xl*)
14652         # IBM XL C 8.0/Fortran 10.1 on PPC
14653         lt_prog_compiler_wl='-Wl,'
14654         lt_prog_compiler_pic='-qpic'
14655         lt_prog_compiler_static='-qstaticlink'
14656         ;;
14657       *)
14658         case `$CC -V 2>&1 | sed 5q` in
14659         *Sun\ C*)
14660           # Sun C 5.9
14661           lt_prog_compiler_pic='-KPIC'
14662           lt_prog_compiler_static='-Bstatic'
14663           lt_prog_compiler_wl='-Wl,'
14664           ;;
14665         *Sun\ F*)
14666           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14667           lt_prog_compiler_pic='-KPIC'
14668           lt_prog_compiler_static='-Bstatic'
14669           lt_prog_compiler_wl=''
14670           ;;
14671         esac
14672         ;;
14673       esac
14674       ;;
14675
14676     newsos6)
14677       lt_prog_compiler_pic='-KPIC'
14678       lt_prog_compiler_static='-Bstatic'
14679       ;;
14680
14681     *nto* | *qnx*)
14682       # QNX uses GNU C++, but need to define -shared option too, otherwise
14683       # it will coredump.
14684       lt_prog_compiler_pic='-fPIC -shared'
14685       ;;
14686
14687     osf3* | osf4* | osf5*)
14688       lt_prog_compiler_wl='-Wl,'
14689       # All OSF/1 code is PIC.
14690       lt_prog_compiler_static='-non_shared'
14691       ;;
14692
14693     rdos*)
14694       lt_prog_compiler_static='-non_shared'
14695       ;;
14696
14697     solaris*)
14698       lt_prog_compiler_pic='-KPIC'
14699       lt_prog_compiler_static='-Bstatic'
14700       case $cc_basename in
14701       f77* | f90* | f95*)
14702         lt_prog_compiler_wl='-Qoption ld ';;
14703       *)
14704         lt_prog_compiler_wl='-Wl,';;
14705       esac
14706       ;;
14707
14708     sunos4*)
14709       lt_prog_compiler_wl='-Qoption ld '
14710       lt_prog_compiler_pic='-PIC'
14711       lt_prog_compiler_static='-Bstatic'
14712       ;;
14713
14714     sysv4 | sysv4.2uw2* | sysv4.3*)
14715       lt_prog_compiler_wl='-Wl,'
14716       lt_prog_compiler_pic='-KPIC'
14717       lt_prog_compiler_static='-Bstatic'
14718       ;;
14719
14720     sysv4*MP*)
14721       if test -d /usr/nec ;then
14722         lt_prog_compiler_pic='-Kconform_pic'
14723         lt_prog_compiler_static='-Bstatic'
14724       fi
14725       ;;
14726
14727     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14728       lt_prog_compiler_wl='-Wl,'
14729       lt_prog_compiler_pic='-KPIC'
14730       lt_prog_compiler_static='-Bstatic'
14731       ;;
14732
14733     unicos*)
14734       lt_prog_compiler_wl='-Wl,'
14735       lt_prog_compiler_can_build_shared=no
14736       ;;
14737
14738     uts4*)
14739       lt_prog_compiler_pic='-pic'
14740       lt_prog_compiler_static='-Bstatic'
14741       ;;
14742
14743     *)
14744       lt_prog_compiler_can_build_shared=no
14745       ;;
14746     esac
14747   fi
14748
14749 case $host_os in
14750   # For platforms which do not support PIC, -DPIC is meaningless:
14751   *djgpp*)
14752     lt_prog_compiler_pic=
14753     ;;
14754   *)
14755     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14756     ;;
14757 esac
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14759 $as_echo "$lt_prog_compiler_pic" >&6; }
14760
14761
14762
14763
14764
14765
14766 #
14767 # Check to make sure the PIC flag actually works.
14768 #
14769 if test -n "$lt_prog_compiler_pic"; then
14770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14771 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14772 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14773   $as_echo_n "(cached) " >&6
14774 else
14775   lt_cv_prog_compiler_pic_works=no
14776    ac_outfile=conftest.$ac_objext
14777    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14778    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14779    # Insert the option either (1) after the last *FLAGS variable, or
14780    # (2) before a word containing "conftest.", or (3) at the end.
14781    # Note that $ac_compile itself does not contain backslashes and begins
14782    # with a dollar sign (not a hyphen), so the echo should work correctly.
14783    # The option is referenced via a variable to avoid confusing sed.
14784    lt_compile=`echo "$ac_compile" | $SED \
14785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14787    -e 's:$: $lt_compiler_flag:'`
14788    (eval echo "\"\$as_me:14788: $lt_compile\"" >&5)
14789    (eval "$lt_compile" 2>conftest.err)
14790    ac_status=$?
14791    cat conftest.err >&5
14792    echo "$as_me:14792: \$? = $ac_status" >&5
14793    if (exit $ac_status) && test -s "$ac_outfile"; then
14794      # The compiler can only warn and ignore the option if not recognized
14795      # So say no if there are warnings other than the usual output.
14796      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14797      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14799        lt_cv_prog_compiler_pic_works=yes
14800      fi
14801    fi
14802    $RM conftest*
14803
14804 fi
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14806 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14807
14808 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14809     case $lt_prog_compiler_pic in
14810      "" | " "*) ;;
14811      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14812      esac
14813 else
14814     lt_prog_compiler_pic=
14815      lt_prog_compiler_can_build_shared=no
14816 fi
14817
14818 fi
14819
14820
14821
14822
14823
14824
14825 #
14826 # Check to make sure the static flag actually works.
14827 #
14828 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14830 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14831 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14832   $as_echo_n "(cached) " >&6
14833 else
14834   lt_cv_prog_compiler_static_works=no
14835    save_LDFLAGS="$LDFLAGS"
14836    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14837    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14838    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14839      # The linker can only warn and ignore the option if not recognized
14840      # So say no if there are warnings
14841      if test -s conftest.err; then
14842        # Append any errors to the config.log.
14843        cat conftest.err 1>&5
14844        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14845        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14846        if diff conftest.exp conftest.er2 >/dev/null; then
14847          lt_cv_prog_compiler_static_works=yes
14848        fi
14849      else
14850        lt_cv_prog_compiler_static_works=yes
14851      fi
14852    fi
14853    $RM -r conftest*
14854    LDFLAGS="$save_LDFLAGS"
14855
14856 fi
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14858 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14859
14860 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14861     :
14862 else
14863     lt_prog_compiler_static=
14864 fi
14865
14866
14867
14868
14869
14870
14871
14872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14874 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14875   $as_echo_n "(cached) " >&6
14876 else
14877   lt_cv_prog_compiler_c_o=no
14878    $RM -r conftest 2>/dev/null
14879    mkdir conftest
14880    cd conftest
14881    mkdir out
14882    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14883
14884    lt_compiler_flag="-o out/conftest2.$ac_objext"
14885    # Insert the option either (1) after the last *FLAGS variable, or
14886    # (2) before a word containing "conftest.", or (3) at the end.
14887    # Note that $ac_compile itself does not contain backslashes and begins
14888    # with a dollar sign (not a hyphen), so the echo should work correctly.
14889    lt_compile=`echo "$ac_compile" | $SED \
14890    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14891    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14892    -e 's:$: $lt_compiler_flag:'`
14893    (eval echo "\"\$as_me:14893: $lt_compile\"" >&5)
14894    (eval "$lt_compile" 2>out/conftest.err)
14895    ac_status=$?
14896    cat out/conftest.err >&5
14897    echo "$as_me:14897: \$? = $ac_status" >&5
14898    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14899    then
14900      # The compiler can only warn and ignore the option if not recognized
14901      # So say no if there are warnings
14902      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14903      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14904      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14905        lt_cv_prog_compiler_c_o=yes
14906      fi
14907    fi
14908    chmod u+w . 2>&5
14909    $RM conftest*
14910    # SGI C++ compiler will create directory out/ii_files/ for
14911    # template instantiation
14912    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14913    $RM out/* && rmdir out
14914    cd ..
14915    $RM -r conftest
14916    $RM conftest*
14917
14918 fi
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14921
14922
14923
14924
14925
14926
14927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14930   $as_echo_n "(cached) " >&6
14931 else
14932   lt_cv_prog_compiler_c_o=no
14933    $RM -r conftest 2>/dev/null
14934    mkdir conftest
14935    cd conftest
14936    mkdir out
14937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14938
14939    lt_compiler_flag="-o out/conftest2.$ac_objext"
14940    # Insert the option either (1) after the last *FLAGS variable, or
14941    # (2) before a word containing "conftest.", or (3) at the end.
14942    # Note that $ac_compile itself does not contain backslashes and begins
14943    # with a dollar sign (not a hyphen), so the echo should work correctly.
14944    lt_compile=`echo "$ac_compile" | $SED \
14945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14947    -e 's:$: $lt_compiler_flag:'`
14948    (eval echo "\"\$as_me:14948: $lt_compile\"" >&5)
14949    (eval "$lt_compile" 2>out/conftest.err)
14950    ac_status=$?
14951    cat out/conftest.err >&5
14952    echo "$as_me:14952: \$? = $ac_status" >&5
14953    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14954    then
14955      # The compiler can only warn and ignore the option if not recognized
14956      # So say no if there are warnings
14957      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14958      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14959      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14960        lt_cv_prog_compiler_c_o=yes
14961      fi
14962    fi
14963    chmod u+w . 2>&5
14964    $RM conftest*
14965    # SGI C++ compiler will create directory out/ii_files/ for
14966    # template instantiation
14967    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14968    $RM out/* && rmdir out
14969    cd ..
14970    $RM -r conftest
14971    $RM conftest*
14972
14973 fi
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14976
14977
14978
14979
14980 hard_links="nottested"
14981 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14982   # do not overwrite the value of need_locks provided by the user
14983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14984 $as_echo_n "checking if we can lock with hard links... " >&6; }
14985   hard_links=yes
14986   $RM conftest*
14987   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14988   touch conftest.a
14989   ln conftest.a conftest.b 2>&5 || hard_links=no
14990   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14992 $as_echo "$hard_links" >&6; }
14993   if test "$hard_links" = no; then
14994     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14995 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14996     need_locks=warn
14997   fi
14998 else
14999   need_locks=no
15000 fi
15001
15002
15003
15004
15005
15006
15007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15008 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15009
15010   runpath_var=
15011   allow_undefined_flag=
15012   always_export_symbols=no
15013   archive_cmds=
15014   archive_expsym_cmds=
15015   compiler_needs_object=no
15016   enable_shared_with_static_runtimes=no
15017   export_dynamic_flag_spec=
15018   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15019   hardcode_automatic=no
15020   hardcode_direct=no
15021   hardcode_direct_absolute=no
15022   hardcode_libdir_flag_spec=
15023   hardcode_libdir_flag_spec_ld=
15024   hardcode_libdir_separator=
15025   hardcode_minus_L=no
15026   hardcode_shlibpath_var=unsupported
15027   inherit_rpath=no
15028   link_all_deplibs=unknown
15029   module_cmds=
15030   module_expsym_cmds=
15031   old_archive_from_new_cmds=
15032   old_archive_from_expsyms_cmds=
15033   thread_safe_flag_spec=
15034   whole_archive_flag_spec=
15035   # include_expsyms should be a list of space-separated symbols to be *always*
15036   # included in the symbol list
15037   include_expsyms=
15038   # exclude_expsyms can be an extended regexp of symbols to exclude
15039   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15040   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15041   # as well as any symbol that contains `d'.
15042   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15043   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15044   # platforms (ab)use it in PIC code, but their linkers get confused if
15045   # the symbol is explicitly referenced.  Since portable code cannot
15046   # rely on this symbol name, it's probably fine to never include it in
15047   # preloaded symbol tables.
15048   # Exclude shared library initialization/finalization symbols.
15049   extract_expsyms_cmds=
15050
15051   case $host_os in
15052   cygwin* | mingw* | pw32* | cegcc*)
15053     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15054     # When not using gcc, we currently assume that we are using
15055     # Microsoft Visual C++.
15056     if test "$GCC" != yes; then
15057       with_gnu_ld=no
15058     fi
15059     ;;
15060   interix*)
15061     # we just hope/assume this is gcc and not c89 (= MSVC++)
15062     with_gnu_ld=yes
15063     ;;
15064   openbsd*)
15065     with_gnu_ld=no
15066     ;;
15067   esac
15068
15069   ld_shlibs=yes
15070   if test "$with_gnu_ld" = yes; then
15071     # If archive_cmds runs LD, not CC, wlarc should be empty
15072     wlarc='${wl}'
15073
15074     # Set some defaults for GNU ld with shared library support. These
15075     # are reset later if shared libraries are not supported. Putting them
15076     # here allows them to be overridden if necessary.
15077     runpath_var=LD_RUN_PATH
15078     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15079     export_dynamic_flag_spec='${wl}--export-dynamic'
15080     # ancient GNU ld didn't support --whole-archive et. al.
15081     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15082       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15083     else
15084       whole_archive_flag_spec=
15085     fi
15086     supports_anon_versioning=no
15087     case `$LD -v 2>&1` in
15088       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15089       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15090       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15091       *\ 2.11.*) ;; # other 2.11 versions
15092       *) supports_anon_versioning=yes ;;
15093     esac
15094
15095     # See if GNU ld supports shared libraries.
15096     case $host_os in
15097     aix[3-9]*)
15098       # On AIX/PPC, the GNU linker is very broken
15099       if test "$host_cpu" != ia64; then
15100         ld_shlibs=no
15101         cat <<_LT_EOF 1>&2
15102
15103 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15104 *** to be unable to reliably create shared libraries on AIX.
15105 *** Therefore, libtool is disabling shared libraries support.  If you
15106 *** really care for shared libraries, you may want to modify your PATH
15107 *** so that a non-GNU linker is found, and then restart.
15108
15109 _LT_EOF
15110       fi
15111       ;;
15112
15113     amigaos*)
15114       case $host_cpu in
15115       powerpc)
15116             # see comment about AmigaOS4 .so support
15117             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118             archive_expsym_cmds=''
15119         ;;
15120       m68k)
15121             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)'
15122             hardcode_libdir_flag_spec='-L$libdir'
15123             hardcode_minus_L=yes
15124         ;;
15125       esac
15126       ;;
15127
15128     beos*)
15129       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15130         allow_undefined_flag=unsupported
15131         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15132         # support --undefined.  This deserves some investigation.  FIXME
15133         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15134       else
15135         ld_shlibs=no
15136       fi
15137       ;;
15138
15139     cygwin* | mingw* | pw32* | cegcc*)
15140       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15141       # as there is no search path for DLLs.
15142       hardcode_libdir_flag_spec='-L$libdir'
15143       allow_undefined_flag=unsupported
15144       always_export_symbols=no
15145       enable_shared_with_static_runtimes=yes
15146       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15147
15148       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15149         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15150         # If the export-symbols file already is a .def file (1st line
15151         # is EXPORTS), use it as is; otherwise, prepend...
15152         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15153           cp $export_symbols $output_objdir/$soname.def;
15154         else
15155           echo EXPORTS > $output_objdir/$soname.def;
15156           cat $export_symbols >> $output_objdir/$soname.def;
15157         fi~
15158         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15159       else
15160         ld_shlibs=no
15161       fi
15162       ;;
15163
15164     interix[3-9]*)
15165       hardcode_direct=no
15166       hardcode_shlibpath_var=no
15167       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15168       export_dynamic_flag_spec='${wl}-E'
15169       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15170       # Instead, shared libraries are loaded at an image base (0x10000000 by
15171       # default) and relocated if they conflict, which is a slow very memory
15172       # consuming and fragmenting process.  To avoid this, we pick a random,
15173       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15174       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15175       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15176       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'
15177       ;;
15178
15179     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15180       tmp_diet=no
15181       if test "$host_os" = linux-dietlibc; then
15182         case $cc_basename in
15183           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15184         esac
15185       fi
15186       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15187          && test "$tmp_diet" = no
15188       then
15189         tmp_addflag=
15190         tmp_sharedflag='-shared'
15191         case $cc_basename,$host_cpu in
15192         pgcc*)                          # Portland Group C compiler
15193           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15194           tmp_addflag=' $pic_flag'
15195           ;;
15196         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15197           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15198           tmp_addflag=' $pic_flag -Mnomain' ;;
15199         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15200           tmp_addflag=' -i_dynamic' ;;
15201         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15202           tmp_addflag=' -i_dynamic -nofor_main' ;;
15203         ifc* | ifort*)                  # Intel Fortran compiler
15204           tmp_addflag=' -nofor_main' ;;
15205         lf95*)                          # Lahey Fortran 8.1
15206           whole_archive_flag_spec=
15207           tmp_sharedflag='--shared' ;;
15208         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
15209           tmp_sharedflag='-qmkshrobj'
15210           tmp_addflag= ;;
15211         esac
15212         case `$CC -V 2>&1 | sed 5q` in
15213         *Sun\ C*)                       # Sun C 5.9
15214           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15215           compiler_needs_object=yes
15216           tmp_sharedflag='-G' ;;
15217         *Sun\ F*)                       # Sun Fortran 8.3
15218           tmp_sharedflag='-G' ;;
15219         esac
15220         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15221
15222         if test "x$supports_anon_versioning" = xyes; then
15223           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15224             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15225             echo "local: *; };" >> $output_objdir/$libname.ver~
15226             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15227         fi
15228
15229         case $cc_basename in
15230         xlf*)
15231           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15232           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15233           hardcode_libdir_flag_spec=
15234           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15235           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15236           if test "x$supports_anon_versioning" = xyes; then
15237             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15238               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15239               echo "local: *; };" >> $output_objdir/$libname.ver~
15240               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15241           fi
15242           ;;
15243         esac
15244       else
15245         ld_shlibs=no
15246       fi
15247       ;;
15248
15249     netbsd*)
15250       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15251         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15252         wlarc=
15253       else
15254         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15255         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15256       fi
15257       ;;
15258
15259     solaris*)
15260       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15261         ld_shlibs=no
15262         cat <<_LT_EOF 1>&2
15263
15264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15265 *** create shared libraries on Solaris systems.  Therefore, libtool
15266 *** is disabling shared libraries support.  We urge you to upgrade GNU
15267 *** binutils to release 2.9.1 or newer.  Another option is to modify
15268 *** your PATH or compiler configuration so that the native linker is
15269 *** used, and then restart.
15270
15271 _LT_EOF
15272       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15273         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15274         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15275       else
15276         ld_shlibs=no
15277       fi
15278       ;;
15279
15280     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15281       case `$LD -v 2>&1` in
15282         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15283         ld_shlibs=no
15284         cat <<_LT_EOF 1>&2
15285
15286 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15287 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15288 *** is disabling shared libraries support.  We urge you to upgrade GNU
15289 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15290 *** your PATH or compiler configuration so that the native linker is
15291 *** used, and then restart.
15292
15293 _LT_EOF
15294         ;;
15295         *)
15296           # For security reasons, it is highly recommended that you always
15297           # use absolute paths for naming shared libraries, and exclude the
15298           # DT_RUNPATH tag from executables and libraries.  But doing so
15299           # requires that you compile everything twice, which is a pain.
15300           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15301             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15302             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15303             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15304           else
15305             ld_shlibs=no
15306           fi
15307         ;;
15308       esac
15309       ;;
15310
15311     sunos4*)
15312       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15313       wlarc=
15314       hardcode_direct=yes
15315       hardcode_shlibpath_var=no
15316       ;;
15317
15318     *)
15319       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15320         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15321         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15322       else
15323         ld_shlibs=no
15324       fi
15325       ;;
15326     esac
15327
15328     if test "$ld_shlibs" = no; then
15329       runpath_var=
15330       hardcode_libdir_flag_spec=
15331       export_dynamic_flag_spec=
15332       whole_archive_flag_spec=
15333     fi
15334   else
15335     # PORTME fill in a description of your system's linker (not GNU ld)
15336     case $host_os in
15337     aix3*)
15338       allow_undefined_flag=unsupported
15339       always_export_symbols=yes
15340       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'
15341       # Note: this linker hardcodes the directories in LIBPATH if there
15342       # are no directories specified by -L.
15343       hardcode_minus_L=yes
15344       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15345         # Neither direct hardcoding nor static linking is supported with a
15346         # broken collect2.
15347         hardcode_direct=unsupported
15348       fi
15349       ;;
15350
15351     aix[4-9]*)
15352       if test "$host_cpu" = ia64; then
15353         # On IA64, the linker does run time linking by default, so we don't
15354         # have to do anything special.
15355         aix_use_runtimelinking=no
15356         exp_sym_flag='-Bexport'
15357         no_entry_flag=""
15358       else
15359         # If we're using GNU nm, then we don't want the "-C" option.
15360         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15361         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15362           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15363         else
15364           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'
15365         fi
15366         aix_use_runtimelinking=no
15367
15368         # Test if we are trying to use run time linking or normal
15369         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15370         # need to do runtime linking.
15371         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15372           for ld_flag in $LDFLAGS; do
15373           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15374             aix_use_runtimelinking=yes
15375             break
15376           fi
15377           done
15378           ;;
15379         esac
15380
15381         exp_sym_flag='-bexport'
15382         no_entry_flag='-bnoentry'
15383       fi
15384
15385       # When large executables or shared objects are built, AIX ld can
15386       # have problems creating the table of contents.  If linking a library
15387       # or program results in "error TOC overflow" add -mminimal-toc to
15388       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15389       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15390
15391       archive_cmds=''
15392       hardcode_direct=yes
15393       hardcode_direct_absolute=yes
15394       hardcode_libdir_separator=':'
15395       link_all_deplibs=yes
15396       file_list_spec='${wl}-f,'
15397
15398       if test "$GCC" = yes; then
15399         case $host_os in aix4.[012]|aix4.[012].*)
15400         # We only want to do this on AIX 4.2 and lower, the check
15401         # below for broken collect2 doesn't work under 4.3+
15402           collect2name=`${CC} -print-prog-name=collect2`
15403           if test -f "$collect2name" &&
15404            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15405           then
15406           # We have reworked collect2
15407           :
15408           else
15409           # We have old collect2
15410           hardcode_direct=unsupported
15411           # It fails to find uninstalled libraries when the uninstalled
15412           # path is not listed in the libpath.  Setting hardcode_minus_L
15413           # to unsupported forces relinking
15414           hardcode_minus_L=yes
15415           hardcode_libdir_flag_spec='-L$libdir'
15416           hardcode_libdir_separator=
15417           fi
15418           ;;
15419         esac
15420         shared_flag='-shared'
15421         if test "$aix_use_runtimelinking" = yes; then
15422           shared_flag="$shared_flag "'${wl}-G'
15423         fi
15424       else
15425         # not using gcc
15426         if test "$host_cpu" = ia64; then
15427         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15428         # chokes on -Wl,-G. The following line is correct:
15429           shared_flag='-G'
15430         else
15431           if test "$aix_use_runtimelinking" = yes; then
15432             shared_flag='${wl}-G'
15433           else
15434             shared_flag='${wl}-bM:SRE'
15435           fi
15436         fi
15437       fi
15438
15439       export_dynamic_flag_spec='${wl}-bexpall'
15440       # It seems that -bexpall does not export symbols beginning with
15441       # underscore (_), so it is better to generate a list of symbols to export.
15442       always_export_symbols=yes
15443       if test "$aix_use_runtimelinking" = yes; then
15444         # Warning - without using the other runtime loading flags (-brtl),
15445         # -berok will link without error, but may produce a broken library.
15446         allow_undefined_flag='-berok'
15447         # Determine the default libpath from the value encoded in an
15448         # empty executable.
15449         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h.  */
15451
15452 int
15453 main ()
15454 {
15455
15456   ;
15457   return 0;
15458 }
15459 _ACEOF
15460 if ac_fn_c_try_link "$LINENO"; then :
15461
15462 lt_aix_libpath_sed='
15463     /Import File Strings/,/^$/ {
15464         /^0/ {
15465             s/^0  *\(.*\)$/\1/
15466             p
15467         }
15468     }'
15469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15470 # Check for a 64-bit object if we didn't find anything.
15471 if test -z "$aix_libpath"; then
15472   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15473 fi
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext \
15476     conftest$ac_exeext conftest.$ac_ext
15477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15478
15479         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15480         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15481       else
15482         if test "$host_cpu" = ia64; then
15483           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15484           allow_undefined_flag="-z nodefs"
15485           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"
15486         else
15487          # Determine the default libpath from the value encoded in an
15488          # empty executable.
15489          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h.  */
15491
15492 int
15493 main ()
15494 {
15495
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 if ac_fn_c_try_link "$LINENO"; then :
15501
15502 lt_aix_libpath_sed='
15503     /Import File Strings/,/^$/ {
15504         /^0/ {
15505             s/^0  *\(.*\)$/\1/
15506             p
15507         }
15508     }'
15509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15510 # Check for a 64-bit object if we didn't find anything.
15511 if test -z "$aix_libpath"; then
15512   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15513 fi
15514 fi
15515 rm -f core conftest.err conftest.$ac_objext \
15516     conftest$ac_exeext conftest.$ac_ext
15517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15518
15519          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15520           # Warning - without using the other run time loading flags,
15521           # -berok will link without error, but may produce a broken library.
15522           no_undefined_flag=' ${wl}-bernotok'
15523           allow_undefined_flag=' ${wl}-berok'
15524           # Exported symbols can be pulled into shared objects from archives
15525           whole_archive_flag_spec='$convenience'
15526           archive_cmds_need_lc=yes
15527           # This is similar to how AIX traditionally builds its shared libraries.
15528           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'
15529         fi
15530       fi
15531       ;;
15532
15533     amigaos*)
15534       case $host_cpu in
15535       powerpc)
15536             # see comment about AmigaOS4 .so support
15537             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538             archive_expsym_cmds=''
15539         ;;
15540       m68k)
15541             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)'
15542             hardcode_libdir_flag_spec='-L$libdir'
15543             hardcode_minus_L=yes
15544         ;;
15545       esac
15546       ;;
15547
15548     bsdi[45]*)
15549       export_dynamic_flag_spec=-rdynamic
15550       ;;
15551
15552     cygwin* | mingw* | pw32* | cegcc*)
15553       # When not using gcc, we currently assume that we are using
15554       # Microsoft Visual C++.
15555       # hardcode_libdir_flag_spec is actually meaningless, as there is
15556       # no search path for DLLs.
15557       hardcode_libdir_flag_spec=' '
15558       allow_undefined_flag=unsupported
15559       # Tell ltmain to make .lib files, not .a files.
15560       libext=lib
15561       # Tell ltmain to make .dll files, not .so files.
15562       shrext_cmds=".dll"
15563       # FIXME: Setting linknames here is a bad hack.
15564       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15565       # The linker will automatically build a .lib file if we build a DLL.
15566       old_archive_from_new_cmds='true'
15567       # FIXME: Should let the user specify the lib program.
15568       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15569       fix_srcfile_path='`cygpath -w "$srcfile"`'
15570       enable_shared_with_static_runtimes=yes
15571       ;;
15572
15573     darwin* | rhapsody*)
15574
15575
15576   archive_cmds_need_lc=no
15577   hardcode_direct=no
15578   hardcode_automatic=yes
15579   hardcode_shlibpath_var=unsupported
15580   whole_archive_flag_spec=''
15581   link_all_deplibs=yes
15582   allow_undefined_flag="$_lt_dar_allow_undefined"
15583   case $cc_basename in
15584      ifort*) _lt_dar_can_shared=yes ;;
15585      *) _lt_dar_can_shared=$GCC ;;
15586   esac
15587   if test "$_lt_dar_can_shared" = "yes"; then
15588     output_verbose_link_cmd=echo
15589     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15590     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15591     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}"
15592     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}"
15593
15594   else
15595   ld_shlibs=no
15596   fi
15597
15598       ;;
15599
15600     dgux*)
15601       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15602       hardcode_libdir_flag_spec='-L$libdir'
15603       hardcode_shlibpath_var=no
15604       ;;
15605
15606     freebsd1*)
15607       ld_shlibs=no
15608       ;;
15609
15610     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15611     # support.  Future versions do this automatically, but an explicit c++rt0.o
15612     # does not break anything, and helps significantly (at the cost of a little
15613     # extra space).
15614     freebsd2.2*)
15615       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15616       hardcode_libdir_flag_spec='-R$libdir'
15617       hardcode_direct=yes
15618       hardcode_shlibpath_var=no
15619       ;;
15620
15621     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15622     freebsd2*)
15623       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15624       hardcode_direct=yes
15625       hardcode_minus_L=yes
15626       hardcode_shlibpath_var=no
15627       ;;
15628
15629     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15630     freebsd* | dragonfly*)
15631       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15632       hardcode_libdir_flag_spec='-R$libdir'
15633       hardcode_direct=yes
15634       hardcode_shlibpath_var=no
15635       ;;
15636
15637     hpux9*)
15638       if test "$GCC" = yes; then
15639         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'
15640       else
15641         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'
15642       fi
15643       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15644       hardcode_libdir_separator=:
15645       hardcode_direct=yes
15646
15647       # hardcode_minus_L: Not really in the search PATH,
15648       # but as the default location of the library.
15649       hardcode_minus_L=yes
15650       export_dynamic_flag_spec='${wl}-E'
15651       ;;
15652
15653     hpux10*)
15654       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15655         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15656       else
15657         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15658       fi
15659       if test "$with_gnu_ld" = no; then
15660         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15661         hardcode_libdir_flag_spec_ld='+b $libdir'
15662         hardcode_libdir_separator=:
15663         hardcode_direct=yes
15664         hardcode_direct_absolute=yes
15665         export_dynamic_flag_spec='${wl}-E'
15666         # hardcode_minus_L: Not really in the search PATH,
15667         # but as the default location of the library.
15668         hardcode_minus_L=yes
15669       fi
15670       ;;
15671
15672     hpux11*)
15673       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15674         case $host_cpu in
15675         hppa*64*)
15676           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15677           ;;
15678         ia64*)
15679           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15680           ;;
15681         *)
15682           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15683           ;;
15684         esac
15685       else
15686         case $host_cpu in
15687         hppa*64*)
15688           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689           ;;
15690         ia64*)
15691           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15692           ;;
15693         *)
15694           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15695           ;;
15696         esac
15697       fi
15698       if test "$with_gnu_ld" = no; then
15699         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15700         hardcode_libdir_separator=:
15701
15702         case $host_cpu in
15703         hppa*64*|ia64*)
15704           hardcode_direct=no
15705           hardcode_shlibpath_var=no
15706           ;;
15707         *)
15708           hardcode_direct=yes
15709           hardcode_direct_absolute=yes
15710           export_dynamic_flag_spec='${wl}-E'
15711
15712           # hardcode_minus_L: Not really in the search PATH,
15713           # but as the default location of the library.
15714           hardcode_minus_L=yes
15715           ;;
15716         esac
15717       fi
15718       ;;
15719
15720     irix5* | irix6* | nonstopux*)
15721       if test "$GCC" = yes; then
15722         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15723         # Try to use the -exported_symbol ld option, if it does not
15724         # work, assume that -exports_file does not work either and
15725         # implicitly export all symbols.
15726         save_LDFLAGS="$LDFLAGS"
15727         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15728         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h.  */
15730 int foo(void) {}
15731 _ACEOF
15732 if ac_fn_c_try_link "$LINENO"; then :
15733   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15734
15735 fi
15736 rm -f core conftest.err conftest.$ac_objext \
15737     conftest$ac_exeext conftest.$ac_ext
15738         LDFLAGS="$save_LDFLAGS"
15739       else
15740         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15741         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15742       fi
15743       archive_cmds_need_lc='no'
15744       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745       hardcode_libdir_separator=:
15746       inherit_rpath=yes
15747       link_all_deplibs=yes
15748       ;;
15749
15750     netbsd*)
15751       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15752         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15753       else
15754         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15755       fi
15756       hardcode_libdir_flag_spec='-R$libdir'
15757       hardcode_direct=yes
15758       hardcode_shlibpath_var=no
15759       ;;
15760
15761     newsos6)
15762       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763       hardcode_direct=yes
15764       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15765       hardcode_libdir_separator=:
15766       hardcode_shlibpath_var=no
15767       ;;
15768
15769     *nto* | *qnx*)
15770       ;;
15771
15772     openbsd*)
15773       if test -f /usr/libexec/ld.so; then
15774         hardcode_direct=yes
15775         hardcode_shlibpath_var=no
15776         hardcode_direct_absolute=yes
15777         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15778           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15779           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15780           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15781           export_dynamic_flag_spec='${wl}-E'
15782         else
15783           case $host_os in
15784            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15785              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15786              hardcode_libdir_flag_spec='-R$libdir'
15787              ;;
15788            *)
15789              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15790              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15791              ;;
15792           esac
15793         fi
15794       else
15795         ld_shlibs=no
15796       fi
15797       ;;
15798
15799     os2*)
15800       hardcode_libdir_flag_spec='-L$libdir'
15801       hardcode_minus_L=yes
15802       allow_undefined_flag=unsupported
15803       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'
15804       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15805       ;;
15806
15807     osf3*)
15808       if test "$GCC" = yes; then
15809         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15810         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15811       else
15812         allow_undefined_flag=' -expect_unresolved \*'
15813         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15814       fi
15815       archive_cmds_need_lc='no'
15816       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15817       hardcode_libdir_separator=:
15818       ;;
15819
15820     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15821       if test "$GCC" = yes; then
15822         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15823         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15824         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15825       else
15826         allow_undefined_flag=' -expect_unresolved \*'
15827         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15828         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~
15829         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15830
15831         # Both c and cxx compiler support -rpath directly
15832         hardcode_libdir_flag_spec='-rpath $libdir'
15833       fi
15834       archive_cmds_need_lc='no'
15835       hardcode_libdir_separator=:
15836       ;;
15837
15838     solaris*)
15839       no_undefined_flag=' -z defs'
15840       if test "$GCC" = yes; then
15841         wlarc='${wl}'
15842         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15844           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15845       else
15846         case `$CC -V 2>&1` in
15847         *"Compilers 5.0"*)
15848           wlarc=''
15849           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15851           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15852           ;;
15853         *)
15854           wlarc='${wl}'
15855           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15856           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15857           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15858           ;;
15859         esac
15860       fi
15861       hardcode_libdir_flag_spec='-R$libdir'
15862       hardcode_shlibpath_var=no
15863       case $host_os in
15864       solaris2.[0-5] | solaris2.[0-5].*) ;;
15865       *)
15866         # The compiler driver will combine and reorder linker options,
15867         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15868         # but is careful enough not to reorder.
15869         # Supported since Solaris 2.6 (maybe 2.5.1?)
15870         if test "$GCC" = yes; then
15871           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15872         else
15873           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15874         fi
15875         ;;
15876       esac
15877       link_all_deplibs=yes
15878       ;;
15879
15880     sunos4*)
15881       if test "x$host_vendor" = xsequent; then
15882         # Use $CC to link under sequent, because it throws in some extra .o
15883         # files that make .init and .fini sections work.
15884         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15885       else
15886         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15887       fi
15888       hardcode_libdir_flag_spec='-L$libdir'
15889       hardcode_direct=yes
15890       hardcode_minus_L=yes
15891       hardcode_shlibpath_var=no
15892       ;;
15893
15894     sysv4)
15895       case $host_vendor in
15896         sni)
15897           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898           hardcode_direct=yes # is this really true???
15899         ;;
15900         siemens)
15901           ## LD is ld it makes a PLAMLIB
15902           ## CC just makes a GrossModule.
15903           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15904           reload_cmds='$CC -r -o $output$reload_objs'
15905           hardcode_direct=no
15906         ;;
15907         motorola)
15908           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15909           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15910         ;;
15911       esac
15912       runpath_var='LD_RUN_PATH'
15913       hardcode_shlibpath_var=no
15914       ;;
15915
15916     sysv4.3*)
15917       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918       hardcode_shlibpath_var=no
15919       export_dynamic_flag_spec='-Bexport'
15920       ;;
15921
15922     sysv4*MP*)
15923       if test -d /usr/nec; then
15924         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15925         hardcode_shlibpath_var=no
15926         runpath_var=LD_RUN_PATH
15927         hardcode_runpath_var=yes
15928         ld_shlibs=yes
15929       fi
15930       ;;
15931
15932     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15933       no_undefined_flag='${wl}-z,text'
15934       archive_cmds_need_lc=no
15935       hardcode_shlibpath_var=no
15936       runpath_var='LD_RUN_PATH'
15937
15938       if test "$GCC" = yes; then
15939         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15940         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15941       else
15942         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15943         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15944       fi
15945       ;;
15946
15947     sysv5* | sco3.2v5* | sco5v6*)
15948       # Note: We can NOT use -z defs as we might desire, because we do not
15949       # link with -lc, and that would cause any symbols used from libc to
15950       # always be unresolved, which means just about no library would
15951       # ever link correctly.  If we're not using GNU ld we use -z text
15952       # though, which does catch some bad symbols but isn't as heavy-handed
15953       # as -z defs.
15954       no_undefined_flag='${wl}-z,text'
15955       allow_undefined_flag='${wl}-z,nodefs'
15956       archive_cmds_need_lc=no
15957       hardcode_shlibpath_var=no
15958       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15959       hardcode_libdir_separator=':'
15960       link_all_deplibs=yes
15961       export_dynamic_flag_spec='${wl}-Bexport'
15962       runpath_var='LD_RUN_PATH'
15963
15964       if test "$GCC" = yes; then
15965         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967       else
15968         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15969         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15970       fi
15971       ;;
15972
15973     uts4*)
15974       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15975       hardcode_libdir_flag_spec='-L$libdir'
15976       hardcode_shlibpath_var=no
15977       ;;
15978
15979     *)
15980       ld_shlibs=no
15981       ;;
15982     esac
15983
15984     if test x$host_vendor = xsni; then
15985       case $host in
15986       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15987         export_dynamic_flag_spec='${wl}-Blargedynsym'
15988         ;;
15989       esac
15990     fi
15991   fi
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15994 $as_echo "$ld_shlibs" >&6; }
15995 test "$ld_shlibs" = no && can_build_shared=no
15996
15997 with_gnu_ld=$with_gnu_ld
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013 #
16014 # Do we need to explicitly link libc?
16015 #
16016 case "x$archive_cmds_need_lc" in
16017 x|xyes)
16018   # Assume -lc should be added
16019   archive_cmds_need_lc=yes
16020
16021   if test "$enable_shared" = yes && test "$GCC" = yes; then
16022     case $archive_cmds in
16023     *'~'*)
16024       # FIXME: we may have to deal with multi-command sequences.
16025       ;;
16026     '$CC '*)
16027       # Test whether the compiler implicitly links with -lc since on some
16028       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16029       # to ld, don't add -lc before -lgcc.
16030       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16031 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16032 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16033   $as_echo_n "(cached) " >&6
16034 else
16035   $RM conftest*
16036         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16037
16038         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16039   (eval $ac_compile) 2>&5
16040   ac_status=$?
16041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16042   test $ac_status = 0; } 2>conftest.err; then
16043           soname=conftest
16044           lib=conftest
16045           libobjs=conftest.$ac_objext
16046           deplibs=
16047           wl=$lt_prog_compiler_wl
16048           pic_flag=$lt_prog_compiler_pic
16049           compiler_flags=-v
16050           linker_flags=-v
16051           verstring=
16052           output_objdir=.
16053           libname=conftest
16054           lt_save_allow_undefined_flag=$allow_undefined_flag
16055           allow_undefined_flag=
16056           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16057   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16058   ac_status=$?
16059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16060   test $ac_status = 0; }
16061           then
16062             lt_cv_archive_cmds_need_lc=no
16063           else
16064             lt_cv_archive_cmds_need_lc=yes
16065           fi
16066           allow_undefined_flag=$lt_save_allow_undefined_flag
16067         else
16068           cat conftest.err 1>&5
16069         fi
16070         $RM conftest*
16071
16072 fi
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16074 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16075       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16076       ;;
16077     esac
16078   fi
16079   ;;
16080 esac
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
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16239 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16240
16241 if test "$GCC" = yes; then
16242   case $host_os in
16243     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16244     *) lt_awk_arg="/^libraries:/" ;;
16245   esac
16246   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16247   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16248     # if the path contains ";" then we assume it to be the separator
16249     # otherwise default to the standard path separator (i.e. ":") - it is
16250     # assumed that no part of a normal pathname contains ";" but that should
16251     # okay in the real world where ";" in dirpaths is itself problematic.
16252     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16253   else
16254     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16255   fi
16256   # Ok, now we have the path, separated by spaces, we can step through it
16257   # and add multilib dir if necessary.
16258   lt_tmp_lt_search_path_spec=
16259   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16260   for lt_sys_path in $lt_search_path_spec; do
16261     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16262       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16263     else
16264       test -d "$lt_sys_path" && \
16265         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16266     fi
16267   done
16268   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16269 BEGIN {RS=" "; FS="/|\n";} {
16270   lt_foo="";
16271   lt_count=0;
16272   for (lt_i = NF; lt_i > 0; lt_i--) {
16273     if ($lt_i != "" && $lt_i != ".") {
16274       if ($lt_i == "..") {
16275         lt_count++;
16276       } else {
16277         if (lt_count == 0) {
16278           lt_foo="/" $lt_i lt_foo;
16279         } else {
16280           lt_count--;
16281         }
16282       }
16283     }
16284   }
16285   if (lt_foo != "") { lt_freq[lt_foo]++; }
16286   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16287 }'`
16288   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16289 else
16290   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16291 fi
16292 library_names_spec=
16293 libname_spec='lib$name'
16294 soname_spec=
16295 shrext_cmds=".so"
16296 postinstall_cmds=
16297 postuninstall_cmds=
16298 finish_cmds=
16299 finish_eval=
16300 shlibpath_var=
16301 shlibpath_overrides_runpath=unknown
16302 version_type=none
16303 dynamic_linker="$host_os ld.so"
16304 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16305 need_lib_prefix=unknown
16306 hardcode_into_libs=no
16307
16308 # when you set need_version to no, make sure it does not cause -set_version
16309 # flags to be left without arguments
16310 need_version=unknown
16311
16312 case $host_os in
16313 aix3*)
16314   version_type=linux
16315   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16316   shlibpath_var=LIBPATH
16317
16318   # AIX 3 has no versioning support, so we append a major version to the name.
16319   soname_spec='${libname}${release}${shared_ext}$major'
16320   ;;
16321
16322 aix[4-9]*)
16323   version_type=linux
16324   need_lib_prefix=no
16325   need_version=no
16326   hardcode_into_libs=yes
16327   if test "$host_cpu" = ia64; then
16328     # AIX 5 supports IA64
16329     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16330     shlibpath_var=LD_LIBRARY_PATH
16331   else
16332     # With GCC up to 2.95.x, collect2 would create an import file
16333     # for dependence libraries.  The import file would start with
16334     # the line `#! .'.  This would cause the generated library to
16335     # depend on `.', always an invalid library.  This was fixed in
16336     # development snapshots of GCC prior to 3.0.
16337     case $host_os in
16338       aix4 | aix4.[01] | aix4.[01].*)
16339       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16340            echo ' yes '
16341            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16342         :
16343       else
16344         can_build_shared=no
16345       fi
16346       ;;
16347     esac
16348     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16349     # soname into executable. Probably we can add versioning support to
16350     # collect2, so additional links can be useful in future.
16351     if test "$aix_use_runtimelinking" = yes; then
16352       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16353       # instead of lib<name>.a to let people know that these are not
16354       # typical AIX shared libraries.
16355       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356     else
16357       # We preserve .a as extension for shared libraries through AIX4.2
16358       # and later when we are not doing run time linking.
16359       library_names_spec='${libname}${release}.a $libname.a'
16360       soname_spec='${libname}${release}${shared_ext}$major'
16361     fi
16362     shlibpath_var=LIBPATH
16363   fi
16364   ;;
16365
16366 amigaos*)
16367   case $host_cpu in
16368   powerpc)
16369     # Since July 2007 AmigaOS4 officially supports .so libraries.
16370     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372     ;;
16373   m68k)
16374     library_names_spec='$libname.ixlibrary $libname.a'
16375     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16376     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
16377     ;;
16378   esac
16379   ;;
16380
16381 beos*)
16382   library_names_spec='${libname}${shared_ext}'
16383   dynamic_linker="$host_os ld.so"
16384   shlibpath_var=LIBRARY_PATH
16385   ;;
16386
16387 bsdi[45]*)
16388   version_type=linux
16389   need_version=no
16390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391   soname_spec='${libname}${release}${shared_ext}$major'
16392   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16395   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16396   # the default ld.so.conf also contains /usr/contrib/lib and
16397   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16398   # libtool to hard-code these into programs
16399   ;;
16400
16401 cygwin* | mingw* | pw32* | cegcc*)
16402   version_type=windows
16403   shrext_cmds=".dll"
16404   need_version=no
16405   need_lib_prefix=no
16406
16407   case $GCC,$host_os in
16408   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16409     library_names_spec='$libname.dll.a'
16410     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16411     postinstall_cmds='base_file=`basename \${file}`~
16412       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16413       dldir=$destdir/`dirname \$dlpath`~
16414       test -d \$dldir || mkdir -p \$dldir~
16415       $install_prog $dir/$dlname \$dldir/$dlname~
16416       chmod a+x \$dldir/$dlname~
16417       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16418         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16419       fi'
16420     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16421       dlpath=$dir/\$dldll~
16422        $RM \$dlpath'
16423     shlibpath_overrides_runpath=yes
16424
16425     case $host_os in
16426     cygwin*)
16427       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16428       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16429       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16430       ;;
16431     mingw* | cegcc*)
16432       # MinGW DLLs use traditional 'lib' prefix
16433       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16434       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16435       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16436         # It is most probably a Windows format PATH printed by
16437         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16438         # path with ; separators, and with drive letters. We can handle the
16439         # drive letters (cygwin fileutils understands them), so leave them,
16440         # especially as we might pass files found there to a mingw objdump,
16441         # which wouldn't understand a cygwinified path. Ahh.
16442         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16443       else
16444         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16445       fi
16446       ;;
16447     pw32*)
16448       # pw32 DLLs use 'pw' prefix rather than 'lib'
16449       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16450       ;;
16451     esac
16452     ;;
16453
16454   *)
16455     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16456     ;;
16457   esac
16458   dynamic_linker='Win32 ld.exe'
16459   # FIXME: first we should search . and the directory the executable is in
16460   shlibpath_var=PATH
16461   ;;
16462
16463 darwin* | rhapsody*)
16464   dynamic_linker="$host_os dyld"
16465   version_type=darwin
16466   need_lib_prefix=no
16467   need_version=no
16468   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16469   soname_spec='${libname}${release}${major}$shared_ext'
16470   shlibpath_overrides_runpath=yes
16471   shlibpath_var=DYLD_LIBRARY_PATH
16472   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16473
16474   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16475   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16476   ;;
16477
16478 dgux*)
16479   version_type=linux
16480   need_lib_prefix=no
16481   need_version=no
16482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16483   soname_spec='${libname}${release}${shared_ext}$major'
16484   shlibpath_var=LD_LIBRARY_PATH
16485   ;;
16486
16487 freebsd1*)
16488   dynamic_linker=no
16489   ;;
16490
16491 freebsd* | dragonfly*)
16492   # DragonFly does not have aout.  When/if they implement a new
16493   # versioning mechanism, adjust this.
16494   if test -x /usr/bin/objformat; then
16495     objformat=`/usr/bin/objformat`
16496   else
16497     case $host_os in
16498     freebsd[123]*) objformat=aout ;;
16499     *) objformat=elf ;;
16500     esac
16501   fi
16502   version_type=freebsd-$objformat
16503   case $version_type in
16504     freebsd-elf*)
16505       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16506       need_version=no
16507       need_lib_prefix=no
16508       ;;
16509     freebsd-*)
16510       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16511       need_version=yes
16512       ;;
16513   esac
16514   shlibpath_var=LD_LIBRARY_PATH
16515   case $host_os in
16516   freebsd2*)
16517     shlibpath_overrides_runpath=yes
16518     ;;
16519   freebsd3.[01]* | freebsdelf3.[01]*)
16520     shlibpath_overrides_runpath=yes
16521     hardcode_into_libs=yes
16522     ;;
16523   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16524   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16525     shlibpath_overrides_runpath=no
16526     hardcode_into_libs=yes
16527     ;;
16528   *) # from 4.6 on, and DragonFly
16529     shlibpath_overrides_runpath=yes
16530     hardcode_into_libs=yes
16531     ;;
16532   esac
16533   ;;
16534
16535 gnu*)
16536   version_type=linux
16537   need_lib_prefix=no
16538   need_version=no
16539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16540   soname_spec='${libname}${release}${shared_ext}$major'
16541   shlibpath_var=LD_LIBRARY_PATH
16542   hardcode_into_libs=yes
16543   ;;
16544
16545 hpux9* | hpux10* | hpux11*)
16546   # Give a soname corresponding to the major version so that dld.sl refuses to
16547   # link against other versions.
16548   version_type=sunos
16549   need_lib_prefix=no
16550   need_version=no
16551   case $host_cpu in
16552   ia64*)
16553     shrext_cmds='.so'
16554     hardcode_into_libs=yes
16555     dynamic_linker="$host_os dld.so"
16556     shlibpath_var=LD_LIBRARY_PATH
16557     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16558     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559     soname_spec='${libname}${release}${shared_ext}$major'
16560     if test "X$HPUX_IA64_MODE" = X32; then
16561       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16562     else
16563       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16564     fi
16565     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16566     ;;
16567   hppa*64*)
16568     shrext_cmds='.sl'
16569     hardcode_into_libs=yes
16570     dynamic_linker="$host_os dld.sl"
16571     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16572     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574     soname_spec='${libname}${release}${shared_ext}$major'
16575     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16576     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16577     ;;
16578   *)
16579     shrext_cmds='.sl'
16580     dynamic_linker="$host_os dld.sl"
16581     shlibpath_var=SHLIB_PATH
16582     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584     soname_spec='${libname}${release}${shared_ext}$major'
16585     ;;
16586   esac
16587   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16588   postinstall_cmds='chmod 555 $lib'
16589   ;;
16590
16591 interix[3-9]*)
16592   version_type=linux
16593   need_lib_prefix=no
16594   need_version=no
16595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16596   soname_spec='${libname}${release}${shared_ext}$major'
16597   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16598   shlibpath_var=LD_LIBRARY_PATH
16599   shlibpath_overrides_runpath=no
16600   hardcode_into_libs=yes
16601   ;;
16602
16603 irix5* | irix6* | nonstopux*)
16604   case $host_os in
16605     nonstopux*) version_type=nonstopux ;;
16606     *)
16607         if test "$lt_cv_prog_gnu_ld" = yes; then
16608                 version_type=linux
16609         else
16610                 version_type=irix
16611         fi ;;
16612   esac
16613   need_lib_prefix=no
16614   need_version=no
16615   soname_spec='${libname}${release}${shared_ext}$major'
16616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16617   case $host_os in
16618   irix5* | nonstopux*)
16619     libsuff= shlibsuff=
16620     ;;
16621   *)
16622     case $LD in # libtool.m4 will add one of these switches to LD
16623     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16624       libsuff= shlibsuff= libmagic=32-bit;;
16625     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16626       libsuff=32 shlibsuff=N32 libmagic=N32;;
16627     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16628       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16629     *) libsuff= shlibsuff= libmagic=never-match;;
16630     esac
16631     ;;
16632   esac
16633   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16634   shlibpath_overrides_runpath=no
16635   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16636   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16637   hardcode_into_libs=yes
16638   ;;
16639
16640 # No shared lib support for Linux oldld, aout, or coff.
16641 linux*oldld* | linux*aout* | linux*coff*)
16642   dynamic_linker=no
16643   ;;
16644
16645 # This must be Linux ELF.
16646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16647   version_type=linux
16648   need_lib_prefix=no
16649   need_version=no
16650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651   soname_spec='${libname}${release}${shared_ext}$major'
16652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16653   shlibpath_var=LD_LIBRARY_PATH
16654   shlibpath_overrides_runpath=no
16655
16656   # Some binutils ld are patched to set DT_RUNPATH
16657   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16658   $as_echo_n "(cached) " >&6
16659 else
16660   lt_cv_shlibpath_overrides_runpath=no
16661     save_LDFLAGS=$LDFLAGS
16662     save_libdir=$libdir
16663     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16664          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h.  */
16667
16668 int
16669 main ()
16670 {
16671
16672   ;
16673   return 0;
16674 }
16675 _ACEOF
16676 if ac_fn_c_try_link "$LINENO"; then :
16677   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16678   lt_cv_shlibpath_overrides_runpath=yes
16679 fi
16680 fi
16681 rm -f core conftest.err conftest.$ac_objext \
16682     conftest$ac_exeext conftest.$ac_ext
16683     LDFLAGS=$save_LDFLAGS
16684     libdir=$save_libdir
16685
16686 fi
16687
16688   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16689
16690   # This implies no fast_install, which is unacceptable.
16691   # Some rework will be needed to allow for fast_install
16692   # before this can be enabled.
16693   hardcode_into_libs=yes
16694
16695   # Append ld.so.conf contents to the search path
16696   if test -f /etc/ld.so.conf; then
16697     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;/^$/d' | tr '\n' ' '`
16698     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16699   fi
16700
16701   # We used to test for /lib/ld.so.1 and disable shared libraries on
16702   # powerpc, because MkLinux only supported shared libraries with the
16703   # GNU dynamic linker.  Since this was broken with cross compilers,
16704   # most powerpc-linux boxes support dynamic linking these days and
16705   # people can always --disable-shared, the test was removed, and we
16706   # assume the GNU/Linux dynamic linker is in use.
16707   dynamic_linker='GNU/Linux ld.so'
16708   ;;
16709
16710 netbsd*)
16711   version_type=sunos
16712   need_lib_prefix=no
16713   need_version=no
16714   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16716     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16717     dynamic_linker='NetBSD (a.out) ld.so'
16718   else
16719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16720     soname_spec='${libname}${release}${shared_ext}$major'
16721     dynamic_linker='NetBSD ld.elf_so'
16722   fi
16723   shlibpath_var=LD_LIBRARY_PATH
16724   shlibpath_overrides_runpath=yes
16725   hardcode_into_libs=yes
16726   ;;
16727
16728 newsos6)
16729   version_type=linux
16730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731   shlibpath_var=LD_LIBRARY_PATH
16732   shlibpath_overrides_runpath=yes
16733   ;;
16734
16735 *nto* | *qnx*)
16736   version_type=qnx
16737   need_lib_prefix=no
16738   need_version=no
16739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740   soname_spec='${libname}${release}${shared_ext}$major'
16741   shlibpath_var=LD_LIBRARY_PATH
16742   shlibpath_overrides_runpath=no
16743   hardcode_into_libs=yes
16744   dynamic_linker='ldqnx.so'
16745   ;;
16746
16747 openbsd*)
16748   version_type=sunos
16749   sys_lib_dlsearch_path_spec="/usr/lib"
16750   need_lib_prefix=no
16751   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16752   case $host_os in
16753     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16754     *)                          need_version=no  ;;
16755   esac
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16757   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16758   shlibpath_var=LD_LIBRARY_PATH
16759   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16760     case $host_os in
16761       openbsd2.[89] | openbsd2.[89].*)
16762         shlibpath_overrides_runpath=no
16763         ;;
16764       *)
16765         shlibpath_overrides_runpath=yes
16766         ;;
16767       esac
16768   else
16769     shlibpath_overrides_runpath=yes
16770   fi
16771   ;;
16772
16773 os2*)
16774   libname_spec='$name'
16775   shrext_cmds=".dll"
16776   need_lib_prefix=no
16777   library_names_spec='$libname${shared_ext} $libname.a'
16778   dynamic_linker='OS/2 ld.exe'
16779   shlibpath_var=LIBPATH
16780   ;;
16781
16782 osf3* | osf4* | osf5*)
16783   version_type=osf
16784   need_lib_prefix=no
16785   need_version=no
16786   soname_spec='${libname}${release}${shared_ext}$major'
16787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788   shlibpath_var=LD_LIBRARY_PATH
16789   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16790   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16791   ;;
16792
16793 rdos*)
16794   dynamic_linker=no
16795   ;;
16796
16797 solaris*)
16798   version_type=linux
16799   need_lib_prefix=no
16800   need_version=no
16801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802   soname_spec='${libname}${release}${shared_ext}$major'
16803   shlibpath_var=LD_LIBRARY_PATH
16804   shlibpath_overrides_runpath=yes
16805   hardcode_into_libs=yes
16806   # ldd complains unless libraries are executable
16807   postinstall_cmds='chmod +x $lib'
16808   ;;
16809
16810 sunos4*)
16811   version_type=sunos
16812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16813   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16814   shlibpath_var=LD_LIBRARY_PATH
16815   shlibpath_overrides_runpath=yes
16816   if test "$with_gnu_ld" = yes; then
16817     need_lib_prefix=no
16818   fi
16819   need_version=yes
16820   ;;
16821
16822 sysv4 | sysv4.3*)
16823   version_type=linux
16824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16825   soname_spec='${libname}${release}${shared_ext}$major'
16826   shlibpath_var=LD_LIBRARY_PATH
16827   case $host_vendor in
16828     sni)
16829       shlibpath_overrides_runpath=no
16830       need_lib_prefix=no
16831       runpath_var=LD_RUN_PATH
16832       ;;
16833     siemens)
16834       need_lib_prefix=no
16835       ;;
16836     motorola)
16837       need_lib_prefix=no
16838       need_version=no
16839       shlibpath_overrides_runpath=no
16840       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16841       ;;
16842   esac
16843   ;;
16844
16845 sysv4*MP*)
16846   if test -d /usr/nec ;then
16847     version_type=linux
16848     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16849     soname_spec='$libname${shared_ext}.$major'
16850     shlibpath_var=LD_LIBRARY_PATH
16851   fi
16852   ;;
16853
16854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16855   version_type=freebsd-elf
16856   need_lib_prefix=no
16857   need_version=no
16858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16859   soname_spec='${libname}${release}${shared_ext}$major'
16860   shlibpath_var=LD_LIBRARY_PATH
16861   shlibpath_overrides_runpath=yes
16862   hardcode_into_libs=yes
16863   if test "$with_gnu_ld" = yes; then
16864     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16865   else
16866     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16867     case $host_os in
16868       sco3.2v5*)
16869         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16870         ;;
16871     esac
16872   fi
16873   sys_lib_dlsearch_path_spec='/usr/lib'
16874   ;;
16875
16876 tpf*)
16877   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16878   version_type=linux
16879   need_lib_prefix=no
16880   need_version=no
16881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882   shlibpath_var=LD_LIBRARY_PATH
16883   shlibpath_overrides_runpath=no
16884   hardcode_into_libs=yes
16885   ;;
16886
16887 uts4*)
16888   version_type=linux
16889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890   soname_spec='${libname}${release}${shared_ext}$major'
16891   shlibpath_var=LD_LIBRARY_PATH
16892   ;;
16893
16894 *)
16895   dynamic_linker=no
16896   ;;
16897 esac
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16899 $as_echo "$dynamic_linker" >&6; }
16900 test "$dynamic_linker" = no && can_build_shared=no
16901
16902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16903 if test "$GCC" = yes; then
16904   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16905 fi
16906
16907 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16908   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16909 fi
16910 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16911   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16912 fi
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
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17001 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17002 hardcode_action=
17003 if test -n "$hardcode_libdir_flag_spec" ||
17004    test -n "$runpath_var" ||
17005    test "X$hardcode_automatic" = "Xyes" ; then
17006
17007   # We can hardcode non-existent directories.
17008   if test "$hardcode_direct" != no &&
17009      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17010      # have to relink, otherwise we might link with an installed library
17011      # when we should be linking with a yet-to-be-installed one
17012      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17013      test "$hardcode_minus_L" != no; then
17014     # Linking always hardcodes the temporary library directory.
17015     hardcode_action=relink
17016   else
17017     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17018     hardcode_action=immediate
17019   fi
17020 else
17021   # We cannot hardcode anything, or else we can only hardcode existing
17022   # directories.
17023   hardcode_action=unsupported
17024 fi
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17026 $as_echo "$hardcode_action" >&6; }
17027
17028 if test "$hardcode_action" = relink ||
17029    test "$inherit_rpath" = yes; then
17030   # Fast installation is not supported
17031   enable_fast_install=no
17032 elif test "$shlibpath_overrides_runpath" = yes ||
17033      test "$enable_shared" = no; then
17034   # Fast installation is not necessary
17035   enable_fast_install=needless
17036 fi
17037
17038
17039
17040
17041
17042
17043   if test "x$enable_dlopen" != xyes; then
17044   enable_dlopen=unknown
17045   enable_dlopen_self=unknown
17046   enable_dlopen_self_static=unknown
17047 else
17048   lt_cv_dlopen=no
17049   lt_cv_dlopen_libs=
17050
17051   case $host_os in
17052   beos*)
17053     lt_cv_dlopen="load_add_on"
17054     lt_cv_dlopen_libs=
17055     lt_cv_dlopen_self=yes
17056     ;;
17057
17058   mingw* | pw32* | cegcc*)
17059     lt_cv_dlopen="LoadLibrary"
17060     lt_cv_dlopen_libs=
17061     ;;
17062
17063   cygwin*)
17064     lt_cv_dlopen="dlopen"
17065     lt_cv_dlopen_libs=
17066     ;;
17067
17068   darwin*)
17069   # if libdl is installed we need to link against it
17070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17071 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17072 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17073   $as_echo_n "(cached) " >&6
17074 else
17075   ac_check_lib_save_LIBS=$LIBS
17076 LIBS="-ldl  $LIBS"
17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h.  */
17079
17080 /* Override any GCC internal prototype to avoid an error.
17081    Use char because int might match the return type of a GCC
17082    builtin and then its argument prototype would still apply.  */
17083 #ifdef __cplusplus
17084 extern "C"
17085 #endif
17086 char dlopen ();
17087 int
17088 main ()
17089 {
17090 return dlopen ();
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 if ac_fn_c_try_link "$LINENO"; then :
17096   ac_cv_lib_dl_dlopen=yes
17097 else
17098   ac_cv_lib_dl_dlopen=no
17099 fi
17100 rm -f core conftest.err conftest.$ac_objext \
17101     conftest$ac_exeext conftest.$ac_ext
17102 LIBS=$ac_check_lib_save_LIBS
17103 fi
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17106 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17107   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17108 else
17109
17110     lt_cv_dlopen="dyld"
17111     lt_cv_dlopen_libs=
17112     lt_cv_dlopen_self=yes
17113
17114 fi
17115
17116     ;;
17117
17118   *)
17119     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17120 if test "x$ac_cv_func_shl_load" = x""yes; then :
17121   lt_cv_dlopen="shl_load"
17122 else
17123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17124 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17125 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17126   $as_echo_n "(cached) " >&6
17127 else
17128   ac_check_lib_save_LIBS=$LIBS
17129 LIBS="-ldld  $LIBS"
17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131 /* end confdefs.h.  */
17132
17133 /* Override any GCC internal prototype to avoid an error.
17134    Use char because int might match the return type of a GCC
17135    builtin and then its argument prototype would still apply.  */
17136 #ifdef __cplusplus
17137 extern "C"
17138 #endif
17139 char shl_load ();
17140 int
17141 main ()
17142 {
17143 return shl_load ();
17144   ;
17145   return 0;
17146 }
17147 _ACEOF
17148 if ac_fn_c_try_link "$LINENO"; then :
17149   ac_cv_lib_dld_shl_load=yes
17150 else
17151   ac_cv_lib_dld_shl_load=no
17152 fi
17153 rm -f core conftest.err conftest.$ac_objext \
17154     conftest$ac_exeext conftest.$ac_ext
17155 LIBS=$ac_check_lib_save_LIBS
17156 fi
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17158 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17159 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17160   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17161 else
17162   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17163 if test "x$ac_cv_func_dlopen" = x""yes; then :
17164   lt_cv_dlopen="dlopen"
17165 else
17166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17167 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17169   $as_echo_n "(cached) " >&6
17170 else
17171   ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-ldl  $LIBS"
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h.  */
17175
17176 /* Override any GCC internal prototype to avoid an error.
17177    Use char because int might match the return type of a GCC
17178    builtin and then its argument prototype would still apply.  */
17179 #ifdef __cplusplus
17180 extern "C"
17181 #endif
17182 char dlopen ();
17183 int
17184 main ()
17185 {
17186 return dlopen ();
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 if ac_fn_c_try_link "$LINENO"; then :
17192   ac_cv_lib_dl_dlopen=yes
17193 else
17194   ac_cv_lib_dl_dlopen=no
17195 fi
17196 rm -f core conftest.err conftest.$ac_objext \
17197     conftest$ac_exeext conftest.$ac_ext
17198 LIBS=$ac_check_lib_save_LIBS
17199 fi
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17201 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17202 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17203   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17204 else
17205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17206 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17207 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17208   $as_echo_n "(cached) " >&6
17209 else
17210   ac_check_lib_save_LIBS=$LIBS
17211 LIBS="-lsvld  $LIBS"
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h.  */
17214
17215 /* Override any GCC internal prototype to avoid an error.
17216    Use char because int might match the return type of a GCC
17217    builtin and then its argument prototype would still apply.  */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 char dlopen ();
17222 int
17223 main ()
17224 {
17225 return dlopen ();
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 if ac_fn_c_try_link "$LINENO"; then :
17231   ac_cv_lib_svld_dlopen=yes
17232 else
17233   ac_cv_lib_svld_dlopen=no
17234 fi
17235 rm -f core conftest.err conftest.$ac_objext \
17236     conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17238 fi
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17240 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17241 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17242   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17243 else
17244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17245 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17247   $as_echo_n "(cached) " >&6
17248 else
17249   ac_check_lib_save_LIBS=$LIBS
17250 LIBS="-ldld  $LIBS"
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h.  */
17253
17254 /* Override any GCC internal prototype to avoid an error.
17255    Use char because int might match the return type of a GCC
17256    builtin and then its argument prototype would still apply.  */
17257 #ifdef __cplusplus
17258 extern "C"
17259 #endif
17260 char dld_link ();
17261 int
17262 main ()
17263 {
17264 return dld_link ();
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 if ac_fn_c_try_link "$LINENO"; then :
17270   ac_cv_lib_dld_dld_link=yes
17271 else
17272   ac_cv_lib_dld_dld_link=no
17273 fi
17274 rm -f core conftest.err conftest.$ac_objext \
17275     conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17277 fi
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17279 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17280 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17281   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17282 fi
17283
17284
17285 fi
17286
17287
17288 fi
17289
17290
17291 fi
17292
17293
17294 fi
17295
17296
17297 fi
17298
17299     ;;
17300   esac
17301
17302   if test "x$lt_cv_dlopen" != xno; then
17303     enable_dlopen=yes
17304   else
17305     enable_dlopen=no
17306   fi
17307
17308   case $lt_cv_dlopen in
17309   dlopen)
17310     save_CPPFLAGS="$CPPFLAGS"
17311     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17312
17313     save_LDFLAGS="$LDFLAGS"
17314     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17315
17316     save_LIBS="$LIBS"
17317     LIBS="$lt_cv_dlopen_libs $LIBS"
17318
17319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17320 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17321 if test "${lt_cv_dlopen_self+set}" = set; then :
17322   $as_echo_n "(cached) " >&6
17323 else
17324           if test "$cross_compiling" = yes; then :
17325   lt_cv_dlopen_self=cross
17326 else
17327   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17328   lt_status=$lt_dlunknown
17329   cat > conftest.$ac_ext <<_LT_EOF
17330 #line 17330 "configure"
17331 #include "confdefs.h"
17332
17333 #if HAVE_DLFCN_H
17334 #include <dlfcn.h>
17335 #endif
17336
17337 #include <stdio.h>
17338
17339 #ifdef RTLD_GLOBAL
17340 #  define LT_DLGLOBAL           RTLD_GLOBAL
17341 #else
17342 #  ifdef DL_GLOBAL
17343 #    define LT_DLGLOBAL         DL_GLOBAL
17344 #  else
17345 #    define LT_DLGLOBAL         0
17346 #  endif
17347 #endif
17348
17349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17350    find out it does not work in some platform. */
17351 #ifndef LT_DLLAZY_OR_NOW
17352 #  ifdef RTLD_LAZY
17353 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17354 #  else
17355 #    ifdef DL_LAZY
17356 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17357 #    else
17358 #      ifdef RTLD_NOW
17359 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17360 #      else
17361 #        ifdef DL_NOW
17362 #          define LT_DLLAZY_OR_NOW      DL_NOW
17363 #        else
17364 #          define LT_DLLAZY_OR_NOW      0
17365 #        endif
17366 #      endif
17367 #    endif
17368 #  endif
17369 #endif
17370
17371 void fnord() { int i=42;}
17372 int main ()
17373 {
17374   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17375   int status = $lt_dlunknown;
17376
17377   if (self)
17378     {
17379       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17380       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17381       /* dlclose (self); */
17382     }
17383   else
17384     puts (dlerror ());
17385
17386   return status;
17387 }
17388 _LT_EOF
17389   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17390   (eval $ac_link) 2>&5
17391   ac_status=$?
17392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17393   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17394     (./conftest; exit; ) >&5 2>/dev/null
17395     lt_status=$?
17396     case x$lt_status in
17397       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17398       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17399       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17400     esac
17401   else :
17402     # compilation failed
17403     lt_cv_dlopen_self=no
17404   fi
17405 fi
17406 rm -fr conftest*
17407
17408
17409 fi
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17411 $as_echo "$lt_cv_dlopen_self" >&6; }
17412
17413     if test "x$lt_cv_dlopen_self" = xyes; then
17414       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17415       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17416 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17417 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17418   $as_echo_n "(cached) " >&6
17419 else
17420           if test "$cross_compiling" = yes; then :
17421   lt_cv_dlopen_self_static=cross
17422 else
17423   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17424   lt_status=$lt_dlunknown
17425   cat > conftest.$ac_ext <<_LT_EOF
17426 #line 17426 "configure"
17427 #include "confdefs.h"
17428
17429 #if HAVE_DLFCN_H
17430 #include <dlfcn.h>
17431 #endif
17432
17433 #include <stdio.h>
17434
17435 #ifdef RTLD_GLOBAL
17436 #  define LT_DLGLOBAL           RTLD_GLOBAL
17437 #else
17438 #  ifdef DL_GLOBAL
17439 #    define LT_DLGLOBAL         DL_GLOBAL
17440 #  else
17441 #    define LT_DLGLOBAL         0
17442 #  endif
17443 #endif
17444
17445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17446    find out it does not work in some platform. */
17447 #ifndef LT_DLLAZY_OR_NOW
17448 #  ifdef RTLD_LAZY
17449 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17450 #  else
17451 #    ifdef DL_LAZY
17452 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17453 #    else
17454 #      ifdef RTLD_NOW
17455 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17456 #      else
17457 #        ifdef DL_NOW
17458 #          define LT_DLLAZY_OR_NOW      DL_NOW
17459 #        else
17460 #          define LT_DLLAZY_OR_NOW      0
17461 #        endif
17462 #      endif
17463 #    endif
17464 #  endif
17465 #endif
17466
17467 void fnord() { int i=42;}
17468 int main ()
17469 {
17470   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17471   int status = $lt_dlunknown;
17472
17473   if (self)
17474     {
17475       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17476       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17477       /* dlclose (self); */
17478     }
17479   else
17480     puts (dlerror ());
17481
17482   return status;
17483 }
17484 _LT_EOF
17485   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17486   (eval $ac_link) 2>&5
17487   ac_status=$?
17488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17490     (./conftest; exit; ) >&5 2>/dev/null
17491     lt_status=$?
17492     case x$lt_status in
17493       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17494       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17495       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17496     esac
17497   else :
17498     # compilation failed
17499     lt_cv_dlopen_self_static=no
17500   fi
17501 fi
17502 rm -fr conftest*
17503
17504
17505 fi
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17507 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17508     fi
17509
17510     CPPFLAGS="$save_CPPFLAGS"
17511     LDFLAGS="$save_LDFLAGS"
17512     LIBS="$save_LIBS"
17513     ;;
17514   esac
17515
17516   case $lt_cv_dlopen_self in
17517   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17518   *) enable_dlopen_self=unknown ;;
17519   esac
17520
17521   case $lt_cv_dlopen_self_static in
17522   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17523   *) enable_dlopen_self_static=unknown ;;
17524   esac
17525 fi
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543 striplib=
17544 old_striplib=
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17546 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17547 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17548   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17549   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17551 $as_echo "yes" >&6; }
17552 else
17553 # FIXME - insert some real tests, host_os isn't really good enough
17554   case $host_os in
17555   darwin*)
17556     if test -n "$STRIP" ; then
17557       striplib="$STRIP -x"
17558       old_striplib="$STRIP -S"
17559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17560 $as_echo "yes" >&6; }
17561     else
17562       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563 $as_echo "no" >&6; }
17564     fi
17565     ;;
17566   *)
17567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568 $as_echo "no" >&6; }
17569     ;;
17570   esac
17571 fi
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584   # Report which library types will actually be built
17585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17586 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17588 $as_echo "$can_build_shared" >&6; }
17589
17590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17591 $as_echo_n "checking whether to build shared libraries... " >&6; }
17592   test "$can_build_shared" = "no" && enable_shared=no
17593
17594   # On AIX, shared libraries and static libraries use the same namespace, and
17595   # are all built from PIC.
17596   case $host_os in
17597   aix3*)
17598     test "$enable_shared" = yes && enable_static=no
17599     if test -n "$RANLIB"; then
17600       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17601       postinstall_cmds='$RANLIB $lib'
17602     fi
17603     ;;
17604
17605   aix[4-9]*)
17606     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17607       test "$enable_shared" = yes && enable_static=no
17608     fi
17609     ;;
17610   esac
17611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17612 $as_echo "$enable_shared" >&6; }
17613
17614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17615 $as_echo_n "checking whether to build static libraries... " >&6; }
17616   # Make sure either enable_shared or enable_static is yes.
17617   test "$enable_shared" = yes || enable_static=yes
17618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17619 $as_echo "$enable_static" >&6; }
17620
17621
17622
17623
17624 fi
17625 ac_ext=c
17626 ac_cpp='$CPP $CPPFLAGS'
17627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17630
17631 CC="$lt_save_CC"
17632
17633
17634 ac_ext=cpp
17635 ac_cpp='$CXXCPP $CPPFLAGS'
17636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17639
17640 archive_cmds_need_lc_CXX=no
17641 allow_undefined_flag_CXX=
17642 always_export_symbols_CXX=no
17643 archive_expsym_cmds_CXX=
17644 compiler_needs_object_CXX=no
17645 export_dynamic_flag_spec_CXX=
17646 hardcode_direct_CXX=no
17647 hardcode_direct_absolute_CXX=no
17648 hardcode_libdir_flag_spec_CXX=
17649 hardcode_libdir_flag_spec_ld_CXX=
17650 hardcode_libdir_separator_CXX=
17651 hardcode_minus_L_CXX=no
17652 hardcode_shlibpath_var_CXX=unsupported
17653 hardcode_automatic_CXX=no
17654 inherit_rpath_CXX=no
17655 module_cmds_CXX=
17656 module_expsym_cmds_CXX=
17657 link_all_deplibs_CXX=unknown
17658 old_archive_cmds_CXX=$old_archive_cmds
17659 no_undefined_flag_CXX=
17660 whole_archive_flag_spec_CXX=
17661 enable_shared_with_static_runtimes_CXX=no
17662
17663 # Source file extension for C++ test sources.
17664 ac_ext=cpp
17665
17666 # Object file extension for compiled C++ test sources.
17667 objext=o
17668 objext_CXX=$objext
17669
17670 # No sense in running all these tests if we already determined that
17671 # the CXX compiler isn't working.  Some variables (like enable_shared)
17672 # are currently assumed to apply to all compilers on this platform,
17673 # and will be corrupted by setting them based on a non-working compiler.
17674 if test "$_lt_caught_CXX_error" != yes; then
17675   # Code to be used in simple compile tests
17676   lt_simple_compile_test_code="int some_variable = 0;"
17677
17678   # Code to be used in simple link tests
17679   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17680
17681   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17682
17683
17684
17685
17686
17687
17688 # If no C compiler was specified, use CC.
17689 LTCC=${LTCC-"$CC"}
17690
17691 # If no C compiler flags were specified, use CFLAGS.
17692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17693
17694 # Allow CC to be a program name with arguments.
17695 compiler=$CC
17696
17697
17698   # save warnings/boilerplate of simple test code
17699   ac_outfile=conftest.$ac_objext
17700 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17702 _lt_compiler_boilerplate=`cat conftest.err`
17703 $RM conftest*
17704
17705   ac_outfile=conftest.$ac_objext
17706 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17708 _lt_linker_boilerplate=`cat conftest.err`
17709 $RM -r conftest*
17710
17711
17712   # Allow CC to be a program name with arguments.
17713   lt_save_CC=$CC
17714   lt_save_LD=$LD
17715   lt_save_GCC=$GCC
17716   GCC=$GXX
17717   lt_save_with_gnu_ld=$with_gnu_ld
17718   lt_save_path_LD=$lt_cv_path_LD
17719   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17720     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17721   else
17722     $as_unset lt_cv_prog_gnu_ld
17723   fi
17724   if test -n "${lt_cv_path_LDCXX+set}"; then
17725     lt_cv_path_LD=$lt_cv_path_LDCXX
17726   else
17727     $as_unset lt_cv_path_LD
17728   fi
17729   test -z "${LDCXX+set}" || LD=$LDCXX
17730   CC=${CXX-"c++"}
17731   compiler=$CC
17732   compiler_CXX=$CC
17733   for cc_temp in $compiler""; do
17734   case $cc_temp in
17735     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17736     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17737     \-*) ;;
17738     *) break;;
17739   esac
17740 done
17741 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17742
17743
17744   if test -n "$compiler"; then
17745     # We don't want -fno-exception when compiling C++ code, so set the
17746     # no_builtin_flag separately
17747     if test "$GXX" = yes; then
17748       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17749     else
17750       lt_prog_compiler_no_builtin_flag_CXX=
17751     fi
17752
17753     if test "$GXX" = yes; then
17754       # Set up default GNU C++ configuration
17755
17756
17757
17758 # Check whether --with-gnu-ld was given.
17759 if test "${with_gnu_ld+set}" = set; then :
17760   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17761 else
17762   with_gnu_ld=no
17763 fi
17764
17765 ac_prog=ld
17766 if test "$GCC" = yes; then
17767   # Check if gcc -print-prog-name=ld gives a path.
17768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17769 $as_echo_n "checking for ld used by $CC... " >&6; }
17770   case $host in
17771   *-*-mingw*)
17772     # gcc leaves a trailing carriage return which upsets mingw
17773     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17774   *)
17775     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17776   esac
17777   case $ac_prog in
17778     # Accept absolute paths.
17779     [\\/]* | ?:[\\/]*)
17780       re_direlt='/[^/][^/]*/\.\./'
17781       # Canonicalize the pathname of ld
17782       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17783       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17784         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17785       done
17786       test -z "$LD" && LD="$ac_prog"
17787       ;;
17788   "")
17789     # If it fails, then pretend we aren't using GCC.
17790     ac_prog=ld
17791     ;;
17792   *)
17793     # If it is relative, then search for the first ld in PATH.
17794     with_gnu_ld=unknown
17795     ;;
17796   esac
17797 elif test "$with_gnu_ld" = yes; then
17798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17799 $as_echo_n "checking for GNU ld... " >&6; }
17800 else
17801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17802 $as_echo_n "checking for non-GNU ld... " >&6; }
17803 fi
17804 if test "${lt_cv_path_LD+set}" = set; then :
17805   $as_echo_n "(cached) " >&6
17806 else
17807   if test -z "$LD"; then
17808   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17809   for ac_dir in $PATH; do
17810     IFS="$lt_save_ifs"
17811     test -z "$ac_dir" && ac_dir=.
17812     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17813       lt_cv_path_LD="$ac_dir/$ac_prog"
17814       # Check to see if the program is GNU ld.  I'd rather use --version,
17815       # but apparently some variants of GNU ld only accept -v.
17816       # Break only if it was the GNU/non-GNU ld that we prefer.
17817       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17818       *GNU* | *'with BFD'*)
17819         test "$with_gnu_ld" != no && break
17820         ;;
17821       *)
17822         test "$with_gnu_ld" != yes && break
17823         ;;
17824       esac
17825     fi
17826   done
17827   IFS="$lt_save_ifs"
17828 else
17829   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17830 fi
17831 fi
17832
17833 LD="$lt_cv_path_LD"
17834 if test -n "$LD"; then
17835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17836 $as_echo "$LD" >&6; }
17837 else
17838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17839 $as_echo "no" >&6; }
17840 fi
17841 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17843 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17844 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17845   $as_echo_n "(cached) " >&6
17846 else
17847   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17848 case `$LD -v 2>&1 </dev/null` in
17849 *GNU* | *'with BFD'*)
17850   lt_cv_prog_gnu_ld=yes
17851   ;;
17852 *)
17853   lt_cv_prog_gnu_ld=no
17854   ;;
17855 esac
17856 fi
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17858 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17859 with_gnu_ld=$lt_cv_prog_gnu_ld
17860
17861
17862
17863
17864
17865
17866
17867       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17868       # archiving commands below assume that GNU ld is being used.
17869       if test "$with_gnu_ld" = yes; then
17870         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17871         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'
17872
17873         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17874         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17875
17876         # If archive_cmds runs LD, not CC, wlarc should be empty
17877         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17878         #     investigate it a little bit more. (MM)
17879         wlarc='${wl}'
17880
17881         # ancient GNU ld didn't support --whole-archive et. al.
17882         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17883           $GREP 'no-whole-archive' > /dev/null; then
17884           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17885         else
17886           whole_archive_flag_spec_CXX=
17887         fi
17888       else
17889         with_gnu_ld=no
17890         wlarc=
17891
17892         # A generic and very simple default shared library creation
17893         # command for GNU C++ for the case where it uses the native
17894         # linker, instead of GNU ld.  If possible, this setting should
17895         # overridden to take advantage of the native linker features on
17896         # the platform it is being used on.
17897         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17898       fi
17899
17900       # Commands to make compiler produce verbose output that lists
17901       # what "hidden" libraries, object files and flags are used when
17902       # linking a shared library.
17903       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
17904
17905     else
17906       GXX=no
17907       with_gnu_ld=no
17908       wlarc=
17909     fi
17910
17911     # PORTME: fill in a description of your system's C++ link characteristics
17912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17913 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17914     ld_shlibs_CXX=yes
17915     case $host_os in
17916       aix3*)
17917         # FIXME: insert proper C++ library support
17918         ld_shlibs_CXX=no
17919         ;;
17920       aix[4-9]*)
17921         if test "$host_cpu" = ia64; then
17922           # On IA64, the linker does run time linking by default, so we don't
17923           # have to do anything special.
17924           aix_use_runtimelinking=no
17925           exp_sym_flag='-Bexport'
17926           no_entry_flag=""
17927         else
17928           aix_use_runtimelinking=no
17929
17930           # Test if we are trying to use run time linking or normal
17931           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17932           # need to do runtime linking.
17933           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17934             for ld_flag in $LDFLAGS; do
17935               case $ld_flag in
17936               *-brtl*)
17937                 aix_use_runtimelinking=yes
17938                 break
17939                 ;;
17940               esac
17941             done
17942             ;;
17943           esac
17944
17945           exp_sym_flag='-bexport'
17946           no_entry_flag='-bnoentry'
17947         fi
17948
17949         # When large executables or shared objects are built, AIX ld can
17950         # have problems creating the table of contents.  If linking a library
17951         # or program results in "error TOC overflow" add -mminimal-toc to
17952         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17953         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17954
17955         archive_cmds_CXX=''
17956         hardcode_direct_CXX=yes
17957         hardcode_direct_absolute_CXX=yes
17958         hardcode_libdir_separator_CXX=':'
17959         link_all_deplibs_CXX=yes
17960         file_list_spec_CXX='${wl}-f,'
17961
17962         if test "$GXX" = yes; then
17963           case $host_os in aix4.[012]|aix4.[012].*)
17964           # We only want to do this on AIX 4.2 and lower, the check
17965           # below for broken collect2 doesn't work under 4.3+
17966           collect2name=`${CC} -print-prog-name=collect2`
17967           if test -f "$collect2name" &&
17968              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17969           then
17970             # We have reworked collect2
17971             :
17972           else
17973             # We have old collect2
17974             hardcode_direct_CXX=unsupported
17975             # It fails to find uninstalled libraries when the uninstalled
17976             # path is not listed in the libpath.  Setting hardcode_minus_L
17977             # to unsupported forces relinking
17978             hardcode_minus_L_CXX=yes
17979             hardcode_libdir_flag_spec_CXX='-L$libdir'
17980             hardcode_libdir_separator_CXX=
17981           fi
17982           esac
17983           shared_flag='-shared'
17984           if test "$aix_use_runtimelinking" = yes; then
17985             shared_flag="$shared_flag "'${wl}-G'
17986           fi
17987         else
17988           # not using gcc
17989           if test "$host_cpu" = ia64; then
17990           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17991           # chokes on -Wl,-G. The following line is correct:
17992           shared_flag='-G'
17993           else
17994             if test "$aix_use_runtimelinking" = yes; then
17995               shared_flag='${wl}-G'
17996             else
17997               shared_flag='${wl}-bM:SRE'
17998             fi
17999           fi
18000         fi
18001
18002         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18003         # It seems that -bexpall does not export symbols beginning with
18004         # underscore (_), so it is better to generate a list of symbols to
18005         # export.
18006         always_export_symbols_CXX=yes
18007         if test "$aix_use_runtimelinking" = yes; then
18008           # Warning - without using the other runtime loading flags (-brtl),
18009           # -berok will link without error, but may produce a broken library.
18010           allow_undefined_flag_CXX='-berok'
18011           # Determine the default libpath from the value encoded in an empty
18012           # executable.
18013           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h.  */
18015
18016 int
18017 main ()
18018 {
18019
18020   ;
18021   return 0;
18022 }
18023 _ACEOF
18024 if ac_fn_cxx_try_link "$LINENO"; then :
18025
18026 lt_aix_libpath_sed='
18027     /Import File Strings/,/^$/ {
18028         /^0/ {
18029             s/^0  *\(.*\)$/\1/
18030             p
18031         }
18032     }'
18033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18034 # Check for a 64-bit object if we didn't find anything.
18035 if test -z "$aix_libpath"; then
18036   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18037 fi
18038 fi
18039 rm -f core conftest.err conftest.$ac_objext \
18040     conftest$ac_exeext conftest.$ac_ext
18041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18042
18043           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18044
18045           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18046         else
18047           if test "$host_cpu" = ia64; then
18048             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18049             allow_undefined_flag_CXX="-z nodefs"
18050             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"
18051           else
18052             # Determine the default libpath from the value encoded in an
18053             # empty executable.
18054             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h.  */
18056
18057 int
18058 main ()
18059 {
18060
18061   ;
18062   return 0;
18063 }
18064 _ACEOF
18065 if ac_fn_cxx_try_link "$LINENO"; then :
18066
18067 lt_aix_libpath_sed='
18068     /Import File Strings/,/^$/ {
18069         /^0/ {
18070             s/^0  *\(.*\)$/\1/
18071             p
18072         }
18073     }'
18074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18075 # Check for a 64-bit object if we didn't find anything.
18076 if test -z "$aix_libpath"; then
18077   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18078 fi
18079 fi
18080 rm -f core conftest.err conftest.$ac_objext \
18081     conftest$ac_exeext conftest.$ac_ext
18082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18083
18084             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18085             # Warning - without using the other run time loading flags,
18086             # -berok will link without error, but may produce a broken library.
18087             no_undefined_flag_CXX=' ${wl}-bernotok'
18088             allow_undefined_flag_CXX=' ${wl}-berok'
18089             # Exported symbols can be pulled into shared objects from archives
18090             whole_archive_flag_spec_CXX='$convenience'
18091             archive_cmds_need_lc_CXX=yes
18092             # This is similar to how AIX traditionally builds its shared
18093             # libraries.
18094             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'
18095           fi
18096         fi
18097         ;;
18098
18099       beos*)
18100         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18101           allow_undefined_flag_CXX=unsupported
18102           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18103           # support --undefined.  This deserves some investigation.  FIXME
18104           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18105         else
18106           ld_shlibs_CXX=no
18107         fi
18108         ;;
18109
18110       chorus*)
18111         case $cc_basename in
18112           *)
18113           # FIXME: insert proper C++ library support
18114           ld_shlibs_CXX=no
18115           ;;
18116         esac
18117         ;;
18118
18119       cygwin* | mingw* | pw32* | cegcc*)
18120         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18121         # as there is no search path for DLLs.
18122         hardcode_libdir_flag_spec_CXX='-L$libdir'
18123         allow_undefined_flag_CXX=unsupported
18124         always_export_symbols_CXX=no
18125         enable_shared_with_static_runtimes_CXX=yes
18126
18127         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18128           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'
18129           # If the export-symbols file already is a .def file (1st line
18130           # is EXPORTS), use it as is; otherwise, prepend...
18131           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18132             cp $export_symbols $output_objdir/$soname.def;
18133           else
18134             echo EXPORTS > $output_objdir/$soname.def;
18135             cat $export_symbols >> $output_objdir/$soname.def;
18136           fi~
18137           $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'
18138         else
18139           ld_shlibs_CXX=no
18140         fi
18141         ;;
18142       darwin* | rhapsody*)
18143
18144
18145   archive_cmds_need_lc_CXX=no
18146   hardcode_direct_CXX=no
18147   hardcode_automatic_CXX=yes
18148   hardcode_shlibpath_var_CXX=unsupported
18149   whole_archive_flag_spec_CXX=''
18150   link_all_deplibs_CXX=yes
18151   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18152   case $cc_basename in
18153      ifort*) _lt_dar_can_shared=yes ;;
18154      *) _lt_dar_can_shared=$GCC ;;
18155   esac
18156   if test "$_lt_dar_can_shared" = "yes"; then
18157     output_verbose_link_cmd=echo
18158     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}"
18159     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18160     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}"
18161     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}"
18162        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18163       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}"
18164       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}"
18165     fi
18166
18167   else
18168   ld_shlibs_CXX=no
18169   fi
18170
18171         ;;
18172
18173       dgux*)
18174         case $cc_basename in
18175           ec++*)
18176             # FIXME: insert proper C++ library support
18177             ld_shlibs_CXX=no
18178             ;;
18179           ghcx*)
18180             # Green Hills C++ Compiler
18181             # FIXME: insert proper C++ library support
18182             ld_shlibs_CXX=no
18183             ;;
18184           *)
18185             # FIXME: insert proper C++ library support
18186             ld_shlibs_CXX=no
18187             ;;
18188         esac
18189         ;;
18190
18191       freebsd[12]*)
18192         # C++ shared libraries reported to be fairly broken before
18193         # switch to ELF
18194         ld_shlibs_CXX=no
18195         ;;
18196
18197       freebsd-elf*)
18198         archive_cmds_need_lc_CXX=no
18199         ;;
18200
18201       freebsd* | dragonfly*)
18202         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18203         # conventions
18204         ld_shlibs_CXX=yes
18205         ;;
18206
18207       gnu*)
18208         ;;
18209
18210       hpux9*)
18211         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18212         hardcode_libdir_separator_CXX=:
18213         export_dynamic_flag_spec_CXX='${wl}-E'
18214         hardcode_direct_CXX=yes
18215         hardcode_minus_L_CXX=yes # Not in the search PATH,
18216                                              # but as the default
18217                                              # location of the library.
18218
18219         case $cc_basename in
18220           CC*)
18221             # FIXME: insert proper C++ library support
18222             ld_shlibs_CXX=no
18223             ;;
18224           aCC*)
18225             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'
18226             # Commands to make compiler produce verbose output that lists
18227             # what "hidden" libraries, object files and flags are used when
18228             # linking a shared library.
18229             #
18230             # There doesn't appear to be a way to prevent this compiler from
18231             # explicitly linking system object files so we need to strip them
18232             # from the output so that they don't get included in the library
18233             # dependencies.
18234             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; $ECHO "X$list" | $Xsed'
18235             ;;
18236           *)
18237             if test "$GXX" = yes; then
18238               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'
18239             else
18240               # FIXME: insert proper C++ library support
18241               ld_shlibs_CXX=no
18242             fi
18243             ;;
18244         esac
18245         ;;
18246
18247       hpux10*|hpux11*)
18248         if test $with_gnu_ld = no; then
18249           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18250           hardcode_libdir_separator_CXX=:
18251
18252           case $host_cpu in
18253             hppa*64*|ia64*)
18254               ;;
18255             *)
18256               export_dynamic_flag_spec_CXX='${wl}-E'
18257               ;;
18258           esac
18259         fi
18260         case $host_cpu in
18261           hppa*64*|ia64*)
18262             hardcode_direct_CXX=no
18263             hardcode_shlibpath_var_CXX=no
18264             ;;
18265           *)
18266             hardcode_direct_CXX=yes
18267             hardcode_direct_absolute_CXX=yes
18268             hardcode_minus_L_CXX=yes # Not in the search PATH,
18269                                                  # but as the default
18270                                                  # location of the library.
18271             ;;
18272         esac
18273
18274         case $cc_basename in
18275           CC*)
18276             # FIXME: insert proper C++ library support
18277             ld_shlibs_CXX=no
18278             ;;
18279           aCC*)
18280             case $host_cpu in
18281               hppa*64*)
18282                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18283                 ;;
18284               ia64*)
18285                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18286                 ;;
18287               *)
18288                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18289                 ;;
18290             esac
18291             # Commands to make compiler produce verbose output that lists
18292             # what "hidden" libraries, object files and flags are used when
18293             # linking a shared library.
18294             #
18295             # There doesn't appear to be a way to prevent this compiler from
18296             # explicitly linking system object files so we need to strip them
18297             # from the output so that they don't get included in the library
18298             # dependencies.
18299             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; $ECHO "X$list" | $Xsed'
18300             ;;
18301           *)
18302             if test "$GXX" = yes; then
18303               if test $with_gnu_ld = no; then
18304                 case $host_cpu in
18305                   hppa*64*)
18306                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18307                     ;;
18308                   ia64*)
18309                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18310                     ;;
18311                   *)
18312                     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'
18313                     ;;
18314                 esac
18315               fi
18316             else
18317               # FIXME: insert proper C++ library support
18318               ld_shlibs_CXX=no
18319             fi
18320             ;;
18321         esac
18322         ;;
18323
18324       interix[3-9]*)
18325         hardcode_direct_CXX=no
18326         hardcode_shlibpath_var_CXX=no
18327         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18328         export_dynamic_flag_spec_CXX='${wl}-E'
18329         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18330         # Instead, shared libraries are loaded at an image base (0x10000000 by
18331         # default) and relocated if they conflict, which is a slow very memory
18332         # consuming and fragmenting process.  To avoid this, we pick a random,
18333         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18334         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18335         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'
18336         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'
18337         ;;
18338       irix5* | irix6*)
18339         case $cc_basename in
18340           CC*)
18341             # SGI C++
18342             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18343
18344             # Archives containing C++ object files must be created using
18345             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18346             # necessary to make sure instantiated templates are included
18347             # in the archive.
18348             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18349             ;;
18350           *)
18351             if test "$GXX" = yes; then
18352               if test "$with_gnu_ld" = no; then
18353                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18354               else
18355                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
18356               fi
18357             fi
18358             link_all_deplibs_CXX=yes
18359             ;;
18360         esac
18361         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18362         hardcode_libdir_separator_CXX=:
18363         inherit_rpath_CXX=yes
18364         ;;
18365
18366       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18367         case $cc_basename in
18368           KCC*)
18369             # Kuck and Associates, Inc. (KAI) C++ Compiler
18370
18371             # KCC will only create a shared library if the output file
18372             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18373             # to its proper name (with version) after linking.
18374             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'
18375             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'
18376             # Commands to make compiler produce verbose output that lists
18377             # what "hidden" libraries, object files and flags are used when
18378             # linking a shared library.
18379             #
18380             # There doesn't appear to be a way to prevent this compiler from
18381             # explicitly linking system object files so we need to strip them
18382             # from the output so that they don't get included in the library
18383             # dependencies.
18384             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; $ECHO "X$list" | $Xsed'
18385
18386             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18387             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18388
18389             # Archives containing C++ object files must be created using
18390             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18391             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18392             ;;
18393           icpc* | ecpc* )
18394             # Intel C++
18395             with_gnu_ld=yes
18396             # version 8.0 and above of icpc choke on multiply defined symbols
18397             # if we add $predep_objects and $postdep_objects, however 7.1 and
18398             # earlier do not add the objects themselves.
18399             case `$CC -V 2>&1` in
18400               *"Version 7."*)
18401                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18402                 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'
18403                 ;;
18404               *)  # Version 8.0 or newer
18405                 tmp_idyn=
18406                 case $host_cpu in
18407                   ia64*) tmp_idyn=' -i_dynamic';;
18408                 esac
18409                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18410                 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'
18411                 ;;
18412             esac
18413             archive_cmds_need_lc_CXX=no
18414             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18415             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18416             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18417             ;;
18418           pgCC* | pgcpp*)
18419             # Portland Group C++ compiler
18420             case `$CC -V` in
18421             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
18422               prelink_cmds_CXX='tpldir=Template.dir~
18423                 rm -rf $tpldir~
18424                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18425                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18426               old_archive_cmds_CXX='tpldir=Template.dir~
18427                 rm -rf $tpldir~
18428                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18429                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18430                 $RANLIB $oldlib'
18431               archive_cmds_CXX='tpldir=Template.dir~
18432                 rm -rf $tpldir~
18433                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18434                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18435               archive_expsym_cmds_CXX='tpldir=Template.dir~
18436                 rm -rf $tpldir~
18437                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18438                 $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'
18439               ;;
18440             *) # Version 6 will use weak symbols
18441               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18442               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'
18443               ;;
18444             esac
18445
18446             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18447             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18448             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18449             ;;
18450           cxx*)
18451             # Compaq C++
18452             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18453             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'
18454
18455             runpath_var=LD_RUN_PATH
18456             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18457             hardcode_libdir_separator_CXX=:
18458
18459             # Commands to make compiler produce verbose output that lists
18460             # what "hidden" libraries, object files and flags are used when
18461             # linking a shared library.
18462             #
18463             # There doesn't appear to be a way to prevent this compiler from
18464             # explicitly linking system object files so we need to strip them
18465             # from the output so that they don't get included in the library
18466             # dependencies.
18467             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18468             ;;
18469           xl*)
18470             # IBM XL 8.0 on PPC, with GNU ld
18471             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18472             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18473             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18474             if test "x$supports_anon_versioning" = xyes; then
18475               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18476                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18477                 echo "local: *; };" >> $output_objdir/$libname.ver~
18478                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18479             fi
18480             ;;
18481           *)
18482             case `$CC -V 2>&1 | sed 5q` in
18483             *Sun\ C*)
18484               # Sun C++ 5.9
18485               no_undefined_flag_CXX=' -zdefs'
18486               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18487               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'
18488               hardcode_libdir_flag_spec_CXX='-R$libdir'
18489               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18490               compiler_needs_object_CXX=yes
18491
18492               # Not sure whether something based on
18493               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18494               # would be better.
18495               output_verbose_link_cmd='echo'
18496
18497               # Archives containing C++ object files must be created using
18498               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18499               # necessary to make sure instantiated templates are included
18500               # in the archive.
18501               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18502               ;;
18503             esac
18504             ;;
18505         esac
18506         ;;
18507
18508       lynxos*)
18509         # FIXME: insert proper C++ library support
18510         ld_shlibs_CXX=no
18511         ;;
18512
18513       m88k*)
18514         # FIXME: insert proper C++ library support
18515         ld_shlibs_CXX=no
18516         ;;
18517
18518       mvs*)
18519         case $cc_basename in
18520           cxx*)
18521             # FIXME: insert proper C++ library support
18522             ld_shlibs_CXX=no
18523             ;;
18524           *)
18525             # FIXME: insert proper C++ library support
18526             ld_shlibs_CXX=no
18527             ;;
18528         esac
18529         ;;
18530
18531       netbsd*)
18532         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18533           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18534           wlarc=
18535           hardcode_libdir_flag_spec_CXX='-R$libdir'
18536           hardcode_direct_CXX=yes
18537           hardcode_shlibpath_var_CXX=no
18538         fi
18539         # Workaround some broken pre-1.5 toolchains
18540         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18541         ;;
18542
18543       *nto* | *qnx*)
18544         ld_shlibs_CXX=yes
18545         ;;
18546
18547       openbsd2*)
18548         # C++ shared libraries are fairly broken
18549         ld_shlibs_CXX=no
18550         ;;
18551
18552       openbsd*)
18553         if test -f /usr/libexec/ld.so; then
18554           hardcode_direct_CXX=yes
18555           hardcode_shlibpath_var_CXX=no
18556           hardcode_direct_absolute_CXX=yes
18557           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18558           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18559           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18560             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18561             export_dynamic_flag_spec_CXX='${wl}-E'
18562             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18563           fi
18564           output_verbose_link_cmd=echo
18565         else
18566           ld_shlibs_CXX=no
18567         fi
18568         ;;
18569
18570       osf3* | osf4* | osf5*)
18571         case $cc_basename in
18572           KCC*)
18573             # Kuck and Associates, Inc. (KAI) C++ Compiler
18574
18575             # KCC will only create a shared library if the output file
18576             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18577             # to its proper name (with version) after linking.
18578             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'
18579
18580             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18581             hardcode_libdir_separator_CXX=:
18582
18583             # Archives containing C++ object files must be created using
18584             # the KAI C++ compiler.
18585             case $host in
18586               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18587               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18588             esac
18589             ;;
18590           RCC*)
18591             # Rational C++ 2.4.1
18592             # FIXME: insert proper C++ library support
18593             ld_shlibs_CXX=no
18594             ;;
18595           cxx*)
18596             case $host in
18597               osf3*)
18598                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18599                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18600                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18601                 ;;
18602               *)
18603                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18604                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18605                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18606                   echo "-hidden">> $lib.exp~
18607                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
18608                   $RM $lib.exp'
18609                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18610                 ;;
18611             esac
18612
18613             hardcode_libdir_separator_CXX=:
18614
18615             # Commands to make compiler produce verbose output that lists
18616             # what "hidden" libraries, object files and flags are used when
18617             # linking a shared library.
18618             #
18619             # There doesn't appear to be a way to prevent this compiler from
18620             # explicitly linking system object files so we need to strip them
18621             # from the output so that they don't get included in the library
18622             # dependencies.
18623             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18624             ;;
18625           *)
18626             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18627               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18628               case $host in
18629                 osf3*)
18630                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18631                   ;;
18632                 *)
18633                   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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18634                   ;;
18635               esac
18636
18637               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18638               hardcode_libdir_separator_CXX=:
18639
18640               # Commands to make compiler produce verbose output that lists
18641               # what "hidden" libraries, object files and flags are used when
18642               # linking a shared library.
18643               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18644
18645             else
18646               # FIXME: insert proper C++ library support
18647               ld_shlibs_CXX=no
18648             fi
18649             ;;
18650         esac
18651         ;;
18652
18653       psos*)
18654         # FIXME: insert proper C++ library support
18655         ld_shlibs_CXX=no
18656         ;;
18657
18658       sunos4*)
18659         case $cc_basename in
18660           CC*)
18661             # Sun C++ 4.x
18662             # FIXME: insert proper C++ library support
18663             ld_shlibs_CXX=no
18664             ;;
18665           lcc*)
18666             # Lucid
18667             # FIXME: insert proper C++ library support
18668             ld_shlibs_CXX=no
18669             ;;
18670           *)
18671             # FIXME: insert proper C++ library support
18672             ld_shlibs_CXX=no
18673             ;;
18674         esac
18675         ;;
18676
18677       solaris*)
18678         case $cc_basename in
18679           CC*)
18680             # Sun C++ 4.2, 5.x and Centerline C++
18681             archive_cmds_need_lc_CXX=yes
18682             no_undefined_flag_CXX=' -zdefs'
18683             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18684             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18685               $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'
18686
18687             hardcode_libdir_flag_spec_CXX='-R$libdir'
18688             hardcode_shlibpath_var_CXX=no
18689             case $host_os in
18690               solaris2.[0-5] | solaris2.[0-5].*) ;;
18691               *)
18692                 # The compiler driver will combine and reorder linker options,
18693                 # but understands `-z linker_flag'.
18694                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18695                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18696                 ;;
18697             esac
18698             link_all_deplibs_CXX=yes
18699
18700             output_verbose_link_cmd='echo'
18701
18702             # Archives containing C++ object files must be created using
18703             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18704             # necessary to make sure instantiated templates are included
18705             # in the archive.
18706             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18707             ;;
18708           gcx*)
18709             # Green Hills C++ Compiler
18710             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18711
18712             # The C++ compiler must be used to create the archive.
18713             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18714             ;;
18715           *)
18716             # GNU C++ compiler with Solaris linker
18717             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18718               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18719               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18720                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18721                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18722                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18723
18724                 # Commands to make compiler produce verbose output that lists
18725                 # what "hidden" libraries, object files and flags are used when
18726                 # linking a shared library.
18727                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18728               else
18729                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18730                 # platform.
18731                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18732                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18733                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18734
18735                 # Commands to make compiler produce verbose output that lists
18736                 # what "hidden" libraries, object files and flags are used when
18737                 # linking a shared library.
18738                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18739               fi
18740
18741               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18742               case $host_os in
18743                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18744                 *)
18745                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18746                   ;;
18747               esac
18748             fi
18749             ;;
18750         esac
18751         ;;
18752
18753     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18754       no_undefined_flag_CXX='${wl}-z,text'
18755       archive_cmds_need_lc_CXX=no
18756       hardcode_shlibpath_var_CXX=no
18757       runpath_var='LD_RUN_PATH'
18758
18759       case $cc_basename in
18760         CC*)
18761           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18762           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18763           ;;
18764         *)
18765           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18766           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18767           ;;
18768       esac
18769       ;;
18770
18771       sysv5* | sco3.2v5* | sco5v6*)
18772         # Note: We can NOT use -z defs as we might desire, because we do not
18773         # link with -lc, and that would cause any symbols used from libc to
18774         # always be unresolved, which means just about no library would
18775         # ever link correctly.  If we're not using GNU ld we use -z text
18776         # though, which does catch some bad symbols but isn't as heavy-handed
18777         # as -z defs.
18778         no_undefined_flag_CXX='${wl}-z,text'
18779         allow_undefined_flag_CXX='${wl}-z,nodefs'
18780         archive_cmds_need_lc_CXX=no
18781         hardcode_shlibpath_var_CXX=no
18782         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18783         hardcode_libdir_separator_CXX=':'
18784         link_all_deplibs_CXX=yes
18785         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18786         runpath_var='LD_RUN_PATH'
18787
18788         case $cc_basename in
18789           CC*)
18790             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18792             ;;
18793           *)
18794             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18795             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18796             ;;
18797         esac
18798       ;;
18799
18800       tandem*)
18801         case $cc_basename in
18802           NCC*)
18803             # NonStop-UX NCC 3.20
18804             # FIXME: insert proper C++ library support
18805             ld_shlibs_CXX=no
18806             ;;
18807           *)
18808             # FIXME: insert proper C++ library support
18809             ld_shlibs_CXX=no
18810             ;;
18811         esac
18812         ;;
18813
18814       vxworks*)
18815         # FIXME: insert proper C++ library support
18816         ld_shlibs_CXX=no
18817         ;;
18818
18819       *)
18820         # FIXME: insert proper C++ library support
18821         ld_shlibs_CXX=no
18822         ;;
18823     esac
18824
18825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18826 $as_echo "$ld_shlibs_CXX" >&6; }
18827     test "$ld_shlibs_CXX" = no && can_build_shared=no
18828
18829     GCC_CXX="$GXX"
18830     LD_CXX="$LD"
18831
18832     ## CAVEAT EMPTOR:
18833     ## There is no encapsulation within the following macros, do not change
18834     ## the running order or otherwise move them around unless you know exactly
18835     ## what you are doing...
18836     # Dependencies to place before and after the object being linked:
18837 predep_objects_CXX=
18838 postdep_objects_CXX=
18839 predeps_CXX=
18840 postdeps_CXX=
18841 compiler_lib_search_path_CXX=
18842
18843 cat > conftest.$ac_ext <<_LT_EOF
18844 class Foo
18845 {
18846 public:
18847   Foo (void) { a = 0; }
18848 private:
18849   int a;
18850 };
18851 _LT_EOF
18852
18853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18854   (eval $ac_compile) 2>&5
18855   ac_status=$?
18856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18857   test $ac_status = 0; }; then
18858   # Parse the compiler output and extract the necessary
18859   # objects, libraries and library flags.
18860
18861   # Sentinel used to keep track of whether or not we are before
18862   # the conftest object file.
18863   pre_test_object_deps_done=no
18864
18865   for p in `eval "$output_verbose_link_cmd"`; do
18866     case $p in
18867
18868     -L* | -R* | -l*)
18869        # Some compilers place space between "-{L,R}" and the path.
18870        # Remove the space.
18871        if test $p = "-L" ||
18872           test $p = "-R"; then
18873          prev=$p
18874          continue
18875        else
18876          prev=
18877        fi
18878
18879        if test "$pre_test_object_deps_done" = no; then
18880          case $p in
18881          -L* | -R*)
18882            # Internal compiler library paths should come after those
18883            # provided the user.  The postdeps already come after the
18884            # user supplied libs so there is no need to process them.
18885            if test -z "$compiler_lib_search_path_CXX"; then
18886              compiler_lib_search_path_CXX="${prev}${p}"
18887            else
18888              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18889            fi
18890            ;;
18891          # The "-l" case would never come before the object being
18892          # linked, so don't bother handling this case.
18893          esac
18894        else
18895          if test -z "$postdeps_CXX"; then
18896            postdeps_CXX="${prev}${p}"
18897          else
18898            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18899          fi
18900        fi
18901        ;;
18902
18903     *.$objext)
18904        # This assumes that the test object file only shows up
18905        # once in the compiler output.
18906        if test "$p" = "conftest.$objext"; then
18907          pre_test_object_deps_done=yes
18908          continue
18909        fi
18910
18911        if test "$pre_test_object_deps_done" = no; then
18912          if test -z "$predep_objects_CXX"; then
18913            predep_objects_CXX="$p"
18914          else
18915            predep_objects_CXX="$predep_objects_CXX $p"
18916          fi
18917        else
18918          if test -z "$postdep_objects_CXX"; then
18919            postdep_objects_CXX="$p"
18920          else
18921            postdep_objects_CXX="$postdep_objects_CXX $p"
18922          fi
18923        fi
18924        ;;
18925
18926     *) ;; # Ignore the rest.
18927
18928     esac
18929   done
18930
18931   # Clean up.
18932   rm -f a.out a.exe
18933 else
18934   echo "libtool.m4: error: problem compiling CXX test program"
18935 fi
18936
18937 $RM -f confest.$objext
18938
18939 # PORTME: override above test on systems where it is broken
18940 case $host_os in
18941 interix[3-9]*)
18942   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18943   # hack all around it, let's just trust "g++" to DTRT.
18944   predep_objects_CXX=
18945   postdep_objects_CXX=
18946   postdeps_CXX=
18947   ;;
18948
18949 linux*)
18950   case `$CC -V 2>&1 | sed 5q` in
18951   *Sun\ C*)
18952     # Sun C++ 5.9
18953
18954     # The more standards-conforming stlport4 library is
18955     # incompatible with the Cstd library. Avoid specifying
18956     # it if it's in CXXFLAGS. Ignore libCrun as
18957     # -library=stlport4 depends on it.
18958     case " $CXX $CXXFLAGS " in
18959     *" -library=stlport4 "*)
18960       solaris_use_stlport4=yes
18961       ;;
18962     esac
18963
18964     if test "$solaris_use_stlport4" != yes; then
18965       postdeps_CXX='-library=Cstd -library=Crun'
18966     fi
18967     ;;
18968   esac
18969   ;;
18970
18971 solaris*)
18972   case $cc_basename in
18973   CC*)
18974     # The more standards-conforming stlport4 library is
18975     # incompatible with the Cstd library. Avoid specifying
18976     # it if it's in CXXFLAGS. Ignore libCrun as
18977     # -library=stlport4 depends on it.
18978     case " $CXX $CXXFLAGS " in
18979     *" -library=stlport4 "*)
18980       solaris_use_stlport4=yes
18981       ;;
18982     esac
18983
18984     # Adding this requires a known-good setup of shared libraries for
18985     # Sun compiler versions before 5.6, else PIC objects from an old
18986     # archive will be linked into the output, leading to subtle bugs.
18987     if test "$solaris_use_stlport4" != yes; then
18988       postdeps_CXX='-library=Cstd -library=Crun'
18989     fi
18990     ;;
18991   esac
18992   ;;
18993 esac
18994
18995
18996 case " $postdeps_CXX " in
18997 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18998 esac
18999  compiler_lib_search_dirs_CXX=
19000 if test -n "${compiler_lib_search_path_CXX}"; then
19001  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19002 fi
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034     lt_prog_compiler_wl_CXX=
19035 lt_prog_compiler_pic_CXX=
19036 lt_prog_compiler_static_CXX=
19037
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19039 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19040
19041   # C++ specific cases for pic, static, wl, etc.
19042   if test "$GXX" = yes; then
19043     lt_prog_compiler_wl_CXX='-Wl,'
19044     lt_prog_compiler_static_CXX='-static'
19045
19046     case $host_os in
19047     aix*)
19048       # All AIX code is PIC.
19049       if test "$host_cpu" = ia64; then
19050         # AIX 5 now supports IA64 processor
19051         lt_prog_compiler_static_CXX='-Bstatic'
19052       fi
19053       ;;
19054
19055     amigaos*)
19056       case $host_cpu in
19057       powerpc)
19058             # see comment about AmigaOS4 .so support
19059             lt_prog_compiler_pic_CXX='-fPIC'
19060         ;;
19061       m68k)
19062             # FIXME: we need at least 68020 code to build shared libraries, but
19063             # adding the `-m68020' flag to GCC prevents building anything better,
19064             # like `-m68040'.
19065             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19066         ;;
19067       esac
19068       ;;
19069
19070     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19071       # PIC is the default for these OSes.
19072       ;;
19073     mingw* | cygwin* | os2* | pw32* | cegcc*)
19074       # This hack is so that the source file can tell whether it is being
19075       # built for inclusion in a dll (and should export symbols for example).
19076       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19077       # (--disable-auto-import) libraries
19078       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19079       ;;
19080     darwin* | rhapsody*)
19081       # PIC is the default on this platform
19082       # Common symbols not allowed in MH_DYLIB files
19083       lt_prog_compiler_pic_CXX='-fno-common'
19084       ;;
19085     *djgpp*)
19086       # DJGPP does not support shared libraries at all
19087       lt_prog_compiler_pic_CXX=
19088       ;;
19089     interix[3-9]*)
19090       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19091       # Instead, we relocate shared libraries at runtime.
19092       ;;
19093     sysv4*MP*)
19094       if test -d /usr/nec; then
19095         lt_prog_compiler_pic_CXX=-Kconform_pic
19096       fi
19097       ;;
19098     hpux*)
19099       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19100       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19101       # sets the default TLS model and affects inlining.
19102       case $host_cpu in
19103       hppa*64*)
19104         ;;
19105       *)
19106         lt_prog_compiler_pic_CXX='-fPIC'
19107         ;;
19108       esac
19109       ;;
19110     *qnx* | *nto*)
19111       # QNX uses GNU C++, but need to define -shared option too, otherwise
19112       # it will coredump.
19113       lt_prog_compiler_pic_CXX='-fPIC -shared'
19114       ;;
19115     *)
19116       lt_prog_compiler_pic_CXX='-fPIC'
19117       ;;
19118     esac
19119   else
19120     case $host_os in
19121       aix[4-9]*)
19122         # All AIX code is PIC.
19123         if test "$host_cpu" = ia64; then
19124           # AIX 5 now supports IA64 processor
19125           lt_prog_compiler_static_CXX='-Bstatic'
19126         else
19127           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19128         fi
19129         ;;
19130       chorus*)
19131         case $cc_basename in
19132         cxch68*)
19133           # Green Hills C++ Compiler
19134           # _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"
19135           ;;
19136         esac
19137         ;;
19138       dgux*)
19139         case $cc_basename in
19140           ec++*)
19141             lt_prog_compiler_pic_CXX='-KPIC'
19142             ;;
19143           ghcx*)
19144             # Green Hills C++ Compiler
19145             lt_prog_compiler_pic_CXX='-pic'
19146             ;;
19147           *)
19148             ;;
19149         esac
19150         ;;
19151       freebsd* | dragonfly*)
19152         # FreeBSD uses GNU C++
19153         ;;
19154       hpux9* | hpux10* | hpux11*)
19155         case $cc_basename in
19156           CC*)
19157             lt_prog_compiler_wl_CXX='-Wl,'
19158             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19159             if test "$host_cpu" != ia64; then
19160               lt_prog_compiler_pic_CXX='+Z'
19161             fi
19162             ;;
19163           aCC*)
19164             lt_prog_compiler_wl_CXX='-Wl,'
19165             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19166             case $host_cpu in
19167             hppa*64*|ia64*)
19168               # +Z the default
19169               ;;
19170             *)
19171               lt_prog_compiler_pic_CXX='+Z'
19172               ;;
19173             esac
19174             ;;
19175           *)
19176             ;;
19177         esac
19178         ;;
19179       interix*)
19180         # This is c89, which is MS Visual C++ (no shared libs)
19181         # Anyone wants to do a port?
19182         ;;
19183       irix5* | irix6* | nonstopux*)
19184         case $cc_basename in
19185           CC*)
19186             lt_prog_compiler_wl_CXX='-Wl,'
19187             lt_prog_compiler_static_CXX='-non_shared'
19188             # CC pic flag -KPIC is the default.
19189             ;;
19190           *)
19191             ;;
19192         esac
19193         ;;
19194       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19195         case $cc_basename in
19196           KCC*)
19197             # KAI C++ Compiler
19198             lt_prog_compiler_wl_CXX='--backend -Wl,'
19199             lt_prog_compiler_pic_CXX='-fPIC'
19200             ;;
19201           ecpc* )
19202             # old Intel C++ for x86_64 which still supported -KPIC.
19203             lt_prog_compiler_wl_CXX='-Wl,'
19204             lt_prog_compiler_pic_CXX='-KPIC'
19205             lt_prog_compiler_static_CXX='-static'
19206             ;;
19207           icpc* )
19208             # Intel C++, used to be incompatible with GCC.
19209             # ICC 10 doesn't accept -KPIC any more.
19210             lt_prog_compiler_wl_CXX='-Wl,'
19211             lt_prog_compiler_pic_CXX='-fPIC'
19212             lt_prog_compiler_static_CXX='-static'
19213             ;;
19214           pgCC* | pgcpp*)
19215             # Portland Group C++ compiler
19216             lt_prog_compiler_wl_CXX='-Wl,'
19217             lt_prog_compiler_pic_CXX='-fpic'
19218             lt_prog_compiler_static_CXX='-Bstatic'
19219             ;;
19220           cxx*)
19221             # Compaq C++
19222             # Make sure the PIC flag is empty.  It appears that all Alpha
19223             # Linux and Compaq Tru64 Unix objects are PIC.
19224             lt_prog_compiler_pic_CXX=
19225             lt_prog_compiler_static_CXX='-non_shared'
19226             ;;
19227           xlc* | xlC*)
19228             # IBM XL 8.0 on PPC
19229             lt_prog_compiler_wl_CXX='-Wl,'
19230             lt_prog_compiler_pic_CXX='-qpic'
19231             lt_prog_compiler_static_CXX='-qstaticlink'
19232             ;;
19233           *)
19234             case `$CC -V 2>&1 | sed 5q` in
19235             *Sun\ C*)
19236               # Sun C++ 5.9
19237               lt_prog_compiler_pic_CXX='-KPIC'
19238               lt_prog_compiler_static_CXX='-Bstatic'
19239               lt_prog_compiler_wl_CXX='-Qoption ld '
19240               ;;
19241             esac
19242             ;;
19243         esac
19244         ;;
19245       lynxos*)
19246         ;;
19247       m88k*)
19248         ;;
19249       mvs*)
19250         case $cc_basename in
19251           cxx*)
19252             lt_prog_compiler_pic_CXX='-W c,exportall'
19253             ;;
19254           *)
19255             ;;
19256         esac
19257         ;;
19258       netbsd*)
19259         ;;
19260       *qnx* | *nto*)
19261         # QNX uses GNU C++, but need to define -shared option too, otherwise
19262         # it will coredump.
19263         lt_prog_compiler_pic_CXX='-fPIC -shared'
19264         ;;
19265       osf3* | osf4* | osf5*)
19266         case $cc_basename in
19267           KCC*)
19268             lt_prog_compiler_wl_CXX='--backend -Wl,'
19269             ;;
19270           RCC*)
19271             # Rational C++ 2.4.1
19272             lt_prog_compiler_pic_CXX='-pic'
19273             ;;
19274           cxx*)
19275             # Digital/Compaq C++
19276             lt_prog_compiler_wl_CXX='-Wl,'
19277             # Make sure the PIC flag is empty.  It appears that all Alpha
19278             # Linux and Compaq Tru64 Unix objects are PIC.
19279             lt_prog_compiler_pic_CXX=
19280             lt_prog_compiler_static_CXX='-non_shared'
19281             ;;
19282           *)
19283             ;;
19284         esac
19285         ;;
19286       psos*)
19287         ;;
19288       solaris*)
19289         case $cc_basename in
19290           CC*)
19291             # Sun C++ 4.2, 5.x and Centerline C++
19292             lt_prog_compiler_pic_CXX='-KPIC'
19293             lt_prog_compiler_static_CXX='-Bstatic'
19294             lt_prog_compiler_wl_CXX='-Qoption ld '
19295             ;;
19296           gcx*)
19297             # Green Hills C++ Compiler
19298             lt_prog_compiler_pic_CXX='-PIC'
19299             ;;
19300           *)
19301             ;;
19302         esac
19303         ;;
19304       sunos4*)
19305         case $cc_basename in
19306           CC*)
19307             # Sun C++ 4.x
19308             lt_prog_compiler_pic_CXX='-pic'
19309             lt_prog_compiler_static_CXX='-Bstatic'
19310             ;;
19311           lcc*)
19312             # Lucid
19313             lt_prog_compiler_pic_CXX='-pic'
19314             ;;
19315           *)
19316             ;;
19317         esac
19318         ;;
19319       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19320         case $cc_basename in
19321           CC*)
19322             lt_prog_compiler_wl_CXX='-Wl,'
19323             lt_prog_compiler_pic_CXX='-KPIC'
19324             lt_prog_compiler_static_CXX='-Bstatic'
19325             ;;
19326         esac
19327         ;;
19328       tandem*)
19329         case $cc_basename in
19330           NCC*)
19331             # NonStop-UX NCC 3.20
19332             lt_prog_compiler_pic_CXX='-KPIC'
19333             ;;
19334           *)
19335             ;;
19336         esac
19337         ;;
19338       vxworks*)
19339         ;;
19340       *)
19341         lt_prog_compiler_can_build_shared_CXX=no
19342         ;;
19343     esac
19344   fi
19345
19346 case $host_os in
19347   # For platforms which do not support PIC, -DPIC is meaningless:
19348   *djgpp*)
19349     lt_prog_compiler_pic_CXX=
19350     ;;
19351   *)
19352     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19353     ;;
19354 esac
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19356 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19357
19358
19359
19360 #
19361 # Check to make sure the PIC flag actually works.
19362 #
19363 if test -n "$lt_prog_compiler_pic_CXX"; then
19364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19365 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19366 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19367   $as_echo_n "(cached) " >&6
19368 else
19369   lt_cv_prog_compiler_pic_works_CXX=no
19370    ac_outfile=conftest.$ac_objext
19371    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19372    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19373    # Insert the option either (1) after the last *FLAGS variable, or
19374    # (2) before a word containing "conftest.", or (3) at the end.
19375    # Note that $ac_compile itself does not contain backslashes and begins
19376    # with a dollar sign (not a hyphen), so the echo should work correctly.
19377    # The option is referenced via a variable to avoid confusing sed.
19378    lt_compile=`echo "$ac_compile" | $SED \
19379    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19380    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19381    -e 's:$: $lt_compiler_flag:'`
19382    (eval echo "\"\$as_me:19382: $lt_compile\"" >&5)
19383    (eval "$lt_compile" 2>conftest.err)
19384    ac_status=$?
19385    cat conftest.err >&5
19386    echo "$as_me:19386: \$? = $ac_status" >&5
19387    if (exit $ac_status) && test -s "$ac_outfile"; then
19388      # The compiler can only warn and ignore the option if not recognized
19389      # So say no if there are warnings other than the usual output.
19390      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19391      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19392      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19393        lt_cv_prog_compiler_pic_works_CXX=yes
19394      fi
19395    fi
19396    $RM conftest*
19397
19398 fi
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19400 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19401
19402 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19403     case $lt_prog_compiler_pic_CXX in
19404      "" | " "*) ;;
19405      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19406      esac
19407 else
19408     lt_prog_compiler_pic_CXX=
19409      lt_prog_compiler_can_build_shared_CXX=no
19410 fi
19411
19412 fi
19413
19414
19415
19416 #
19417 # Check to make sure the static flag actually works.
19418 #
19419 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19421 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19422 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19423   $as_echo_n "(cached) " >&6
19424 else
19425   lt_cv_prog_compiler_static_works_CXX=no
19426    save_LDFLAGS="$LDFLAGS"
19427    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19428    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19429    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19430      # The linker can only warn and ignore the option if not recognized
19431      # So say no if there are warnings
19432      if test -s conftest.err; then
19433        # Append any errors to the config.log.
19434        cat conftest.err 1>&5
19435        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19436        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19437        if diff conftest.exp conftest.er2 >/dev/null; then
19438          lt_cv_prog_compiler_static_works_CXX=yes
19439        fi
19440      else
19441        lt_cv_prog_compiler_static_works_CXX=yes
19442      fi
19443    fi
19444    $RM -r conftest*
19445    LDFLAGS="$save_LDFLAGS"
19446
19447 fi
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19449 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19450
19451 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19452     :
19453 else
19454     lt_prog_compiler_static_CXX=
19455 fi
19456
19457
19458
19459
19460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19461 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19462 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19463   $as_echo_n "(cached) " >&6
19464 else
19465   lt_cv_prog_compiler_c_o_CXX=no
19466    $RM -r conftest 2>/dev/null
19467    mkdir conftest
19468    cd conftest
19469    mkdir out
19470    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19471
19472    lt_compiler_flag="-o out/conftest2.$ac_objext"
19473    # Insert the option either (1) after the last *FLAGS variable, or
19474    # (2) before a word containing "conftest.", or (3) at the end.
19475    # Note that $ac_compile itself does not contain backslashes and begins
19476    # with a dollar sign (not a hyphen), so the echo should work correctly.
19477    lt_compile=`echo "$ac_compile" | $SED \
19478    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19479    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19480    -e 's:$: $lt_compiler_flag:'`
19481    (eval echo "\"\$as_me:19481: $lt_compile\"" >&5)
19482    (eval "$lt_compile" 2>out/conftest.err)
19483    ac_status=$?
19484    cat out/conftest.err >&5
19485    echo "$as_me:19485: \$? = $ac_status" >&5
19486    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19487    then
19488      # The compiler can only warn and ignore the option if not recognized
19489      # So say no if there are warnings
19490      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19491      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19492      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19493        lt_cv_prog_compiler_c_o_CXX=yes
19494      fi
19495    fi
19496    chmod u+w . 2>&5
19497    $RM conftest*
19498    # SGI C++ compiler will create directory out/ii_files/ for
19499    # template instantiation
19500    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19501    $RM out/* && rmdir out
19502    cd ..
19503    $RM -r conftest
19504    $RM conftest*
19505
19506 fi
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19508 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19509
19510
19511
19512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19514 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19515   $as_echo_n "(cached) " >&6
19516 else
19517   lt_cv_prog_compiler_c_o_CXX=no
19518    $RM -r conftest 2>/dev/null
19519    mkdir conftest
19520    cd conftest
19521    mkdir out
19522    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19523
19524    lt_compiler_flag="-o out/conftest2.$ac_objext"
19525    # Insert the option either (1) after the last *FLAGS variable, or
19526    # (2) before a word containing "conftest.", or (3) at the end.
19527    # Note that $ac_compile itself does not contain backslashes and begins
19528    # with a dollar sign (not a hyphen), so the echo should work correctly.
19529    lt_compile=`echo "$ac_compile" | $SED \
19530    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19531    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19532    -e 's:$: $lt_compiler_flag:'`
19533    (eval echo "\"\$as_me:19533: $lt_compile\"" >&5)
19534    (eval "$lt_compile" 2>out/conftest.err)
19535    ac_status=$?
19536    cat out/conftest.err >&5
19537    echo "$as_me:19537: \$? = $ac_status" >&5
19538    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19539    then
19540      # The compiler can only warn and ignore the option if not recognized
19541      # So say no if there are warnings
19542      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19543      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19544      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19545        lt_cv_prog_compiler_c_o_CXX=yes
19546      fi
19547    fi
19548    chmod u+w . 2>&5
19549    $RM conftest*
19550    # SGI C++ compiler will create directory out/ii_files/ for
19551    # template instantiation
19552    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19553    $RM out/* && rmdir out
19554    cd ..
19555    $RM -r conftest
19556    $RM conftest*
19557
19558 fi
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19560 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19561
19562
19563
19564
19565 hard_links="nottested"
19566 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19567   # do not overwrite the value of need_locks provided by the user
19568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19569 $as_echo_n "checking if we can lock with hard links... " >&6; }
19570   hard_links=yes
19571   $RM conftest*
19572   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19573   touch conftest.a
19574   ln conftest.a conftest.b 2>&5 || hard_links=no
19575   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19577 $as_echo "$hard_links" >&6; }
19578   if test "$hard_links" = no; then
19579     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19580 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19581     need_locks=warn
19582   fi
19583 else
19584   need_locks=no
19585 fi
19586
19587
19588
19589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19590 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19591
19592   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19593   case $host_os in
19594   aix[4-9]*)
19595     # If we're using GNU nm, then we don't want the "-C" option.
19596     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19597     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19598       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19599     else
19600       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'
19601     fi
19602     ;;
19603   pw32*)
19604     export_symbols_cmds_CXX="$ltdll_cmds"
19605   ;;
19606   cygwin* | mingw* | cegcc*)
19607     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'
19608   ;;
19609   *)
19610     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19611   ;;
19612   esac
19613   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19614
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19616 $as_echo "$ld_shlibs_CXX" >&6; }
19617 test "$ld_shlibs_CXX" = no && can_build_shared=no
19618
19619 with_gnu_ld_CXX=$with_gnu_ld
19620
19621
19622
19623
19624
19625
19626 #
19627 # Do we need to explicitly link libc?
19628 #
19629 case "x$archive_cmds_need_lc_CXX" in
19630 x|xyes)
19631   # Assume -lc should be added
19632   archive_cmds_need_lc_CXX=yes
19633
19634   if test "$enable_shared" = yes && test "$GCC" = yes; then
19635     case $archive_cmds_CXX in
19636     *'~'*)
19637       # FIXME: we may have to deal with multi-command sequences.
19638       ;;
19639     '$CC '*)
19640       # Test whether the compiler implicitly links with -lc since on some
19641       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19642       # to ld, don't add -lc before -lgcc.
19643       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19644 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19645 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19646   $as_echo_n "(cached) " >&6
19647 else
19648   $RM conftest*
19649         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19650
19651         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19652   (eval $ac_compile) 2>&5
19653   ac_status=$?
19654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19655   test $ac_status = 0; } 2>conftest.err; then
19656           soname=conftest
19657           lib=conftest
19658           libobjs=conftest.$ac_objext
19659           deplibs=
19660           wl=$lt_prog_compiler_wl_CXX
19661           pic_flag=$lt_prog_compiler_pic_CXX
19662           compiler_flags=-v
19663           linker_flags=-v
19664           verstring=
19665           output_objdir=.
19666           libname=conftest
19667           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19668           allow_undefined_flag_CXX=
19669           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19670   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19671   ac_status=$?
19672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19673   test $ac_status = 0; }
19674           then
19675             lt_cv_archive_cmds_need_lc_CXX=no
19676           else
19677             lt_cv_archive_cmds_need_lc_CXX=yes
19678           fi
19679           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19680         else
19681           cat conftest.err 1>&5
19682         fi
19683         $RM conftest*
19684
19685 fi
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19687 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19688       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19689       ;;
19690     esac
19691   fi
19692   ;;
19693 esac
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19759 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19760
19761 library_names_spec=
19762 libname_spec='lib$name'
19763 soname_spec=
19764 shrext_cmds=".so"
19765 postinstall_cmds=
19766 postuninstall_cmds=
19767 finish_cmds=
19768 finish_eval=
19769 shlibpath_var=
19770 shlibpath_overrides_runpath=unknown
19771 version_type=none
19772 dynamic_linker="$host_os ld.so"
19773 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19774 need_lib_prefix=unknown
19775 hardcode_into_libs=no
19776
19777 # when you set need_version to no, make sure it does not cause -set_version
19778 # flags to be left without arguments
19779 need_version=unknown
19780
19781 case $host_os in
19782 aix3*)
19783   version_type=linux
19784   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19785   shlibpath_var=LIBPATH
19786
19787   # AIX 3 has no versioning support, so we append a major version to the name.
19788   soname_spec='${libname}${release}${shared_ext}$major'
19789   ;;
19790
19791 aix[4-9]*)
19792   version_type=linux
19793   need_lib_prefix=no
19794   need_version=no
19795   hardcode_into_libs=yes
19796   if test "$host_cpu" = ia64; then
19797     # AIX 5 supports IA64
19798     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19799     shlibpath_var=LD_LIBRARY_PATH
19800   else
19801     # With GCC up to 2.95.x, collect2 would create an import file
19802     # for dependence libraries.  The import file would start with
19803     # the line `#! .'.  This would cause the generated library to
19804     # depend on `.', always an invalid library.  This was fixed in
19805     # development snapshots of GCC prior to 3.0.
19806     case $host_os in
19807       aix4 | aix4.[01] | aix4.[01].*)
19808       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19809            echo ' yes '
19810            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19811         :
19812       else
19813         can_build_shared=no
19814       fi
19815       ;;
19816     esac
19817     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19818     # soname into executable. Probably we can add versioning support to
19819     # collect2, so additional links can be useful in future.
19820     if test "$aix_use_runtimelinking" = yes; then
19821       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19822       # instead of lib<name>.a to let people know that these are not
19823       # typical AIX shared libraries.
19824       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825     else
19826       # We preserve .a as extension for shared libraries through AIX4.2
19827       # and later when we are not doing run time linking.
19828       library_names_spec='${libname}${release}.a $libname.a'
19829       soname_spec='${libname}${release}${shared_ext}$major'
19830     fi
19831     shlibpath_var=LIBPATH
19832   fi
19833   ;;
19834
19835 amigaos*)
19836   case $host_cpu in
19837   powerpc)
19838     # Since July 2007 AmigaOS4 officially supports .so libraries.
19839     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19841     ;;
19842   m68k)
19843     library_names_spec='$libname.ixlibrary $libname.a'
19844     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19845     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
19846     ;;
19847   esac
19848   ;;
19849
19850 beos*)
19851   library_names_spec='${libname}${shared_ext}'
19852   dynamic_linker="$host_os ld.so"
19853   shlibpath_var=LIBRARY_PATH
19854   ;;
19855
19856 bsdi[45]*)
19857   version_type=linux
19858   need_version=no
19859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860   soname_spec='${libname}${release}${shared_ext}$major'
19861   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19862   shlibpath_var=LD_LIBRARY_PATH
19863   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19864   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19865   # the default ld.so.conf also contains /usr/contrib/lib and
19866   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19867   # libtool to hard-code these into programs
19868   ;;
19869
19870 cygwin* | mingw* | pw32* | cegcc*)
19871   version_type=windows
19872   shrext_cmds=".dll"
19873   need_version=no
19874   need_lib_prefix=no
19875
19876   case $GCC,$host_os in
19877   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19878     library_names_spec='$libname.dll.a'
19879     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19880     postinstall_cmds='base_file=`basename \${file}`~
19881       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19882       dldir=$destdir/`dirname \$dlpath`~
19883       test -d \$dldir || mkdir -p \$dldir~
19884       $install_prog $dir/$dlname \$dldir/$dlname~
19885       chmod a+x \$dldir/$dlname~
19886       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19887         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19888       fi'
19889     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19890       dlpath=$dir/\$dldll~
19891        $RM \$dlpath'
19892     shlibpath_overrides_runpath=yes
19893
19894     case $host_os in
19895     cygwin*)
19896       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19897       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19898       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19899       ;;
19900     mingw* | cegcc*)
19901       # MinGW DLLs use traditional 'lib' prefix
19902       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19903       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19904       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19905         # It is most probably a Windows format PATH printed by
19906         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19907         # path with ; separators, and with drive letters. We can handle the
19908         # drive letters (cygwin fileutils understands them), so leave them,
19909         # especially as we might pass files found there to a mingw objdump,
19910         # which wouldn't understand a cygwinified path. Ahh.
19911         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19912       else
19913         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19914       fi
19915       ;;
19916     pw32*)
19917       # pw32 DLLs use 'pw' prefix rather than 'lib'
19918       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19919       ;;
19920     esac
19921     ;;
19922
19923   *)
19924     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19925     ;;
19926   esac
19927   dynamic_linker='Win32 ld.exe'
19928   # FIXME: first we should search . and the directory the executable is in
19929   shlibpath_var=PATH
19930   ;;
19931
19932 darwin* | rhapsody*)
19933   dynamic_linker="$host_os dyld"
19934   version_type=darwin
19935   need_lib_prefix=no
19936   need_version=no
19937   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19938   soname_spec='${libname}${release}${major}$shared_ext'
19939   shlibpath_overrides_runpath=yes
19940   shlibpath_var=DYLD_LIBRARY_PATH
19941   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19942
19943   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19944   ;;
19945
19946 dgux*)
19947   version_type=linux
19948   need_lib_prefix=no
19949   need_version=no
19950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19951   soname_spec='${libname}${release}${shared_ext}$major'
19952   shlibpath_var=LD_LIBRARY_PATH
19953   ;;
19954
19955 freebsd1*)
19956   dynamic_linker=no
19957   ;;
19958
19959 freebsd* | dragonfly*)
19960   # DragonFly does not have aout.  When/if they implement a new
19961   # versioning mechanism, adjust this.
19962   if test -x /usr/bin/objformat; then
19963     objformat=`/usr/bin/objformat`
19964   else
19965     case $host_os in
19966     freebsd[123]*) objformat=aout ;;
19967     *) objformat=elf ;;
19968     esac
19969   fi
19970   version_type=freebsd-$objformat
19971   case $version_type in
19972     freebsd-elf*)
19973       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19974       need_version=no
19975       need_lib_prefix=no
19976       ;;
19977     freebsd-*)
19978       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19979       need_version=yes
19980       ;;
19981   esac
19982   shlibpath_var=LD_LIBRARY_PATH
19983   case $host_os in
19984   freebsd2*)
19985     shlibpath_overrides_runpath=yes
19986     ;;
19987   freebsd3.[01]* | freebsdelf3.[01]*)
19988     shlibpath_overrides_runpath=yes
19989     hardcode_into_libs=yes
19990     ;;
19991   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19992   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19993     shlibpath_overrides_runpath=no
19994     hardcode_into_libs=yes
19995     ;;
19996   *) # from 4.6 on, and DragonFly
19997     shlibpath_overrides_runpath=yes
19998     hardcode_into_libs=yes
19999     ;;
20000   esac
20001   ;;
20002
20003 gnu*)
20004   version_type=linux
20005   need_lib_prefix=no
20006   need_version=no
20007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20008   soname_spec='${libname}${release}${shared_ext}$major'
20009   shlibpath_var=LD_LIBRARY_PATH
20010   hardcode_into_libs=yes
20011   ;;
20012
20013 hpux9* | hpux10* | hpux11*)
20014   # Give a soname corresponding to the major version so that dld.sl refuses to
20015   # link against other versions.
20016   version_type=sunos
20017   need_lib_prefix=no
20018   need_version=no
20019   case $host_cpu in
20020   ia64*)
20021     shrext_cmds='.so'
20022     hardcode_into_libs=yes
20023     dynamic_linker="$host_os dld.so"
20024     shlibpath_var=LD_LIBRARY_PATH
20025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20027     soname_spec='${libname}${release}${shared_ext}$major'
20028     if test "X$HPUX_IA64_MODE" = X32; then
20029       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20030     else
20031       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20032     fi
20033     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20034     ;;
20035   hppa*64*)
20036     shrext_cmds='.sl'
20037     hardcode_into_libs=yes
20038     dynamic_linker="$host_os dld.sl"
20039     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20040     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042     soname_spec='${libname}${release}${shared_ext}$major'
20043     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20044     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20045     ;;
20046   *)
20047     shrext_cmds='.sl'
20048     dynamic_linker="$host_os dld.sl"
20049     shlibpath_var=SHLIB_PATH
20050     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052     soname_spec='${libname}${release}${shared_ext}$major'
20053     ;;
20054   esac
20055   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20056   postinstall_cmds='chmod 555 $lib'
20057   ;;
20058
20059 interix[3-9]*)
20060   version_type=linux
20061   need_lib_prefix=no
20062   need_version=no
20063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20064   soname_spec='${libname}${release}${shared_ext}$major'
20065   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20066   shlibpath_var=LD_LIBRARY_PATH
20067   shlibpath_overrides_runpath=no
20068   hardcode_into_libs=yes
20069   ;;
20070
20071 irix5* | irix6* | nonstopux*)
20072   case $host_os in
20073     nonstopux*) version_type=nonstopux ;;
20074     *)
20075         if test "$lt_cv_prog_gnu_ld" = yes; then
20076                 version_type=linux
20077         else
20078                 version_type=irix
20079         fi ;;
20080   esac
20081   need_lib_prefix=no
20082   need_version=no
20083   soname_spec='${libname}${release}${shared_ext}$major'
20084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20085   case $host_os in
20086   irix5* | nonstopux*)
20087     libsuff= shlibsuff=
20088     ;;
20089   *)
20090     case $LD in # libtool.m4 will add one of these switches to LD
20091     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20092       libsuff= shlibsuff= libmagic=32-bit;;
20093     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20094       libsuff=32 shlibsuff=N32 libmagic=N32;;
20095     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20096       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20097     *) libsuff= shlibsuff= libmagic=never-match;;
20098     esac
20099     ;;
20100   esac
20101   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20102   shlibpath_overrides_runpath=no
20103   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20104   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20105   hardcode_into_libs=yes
20106   ;;
20107
20108 # No shared lib support for Linux oldld, aout, or coff.
20109 linux*oldld* | linux*aout* | linux*coff*)
20110   dynamic_linker=no
20111   ;;
20112
20113 # This must be Linux ELF.
20114 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20115   version_type=linux
20116   need_lib_prefix=no
20117   need_version=no
20118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20119   soname_spec='${libname}${release}${shared_ext}$major'
20120   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20121   shlibpath_var=LD_LIBRARY_PATH
20122   shlibpath_overrides_runpath=no
20123
20124   # Some binutils ld are patched to set DT_RUNPATH
20125   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20126   $as_echo_n "(cached) " >&6
20127 else
20128   lt_cv_shlibpath_overrides_runpath=no
20129     save_LDFLAGS=$LDFLAGS
20130     save_libdir=$libdir
20131     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20132          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h.  */
20135
20136 int
20137 main ()
20138 {
20139
20140   ;
20141   return 0;
20142 }
20143 _ACEOF
20144 if ac_fn_cxx_try_link "$LINENO"; then :
20145   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20146   lt_cv_shlibpath_overrides_runpath=yes
20147 fi
20148 fi
20149 rm -f core conftest.err conftest.$ac_objext \
20150     conftest$ac_exeext conftest.$ac_ext
20151     LDFLAGS=$save_LDFLAGS
20152     libdir=$save_libdir
20153
20154 fi
20155
20156   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20157
20158   # This implies no fast_install, which is unacceptable.
20159   # Some rework will be needed to allow for fast_install
20160   # before this can be enabled.
20161   hardcode_into_libs=yes
20162
20163   # Append ld.so.conf contents to the search path
20164   if test -f /etc/ld.so.conf; then
20165     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;/^$/d' | tr '\n' ' '`
20166     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20167   fi
20168
20169   # We used to test for /lib/ld.so.1 and disable shared libraries on
20170   # powerpc, because MkLinux only supported shared libraries with the
20171   # GNU dynamic linker.  Since this was broken with cross compilers,
20172   # most powerpc-linux boxes support dynamic linking these days and
20173   # people can always --disable-shared, the test was removed, and we
20174   # assume the GNU/Linux dynamic linker is in use.
20175   dynamic_linker='GNU/Linux ld.so'
20176   ;;
20177
20178 netbsd*)
20179   version_type=sunos
20180   need_lib_prefix=no
20181   need_version=no
20182   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20184     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20185     dynamic_linker='NetBSD (a.out) ld.so'
20186   else
20187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20188     soname_spec='${libname}${release}${shared_ext}$major'
20189     dynamic_linker='NetBSD ld.elf_so'
20190   fi
20191   shlibpath_var=LD_LIBRARY_PATH
20192   shlibpath_overrides_runpath=yes
20193   hardcode_into_libs=yes
20194   ;;
20195
20196 newsos6)
20197   version_type=linux
20198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199   shlibpath_var=LD_LIBRARY_PATH
20200   shlibpath_overrides_runpath=yes
20201   ;;
20202
20203 *nto* | *qnx*)
20204   version_type=qnx
20205   need_lib_prefix=no
20206   need_version=no
20207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20208   soname_spec='${libname}${release}${shared_ext}$major'
20209   shlibpath_var=LD_LIBRARY_PATH
20210   shlibpath_overrides_runpath=no
20211   hardcode_into_libs=yes
20212   dynamic_linker='ldqnx.so'
20213   ;;
20214
20215 openbsd*)
20216   version_type=sunos
20217   sys_lib_dlsearch_path_spec="/usr/lib"
20218   need_lib_prefix=no
20219   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20220   case $host_os in
20221     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20222     *)                          need_version=no  ;;
20223   esac
20224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20225   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20226   shlibpath_var=LD_LIBRARY_PATH
20227   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20228     case $host_os in
20229       openbsd2.[89] | openbsd2.[89].*)
20230         shlibpath_overrides_runpath=no
20231         ;;
20232       *)
20233         shlibpath_overrides_runpath=yes
20234         ;;
20235       esac
20236   else
20237     shlibpath_overrides_runpath=yes
20238   fi
20239   ;;
20240
20241 os2*)
20242   libname_spec='$name'
20243   shrext_cmds=".dll"
20244   need_lib_prefix=no
20245   library_names_spec='$libname${shared_ext} $libname.a'
20246   dynamic_linker='OS/2 ld.exe'
20247   shlibpath_var=LIBPATH
20248   ;;
20249
20250 osf3* | osf4* | osf5*)
20251   version_type=osf
20252   need_lib_prefix=no
20253   need_version=no
20254   soname_spec='${libname}${release}${shared_ext}$major'
20255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20256   shlibpath_var=LD_LIBRARY_PATH
20257   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20258   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20259   ;;
20260
20261 rdos*)
20262   dynamic_linker=no
20263   ;;
20264
20265 solaris*)
20266   version_type=linux
20267   need_lib_prefix=no
20268   need_version=no
20269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270   soname_spec='${libname}${release}${shared_ext}$major'
20271   shlibpath_var=LD_LIBRARY_PATH
20272   shlibpath_overrides_runpath=yes
20273   hardcode_into_libs=yes
20274   # ldd complains unless libraries are executable
20275   postinstall_cmds='chmod +x $lib'
20276   ;;
20277
20278 sunos4*)
20279   version_type=sunos
20280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20282   shlibpath_var=LD_LIBRARY_PATH
20283   shlibpath_overrides_runpath=yes
20284   if test "$with_gnu_ld" = yes; then
20285     need_lib_prefix=no
20286   fi
20287   need_version=yes
20288   ;;
20289
20290 sysv4 | sysv4.3*)
20291   version_type=linux
20292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20293   soname_spec='${libname}${release}${shared_ext}$major'
20294   shlibpath_var=LD_LIBRARY_PATH
20295   case $host_vendor in
20296     sni)
20297       shlibpath_overrides_runpath=no
20298       need_lib_prefix=no
20299       runpath_var=LD_RUN_PATH
20300       ;;
20301     siemens)
20302       need_lib_prefix=no
20303       ;;
20304     motorola)
20305       need_lib_prefix=no
20306       need_version=no
20307       shlibpath_overrides_runpath=no
20308       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20309       ;;
20310   esac
20311   ;;
20312
20313 sysv4*MP*)
20314   if test -d /usr/nec ;then
20315     version_type=linux
20316     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20317     soname_spec='$libname${shared_ext}.$major'
20318     shlibpath_var=LD_LIBRARY_PATH
20319   fi
20320   ;;
20321
20322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20323   version_type=freebsd-elf
20324   need_lib_prefix=no
20325   need_version=no
20326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20327   soname_spec='${libname}${release}${shared_ext}$major'
20328   shlibpath_var=LD_LIBRARY_PATH
20329   shlibpath_overrides_runpath=yes
20330   hardcode_into_libs=yes
20331   if test "$with_gnu_ld" = yes; then
20332     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20333   else
20334     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20335     case $host_os in
20336       sco3.2v5*)
20337         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20338         ;;
20339     esac
20340   fi
20341   sys_lib_dlsearch_path_spec='/usr/lib'
20342   ;;
20343
20344 tpf*)
20345   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20346   version_type=linux
20347   need_lib_prefix=no
20348   need_version=no
20349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350   shlibpath_var=LD_LIBRARY_PATH
20351   shlibpath_overrides_runpath=no
20352   hardcode_into_libs=yes
20353   ;;
20354
20355 uts4*)
20356   version_type=linux
20357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358   soname_spec='${libname}${release}${shared_ext}$major'
20359   shlibpath_var=LD_LIBRARY_PATH
20360   ;;
20361
20362 *)
20363   dynamic_linker=no
20364   ;;
20365 esac
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20367 $as_echo "$dynamic_linker" >&6; }
20368 test "$dynamic_linker" = no && can_build_shared=no
20369
20370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20371 if test "$GCC" = yes; then
20372   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20373 fi
20374
20375 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20376   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20377 fi
20378 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20379   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20380 fi
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20418 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20419 hardcode_action_CXX=
20420 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20421    test -n "$runpath_var_CXX" ||
20422    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20423
20424   # We can hardcode non-existent directories.
20425   if test "$hardcode_direct_CXX" != no &&
20426      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20427      # have to relink, otherwise we might link with an installed library
20428      # when we should be linking with a yet-to-be-installed one
20429      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20430      test "$hardcode_minus_L_CXX" != no; then
20431     # Linking always hardcodes the temporary library directory.
20432     hardcode_action_CXX=relink
20433   else
20434     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20435     hardcode_action_CXX=immediate
20436   fi
20437 else
20438   # We cannot hardcode anything, or else we can only hardcode existing
20439   # directories.
20440   hardcode_action_CXX=unsupported
20441 fi
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20443 $as_echo "$hardcode_action_CXX" >&6; }
20444
20445 if test "$hardcode_action_CXX" = relink ||
20446    test "$inherit_rpath_CXX" = yes; then
20447   # Fast installation is not supported
20448   enable_fast_install=no
20449 elif test "$shlibpath_overrides_runpath" = yes ||
20450      test "$enable_shared" = no; then
20451   # Fast installation is not necessary
20452   enable_fast_install=needless
20453 fi
20454
20455
20456
20457
20458
20459
20460
20461   fi # test -n "$compiler"
20462
20463   CC=$lt_save_CC
20464   LDCXX=$LD
20465   LD=$lt_save_LD
20466   GCC=$lt_save_GCC
20467   with_gnu_ld=$lt_save_with_gnu_ld
20468   lt_cv_path_LDCXX=$lt_cv_path_LD
20469   lt_cv_path_LD=$lt_save_path_LD
20470   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20471   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20472 fi # test "$_lt_caught_CXX_error" != yes
20473
20474 ac_ext=c
20475 ac_cpp='$CPP $CPPFLAGS'
20476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495 # Only expand once:
20496
20497
20498
20499
20500
20501 # Identify the assembler which will work hand-in-glove with the newly
20502 # built GCC, so that we can examine its features.  This is the assembler
20503 # which will be driven by the driver program.
20504 #
20505 # If build != host, and we aren't building gas in-tree, we identify a
20506 # build->target assembler and hope that it will have the same features
20507 # as the host->target assembler we'll be using.
20508 gcc_cv_gas_major_version=
20509 gcc_cv_gas_minor_version=
20510 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20511
20512 if test "${gcc_cv_as+set}" = set; then :
20513
20514 else
20515
20516 if test -x "$DEFAULT_ASSEMBLER"; then
20517         gcc_cv_as="$DEFAULT_ASSEMBLER"
20518 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20519      && test -f ../gas/Makefile \
20520      && test x$build = x$host; then
20521         gcc_cv_as=../gas/as-new$build_exeext
20522 elif test -x as$build_exeext; then
20523         # Build using assembler in the current directory.
20524         gcc_cv_as=./as$build_exeext
20525 elif test -x $AS_FOR_TARGET; then
20526         gcc_cv_as="$AS_FOR_TARGET"
20527 else
20528         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20529 set dummy $AS_FOR_TARGET; ac_word=$2
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20531 $as_echo_n "checking for $ac_word... " >&6; }
20532 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20533   $as_echo_n "(cached) " >&6
20534 else
20535   case $gcc_cv_as in
20536   [\\/]* | ?:[\\/]*)
20537   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20538   ;;
20539   *)
20540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20541 for as_dir in $PATH
20542 do
20543   IFS=$as_save_IFS
20544   test -z "$as_dir" && as_dir=.
20545     for ac_exec_ext in '' $ac_executable_extensions; do
20546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20547     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20549     break 2
20550   fi
20551 done
20552   done
20553 IFS=$as_save_IFS
20554
20555   ;;
20556 esac
20557 fi
20558 gcc_cv_as=$ac_cv_path_gcc_cv_as
20559 if test -n "$gcc_cv_as"; then
20560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20561 $as_echo "$gcc_cv_as" >&6; }
20562 else
20563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20564 $as_echo "no" >&6; }
20565 fi
20566
20567
20568 fi
20569 fi
20570
20571 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20572
20573 case "$ORIGINAL_AS_FOR_TARGET" in
20574   ./as | ./as$build_exeext) ;;
20575   *) ac_config_files="$ac_config_files as:exec-tool.in"
20576  ;;
20577 esac
20578
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20580 $as_echo_n "checking what assembler to use... " >&6; }
20581 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20582   # Single tree build which includes gas.  We want to prefer it
20583   # over whatever linker top-level may have detected, since
20584   # we'll use what we're building after installation anyway.
20585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20586 $as_echo "newly built gas" >&6; }
20587   in_tree_gas=yes
20588   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20589 for f in $gcc_cv_as_bfd_srcdir/configure \
20590          $gcc_cv_as_gas_srcdir/configure \
20591          $gcc_cv_as_gas_srcdir/configure.in \
20592          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20593   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20594   if test x$gcc_cv_gas_version != x; then
20595     break
20596   fi
20597 done
20598 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20599 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20600 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20601 case $gcc_cv_gas_patch_version in
20602   "") gcc_cv_gas_patch_version="0" ;;
20603 esac
20604 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20605                             + $gcc_cv_gas_minor_version \) \* 1000 \
20606                             + $gcc_cv_gas_patch_version`
20607
20608   in_tree_gas_is_elf=no
20609   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20610      || (grep 'obj_format = multi' ../gas/Makefile \
20611          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20612   then
20613     in_tree_gas_is_elf=yes
20614   fi
20615 else
20616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20617 $as_echo "$gcc_cv_as" >&6; }
20618   in_tree_gas=no
20619 fi
20620
20621 # Identify the linker which will work hand-in-glove with the newly
20622 # built GCC, so that we can examine its features.  This is the linker
20623 # which will be driven by the driver program.
20624 #
20625 # If build != host, and we aren't building gas in-tree, we identify a
20626 # build->target linker and hope that it will have the same features
20627 # as the host->target linker we'll be using.
20628 gcc_cv_gld_major_version=
20629 gcc_cv_gld_minor_version=
20630 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20631 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20632
20633 if test "${gcc_cv_ld+set}" = set; then :
20634
20635 else
20636
20637 if test -x "$DEFAULT_LINKER"; then
20638         gcc_cv_ld="$DEFAULT_LINKER"
20639 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20640      && test -f ../ld/Makefile \
20641      && test x$build = x$host; then
20642         gcc_cv_ld=../ld/ld-new$build_exeext
20643 elif test -x collect-ld$build_exeext; then
20644         # Build using linker in the current directory.
20645         gcc_cv_ld=./collect-ld$build_exeext
20646 elif test -x $LD_FOR_TARGET; then
20647         gcc_cv_ld="$LD_FOR_TARGET"
20648 else
20649         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20650 set dummy $LD_FOR_TARGET; ac_word=$2
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20652 $as_echo_n "checking for $ac_word... " >&6; }
20653 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20654   $as_echo_n "(cached) " >&6
20655 else
20656   case $gcc_cv_ld in
20657   [\\/]* | ?:[\\/]*)
20658   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20659   ;;
20660   *)
20661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20662 for as_dir in $PATH
20663 do
20664   IFS=$as_save_IFS
20665   test -z "$as_dir" && as_dir=.
20666     for ac_exec_ext in '' $ac_executable_extensions; do
20667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20668     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20670     break 2
20671   fi
20672 done
20673   done
20674 IFS=$as_save_IFS
20675
20676   ;;
20677 esac
20678 fi
20679 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20680 if test -n "$gcc_cv_ld"; then
20681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20682 $as_echo "$gcc_cv_ld" >&6; }
20683 else
20684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20685 $as_echo "no" >&6; }
20686 fi
20687
20688
20689 fi
20690 fi
20691
20692 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20693 PLUGIN_LD=`basename $gcc_cv_ld`
20694
20695 # Check whether --with-plugin-ld was given.
20696 if test "${with_plugin_ld+set}" = set; then :
20697   withval=$with_plugin_ld; if test x"$withval" != x; then
20698    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20699    PLUGIN_LD="$withval"
20700  fi
20701 fi
20702
20703
20704
20705 cat >>confdefs.h <<_ACEOF
20706 #define PLUGIN_LD "$PLUGIN_LD"
20707 _ACEOF
20708
20709
20710 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20711
20712 case "$ORIGINAL_LD_FOR_TARGET" in
20713   ./collect-ld | ./collect-ld$build_exeext) ;;
20714   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20715  ;;
20716 esac
20717
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20719 $as_echo_n "checking what linker to use... " >&6; }
20720 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20721         # Single tree build which includes ld.  We want to prefer it
20722         # over whatever linker top-level may have detected, since
20723         # we'll use what we're building after installation anyway.
20724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20725 $as_echo "newly built ld" >&6; }
20726         in_tree_ld=yes
20727         in_tree_ld_is_elf=no
20728         if (grep 'EMUL = .*elf' ../ld/Makefile \
20729             || grep 'EMUL = .*linux' ../ld/Makefile \
20730             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20731           in_tree_ld_is_elf=yes
20732         fi
20733         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
20734         do
20735                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20736                 if test x$gcc_cv_gld_version != x; then
20737                         break
20738                 fi
20739         done
20740         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20741         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20742 else
20743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20744 $as_echo "$gcc_cv_ld" >&6; }
20745         in_tree_ld=no
20746 fi
20747
20748 # Figure out what nm we will be using.
20749 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20750 if test "${gcc_cv_nm+set}" = set; then :
20751
20752 else
20753
20754 if test -f $gcc_cv_binutils_srcdir/configure.in \
20755      && test -f ../binutils/Makefile \
20756      && test x$build = x$host; then
20757         gcc_cv_nm=../binutils/nm-new$build_exeext
20758 elif test -x nm$build_exeext; then
20759         gcc_cv_nm=./nm$build_exeext
20760 elif test -x $NM_FOR_TARGET; then
20761         gcc_cv_nm="$NM_FOR_TARGET"
20762 else
20763         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20764 set dummy $NM_FOR_TARGET; ac_word=$2
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20766 $as_echo_n "checking for $ac_word... " >&6; }
20767 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20768   $as_echo_n "(cached) " >&6
20769 else
20770   case $gcc_cv_nm in
20771   [\\/]* | ?:[\\/]*)
20772   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20773   ;;
20774   *)
20775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20776 for as_dir in $PATH
20777 do
20778   IFS=$as_save_IFS
20779   test -z "$as_dir" && as_dir=.
20780     for ac_exec_ext in '' $ac_executable_extensions; do
20781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20782     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20784     break 2
20785   fi
20786 done
20787   done
20788 IFS=$as_save_IFS
20789
20790   ;;
20791 esac
20792 fi
20793 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20794 if test -n "$gcc_cv_nm"; then
20795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20796 $as_echo "$gcc_cv_nm" >&6; }
20797 else
20798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799 $as_echo "no" >&6; }
20800 fi
20801
20802
20803 fi
20804 fi
20805
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20807 $as_echo_n "checking what nm to use... " >&6; }
20808 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20809         # Single tree build which includes binutils.
20810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20811 $as_echo "newly built nm" >&6; }
20812         in_tree_nm=yes
20813 else
20814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20815 $as_echo "$gcc_cv_nm" >&6; }
20816         in_tree_nm=no
20817 fi
20818
20819 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20820
20821 case "$ORIGINAL_NM_FOR_TARGET" in
20822   ./nm | ./nm$build_exeext) ;;
20823   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20824  ;;
20825 esac
20826
20827
20828 # Figure out what objdump we will be using.
20829 if test "${gcc_cv_objdump+set}" = set; then :
20830
20831 else
20832
20833 if test -f $gcc_cv_binutils_srcdir/configure.in \
20834      && test -f ../binutils/Makefile \
20835      && test x$build = x$host; then
20836         # Single tree build which includes binutils.
20837         gcc_cv_objdump=../binutils/objdump$build_exeext
20838 elif test -x objdump$build_exeext; then
20839         gcc_cv_objdump=./objdump$build_exeext
20840 elif test -x $OBJDUMP_FOR_TARGET; then
20841         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20842 else
20843         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20844 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20846 $as_echo_n "checking for $ac_word... " >&6; }
20847 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20848   $as_echo_n "(cached) " >&6
20849 else
20850   case $gcc_cv_objdump in
20851   [\\/]* | ?:[\\/]*)
20852   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20853   ;;
20854   *)
20855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20856 for as_dir in $PATH
20857 do
20858   IFS=$as_save_IFS
20859   test -z "$as_dir" && as_dir=.
20860     for ac_exec_ext in '' $ac_executable_extensions; do
20861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20862     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20864     break 2
20865   fi
20866 done
20867   done
20868 IFS=$as_save_IFS
20869
20870   ;;
20871 esac
20872 fi
20873 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20874 if test -n "$gcc_cv_objdump"; then
20875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20876 $as_echo "$gcc_cv_objdump" >&6; }
20877 else
20878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20879 $as_echo "no" >&6; }
20880 fi
20881
20882
20883 fi
20884 fi
20885
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20887 $as_echo_n "checking what objdump to use... " >&6; }
20888 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20889         # Single tree build which includes binutils.
20890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20891 $as_echo "newly built objdump" >&6; }
20892 elif test x$gcc_cv_objdump = x; then
20893         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20894 $as_echo "not found" >&6; }
20895 else
20896         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20897 $as_echo "$gcc_cv_objdump" >&6; }
20898 fi
20899
20900 # Figure out what readelf we will be using.
20901 if test "${gcc_cv_readelf+set}" = set; then :
20902
20903 else
20904
20905 if test -f $gcc_cv_binutils_srcdir/configure.in \
20906      && test -f ../binutils/Makefile \
20907      && test x$build = x$host; then
20908         # Single tree build which includes binutils.
20909         gcc_cv_readelf=../binutils/readelf$build_exeext
20910 elif test -x readelf$build_exeext; then
20911         gcc_cv_readelf=./readelf$build_exeext
20912 else
20913         # Extract the first word of "readelf", so it can be a program name with args.
20914 set dummy readelf; ac_word=$2
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20916 $as_echo_n "checking for $ac_word... " >&6; }
20917 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20918   $as_echo_n "(cached) " >&6
20919 else
20920   case $gcc_cv_readelf in
20921   [\\/]* | ?:[\\/]*)
20922   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20923   ;;
20924   *)
20925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20926 for as_dir in $PATH
20927 do
20928   IFS=$as_save_IFS
20929   test -z "$as_dir" && as_dir=.
20930     for ac_exec_ext in '' $ac_executable_extensions; do
20931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20932     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20934     break 2
20935   fi
20936 done
20937   done
20938 IFS=$as_save_IFS
20939
20940   ;;
20941 esac
20942 fi
20943 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20944 if test -n "$gcc_cv_readelf"; then
20945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20946 $as_echo "$gcc_cv_readelf" >&6; }
20947 else
20948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20949 $as_echo "no" >&6; }
20950 fi
20951
20952
20953 fi
20954 fi
20955
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20957 $as_echo_n "checking what readelf to use... " >&6; }
20958 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20959         # Single tree build which includes binutils.
20960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20961 $as_echo "newly built readelf" >&6; }
20962 elif test x$gcc_cv_readelf = x; then
20963         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20964 $as_echo "not found" >&6; }
20965 else
20966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20967 $as_echo "$gcc_cv_readelf" >&6; }
20968 fi
20969
20970 # Figure out what assembler alignment features are present.
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20972 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20973 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20974   $as_echo_n "(cached) " >&6
20975 else
20976   gcc_cv_as_balign_and_p2align=no
20977     if test $in_tree_gas = yes; then
20978     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20979   then gcc_cv_as_balign_and_p2align=yes
20980 fi
20981   elif test x$gcc_cv_as != x; then
20982     echo '.balign 4
20983 .p2align 2' > conftest.s
20984     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20985   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20986   (eval $ac_try) 2>&5
20987   ac_status=$?
20988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20989   test $ac_status = 0; }; }
20990     then
20991         gcc_cv_as_balign_and_p2align=yes
20992     else
20993       echo "configure: failed program was" >&5
20994       cat conftest.s >&5
20995     fi
20996     rm -f conftest.o conftest.s
20997   fi
20998 fi
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21000 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21001 if test $gcc_cv_as_balign_and_p2align = yes; then
21002
21003 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21004
21005 fi
21006
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21008 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21009 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21010   $as_echo_n "(cached) " >&6
21011 else
21012   gcc_cv_as_max_skip_p2align=no
21013     if test $in_tree_gas = yes; then
21014     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21015   then gcc_cv_as_max_skip_p2align=yes
21016 fi
21017   elif test x$gcc_cv_as != x; then
21018     echo '.p2align 4,,7' > conftest.s
21019     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21020   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21021   (eval $ac_try) 2>&5
21022   ac_status=$?
21023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21024   test $ac_status = 0; }; }
21025     then
21026         gcc_cv_as_max_skip_p2align=yes
21027     else
21028       echo "configure: failed program was" >&5
21029       cat conftest.s >&5
21030     fi
21031     rm -f conftest.o conftest.s
21032   fi
21033 fi
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21035 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21036 if test $gcc_cv_as_max_skip_p2align = yes; then
21037
21038 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21039
21040 fi
21041
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21043 $as_echo_n "checking assembler for .literal16... " >&6; }
21044 if test "${gcc_cv_as_literal16+set}" = set; then :
21045   $as_echo_n "(cached) " >&6
21046 else
21047   gcc_cv_as_literal16=no
21048     if test $in_tree_gas = yes; then
21049     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21050   then gcc_cv_as_literal16=yes
21051 fi
21052   elif test x$gcc_cv_as != x; then
21053     echo '.literal16' > conftest.s
21054     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21055   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21056   (eval $ac_try) 2>&5
21057   ac_status=$?
21058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21059   test $ac_status = 0; }; }
21060     then
21061         gcc_cv_as_literal16=yes
21062     else
21063       echo "configure: failed program was" >&5
21064       cat conftest.s >&5
21065     fi
21066     rm -f conftest.o conftest.s
21067   fi
21068 fi
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21070 $as_echo "$gcc_cv_as_literal16" >&6; }
21071 if test $gcc_cv_as_literal16 = yes; then
21072
21073 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21074
21075 fi
21076
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21078 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21079 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21080   $as_echo_n "(cached) " >&6
21081 else
21082   gcc_cv_as_subsection_m1=no
21083     if test $in_tree_gas = yes; then
21084     if test $in_tree_gas_is_elf = yes \
21085   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21086   then gcc_cv_as_subsection_m1=yes
21087 fi
21088   elif test x$gcc_cv_as != x; then
21089     echo 'conftest_label1: .word 0
21090 .subsection -1
21091 conftest_label2: .word 0
21092 .previous' > conftest.s
21093     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21094   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21095   (eval $ac_try) 2>&5
21096   ac_status=$?
21097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21098   test $ac_status = 0; }; }
21099     then
21100         if test x$gcc_cv_nm != x; then
21101     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21102     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21103     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21104     then :
21105     else gcc_cv_as_subsection_m1=yes
21106     fi
21107     rm -f conftest.nm1 conftest.nm2
21108   fi
21109     else
21110       echo "configure: failed program was" >&5
21111       cat conftest.s >&5
21112     fi
21113     rm -f conftest.o conftest.s
21114   fi
21115 fi
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21117 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21118 if test $gcc_cv_as_subsection_m1 = yes; then
21119
21120 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21121
21122 fi
21123
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21125 $as_echo_n "checking assembler for .weak... " >&6; }
21126 if test "${gcc_cv_as_weak+set}" = set; then :
21127   $as_echo_n "(cached) " >&6
21128 else
21129   gcc_cv_as_weak=no
21130     if test $in_tree_gas = yes; then
21131     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21132   then gcc_cv_as_weak=yes
21133 fi
21134   elif test x$gcc_cv_as != x; then
21135     echo '      .weak foobar' > conftest.s
21136     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21137   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21138   (eval $ac_try) 2>&5
21139   ac_status=$?
21140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21141   test $ac_status = 0; }; }
21142     then
21143         gcc_cv_as_weak=yes
21144     else
21145       echo "configure: failed program was" >&5
21146       cat conftest.s >&5
21147     fi
21148     rm -f conftest.o conftest.s
21149   fi
21150 fi
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21152 $as_echo "$gcc_cv_as_weak" >&6; }
21153 if test $gcc_cv_as_weak = yes; then
21154
21155 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21156
21157 fi
21158
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21160 $as_echo_n "checking assembler for .weakref... " >&6; }
21161 if test "${gcc_cv_as_weakref+set}" = set; then :
21162   $as_echo_n "(cached) " >&6
21163 else
21164   gcc_cv_as_weakref=no
21165     if test $in_tree_gas = yes; then
21166     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21167   then gcc_cv_as_weakref=yes
21168 fi
21169   elif test x$gcc_cv_as != x; then
21170     echo '      .weakref foobar, barfnot' > conftest.s
21171     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21172   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21176   test $ac_status = 0; }; }
21177     then
21178         gcc_cv_as_weakref=yes
21179     else
21180       echo "configure: failed program was" >&5
21181       cat conftest.s >&5
21182     fi
21183     rm -f conftest.o conftest.s
21184   fi
21185 fi
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21187 $as_echo "$gcc_cv_as_weakref" >&6; }
21188 if test $gcc_cv_as_weakref = yes; then
21189
21190 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21191
21192 fi
21193
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21195 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21196 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21197   $as_echo_n "(cached) " >&6
21198 else
21199   gcc_cv_as_nsubspa_comdat=no
21200     if test $in_tree_gas = yes; then
21201     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21202   then gcc_cv_as_nsubspa_comdat=yes
21203 fi
21204   elif test x$gcc_cv_as != x; then
21205     echo '      .SPACE $TEXT$
21206         .NSUBSPA $CODE$,COMDAT' > conftest.s
21207     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21208   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21209   (eval $ac_try) 2>&5
21210   ac_status=$?
21211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21212   test $ac_status = 0; }; }
21213     then
21214         gcc_cv_as_nsubspa_comdat=yes
21215     else
21216       echo "configure: failed program was" >&5
21217       cat conftest.s >&5
21218     fi
21219     rm -f conftest.o conftest.s
21220   fi
21221 fi
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21223 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21224 if test $gcc_cv_as_nsubspa_comdat = yes; then
21225
21226 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21227
21228 fi
21229
21230 # .hidden needs to be supported in both the assembler and the linker,
21231 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21232 # This is irritatingly difficult to feature test for; we have to check the
21233 # date string after the version number.  If we've got an in-tree
21234 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21235 # to be safe.
21236 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21238 $as_echo_n "checking assembler for .hidden... " >&6; }
21239 if test "${gcc_cv_as_hidden+set}" = set; then :
21240   $as_echo_n "(cached) " >&6
21241 else
21242   gcc_cv_as_hidden=no
21243     if test $in_tree_gas = yes; then
21244     if test $in_tree_gas_is_elf = yes \
21245   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21246   then gcc_cv_as_hidden=yes
21247 fi
21248   elif test x$gcc_cv_as != x; then
21249     echo '      .hidden foobar
21250 foobar:' > conftest.s
21251     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21252   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21253   (eval $ac_try) 2>&5
21254   ac_status=$?
21255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21256   test $ac_status = 0; }; }
21257     then
21258         gcc_cv_as_hidden=yes
21259     else
21260       echo "configure: failed program was" >&5
21261       cat conftest.s >&5
21262     fi
21263     rm -f conftest.o conftest.s
21264   fi
21265 fi
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21267 $as_echo "$gcc_cv_as_hidden" >&6; }
21268
21269
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21271 $as_echo_n "checking linker for .hidden support... " >&6; }
21272 if test "${gcc_cv_ld_hidden+set}" = set; then :
21273   $as_echo_n "(cached) " >&6
21274 else
21275   if test $in_tree_ld = yes ; then
21276   gcc_cv_ld_hidden=no
21277   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 \
21278      && test $in_tree_ld_is_elf = yes; then
21279      gcc_cv_ld_hidden=yes
21280   fi
21281 else
21282   gcc_cv_ld_hidden=yes
21283   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21284   if echo "$ld_ver" | grep GNU > /dev/null; then
21285     ld_vers=`echo $ld_ver | sed -n \
21286         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21287     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'`
21288     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21289     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21290     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21291     if test 0"$ld_date" -lt 20020404; then
21292       if test -n "$ld_date"; then
21293         # If there was date string, but was earlier than 2002-04-04, fail
21294         gcc_cv_ld_hidden=no
21295       elif test -z "$ld_vers"; then
21296         # If there was no date string nor ld version number, something is wrong
21297         gcc_cv_ld_hidden=no
21298       else
21299         test -z "$ld_vers_patch" && ld_vers_patch=0
21300         if test "$ld_vers_major" -lt 2; then
21301           gcc_cv_ld_hidden=no
21302         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21303           gcc_cv_ld_hidden="no"
21304         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21305           gcc_cv_ld_hidden=no
21306         fi
21307       fi
21308     fi
21309   else
21310     case "${target}" in
21311       hppa64*-*-hpux* | ia64*-*-hpux*)
21312         gcc_cv_ld_hidden=yes
21313         ;;
21314       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21315         gcc_cv_ld_hidden=yes
21316         ;;
21317       *)
21318         gcc_cv_ld_hidden=no
21319         ;;
21320     esac
21321   fi
21322 fi
21323 fi
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21325 $as_echo "$gcc_cv_ld_hidden" >&6; }
21326 libgcc_visibility=no
21327
21328
21329 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21330   libgcc_visibility=yes
21331
21332 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21333
21334 fi
21335
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21337 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21338 gcc_cv_ld_ro_rw_mix=unknown
21339 if test $in_tree_ld = yes ; then
21340   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 \
21341      && test $in_tree_ld_is_elf = yes; then
21342     gcc_cv_ld_ro_rw_mix=read-write
21343   fi
21344 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21345   echo '.section myfoosect, "a"' > conftest1.s
21346   echo '.section myfoosect, "aw"' > conftest2.s
21347   echo '.byte 1' >> conftest2.s
21348   echo '.section myfoosect, "a"' > conftest3.s
21349   echo '.byte 0' >> conftest3.s
21350   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21351      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21352      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21353      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21354         conftest2.o conftest3.o > /dev/null 2>&1; then
21355     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21356                          | sed -e '/myfoosect/!d' -e N`
21357     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21358       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21359         gcc_cv_ld_ro_rw_mix=read-only
21360       else
21361         gcc_cv_ld_ro_rw_mix=read-write
21362       fi
21363     fi
21364   fi
21365   rm -f conftest.* conftest[123].*
21366 fi
21367 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21368
21369 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21370
21371 fi
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21373 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21374
21375 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21377 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21378 if test "${gcc_cv_as_leb128+set}" = set; then :
21379   $as_echo_n "(cached) " >&6
21380 else
21381   gcc_cv_as_leb128=no
21382     if test $in_tree_gas = yes; then
21383     if test $in_tree_gas_is_elf = yes \
21384   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21385   then gcc_cv_as_leb128=yes
21386 fi
21387   elif test x$gcc_cv_as != x; then
21388     echo '      .data
21389         .uleb128 L2 - L1
21390 L1:
21391         .uleb128 1280
21392         .sleb128 -1010
21393 L2:' > conftest.s
21394     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21395   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21396   (eval $ac_try) 2>&5
21397   ac_status=$?
21398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21399   test $ac_status = 0; }; }
21400     then
21401         # GAS versions before 2.11 do not support uleb128,
21402   # despite appearing to.
21403   # ??? There exists an elf-specific test that will crash
21404   # the assembler.  Perhaps it's better to figure out whether
21405   # arbitrary sections are supported and try the test.
21406   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21407   if echo "$as_ver" | grep GNU > /dev/null; then
21408     as_vers=`echo $as_ver | sed -n \
21409         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21410     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21411     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21412     if test $as_major -eq 2 && test $as_minor -lt 11
21413     then :
21414     else gcc_cv_as_leb128=yes
21415     fi
21416   fi
21417     else
21418       echo "configure: failed program was" >&5
21419       cat conftest.s >&5
21420     fi
21421     rm -f conftest.o conftest.s
21422   fi
21423 fi
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21425 $as_echo "$gcc_cv_as_leb128" >&6; }
21426 if test $gcc_cv_as_leb128 = yes; then
21427
21428 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21429
21430 fi
21431
21432 # Check if we have assembler support for unwind directives.
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21434 $as_echo_n "checking assembler for cfi directives... " >&6; }
21435 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21436   $as_echo_n "(cached) " >&6
21437 else
21438   gcc_cv_as_cfi_directive=no
21439   if test x$gcc_cv_as != x; then
21440     echo '      .text
21441         .cfi_startproc
21442         .cfi_offset 0, 0
21443         .cfi_same_value 1
21444         .cfi_def_cfa 1, 2
21445         .cfi_escape 1, 2, 3, 4, 5
21446         .cfi_endproc' > conftest.s
21447     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21448   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21449   (eval $ac_try) 2>&5
21450   ac_status=$?
21451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21452   test $ac_status = 0; }; }
21453     then
21454         case "$target" in
21455   *-*-solaris*)
21456     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21457     # read-only and read-write sections, we need to make sure that the
21458     # assembler used emits read-write .eh_frame sections.
21459     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21460       if test "x$gcc_cv_objdump" != x; then
21461         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21462                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21463           gcc_cv_as_cfi_directive=no
21464         else
21465           gcc_cv_as_cfi_directive=yes
21466         fi
21467       else
21468         # no objdump, err on the side of caution
21469         gcc_cv_as_cfi_directive=no
21470       fi
21471     else
21472       gcc_cv_as_cfi_directive=yes
21473     fi
21474     ;;
21475   *-*-*)
21476     gcc_cv_as_cfi_directive=yes
21477     ;;
21478 esac
21479     else
21480       echo "configure: failed program was" >&5
21481       cat conftest.s >&5
21482     fi
21483     rm -f conftest.o conftest.s
21484   fi
21485 fi
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21487 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21488
21489 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21491 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21492 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21493   $as_echo_n "(cached) " >&6
21494 else
21495   gcc_cv_as_cfi_advance_working=no
21496   if test x$gcc_cv_as != x; then
21497     echo '      .text
21498         .cfi_startproc
21499         .cfi_adjust_cfa_offset 64
21500         .skip 512, 0
21501         .cfi_adjust_cfa_offset 128
21502         .cfi_endproc' > conftest.s
21503     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21504   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21505   (eval $ac_try) 2>&5
21506   ac_status=$?
21507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21508   test $ac_status = 0; }; }
21509     then
21510
21511 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21512     | grep 'DW_CFA_advance_loc[12]:[    ][      ]*512[  ]' >/dev/null; then
21513    gcc_cv_as_cfi_advance_working=yes
21514 fi
21515
21516     else
21517       echo "configure: failed program was" >&5
21518       cat conftest.s >&5
21519     fi
21520     rm -f conftest.o conftest.s
21521   fi
21522 fi
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21524 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21525
21526 else
21527   # no readelf, err on the side of caution
21528   gcc_cv_as_cfi_advance_working=no
21529 fi
21530
21531 cat >>confdefs.h <<_ACEOF
21532 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21533        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21534 _ACEOF
21535
21536
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21538 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21539 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21540   $as_echo_n "(cached) " >&6
21541 else
21542   gcc_cv_as_cfi_personality_directive=no
21543   if test x$gcc_cv_as != x; then
21544     echo '      .text
21545         .cfi_startproc
21546         .cfi_personality 0, symbol
21547         .cfi_endproc' > conftest.s
21548     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21549   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21550   (eval $ac_try) 2>&5
21551   ac_status=$?
21552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21553   test $ac_status = 0; }; }
21554     then
21555         gcc_cv_as_cfi_personality_directive=yes
21556     else
21557       echo "configure: failed program was" >&5
21558       cat conftest.s >&5
21559     fi
21560     rm -f conftest.o conftest.s
21561   fi
21562 fi
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21564 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21565
21566
21567 cat >>confdefs.h <<_ACEOF
21568 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21569     then echo 1; else echo 0; fi`
21570 _ACEOF
21571
21572
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21574 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21575 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21576   $as_echo_n "(cached) " >&6
21577 else
21578   gcc_cv_as_cfi_sections_directive=no
21579   if test x$gcc_cv_as != x; then
21580     echo '      .text
21581         .cfi_sections .debug_frame, .eh_frame
21582         .cfi_startproc
21583         .cfi_endproc' > conftest.s
21584     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21585   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21586   (eval $ac_try) 2>&5
21587   ac_status=$?
21588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21589   test $ac_status = 0; }; }
21590     then
21591         gcc_cv_as_cfi_sections_directive=yes
21592     else
21593       echo "configure: failed program was" >&5
21594       cat conftest.s >&5
21595     fi
21596     rm -f conftest.o conftest.s
21597   fi
21598 fi
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21600 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21601
21602
21603 cat >>confdefs.h <<_ACEOF
21604 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21605     then echo 1; else echo 0; fi`
21606 _ACEOF
21607
21608
21609 # GAS versions up to and including 2.11.0 may mis-optimize
21610 # .eh_frame data.
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21612 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21613 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21614   $as_echo_n "(cached) " >&6
21615 else
21616   gcc_cv_as_eh_frame=no
21617     if test $in_tree_gas = yes; then
21618     if test $in_tree_gas_is_elf = yes \
21619   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21620   then gcc_cv_as_eh_frame=yes
21621 fi
21622   elif test x$gcc_cv_as != x; then
21623     echo '      .text
21624 .LFB1:
21625         .4byte  0
21626 .L1:
21627         .4byte  0
21628 .LFE1:
21629         .section        .eh_frame,"aw",@progbits
21630 __FRAME_BEGIN__:
21631         .4byte  .LECIE1-.LSCIE1
21632 .LSCIE1:
21633         .4byte  0x0
21634         .byte   0x1
21635         .ascii "z\0"
21636         .byte   0x1
21637         .byte   0x78
21638         .byte   0x1a
21639         .byte   0x0
21640         .byte   0x4
21641         .4byte  1
21642         .p2align 1
21643 .LECIE1:
21644 .LSFDE1:
21645         .4byte  .LEFDE1-.LASFDE1
21646 .LASFDE1:
21647         .4byte  .LASFDE1-__FRAME_BEGIN__
21648         .4byte  .LFB1
21649         .4byte  .LFE1-.LFB1
21650         .byte   0x4
21651         .4byte  .LFE1-.LFB1
21652         .byte   0x4
21653         .4byte  .L1-.LFB1
21654 .LEFDE1:' > conftest.s
21655     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21656   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21657   (eval $ac_try) 2>&5
21658   ac_status=$?
21659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21660   test $ac_status = 0; }; }
21661     then
21662           cat > conftest.lit <<EOF
21663  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21664  0010 01000000 12000000 18000000 00000000  ................
21665  0020 08000000 04080000 0044               .........D      
21666 EOF
21667 cat > conftest.big <<EOF
21668  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21669  0010 00000001 00000012 00000018 00000000  ................
21670  0020 00000008 04000000 0844               .........D      
21671 EOF
21672   # If the assembler didn't choke, and we can objdump,
21673   # and we got the correct data, then succeed.
21674   # The text in the here-document typically retains its unix-style line
21675   # endings, while the output of objdump will use host line endings.
21676   # Therefore, use diff -b for the comparisons.
21677   if test x$gcc_cv_objdump != x \
21678   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21679      | tail -3 > conftest.got \
21680   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21681     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21682   then
21683     gcc_cv_as_eh_frame=yes
21684   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21685   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21686   (eval $ac_try) 2>&5
21687   ac_status=$?
21688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21689   test $ac_status = 0; }; }; then
21690     gcc_cv_as_eh_frame=buggy
21691   else
21692     # Uh oh, what do we do now?
21693     gcc_cv_as_eh_frame=no
21694   fi
21695     else
21696       echo "configure: failed program was" >&5
21697       cat conftest.s >&5
21698     fi
21699     rm -f conftest.o conftest.s
21700   fi
21701 fi
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21703 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21704
21705
21706 if test $gcc_cv_as_eh_frame = buggy; then
21707
21708 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21709
21710 fi
21711
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21713 $as_echo_n "checking assembler for section merging support... " >&6; }
21714 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21715   $as_echo_n "(cached) " >&6
21716 else
21717   gcc_cv_as_shf_merge=no
21718     if test $in_tree_gas = yes; then
21719     if test $in_tree_gas_is_elf = yes \
21720   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21721   then gcc_cv_as_shf_merge=yes
21722 fi
21723   elif test x$gcc_cv_as != x; then
21724     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21725     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21726   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21727   (eval $ac_try) 2>&5
21728   ac_status=$?
21729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21730   test $ac_status = 0; }; }
21731     then
21732         gcc_cv_as_shf_merge=yes
21733     else
21734       echo "configure: failed program was" >&5
21735       cat conftest.s >&5
21736     fi
21737     rm -f conftest.o conftest.s
21738   fi
21739 fi
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21741 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21742
21743 if test $gcc_cv_as_shf_merge = no; then
21744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21745 $as_echo_n "checking assembler for section merging support... " >&6; }
21746 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21747   $as_echo_n "(cached) " >&6
21748 else
21749   gcc_cv_as_shf_merge=no
21750     if test $in_tree_gas = yes; then
21751     if test $in_tree_gas_is_elf = yes \
21752   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21753   then gcc_cv_as_shf_merge=yes
21754 fi
21755   elif test x$gcc_cv_as != x; then
21756     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21757     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21758   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21759   (eval $ac_try) 2>&5
21760   ac_status=$?
21761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21762   test $ac_status = 0; }; }
21763     then
21764         gcc_cv_as_shf_merge=yes
21765     else
21766       echo "configure: failed program was" >&5
21767       cat conftest.s >&5
21768     fi
21769     rm -f conftest.o conftest.s
21770   fi
21771 fi
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21773 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21774
21775 fi
21776
21777 cat >>confdefs.h <<_ACEOF
21778 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21779 _ACEOF
21780
21781
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21783 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21784 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21785   $as_echo_n "(cached) " >&6
21786 else
21787   gcc_cv_as_comdat_group=no
21788     if test $in_tree_gas = yes; then
21789     if test $in_tree_gas_is_elf = yes \
21790   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21791   then gcc_cv_as_comdat_group=yes
21792 fi
21793   elif test x$gcc_cv_as != x; then
21794     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21795     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21796   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21797   (eval $ac_try) 2>&5
21798   ac_status=$?
21799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21800   test $ac_status = 0; }; }
21801     then
21802         gcc_cv_as_comdat_group=yes
21803     else
21804       echo "configure: failed program was" >&5
21805       cat conftest.s >&5
21806     fi
21807     rm -f conftest.o conftest.s
21808   fi
21809 fi
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21811 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21812
21813 if test $gcc_cv_as_comdat_group = yes; then
21814   gcc_cv_as_comdat_group_percent=no
21815 else
21816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21817 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21818 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21819   $as_echo_n "(cached) " >&6
21820 else
21821   gcc_cv_as_comdat_group_percent=no
21822     if test $in_tree_gas = yes; then
21823     if test $in_tree_gas_is_elf = yes \
21824   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21825   then gcc_cv_as_comdat_group_percent=yes
21826 fi
21827   elif test x$gcc_cv_as != x; then
21828     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21829     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21830   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21831   (eval $ac_try) 2>&5
21832   ac_status=$?
21833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21834   test $ac_status = 0; }; }
21835     then
21836         gcc_cv_as_comdat_group_percent=yes
21837     else
21838       echo "configure: failed program was" >&5
21839       cat conftest.s >&5
21840     fi
21841     rm -f conftest.o conftest.s
21842   fi
21843 fi
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21845 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21846
21847 fi
21848 if test $in_tree_ld = yes ; then
21849   comdat_group=no
21850   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 \
21851      && test $in_tree_ld_is_elf = yes; then
21852      comdat_group=yes
21853   fi
21854 elif test x"$ld_vers" != x; then
21855   comdat_group=yes
21856   if test 0"$ld_date" -lt 20050308; then
21857     if test -n "$ld_date"; then
21858       # If there was date string, but was earlier than 2005-03-08, fail
21859       comdat_group=no
21860     elif test "$ld_vers_major" -lt 2; then
21861       comdat_group=no
21862     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21863       comdat_group=no
21864     fi
21865   fi
21866 else
21867   # assume linkers other than GNU ld don't support COMDAT group
21868   comdat_group=no
21869 fi
21870 if test $comdat_group = no; then
21871   gcc_cv_as_comdat_group=no
21872   gcc_cv_as_comdat_group_percent=no
21873 fi
21874
21875 cat >>confdefs.h <<_ACEOF
21876 #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`
21877 _ACEOF
21878
21879
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21881 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21882 if test "${gcc_cv_as_discriminator+set}" = set; then :
21883   $as_echo_n "(cached) " >&6
21884 else
21885   gcc_cv_as_discriminator=no
21886     if test $in_tree_gas = yes; then
21887     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21888   then gcc_cv_as_discriminator=yes
21889 fi
21890   elif test x$gcc_cv_as != x; then
21891     echo '      .text
21892         .file 1 "conf.c"
21893         .loc 1 1 0 discriminator 1' > conftest.s
21894     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21895   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21896   (eval $ac_try) 2>&5
21897   ac_status=$?
21898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21899   test $ac_status = 0; }; }
21900     then
21901         gcc_cv_as_discriminator=yes
21902     else
21903       echo "configure: failed program was" >&5
21904       cat conftest.s >&5
21905     fi
21906     rm -f conftest.o conftest.s
21907   fi
21908 fi
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21910 $as_echo "$gcc_cv_as_discriminator" >&6; }
21911 if test $gcc_cv_as_discriminator = yes; then
21912
21913 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21914
21915 fi
21916
21917 # Thread-local storage - the check is heavily parameterized.
21918 conftest_s=
21919 tls_first_major=
21920 tls_first_minor=
21921 tls_as_opt=
21922 case "$target" in
21923   alpha*-*-*)
21924     conftest_s='
21925         .section ".tdata","awT",@progbits
21926 foo:    .long   25
21927         .text
21928         ldq     $27,__tls_get_addr($29)         !literal!1
21929         lda     $16,foo($29)                    !tlsgd!1
21930         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21931         ldq     $27,__tls_get_addr($29)         !literal!2
21932         lda     $16,foo($29)                    !tlsldm!2
21933         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21934         ldq     $1,foo($29)                     !gotdtprel
21935         ldah    $2,foo($29)                     !dtprelhi
21936         lda     $3,foo($2)                      !dtprello
21937         lda     $4,foo($29)                     !dtprel
21938         ldq     $1,foo($29)                     !gottprel
21939         ldah    $2,foo($29)                     !tprelhi
21940         lda     $3,foo($2)                      !tprello
21941         lda     $4,foo($29)                     !tprel'
21942         tls_first_major=2
21943         tls_first_minor=13
21944         tls_as_opt=--fatal-warnings
21945         ;;
21946   cris-*-*|crisv32-*-*)
21947     conftest_s='
21948         .section ".tdata","awT",@progbits
21949 x:      .long   25
21950         .text
21951         move.d x:IE,$r10
21952         nop'
21953         tls_first_major=2
21954         tls_first_minor=20
21955         tls_as_opt=--fatal-warnings
21956         ;;
21957   frv*-*-*)
21958     conftest_s='
21959         .section ".tdata","awT",@progbits
21960 x:      .long   25
21961         .text
21962         call    #gettlsoff(x)'
21963         tls_first_major=2
21964         tls_first_minor=14
21965         ;;
21966   hppa*-*-linux*)
21967     conftest_s='
21968 t1:     .reg    %r20
21969 t2:     .reg    %r21
21970 gp:     .reg    %r19
21971         .section ".tdata","awT",@progbits
21972 foo:    .long   25
21973         .text
21974         .align  4
21975         addil LT%foo-$tls_gdidx$,gp
21976         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21977         b __tls_get_addr
21978         nop
21979         addil LT%foo-$tls_ldidx$,gp
21980         b __tls_get_addr
21981         ldo RT%foo-$tls_ldidx$(%r1),%arg0
21982         addil LR%foo-$tls_dtpoff$,%ret0
21983         ldo RR%foo-$tls_dtpoff$(%r1),%t1
21984         mfctl %cr27,%t1
21985         addil LT%foo-$tls_ieoff$,gp
21986         ldw RT%foo-$tls_ieoff$(%r1),%t2
21987         add %t1,%t2,%t3
21988         mfctl %cr27,%t1
21989         addil LR%foo-$tls_leoff$,%t1
21990         ldo RR%foo-$tls_leoff$(%r1),%t2'
21991         tls_first_major=2
21992         tls_first_minor=15
21993         tls_as_opt=--fatal-warnings
21994         ;;
21995   arm*-*-*)
21996     conftest_s='
21997         .section ".tdata","awT",%progbits
21998 foo:    .long   25
21999         .text
22000 .word foo(gottpoff)
22001 .word foo(tpoff)
22002 .word foo(tlsgd)
22003 .word foo(tlsldm)
22004 .word foo(tlsldo)'
22005         tls_first_major=2
22006         tls_first_minor=17
22007         ;;
22008   i[34567]86-*-*)
22009     conftest_s='
22010         .section ".tdata","awT",@progbits
22011 foo:    .long   25
22012         .text
22013         movl    %gs:0, %eax
22014         leal    foo@TLSGD(,%ebx,1), %eax
22015         leal    foo@TLSLDM(%ebx), %eax
22016         leal    foo@DTPOFF(%eax), %edx
22017         movl    foo@GOTTPOFF(%ebx), %eax
22018         subl    foo@GOTTPOFF(%ebx), %eax
22019         addl    foo@GOTNTPOFF(%ebx), %eax
22020         movl    foo@INDNTPOFF, %eax
22021         movl    $foo@TPOFF, %eax
22022         subl    $foo@TPOFF, %eax
22023         leal    foo@NTPOFF(%ecx), %eax'
22024         tls_first_major=2
22025         tls_first_minor=14
22026         tls_as_opt=--fatal-warnings
22027         ;;
22028   x86_64-*-*)
22029     conftest_s='
22030         .section ".tdata","awT",@progbits
22031 foo:    .long   25
22032         .text
22033         movq    %fs:0, %rax
22034         leaq    foo@TLSGD(%rip), %rdi
22035         leaq    foo@TLSLD(%rip), %rdi
22036         leaq    foo@DTPOFF(%rax), %rdx
22037         movq    foo@GOTTPOFF(%rip), %rax
22038         movq    $foo@TPOFF, %rax'
22039         tls_first_major=2
22040         tls_first_minor=14
22041         tls_as_opt=--fatal-warnings
22042         ;;
22043   ia64-*-*)
22044     conftest_s='
22045         .section ".tdata","awT",@progbits
22046 foo:    data8   25
22047         .text
22048         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22049         addl    r17 = @ltoff(@dtprel(foo#)), gp
22050         addl    r18 = @ltoff(@tprel(foo#)), gp
22051         addl    r19 = @dtprel(foo#), gp
22052         adds    r21 = @dtprel(foo#), r13
22053         movl    r23 = @dtprel(foo#)
22054         addl    r20 = @tprel(foo#), gp
22055         adds    r22 = @tprel(foo#), r13
22056         movl    r24 = @tprel(foo#)'
22057         tls_first_major=2
22058         tls_first_minor=13
22059         tls_as_opt=--fatal-warnings
22060         ;;
22061   mips*-*-*)
22062     conftest_s='
22063         .section .tdata,"awT",@progbits
22064 x:
22065         .word 2
22066         .text
22067         addiu $4, $28, %tlsgd(x)
22068         addiu $4, $28, %tlsldm(x)
22069         lui $4, %dtprel_hi(x)
22070         addiu $4, $4, %dtprel_lo(x)
22071         lw $4, %gottprel(x)($28)
22072         lui $4, %tprel_hi(x)
22073         addiu $4, $4, %tprel_lo(x)'
22074         tls_first_major=2
22075         tls_first_minor=16
22076         tls_as_opt='-32 --fatal-warnings'
22077         ;;
22078   m68k-*-*)
22079     conftest_s='
22080         .section .tdata,"awT",@progbits
22081 x:
22082         .word 2
22083         .text
22084 foo:
22085         move.l x@TLSGD(%a5),%a0
22086         move.l x@TLSLDM(%a5),%a0
22087         move.l x@TLSLDO(%a5),%a0
22088         move.l x@TLSIE(%a5),%a0
22089         move.l x@TLSLE(%a5),%a0'
22090         tls_first_major=2
22091         tls_first_minor=19
22092         tls_as_opt='--fatal-warnings'
22093         ;;
22094   powerpc-*-*)
22095     conftest_s='
22096         .section ".tdata","awT",@progbits
22097         .align 2
22098 ld0:    .space 4
22099 ld1:    .space 4
22100 x1:     .space 4
22101 x2:     .space 4
22102 x3:     .space 4
22103         .text
22104         addi 3,31,ld0@got@tlsgd
22105         bl __tls_get_addr
22106         addi 3,31,x1@got@tlsld
22107         bl __tls_get_addr
22108         addi 9,3,x1@dtprel
22109         addis 9,3,x2@dtprel@ha
22110         addi 9,9,x2@dtprel@l
22111         lwz 9,x3@got@tprel(31)
22112         add 9,9,x@tls
22113         addi 9,2,x1@tprel
22114         addis 9,2,x2@tprel@ha
22115         addi 9,9,x2@tprel@l'
22116         tls_first_major=2
22117         tls_first_minor=14
22118         tls_as_opt="-a32 --fatal-warnings"
22119         ;;
22120   powerpc64-*-*)
22121     conftest_s='
22122         .section ".tdata","awT",@progbits
22123         .align 3
22124 ld0:    .space 8
22125 ld1:    .space 8
22126 x1:     .space 8
22127 x2:     .space 8
22128 x3:     .space 8
22129         .text
22130         addi 3,2,ld0@got@tlsgd
22131         bl .__tls_get_addr
22132         nop
22133         addi 3,2,ld1@toc
22134         bl .__tls_get_addr
22135         nop
22136         addi 3,2,x1@got@tlsld
22137         bl .__tls_get_addr
22138         nop
22139         addi 9,3,x1@dtprel
22140         bl .__tls_get_addr
22141         nop
22142         addis 9,3,x2@dtprel@ha
22143         addi 9,9,x2@dtprel@l
22144         bl .__tls_get_addr
22145         nop
22146         ld 9,x3@got@dtprel(2)
22147         add 9,9,3
22148         bl .__tls_get_addr
22149         nop'
22150         tls_first_major=2
22151         tls_first_minor=14
22152         tls_as_opt="-a64 --fatal-warnings"
22153         ;;
22154   s390-*-*)
22155     conftest_s='
22156         .section ".tdata","awT",@progbits
22157 foo:    .long   25
22158         .text
22159         .long   foo@TLSGD
22160         .long   foo@TLSLDM
22161         .long   foo@DTPOFF
22162         .long   foo@NTPOFF
22163         .long   foo@GOTNTPOFF
22164         .long   foo@INDNTPOFF
22165         l       %r1,foo@GOTNTPOFF(%r12)
22166         l       %r1,0(%r1):tls_load:foo
22167         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22168         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22169         tls_first_major=2
22170         tls_first_minor=14
22171         tls_as_opt="-m31 --fatal-warnings"
22172         ;;
22173   s390x-*-*)
22174     conftest_s='
22175         .section ".tdata","awT",@progbits
22176 foo:    .long   25
22177         .text
22178         .quad   foo@TLSGD
22179         .quad   foo@TLSLDM
22180         .quad   foo@DTPOFF
22181         .quad   foo@NTPOFF
22182         .quad   foo@GOTNTPOFF
22183         lg      %r1,foo@GOTNTPOFF(%r12)
22184         larl    %r1,foo@INDNTPOFF
22185         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22186         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22187         tls_first_major=2
22188         tls_first_minor=14
22189         tls_as_opt="-m64 -Aesame --fatal-warnings"
22190         ;;
22191   sh-*-* | sh[34]-*-*)
22192     conftest_s='
22193         .section ".tdata","awT",@progbits
22194 foo:    .long   25
22195         .text
22196         .long   foo@TLSGD
22197         .long   foo@TLSLDM
22198         .long   foo@DTPOFF
22199         .long   foo@GOTTPOFF
22200         .long   foo@TPOFF'
22201         tls_first_major=2
22202         tls_first_minor=13
22203         tls_as_opt=--fatal-warnings
22204         ;;
22205   sparc*-*-*)
22206     case "$target" in
22207       sparc*-sun-solaris2.[56789]*)
22208         # TLS was introduced in the Solaris 9 4/04 release but
22209         # we do not enable it by default on Solaris 9 either.
22210         if test "x$enable_tls" = xyes ; then
22211           on_solaris=yes
22212         else
22213           enable_tls=no;
22214         fi
22215         ;;
22216       sparc*-sun-solaris2.*)
22217         on_solaris=yes
22218         ;;
22219       *)
22220         on_solaris=no
22221         ;;
22222     esac
22223     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22224       conftest_s='
22225         .section ".tdata",#alloc,#write,#tls
22226 foo:    .long   25
22227         .text
22228         sethi   %tgd_hi22(foo), %o0
22229         add     %o0, %tgd_lo10(foo), %o1
22230         add     %l7, %o1, %o0, %tgd_add(foo)
22231         call    __tls_get_addr, %tgd_call(foo)
22232         sethi   %tldm_hi22(foo), %l1
22233         add     %l1, %tldm_lo10(foo), %l2
22234         add     %l7, %l2, %o0, %tldm_add(foo)
22235         call    __tls_get_addr, %tldm_call(foo)
22236         sethi   %tldo_hix22(foo), %l3
22237         xor     %l3, %tldo_lox10(foo), %l4
22238         add     %o0, %l4, %l5, %tldo_add(foo)
22239         sethi   %tie_hi22(foo), %o3
22240         add     %o3, %tie_lo10(foo), %o3
22241         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22242         add     %g7, %o2, %o4, %tie_add(foo)
22243         sethi   %tle_hix22(foo), %l1
22244         xor     %l1, %tle_lox10(foo), %o5
22245         ld      [%g7 + %o5], %o1'
22246         tls_first_major=0
22247         tls_first_minor=0
22248     else
22249       conftest_s='
22250         .section ".tdata","awT",@progbits
22251 foo:    .long   25
22252         .text
22253         sethi   %tgd_hi22(foo), %o0
22254         add     %o0, %tgd_lo10(foo), %o1
22255         add     %l7, %o1, %o0, %tgd_add(foo)
22256         call    __tls_get_addr, %tgd_call(foo)
22257         sethi   %tldm_hi22(foo), %l1
22258         add     %l1, %tldm_lo10(foo), %l2
22259         add     %l7, %l2, %o0, %tldm_add(foo)
22260         call    __tls_get_addr, %tldm_call(foo)
22261         sethi   %tldo_hix22(foo), %l3
22262         xor     %l3, %tldo_lox10(foo), %l4
22263         add     %o0, %l4, %l5, %tldo_add(foo)
22264         sethi   %tie_hi22(foo), %o3
22265         add     %o3, %tie_lo10(foo), %o3
22266         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22267         add     %g7, %o2, %o4, %tie_add(foo)
22268         sethi   %tle_hix22(foo), %l1
22269         xor     %l1, %tle_lox10(foo), %o5
22270         ld      [%g7 + %o5], %o1'
22271         tls_first_major=2
22272         tls_first_minor=14
22273         tls_as_opt="-32 --fatal-warnings"
22274       fi
22275         ;;
22276   xtensa*-*-*)
22277     conftest_s='
22278         .section ".tdata","awT",@progbits
22279 foo:    .long   25
22280         .text
22281         movi    a8, foo@TLSFUNC
22282         movi    a10, foo@TLSARG
22283         callx8.tls a8, foo@TLSCALL'
22284         tls_first_major=2
22285         tls_first_minor=19
22286         ;;
22287 esac
22288 set_have_as_tls=no
22289 if test "x$enable_tls" = xno ; then
22290   : # TLS explicitly disabled.
22291 elif test "x$enable_tls" = xyes ; then
22292   set_have_as_tls=yes # TLS explicitly enabled.
22293 elif test -z "$tls_first_major"; then
22294   : # If we don't have a check, assume no support.
22295 else
22296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22297 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22298 if test "${gcc_cv_as_tls+set}" = set; then :
22299   $as_echo_n "(cached) " >&6
22300 else
22301   gcc_cv_as_tls=no
22302     if test $in_tree_gas = yes; then
22303     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22304   then gcc_cv_as_tls=yes
22305 fi
22306   elif test x$gcc_cv_as != x; then
22307     echo "$conftest_s" > conftest.s
22308     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22309   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22310   (eval $ac_try) 2>&5
22311   ac_status=$?
22312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22313   test $ac_status = 0; }; }
22314     then
22315         gcc_cv_as_tls=yes
22316     else
22317       echo "configure: failed program was" >&5
22318       cat conftest.s >&5
22319     fi
22320     rm -f conftest.o conftest.s
22321   fi
22322 fi
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22324 $as_echo "$gcc_cv_as_tls" >&6; }
22325 if test $gcc_cv_as_tls = yes; then
22326   set_have_as_tls=yes
22327 fi
22328 fi
22329 if test $set_have_as_tls = yes ; then
22330
22331 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22332
22333 fi
22334
22335 # Target-specific assembler checks.
22336
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22338 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22339 gcc_cv_ld_static_dynamic=no
22340 if test $in_tree_ld = yes ; then
22341   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
22342     gcc_cv_ld_static_dynamic=yes
22343   fi
22344 elif test x$gcc_cv_ld != x; then
22345         # Check if linker supports -Bstatic/-Bdynamic option
22346         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22347           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22348                 gcc_cv_ld_static_dynamic=yes
22349         fi
22350 fi
22351 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22352
22353 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22354
22355 fi
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22357 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22358
22359 if test x"$demangler_in_ld" = xyes; then
22360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22361 $as_echo_n "checking linker --demangle support... " >&6; }
22362   gcc_cv_ld_demangle=no
22363   if test $in_tree_ld = yes; then
22364     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 \
22365       gcc_cv_ld_demangle=yes
22366     fi
22367   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22368     # Check if the GNU linker supports --demangle option
22369     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22370       gcc_cv_ld_demangle=yes
22371     fi
22372   fi
22373   if test x"$gcc_cv_ld_demangle" = xyes; then
22374
22375 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22376
22377   fi
22378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22379 $as_echo "$gcc_cv_ld_demangle" >&6; }
22380 fi
22381
22382 case "$target" in
22383   # All TARGET_ABI_OSF targets.
22384   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22386 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22387 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22388   $as_echo_n "(cached) " >&6
22389 else
22390   gcc_cv_as_alpha_explicit_relocs=no
22391     if test $in_tree_gas = yes; then
22392     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22393   then gcc_cv_as_alpha_explicit_relocs=yes
22394 fi
22395   elif test x$gcc_cv_as != x; then
22396     echo '      .set nomacro
22397         .text
22398         extbl   $3, $2, $3      !lituse_bytoff!1
22399         ldq     $2, a($29)      !literal!1
22400         ldq     $4, b($29)      !literal!2
22401         ldq_u   $3, 0($2)       !lituse_base!1
22402         ldq     $27, f($29)     !literal!5
22403         jsr     $26, ($27), f   !lituse_jsr!5
22404         ldah    $29, 0($26)     !gpdisp!3
22405         lda     $0, c($29)      !gprel
22406         ldah    $1, d($29)      !gprelhigh
22407         lda     $1, d($1)       !gprellow
22408         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22409     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22410   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22411   (eval $ac_try) 2>&5
22412   ac_status=$?
22413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22414   test $ac_status = 0; }; }
22415     then
22416         gcc_cv_as_alpha_explicit_relocs=yes
22417     else
22418       echo "configure: failed program was" >&5
22419       cat conftest.s >&5
22420     fi
22421     rm -f conftest.o conftest.s
22422   fi
22423 fi
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22425 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22426 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22427
22428 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22429
22430 fi
22431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22432 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22433 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22434   $as_echo_n "(cached) " >&6
22435 else
22436   gcc_cv_as_alpha_jsrdirect_relocs=no
22437     if test $in_tree_gas = yes; then
22438     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22439   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22440 fi
22441   elif test x$gcc_cv_as != x; then
22442     echo '      .set nomacro
22443         .text
22444         ldq     $27, a($29)     !literal!1
22445         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22446     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22447   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22448   (eval $ac_try) 2>&5
22449   ac_status=$?
22450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22451   test $ac_status = 0; }; }
22452     then
22453         gcc_cv_as_alpha_jsrdirect_relocs=yes
22454     else
22455       echo "configure: failed program was" >&5
22456       cat conftest.s >&5
22457     fi
22458     rm -f conftest.o conftest.s
22459   fi
22460 fi
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22462 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22463 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22464
22465 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22466
22467 fi
22468     ;;
22469
22470   cris-*-*)
22471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22472 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22473 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22474   $as_echo_n "(cached) " >&6
22475 else
22476   gcc_cv_as_cris_no_mul_bug=no
22477     if test $in_tree_gas = yes; then
22478     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22479   then gcc_cv_as_cris_no_mul_bug=yes
22480 fi
22481   elif test x$gcc_cv_as != x; then
22482     echo '.text' > conftest.s
22483     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22484   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22485   (eval $ac_try) 2>&5
22486   ac_status=$?
22487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22488   test $ac_status = 0; }; }
22489     then
22490         gcc_cv_as_cris_no_mul_bug=yes
22491     else
22492       echo "configure: failed program was" >&5
22493       cat conftest.s >&5
22494     fi
22495     rm -f conftest.o conftest.s
22496   fi
22497 fi
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22499 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22500 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22501
22502 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22503
22504 fi
22505     ;;
22506
22507   sparc*-*-*)
22508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22509 $as_echo_n "checking assembler for .register... " >&6; }
22510 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22511   $as_echo_n "(cached) " >&6
22512 else
22513   gcc_cv_as_sparc_register_op=no
22514   if test x$gcc_cv_as != x; then
22515     echo '.register %g2, #scratch' > conftest.s
22516     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22517   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22518   (eval $ac_try) 2>&5
22519   ac_status=$?
22520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22521   test $ac_status = 0; }; }
22522     then
22523         gcc_cv_as_sparc_register_op=yes
22524     else
22525       echo "configure: failed program was" >&5
22526       cat conftest.s >&5
22527     fi
22528     rm -f conftest.o conftest.s
22529   fi
22530 fi
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22532 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22533 if test $gcc_cv_as_sparc_register_op = yes; then
22534
22535 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22536
22537 fi
22538
22539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22540 $as_echo_n "checking assembler for -relax option... " >&6; }
22541 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22542   $as_echo_n "(cached) " >&6
22543 else
22544   gcc_cv_as_sparc_relax=no
22545   if test x$gcc_cv_as != x; then
22546     echo '.text' > conftest.s
22547     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22548   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22549   (eval $ac_try) 2>&5
22550   ac_status=$?
22551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552   test $ac_status = 0; }; }
22553     then
22554         gcc_cv_as_sparc_relax=yes
22555     else
22556       echo "configure: failed program was" >&5
22557       cat conftest.s >&5
22558     fi
22559     rm -f conftest.o conftest.s
22560   fi
22561 fi
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22563 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22564 if test $gcc_cv_as_sparc_relax = yes; then
22565
22566 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22567
22568 fi
22569
22570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22571 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22572 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22573   $as_echo_n "(cached) " >&6
22574 else
22575   gcc_cv_as_sparc_ua_pcrel=no
22576   if test x$gcc_cv_as != x; then
22577     echo '.text
22578 foo:
22579         nop
22580 .data
22581 .align 4
22582 .byte 0
22583 .uaword %r_disp32(foo)' > conftest.s
22584     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22585   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22586   (eval $ac_try) 2>&5
22587   ac_status=$?
22588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22589   test $ac_status = 0; }; }
22590     then
22591         if test x$gcc_cv_ld != x \
22592        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22593          gcc_cv_as_sparc_ua_pcrel=yes
22594        fi
22595        rm -f conftest
22596     else
22597       echo "configure: failed program was" >&5
22598       cat conftest.s >&5
22599     fi
22600     rm -f conftest.o conftest.s
22601   fi
22602 fi
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22604 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22605 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22606
22607 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22608
22609
22610       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22611 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22612 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22613   $as_echo_n "(cached) " >&6
22614 else
22615   gcc_cv_as_sparc_ua_pcrel_hidden=no
22616   if test x$gcc_cv_as != x; then
22617     echo '.data
22618 .align 4
22619 .byte 0x31
22620 .uaword %r_disp32(foo)
22621 .byte 0x32, 0x33, 0x34
22622 .global foo
22623 .hidden foo
22624 foo:
22625 .skip 4' > conftest.s
22626     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22627   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22628   (eval $ac_try) 2>&5
22629   ac_status=$?
22630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22631   test $ac_status = 0; }; }
22632     then
22633         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22634          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22635          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22636             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22637             if $gcc_cv_objdump -R conftest 2> /dev/null \
22638                | grep 'DISP32' > /dev/null 2>&1; then
22639                 :
22640             else
22641                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22642             fi
22643          fi
22644          rm -f conftest
22645     else
22646       echo "configure: failed program was" >&5
22647       cat conftest.s >&5
22648     fi
22649     rm -f conftest.o conftest.s
22650   fi
22651 fi
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22653 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22654 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22655
22656 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22657
22658 fi
22659
22660 fi # unaligned pcrel relocs
22661
22662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22663 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22664 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22665   $as_echo_n "(cached) " >&6
22666 else
22667   gcc_cv_as_sparc_offsetable_lo10=no
22668   if test x$gcc_cv_as != x; then
22669     echo '.text
22670         or %g1, %lo(ab) + 12, %g1
22671         or %g1, %lo(ab + 12), %g1' > conftest.s
22672     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22673   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22674   (eval $ac_try) 2>&5
22675   ac_status=$?
22676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22677   test $ac_status = 0; }; }
22678     then
22679         if test x$gcc_cv_objdump != x \
22680        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22681           | grep ' 82106000 82106000' > /dev/null 2>&1; then
22682          gcc_cv_as_sparc_offsetable_lo10=yes
22683        fi
22684     else
22685       echo "configure: failed program was" >&5
22686       cat conftest.s >&5
22687     fi
22688     rm -f conftest.o conftest.s
22689   fi
22690 fi
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22692 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22693 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22694
22695 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22696
22697 fi
22698     ;;
22699
22700   i[34567]86-*-* | x86_64-*-*)
22701     case $target_os in
22702       cygwin*)
22703         # Full C++ conformance when using a shared libstdc++-v3 requires some
22704         # support from the Cygwin DLL, which in more recent versions exports
22705         # wrappers to aid in interposing and redirecting operators new, delete,
22706         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
22707         # are configuring for a version of Cygwin that exports the wrappers.
22708         if test x$host = x$target; then
22709           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22710 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22711   gcc_ac_cygwin_dll_wrappers=yes
22712 else
22713   gcc_ac_cygwin_dll_wrappers=no
22714 fi
22715
22716         else
22717           # Can't check presence of libc functions during cross-compile, so
22718           # we just have to assume we're building for an up-to-date target.
22719           gcc_ac_cygwin_dll_wrappers=yes
22720         fi
22721
22722 cat >>confdefs.h <<_ACEOF
22723 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22724 _ACEOF
22725
22726     esac
22727     case $target_os in
22728       cygwin* | pe | mingw32*)
22729         # Recent binutils allows the three-operand form of ".comm" on PE.  This
22730         # definition is used unconditionally to initialise the default state of
22731         # the target option variable that governs usage of the feature.
22732         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22733 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22734 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22735   $as_echo_n "(cached) " >&6
22736 else
22737   gcc_cv_as_comm_has_align=no
22738     if test $in_tree_gas = yes; then
22739     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22740   then gcc_cv_as_comm_has_align=yes
22741 fi
22742   elif test x$gcc_cv_as != x; then
22743     echo '.comm foo,1,32' > conftest.s
22744     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22745   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22746   (eval $ac_try) 2>&5
22747   ac_status=$?
22748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22749   test $ac_status = 0; }; }
22750     then
22751         gcc_cv_as_comm_has_align=yes
22752     else
22753       echo "configure: failed program was" >&5
22754       cat conftest.s >&5
22755     fi
22756     rm -f conftest.o conftest.s
22757   fi
22758 fi
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22760 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22761
22762
22763 cat >>confdefs.h <<_ACEOF
22764 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22765 _ACEOF
22766
22767         # Used for DWARF 2 in PE
22768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22769 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22770 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22771   $as_echo_n "(cached) " >&6
22772 else
22773   gcc_cv_as_ix86_pe_secrel32=no
22774     if test $in_tree_gas = yes; then
22775     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22776   then gcc_cv_as_ix86_pe_secrel32=yes
22777 fi
22778   elif test x$gcc_cv_as != x; then
22779     echo '.text
22780 foo:    nop
22781 .data
22782         .secrel32 foo' > conftest.s
22783     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22784   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22785   (eval $ac_try) 2>&5
22786   ac_status=$?
22787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22788   test $ac_status = 0; }; }
22789     then
22790         if test x$gcc_cv_ld != x \
22791            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22792              gcc_cv_as_ix86_pe_secrel32=yes
22793            fi
22794            rm -f conftest
22795     else
22796       echo "configure: failed program was" >&5
22797       cat conftest.s >&5
22798     fi
22799     rm -f conftest.o conftest.s
22800   fi
22801 fi
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22803 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22804 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22805
22806 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22807
22808 fi
22809         ;;
22810     esac
22811
22812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22813 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22814 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22815   $as_echo_n "(cached) " >&6
22816 else
22817   gcc_cv_as_ix86_filds=no
22818   if test x$gcc_cv_as != x; then
22819     echo 'filds mem; fists mem' > conftest.s
22820     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22821   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22825   test $ac_status = 0; }; }
22826     then
22827         gcc_cv_as_ix86_filds=yes
22828     else
22829       echo "configure: failed program was" >&5
22830       cat conftest.s >&5
22831     fi
22832     rm -f conftest.o conftest.s
22833   fi
22834 fi
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22836 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22837 if test $gcc_cv_as_ix86_filds = yes; then
22838
22839 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22840
22841 fi
22842
22843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22844 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22845 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22846   $as_echo_n "(cached) " >&6
22847 else
22848   gcc_cv_as_ix86_fildq=no
22849   if test x$gcc_cv_as != x; then
22850     echo 'fildq mem; fistpq mem' > conftest.s
22851     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22852   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22853   (eval $ac_try) 2>&5
22854   ac_status=$?
22855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22856   test $ac_status = 0; }; }
22857     then
22858         gcc_cv_as_ix86_fildq=yes
22859     else
22860       echo "configure: failed program was" >&5
22861       cat conftest.s >&5
22862     fi
22863     rm -f conftest.o conftest.s
22864   fi
22865 fi
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22867 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22868 if test $gcc_cv_as_ix86_fildq = yes; then
22869
22870 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22871
22872 fi
22873
22874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22875 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22876 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22877   $as_echo_n "(cached) " >&6
22878 else
22879   gcc_cv_as_ix86_cmov_sun_syntax=no
22880   if test x$gcc_cv_as != x; then
22881     echo 'cmovl.l %edx, %eax' > conftest.s
22882     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22883   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22884   (eval $ac_try) 2>&5
22885   ac_status=$?
22886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22887   test $ac_status = 0; }; }
22888     then
22889         gcc_cv_as_ix86_cmov_sun_syntax=yes
22890     else
22891       echo "configure: failed program was" >&5
22892       cat conftest.s >&5
22893     fi
22894     rm -f conftest.o conftest.s
22895   fi
22896 fi
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22898 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22899 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22900
22901 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22902
22903 fi
22904
22905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22906 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22907 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22908   $as_echo_n "(cached) " >&6
22909 else
22910   gcc_cv_as_ix86_ffreep=no
22911   if test x$gcc_cv_as != x; then
22912     echo 'ffreep %st(1)' > conftest.s
22913     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22914   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22915   (eval $ac_try) 2>&5
22916   ac_status=$?
22917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22918   test $ac_status = 0; }; }
22919     then
22920         gcc_cv_as_ix86_ffreep=yes
22921     else
22922       echo "configure: failed program was" >&5
22923       cat conftest.s >&5
22924     fi
22925     rm -f conftest.o conftest.s
22926   fi
22927 fi
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22929 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22930 if test $gcc_cv_as_ix86_ffreep = yes; then
22931
22932 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22933
22934 fi
22935
22936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22937 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22938 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22939   $as_echo_n "(cached) " >&6
22940 else
22941   gcc_cv_as_ix86_sahf=no
22942   if test x$gcc_cv_as != x; then
22943     echo 'sahf' > conftest.s
22944     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22945   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22946   (eval $ac_try) 2>&5
22947   ac_status=$?
22948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22949   test $ac_status = 0; }; }
22950     then
22951         gcc_cv_as_ix86_sahf=yes
22952     else
22953       echo "configure: failed program was" >&5
22954       cat conftest.s >&5
22955     fi
22956     rm -f conftest.o conftest.s
22957   fi
22958 fi
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22960 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22961 if test $gcc_cv_as_ix86_sahf = yes; then
22962
22963 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22964
22965 fi
22966
22967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
22968 $as_echo_n "checking assembler for swap suffix... " >&6; }
22969 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
22970   $as_echo_n "(cached) " >&6
22971 else
22972   gcc_cv_as_ix86_swap=no
22973   if test x$gcc_cv_as != x; then
22974     echo 'movl.s %esp, %ebp' > conftest.s
22975     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22976   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22977   (eval $ac_try) 2>&5
22978   ac_status=$?
22979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22980   test $ac_status = 0; }; }
22981     then
22982         gcc_cv_as_ix86_swap=yes
22983     else
22984       echo "configure: failed program was" >&5
22985       cat conftest.s >&5
22986     fi
22987     rm -f conftest.o conftest.s
22988   fi
22989 fi
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
22991 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
22992 if test $gcc_cv_as_ix86_swap = yes; then
22993
22994 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
22995
22996 fi
22997
22998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22999 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23000 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23001   $as_echo_n "(cached) " >&6
23002 else
23003   gcc_cv_as_ix86_diff_sect_delta=no
23004   if test x$gcc_cv_as != x; then
23005     echo '.section .rodata
23006 .L1:
23007         .long .L2-.L1
23008         .long .L3-.L1
23009         .text
23010 .L3:    nop
23011 .L2:    nop' > conftest.s
23012     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23013   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23014   (eval $ac_try) 2>&5
23015   ac_status=$?
23016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23017   test $ac_status = 0; }; }
23018     then
23019         gcc_cv_as_ix86_diff_sect_delta=yes
23020     else
23021       echo "configure: failed program was" >&5
23022       cat conftest.s >&5
23023     fi
23024     rm -f conftest.o conftest.s
23025   fi
23026 fi
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23028 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23029 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23030
23031 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23032
23033 fi
23034
23035     # This one is used unconditionally by i386.[ch]; it is to be defined
23036     # to 1 if the feature is present, 0 otherwise.
23037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23038 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23039 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23040   $as_echo_n "(cached) " >&6
23041 else
23042   gcc_cv_as_ix86_gotoff_in_data=no
23043     if test $in_tree_gas = yes; then
23044     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23045   then gcc_cv_as_ix86_gotoff_in_data=yes
23046 fi
23047   elif test x$gcc_cv_as != x; then
23048     echo '      .text
23049 .L0:
23050         nop
23051         .data
23052         .long .L0@GOTOFF' > conftest.s
23053     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23054   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23055   (eval $ac_try) 2>&5
23056   ac_status=$?
23057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23058   test $ac_status = 0; }; }
23059     then
23060         gcc_cv_as_ix86_gotoff_in_data=yes
23061     else
23062       echo "configure: failed program was" >&5
23063       cat conftest.s >&5
23064     fi
23065     rm -f conftest.o conftest.s
23066   fi
23067 fi
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23069 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23070
23071
23072 cat >>confdefs.h <<_ACEOF
23073 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23074 _ACEOF
23075
23076     ;;
23077
23078   ia64*-*-*)
23079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23080 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23081 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23082   $as_echo_n "(cached) " >&6
23083 else
23084   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23085     if test $in_tree_gas = yes; then
23086     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23087   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23088 fi
23089   elif test x$gcc_cv_as != x; then
23090     echo '      .text
23091         addl r15 = @ltoffx(x#), gp
23092         ;;
23093         ld8.mov r16 = [r15], x#' > conftest.s
23094     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23095   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23096   (eval $ac_try) 2>&5
23097   ac_status=$?
23098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23099   test $ac_status = 0; }; }
23100     then
23101         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23102     else
23103       echo "configure: failed program was" >&5
23104       cat conftest.s >&5
23105     fi
23106     rm -f conftest.o conftest.s
23107   fi
23108 fi
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23110 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23111 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23112
23113 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23114
23115 fi
23116
23117     ;;
23118
23119   powerpc*-*-*)
23120     case $target in
23121       *-*-aix*) conftest_s='    .machine "pwr5"
23122         .csect .text[PR]
23123         mfcr 3,128';;
23124       *-*-darwin*)
23125         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23126 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23127 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23128   $as_echo_n "(cached) " >&6
23129 else
23130   gcc_cv_as_machine_directive=no
23131   if test x$gcc_cv_as != x; then
23132     echo '      .machine ppc7400' > conftest.s
23133     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23134   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23135   (eval $ac_try) 2>&5
23136   ac_status=$?
23137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23138   test $ac_status = 0; }; }
23139     then
23140         gcc_cv_as_machine_directive=yes
23141     else
23142       echo "configure: failed program was" >&5
23143       cat conftest.s >&5
23144     fi
23145     rm -f conftest.o conftest.s
23146   fi
23147 fi
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23149 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23150
23151         if test x$gcc_cv_as_machine_directive != xyes; then
23152           echo "*** This target requires an assembler supporting \".machine\"" >&2
23153           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23154           test x$build = x$target && exit 1
23155         fi
23156         conftest_s='    .text
23157         mfcr r3,128';;
23158       *) conftest_s='   .machine power4
23159         .text
23160         mfcr 3,128';;
23161     esac
23162
23163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23164 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23165 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23166   $as_echo_n "(cached) " >&6
23167 else
23168   gcc_cv_as_powerpc_mfcrf=no
23169     if test $in_tree_gas = yes; then
23170     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23171   then gcc_cv_as_powerpc_mfcrf=yes
23172 fi
23173   elif test x$gcc_cv_as != x; then
23174     echo "$conftest_s" > conftest.s
23175     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23176   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23177   (eval $ac_try) 2>&5
23178   ac_status=$?
23179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23180   test $ac_status = 0; }; }
23181     then
23182         gcc_cv_as_powerpc_mfcrf=yes
23183     else
23184       echo "configure: failed program was" >&5
23185       cat conftest.s >&5
23186     fi
23187     rm -f conftest.o conftest.s
23188   fi
23189 fi
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23191 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23192 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23193
23194 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23195
23196 fi
23197
23198     case $target in
23199       *-*-aix*) conftest_s='    .machine "pwr5"
23200         .csect .text[PR]
23201         popcntb 3,3';;
23202       *) conftest_s='   .machine power5
23203         .text
23204         popcntb 3,3';;
23205     esac
23206
23207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23208 $as_echo_n "checking assembler for popcntb support... " >&6; }
23209 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23210   $as_echo_n "(cached) " >&6
23211 else
23212   gcc_cv_as_powerpc_popcntb=no
23213     if test $in_tree_gas = yes; then
23214     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23215   then gcc_cv_as_powerpc_popcntb=yes
23216 fi
23217   elif test x$gcc_cv_as != x; then
23218     echo "$conftest_s" > conftest.s
23219     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23220   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23221   (eval $ac_try) 2>&5
23222   ac_status=$?
23223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23224   test $ac_status = 0; }; }
23225     then
23226         gcc_cv_as_powerpc_popcntb=yes
23227     else
23228       echo "configure: failed program was" >&5
23229       cat conftest.s >&5
23230     fi
23231     rm -f conftest.o conftest.s
23232   fi
23233 fi
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23235 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23236 if test $gcc_cv_as_powerpc_popcntb = yes; then
23237
23238 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23239
23240 fi
23241
23242     case $target in
23243       *-*-aix*) conftest_s='    .machine "pwr5x"
23244         .csect .text[PR]
23245         frin 1,1';;
23246       *) conftest_s='   .machine power5
23247         .text
23248         frin 1,1';;
23249     esac
23250
23251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23252 $as_echo_n "checking assembler for fp round support... " >&6; }
23253 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23254   $as_echo_n "(cached) " >&6
23255 else
23256   gcc_cv_as_powerpc_fprnd=no
23257     if test $in_tree_gas = yes; then
23258     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23259   then gcc_cv_as_powerpc_fprnd=yes
23260 fi
23261   elif test x$gcc_cv_as != x; then
23262     echo "$conftest_s" > conftest.s
23263     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23264   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23265   (eval $ac_try) 2>&5
23266   ac_status=$?
23267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23268   test $ac_status = 0; }; }
23269     then
23270         gcc_cv_as_powerpc_fprnd=yes
23271     else
23272       echo "configure: failed program was" >&5
23273       cat conftest.s >&5
23274     fi
23275     rm -f conftest.o conftest.s
23276   fi
23277 fi
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23279 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23280 if test $gcc_cv_as_powerpc_fprnd = yes; then
23281
23282 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23283
23284 fi
23285
23286     case $target in
23287       *-*-aix*) conftest_s='    .machine "pwr6"
23288         .csect .text[PR]
23289         mffgpr 1,3';;
23290       *) conftest_s='   .machine power6
23291         .text
23292         mffgpr 1,3';;
23293     esac
23294
23295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23296 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23297 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23298   $as_echo_n "(cached) " >&6
23299 else
23300   gcc_cv_as_powerpc_mfpgpr=no
23301     if test $in_tree_gas = yes; then
23302     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23303   then gcc_cv_as_powerpc_mfpgpr=yes
23304 fi
23305   elif test x$gcc_cv_as != x; then
23306     echo "$conftest_s" > conftest.s
23307     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23308   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23309   (eval $ac_try) 2>&5
23310   ac_status=$?
23311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23312   test $ac_status = 0; }; }
23313     then
23314         gcc_cv_as_powerpc_mfpgpr=yes
23315     else
23316       echo "configure: failed program was" >&5
23317       cat conftest.s >&5
23318     fi
23319     rm -f conftest.o conftest.s
23320   fi
23321 fi
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23323 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23324 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23325
23326 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23327
23328 fi
23329
23330     case $target in
23331       *-*-aix*) conftest_s='    .csect .text[PR]
23332 LCF..0:
23333         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23334       *-*-darwin*)
23335         conftest_s='    .text
23336 LCF0:
23337         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23338       *) conftest_s='   .text
23339 .LCF0:
23340         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23341     esac
23342
23343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23344 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23345 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23346   $as_echo_n "(cached) " >&6
23347 else
23348   gcc_cv_as_powerpc_rel16=no
23349     if test $in_tree_gas = yes; then
23350     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23351   then gcc_cv_as_powerpc_rel16=yes
23352 fi
23353   elif test x$gcc_cv_as != x; then
23354     echo "$conftest_s" > conftest.s
23355     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23356   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23357   (eval $ac_try) 2>&5
23358   ac_status=$?
23359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23360   test $ac_status = 0; }; }
23361     then
23362         gcc_cv_as_powerpc_rel16=yes
23363     else
23364       echo "configure: failed program was" >&5
23365       cat conftest.s >&5
23366     fi
23367     rm -f conftest.o conftest.s
23368   fi
23369 fi
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23371 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23372 if test $gcc_cv_as_powerpc_rel16 = yes; then
23373
23374 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23375
23376 fi
23377
23378     case $target in
23379       *-*-aix*) conftest_s='    .machine "pwr6"
23380         .csect .text[PR]
23381         cmpb 3,4,5';;
23382       *) conftest_s='   .machine power6
23383         .text
23384         cmpb 3,4,5';;
23385     esac
23386
23387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23388 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23389 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23390   $as_echo_n "(cached) " >&6
23391 else
23392   gcc_cv_as_powerpc_cmpb=no
23393     if test $in_tree_gas = yes; then
23394     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23395   then gcc_cv_as_powerpc_cmpb=yes
23396 fi
23397   elif test x$gcc_cv_as != x; then
23398     echo "$conftest_s" > conftest.s
23399     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23400   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23401   (eval $ac_try) 2>&5
23402   ac_status=$?
23403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23404   test $ac_status = 0; }; }
23405     then
23406         gcc_cv_as_powerpc_cmpb=yes
23407     else
23408       echo "configure: failed program was" >&5
23409       cat conftest.s >&5
23410     fi
23411     rm -f conftest.o conftest.s
23412   fi
23413 fi
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23415 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23416 if test $gcc_cv_as_powerpc_cmpb = yes; then
23417
23418 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23419
23420 fi
23421
23422     case $target in
23423       *-*-aix*) conftest_s='    .machine "pwr6"
23424         .csect .text[PR]
23425         dadd 1,2,3';;
23426       *) conftest_s='   .machine power6
23427         .text
23428         dadd 1,2,3';;
23429     esac
23430
23431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23432 $as_echo_n "checking assembler for decimal float support... " >&6; }
23433 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23434   $as_echo_n "(cached) " >&6
23435 else
23436   gcc_cv_as_powerpc_dfp=no
23437     if test $in_tree_gas = yes; then
23438     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23439   then gcc_cv_as_powerpc_dfp=yes
23440 fi
23441   elif test x$gcc_cv_as != x; then
23442     echo "$conftest_s" > conftest.s
23443     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23444   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23445   (eval $ac_try) 2>&5
23446   ac_status=$?
23447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23448   test $ac_status = 0; }; }
23449     then
23450         gcc_cv_as_powerpc_dfp=yes
23451     else
23452       echo "configure: failed program was" >&5
23453       cat conftest.s >&5
23454     fi
23455     rm -f conftest.o conftest.s
23456   fi
23457 fi
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23459 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23460 if test $gcc_cv_as_powerpc_dfp = yes; then
23461
23462 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23463
23464 fi
23465
23466     case $target in
23467       *-*-aix*) conftest_s='    .machine "pwr7"
23468         .csect .text[PR]
23469         lxvd2x 1,2,3';;
23470       *) conftest_s='   .machine power7
23471         .text
23472         lxvd2x 1,2,3';;
23473     esac
23474
23475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23476 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23477 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23478   $as_echo_n "(cached) " >&6
23479 else
23480   gcc_cv_as_powerpc_vsx=no
23481     if test $in_tree_gas = yes; then
23482     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23483   then gcc_cv_as_powerpc_vsx=yes
23484 fi
23485   elif test x$gcc_cv_as != x; then
23486     echo "$conftest_s" > conftest.s
23487     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23488   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23489   (eval $ac_try) 2>&5
23490   ac_status=$?
23491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23492   test $ac_status = 0; }; }
23493     then
23494         gcc_cv_as_powerpc_vsx=yes
23495     else
23496       echo "configure: failed program was" >&5
23497       cat conftest.s >&5
23498     fi
23499     rm -f conftest.o conftest.s
23500   fi
23501 fi
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23503 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23504 if test $gcc_cv_as_powerpc_vsx = yes; then
23505
23506 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23507
23508 fi
23509
23510     case $target in
23511       *-*-aix*) conftest_s='    .machine "pwr7"
23512         .csect .text[PR]
23513         popcntd 3,3';;
23514       *) conftest_s='   .machine power7
23515         .text
23516         popcntd 3,3';;
23517     esac
23518
23519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23520 $as_echo_n "checking assembler for popcntd support... " >&6; }
23521 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23522   $as_echo_n "(cached) " >&6
23523 else
23524   gcc_cv_as_powerpc_popcntd=no
23525     if test $in_tree_gas = yes; then
23526     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23527   then gcc_cv_as_powerpc_popcntd=yes
23528 fi
23529   elif test x$gcc_cv_as != x; then
23530     echo "$conftest_s" > conftest.s
23531     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23532   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23533   (eval $ac_try) 2>&5
23534   ac_status=$?
23535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23536   test $ac_status = 0; }; }
23537     then
23538         gcc_cv_as_powerpc_popcntd=yes
23539     else
23540       echo "configure: failed program was" >&5
23541       cat conftest.s >&5
23542     fi
23543     rm -f conftest.o conftest.s
23544   fi
23545 fi
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23547 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23548 if test $gcc_cv_as_powerpc_popcntd = yes; then
23549
23550 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23551
23552 fi
23553
23554     case $target in
23555       *-*-aix*) conftest_s='    .csect .text[PR]
23556         lwsync';;
23557       *) conftest_s='   .text
23558         lwsync';;
23559     esac
23560
23561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23562 $as_echo_n "checking assembler for lwsync support... " >&6; }
23563 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23564   $as_echo_n "(cached) " >&6
23565 else
23566   gcc_cv_as_powerpc_lwsync=no
23567     if test $in_tree_gas = yes; then
23568     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23569   then gcc_cv_as_powerpc_lwsync=yes
23570 fi
23571   elif test x$gcc_cv_as != x; then
23572     echo "$conftest_s" > conftest.s
23573     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23574   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23575   (eval $ac_try) 2>&5
23576   ac_status=$?
23577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23578   test $ac_status = 0; }; }
23579     then
23580         gcc_cv_as_powerpc_lwsync=yes
23581     else
23582       echo "configure: failed program was" >&5
23583       cat conftest.s >&5
23584     fi
23585     rm -f conftest.o conftest.s
23586   fi
23587 fi
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23589 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23590 if test $gcc_cv_as_powerpc_lwsync = yes; then
23591
23592 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23593
23594 fi
23595
23596     case $target in
23597       *-*-aix*) conftest_s='    .machine "476"
23598         .csect .text[PR]
23599         dci 0';;
23600       *) conftest_s='   .machine "476"
23601         .text
23602         dci 0';;
23603     esac
23604
23605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23606 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23607 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23608   $as_echo_n "(cached) " >&6
23609 else
23610   gcc_cv_as_powerpc_dci=no
23611     if test $in_tree_gas = yes; then
23612     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23613   then gcc_cv_as_powerpc_dci=yes
23614 fi
23615   elif test x$gcc_cv_as != x; then
23616     echo "$conftest_s" > conftest.s
23617     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23618   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23619   (eval $ac_try) 2>&5
23620   ac_status=$?
23621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23622   test $ac_status = 0; }; }
23623     then
23624         gcc_cv_as_powerpc_dci=yes
23625     else
23626       echo "configure: failed program was" >&5
23627       cat conftest.s >&5
23628     fi
23629     rm -f conftest.o conftest.s
23630   fi
23631 fi
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23633 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23634 if test $gcc_cv_as_powerpc_dci = yes; then
23635
23636 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23637
23638 fi
23639
23640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23641 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23642 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23643   $as_echo_n "(cached) " >&6
23644 else
23645   gcc_cv_as_powerpc_gnu_attribute=no
23646     if test $in_tree_gas = yes; then
23647     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23648   then gcc_cv_as_powerpc_gnu_attribute=yes
23649 fi
23650   elif test x$gcc_cv_as != x; then
23651     echo '.gnu_attribute 4,1' > conftest.s
23652     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23653   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23654   (eval $ac_try) 2>&5
23655   ac_status=$?
23656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23657   test $ac_status = 0; }; }
23658     then
23659         gcc_cv_as_powerpc_gnu_attribute=yes
23660     else
23661       echo "configure: failed program was" >&5
23662       cat conftest.s >&5
23663     fi
23664     rm -f conftest.o conftest.s
23665   fi
23666 fi
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23668 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23669 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23670
23671 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23672
23673 fi
23674
23675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23676 $as_echo_n "checking assembler for tls marker support... " >&6; }
23677 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23678   $as_echo_n "(cached) " >&6
23679 else
23680   gcc_cv_as_powerpc_tls_markers=no
23681     if test $in_tree_gas = yes; then
23682     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23683   then gcc_cv_as_powerpc_tls_markers=yes
23684 fi
23685   elif test x$gcc_cv_as != x; then
23686     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23687     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23688   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23689   (eval $ac_try) 2>&5
23690   ac_status=$?
23691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23692   test $ac_status = 0; }; }
23693     then
23694         gcc_cv_as_powerpc_tls_markers=yes
23695     else
23696       echo "configure: failed program was" >&5
23697       cat conftest.s >&5
23698     fi
23699     rm -f conftest.o conftest.s
23700   fi
23701 fi
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23703 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23704 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23705
23706 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23707
23708 fi
23709     ;;
23710
23711   mips*-*-*)
23712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23713 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23714 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23715   $as_echo_n "(cached) " >&6
23716 else
23717   gcc_cv_as_mips_explicit_relocs=no
23718     if test $in_tree_gas = yes; then
23719     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23720   then gcc_cv_as_mips_explicit_relocs=yes
23721 fi
23722   elif test x$gcc_cv_as != x; then
23723     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
23724     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23725   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23726   (eval $ac_try) 2>&5
23727   ac_status=$?
23728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23729   test $ac_status = 0; }; }
23730     then
23731         gcc_cv_as_mips_explicit_relocs=yes
23732     else
23733       echo "configure: failed program was" >&5
23734       cat conftest.s >&5
23735     fi
23736     rm -f conftest.o conftest.s
23737   fi
23738 fi
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23740 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23741 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23742   if test x$target_cpu_default = x
23743        then target_cpu_default=MASK_EXPLICIT_RELOCS
23744        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23745        fi
23746 fi
23747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23748 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23749 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23750   $as_echo_n "(cached) " >&6
23751 else
23752   gcc_cv_as_mips_no_shared=no
23753     if test $in_tree_gas = yes; then
23754     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23755   then gcc_cv_as_mips_no_shared=yes
23756 fi
23757   elif test x$gcc_cv_as != x; then
23758     echo 'nop' > conftest.s
23759     if { ac_try='$gcc_cv_as -mno-shared -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_mips_no_shared=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_mips_no_shared" >&5
23775 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23776 if test $gcc_cv_as_mips_no_shared = yes; then
23777
23778 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23779
23780 fi
23781
23782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23783 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23784 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23785   $as_echo_n "(cached) " >&6
23786 else
23787   gcc_cv_as_mips_gnu_attribute=no
23788     if test $in_tree_gas = yes; then
23789     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23790   then gcc_cv_as_mips_gnu_attribute=yes
23791 fi
23792   elif test x$gcc_cv_as != x; then
23793     echo '.gnu_attribute 4,1' > conftest.s
23794     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23795   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23796   (eval $ac_try) 2>&5
23797   ac_status=$?
23798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23799   test $ac_status = 0; }; }
23800     then
23801         gcc_cv_as_mips_gnu_attribute=yes
23802     else
23803       echo "configure: failed program was" >&5
23804       cat conftest.s >&5
23805     fi
23806     rm -f conftest.o conftest.s
23807   fi
23808 fi
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23810 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23811 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23812
23813 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23814
23815 fi
23816
23817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23818 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23819 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23820   $as_echo_n "(cached) " >&6
23821 else
23822   gcc_cv_as_mips_dtprelword=no
23823     if test $in_tree_gas = yes; then
23824     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23825   then gcc_cv_as_mips_dtprelword=yes
23826 fi
23827   elif test x$gcc_cv_as != x; then
23828     echo '.section .tdata,"awT",@progbits
23829 x:
23830         .word 2
23831         .text
23832         .dtprelword x+0x8000' > conftest.s
23833     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23834   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835   (eval $ac_try) 2>&5
23836   ac_status=$?
23837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838   test $ac_status = 0; }; }
23839     then
23840         gcc_cv_as_mips_dtprelword=yes
23841     else
23842       echo "configure: failed program was" >&5
23843       cat conftest.s >&5
23844     fi
23845     rm -f conftest.o conftest.s
23846   fi
23847 fi
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23849 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23850 if test $gcc_cv_as_mips_dtprelword = yes; then
23851
23852 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23853
23854 fi
23855
23856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23857 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23858     gcc_cv_as_ld_jalr_reloc=no
23859     if test $gcc_cv_as_mips_explicit_relocs = yes; then
23860       if test $in_tree_ld = yes ; then
23861         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 \
23862            && test $in_tree_ld_is_elf = yes; then
23863           gcc_cv_as_ld_jalr_reloc=yes
23864         fi
23865       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23866         echo '  .ent x' > conftest.s
23867         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
23868         echo '  ld $25,%call16(y)($28)' >> conftest.s
23869         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
23870         echo '1:        jalr $25' >> conftest.s
23871         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
23872         echo '1:        jalr $25' >> conftest.s
23873         echo '  .end x' >> conftest.s
23874         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
23875            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
23876           if $gcc_cv_objdump -d conftest.so | grep -q jalr \
23877              && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
23878             gcc_cv_as_ld_jalr_reloc=yes
23879           fi
23880         fi
23881         rm -f conftest.*
23882       fi
23883     fi
23884     if test $gcc_cv_as_ld_jalr_reloc = yes; then
23885       if test x$target_cpu_default = x; then
23886         target_cpu_default=MASK_RELAX_PIC_CALLS
23887       else
23888         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
23889       fi
23890     fi
23891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
23892 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
23893
23894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
23895 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
23896 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
23897   $as_echo_n "(cached) " >&6
23898 else
23899   gcc_cv_ld_mips_personality_relaxation=no
23900        if test $in_tree_ld = yes ; then
23901          if test "$gcc_cv_gld_major_version" -eq 2 \
23902                  -a "$gcc_cv_gld_minor_version" -ge 21 \
23903                  -o "$gcc_cv_gld_major_version" -gt 2; then
23904            gcc_cv_ld_mips_personality_relaxation=yes
23905          fi
23906        elif test x$gcc_cv_as != x \
23907                  -a x$gcc_cv_ld != x \
23908                  -a x$gcc_cv_readelf != x ; then
23909          cat > conftest.s <<EOF
23910         .cfi_startproc
23911         .cfi_personality 0x80,indirect_ptr
23912         .ent test
23913 test:
23914         nop
23915         .end test
23916         .cfi_endproc
23917
23918         .section .data,"aw",@progbits
23919 indirect_ptr:
23920         .dc.a personality
23921 EOF
23922          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
23923             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
23924            if $gcc_cv_readelf -d conftest 2>&1 \
23925               | grep TEXTREL > /dev/null 2>&1; then
23926              :
23927            elif $gcc_cv_readelf --relocs conftest 2>&1 \
23928                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
23929              :
23930            else
23931              gcc_cv_ld_mips_personality_relaxation=yes
23932            fi
23933          fi
23934        fi
23935        rm -f conftest.s conftest.o conftest
23936 fi
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
23938 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
23939     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
23940
23941 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
23942
23943     fi
23944     ;;
23945 esac
23946
23947 # Mips and HP-UX need the GNU assembler.
23948 # Linux on IA64 might be able to use the Intel assembler.
23949
23950 case "$target" in
23951   mips*-*-* | *-*-hpux* )
23952     if test x$gas_flag = xyes \
23953        || test x"$host" != x"$build" \
23954        || test ! -x "$gcc_cv_as" \
23955        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23956       :
23957     else
23958       echo "*** This configuration requires the GNU assembler" >&2
23959       exit 1
23960     fi
23961     ;;
23962 esac
23963
23964 # ??? Not all targets support dwarf2 debug_line, even within a version
23965 # of gas.  Moreover, we need to emit a valid instruction to trigger any
23966 # info to the output file.  So, as supported targets are added to gas 2.11,
23967 # add some instruction here to (also) show we expect this might work.
23968 # ??? Once 2.11 is released, probably need to add first known working
23969 # version to the per-target configury.
23970 case "$target" in
23971   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23972   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23973   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23974   | spu-*-* | fido*-*-* | m32c-*-*)
23975     insn="nop"
23976     ;;
23977   ia64*-*-* | s390*-*-*)
23978     insn="nop 0"
23979     ;;
23980   mmix-*-*)
23981     insn="swym 0"
23982     ;;
23983 esac
23984 if test x"$insn" != x; then
23985  conftest_s="\
23986         .file 1 \"conftest.s\"
23987         .loc 1 3 0
23988         $insn"
23989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23990 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23991 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23992   $as_echo_n "(cached) " >&6
23993 else
23994   gcc_cv_as_dwarf2_debug_line=no
23995     if test $in_tree_gas = yes; then
23996     if test $in_tree_gas_is_elf = yes \
23997   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23998   then gcc_cv_as_dwarf2_debug_line=yes
23999 fi
24000   elif test x$gcc_cv_as != x; then
24001     echo "$conftest_s" > conftest.s
24002     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
24003   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24004   (eval $ac_try) 2>&5
24005   ac_status=$?
24006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007   test $ac_status = 0; }; }
24008     then
24009         if test x$gcc_cv_objdump != x \
24010    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24011       | grep debug_line > /dev/null 2>&1; then
24012      gcc_cv_as_dwarf2_debug_line=yes
24013    fi
24014     else
24015       echo "configure: failed program was" >&5
24016       cat conftest.s >&5
24017     fi
24018     rm -f conftest.o conftest.s
24019   fi
24020 fi
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24022 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24023
24024
24025 # The .debug_line file table must be in the exact order that
24026 # we specified the files, since these indices are also used
24027 # by DW_AT_decl_file.  Approximate this test by testing if
24028 # the assembler bitches if the same index is assigned twice.
24029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24030 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24031 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24032   $as_echo_n "(cached) " >&6
24033 else
24034   gcc_cv_as_dwarf2_file_buggy=no
24035   if test x$gcc_cv_as != x; then
24036     echo '      .file 1 "foo.s"
24037         .file 1 "bar.s"' > conftest.s
24038     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
24039   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24040   (eval $ac_try) 2>&5
24041   ac_status=$?
24042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24043   test $ac_status = 0; }; }
24044     then
24045         gcc_cv_as_dwarf2_file_buggy=yes
24046     else
24047       echo "configure: failed program was" >&5
24048       cat conftest.s >&5
24049     fi
24050     rm -f conftest.o conftest.s
24051   fi
24052 fi
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24054 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24055
24056
24057  if test $gcc_cv_as_dwarf2_debug_line = yes \
24058  && test $gcc_cv_as_dwarf2_file_buggy = no; then
24059
24060 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24061
24062  fi
24063
24064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24065 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24066 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24067   $as_echo_n "(cached) " >&6
24068 else
24069   gcc_cv_as_gdwarf2_flag=no
24070     if test $in_tree_gas = yes; then
24071     if test $in_tree_gas_is_elf = yes \
24072   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24073   then gcc_cv_as_gdwarf2_flag=yes
24074 fi
24075   elif test x$gcc_cv_as != x; then
24076     echo "$insn" > conftest.s
24077     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
24078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24079   (eval $ac_try) 2>&5
24080   ac_status=$?
24081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24082   test $ac_status = 0; }; }
24083     then
24084         gcc_cv_as_gdwarf2_flag=yes
24085     else
24086       echo "configure: failed program was" >&5
24087       cat conftest.s >&5
24088     fi
24089     rm -f conftest.o conftest.s
24090   fi
24091 fi
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24093 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24094 if test $gcc_cv_as_gdwarf2_flag = yes; then
24095
24096 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24097
24098 fi
24099
24100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24101 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24102 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24103   $as_echo_n "(cached) " >&6
24104 else
24105   gcc_cv_as_gstabs_flag=no
24106     if test $in_tree_gas = yes; then
24107     if test $in_tree_gas_is_elf = yes \
24108   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24109   then gcc_cv_as_gstabs_flag=yes
24110 fi
24111   elif test x$gcc_cv_as != x; then
24112     echo "$insn" > conftest.s
24113     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
24114   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24115   (eval $ac_try) 2>&5
24116   ac_status=$?
24117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24118   test $ac_status = 0; }; }
24119     then
24120         # The native Solaris 9/Intel assembler doesn't understand --gstabs
24121    # and warns about it, but still exits successfully.  So check for
24122    # this.
24123    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24124   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24125   (eval $ac_try) 2>&5
24126   ac_status=$?
24127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24128   test $ac_status = 0; }; }
24129    then :
24130    else gcc_cv_as_gstabs_flag=yes
24131    fi
24132     else
24133       echo "configure: failed program was" >&5
24134       cat conftest.s >&5
24135     fi
24136     rm -f conftest.o conftest.s
24137   fi
24138 fi
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24140 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24141 if test $gcc_cv_as_gstabs_flag = yes; then
24142
24143 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24144
24145 fi
24146
24147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24148 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24149 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24150   $as_echo_n "(cached) " >&6
24151 else
24152   gcc_cv_as_debug_prefix_map_flag=no
24153     if test $in_tree_gas = yes; then
24154     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24155   then gcc_cv_as_debug_prefix_map_flag=yes
24156 fi
24157   elif test x$gcc_cv_as != x; then
24158     echo "$insn" > conftest.s
24159     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24160   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24161   (eval $ac_try) 2>&5
24162   ac_status=$?
24163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24164   test $ac_status = 0; }; }
24165     then
24166         gcc_cv_as_debug_prefix_map_flag=yes
24167     else
24168       echo "configure: failed program was" >&5
24169       cat conftest.s >&5
24170     fi
24171     rm -f conftest.o conftest.s
24172   fi
24173 fi
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24175 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24176 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24177
24178 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24179
24180 fi
24181 fi
24182
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24184 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24185 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24186   $as_echo_n "(cached) " >&6
24187 else
24188   gcc_cv_as_lcomm_with_alignment=no
24189   if test x$gcc_cv_as != x; then
24190     echo '.lcomm bar,4,16' > conftest.s
24191     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
24192   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24193   (eval $ac_try) 2>&5
24194   ac_status=$?
24195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24196   test $ac_status = 0; }; }
24197     then
24198         gcc_cv_as_lcomm_with_alignment=yes
24199     else
24200       echo "configure: failed program was" >&5
24201       cat conftest.s >&5
24202     fi
24203     rm -f conftest.o conftest.s
24204   fi
24205 fi
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24207 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24208 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24209
24210 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24211
24212 fi
24213
24214 # Check whether --enable-gnu-unique-object was given.
24215 if test "${enable_gnu_unique_object+set}" = set; then :
24216   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24217     yes | no) ;;
24218     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24219 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24220   esac
24221 else
24222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24223 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24224 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24225   $as_echo_n "(cached) " >&6
24226 else
24227   gcc_cv_as_gnu_unique_object=no
24228     if test $in_tree_gas = yes; then
24229     if test $in_tree_gas_is_elf = yes \
24230   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24231   then gcc_cv_as_gnu_unique_object=yes
24232 fi
24233   elif test x$gcc_cv_as != x; then
24234     echo '.type foo, @gnu_unique_object' > conftest.s
24235     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
24236   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237   (eval $ac_try) 2>&5
24238   ac_status=$?
24239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240   test $ac_status = 0; }; }
24241     then
24242         gcc_cv_as_gnu_unique_object=yes
24243     else
24244       echo "configure: failed program was" >&5
24245       cat conftest.s >&5
24246     fi
24247     rm -f conftest.o conftest.s
24248   fi
24249 fi
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24251 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24252 if test $gcc_cv_as_gnu_unique_object = yes; then
24253   # Also check for ld.so support, i.e. glibc 2.11 or higher.
24254    if test x$host = x$build -a x$host = x$target &&
24255        glibcver=`ldd --version 2>/dev/null`; then
24256       glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
24257       glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
24258       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24259       if test "$glibcnum" -ge 2011 ; then
24260         enable_gnu_unique_object=yes
24261       fi
24262     fi
24263 fi
24264 fi
24265
24266 if test x$enable_gnu_unique_object = xyes; then
24267
24268 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24269
24270 fi
24271
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24273 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24274 if test "${gcc_cv_as_line_zero+set}" = set; then :
24275   $as_echo_n "(cached) " >&6
24276 else
24277   gcc_cv_as_line_zero=no
24278   if test $in_tree_gas = yes; then
24279     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24280   then gcc_cv_as_line_zero=yes
24281 fi
24282   elif test "x$gcc_cv_as" != x; then
24283     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24284     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24285   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24286   (eval $ac_try) 2>&5
24287   ac_status=$?
24288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24289   test $ac_status = 0; }; } &&
24290        test "x`cat conftest.out`" = x
24291     then
24292       gcc_cv_as_line_zero=yes
24293     else
24294       echo "configure: failed program was" >&5
24295       cat conftest.s >&5
24296       echo "configure: error output was" >&5
24297       cat conftest.out >&5
24298     fi
24299     rm -f conftest.o conftest.s conftest.out
24300   fi
24301 fi
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24303 $as_echo "$gcc_cv_as_line_zero" >&6; }
24304 if test "x$gcc_cv_as_line_zero" = xyes; then
24305
24306 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24307
24308 fi
24309
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24311 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24312 gcc_cv_ld_eh_frame_hdr=no
24313 if test $in_tree_ld = yes ; then
24314   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 \
24315      && test $in_tree_ld_is_elf = yes; then
24316     gcc_cv_ld_eh_frame_hdr=yes
24317   fi
24318 elif test x$gcc_cv_ld != x; then
24319         # Check if linker supports --eh-frame-hdr option
24320         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24321                 gcc_cv_ld_eh_frame_hdr=yes
24322         fi
24323 fi
24324
24325 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24326
24327 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24328
24329 fi
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24331 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24332
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24334 $as_echo_n "checking linker position independent executable support... " >&6; }
24335 gcc_cv_ld_pie=no
24336 if test $in_tree_ld = yes ; then
24337   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 \
24338      && test $in_tree_ld_is_elf = yes; then
24339     gcc_cv_ld_pie=yes
24340   fi
24341 elif test x$gcc_cv_ld != x; then
24342         # Check if linker supports -pie option
24343         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24344                 gcc_cv_ld_pie=yes
24345         fi
24346 fi
24347 if test x"$gcc_cv_ld_pie" = xyes; then
24348
24349 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24350
24351 fi
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24353 $as_echo "$gcc_cv_ld_pie" >&6; }
24354
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24356 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24357 gcc_cv_ld_eh_gc_sections=no
24358 if test $in_tree_ld = yes ; then
24359   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 \
24360      && test $in_tree_ld_is_elf = yes; then
24361     gcc_cv_ld_eh_gc_sections=yes
24362   fi
24363 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24364   cat > conftest.s <<EOF
24365         .section        .text
24366 .globl _start
24367         .type _start, @function
24368 _start:
24369         .long foo
24370         .size _start, .-_start
24371         .section        .text.foo,"ax",@progbits
24372         .type foo, @function
24373 foo:
24374         .long 0
24375         .size foo, .-foo
24376         .section        .gcc_except_table.foo,"a",@progbits
24377 .L0:
24378         .long 0
24379         .section        .eh_frame,"a",@progbits
24380         .long .L0
24381 EOF
24382   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24383     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24384          | grep "gc-sections option ignored" > /dev/null; then
24385       gcc_cv_ld_eh_gc_sections=no
24386     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24387       gcc_cv_ld_eh_gc_sections=yes
24388       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24389       if test x$gcc_cv_as_comdat_group != xyes; then
24390         gcc_cv_ld_eh_gc_sections=no
24391         cat > conftest.s <<EOF
24392         .section        .text
24393 .globl _start
24394         .type _start, @function
24395 _start:
24396         .long foo
24397         .size _start, .-_start
24398         .section        .gnu.linkonce.t.foo,"ax",@progbits
24399         .type foo, @function
24400 foo:
24401         .long 0
24402         .size foo, .-foo
24403         .section        .gcc_except_table.foo,"a",@progbits
24404 .L0:
24405         .long 0
24406         .section        .eh_frame,"a",@progbits
24407         .long .L0
24408 EOF
24409         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24410           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24411                | grep "gc-sections option ignored" > /dev/null; then
24412             gcc_cv_ld_eh_gc_sections=no
24413           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24414             gcc_cv_ld_eh_gc_sections=yes
24415           fi
24416         fi
24417       fi
24418     fi
24419   fi
24420   rm -f conftest.s conftest.o conftest
24421 fi
24422 case "$target" in
24423   hppa*-*-linux*)
24424     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24425     gcc_cv_ld_eh_gc_sections=no
24426     ;;
24427 esac
24428 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24429
24430 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24431
24432 fi
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24434 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24435
24436 # --------
24437 # UNSORTED
24438 # --------
24439
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24441 $as_echo_n "checking linker --as-needed support... " >&6; }
24442 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24443   $as_echo_n "(cached) " >&6
24444 else
24445   gcc_cv_ld_as_needed=no
24446 if test $in_tree_ld = yes ; then
24447   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 \
24448      && test $in_tree_ld_is_elf = yes; then
24449     gcc_cv_ld_as_needed=yes
24450   fi
24451 elif test x$gcc_cv_ld != x; then
24452         # Check if linker supports --as-needed and --no-as-needed options
24453         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24454                 gcc_cv_ld_as_needed=yes
24455         fi
24456 fi
24457
24458 fi
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24460 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24461 if test x"$gcc_cv_ld_as_needed" = xyes; then
24462
24463 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24464
24465 fi
24466
24467 case "$target:$tm_file" in
24468   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24470 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24471 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24472   $as_echo_n "(cached) " >&6
24473 else
24474   gcc_cv_ld_no_dot_syms=no
24475     if test $in_tree_ld = yes ; then
24476       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
24477         gcc_cv_ld_no_dot_syms=yes
24478       fi
24479     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24480       cat > conftest1.s <<EOF
24481         .text
24482         bl .foo
24483 EOF
24484       cat > conftest2.s <<EOF
24485         .section ".opd","aw"
24486         .align 3
24487         .globl foo
24488         .type foo,@function
24489 foo:
24490         .quad .LEfoo,.TOC.@tocbase,0
24491         .text
24492 .LEfoo:
24493         blr
24494         .size foo,.-.LEfoo
24495 EOF
24496       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24497          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24498          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24499         gcc_cv_ld_no_dot_syms=yes
24500       fi
24501       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24502     fi
24503
24504 fi
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24506 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24507     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24508
24509 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24510
24511     fi
24512     ;;
24513 esac
24514
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24516 $as_echo_n "checking linker --build-id support... " >&6; }
24517 if test "${gcc_cv_ld_buildid+set}" = set; then :
24518   $as_echo_n "(cached) " >&6
24519 else
24520   gcc_cv_ld_buildid=no
24521   if test $in_tree_ld = yes ; then
24522     if test "$gcc_cv_gld_major_version" -eq 2 -a \
24523        "$gcc_cv_gld_minor_version" -ge 18 -o \
24524        "$gcc_cv_gld_major_version" -gt 2 \
24525        && test $in_tree_ld_is_elf = yes; then
24526       gcc_cv_ld_buildid=yes
24527     fi
24528   elif test x$gcc_cv_ld != x; then
24529     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24530       gcc_cv_ld_buildid=yes
24531     fi
24532   fi
24533 fi
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24535 $as_echo "$gcc_cv_ld_buildid" >&6; }
24536 if test x"$gcc_cv_ld_buildid" = xyes; then
24537
24538 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24539
24540 fi
24541
24542 # Check whether --enable-linker-build-id was given.
24543 if test "${enable_linker_build_id+set}" = set; then :
24544   enableval=$enable_linker_build_id;
24545 else
24546   enable_linker_build_id=no
24547 fi
24548
24549
24550 if test x"$enable_linker_build_id" = xyes; then
24551   if test x"$gcc_cv_ld_buildid" = xyes; then
24552
24553 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24554
24555   else
24556     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24557 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24558   fi
24559 fi
24560
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24562 $as_echo_n "checking linker --sysroot support... " >&6; }
24563 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24564   $as_echo_n "(cached) " >&6
24565 else
24566   gcc_cv_ld_sysroot=no
24567   if test $in_tree_ld = yes ; then
24568       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
24569         gcc_cv_ld_sysroot=yes
24570       fi
24571   elif test x$gcc_cv_ld != x; then
24572     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24573       gcc_cv_ld_sysroot=yes
24574     fi
24575   fi
24576 fi
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24578 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24579 if test x"$gcc_cv_ld_sysroot" = xyes; then
24580
24581 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24582
24583 fi
24584
24585 if test x$with_sysroot = x && test x$host = x$target \
24586    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24587    && test "$prefix" != "NONE"; then
24588
24589 cat >>confdefs.h <<_ACEOF
24590 #define PREFIX_INCLUDE_DIR "$prefix/include"
24591 _ACEOF
24592
24593 fi
24594
24595 # Test for stack protector support in target C library.
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24597 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24598 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24599   $as_echo_n "(cached) " >&6
24600 else
24601   gcc_cv_libc_provides_ssp=no
24602     case "$target" in
24603        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24604       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24605         if test "x$with_sysroot" = x; then
24606           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24607         elif test "x$with_build_sysroot" != "x"; then
24608           glibc_header_dir="${with_build_sysroot}/usr/include"
24609         elif test "x$with_sysroot" = xyes; then
24610           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24611         else
24612           glibc_header_dir="${with_sysroot}/usr/include"
24613         fi
24614       else
24615         glibc_header_dir=/usr/include
24616       fi
24617       # glibc 2.4 and later provides __stack_chk_fail and
24618       # either __stack_chk_guard, or TLS access to stack guard canary.
24619       if test -f $glibc_header_dir/features.h \
24620          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
24621             $glibc_header_dir/features.h > /dev/null; then
24622         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
24623            $glibc_header_dir/features.h > /dev/null; then
24624           gcc_cv_libc_provides_ssp=yes
24625         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
24626              $glibc_header_dir/features.h > /dev/null \
24627              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
24628              $glibc_header_dir/features.h > /dev/null; then
24629           gcc_cv_libc_provides_ssp=yes
24630         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
24631              $glibc_header_dir/features.h > /dev/null && \
24632              test -f $glibc_header_dir/bits/uClibc_config.h && \
24633              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
24634              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24635           gcc_cv_libc_provides_ssp=yes
24636         fi
24637       fi
24638         ;;
24639        *-*-gnu*)
24640          # Avoid complicated tests (see
24641          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24642          # simply assert that glibc does provide this, which is true for all
24643          # realistically usable GNU/Hurd configurations.
24644          gcc_cv_libc_provides_ssp=yes;;
24645        *-*-darwin* | *-*-freebsd*)
24646          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24647 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24648   gcc_cv_libc_provides_ssp=yes
24649 else
24650   echo "no __stack_chk_fail on this target"
24651 fi
24652
24653         ;;
24654   *) gcc_cv_libc_provides_ssp=no ;;
24655     esac
24656 fi
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24658 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24659
24660 if test x$gcc_cv_libc_provides_ssp = xyes; then
24661
24662 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24663
24664 fi
24665
24666 # Check if TFmode long double should be used by default or not.
24667 # Some glibc targets used DFmode long double, but with glibc 2.4
24668 # and later they can use TFmode.
24669 case "$target" in
24670   powerpc*-*-linux* | \
24671   powerpc*-*-gnu* | \
24672   sparc*-*-linux* | \
24673   s390*-*-linux* | \
24674   alpha*-*-linux*)
24675
24676 # Check whether --with-long-double-128 was given.
24677 if test "${with_long_double_128+set}" = set; then :
24678   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24679 else
24680   gcc_cv_target_ldbl128=no
24681       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24682         if test "x$with_sysroot" = x; then
24683           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24684         elif test "x$with_build_sysroot" != "x"; then
24685           glibc_header_dir="${with_build_sysroot}/usr/include"
24686         elif test "x$with_sysroot" = xyes; then
24687           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24688         else
24689           glibc_header_dir="${with_sysroot}/usr/include"
24690         fi
24691       else
24692         glibc_header_dir=/usr/include
24693       fi
24694       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24695         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24696       && gcc_cv_target_ldbl128=yes
24697
24698 fi
24699
24700     ;;
24701 esac
24702 if test x$gcc_cv_target_ldbl128 = xyes; then
24703
24704 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24705
24706 fi
24707
24708 # Find out what GC implementation we want, or may, use.
24709
24710 # Check whether --with-gc was given.
24711 if test "${with_gc+set}" = set; then :
24712   withval=$with_gc; case "$withval" in
24713   page)
24714     GGC=ggc-$withval
24715     ;;
24716   zone)
24717     GGC=ggc-$withval
24718
24719 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24720
24721     ;;
24722   *)
24723     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24724     ;;
24725 esac
24726 else
24727   GGC=ggc-page
24728 fi
24729
24730
24731 echo "Using $GGC for garbage collection."
24732
24733 # Libraries to use on the host.  This will normally be set by the top
24734 # level Makefile.  Here we simply capture the value for our Makefile.
24735 if test -z "${HOST_LIBS+set}"; then
24736   HOST_LIBS=
24737 fi
24738
24739
24740 # Use the system's zlib library.
24741 zlibdir=-L../zlib
24742 zlibinc="-I\$(srcdir)/../zlib"
24743
24744 # Check whether --with-system-zlib was given.
24745 if test "${with_system_zlib+set}" = set; then :
24746   withval=$with_system_zlib; zlibdir=
24747 zlibinc=
24748
24749 fi
24750
24751
24752
24753
24754
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24756 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24757     # Check whether --enable-maintainer-mode was given.
24758 if test "${enable_maintainer_mode+set}" = set; then :
24759   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24760 else
24761   maintainer_mode=no
24762 fi
24763
24764
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24766 $as_echo "$maintainer_mode" >&6; }
24767
24768 if test "$maintainer_mode" = "yes"; then
24769   MAINT=''
24770 else
24771   MAINT='#'
24772 fi
24773
24774 # --------------
24775 # Language hooks
24776 # --------------
24777
24778 # Make empty files to contain the specs and options for each language.
24779 # Then add #include lines to for a compiler that has specs and/or options.
24780
24781 subdirs=
24782 lang_opt_files=
24783 lang_specs_files=
24784 lang_tree_files=
24785 # These (without "all_") are set in each config-lang.in.
24786 # `language' must be a single word so is spelled singularly.
24787 all_languages=
24788 all_compilers=
24789 all_outputs='Makefile gccbug'
24790 # List of language makefile fragments.
24791 all_lang_makefrags=
24792 # List of language subdirectory makefiles.  Deprecated.
24793 all_lang_makefiles=
24794 # Additional files for gengtype
24795 all_gtfiles="$target_gtfiles"
24796
24797 # These are the languages that are set in --enable-languages,
24798 # and are available in the GCC tree.
24799 all_selected_languages=
24800
24801 # Add the language fragments.
24802 # Languages are added via two mechanisms.  Some information must be
24803 # recorded in makefile variables, these are defined in config-lang.in.
24804 # We accumulate them and plug them into the main Makefile.
24805 # The other mechanism is a set of hooks for each of the main targets
24806 # like `clean', `install', etc.
24807
24808 language_hooks="Make-hooks"
24809
24810 for lang in ${srcdir}/*/config-lang.in
24811 do
24812         test "$lang" = "${srcdir}/*/config-lang.in" && continue
24813
24814         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
24815         if test "x$lang_alias" = x
24816         then
24817               echo "$lang doesn't set \$language." 1>&2
24818               exit 1
24819         fi
24820         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24821         subdirs="$subdirs $subdir"
24822
24823         # $gcc_subdir is where the gcc integration files are to be found
24824         # for a language, both for internal compiler purposes (compiler
24825         # sources implementing front-end to GCC tree converters), and for
24826         # build infrastructure purposes (Make-lang.in, etc.)
24827         #
24828         # This will be <subdir> (relative to $srcdir) if a line like
24829         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24830         # is found in <langdir>/config-lang.in, and will remain <langdir>
24831         # otherwise.
24832         #
24833         # Except for the language alias (fetched above), the regular
24834         # "config-lang.in" contents are always retrieved from $gcc_subdir,
24835         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24836         # only this and the language alias.
24837
24838         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
24839         if [ "$gcc_subdir" = "" ]; then
24840            gcc_subdir="$subdir"
24841         fi
24842
24843         case ",$enable_languages," in
24844         *,$lang_alias,*)
24845             all_selected_languages="$all_selected_languages $lang_alias"
24846             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24847                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24848             fi
24849             ;;
24850         esac
24851
24852         language=
24853         boot_language=
24854         compilers=
24855         outputs=
24856         gtfiles=
24857         subdir_requires=
24858         . ${srcdir}/$gcc_subdir/config-lang.in
24859         if test "x$language" = x
24860         then
24861                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24862                 exit 1
24863         fi
24864
24865         ok=:
24866         case ",$enable_languages," in
24867                 *,$lang_alias,*) ;;
24868                 *)
24869                         for i in $subdir_requires; do
24870                                 test -f "${srcdir}/$i/config-lang.in" && continue
24871                                 ok=false
24872                                 break
24873                         done
24874                 ;;
24875         esac
24876         $ok || continue
24877
24878         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24879         if test -f $srcdir/$gcc_subdir/lang.opt; then
24880             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24881         fi
24882         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24883             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24884         fi
24885         if test -f ${srcdir}/$gcc_subdir/Makefile.in
24886                 then all_lang_makefiles="$gcc_subdir/Makefile"
24887         fi
24888         all_languages="$all_languages $language"
24889         all_compilers="$all_compilers $compilers"
24890         all_outputs="$all_outputs $outputs"
24891         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24892         case ",$enable_languages," in
24893                 *,lto,*)
24894
24895 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
24896
24897                     enable_lto=yes
24898
24899                     ;;
24900                 *) ;;
24901         esac
24902 done
24903
24904 # Pick up gtfiles for c
24905 gtfiles=
24906 . ${srcdir}/c-config-lang.in
24907 all_gtfiles="$all_gtfiles [c] $gtfiles"
24908
24909 check_languages=
24910 for language in $all_selected_languages
24911 do
24912         check_languages="$check_languages check-$language"
24913 done
24914
24915 # We link each language in with a set of hooks, reached indirectly via
24916 # lang.${target}.  Only do so for selected languages.
24917
24918 rm -f Make-hooks
24919 touch Make-hooks
24920 target_list="all.cross start.encap rest.encap tags \
24921         install-common install-man install-info install-pdf dvi pdf \
24922         html uninstall info man srcextra srcman srcinfo \
24923         mostlyclean clean distclean maintainer-clean install-plugin"
24924
24925 for t in $target_list
24926 do
24927         x=
24928         for lang in $all_selected_languages
24929         do
24930                 x="$x $lang.$t"
24931         done
24932         echo "lang.$t: $x" >> Make-hooks
24933 done
24934
24935 # --------
24936 # UNSORTED
24937 # --------
24938
24939 # Create .gdbinit.
24940
24941 echo "dir ." > .gdbinit
24942 echo "dir ${srcdir}" >> .gdbinit
24943 if test x$gdb_needs_out_file_path = xyes
24944 then
24945         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24946 fi
24947 if test "x$subdirs" != x; then
24948         for s in $subdirs
24949         do
24950                 echo "dir ${srcdir}/$s" >> .gdbinit
24951         done
24952 fi
24953 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24954
24955 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24956
24957
24958
24959 # Find a directory in which to install a shared libgcc.
24960
24961 # Check whether --enable-version-specific-runtime-libs was given.
24962 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24963   enableval=$enable_version_specific_runtime_libs;
24964 fi
24965
24966
24967
24968 # Check whether --with-slibdir was given.
24969 if test "${with_slibdir+set}" = set; then :
24970   withval=$with_slibdir; slibdir="$with_slibdir"
24971 else
24972   if test "${enable_version_specific_runtime_libs+set}" = set; then
24973   slibdir='$(libsubdir)'
24974 elif test "$host" != "$target"; then
24975   slibdir='$(build_tooldir)/lib'
24976 else
24977   slibdir='$(libdir)'
24978 fi
24979 fi
24980
24981
24982
24983 # Substitute configuration variables
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045 # Echo link setup.
25046 if test x${build} = x${host} ; then
25047   if test x${host} = x${target} ; then
25048     echo "Links are now set up to build a native compiler for ${target}." 1>&2
25049   else
25050     echo "Links are now set up to build a cross-compiler" 1>&2
25051     echo " from ${host} to ${target}." 1>&2
25052   fi
25053 else
25054   if test x${host} = x${target} ; then
25055     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25056     echo " for ${target}." 1>&2
25057   else
25058     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25059     echo " from ${host} to ${target}." 1>&2
25060   fi
25061 fi
25062
25063
25064
25065
25066 case "${GMPLIBS}" in
25067   *-lmpc*)
25068 $as_echo "#define HAVE_mpc 1" >>confdefs.h
25069  ;;
25070 esac
25071
25072
25073
25074
25075
25076
25077 if test "x${CLOOGLIBS}" != "x" ; then
25078
25079 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25080
25081 fi
25082
25083
25084
25085 if test "x${LIBELFLIBS}" != "x" ; then
25086
25087 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25088
25089 fi
25090
25091 # Check for plugin support
25092 # Check whether --enable-plugin was given.
25093 if test "${enable_plugin+set}" = set; then :
25094   enableval=$enable_plugin; enable_plugin=$enableval
25095 else
25096   enable_plugin=yes; default_plugin=yes
25097 fi
25098
25099
25100 pluginlibs=
25101 if test x"$enable_plugin" = x"yes"; then
25102   # Check that the host supports -rdynamic and -ldl
25103   have_rdynamic=no
25104   have_dl=no
25105   saved_LDFLAGS="$LDFLAGS"
25106   saved_LIBS="$LIBS"
25107   LIBS=
25108
25109   # Check -rdynamic
25110   LDFLAGS="$LDFLAGS -rdynamic"
25111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25112 $as_echo_n "checking for -rdynamic... " >&6; }
25113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25114 /* end confdefs.h.  */
25115
25116 int
25117 main ()
25118 {
25119 return 0;
25120   ;
25121   return 0;
25122 }
25123 _ACEOF
25124 if ac_fn_c_try_link "$LINENO"; then :
25125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25126 $as_echo "yes" >&6; }; have_rdynamic=yes
25127 else
25128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25129 $as_echo "no" >&6; }
25130 fi
25131 rm -f core conftest.err conftest.$ac_objext \
25132     conftest$ac_exeext conftest.$ac_ext
25133   if test x"$have_rdynamic" = x"yes" ; then
25134     pluginlibs="-rdynamic"
25135   fi
25136
25137   # Check -ldl
25138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25139 $as_echo_n "checking for library containing dlopen... " >&6; }
25140 if test "${ac_cv_search_dlopen+set}" = set; then :
25141   $as_echo_n "(cached) " >&6
25142 else
25143   ac_func_search_save_LIBS=$LIBS
25144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145 /* end confdefs.h.  */
25146
25147 /* Override any GCC internal prototype to avoid an error.
25148    Use char because int might match the return type of a GCC
25149    builtin and then its argument prototype would still apply.  */
25150 #ifdef __cplusplus
25151 extern "C"
25152 #endif
25153 char dlopen ();
25154 int
25155 main ()
25156 {
25157 return dlopen ();
25158   ;
25159   return 0;
25160 }
25161 _ACEOF
25162 for ac_lib in '' dl; do
25163   if test -z "$ac_lib"; then
25164     ac_res="none required"
25165   else
25166     ac_res=-l$ac_lib
25167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25168   fi
25169   if ac_fn_c_try_link "$LINENO"; then :
25170   ac_cv_search_dlopen=$ac_res
25171 fi
25172 rm -f core conftest.err conftest.$ac_objext \
25173     conftest$ac_exeext
25174   if test "${ac_cv_search_dlopen+set}" = set; then :
25175   break
25176 fi
25177 done
25178 if test "${ac_cv_search_dlopen+set}" = set; then :
25179
25180 else
25181   ac_cv_search_dlopen=no
25182 fi
25183 rm conftest.$ac_ext
25184 LIBS=$ac_func_search_save_LIBS
25185 fi
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25187 $as_echo "$ac_cv_search_dlopen" >&6; }
25188 ac_res=$ac_cv_search_dlopen
25189 if test "$ac_res" != no; then :
25190   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25191
25192 fi
25193
25194   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25195     pluginlibs="$pluginlibs -ldl"
25196   fi
25197
25198   # Check that we can build shared objects with -fPIC -shared
25199   LDFLAGS="$LDFLAGS -fPIC -shared"
25200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25201 $as_echo_n "checking for -fPIC -shared... " >&6; }
25202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203 /* end confdefs.h.  */
25204 extern int X;
25205 int
25206 main ()
25207 {
25208 return X == 0;
25209   ;
25210   return 0;
25211 }
25212 _ACEOF
25213 if ac_fn_c_try_link "$LINENO"; then :
25214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25215 $as_echo "yes" >&6; }; have_pic_shared=yes
25216 else
25217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25218 $as_echo "no" >&6; }; have_pic_shared=no
25219 fi
25220 rm -f core conftest.err conftest.$ac_objext \
25221     conftest$ac_exeext conftest.$ac_ext
25222   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25223     pluginlibs=
25224     enable_plugin=no
25225   fi
25226
25227   # If plugin support had been requested but not available, fail.
25228   if test x"$enable_plugin" = x"no" ; then
25229     if test x"$default_plugin" != x"yes"; then
25230       as_fn_error "
25231 Building GCC with plugin support requires a host that supports
25232 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25233     fi
25234   fi
25235
25236   LDFLAGS="$saved_LDFLAGS"
25237   LIBS="$saved_LIBS"
25238 fi
25239
25240
25241
25242 if test x"$enable_plugin" = x"yes"; then
25243
25244 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25245
25246 fi
25247
25248 # Configure the subdirectories
25249 # AC_CONFIG_SUBDIRS($subdirs)
25250
25251 # Create the Makefile
25252 # and configure language subdirectories
25253 ac_config_files="$ac_config_files $all_outputs"
25254
25255
25256 ac_config_commands="$ac_config_commands default"
25257
25258 cat >confcache <<\_ACEOF
25259 # This file is a shell script that caches the results of configure
25260 # tests run on this system so they can be shared between configure
25261 # scripts and configure runs, see configure's option --config-cache.
25262 # It is not useful on other systems.  If it contains results you don't
25263 # want to keep, you may remove or edit it.
25264 #
25265 # config.status only pays attention to the cache file if you give it
25266 # the --recheck option to rerun configure.
25267 #
25268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25270 # following values.
25271
25272 _ACEOF
25273
25274 # The following way of writing the cache mishandles newlines in values,
25275 # but we know of no workaround that is simple, portable, and efficient.
25276 # So, we kill variables containing newlines.
25277 # Ultrix sh set writes to stderr and can't be redirected directly,
25278 # and sets the high bit in the cache file unless we assign to the vars.
25279 (
25280   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25281     eval ac_val=\$$ac_var
25282     case $ac_val in #(
25283     *${as_nl}*)
25284       case $ac_var in #(
25285       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25287       esac
25288       case $ac_var in #(
25289       _ | IFS | as_nl) ;; #(
25290       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25291       *) { eval $ac_var=; unset $ac_var;} ;;
25292       esac ;;
25293     esac
25294   done
25295
25296   (set) 2>&1 |
25297     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25298     *${as_nl}ac_space=\ *)
25299       # `set' does not quote correctly, so add quotes: double-quote
25300       # substitution turns \\\\ into \\, and sed turns \\ into \.
25301       sed -n \
25302         "s/'/'\\\\''/g;
25303           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25304       ;; #(
25305     *)
25306       # `set' quotes correctly as required by POSIX, so do not add quotes.
25307       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25308       ;;
25309     esac |
25310     sort
25311 ) |
25312   sed '
25313      /^ac_cv_env_/b end
25314      t clear
25315      :clear
25316      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25317      t end
25318      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25319      :end' >>confcache
25320 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25321   if test -w "$cache_file"; then
25322     test "x$cache_file" != "x/dev/null" &&
25323       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25324 $as_echo "$as_me: updating cache $cache_file" >&6;}
25325     cat confcache >$cache_file
25326   else
25327     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25328 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25329   fi
25330 fi
25331 rm -f confcache
25332
25333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25334 # Let make expand exec_prefix.
25335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25336
25337 DEFS=-DHAVE_CONFIG_H
25338
25339 ac_libobjs=
25340 ac_ltlibobjs=
25341 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25342   # 1. Remove the extension, and $U if already installed.
25343   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25344   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25345   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25346   #    will be set to the directory where LIBOBJS objects are built.
25347   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25348   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25349 done
25350 LIBOBJS=$ac_libobjs
25351
25352 LTLIBOBJS=$ac_ltlibobjs
25353
25354
25355
25356
25357 : ${CONFIG_STATUS=./config.status}
25358 ac_write_fail=0
25359 ac_clean_files_save=$ac_clean_files
25360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25362 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25363 as_write_fail=0
25364 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25365 #! $SHELL
25366 # Generated by $as_me.
25367 # Run this file to recreate the current configuration.
25368 # Compiler output produced by configure, useful for debugging
25369 # configure, is in config.log if it exists.
25370
25371 debug=false
25372 ac_cs_recheck=false
25373 ac_cs_silent=false
25374
25375 SHELL=\${CONFIG_SHELL-$SHELL}
25376 export SHELL
25377 _ASEOF
25378 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25379 ## -------------------- ##
25380 ## M4sh Initialization. ##
25381 ## -------------------- ##
25382
25383 # Be more Bourne compatible
25384 DUALCASE=1; export DUALCASE # for MKS sh
25385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25386   emulate sh
25387   NULLCMD=:
25388   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25389   # is contrary to our usage.  Disable this feature.
25390   alias -g '${1+"$@"}'='"$@"'
25391   setopt NO_GLOB_SUBST
25392 else
25393   case `(set -o) 2>/dev/null` in #(
25394   *posix*) :
25395     set -o posix ;; #(
25396   *) :
25397      ;;
25398 esac
25399 fi
25400
25401
25402 as_nl='
25403 '
25404 export as_nl
25405 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25406 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25408 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25409 # Prefer a ksh shell builtin over an external printf program on Solaris,
25410 # but without wasting forks for bash or zsh.
25411 if test -z "$BASH_VERSION$ZSH_VERSION" \
25412     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25413   as_echo='print -r --'
25414   as_echo_n='print -rn --'
25415 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25416   as_echo='printf %s\n'
25417   as_echo_n='printf %s'
25418 else
25419   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25420     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25421     as_echo_n='/usr/ucb/echo -n'
25422   else
25423     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25424     as_echo_n_body='eval
25425       arg=$1;
25426       case $arg in #(
25427       *"$as_nl"*)
25428         expr "X$arg" : "X\\(.*\\)$as_nl";
25429         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25430       esac;
25431       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25432     '
25433     export as_echo_n_body
25434     as_echo_n='sh -c $as_echo_n_body as_echo'
25435   fi
25436   export as_echo_body
25437   as_echo='sh -c $as_echo_body as_echo'
25438 fi
25439
25440 # The user is always right.
25441 if test "${PATH_SEPARATOR+set}" != set; then
25442   PATH_SEPARATOR=:
25443   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25444     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25445       PATH_SEPARATOR=';'
25446   }
25447 fi
25448
25449
25450 # IFS
25451 # We need space, tab and new line, in precisely that order.  Quoting is
25452 # there to prevent editors from complaining about space-tab.
25453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25454 # splitting by setting IFS to empty value.)
25455 IFS=" ""        $as_nl"
25456
25457 # Find who we are.  Look in the path if we contain no directory separator.
25458 case $0 in #((
25459   *[\\/]* ) as_myself=$0 ;;
25460   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25461 for as_dir in $PATH
25462 do
25463   IFS=$as_save_IFS
25464   test -z "$as_dir" && as_dir=.
25465     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25466   done
25467 IFS=$as_save_IFS
25468
25469      ;;
25470 esac
25471 # We did not find ourselves, most probably we were run as `sh COMMAND'
25472 # in which case we are not to be found in the path.
25473 if test "x$as_myself" = x; then
25474   as_myself=$0
25475 fi
25476 if test ! -f "$as_myself"; then
25477   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25478   exit 1
25479 fi
25480
25481 # Unset variables that we do not need and which cause bugs (e.g. in
25482 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25483 # suppresses any "Segmentation fault" message there.  '((' could
25484 # trigger a bug in pdksh 5.2.14.
25485 for as_var in BASH_ENV ENV MAIL MAILPATH
25486 do eval test x\${$as_var+set} = xset \
25487   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25488 done
25489 PS1='$ '
25490 PS2='> '
25491 PS4='+ '
25492
25493 # NLS nuisances.
25494 LC_ALL=C
25495 export LC_ALL
25496 LANGUAGE=C
25497 export LANGUAGE
25498
25499 # CDPATH.
25500 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25501
25502
25503 # as_fn_error ERROR [LINENO LOG_FD]
25504 # ---------------------------------
25505 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25506 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25507 # script with status $?, using 1 if that was 0.
25508 as_fn_error ()
25509 {
25510   as_status=$?; test $as_status -eq 0 && as_status=1
25511   if test "$3"; then
25512     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25513     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25514   fi
25515   $as_echo "$as_me: error: $1" >&2
25516   as_fn_exit $as_status
25517 } # as_fn_error
25518
25519
25520 # as_fn_set_status STATUS
25521 # -----------------------
25522 # Set $? to STATUS, without forking.
25523 as_fn_set_status ()
25524 {
25525   return $1
25526 } # as_fn_set_status
25527
25528 # as_fn_exit STATUS
25529 # -----------------
25530 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25531 as_fn_exit ()
25532 {
25533   set +e
25534   as_fn_set_status $1
25535   exit $1
25536 } # as_fn_exit
25537
25538 # as_fn_unset VAR
25539 # ---------------
25540 # Portably unset VAR.
25541 as_fn_unset ()
25542 {
25543   { eval $1=; unset $1;}
25544 }
25545 as_unset=as_fn_unset
25546 # as_fn_append VAR VALUE
25547 # ----------------------
25548 # Append the text in VALUE to the end of the definition contained in VAR. Take
25549 # advantage of any shell optimizations that allow amortized linear growth over
25550 # repeated appends, instead of the typical quadratic growth present in naive
25551 # implementations.
25552 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25553   eval 'as_fn_append ()
25554   {
25555     eval $1+=\$2
25556   }'
25557 else
25558   as_fn_append ()
25559   {
25560     eval $1=\$$1\$2
25561   }
25562 fi # as_fn_append
25563
25564 # as_fn_arith ARG...
25565 # ------------------
25566 # Perform arithmetic evaluation on the ARGs, and store the result in the
25567 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25568 # must be portable across $(()) and expr.
25569 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25570   eval 'as_fn_arith ()
25571   {
25572     as_val=$(( $* ))
25573   }'
25574 else
25575   as_fn_arith ()
25576   {
25577     as_val=`expr "$@" || test $? -eq 1`
25578   }
25579 fi # as_fn_arith
25580
25581
25582 if expr a : '\(a\)' >/dev/null 2>&1 &&
25583    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25584   as_expr=expr
25585 else
25586   as_expr=false
25587 fi
25588
25589 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25590   as_basename=basename
25591 else
25592   as_basename=false
25593 fi
25594
25595 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25596   as_dirname=dirname
25597 else
25598   as_dirname=false
25599 fi
25600
25601 as_me=`$as_basename -- "$0" ||
25602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25603          X"$0" : 'X\(//\)$' \| \
25604          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25605 $as_echo X/"$0" |
25606     sed '/^.*\/\([^/][^/]*\)\/*$/{
25607             s//\1/
25608             q
25609           }
25610           /^X\/\(\/\/\)$/{
25611             s//\1/
25612             q
25613           }
25614           /^X\/\(\/\).*/{
25615             s//\1/
25616             q
25617           }
25618           s/.*/./; q'`
25619
25620 # Avoid depending upon Character Ranges.
25621 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25622 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25623 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25624 as_cr_digits='0123456789'
25625 as_cr_alnum=$as_cr_Letters$as_cr_digits
25626
25627 ECHO_C= ECHO_N= ECHO_T=
25628 case `echo -n x` in #(((((
25629 -n*)
25630   case `echo 'xy\c'` in
25631   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25632   xy)  ECHO_C='\c';;
25633   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25634        ECHO_T=' ';;
25635   esac;;
25636 *)
25637   ECHO_N='-n';;
25638 esac
25639
25640 rm -f conf$$ conf$$.exe conf$$.file
25641 if test -d conf$$.dir; then
25642   rm -f conf$$.dir/conf$$.file
25643 else
25644   rm -f conf$$.dir
25645   mkdir conf$$.dir 2>/dev/null
25646 fi
25647 if (echo >conf$$.file) 2>/dev/null; then
25648   if ln -s conf$$.file conf$$ 2>/dev/null; then
25649     as_ln_s='ln -s'
25650     # ... but there are two gotchas:
25651     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25652     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25653     # In both cases, we have to default to `cp -p'.
25654     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25655       as_ln_s='cp -p'
25656   elif ln conf$$.file conf$$ 2>/dev/null; then
25657     as_ln_s=ln
25658   else
25659     as_ln_s='cp -p'
25660   fi
25661 else
25662   as_ln_s='cp -p'
25663 fi
25664 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25665 rmdir conf$$.dir 2>/dev/null
25666
25667
25668 # as_fn_mkdir_p
25669 # -------------
25670 # Create "$as_dir" as a directory, including parents if necessary.
25671 as_fn_mkdir_p ()
25672 {
25673
25674   case $as_dir in #(
25675   -*) as_dir=./$as_dir;;
25676   esac
25677   test -d "$as_dir" || eval $as_mkdir_p || {
25678     as_dirs=
25679     while :; do
25680       case $as_dir in #(
25681       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25682       *) as_qdir=$as_dir;;
25683       esac
25684       as_dirs="'$as_qdir' $as_dirs"
25685       as_dir=`$as_dirname -- "$as_dir" ||
25686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25687          X"$as_dir" : 'X\(//\)[^/]' \| \
25688          X"$as_dir" : 'X\(//\)$' \| \
25689          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25690 $as_echo X"$as_dir" |
25691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25692             s//\1/
25693             q
25694           }
25695           /^X\(\/\/\)[^/].*/{
25696             s//\1/
25697             q
25698           }
25699           /^X\(\/\/\)$/{
25700             s//\1/
25701             q
25702           }
25703           /^X\(\/\).*/{
25704             s//\1/
25705             q
25706           }
25707           s/.*/./; q'`
25708       test -d "$as_dir" && break
25709     done
25710     test -z "$as_dirs" || eval "mkdir $as_dirs"
25711   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25712
25713
25714 } # as_fn_mkdir_p
25715 if mkdir -p . 2>/dev/null; then
25716   as_mkdir_p='mkdir -p "$as_dir"'
25717 else
25718   test -d ./-p && rmdir ./-p
25719   as_mkdir_p=false
25720 fi
25721
25722 if test -x / >/dev/null 2>&1; then
25723   as_test_x='test -x'
25724 else
25725   if ls -dL / >/dev/null 2>&1; then
25726     as_ls_L_option=L
25727   else
25728     as_ls_L_option=
25729   fi
25730   as_test_x='
25731     eval sh -c '\''
25732       if test -d "$1"; then
25733         test -d "$1/.";
25734       else
25735         case $1 in #(
25736         -*)set "./$1";;
25737         esac;
25738         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25739         ???[sx]*):;;*)false;;esac;fi
25740     '\'' sh
25741   '
25742 fi
25743 as_executable_p=$as_test_x
25744
25745 # Sed expression to map a string onto a valid CPP name.
25746 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25747
25748 # Sed expression to map a string onto a valid variable name.
25749 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25750
25751
25752 exec 6>&1
25753 ## ----------------------------------- ##
25754 ## Main body of $CONFIG_STATUS script. ##
25755 ## ----------------------------------- ##
25756 _ASEOF
25757 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25758
25759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25760 # Save the log message, to keep $0 and so on meaningful, and to
25761 # report actual input values of CONFIG_FILES etc. instead of their
25762 # values after options handling.
25763 ac_log="
25764 This file was extended by $as_me, which was
25765 generated by GNU Autoconf 2.64.  Invocation command line was
25766
25767   CONFIG_FILES    = $CONFIG_FILES
25768   CONFIG_HEADERS  = $CONFIG_HEADERS
25769   CONFIG_LINKS    = $CONFIG_LINKS
25770   CONFIG_COMMANDS = $CONFIG_COMMANDS
25771   $ $0 $@
25772
25773 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25774 "
25775
25776 _ACEOF
25777
25778 case $ac_config_files in *"
25779 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25780 esac
25781
25782 case $ac_config_headers in *"
25783 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25784 esac
25785
25786
25787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25788 # Files that config.status was made for.
25789 config_files="$ac_config_files"
25790 config_headers="$ac_config_headers"
25791 config_commands="$ac_config_commands"
25792
25793 _ACEOF
25794
25795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25796 ac_cs_usage="\
25797 \`$as_me' instantiates files and other configuration actions
25798 from templates according to the current configuration.  Unless the files
25799 and actions are specified as TAGs, all are instantiated by default.
25800
25801 Usage: $0 [OPTION]... [TAG]...
25802
25803   -h, --help       print this help, then exit
25804   -V, --version    print version number and configuration settings, then exit
25805   -q, --quiet, --silent
25806                    do not print progress messages
25807   -d, --debug      don't remove temporary files
25808       --recheck    update $as_me by reconfiguring in the same conditions
25809       --file=FILE[:TEMPLATE]
25810                    instantiate the configuration file FILE
25811       --header=FILE[:TEMPLATE]
25812                    instantiate the configuration header FILE
25813
25814 Configuration files:
25815 $config_files
25816
25817 Configuration headers:
25818 $config_headers
25819
25820 Configuration commands:
25821 $config_commands
25822
25823 Report bugs to the package provider."
25824
25825 _ACEOF
25826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25827 ac_cs_version="\\
25828 config.status
25829 configured by $0, generated by GNU Autoconf 2.64,
25830   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25831
25832 Copyright (C) 2009 Free Software Foundation, Inc.
25833 This config.status script is free software; the Free Software Foundation
25834 gives unlimited permission to copy, distribute and modify it."
25835
25836 ac_pwd='$ac_pwd'
25837 srcdir='$srcdir'
25838 AWK='$AWK'
25839 test -n "\$AWK" || AWK=awk
25840 _ACEOF
25841
25842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25843 # The default lists apply if the user does not specify any file.
25844 ac_need_defaults=:
25845 while test $# != 0
25846 do
25847   case $1 in
25848   --*=*)
25849     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25850     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25851     ac_shift=:
25852     ;;
25853   *)
25854     ac_option=$1
25855     ac_optarg=$2
25856     ac_shift=shift
25857     ;;
25858   esac
25859
25860   case $ac_option in
25861   # Handling of the options.
25862   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25863     ac_cs_recheck=: ;;
25864   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25865     $as_echo "$ac_cs_version"; exit ;;
25866   --debug | --debu | --deb | --de | --d | -d )
25867     debug=: ;;
25868   --file | --fil | --fi | --f )
25869     $ac_shift
25870     case $ac_optarg in
25871     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25872     esac
25873     as_fn_append CONFIG_FILES " '$ac_optarg'"
25874     ac_need_defaults=false;;
25875   --header | --heade | --head | --hea )
25876     $ac_shift
25877     case $ac_optarg in
25878     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25879     esac
25880     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25881     ac_need_defaults=false;;
25882   --he | --h)
25883     # Conflict between --help and --header
25884     as_fn_error "ambiguous option: \`$1'
25885 Try \`$0 --help' for more information.";;
25886   --help | --hel | -h )
25887     $as_echo "$ac_cs_usage"; exit ;;
25888   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25889   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25890     ac_cs_silent=: ;;
25891
25892   # This is an error.
25893   -*) as_fn_error "unrecognized option: \`$1'
25894 Try \`$0 --help' for more information." ;;
25895
25896   *) as_fn_append ac_config_targets " $1"
25897      ac_need_defaults=false ;;
25898
25899   esac
25900   shift
25901 done
25902
25903 ac_configure_extra_args=
25904
25905 if $ac_cs_silent; then
25906   exec 6>/dev/null
25907   ac_configure_extra_args="$ac_configure_extra_args --silent"
25908 fi
25909
25910 _ACEOF
25911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25912 if \$ac_cs_recheck; then
25913   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25914   shift
25915   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25916   CONFIG_SHELL='$SHELL'
25917   export CONFIG_SHELL
25918   exec "\$@"
25919 fi
25920
25921 _ACEOF
25922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25923 exec 5>>config.log
25924 {
25925   echo
25926   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25927 ## Running $as_me. ##
25928 _ASBOX
25929   $as_echo "$ac_log"
25930 } >&5
25931
25932 _ACEOF
25933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25934 #
25935 # INIT-COMMANDS
25936 #
25937 subdirs='$subdirs'
25938
25939 _ACEOF
25940
25941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25942
25943 # Handling of arguments.
25944 for ac_config_target in $ac_config_targets
25945 do
25946   case $ac_config_target in
25947     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25948     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25949     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25950     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25951     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25952     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25953
25954   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25955   esac
25956 done
25957
25958
25959 # If the user did not use the arguments to specify the items to instantiate,
25960 # then the envvar interface is used.  Set only those that are not.
25961 # We use the long form for the default assignment because of an extremely
25962 # bizarre bug on SunOS 4.1.3.
25963 if $ac_need_defaults; then
25964   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25965   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25966   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25967 fi
25968
25969 # Have a temporary directory for convenience.  Make it in the build tree
25970 # simply because there is no reason against having it here, and in addition,
25971 # creating and moving files from /tmp can sometimes cause problems.
25972 # Hook for its removal unless debugging.
25973 # Note that there is a small window in which the directory will not be cleaned:
25974 # after its creation but before its name has been assigned to `$tmp'.
25975 $debug ||
25976 {
25977   tmp=
25978   trap 'exit_status=$?
25979   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25980 ' 0
25981   trap 'as_fn_exit 1' 1 2 13 15
25982 }
25983 # Create a (secure) tmp directory for tmp files.
25984
25985 {
25986   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25987   test -n "$tmp" && test -d "$tmp"
25988 }  ||
25989 {
25990   tmp=./conf$$-$RANDOM
25991   (umask 077 && mkdir "$tmp")
25992 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25993
25994 # Set up the scripts for CONFIG_FILES section.
25995 # No need to generate them if there are no CONFIG_FILES.
25996 # This happens for instance with `./config.status config.h'.
25997 if test -n "$CONFIG_FILES"; then
25998
25999 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26000   ac_cs_awk_getline=:
26001   ac_cs_awk_pipe_init=
26002   ac_cs_awk_read_file='
26003       while ((getline aline < (F[key])) > 0)
26004         print(aline)
26005       close(F[key])'
26006   ac_cs_awk_pipe_fini=
26007 else
26008   ac_cs_awk_getline=false
26009   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26010   ac_cs_awk_read_file='
26011       print "|#_!!_#|"
26012       print "cat " F[key] " &&"
26013       '$ac_cs_awk_pipe_init
26014   # The final `:' finishes the AND list.
26015   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26016 fi
26017 ac_cr=`echo X | tr X '\015'`
26018 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26019 # But we know of no other shell where ac_cr would be empty at this
26020 # point, so we can use a bashism as a fallback.
26021 if test "x$ac_cr" = x; then
26022   eval ac_cr=\$\'\\r\'
26023 fi
26024 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26025 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26026   ac_cs_awk_cr='\r'
26027 else
26028   ac_cs_awk_cr=$ac_cr
26029 fi
26030
26031 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26032 _ACEOF
26033
26034 # Create commands to substitute file output variables.
26035 {
26036   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26037   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26038   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26039   echo "_ACAWK" &&
26040   echo "_ACEOF"
26041 } >conf$$files.sh &&
26042 . ./conf$$files.sh ||
26043   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26044 rm -f conf$$files.sh
26045
26046 {
26047   echo "cat >conf$$subs.awk <<_ACEOF" &&
26048   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26049   echo "_ACEOF"
26050 } >conf$$subs.sh ||
26051   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26052 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26053 ac_delim='%!_!# '
26054 for ac_last_try in false false false false false :; do
26055   . ./conf$$subs.sh ||
26056     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26057
26058   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26059   if test $ac_delim_n = $ac_delim_num; then
26060     break
26061   elif $ac_last_try; then
26062     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26063   else
26064     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26065   fi
26066 done
26067 rm -f conf$$subs.sh
26068
26069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26070 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26071 _ACEOF
26072 sed -n '
26073 h
26074 s/^/S["/; s/!.*/"]=/
26075 p
26076 g
26077 s/^[^!]*!//
26078 :repl
26079 t repl
26080 s/'"$ac_delim"'$//
26081 t delim
26082 :nl
26083 h
26084 s/\(.\{148\}\).*/\1/
26085 t more1
26086 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26087 p
26088 n
26089 b repl
26090 :more1
26091 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26092 p
26093 g
26094 s/.\{148\}//
26095 t nl
26096 :delim
26097 h
26098 s/\(.\{148\}\).*/\1/
26099 t more2
26100 s/["\\]/\\&/g; s/^/"/; s/$/"/
26101 p
26102 b
26103 :more2
26104 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26105 p
26106 g
26107 s/.\{148\}//
26108 t delim
26109 ' <conf$$subs.awk | sed '
26110 /^[^""]/{
26111   N
26112   s/\n//
26113 }
26114 ' >>$CONFIG_STATUS || ac_write_fail=1
26115 rm -f conf$$subs.awk
26116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26117 _ACAWK
26118 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26119   for (key in S) S_is_set[key] = 1
26120   FS = "\a"
26121   \$ac_cs_awk_pipe_init
26122 }
26123 {
26124   line = $ 0
26125   nfields = split(line, field, "@")
26126   substed = 0
26127   len = length(field[1])
26128   for (i = 2; i < nfields; i++) {
26129     key = field[i]
26130     keylen = length(key)
26131     if (S_is_set[key]) {
26132       value = S[key]
26133       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26134       len += length(value) + length(field[++i])
26135       substed = 1
26136     } else
26137       len += 1 + keylen
26138   }
26139   if (nfields == 3 && !substed) {
26140     key = field[2]
26141     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
26142       \$ac_cs_awk_read_file
26143       next
26144     }
26145   }
26146   print line
26147 }
26148 \$ac_cs_awk_pipe_fini
26149 _ACAWK
26150 _ACEOF
26151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26152 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26153   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26154 else
26155   cat
26156 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26157   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26158 _ACEOF
26159
26160 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26161 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26162 # trailing colons and then remove the whole line if VPATH becomes empty
26163 # (actually we leave an empty line to preserve line numbers).
26164 if test "x$srcdir" = x.; then
26165   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26166 s/:*\$(srcdir):*/:/
26167 s/:*\${srcdir}:*/:/
26168 s/:*@srcdir@:*/:/
26169 s/^\([^=]*=[     ]*\):*/\1/
26170 s/:*$//
26171 s/^[^=]*=[       ]*$//
26172 }'
26173 fi
26174
26175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26176 fi # test -n "$CONFIG_FILES"
26177
26178 # Set up the scripts for CONFIG_HEADERS section.
26179 # No need to generate them if there are no CONFIG_HEADERS.
26180 # This happens for instance with `./config.status Makefile'.
26181 if test -n "$CONFIG_HEADERS"; then
26182 cat >"$tmp/defines.awk" <<\_ACAWK ||
26183 BEGIN {
26184 _ACEOF
26185
26186 # Transform confdefs.h into an awk script `defines.awk', embedded as
26187 # here-document in config.status, that substitutes the proper values into
26188 # config.h.in to produce config.h.
26189
26190 # Create a delimiter string that does not exist in confdefs.h, to ease
26191 # handling of long lines.
26192 ac_delim='%!_!# '
26193 for ac_last_try in false false :; do
26194   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26195   if test -z "$ac_t"; then
26196     break
26197   elif $ac_last_try; then
26198     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26199   else
26200     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26201   fi
26202 done
26203
26204 # For the awk script, D is an array of macro values keyed by name,
26205 # likewise P contains macro parameters if any.  Preserve backslash
26206 # newline sequences.
26207
26208 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26209 sed -n '
26210 s/.\{148\}/&'"$ac_delim"'/g
26211 t rset
26212 :rset
26213 s/^[     ]*#[    ]*define[       ][      ]*/ /
26214 t def
26215 d
26216 :def
26217 s/\\$//
26218 t bsnl
26219 s/["\\]/\\&/g
26220 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26221 D["\1"]=" \3"/p
26222 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26223 d
26224 :bsnl
26225 s/["\\]/\\&/g
26226 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26227 D["\1"]=" \3\\\\\\n"\\/p
26228 t cont
26229 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26230 t cont
26231 d
26232 :cont
26233 n
26234 s/.\{148\}/&'"$ac_delim"'/g
26235 t clear
26236 :clear
26237 s/\\$//
26238 t bsnlc
26239 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26240 d
26241 :bsnlc
26242 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26243 b cont
26244 ' <confdefs.h | sed '
26245 s/'"$ac_delim"'/"\\\
26246 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26247
26248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26249   for (key in D) D_is_set[key] = 1
26250   FS = "\a"
26251 }
26252 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26253   line = \$ 0
26254   split(line, arg, " ")
26255   if (arg[1] == "#") {
26256     defundef = arg[2]
26257     mac1 = arg[3]
26258   } else {
26259     defundef = substr(arg[1], 2)
26260     mac1 = arg[2]
26261   }
26262   split(mac1, mac2, "(") #)
26263   macro = mac2[1]
26264   prefix = substr(line, 1, index(line, defundef) - 1)
26265   if (D_is_set[macro]) {
26266     # Preserve the white space surrounding the "#".
26267     print prefix "define", macro P[macro] D[macro]
26268     next
26269   } else {
26270     # Replace #undef with comments.  This is necessary, for example,
26271     # in the case of _POSIX_SOURCE, which is predefined and required
26272     # on some systems where configure will not decide to define it.
26273     if (defundef == "undef") {
26274       print "/*", prefix defundef, macro, "*/"
26275       next
26276     }
26277   }
26278 }
26279 { print }
26280 _ACAWK
26281 _ACEOF
26282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26283   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26284 fi # test -n "$CONFIG_HEADERS"
26285
26286
26287 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26288 shift
26289 for ac_tag
26290 do
26291   case $ac_tag in
26292   :[FHLC]) ac_mode=$ac_tag; continue;;
26293   esac
26294   case $ac_mode$ac_tag in
26295   :[FHL]*:*);;
26296   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26297   :[FH]-) ac_tag=-:-;;
26298   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26299   esac
26300   ac_save_IFS=$IFS
26301   IFS=:
26302   set x $ac_tag
26303   IFS=$ac_save_IFS
26304   shift
26305   ac_file=$1
26306   shift
26307
26308   case $ac_mode in
26309   :L) ac_source=$1;;
26310   :[FH])
26311     ac_file_inputs=
26312     for ac_f
26313     do
26314       case $ac_f in
26315       -) ac_f="$tmp/stdin";;
26316       *) # Look for the file first in the build tree, then in the source tree
26317          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26318          # because $ac_f cannot contain `:'.
26319          test -f "$ac_f" ||
26320            case $ac_f in
26321            [\\/$]*) false;;
26322            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26323            esac ||
26324            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26325       esac
26326       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26327       as_fn_append ac_file_inputs " '$ac_f'"
26328     done
26329
26330     # Let's still pretend it is `configure' which instantiates (i.e., don't
26331     # use $as_me), people would be surprised to read:
26332     #    /* config.h.  Generated by config.status.  */
26333     configure_input='Generated from '`
26334           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26335         `' by configure.'
26336     if test x"$ac_file" != x-; then
26337       configure_input="$ac_file.  $configure_input"
26338       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26339 $as_echo "$as_me: creating $ac_file" >&6;}
26340     fi
26341     # Neutralize special characters interpreted by sed in replacement strings.
26342     case $configure_input in #(
26343     *\&* | *\|* | *\\* )
26344        ac_sed_conf_input=`$as_echo "$configure_input" |
26345        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26346     *) ac_sed_conf_input=$configure_input;;
26347     esac
26348
26349     case $ac_tag in
26350     *:-:* | *:-) cat >"$tmp/stdin" \
26351       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26352     esac
26353     ;;
26354   esac
26355
26356   ac_dir=`$as_dirname -- "$ac_file" ||
26357 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26358          X"$ac_file" : 'X\(//\)[^/]' \| \
26359          X"$ac_file" : 'X\(//\)$' \| \
26360          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26361 $as_echo X"$ac_file" |
26362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26363             s//\1/
26364             q
26365           }
26366           /^X\(\/\/\)[^/].*/{
26367             s//\1/
26368             q
26369           }
26370           /^X\(\/\/\)$/{
26371             s//\1/
26372             q
26373           }
26374           /^X\(\/\).*/{
26375             s//\1/
26376             q
26377           }
26378           s/.*/./; q'`
26379   as_dir="$ac_dir"; as_fn_mkdir_p
26380   ac_builddir=.
26381
26382 case "$ac_dir" in
26383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26384 *)
26385   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26386   # A ".." for each directory in $ac_dir_suffix.
26387   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26388   case $ac_top_builddir_sub in
26389   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26390   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26391   esac ;;
26392 esac
26393 ac_abs_top_builddir=$ac_pwd
26394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26395 # for backward compatibility:
26396 ac_top_builddir=$ac_top_build_prefix
26397
26398 case $srcdir in
26399   .)  # We are building in place.
26400     ac_srcdir=.
26401     ac_top_srcdir=$ac_top_builddir_sub
26402     ac_abs_top_srcdir=$ac_pwd ;;
26403   [\\/]* | ?:[\\/]* )  # Absolute name.
26404     ac_srcdir=$srcdir$ac_dir_suffix;
26405     ac_top_srcdir=$srcdir
26406     ac_abs_top_srcdir=$srcdir ;;
26407   *) # Relative name.
26408     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26409     ac_top_srcdir=$ac_top_build_prefix$srcdir
26410     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26411 esac
26412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26413
26414
26415   case $ac_mode in
26416   :F)
26417   #
26418   # CONFIG_FILE
26419   #
26420
26421 _ACEOF
26422
26423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26424 # If the template does not know about datarootdir, expand it.
26425 # FIXME: This hack should be removed a few years after 2.60.
26426 ac_datarootdir_hack=; ac_datarootdir_seen=
26427 ac_sed_dataroot='
26428 /datarootdir/ {
26429   p
26430   q
26431 }
26432 /@datadir@/p
26433 /@docdir@/p
26434 /@infodir@/p
26435 /@localedir@/p
26436 /@mandir@/p'
26437 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26438 *datarootdir*) ac_datarootdir_seen=yes;;
26439 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26440   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26441 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26442 _ACEOF
26443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26444   ac_datarootdir_hack='
26445   s&@datadir@&$datadir&g
26446   s&@docdir@&$docdir&g
26447   s&@infodir@&$infodir&g
26448   s&@localedir@&$localedir&g
26449   s&@mandir@&$mandir&g
26450   s&\\\${datarootdir}&$datarootdir&g' ;;
26451 esac
26452 _ACEOF
26453
26454 # Neutralize VPATH when `$srcdir' = `.'.
26455 # Shell code in configure.ac might set extrasub.
26456 # FIXME: do we really want to maintain this feature?
26457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26458 ac_sed_extra="$ac_vpsub
26459 $extrasub
26460 _ACEOF
26461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26462 :t
26463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26464 s|@configure_input@|$ac_sed_conf_input|;t t
26465 s&@top_builddir@&$ac_top_builddir_sub&;t t
26466 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26467 s&@srcdir@&$ac_srcdir&;t t
26468 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26469 s&@top_srcdir@&$ac_top_srcdir&;t t
26470 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26471 s&@builddir@&$ac_builddir&;t t
26472 s&@abs_builddir@&$ac_abs_builddir&;t t
26473 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26474 $ac_datarootdir_hack
26475 "
26476 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26477 if $ac_cs_awk_getline; then
26478   $AWK -f "$tmp/subs.awk"
26479 else
26480   $AWK -f "$tmp/subs.awk" | $SHELL
26481 fi >$tmp/out \
26482   || as_fn_error "could not create $ac_file" "$LINENO" 5
26483
26484 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26485   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26486   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26487   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26488 which seems to be undefined.  Please make sure it is defined." >&5
26489 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26490 which seems to be undefined.  Please make sure it is defined." >&2;}
26491
26492   rm -f "$tmp/stdin"
26493   case $ac_file in
26494   -) cat "$tmp/out" && rm -f "$tmp/out";;
26495   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26496   esac \
26497   || as_fn_error "could not create $ac_file" "$LINENO" 5
26498  ;;
26499   :H)
26500   #
26501   # CONFIG_HEADER
26502   #
26503   if test x"$ac_file" != x-; then
26504     {
26505       $as_echo "/* $configure_input  */" \
26506       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26507     } >"$tmp/config.h" \
26508       || as_fn_error "could not create $ac_file" "$LINENO" 5
26509     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26510       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26511 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26512     else
26513       rm -f "$ac_file"
26514       mv "$tmp/config.h" "$ac_file" \
26515         || as_fn_error "could not create $ac_file" "$LINENO" 5
26516     fi
26517   else
26518     $as_echo "/* $configure_input  */" \
26519       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26520       || as_fn_error "could not create -" "$LINENO" 5
26521   fi
26522  ;;
26523
26524   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26525 $as_echo "$as_me: executing $ac_file commands" >&6;}
26526  ;;
26527   esac
26528
26529
26530   case $ac_file$ac_mode in
26531     "as":F) chmod +x as ;;
26532     "collect-ld":F) chmod +x collect-ld ;;
26533     "nm":F) chmod +x nm ;;
26534     "default":C)
26535 case ${CONFIG_HEADERS} in
26536   *auto-host.h:config.in*)
26537   echo > cstamp-h ;;
26538 esac
26539 # Make sure all the subdirs exist.
26540 for d in $subdirs doc build
26541 do
26542     test -d $d || mkdir $d
26543 done
26544  ;;
26545
26546   esac
26547 done # for ac_tag
26548
26549
26550 as_fn_exit 0
26551 _ACEOF
26552 ac_clean_files=$ac_clean_files_save
26553
26554 test $ac_write_fail = 0 ||
26555   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26556
26557
26558 # configure is writing to config.log, and then calls config.status.
26559 # config.status does its own redirection, appending to config.log.
26560 # Unfortunately, on DOS this fails, as config.log is still kept open
26561 # by configure, so config.status won't be able to write to it; its
26562 # output is simply discarded.  So we exec the FD to /dev/null,
26563 # effectively closing config.log, so it can be properly (re)opened and
26564 # appended to by config.status.  When coming back to configure, we
26565 # need to make the FD available again.
26566 if test "$no_create" != yes; then
26567   ac_cs_success=:
26568   ac_config_status_args=
26569   test "$silent" = yes &&
26570     ac_config_status_args="$ac_config_status_args --quiet"
26571   exec 5>/dev/null
26572   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26573   exec 5>>config.log
26574   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26575   # would make configure fail if this is the last instruction.
26576   $ac_cs_success || as_fn_exit $?
26577 fi
26578 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26579   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26580 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26581 fi
26582