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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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  }
79fi
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.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101     ;;
102esac
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.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 1 + 1 )) = 2 || exit 1
173
174  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178    PATH=/empty FPATH=/empty; export PATH FPATH
179    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
562PACKAGE_URL=
563
564ac_unique_file="tree.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579#  include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584#  include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='LTLIBOBJS
602LIBOBJS
603PICFLAG
604enable_host_shared
605enable_plugin
606pluginlibs
607ISLINC
608ISLLIBS
609GMPINC
610GMPLIBS
611target_cpu_default
612fortran_target_objs
613cxx_target_objs
614c_target_objs
615use_gcc_stdint
616xm_defines
617xm_include_list
618xm_file_list
619tm_p_include_list
620tm_p_file_list
621tm_defines
622tm_include_list
623tm_file_list
624common_out_object_file
625common_out_file
626out_object_file
627out_file
628objc_boehm_gc
629md_file
630local_prefix
631lang_tree_files
632lang_specs_files
633lang_opt_files
634install
635out_host_hook_obj
636host_xm_defines
637host_xm_include_list
638host_xm_file_list
639host_exeext
640gcc_gxx_include_dir_add_sysroot
641gcc_gxx_include_dir
642gcc_config_arguments
643float_h_file
644extra_programs
645extra_objs
646extra_headers_list
647user_headers_inc_next_post
648user_headers_inc_next_pre
649extra_gcc_objs
650TM_MULTILIB_EXCEPTIONS_CONFIG
651TM_MULTILIB_CONFIG
652TM_ENDIAN_CONFIG
653tmake_file
654xmake_file
655cpp_install_dir
656check_languages
657build_file_translate
658build_xm_defines
659build_xm_include_list
660build_xm_file_list
661build_install_headers_dir
662build_exeext
663all_selected_languages
664all_languages
665all_lang_makefrags
666all_gtfiles
667all_compilers
668srcdir
669subdirs
670dollar
671gcc_tooldir
672enable_lto
673DO_LINK_MUTEX
674MAINT
675zlibinc
676zlibdir
677HOST_LIBS
678libgcc_visibility
679gcc_cv_readelf
680gcc_cv_objdump
681ORIGINAL_NM_FOR_TARGET
682gcc_cv_nm
683ORIGINAL_LD_GOLD_FOR_TARGET
684ORIGINAL_LD_BFD_FOR_TARGET
685ORIGINAL_LD_FOR_TARGET
686ORIGINAL_PLUGIN_LD_FOR_TARGET
687gcc_cv_ld
688ORIGINAL_AS_FOR_TARGET
689gcc_cv_as
690enable_fast_install
691objdir
692OTOOL64
693OTOOL
694LIPO
695NMEDIT
696DSYMUTIL
697STRIP
698OBJDUMP
699ac_ct_DUMPBIN
700DUMPBIN
701LD
702FGREP
703SED
704LIBTOOL
705collect2
706STMP_FIXINC
707BUILD_LDFLAGS
708BUILD_CXXFLAGS
709BUILD_CFLAGS
710CXX_FOR_BUILD
711CC_FOR_BUILD
712inhibit_libc
713SYSTEM_HEADER_DIR
714ALL
715CROSS
716CATOBJEXT
717GENCAT
718INSTOBJEXT
719DATADIRNAME
720CATALOGS
721POSUB
722GMSGFMT
723XGETTEXT
724INCINTL
725LIBINTL_DEP
726LIBINTL
727USE_NLS
728extra_opt_files
729extra_modes_file
730NATIVE_SYSTEM_HEADER_DIR
731objext
732manext
733LIBICONV_DEP
734LTLIBICONV
735LIBICONV
736LDEXP_LIB
737EXTRA_GCC_LIBS
738GNAT_LIBEXC
739COLLECT2_LIBS
740build_math_library
741CXXDEPMODE
742DEPDIR
743am__leading_dot
744CXXCPP
745doc_build_sys
746AR
747NM
748BISON
749FLEX
750GENERATED_MANPAGES
751BUILD_INFO
752MAKEINFO
753have_mktemp_command
754make_compare_target
755INSTALL_DATA
756INSTALL_PROGRAM
757INSTALL
758ranlib_flags
759RANLIB
760LN
761LN_S
762AWK
763SET_MAKE
764accel_dir_suffix
765real_target_noncanonical
766enable_as_accelerator
767REPORT_BUGS_TEXI
768REPORT_BUGS_TO
769PKGVERSION
770CONFIGURE_SPECS
771CROSS_SYSTEM_HEADER_DIR
772TARGET_SYSTEM_ROOT_DEFINE
773TARGET_SYSTEM_ROOT
774SYSROOT_CFLAGS_FOR_TARGET
775enable_shared
776enable_fixed_point
777enable_decimal_float
778with_float
779with_cpu
780enable_multiarch
781enable_multilib
782HYBRID_SECONDARY
783coverage_flags
784valgrind_command
785valgrind_path_defines
786valgrind_path
787TREECHECKING
788TREEBROWSER
789nocommon_flag
790noexception_flags
791warn_cxxflags
792warn_cflags
793c_strict_warn
794strict_warn
795c_loose_warn
796loose_warn
797EGREP
798GREP
799CPP
800PICFLAG_FOR_TARGET
801GNATMAKE
802GNATBIND
803ac_ct_CXX
804CXXFLAGS
805CXX
806OBJEXT
807EXEEXT
808ac_ct_CC
809CPPFLAGS
810LDFLAGS
811CFLAGS
812CC
813GENINSRC
814target_subdir
815host_subdir
816build_subdir
817build_libsubdir
818target_noncanonical
819target_os
820target_vendor
821target_cpu
822target
823host_os
824host_vendor
825host_cpu
826host
827build_os
828build_vendor
829build_cpu
830build
831target_alias
832host_alias
833build_alias
834LIBS
835ECHO_T
836ECHO_N
837ECHO_C
838DEFS
839mandir
840localedir
841libdir
842psdir
843pdfdir
844dvidir
845htmldir
846infodir
847docdir
848oldincludedir
849includedir
850localstatedir
851sharedstatedir
852sysconfdir
853datadir
854datarootdir
855libexecdir
856sbindir
857bindir
858program_transform_name
859prefix
860exec_prefix
861PACKAGE_URL
862PACKAGE_BUGREPORT
863PACKAGE_STRING
864PACKAGE_VERSION
865PACKAGE_TARNAME
866PACKAGE_NAME
867PATH_SEPARATOR
868SHELL'
869ac_subst_files='option_includes
870language_hooks'
871ac_user_opts='
872enable_option_checking
873with_build_libsubdir
874with_local_prefix
875with_gxx_include_dir
876with_cpp_install_dir
877enable_generated_files_in_srcdir
878with_gnu_ld
879with_ld
880with_demangler_in_ld
881with_gnu_as
882with_as
883enable_largefile
884enable_build_format_warnings
885enable_werror_always
886enable_checking
887enable_coverage
888enable_gather_detailed_mem_stats
889enable_valgrind_annotations
890with_hybrid_secondary
891with_stabs
892enable_multilib
893enable_multiarch
894enable___cxa_atexit
895enable_decimal_float
896enable_fixed_point
897enable_threads
898enable_tls
899enable_objc_gc
900with_dwarf2
901enable_shared
902with_native_system_header_dir
903with_build_sysroot
904with_sysroot
905with_specs
906with_pkgversion
907with_bugurl
908enable_languages
909with_multilib_list
910enable_rpath
911with_libiconv_prefix
912enable_sjlj_exceptions
913enable_secureplt
914enable_leading_mingw64_underscores
915enable_cld
916enable_frame_pointer
917enable_win32_registry
918enable_static
919with_pic
920enable_fast_install
921enable_libtool_lock
922enable_ld
923enable_gold
924with_plugin_ld
925enable_gnu_indirect_function
926enable_initfini_array
927enable_comdat
928enable_fix_cortex_a53_835769
929enable_fix_cortex_a53_843419
930with_glibc_version
931enable_gnu_unique_object
932enable_linker_build_id
933with_long_double_128
934with_gc
935with_system_zlib
936enable_maintainer_mode
937enable_link_mutex
938enable_version_specific_runtime_libs
939enable_plugin
940enable_host_shared
941enable_libquadmath_support
942with_linker_hash_style
943with_diagnostics_color
944'
945      ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951LIBS
952CPPFLAGS
953CXX
954CXXFLAGS
955CCC
956CPP
957CXXCPP
958GMPLIBS
959GMPINC
960ISLLIBS
961ISLINC'
962
963
964# Initialize some variables set by options.
965ac_init_help=
966ac_init_version=false
967ac_unrecognized_opts=
968ac_unrecognized_sep=
969# The variables have the same names as the options, with
970# dashes changed to underlines.
971cache_file=/dev/null
972exec_prefix=NONE
973no_create=
974no_recursion=
975prefix=NONE
976program_prefix=NONE
977program_suffix=NONE
978program_transform_name=s,x,x,
979silent=
980site=
981srcdir=
982verbose=
983x_includes=NONE
984x_libraries=NONE
985
986# Installation directory options.
987# These are left unexpanded so users can "make install exec_prefix=/foo"
988# and all the variables that are supposed to be based on exec_prefix
989# by default will actually change.
990# Use braces instead of parens because sh, perl, etc. also accept them.
991# (The list follows the same order as the GNU Coding Standards.)
992bindir='${exec_prefix}/bin'
993sbindir='${exec_prefix}/sbin'
994libexecdir='${exec_prefix}/libexec'
995datarootdir='${prefix}/share'
996datadir='${datarootdir}'
997sysconfdir='${prefix}/etc'
998sharedstatedir='${prefix}/com'
999localstatedir='${prefix}/var'
1000includedir='${prefix}/include'
1001oldincludedir='/usr/include'
1002docdir='${datarootdir}/doc/${PACKAGE}'
1003infodir='${datarootdir}/info'
1004htmldir='${docdir}'
1005dvidir='${docdir}'
1006pdfdir='${docdir}'
1007psdir='${docdir}'
1008libdir='${exec_prefix}/lib'
1009localedir='${datarootdir}/locale'
1010mandir='${datarootdir}/man'
1011
1012ac_prev=
1013ac_dashdash=
1014for ac_option
1015do
1016  # If the previous option needs an argument, assign it.
1017  if test -n "$ac_prev"; then
1018    eval $ac_prev=\$ac_option
1019    ac_prev=
1020    continue
1021  fi
1022
1023  case $ac_option in
1024  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025  *)	ac_optarg=yes ;;
1026  esac
1027
1028  # Accept the important Cygnus configure options, so we can diagnose typos.
1029
1030  case $ac_dashdash$ac_option in
1031  --)
1032    ac_dashdash=yes ;;
1033
1034  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035    ac_prev=bindir ;;
1036  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037    bindir=$ac_optarg ;;
1038
1039  -build | --build | --buil | --bui | --bu)
1040    ac_prev=build_alias ;;
1041  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042    build_alias=$ac_optarg ;;
1043
1044  -cache-file | --cache-file | --cache-fil | --cache-fi \
1045  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046    ac_prev=cache_file ;;
1047  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049    cache_file=$ac_optarg ;;
1050
1051  --config-cache | -C)
1052    cache_file=config.cache ;;
1053
1054  -datadir | --datadir | --datadi | --datad)
1055    ac_prev=datadir ;;
1056  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057    datadir=$ac_optarg ;;
1058
1059  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060  | --dataroo | --dataro | --datar)
1061    ac_prev=datarootdir ;;
1062  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064    datarootdir=$ac_optarg ;;
1065
1066  -disable-* | --disable-*)
1067    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070      as_fn_error "invalid feature name: $ac_useropt"
1071    ac_useropt_orig=$ac_useropt
1072    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073    case $ac_user_opts in
1074      *"
1075"enable_$ac_useropt"
1076"*) ;;
1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078	 ac_unrecognized_sep=', ';;
1079    esac
1080    eval enable_$ac_useropt=no ;;
1081
1082  -docdir | --docdir | --docdi | --doc | --do)
1083    ac_prev=docdir ;;
1084  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085    docdir=$ac_optarg ;;
1086
1087  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088    ac_prev=dvidir ;;
1089  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090    dvidir=$ac_optarg ;;
1091
1092  -enable-* | --enable-*)
1093    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096      as_fn_error "invalid feature name: $ac_useropt"
1097    ac_useropt_orig=$ac_useropt
1098    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099    case $ac_user_opts in
1100      *"
1101"enable_$ac_useropt"
1102"*) ;;
1103      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104	 ac_unrecognized_sep=', ';;
1105    esac
1106    eval enable_$ac_useropt=\$ac_optarg ;;
1107
1108  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110  | --exec | --exe | --ex)
1111    ac_prev=exec_prefix ;;
1112  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114  | --exec=* | --exe=* | --ex=*)
1115    exec_prefix=$ac_optarg ;;
1116
1117  -gas | --gas | --ga | --g)
1118    # Obsolete; use --with-gas.
1119    with_gas=yes ;;
1120
1121  -help | --help | --hel | --he | -h)
1122    ac_init_help=long ;;
1123  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124    ac_init_help=recursive ;;
1125  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126    ac_init_help=short ;;
1127
1128  -host | --host | --hos | --ho)
1129    ac_prev=host_alias ;;
1130  -host=* | --host=* | --hos=* | --ho=*)
1131    host_alias=$ac_optarg ;;
1132
1133  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134    ac_prev=htmldir ;;
1135  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136  | --ht=*)
1137    htmldir=$ac_optarg ;;
1138
1139  -includedir | --includedir | --includedi | --included | --include \
1140  | --includ | --inclu | --incl | --inc)
1141    ac_prev=includedir ;;
1142  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143  | --includ=* | --inclu=* | --incl=* | --inc=*)
1144    includedir=$ac_optarg ;;
1145
1146  -infodir | --infodir | --infodi | --infod | --info | --inf)
1147    ac_prev=infodir ;;
1148  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149    infodir=$ac_optarg ;;
1150
1151  -libdir | --libdir | --libdi | --libd)
1152    ac_prev=libdir ;;
1153  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154    libdir=$ac_optarg ;;
1155
1156  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157  | --libexe | --libex | --libe)
1158    ac_prev=libexecdir ;;
1159  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160  | --libexe=* | --libex=* | --libe=*)
1161    libexecdir=$ac_optarg ;;
1162
1163  -localedir | --localedir | --localedi | --localed | --locale)
1164    ac_prev=localedir ;;
1165  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166    localedir=$ac_optarg ;;
1167
1168  -localstatedir | --localstatedir | --localstatedi | --localstated \
1169  | --localstate | --localstat | --localsta | --localst | --locals)
1170    ac_prev=localstatedir ;;
1171  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173    localstatedir=$ac_optarg ;;
1174
1175  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176    ac_prev=mandir ;;
1177  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178    mandir=$ac_optarg ;;
1179
1180  -nfp | --nfp | --nf)
1181    # Obsolete; use --without-fp.
1182    with_fp=no ;;
1183
1184  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185  | --no-cr | --no-c | -n)
1186    no_create=yes ;;
1187
1188  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190    no_recursion=yes ;;
1191
1192  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194  | --oldin | --oldi | --old | --ol | --o)
1195    ac_prev=oldincludedir ;;
1196  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199    oldincludedir=$ac_optarg ;;
1200
1201  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202    ac_prev=prefix ;;
1203  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204    prefix=$ac_optarg ;;
1205
1206  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207  | --program-pre | --program-pr | --program-p)
1208    ac_prev=program_prefix ;;
1209  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211    program_prefix=$ac_optarg ;;
1212
1213  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214  | --program-suf | --program-su | --program-s)
1215    ac_prev=program_suffix ;;
1216  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218    program_suffix=$ac_optarg ;;
1219
1220  -program-transform-name | --program-transform-name \
1221  | --program-transform-nam | --program-transform-na \
1222  | --program-transform-n | --program-transform- \
1223  | --program-transform | --program-transfor \
1224  | --program-transfo | --program-transf \
1225  | --program-trans | --program-tran \
1226  | --progr-tra | --program-tr | --program-t)
1227    ac_prev=program_transform_name ;;
1228  -program-transform-name=* | --program-transform-name=* \
1229  | --program-transform-nam=* | --program-transform-na=* \
1230  | --program-transform-n=* | --program-transform-=* \
1231  | --program-transform=* | --program-transfor=* \
1232  | --program-transfo=* | --program-transf=* \
1233  | --program-trans=* | --program-tran=* \
1234  | --progr-tra=* | --program-tr=* | --program-t=*)
1235    program_transform_name=$ac_optarg ;;
1236
1237  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238    ac_prev=pdfdir ;;
1239  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240    pdfdir=$ac_optarg ;;
1241
1242  -psdir | --psdir | --psdi | --psd | --ps)
1243    ac_prev=psdir ;;
1244  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245    psdir=$ac_optarg ;;
1246
1247  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248  | -silent | --silent | --silen | --sile | --sil)
1249    silent=yes ;;
1250
1251  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252    ac_prev=sbindir ;;
1253  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254  | --sbi=* | --sb=*)
1255    sbindir=$ac_optarg ;;
1256
1257  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259  | --sharedst | --shareds | --shared | --share | --shar \
1260  | --sha | --sh)
1261    ac_prev=sharedstatedir ;;
1262  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265  | --sha=* | --sh=*)
1266    sharedstatedir=$ac_optarg ;;
1267
1268  -site | --site | --sit)
1269    ac_prev=site ;;
1270  -site=* | --site=* | --sit=*)
1271    site=$ac_optarg ;;
1272
1273  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274    ac_prev=srcdir ;;
1275  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276    srcdir=$ac_optarg ;;
1277
1278  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279  | --syscon | --sysco | --sysc | --sys | --sy)
1280    ac_prev=sysconfdir ;;
1281  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283    sysconfdir=$ac_optarg ;;
1284
1285  -target | --target | --targe | --targ | --tar | --ta | --t)
1286    ac_prev=target_alias ;;
1287  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288    target_alias=$ac_optarg ;;
1289
1290  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291    verbose=yes ;;
1292
1293  -version | --version | --versio | --versi | --vers | -V)
1294    ac_init_version=: ;;
1295
1296  -with-* | --with-*)
1297    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298    # Reject names that are not valid shell variable names.
1299    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300      as_fn_error "invalid package name: $ac_useropt"
1301    ac_useropt_orig=$ac_useropt
1302    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303    case $ac_user_opts in
1304      *"
1305"with_$ac_useropt"
1306"*) ;;
1307      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308	 ac_unrecognized_sep=', ';;
1309    esac
1310    eval with_$ac_useropt=\$ac_optarg ;;
1311
1312  -without-* | --without-*)
1313    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314    # Reject names that are not valid shell variable names.
1315    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316      as_fn_error "invalid package name: $ac_useropt"
1317    ac_useropt_orig=$ac_useropt
1318    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319    case $ac_user_opts in
1320      *"
1321"with_$ac_useropt"
1322"*) ;;
1323      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1324	 ac_unrecognized_sep=', ';;
1325    esac
1326    eval with_$ac_useropt=no ;;
1327
1328  --x)
1329    # Obsolete; use --with-x.
1330    with_x=yes ;;
1331
1332  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1333  | --x-incl | --x-inc | --x-in | --x-i)
1334    ac_prev=x_includes ;;
1335  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1336  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1337    x_includes=$ac_optarg ;;
1338
1339  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1340  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1341    ac_prev=x_libraries ;;
1342  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1343  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1344    x_libraries=$ac_optarg ;;
1345
1346  -*) as_fn_error "unrecognized option: \`$ac_option'
1347Try \`$0 --help' for more information."
1348    ;;
1349
1350  *=*)
1351    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1352    # Reject names that are not valid shell variable names.
1353    case $ac_envvar in #(
1354      '' | [0-9]* | *[!_$as_cr_alnum]* )
1355      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1356    esac
1357    eval $ac_envvar=\$ac_optarg
1358    export $ac_envvar ;;
1359
1360  *)
1361    # FIXME: should be removed in autoconf 3.0.
1362    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1363    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1364      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1365    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1366    ;;
1367
1368  esac
1369done
1370
1371if test -n "$ac_prev"; then
1372  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1373  as_fn_error "missing argument to $ac_option"
1374fi
1375
1376if test -n "$ac_unrecognized_opts"; then
1377  case $enable_option_checking in
1378    no) ;;
1379    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1380    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381  esac
1382fi
1383
1384# Check all directory arguments for consistency.
1385for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1386		datadir sysconfdir sharedstatedir localstatedir includedir \
1387		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1388		libdir localedir mandir
1389do
1390  eval ac_val=\$$ac_var
1391  # Remove trailing slashes.
1392  case $ac_val in
1393    */ )
1394      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1395      eval $ac_var=\$ac_val;;
1396  esac
1397  # Be sure to have absolute directory names.
1398  case $ac_val in
1399    [\\/$]* | ?:[\\/]* )  continue;;
1400    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401  esac
1402  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1403done
1404
1405# There might be people who depend on the old broken behavior: `$host'
1406# used to hold the argument of --host etc.
1407# FIXME: To remove some day.
1408build=$build_alias
1409host=$host_alias
1410target=$target_alias
1411
1412# FIXME: To remove some day.
1413if test "x$host_alias" != x; then
1414  if test "x$build_alias" = x; then
1415    cross_compiling=maybe
1416    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1417    If a cross compiler is detected then cross compile mode will be used." >&2
1418  elif test "x$build_alias" != "x$host_alias"; then
1419    cross_compiling=yes
1420  fi
1421fi
1422
1423ac_tool_prefix=
1424test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425
1426test "$silent" = yes && exec 6>/dev/null
1427
1428
1429ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430ac_ls_di=`ls -di .` &&
1431ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432  as_fn_error "working directory cannot be determined"
1433test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434  as_fn_error "pwd does not report name of working directory"
1435
1436
1437# Find the source files, if location was not specified.
1438if test -z "$srcdir"; then
1439  ac_srcdir_defaulted=yes
1440  # Try the directory containing this script, then the parent directory.
1441  ac_confdir=`$as_dirname -- "$as_myself" ||
1442$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443	 X"$as_myself" : 'X\(//\)[^/]' \| \
1444	 X"$as_myself" : 'X\(//\)$' \| \
1445	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446$as_echo X"$as_myself" |
1447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448	    s//\1/
1449	    q
1450	  }
1451	  /^X\(\/\/\)[^/].*/{
1452	    s//\1/
1453	    q
1454	  }
1455	  /^X\(\/\/\)$/{
1456	    s//\1/
1457	    q
1458	  }
1459	  /^X\(\/\).*/{
1460	    s//\1/
1461	    q
1462	  }
1463	  s/.*/./; q'`
1464  srcdir=$ac_confdir
1465  if test ! -r "$srcdir/$ac_unique_file"; then
1466    srcdir=..
1467  fi
1468else
1469  ac_srcdir_defaulted=no
1470fi
1471if test ! -r "$srcdir/$ac_unique_file"; then
1472  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1474fi
1475ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1476ac_abs_confdir=`(
1477	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1478	pwd)`
1479# When building in place, set srcdir=.
1480if test "$ac_abs_confdir" = "$ac_pwd"; then
1481  srcdir=.
1482fi
1483# Remove unnecessary trailing slashes from srcdir.
1484# Double slashes in file names in object file debugging info
1485# mess up M-x gdb in Emacs.
1486case $srcdir in
1487*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1488esac
1489for ac_var in $ac_precious_vars; do
1490  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491  eval ac_env_${ac_var}_value=\$${ac_var}
1492  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494done
1495
1496#
1497# Report the --help message.
1498#
1499if test "$ac_init_help" = "long"; then
1500  # Omit some internal or obsolete options to make the list less imposing.
1501  # This message is too long to be a string in the A/UX 3.1 sh.
1502  cat <<_ACEOF
1503\`configure' configures this package to adapt to many kinds of systems.
1504
1505Usage: $0 [OPTION]... [VAR=VALUE]...
1506
1507To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508VAR=VALUE.  See below for descriptions of some of the useful variables.
1509
1510Defaults for the options are specified in brackets.
1511
1512Configuration:
1513  -h, --help              display this help and exit
1514      --help=short        display options specific to this package
1515      --help=recursive    display the short help of all the included packages
1516  -V, --version           display version information and exit
1517  -q, --quiet, --silent   do not print \`checking...' messages
1518      --cache-file=FILE   cache test results in FILE [disabled]
1519  -C, --config-cache      alias for \`--cache-file=config.cache'
1520  -n, --no-create         do not create output files
1521      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1522
1523Installation directories:
1524  --prefix=PREFIX         install architecture-independent files in PREFIX
1525                          [$ac_default_prefix]
1526  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1527                          [PREFIX]
1528
1529By default, \`make install' will install all the files in
1530\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1531an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532for instance \`--prefix=\$HOME'.
1533
1534For better control, use the options below.
1535
1536Fine tuning of the installation directories:
1537  --bindir=DIR            user executables [EPREFIX/bin]
1538  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1539  --libexecdir=DIR        program executables [EPREFIX/libexec]
1540  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1541  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1542  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1543  --libdir=DIR            object code libraries [EPREFIX/lib]
1544  --includedir=DIR        C header files [PREFIX/include]
1545  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1546  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1547  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1548  --infodir=DIR           info documentation [DATAROOTDIR/info]
1549  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1550  --mandir=DIR            man documentation [DATAROOTDIR/man]
1551  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1552  --htmldir=DIR           html documentation [DOCDIR]
1553  --dvidir=DIR            dvi documentation [DOCDIR]
1554  --pdfdir=DIR            pdf documentation [DOCDIR]
1555  --psdir=DIR             ps documentation [DOCDIR]
1556_ACEOF
1557
1558  cat <<\_ACEOF
1559
1560Program names:
1561  --program-prefix=PREFIX            prepend PREFIX to installed program names
1562  --program-suffix=SUFFIX            append SUFFIX to installed program names
1563  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1564
1565System types:
1566  --build=BUILD     configure for building on BUILD [guessed]
1567  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1568  --target=TARGET   configure for building compilers for TARGET [HOST]
1569_ACEOF
1570fi
1571
1572if test -n "$ac_init_help"; then
1573
1574  cat <<\_ACEOF
1575
1576Optional Features:
1577  --disable-option-checking  ignore unrecognized --enable/--with options
1578  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1579  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1580  --enable-generated-files-in-srcdir
1581                          put copies of generated files in source dir intended
1582                          for creating source tarballs for users without
1583                          texinfo bison or flex
1584  --disable-largefile     omit support for large files
1585  --disable-build-format-warnings
1586                          don't use -Wformat while building GCC
1587  --enable-werror-always  enable -Werror despite compiler version
1588  --enable-checking[=LIST]
1589                          enable expensive run-time checks. With LIST, enable
1590                          only specific categories of checks. Categories are:
1591                          yes,no,all,none,release. Flags are:
1592                          assert,df,fold,gc,gcac,gimple,misc,
1593                          rtlflag,rtl,runtime,tree,valgrind,types
1594  --enable-coverage[=LEVEL]
1595                          enable compiler's code coverage collection. Use to
1596                          measure compiler performance and locate unused parts
1597                          of the compiler. With LEVEL, specify optimization.
1598                          Values are opt, noopt, default is noopt
1599  --enable-gather-detailed-mem-stats
1600                          enable detailed memory allocation stats gathering
1601  --enable-valgrind-annotations
1602                          enable valgrind runtime interaction
1603  --enable-multilib       enable library support for multiple ABIs
1604  --enable-multiarch      enable support for multiarch paths
1605  --enable-__cxa_atexit   enable __cxa_atexit for C++
1606  --enable-decimal-float={no,yes,bid,dpd}
1607			enable decimal float extension to C.  Selecting 'bid'
1608			or 'dpd' choses which decimal floating point format
1609			to use
1610  --enable-fixed-point    enable fixed-point arithmetic extension to C
1611  --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1612                          package
1613  --enable-tls            enable or disable generation of tls code overriding
1614                          the assembler check for tls support
1615  --enable-objc-gc        enable the use of Boehm's garbage collector with the
1616                          GNU Objective-C runtime
1617  --disable-shared        don't provide a shared libgcc
1618  --enable-languages=LIST specify which front-ends to build
1619  --disable-rpath         do not hardcode runtime library paths
1620  --enable-sjlj-exceptions
1621                          arrange to use setjmp/longjmp exception handling
1622  --enable-secureplt      enable -msecure-plt by default for PowerPC
1623  --enable-leading-mingw64-underscores
1624                          enable leading underscores on 64 bit mingw targets
1625  --enable-cld            enable -mcld by default for 32bit x86
1626  --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1627                          x86
1628  --disable-win32-registry
1629                          disable lookup of installation paths in the Registry
1630                          on Windows hosts
1631  --enable-win32-registry enable registry lookup (default)
1632  --enable-win32-registry=KEY
1633                          use KEY instead of GCC version as the last portion
1634                          of the registry key
1635  --enable-shared[=PKGS]  build shared libraries [default=yes]
1636  --enable-static[=PKGS]  build static libraries [default=yes]
1637  --enable-fast-install[=PKGS]
1638                          optimize for fast installation [default=yes]
1639  --disable-libtool-lock  avoid locking (might break parallel builds)
1640  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1641  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1642  --enable-gnu-indirect-function
1643                          enable the use of the @gnu_indirect_function to
1644                          glibc systems
1645  --enable-initfini-array	use .init_array/.fini_array sections
1646  --enable-comdat         enable COMDAT group support
1647
1648  --enable-fix-cortex-a53-835769
1649                          enable workaround for AArch64 Cortex-A53 erratum
1650                          835769 by default
1651  --disable-fix-cortex-a53-835769
1652                          disable workaround for AArch64 Cortex-A53 erratum
1653                          835769 by default
1654
1655
1656  --enable-fix-cortex-a53-843419
1657                          enable workaround for AArch64 Cortex-A53 erratum
1658                          843419 by default
1659  --disable-fix-cortex-a53-843419
1660                          disable workaround for AArch64 Cortex-A53 erratum
1661                          843419 by default
1662
1663  --enable-gnu-unique-object
1664                          enable the use of the @gnu_unique_object ELF
1665                          extension on glibc systems
1666  --enable-linker-build-id
1667                          compiler will always pass --build-id to linker
1668  --enable-maintainer-mode
1669                          enable make rules and dependencies not useful (and
1670                          sometimes confusing) to the casual installer
1671  --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1672                          thrashing on the build machine
1673  --enable-version-specific-runtime-libs
1674                          specify that runtime libraries should be installed
1675                          in a compiler-specific directory
1676  --enable-plugin         enable plugin support
1677  --enable-host-shared    build host code as shared libraries
1678  --disable-libquadmath-support
1679                          disable libquadmath support for Fortran
1680
1681Optional Packages:
1682  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1683  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1684  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1685  --with-local-prefix=DIR specifies directory to put local include
1686  --with-gxx-include-dir=DIR
1687                          specifies directory to put g++ header files
1688  --with-cpp-install-dir=DIR
1689                          install the user visible C preprocessor in DIR
1690                          (relative to PREFIX) as well as PREFIX/bin
1691  --with-gnu-ld           arrange to work with GNU ld
1692  --with-ld               arrange to use the specified ld (full pathname)
1693  --with-demangler-in-ld  try to use demangler in GNU ld
1694  --with-gnu-as           arrange to work with GNU as
1695  --with-as               arrange to use the specified as (full pathname)
1696  --with-hybrid_secondary specify the packaging architecture for building a
1697                          secondary compiler for a Haiku hybrid system
1698  --with-stabs            arrange to use stabs instead of host debug format
1699  --with-dwarf2           force the default debug format to be DWARF 2
1700  --with-native-system-header-dir=dir
1701                          use dir as the directory to look for standard
1702                          system header files in.  Defaults to /usr/include.
1703  --with-build-sysroot=sysroot
1704                          use sysroot as the system root during the build
1705  --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1706  --with-specs=SPECS      add SPECS to driver command-line processing
1707  --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1708  --with-bugurl=URL       Direct users to URL to report a bug
1709  --with-multilib-list    select multilibs (AArch64, SH and x86-64 only)
1710  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1711  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1712  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1713  --with-pic              try to use only PIC/non-PIC objects [default=use
1714                          both]
1715  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1716  --with-plugin-ld=[ARG]  specify the plugin linker
1717  --with-glibc-version=M.N
1718                          assume GCC used with glibc version M.N or later
1719  --with-long-double-128  use 128-bit long double by default
1720  --with-gc={page,zone}   this option is not supported anymore. It used to
1721                          choose the garbage collection mechanism to use with
1722                          the compiler
1723  --with-system-zlib      use installed libz
1724  --with-linker-hash-style={sysv,gnu,both}
1725                          specify the linker hash style
1726  --with-diagnostics-color={never,auto,auto-if-env,always}
1727                          specify the default of -fdiagnostics-color option
1728                          auto-if-env stands for -fdiagnostics-color=auto if
1729                          GCC_COLOR environment variable is present and
1730                          -fdiagnostics-color=never otherwise
1731
1732Some influential environment variables:
1733  CC          C compiler command
1734  CFLAGS      C compiler flags
1735  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1736              nonstandard directory <lib dir>
1737  LIBS        libraries to pass to the linker, e.g. -l<library>
1738  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1739              you have headers in a nonstandard directory <include dir>
1740  CXX         C++ compiler command
1741  CXXFLAGS    C++ compiler flags
1742  CPP         C preprocessor
1743  CXXCPP      C++ preprocessor
1744  GMPLIBS     How to link GMP
1745  GMPINC      How to find GMP include files
1746  ISLLIBS     How to link ISL
1747  ISLINC      How to find ISL include files
1748
1749Use these variables to override the choices made by `configure' or to help
1750it to find libraries and programs with nonstandard names/locations.
1751
1752Report bugs to the package provider.
1753_ACEOF
1754ac_status=$?
1755fi
1756
1757if test "$ac_init_help" = "recursive"; then
1758  # If there are subdirs, report their specific --help.
1759  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760    test -d "$ac_dir" ||
1761      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1762      continue
1763    ac_builddir=.
1764
1765case "$ac_dir" in
1766.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767*)
1768  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1769  # A ".." for each directory in $ac_dir_suffix.
1770  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1771  case $ac_top_builddir_sub in
1772  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1773  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1774  esac ;;
1775esac
1776ac_abs_top_builddir=$ac_pwd
1777ac_abs_builddir=$ac_pwd$ac_dir_suffix
1778# for backward compatibility:
1779ac_top_builddir=$ac_top_build_prefix
1780
1781case $srcdir in
1782  .)  # We are building in place.
1783    ac_srcdir=.
1784    ac_top_srcdir=$ac_top_builddir_sub
1785    ac_abs_top_srcdir=$ac_pwd ;;
1786  [\\/]* | ?:[\\/]* )  # Absolute name.
1787    ac_srcdir=$srcdir$ac_dir_suffix;
1788    ac_top_srcdir=$srcdir
1789    ac_abs_top_srcdir=$srcdir ;;
1790  *) # Relative name.
1791    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1792    ac_top_srcdir=$ac_top_build_prefix$srcdir
1793    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1794esac
1795ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1796
1797    cd "$ac_dir" || { ac_status=$?; continue; }
1798    # Check for guested configure.
1799    if test -f "$ac_srcdir/configure.gnu"; then
1800      echo &&
1801      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1802    elif test -f "$ac_srcdir/configure"; then
1803      echo &&
1804      $SHELL "$ac_srcdir/configure" --help=recursive
1805    else
1806      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1807    fi || ac_status=$?
1808    cd "$ac_pwd" || { ac_status=$?; break; }
1809  done
1810fi
1811
1812test -n "$ac_init_help" && exit $ac_status
1813if $ac_init_version; then
1814  cat <<\_ACEOF
1815configure
1816generated by GNU Autoconf 2.64
1817
1818Copyright (C) 2009 Free Software Foundation, Inc.
1819This configure script is free software; the Free Software Foundation
1820gives unlimited permission to copy, distribute and modify it.
1821_ACEOF
1822  exit
1823fi
1824
1825## ------------------------ ##
1826## Autoconf initialization. ##
1827## ------------------------ ##
1828
1829# ac_fn_c_try_compile LINENO
1830# --------------------------
1831# Try to compile conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_c_try_compile ()
1833{
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  rm -f conftest.$ac_objext
1836  if { { ac_try="$ac_compile"
1837case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_compile") 2>conftest.err
1844  ac_status=$?
1845  if test -s conftest.err; then
1846    grep -v '^ *+' conftest.err >conftest.er1
1847    cat conftest.er1 >&5
1848    mv -f conftest.er1 conftest.err
1849  fi
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && {
1852	 test -z "$ac_c_werror_flag" ||
1853	 test ! -s conftest.err
1854       } && test -s conftest.$ac_objext; then :
1855  ac_retval=0
1856else
1857  $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860	ac_retval=1
1861fi
1862  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863  return $ac_retval
1864
1865} # ac_fn_c_try_compile
1866
1867# ac_fn_cxx_try_compile LINENO
1868# ----------------------------
1869# Try to compile conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_cxx_try_compile ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  rm -f conftest.$ac_objext
1874  if { { ac_try="$ac_compile"
1875case "(($ac_try" in
1876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877  *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881  (eval "$ac_compile") 2>conftest.err
1882  ac_status=$?
1883  if test -s conftest.err; then
1884    grep -v '^ *+' conftest.err >conftest.er1
1885    cat conftest.er1 >&5
1886    mv -f conftest.er1 conftest.err
1887  fi
1888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889  test $ac_status = 0; } && {
1890	 test -z "$ac_cxx_werror_flag" ||
1891	 test ! -s conftest.err
1892       } && test -s conftest.$ac_objext; then :
1893  ac_retval=0
1894else
1895  $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898	ac_retval=1
1899fi
1900  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901  return $ac_retval
1902
1903} # ac_fn_cxx_try_compile
1904
1905# ac_fn_c_try_cpp LINENO
1906# ----------------------
1907# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908ac_fn_c_try_cpp ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  if { { ac_try="$ac_cpp conftest.$ac_ext"
1912case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919  ac_status=$?
1920  if test -s conftest.err; then
1921    grep -v '^ *+' conftest.err >conftest.er1
1922    cat conftest.er1 >&5
1923    mv -f conftest.er1 conftest.err
1924  fi
1925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926  test $ac_status = 0; } >/dev/null && {
1927	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1928	 test ! -s conftest.err
1929       }; then :
1930  ac_retval=0
1931else
1932  $as_echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935    ac_retval=1
1936fi
1937  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938  return $ac_retval
1939
1940} # ac_fn_c_try_cpp
1941
1942# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943# -------------------------------------------------------
1944# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945# the include files in INCLUDES and setting the cache variable VAR
1946# accordingly.
1947ac_fn_c_check_header_mongrel ()
1948{
1949  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
1953if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954  $as_echo_n "(cached) " >&6
1955fi
1956eval ac_res=\$$3
1957	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958$as_echo "$ac_res" >&6; }
1959else
1960  # Is the header compilable?
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962$as_echo_n "checking $2 usability... " >&6; }
1963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h.  */
1965$4
1966#include <$2>
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969  ac_header_compiler=yes
1970else
1971  ac_header_compiler=no
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975$as_echo "$ac_header_compiler" >&6; }
1976
1977# Is the header present?
1978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979$as_echo_n "checking $2 presence... " >&6; }
1980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982#include <$2>
1983_ACEOF
1984if ac_fn_c_try_cpp "$LINENO"; then :
1985  ac_header_preproc=yes
1986else
1987  ac_header_preproc=no
1988fi
1989rm -f conftest.err conftest.$ac_ext
1990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991$as_echo "$ac_header_preproc" >&6; }
1992
1993# So?  What about this header?
1994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995  yes:no: )
1996    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000    ;;
2001  no:yes:* )
2002    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2005$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2006    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2009$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2010    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012    ;;
2013esac
2014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015$as_echo_n "checking for $2... " >&6; }
2016if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017  $as_echo_n "(cached) " >&6
2018else
2019  eval "$3=\$ac_header_compiler"
2020fi
2021eval ac_res=\$$3
2022	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023$as_echo "$ac_res" >&6; }
2024fi
2025  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026
2027} # ac_fn_c_check_header_mongrel
2028
2029# ac_fn_c_try_run LINENO
2030# ----------------------
2031# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2032# that executables *can* be run.
2033ac_fn_c_try_run ()
2034{
2035  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036  if { { ac_try="$ac_link"
2037case "(($ac_try" in
2038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039  *) ac_try_echo=$ac_try;;
2040esac
2041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042$as_echo "$ac_try_echo"; } >&5
2043  (eval "$ac_link") 2>&5
2044  ac_status=$?
2045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2047  { { case "(($ac_try" in
2048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049  *) ac_try_echo=$ac_try;;
2050esac
2051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052$as_echo "$ac_try_echo"; } >&5
2053  (eval "$ac_try") 2>&5
2054  ac_status=$?
2055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056  test $ac_status = 0; }; }; then :
2057  ac_retval=0
2058else
2059  $as_echo "$as_me: program exited with status $ac_status" >&5
2060       $as_echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063       ac_retval=$ac_status
2064fi
2065  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067  return $ac_retval
2068
2069} # ac_fn_c_try_run
2070
2071# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2072# -------------------------------------------------------
2073# Tests whether HEADER exists and can be compiled using the include files in
2074# INCLUDES, setting the cache variable VAR accordingly.
2075ac_fn_c_check_header_compile ()
2076{
2077  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; }
2080if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081  $as_echo_n "(cached) " >&6
2082else
2083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085$4
2086#include <$2>
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089  eval "$3=yes"
2090else
2091  eval "$3=no"
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094fi
2095eval ac_res=\$$3
2096	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099
2100} # ac_fn_c_check_header_compile
2101
2102# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2103# --------------------------------------------
2104# Tries to find the compile-time value of EXPR in a program that includes
2105# INCLUDES, setting VAR accordingly. Returns whether the value could be
2106# computed
2107ac_fn_c_compute_int ()
2108{
2109  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110  if test "$cross_compiling" = yes; then
2111    # Depending upon the size, compute the lo and hi bounds.
2112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h.  */
2114$4
2115int
2116main ()
2117{
2118static int test_array [1 - 2 * !(($2) >= 0)];
2119test_array [0] = 0
2120
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_compile "$LINENO"; then :
2126  ac_lo=0 ac_mid=0
2127  while :; do
2128    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130$4
2131int
2132main ()
2133{
2134static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2135test_array [0] = 0
2136
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142  ac_hi=$ac_mid; break
2143else
2144  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2145			if test $ac_lo -le $ac_mid; then
2146			  ac_lo= ac_hi=
2147			  break
2148			fi
2149			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152  done
2153else
2154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h.  */
2156$4
2157int
2158main ()
2159{
2160static int test_array [1 - 2 * !(($2) < 0)];
2161test_array [0] = 0
2162
2163  ;
2164  return 0;
2165}
2166_ACEOF
2167if ac_fn_c_try_compile "$LINENO"; then :
2168  ac_hi=-1 ac_mid=-1
2169  while :; do
2170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173int
2174main ()
2175{
2176static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2177test_array [0] = 0
2178
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"; then :
2184  ac_lo=$ac_mid; break
2185else
2186  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2187			if test $ac_mid -le $ac_hi; then
2188			  ac_lo= ac_hi=
2189			  break
2190			fi
2191			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194  done
2195else
2196  ac_lo= ac_hi=
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201# Binary search between lo and hi bounds.
2202while test "x$ac_lo" != "x$ac_hi"; do
2203  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h.  */
2206$4
2207int
2208main ()
2209{
2210static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2211test_array [0] = 0
2212
2213  ;
2214  return 0;
2215}
2216_ACEOF
2217if ac_fn_c_try_compile "$LINENO"; then :
2218  ac_hi=$ac_mid
2219else
2220  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223done
2224case $ac_lo in #((
2225?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2226'') ac_retval=1 ;;
2227esac
2228  else
2229    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h.  */
2231$4
2232static long int longval () { return $2; }
2233static unsigned long int ulongval () { return $2; }
2234#include <stdio.h>
2235#include <stdlib.h>
2236int
2237main ()
2238{
2239
2240  FILE *f = fopen ("conftest.val", "w");
2241  if (! f)
2242    return 1;
2243  if (($2) < 0)
2244    {
2245      long int i = longval ();
2246      if (i != ($2))
2247	return 1;
2248      fprintf (f, "%ld", i);
2249    }
2250  else
2251    {
2252      unsigned long int i = ulongval ();
2253      if (i != ($2))
2254	return 1;
2255      fprintf (f, "%lu", i);
2256    }
2257  /* Do not output a trailing newline, as this causes \r\n confusion
2258     on some platforms.  */
2259  return ferror (f) || fclose (f) != 0;
2260
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_run "$LINENO"; then :
2266  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2267else
2268  ac_retval=1
2269fi
2270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2271  conftest.$ac_objext conftest.beam conftest.$ac_ext
2272rm -f conftest.val
2273
2274  fi
2275  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276  return $ac_retval
2277
2278} # ac_fn_c_compute_int
2279
2280# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2281# -------------------------------------------
2282# Tests whether TYPE exists after having included INCLUDES, setting cache
2283# variable VAR accordingly.
2284ac_fn_c_check_type ()
2285{
2286  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288$as_echo_n "checking for $2... " >&6; }
2289if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290  $as_echo_n "(cached) " >&6
2291else
2292  eval "$3=no"
2293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h.  */
2295$4
2296int
2297main ()
2298{
2299if (sizeof ($2))
2300	 return 0;
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307/* end confdefs.h.  */
2308$4
2309int
2310main ()
2311{
2312if (sizeof (($2)))
2313	    return 0;
2314  ;
2315  return 0;
2316}
2317_ACEOF
2318if ac_fn_c_try_compile "$LINENO"; then :
2319
2320else
2321  eval "$3=yes"
2322fi
2323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324fi
2325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326fi
2327eval ac_res=\$$3
2328	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329$as_echo "$ac_res" >&6; }
2330  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331
2332} # ac_fn_c_check_type
2333
2334# ac_fn_c_find_intX_t LINENO BITS VAR
2335# -----------------------------------
2336# Finds a signed integer type with width BITS, setting cache variable VAR
2337# accordingly.
2338ac_fn_c_find_intX_t ()
2339{
2340  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2342$as_echo_n "checking for int$2_t... " >&6; }
2343if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344  $as_echo_n "(cached) " >&6
2345else
2346  eval "$3=no"
2347     for ac_type in int$2_t 'int' 'long int' \
2348	 'long long int' 'short int' 'signed char'; do
2349       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350/* end confdefs.h.  */
2351$ac_includes_default
2352int
2353main ()
2354{
2355static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2356test_array [0] = 0
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_compile "$LINENO"; then :
2363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364/* end confdefs.h.  */
2365$ac_includes_default
2366int
2367main ()
2368{
2369static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2370		 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2371test_array [0] = 0
2372
2373  ;
2374  return 0;
2375}
2376_ACEOF
2377if ac_fn_c_try_compile "$LINENO"; then :
2378
2379else
2380  case $ac_type in #(
2381  int$2_t) :
2382    eval "$3=yes" ;; #(
2383  *) :
2384    eval "$3=\$ac_type" ;;
2385esac
2386fi
2387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388fi
2389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390       eval as_val=\$$3
2391   if test "x$as_val" = x""no; then :
2392
2393else
2394  break
2395fi
2396     done
2397fi
2398eval ac_res=\$$3
2399	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400$as_echo "$ac_res" >&6; }
2401  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402
2403} # ac_fn_c_find_intX_t
2404
2405# ac_fn_c_try_link LINENO
2406# -----------------------
2407# Try to link conftest.$ac_ext, and return whether this succeeded.
2408ac_fn_c_try_link ()
2409{
2410  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411  rm -f conftest.$ac_objext conftest$ac_exeext
2412  if { { ac_try="$ac_link"
2413case "(($ac_try" in
2414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415  *) ac_try_echo=$ac_try;;
2416esac
2417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2418$as_echo "$ac_try_echo"; } >&5
2419  (eval "$ac_link") 2>conftest.err
2420  ac_status=$?
2421  if test -s conftest.err; then
2422    grep -v '^ *+' conftest.err >conftest.er1
2423    cat conftest.er1 >&5
2424    mv -f conftest.er1 conftest.err
2425  fi
2426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2427  test $ac_status = 0; } && {
2428	 test -z "$ac_c_werror_flag" ||
2429	 test ! -s conftest.err
2430       } && test -s conftest$ac_exeext && {
2431	 test "$cross_compiling" = yes ||
2432	 $as_test_x conftest$ac_exeext
2433       }; then :
2434  ac_retval=0
2435else
2436  $as_echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439	ac_retval=1
2440fi
2441  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2442  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2443  # interfere with the next link command; also delete a directory that is
2444  # left behind by Apple's compiler.  We do this before executing the actions.
2445  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2446  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447  return $ac_retval
2448
2449} # ac_fn_c_try_link
2450
2451# ac_fn_c_find_uintX_t LINENO BITS VAR
2452# ------------------------------------
2453# Finds an unsigned integer type with width BITS, setting cache variable VAR
2454# accordingly.
2455ac_fn_c_find_uintX_t ()
2456{
2457  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2459$as_echo_n "checking for uint$2_t... " >&6; }
2460if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2461  $as_echo_n "(cached) " >&6
2462else
2463  eval "$3=no"
2464     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2465	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2466       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467/* end confdefs.h.  */
2468$ac_includes_default
2469int
2470main ()
2471{
2472static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2473test_array [0] = 0
2474
2475  ;
2476  return 0;
2477}
2478_ACEOF
2479if ac_fn_c_try_compile "$LINENO"; then :
2480  case $ac_type in #(
2481  uint$2_t) :
2482    eval "$3=yes" ;; #(
2483  *) :
2484    eval "$3=\$ac_type" ;;
2485esac
2486fi
2487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488       eval as_val=\$$3
2489   if test "x$as_val" = x""no; then :
2490
2491else
2492  break
2493fi
2494     done
2495fi
2496eval ac_res=\$$3
2497	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498$as_echo "$ac_res" >&6; }
2499  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500
2501} # ac_fn_c_find_uintX_t
2502
2503# ac_fn_c_check_header_preproc LINENO HEADER VAR
2504# ----------------------------------------------
2505# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2506ac_fn_c_check_header_preproc ()
2507{
2508  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2510$as_echo_n "checking for $2... " >&6; }
2511if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2512  $as_echo_n "(cached) " >&6
2513else
2514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515/* end confdefs.h.  */
2516#include <$2>
2517_ACEOF
2518if ac_fn_c_try_cpp "$LINENO"; then :
2519  eval "$3=yes"
2520else
2521  eval "$3=no"
2522fi
2523rm -f conftest.err conftest.$ac_ext
2524fi
2525eval ac_res=\$$3
2526	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527$as_echo "$ac_res" >&6; }
2528  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2529
2530} # ac_fn_c_check_header_preproc
2531
2532# ac_fn_cxx_try_cpp LINENO
2533# ------------------------
2534# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2535ac_fn_cxx_try_cpp ()
2536{
2537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538  if { { ac_try="$ac_cpp conftest.$ac_ext"
2539case "(($ac_try" in
2540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541  *) ac_try_echo=$ac_try;;
2542esac
2543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2544$as_echo "$ac_try_echo"; } >&5
2545  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2546  ac_status=$?
2547  if test -s conftest.err; then
2548    grep -v '^ *+' conftest.err >conftest.er1
2549    cat conftest.er1 >&5
2550    mv -f conftest.er1 conftest.err
2551  fi
2552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2553  test $ac_status = 0; } >/dev/null && {
2554	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2555	 test ! -s conftest.err
2556       }; then :
2557  ac_retval=0
2558else
2559  $as_echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562    ac_retval=1
2563fi
2564  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565  return $ac_retval
2566
2567} # ac_fn_cxx_try_cpp
2568
2569# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2570# ------------------------------------------------
2571# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2572ac_fn_cxx_check_header_preproc ()
2573{
2574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576$as_echo_n "checking for $2... " >&6; }
2577if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581/* end confdefs.h.  */
2582#include <$2>
2583_ACEOF
2584if ac_fn_cxx_try_cpp "$LINENO"; then :
2585  eval "$3=yes"
2586else
2587  eval "$3=no"
2588fi
2589rm -f conftest.err conftest.$ac_ext
2590fi
2591eval ac_res=\$$3
2592	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593$as_echo "$ac_res" >&6; }
2594  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2595
2596} # ac_fn_cxx_check_header_preproc
2597
2598# ac_fn_c_check_func LINENO FUNC VAR
2599# ----------------------------------
2600# Tests whether FUNC exists, setting the cache variable VAR accordingly
2601ac_fn_c_check_func ()
2602{
2603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2605$as_echo_n "checking for $2... " >&6; }
2606if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610/* end confdefs.h.  */
2611/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2612   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2613#define $2 innocuous_$2
2614
2615/* System header to define __stub macros and hopefully few prototypes,
2616    which can conflict with char $2 (); below.
2617    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2618    <limits.h> exists even on freestanding compilers.  */
2619
2620#ifdef __STDC__
2621# include <limits.h>
2622#else
2623# include <assert.h>
2624#endif
2625
2626#undef $2
2627
2628/* Override any GCC internal prototype to avoid an error.
2629   Use char because int might match the return type of a GCC
2630   builtin and then its argument prototype would still apply.  */
2631#ifdef __cplusplus
2632extern "C"
2633#endif
2634char $2 ();
2635/* The GNU C library defines this for functions which it implements
2636    to always fail with ENOSYS.  Some functions are actually named
2637    something starting with __ and the normal name is an alias.  */
2638#if defined __stub_$2 || defined __stub___$2
2639choke me
2640#endif
2641
2642int
2643main ()
2644{
2645return $2 ();
2646  ;
2647  return 0;
2648}
2649_ACEOF
2650if ac_fn_c_try_link "$LINENO"; then :
2651  eval "$3=yes"
2652else
2653  eval "$3=no"
2654fi
2655rm -f core conftest.err conftest.$ac_objext \
2656    conftest$ac_exeext conftest.$ac_ext
2657fi
2658eval ac_res=\$$3
2659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660$as_echo "$ac_res" >&6; }
2661  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662
2663} # ac_fn_c_check_func
2664
2665# ac_fn_cxx_try_link LINENO
2666# -------------------------
2667# Try to link conftest.$ac_ext, and return whether this succeeded.
2668ac_fn_cxx_try_link ()
2669{
2670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2671  rm -f conftest.$ac_objext conftest$ac_exeext
2672  if { { ac_try="$ac_link"
2673case "(($ac_try" in
2674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675  *) ac_try_echo=$ac_try;;
2676esac
2677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2678$as_echo "$ac_try_echo"; } >&5
2679  (eval "$ac_link") 2>conftest.err
2680  ac_status=$?
2681  if test -s conftest.err; then
2682    grep -v '^ *+' conftest.err >conftest.er1
2683    cat conftest.er1 >&5
2684    mv -f conftest.er1 conftest.err
2685  fi
2686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2687  test $ac_status = 0; } && {
2688	 test -z "$ac_cxx_werror_flag" ||
2689	 test ! -s conftest.err
2690       } && test -s conftest$ac_exeext && {
2691	 test "$cross_compiling" = yes ||
2692	 $as_test_x conftest$ac_exeext
2693       }; then :
2694  ac_retval=0
2695else
2696  $as_echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699	ac_retval=1
2700fi
2701  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2702  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2703  # interfere with the next link command; also delete a directory that is
2704  # left behind by Apple's compiler.  We do this before executing the actions.
2705  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2706  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2707  return $ac_retval
2708
2709} # ac_fn_cxx_try_link
2710cat >config.log <<_ACEOF
2711This file contains any messages produced by compilers while
2712running configure, to aid debugging if configure makes a mistake.
2713
2714It was created by $as_me, which was
2715generated by GNU Autoconf 2.64.  Invocation command line was
2716
2717  $ $0 $@
2718
2719_ACEOF
2720exec 5>>config.log
2721{
2722cat <<_ASUNAME
2723## --------- ##
2724## Platform. ##
2725## --------- ##
2726
2727hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2728uname -m = `(uname -m) 2>/dev/null || echo unknown`
2729uname -r = `(uname -r) 2>/dev/null || echo unknown`
2730uname -s = `(uname -s) 2>/dev/null || echo unknown`
2731uname -v = `(uname -v) 2>/dev/null || echo unknown`
2732
2733/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2734/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2735
2736/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2737/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2738/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2739/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2740/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2741/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2742/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2743
2744_ASUNAME
2745
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    $as_echo "PATH: $as_dir"
2752  done
2753IFS=$as_save_IFS
2754
2755} >&5
2756
2757cat >&5 <<_ACEOF
2758
2759
2760## ----------- ##
2761## Core tests. ##
2762## ----------- ##
2763
2764_ACEOF
2765
2766
2767# Keep a trace of the command line.
2768# Strip out --no-create and --no-recursion so they do not pile up.
2769# Strip out --silent because we don't want to record it for future runs.
2770# Also quote any args containing shell meta-characters.
2771# Make two passes to allow for proper duplicate-argument suppression.
2772ac_configure_args=
2773ac_configure_args0=
2774ac_configure_args1=
2775ac_must_keep_next=false
2776for ac_pass in 1 2
2777do
2778  for ac_arg
2779  do
2780    case $ac_arg in
2781    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2782    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2783    | -silent | --silent | --silen | --sile | --sil)
2784      continue ;;
2785    *\'*)
2786      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2787    esac
2788    case $ac_pass in
2789    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2790    2)
2791      as_fn_append ac_configure_args1 " '$ac_arg'"
2792      if test $ac_must_keep_next = true; then
2793	ac_must_keep_next=false # Got value, back to normal.
2794      else
2795	case $ac_arg in
2796	  *=* | --config-cache | -C | -disable-* | --disable-* \
2797	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2798	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2799	  | -with-* | --with-* | -without-* | --without-* | --x)
2800	    case "$ac_configure_args0 " in
2801	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2802	    esac
2803	    ;;
2804	  -* ) ac_must_keep_next=true ;;
2805	esac
2806      fi
2807      as_fn_append ac_configure_args " '$ac_arg'"
2808      ;;
2809    esac
2810  done
2811done
2812{ ac_configure_args0=; unset ac_configure_args0;}
2813{ ac_configure_args1=; unset ac_configure_args1;}
2814
2815# When interrupted or exit'd, cleanup temporary files, and complete
2816# config.log.  We remove comments because anyway the quotes in there
2817# would cause problems or look ugly.
2818# WARNING: Use '\'' to represent an apostrophe within the trap.
2819# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2820trap 'exit_status=$?
2821  # Save into config.log some information that might help in debugging.
2822  {
2823    echo
2824
2825    cat <<\_ASBOX
2826## ---------------- ##
2827## Cache variables. ##
2828## ---------------- ##
2829_ASBOX
2830    echo
2831    # The following way of writing the cache mishandles newlines in values,
2832(
2833  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2834    eval ac_val=\$$ac_var
2835    case $ac_val in #(
2836    *${as_nl}*)
2837      case $ac_var in #(
2838      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2839$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2840      esac
2841      case $ac_var in #(
2842      _ | IFS | as_nl) ;; #(
2843      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2844      *) { eval $ac_var=; unset $ac_var;} ;;
2845      esac ;;
2846    esac
2847  done
2848  (set) 2>&1 |
2849    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2850    *${as_nl}ac_space=\ *)
2851      sed -n \
2852	"s/'\''/'\''\\\\'\'''\''/g;
2853	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2854      ;; #(
2855    *)
2856      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2857      ;;
2858    esac |
2859    sort
2860)
2861    echo
2862
2863    cat <<\_ASBOX
2864## ----------------- ##
2865## Output variables. ##
2866## ----------------- ##
2867_ASBOX
2868    echo
2869    for ac_var in $ac_subst_vars
2870    do
2871      eval ac_val=\$$ac_var
2872      case $ac_val in
2873      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2874      esac
2875      $as_echo "$ac_var='\''$ac_val'\''"
2876    done | sort
2877    echo
2878
2879    if test -n "$ac_subst_files"; then
2880      cat <<\_ASBOX
2881## ------------------- ##
2882## File substitutions. ##
2883## ------------------- ##
2884_ASBOX
2885      echo
2886      for ac_var in $ac_subst_files
2887      do
2888	eval ac_val=\$$ac_var
2889	case $ac_val in
2890	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2891	esac
2892	$as_echo "$ac_var='\''$ac_val'\''"
2893      done | sort
2894      echo
2895    fi
2896
2897    if test -s confdefs.h; then
2898      cat <<\_ASBOX
2899## ----------- ##
2900## confdefs.h. ##
2901## ----------- ##
2902_ASBOX
2903      echo
2904      cat confdefs.h
2905      echo
2906    fi
2907    test "$ac_signal" != 0 &&
2908      $as_echo "$as_me: caught signal $ac_signal"
2909    $as_echo "$as_me: exit $exit_status"
2910  } >&5
2911  rm -f core *.core core.conftest.* &&
2912    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2913    exit $exit_status
2914' 0
2915for ac_signal in 1 2 13 15; do
2916  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2917done
2918ac_signal=0
2919
2920# confdefs.h avoids OS command line length limits that DEFS can exceed.
2921rm -f -r conftest* confdefs.h
2922
2923$as_echo "/* confdefs.h */" > confdefs.h
2924
2925# Predefined preprocessor variables.
2926
2927cat >>confdefs.h <<_ACEOF
2928#define PACKAGE_NAME "$PACKAGE_NAME"
2929_ACEOF
2930
2931cat >>confdefs.h <<_ACEOF
2932#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2933_ACEOF
2934
2935cat >>confdefs.h <<_ACEOF
2936#define PACKAGE_VERSION "$PACKAGE_VERSION"
2937_ACEOF
2938
2939cat >>confdefs.h <<_ACEOF
2940#define PACKAGE_STRING "$PACKAGE_STRING"
2941_ACEOF
2942
2943cat >>confdefs.h <<_ACEOF
2944#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2945_ACEOF
2946
2947cat >>confdefs.h <<_ACEOF
2948#define PACKAGE_URL "$PACKAGE_URL"
2949_ACEOF
2950
2951
2952# Let the site file select an alternate cache file if it wants to.
2953# Prefer an explicitly selected file to automatically selected ones.
2954ac_site_file1=NONE
2955ac_site_file2=NONE
2956if test -n "$CONFIG_SITE"; then
2957  ac_site_file1=$CONFIG_SITE
2958elif test "x$prefix" != xNONE; then
2959  ac_site_file1=$prefix/share/config.site
2960  ac_site_file2=$prefix/etc/config.site
2961else
2962  ac_site_file1=$ac_default_prefix/share/config.site
2963  ac_site_file2=$ac_default_prefix/etc/config.site
2964fi
2965for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2966do
2967  test "x$ac_site_file" = xNONE && continue
2968  if test -r "$ac_site_file"; then
2969    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2970$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2971    sed 's/^/| /' "$ac_site_file" >&5
2972    . "$ac_site_file"
2973  fi
2974done
2975
2976if test -r "$cache_file"; then
2977  # Some versions of bash will fail to source /dev/null (special
2978  # files actually), so we avoid doing that.
2979  if test -f "$cache_file"; then
2980    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2981$as_echo "$as_me: loading cache $cache_file" >&6;}
2982    case $cache_file in
2983      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2984      *)                      . "./$cache_file";;
2985    esac
2986  fi
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2989$as_echo "$as_me: creating cache $cache_file" >&6;}
2990  >$cache_file
2991fi
2992
2993# Check that the precious variables saved in the cache have kept the same
2994# value.
2995ac_cache_corrupted=false
2996for ac_var in $ac_precious_vars; do
2997  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2998  eval ac_new_set=\$ac_env_${ac_var}_set
2999  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3000  eval ac_new_val=\$ac_env_${ac_var}_value
3001  case $ac_old_set,$ac_new_set in
3002    set,)
3003      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3004$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3005      ac_cache_corrupted=: ;;
3006    ,set)
3007      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3008$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3009      ac_cache_corrupted=: ;;
3010    ,);;
3011    *)
3012      if test "x$ac_old_val" != "x$ac_new_val"; then
3013	# differences in whitespace do not lead to failure.
3014	ac_old_val_w=`echo x $ac_old_val`
3015	ac_new_val_w=`echo x $ac_new_val`
3016	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3017	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3018$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3019	  ac_cache_corrupted=:
3020	else
3021	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3022$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3023	  eval $ac_var=\$ac_old_val
3024	fi
3025	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3026$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3027	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3028$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3029      fi;;
3030  esac
3031  # Pass precious variables to config.status.
3032  if test "$ac_new_set" = set; then
3033    case $ac_new_val in
3034    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3035    *) ac_arg=$ac_var=$ac_new_val ;;
3036    esac
3037    case " $ac_configure_args " in
3038      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3039      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3040    esac
3041  fi
3042done
3043if $ac_cache_corrupted; then
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3047$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3048  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3049fi
3050## -------------------- ##
3051## Main body of script. ##
3052## -------------------- ##
3053
3054ac_ext=c
3055ac_cpp='$CPP $CPPFLAGS'
3056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059
3060
3061
3062
3063
3064
3065ac_config_headers="$ac_config_headers auto-host.h:config.in"
3066
3067
3068gcc_version=`cat $srcdir/BASE-VER`
3069
3070# Determine the host, build, and target systems
3071ac_aux_dir=
3072for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3073  for ac_t in install-sh install.sh shtool; do
3074    if test -f "$ac_dir/$ac_t"; then
3075      ac_aux_dir=$ac_dir
3076      ac_install_sh="$ac_aux_dir/$ac_t -c"
3077      break 2
3078    fi
3079  done
3080done
3081if test -z "$ac_aux_dir"; then
3082  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3083fi
3084
3085# These three variables are undocumented and unsupported,
3086# and are intended to be withdrawn in a future Autoconf release.
3087# They can cause serious problems if a builder's source tree is in a directory
3088# whose full name contains unusual characters.
3089ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3090ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3091ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3092
3093
3094# Make sure we can run config.sub.
3095$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3096  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3097
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3099$as_echo_n "checking build system type... " >&6; }
3100if test "${ac_cv_build+set}" = set; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  ac_build_alias=$build_alias
3104test "x$ac_build_alias" = x &&
3105  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3106test "x$ac_build_alias" = x &&
3107  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3108ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3109  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3110
3111fi
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3113$as_echo "$ac_cv_build" >&6; }
3114case $ac_cv_build in
3115*-*-*) ;;
3116*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3117esac
3118build=$ac_cv_build
3119ac_save_IFS=$IFS; IFS='-'
3120set x $ac_cv_build
3121shift
3122build_cpu=$1
3123build_vendor=$2
3124shift; shift
3125# Remember, the first character of IFS is used to create $*,
3126# except with old shells:
3127build_os=$*
3128IFS=$ac_save_IFS
3129case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3130
3131
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3133$as_echo_n "checking host system type... " >&6; }
3134if test "${ac_cv_host+set}" = set; then :
3135  $as_echo_n "(cached) " >&6
3136else
3137  if test "x$host_alias" = x; then
3138  ac_cv_host=$ac_cv_build
3139else
3140  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3141    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3142fi
3143
3144fi
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3146$as_echo "$ac_cv_host" >&6; }
3147case $ac_cv_host in
3148*-*-*) ;;
3149*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3150esac
3151host=$ac_cv_host
3152ac_save_IFS=$IFS; IFS='-'
3153set x $ac_cv_host
3154shift
3155host_cpu=$1
3156host_vendor=$2
3157shift; shift
3158# Remember, the first character of IFS is used to create $*,
3159# except with old shells:
3160host_os=$*
3161IFS=$ac_save_IFS
3162case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3163
3164
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3166$as_echo_n "checking target system type... " >&6; }
3167if test "${ac_cv_target+set}" = set; then :
3168  $as_echo_n "(cached) " >&6
3169else
3170  if test "x$target_alias" = x; then
3171  ac_cv_target=$ac_cv_host
3172else
3173  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3174    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3175fi
3176
3177fi
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3179$as_echo "$ac_cv_target" >&6; }
3180case $ac_cv_target in
3181*-*-*) ;;
3182*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3183esac
3184target=$ac_cv_target
3185ac_save_IFS=$IFS; IFS='-'
3186set x $ac_cv_target
3187shift
3188target_cpu=$1
3189target_vendor=$2
3190shift; shift
3191# Remember, the first character of IFS is used to create $*,
3192# except with old shells:
3193target_os=$*
3194IFS=$ac_save_IFS
3195case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3196
3197
3198# The aliases save the names the user supplied, while $host etc.
3199# will get canonicalized.
3200test -n "$target_alias" &&
3201  test "$program_prefix$program_suffix$program_transform_name" = \
3202    NONENONEs,x,x, &&
3203  program_prefix=${target_alias}-
3204
3205# Determine the noncanonical target name, for directory use.
3206 case ${build_alias} in
3207  "") build_noncanonical=${build} ;;
3208  *) build_noncanonical=${build_alias} ;;
3209esac
3210
3211 case ${host_alias} in
3212  "") host_noncanonical=${build_noncanonical} ;;
3213  *) host_noncanonical=${host_alias} ;;
3214esac
3215
3216 case ${target_alias} in
3217  "") target_noncanonical=${host_noncanonical} ;;
3218  *) target_noncanonical=${target_alias} ;;
3219esac
3220
3221
3222
3223
3224# Used for constructing correct paths for offload compilers.
3225real_target_noncanonical=${target_noncanonical}
3226accel_dir_suffix=
3227
3228# Determine the target- and build-specific subdirectories
3229
3230# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3231# have matching libraries, they should use host libraries: Makefile.tpl
3232# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3233# However, they still use the build modules, because the corresponding
3234# host modules (e.g. bison) are only built for the host when bootstrap
3235# finishes. So:
3236# - build_subdir is where we find build modules, and never changes.
3237# - build_libsubdir is where we find build libraries, and can be overridden.
3238
3239# Prefix 'build-' so this never conflicts with target_subdir.
3240build_subdir="build-${build_noncanonical}"
3241
3242# Check whether --with-build-libsubdir was given.
3243if test "${with_build_libsubdir+set}" = set; then :
3244  withval=$with_build_libsubdir; build_libsubdir="$withval"
3245else
3246  build_libsubdir="$build_subdir"
3247fi
3248
3249# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3250if ( test $srcdir = . && test -d gcc ) \
3251   || test -d $srcdir/../host-${host_noncanonical}; then
3252  host_subdir="host-${host_noncanonical}"
3253else
3254  host_subdir=.
3255fi
3256# No prefix.
3257target_subdir=${target_noncanonical}
3258
3259
3260# Set program_transform_name
3261test "$program_prefix" != NONE &&
3262  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3263# Use a double $ so make ignores it.
3264test "$program_suffix" != NONE &&
3265  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3266# Double any \ or $.
3267# By default was `s,x,x', remove it if useless.
3268ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3269program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3270
3271
3272# Check for bogus environment variables.
3273# Test if LIBRARY_PATH contains the notation for the current directory
3274# since this would lead to problems installing/building glibc.
3275# LIBRARY_PATH contains the current directory if one of the following
3276# is true:
3277# - one of the terminals (":" and ";") is the first or last sign
3278# - two terminals occur directly after each other
3279# - the path contains an element with a dot in it
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3281$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3282case ${LIBRARY_PATH} in
3283  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3284    library_path_setting="contains current directory"
3285    ;;
3286  *)
3287    library_path_setting="ok"
3288    ;;
3289esac
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3291$as_echo "$library_path_setting" >&6; }
3292if test "$library_path_setting" != "ok"; then
3293as_fn_error "
3294*** LIBRARY_PATH shouldn't contain the current directory when
3295*** building gcc. Please change the environment variable
3296*** and run configure again." "$LINENO" 5
3297fi
3298
3299# Test if GCC_EXEC_PREFIX contains the notation for the current directory
3300# since this would lead to problems installing/building glibc.
3301# GCC_EXEC_PREFIX contains the current directory if one of the following
3302# is true:
3303# - one of the terminals (":" and ";") is the first or last sign
3304# - two terminals occur directly after each other
3305# - the path contains an element with a dot in it
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3307$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3308case ${GCC_EXEC_PREFIX} in
3309  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3310    gcc_exec_prefix_setting="contains current directory"
3311    ;;
3312  *)
3313    gcc_exec_prefix_setting="ok"
3314    ;;
3315esac
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3317$as_echo "$gcc_exec_prefix_setting" >&6; }
3318if test "$gcc_exec_prefix_setting" != "ok"; then
3319as_fn_error "
3320*** GCC_EXEC_PREFIX shouldn't contain the current directory when
3321*** building gcc. Please change the environment variable
3322*** and run configure again." "$LINENO" 5
3323fi
3324
3325# -----------
3326# Directories
3327# -----------
3328
3329# Specify the local prefix
3330local_prefix=
3331
3332# Check whether --with-local-prefix was given.
3333if test "${with_local_prefix+set}" = set; then :
3334  withval=$with_local_prefix; case "${withval}" in
3335yes)	as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3336no)	;;
3337*)	local_prefix=$with_local_prefix ;;
3338esac
3339fi
3340
3341
3342# Default local prefix if it is empty
3343if test x$local_prefix = x; then
3344	local_prefix=/usr/local
3345fi
3346
3347# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3348# passed in by the toplevel make and thus we'd get different behavior
3349# depending on where we built the sources.
3350gcc_gxx_include_dir=
3351# Specify the g++ header file directory
3352
3353# Check whether --with-gxx-include-dir was given.
3354if test "${with_gxx_include_dir+set}" = set; then :
3355  withval=$with_gxx_include_dir; case "${withval}" in
3356yes)	as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3357no)	;;
3358*)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
3359esac
3360fi
3361
3362
3363# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3364if test x${gcc_gxx_include_dir} = x; then
3365  if test x${enable_version_specific_runtime_libs} = xyes; then
3366    gcc_gxx_include_dir='${libsubdir}/include/c++'
3367  else
3368    libstdcxx_incdir='include/c++/$(version)'
3369    if test x$host != x$target; then
3370       libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3371    fi
3372    gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3373  fi
3374fi
3375
3376gcc_gxx_include_dir_add_sysroot=0
3377if test "${with_sysroot+set}" = set; then
3378  gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3379  if test "${gcc_gxx_without_sysroot}"; then
3380    gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3381    gcc_gxx_include_dir_add_sysroot=1
3382  fi
3383fi
3384
3385
3386# Check whether --with-cpp_install_dir was given.
3387if test "${with_cpp_install_dir+set}" = set; then :
3388  withval=$with_cpp_install_dir; if test x$withval = xyes; then
3389  as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3390elif test x$withval != xno; then
3391  cpp_install_dir=$withval
3392fi
3393fi
3394
3395
3396# We would like to our source tree to be readonly.  However when releases or
3397# pre-releases are generated, the flex/bison generated files as well as the
3398# various formats of manuals need to be included along with the rest of the
3399# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3400# just that.
3401
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3403$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3404    # Check whether --enable-generated-files-in-srcdir was given.
3405if test "${enable_generated_files_in_srcdir+set}" = set; then :
3406  enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3407else
3408  generated_files_in_srcdir=no
3409fi
3410
3411
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3413$as_echo "$generated_files_in_srcdir" >&6; }
3414
3415if test "$generated_files_in_srcdir" = "yes"; then
3416  GENINSRC=''
3417else
3418  GENINSRC='#'
3419fi
3420
3421
3422# -------------------
3423# Find default linker
3424# -------------------
3425
3426# With GNU ld
3427
3428# Check whether --with-gnu-ld was given.
3429if test "${with_gnu_ld+set}" = set; then :
3430  withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3431else
3432  gnu_ld_flag=no
3433fi
3434
3435
3436# With pre-defined ld
3437
3438# Check whether --with-ld was given.
3439if test "${with_ld+set}" = set; then :
3440  withval=$with_ld; DEFAULT_LINKER="$with_ld"
3441fi
3442
3443if test x"${DEFAULT_LINKER+set}" = x"set"; then
3444  if test ! -x "$DEFAULT_LINKER"; then
3445    as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3446  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3447    gnu_ld_flag=yes
3448  fi
3449
3450cat >>confdefs.h <<_ACEOF
3451#define DEFAULT_LINKER "$DEFAULT_LINKER"
3452_ACEOF
3453
3454fi
3455
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3457$as_echo_n "checking whether a default linker was specified... " >&6; }
3458if test x"${DEFAULT_LINKER+set}" = x"set"; then
3459  if test x"$gnu_ld_flag" = x"no"; then
3460    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3461$as_echo "yes ($DEFAULT_LINKER)" >&6; }
3462  else
3463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3464$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3465  fi
3466else
3467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468$as_echo "no" >&6; }
3469fi
3470
3471# With demangler in GNU ld
3472
3473# Check whether --with-demangler-in-ld was given.
3474if test "${with_demangler_in_ld+set}" = set; then :
3475  withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3476else
3477  demangler_in_ld=yes
3478fi
3479
3480
3481# ----------------------
3482# Find default assembler
3483# ----------------------
3484
3485# With GNU as
3486
3487# Check whether --with-gnu-as was given.
3488if test "${with_gnu_as+set}" = set; then :
3489  withval=$with_gnu_as; gas_flag="$with_gnu_as"
3490else
3491  gas_flag=no
3492fi
3493
3494
3495
3496# Check whether --with-as was given.
3497if test "${with_as+set}" = set; then :
3498  withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3499fi
3500
3501if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3502  if test ! -x "$DEFAULT_ASSEMBLER"; then
3503    as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3504  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3505    gas_flag=yes
3506  fi
3507
3508cat >>confdefs.h <<_ACEOF
3509#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3510_ACEOF
3511
3512fi
3513
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3515$as_echo_n "checking whether a default assembler was specified... " >&6; }
3516if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3517  if test x"$gas_flag" = x"no"; then
3518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3519$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3520  else
3521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3522$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3523  fi
3524else
3525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526$as_echo "no" >&6; }
3527fi
3528
3529# ---------------
3530# Find C compiler
3531# ---------------
3532
3533# If a non-executable a.out is present (e.g. created by GNU as above even if
3534# invoked with -v only), the IRIX 6 native ld just overwrites the existing
3535# file, even when creating an executable, so an execution test fails.
3536# Remove possible default executable files to avoid this.
3537#
3538# FIXME: This really belongs into AC_PROG_CC and can be removed once
3539# Autoconf includes it.
3540rm -f a.out a.exe b.out
3541
3542# Find the native compiler
3543ac_ext=c
3544ac_cpp='$CPP $CPPFLAGS'
3545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548if test -n "$ac_tool_prefix"; then
3549  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3550set dummy ${ac_tool_prefix}gcc; ac_word=$2
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552$as_echo_n "checking for $ac_word... " >&6; }
3553if test "${ac_cv_prog_CC+set}" = set; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  if test -n "$CC"; then
3557  ac_cv_prog_CC="$CC" # Let the user override the test.
3558else
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562  IFS=$as_save_IFS
3563  test -z "$as_dir" && as_dir=.
3564    for ac_exec_ext in '' $ac_executable_extensions; do
3565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568    break 2
3569  fi
3570done
3571  done
3572IFS=$as_save_IFS
3573
3574fi
3575fi
3576CC=$ac_cv_prog_CC
3577if test -n "$CC"; then
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579$as_echo "$CC" >&6; }
3580else
3581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583fi
3584
3585
3586fi
3587if test -z "$ac_cv_prog_CC"; then
3588  ac_ct_CC=$CC
3589  # Extract the first word of "gcc", so it can be a program name with args.
3590set dummy gcc; ac_word=$2
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592$as_echo_n "checking for $ac_word... " >&6; }
3593if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3594  $as_echo_n "(cached) " >&6
3595else
3596  if test -n "$ac_ct_CC"; then
3597  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602  IFS=$as_save_IFS
3603  test -z "$as_dir" && as_dir=.
3604    for ac_exec_ext in '' $ac_executable_extensions; do
3605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606    ac_cv_prog_ac_ct_CC="gcc"
3607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608    break 2
3609  fi
3610done
3611  done
3612IFS=$as_save_IFS
3613
3614fi
3615fi
3616ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617if test -n "$ac_ct_CC"; then
3618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3619$as_echo "$ac_ct_CC" >&6; }
3620else
3621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622$as_echo "no" >&6; }
3623fi
3624
3625  if test "x$ac_ct_CC" = x; then
3626    CC=""
3627  else
3628    case $cross_compiling:$ac_tool_warned in
3629yes:)
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632ac_tool_warned=yes ;;
3633esac
3634    CC=$ac_ct_CC
3635  fi
3636else
3637  CC="$ac_cv_prog_CC"
3638fi
3639
3640if test -z "$CC"; then
3641          if test -n "$ac_tool_prefix"; then
3642    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3643set dummy ${ac_tool_prefix}cc; ac_word=$2
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645$as_echo_n "checking for $ac_word... " >&6; }
3646if test "${ac_cv_prog_CC+set}" = set; then :
3647  $as_echo_n "(cached) " >&6
3648else
3649  if test -n "$CC"; then
3650  ac_cv_prog_CC="$CC" # Let the user override the test.
3651else
3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653for as_dir in $PATH
3654do
3655  IFS=$as_save_IFS
3656  test -z "$as_dir" && as_dir=.
3657    for ac_exec_ext in '' $ac_executable_extensions; do
3658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659    ac_cv_prog_CC="${ac_tool_prefix}cc"
3660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661    break 2
3662  fi
3663done
3664  done
3665IFS=$as_save_IFS
3666
3667fi
3668fi
3669CC=$ac_cv_prog_CC
3670if test -n "$CC"; then
3671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672$as_echo "$CC" >&6; }
3673else
3674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675$as_echo "no" >&6; }
3676fi
3677
3678
3679  fi
3680fi
3681if test -z "$CC"; then
3682  # Extract the first word of "cc", so it can be a program name with args.
3683set dummy cc; ac_word=$2
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685$as_echo_n "checking for $ac_word... " >&6; }
3686if test "${ac_cv_prog_CC+set}" = set; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  if test -n "$CC"; then
3690  ac_cv_prog_CC="$CC" # Let the user override the test.
3691else
3692  ac_prog_rejected=no
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696  IFS=$as_save_IFS
3697  test -z "$as_dir" && as_dir=.
3698    for ac_exec_ext in '' $ac_executable_extensions; do
3699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3701       ac_prog_rejected=yes
3702       continue
3703     fi
3704    ac_cv_prog_CC="cc"
3705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706    break 2
3707  fi
3708done
3709  done
3710IFS=$as_save_IFS
3711
3712if test $ac_prog_rejected = yes; then
3713  # We found a bogon in the path, so make sure we never use it.
3714  set dummy $ac_cv_prog_CC
3715  shift
3716  if test $# != 0; then
3717    # We chose a different compiler from the bogus one.
3718    # However, it has the same basename, so the bogon will be chosen
3719    # first if we set CC to just the basename; use the full file name.
3720    shift
3721    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3722  fi
3723fi
3724fi
3725fi
3726CC=$ac_cv_prog_CC
3727if test -n "$CC"; then
3728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729$as_echo "$CC" >&6; }
3730else
3731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732$as_echo "no" >&6; }
3733fi
3734
3735
3736fi
3737if test -z "$CC"; then
3738  if test -n "$ac_tool_prefix"; then
3739  for ac_prog in cl.exe
3740  do
3741    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744$as_echo_n "checking for $ac_word... " >&6; }
3745if test "${ac_cv_prog_CC+set}" = set; then :
3746  $as_echo_n "(cached) " >&6
3747else
3748  if test -n "$CC"; then
3749  ac_cv_prog_CC="$CC" # Let the user override the test.
3750else
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
3753do
3754  IFS=$as_save_IFS
3755  test -z "$as_dir" && as_dir=.
3756    for ac_exec_ext in '' $ac_executable_extensions; do
3757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3758    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760    break 2
3761  fi
3762done
3763  done
3764IFS=$as_save_IFS
3765
3766fi
3767fi
3768CC=$ac_cv_prog_CC
3769if test -n "$CC"; then
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771$as_echo "$CC" >&6; }
3772else
3773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774$as_echo "no" >&6; }
3775fi
3776
3777
3778    test -n "$CC" && break
3779  done
3780fi
3781if test -z "$CC"; then
3782  ac_ct_CC=$CC
3783  for ac_prog in cl.exe
3784do
3785  # Extract the first word of "$ac_prog", so it can be a program name with args.
3786set dummy $ac_prog; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
3789if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  if test -n "$ac_ct_CC"; then
3793  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800    for ac_exec_ext in '' $ac_executable_extensions; do
3801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802    ac_cv_prog_ac_ct_CC="$ac_prog"
3803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804    break 2
3805  fi
3806done
3807  done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813if test -n "$ac_ct_CC"; then
3814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815$as_echo "$ac_ct_CC" >&6; }
3816else
3817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821
3822  test -n "$ac_ct_CC" && break
3823done
3824
3825  if test "x$ac_ct_CC" = x; then
3826    CC=""
3827  else
3828    case $cross_compiling:$ac_tool_warned in
3829yes:)
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832ac_tool_warned=yes ;;
3833esac
3834    CC=$ac_ct_CC
3835  fi
3836fi
3837
3838fi
3839
3840
3841test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843as_fn_error "no acceptable C compiler found in \$PATH
3844See \`config.log' for more details." "$LINENO" 5; }
3845
3846# Provide some information about the compiler.
3847$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3848set X $ac_compile
3849ac_compiler=$2
3850for ac_option in --version -v -V -qversion; do
3851  { { ac_try="$ac_compiler $ac_option >&5"
3852case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857$as_echo "$ac_try_echo"; } >&5
3858  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3859  ac_status=$?
3860  if test -s conftest.err; then
3861    sed '10a\
3862... rest of stderr output deleted ...
3863         10q' conftest.err >conftest.er1
3864    cat conftest.er1 >&5
3865    rm -f conftest.er1 conftest.err
3866  fi
3867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868  test $ac_status = 0; }
3869done
3870
3871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873
3874int
3875main ()
3876{
3877
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882ac_clean_files_save=$ac_clean_files
3883ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3884# Try to create an executable without -o first, disregard a.out.
3885# It will help us diagnose broken compilers, and finding out an intuition
3886# of exeext.
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3888$as_echo_n "checking for C compiler default output file name... " >&6; }
3889ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3890
3891# The possible output files:
3892ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3893
3894ac_rmfiles=
3895for ac_file in $ac_files
3896do
3897  case $ac_file in
3898    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3899    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3900  esac
3901done
3902rm -f $ac_rmfiles
3903
3904if { { ac_try="$ac_link_default"
3905case "(($ac_try" in
3906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907  *) ac_try_echo=$ac_try;;
3908esac
3909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910$as_echo "$ac_try_echo"; } >&5
3911  (eval "$ac_link_default") 2>&5
3912  ac_status=$?
3913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914  test $ac_status = 0; }; then :
3915  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3916# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3917# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3918# so that the user can short-circuit this test for compilers unknown to
3919# Autoconf.
3920for ac_file in $ac_files ''
3921do
3922  test -f "$ac_file" || continue
3923  case $ac_file in
3924    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3925	;;
3926    [ab].out )
3927	# We found the default executable, but exeext='' is most
3928	# certainly right.
3929	break;;
3930    *.* )
3931	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3932	then :; else
3933	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934	fi
3935	# We set ac_cv_exeext here because the later test for it is not
3936	# safe: cross compilers may not add the suffix if given an `-o'
3937	# argument, so we may need to know it at that point already.
3938	# Even if this section looks crufty: it has the advantage of
3939	# actually working.
3940	break;;
3941    * )
3942	break;;
3943  esac
3944done
3945test "$ac_cv_exeext" = no && ac_cv_exeext=
3946
3947else
3948  ac_file=''
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3951$as_echo "$ac_file" >&6; }
3952if test -z "$ac_file"; then :
3953  $as_echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958{ as_fn_set_status 77
3959as_fn_error "C compiler cannot create executables
3960See \`config.log' for more details." "$LINENO" 5; }; }
3961fi
3962ac_exeext=$ac_cv_exeext
3963
3964# Check that the compiler produces executables we can run.  If not, either
3965# the compiler is broken, or we cross compile.
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3967$as_echo_n "checking whether the C compiler works... " >&6; }
3968# If not cross compiling, check that we can run a simple program.
3969if test "$cross_compiling" != yes; then
3970  if { ac_try='./$ac_file'
3971  { { case "(($ac_try" in
3972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973  *) ac_try_echo=$ac_try;;
3974esac
3975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976$as_echo "$ac_try_echo"; } >&5
3977  (eval "$ac_try") 2>&5
3978  ac_status=$?
3979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980  test $ac_status = 0; }; }; then
3981    cross_compiling=no
3982  else
3983    if test "$cross_compiling" = maybe; then
3984	cross_compiling=yes
3985    else
3986	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988as_fn_error "cannot run C compiled programs.
3989If you meant to cross compile, use \`--host'.
3990See \`config.log' for more details." "$LINENO" 5; }
3991    fi
3992  fi
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3995$as_echo "yes" >&6; }
3996
3997rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3998ac_clean_files=$ac_clean_files_save
3999# Check that the compiler produces executables we can run.  If not, either
4000# the compiler is broken, or we cross compile.
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4002$as_echo_n "checking whether we are cross compiling... " >&6; }
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4004$as_echo "$cross_compiling" >&6; }
4005
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4007$as_echo_n "checking for suffix of executables... " >&6; }
4008if { { ac_try="$ac_link"
4009case "(($ac_try" in
4010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011  *) ac_try_echo=$ac_try;;
4012esac
4013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014$as_echo "$ac_try_echo"; } >&5
4015  (eval "$ac_link") 2>&5
4016  ac_status=$?
4017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018  test $ac_status = 0; }; then :
4019  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4020# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4021# work properly (i.e., refer to `conftest.exe'), while it won't with
4022# `rm'.
4023for ac_file in conftest.exe conftest conftest.*; do
4024  test -f "$ac_file" || continue
4025  case $ac_file in
4026    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4027    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4028	  break;;
4029    * ) break;;
4030  esac
4031done
4032else
4033  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035as_fn_error "cannot compute suffix of executables: cannot compile and link
4036See \`config.log' for more details." "$LINENO" 5; }
4037fi
4038rm -f conftest$ac_cv_exeext
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4040$as_echo "$ac_cv_exeext" >&6; }
4041
4042rm -f conftest.$ac_ext
4043EXEEXT=$ac_cv_exeext
4044ac_exeext=$EXEEXT
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4046$as_echo_n "checking for suffix of object files... " >&6; }
4047if test "${ac_cv_objext+set}" = set; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052
4053int
4054main ()
4055{
4056
4057  ;
4058  return 0;
4059}
4060_ACEOF
4061rm -f conftest.o conftest.obj
4062if { { ac_try="$ac_compile"
4063case "(($ac_try" in
4064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065  *) ac_try_echo=$ac_try;;
4066esac
4067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068$as_echo "$ac_try_echo"; } >&5
4069  (eval "$ac_compile") 2>&5
4070  ac_status=$?
4071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072  test $ac_status = 0; }; then :
4073  for ac_file in conftest.o conftest.obj conftest.*; do
4074  test -f "$ac_file" || continue;
4075  case $ac_file in
4076    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4077    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4078       break;;
4079  esac
4080done
4081else
4082  $as_echo "$as_me: failed program was:" >&5
4083sed 's/^/| /' conftest.$ac_ext >&5
4084
4085{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4087as_fn_error "cannot compute suffix of object files: cannot compile
4088See \`config.log' for more details." "$LINENO" 5; }
4089fi
4090rm -f conftest.$ac_cv_objext conftest.$ac_ext
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4093$as_echo "$ac_cv_objext" >&6; }
4094OBJEXT=$ac_cv_objext
4095ac_objext=$OBJEXT
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4097$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4098if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103
4104int
4105main ()
4106{
4107#ifndef __GNUC__
4108       choke me
4109#endif
4110
4111  ;
4112  return 0;
4113}
4114_ACEOF
4115if ac_fn_c_try_compile "$LINENO"; then :
4116  ac_compiler_gnu=yes
4117else
4118  ac_compiler_gnu=no
4119fi
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121ac_cv_c_compiler_gnu=$ac_compiler_gnu
4122
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4125$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4126if test $ac_compiler_gnu = yes; then
4127  GCC=yes
4128else
4129  GCC=
4130fi
4131ac_test_CFLAGS=${CFLAGS+set}
4132ac_save_CFLAGS=$CFLAGS
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4134$as_echo_n "checking whether $CC accepts -g... " >&6; }
4135if test "${ac_cv_prog_cc_g+set}" = set; then :
4136  $as_echo_n "(cached) " >&6
4137else
4138  ac_save_c_werror_flag=$ac_c_werror_flag
4139   ac_c_werror_flag=yes
4140   ac_cv_prog_cc_g=no
4141   CFLAGS="-g"
4142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143/* end confdefs.h.  */
4144
4145int
4146main ()
4147{
4148
4149  ;
4150  return 0;
4151}
4152_ACEOF
4153if ac_fn_c_try_compile "$LINENO"; then :
4154  ac_cv_prog_cc_g=yes
4155else
4156  CFLAGS=""
4157      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159
4160int
4161main ()
4162{
4163
4164  ;
4165  return 0;
4166}
4167_ACEOF
4168if ac_fn_c_try_compile "$LINENO"; then :
4169
4170else
4171  ac_c_werror_flag=$ac_save_c_werror_flag
4172	 CFLAGS="-g"
4173	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175
4176int
4177main ()
4178{
4179
4180  ;
4181  return 0;
4182}
4183_ACEOF
4184if ac_fn_c_try_compile "$LINENO"; then :
4185  ac_cv_prog_cc_g=yes
4186fi
4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188fi
4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190fi
4191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192   ac_c_werror_flag=$ac_save_c_werror_flag
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4195$as_echo "$ac_cv_prog_cc_g" >&6; }
4196if test "$ac_test_CFLAGS" = set; then
4197  CFLAGS=$ac_save_CFLAGS
4198elif test $ac_cv_prog_cc_g = yes; then
4199  if test "$GCC" = yes; then
4200    CFLAGS="-g -O2"
4201  else
4202    CFLAGS="-g"
4203  fi
4204else
4205  if test "$GCC" = yes; then
4206    CFLAGS="-O2"
4207  else
4208    CFLAGS=
4209  fi
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4212$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4213if test "${ac_cv_prog_cc_c89+set}" = set; then :
4214  $as_echo_n "(cached) " >&6
4215else
4216  ac_cv_prog_cc_c89=no
4217ac_save_CC=$CC
4218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h.  */
4220#include <stdarg.h>
4221#include <stdio.h>
4222#include <sys/types.h>
4223#include <sys/stat.h>
4224/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4225struct buf { int x; };
4226FILE * (*rcsopen) (struct buf *, struct stat *, int);
4227static char *e (p, i)
4228     char **p;
4229     int i;
4230{
4231  return p[i];
4232}
4233static char *f (char * (*g) (char **, int), char **p, ...)
4234{
4235  char *s;
4236  va_list v;
4237  va_start (v,p);
4238  s = g (p, va_arg (v,int));
4239  va_end (v);
4240  return s;
4241}
4242
4243/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4244   function prototypes and stuff, but not '\xHH' hex character constants.
4245   These don't provoke an error unfortunately, instead are silently treated
4246   as 'x'.  The following induces an error, until -std is added to get
4247   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4248   array size at least.  It's necessary to write '\x00'==0 to get something
4249   that's true only with -std.  */
4250int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4251
4252/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4253   inside strings and character constants.  */
4254#define FOO(x) 'x'
4255int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4256
4257int test (int i, double x);
4258struct s1 {int (*f) (int a);};
4259struct s2 {int (*f) (double a);};
4260int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4261int argc;
4262char **argv;
4263int
4264main ()
4265{
4266return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4267  ;
4268  return 0;
4269}
4270_ACEOF
4271for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4272	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4273do
4274  CC="$ac_save_CC $ac_arg"
4275  if ac_fn_c_try_compile "$LINENO"; then :
4276  ac_cv_prog_cc_c89=$ac_arg
4277fi
4278rm -f core conftest.err conftest.$ac_objext
4279  test "x$ac_cv_prog_cc_c89" != "xno" && break
4280done
4281rm -f conftest.$ac_ext
4282CC=$ac_save_CC
4283
4284fi
4285# AC_CACHE_VAL
4286case "x$ac_cv_prog_cc_c89" in
4287  x)
4288    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4289$as_echo "none needed" >&6; } ;;
4290  xno)
4291    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4292$as_echo "unsupported" >&6; } ;;
4293  *)
4294    CC="$CC $ac_cv_prog_cc_c89"
4295    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4296$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4297esac
4298if test "x$ac_cv_prog_cc_c89" != xno; then :
4299
4300fi
4301
4302ac_ext=c
4303ac_cpp='$CPP $CPPFLAGS'
4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308ac_ext=cpp
4309ac_cpp='$CXXCPP $CPPFLAGS'
4310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4313if test -z "$CXX"; then
4314  if test -n "$CCC"; then
4315    CXX=$CCC
4316  else
4317    if test -n "$ac_tool_prefix"; then
4318  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4319  do
4320    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; }
4324if test "${ac_cv_prog_CXX+set}" = set; then :
4325  $as_echo_n "(cached) " >&6
4326else
4327  if test -n "$CXX"; then
4328  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4329else
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333  IFS=$as_save_IFS
4334  test -z "$as_dir" && as_dir=.
4335    for ac_exec_ext in '' $ac_executable_extensions; do
4336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339    break 2
4340  fi
4341done
4342  done
4343IFS=$as_save_IFS
4344
4345fi
4346fi
4347CXX=$ac_cv_prog_CXX
4348if test -n "$CXX"; then
4349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4350$as_echo "$CXX" >&6; }
4351else
4352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353$as_echo "no" >&6; }
4354fi
4355
4356
4357    test -n "$CXX" && break
4358  done
4359fi
4360if test -z "$CXX"; then
4361  ac_ct_CXX=$CXX
4362  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4363do
4364  # Extract the first word of "$ac_prog", so it can be a program name with args.
4365set dummy $ac_prog; ac_word=$2
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367$as_echo_n "checking for $ac_word... " >&6; }
4368if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  if test -n "$ac_ct_CXX"; then
4372  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4373else
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377  IFS=$as_save_IFS
4378  test -z "$as_dir" && as_dir=.
4379    for ac_exec_ext in '' $ac_executable_extensions; do
4380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381    ac_cv_prog_ac_ct_CXX="$ac_prog"
4382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383    break 2
4384  fi
4385done
4386  done
4387IFS=$as_save_IFS
4388
4389fi
4390fi
4391ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4392if test -n "$ac_ct_CXX"; then
4393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4394$as_echo "$ac_ct_CXX" >&6; }
4395else
4396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397$as_echo "no" >&6; }
4398fi
4399
4400
4401  test -n "$ac_ct_CXX" && break
4402done
4403
4404  if test "x$ac_ct_CXX" = x; then
4405    CXX="g++"
4406  else
4407    case $cross_compiling:$ac_tool_warned in
4408yes:)
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411ac_tool_warned=yes ;;
4412esac
4413    CXX=$ac_ct_CXX
4414  fi
4415fi
4416
4417  fi
4418fi
4419# Provide some information about the compiler.
4420$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4421set X $ac_compile
4422ac_compiler=$2
4423for ac_option in --version -v -V -qversion; do
4424  { { ac_try="$ac_compiler $ac_option >&5"
4425case "(($ac_try" in
4426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427  *) ac_try_echo=$ac_try;;
4428esac
4429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430$as_echo "$ac_try_echo"; } >&5
4431  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4432  ac_status=$?
4433  if test -s conftest.err; then
4434    sed '10a\
4435... rest of stderr output deleted ...
4436         10q' conftest.err >conftest.er1
4437    cat conftest.er1 >&5
4438    rm -f conftest.er1 conftest.err
4439  fi
4440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441  test $ac_status = 0; }
4442done
4443
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4445$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4446if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4447  $as_echo_n "(cached) " >&6
4448else
4449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450/* end confdefs.h.  */
4451
4452int
4453main ()
4454{
4455#ifndef __GNUC__
4456       choke me
4457#endif
4458
4459  ;
4460  return 0;
4461}
4462_ACEOF
4463if ac_fn_cxx_try_compile "$LINENO"; then :
4464  ac_compiler_gnu=yes
4465else
4466  ac_compiler_gnu=no
4467fi
4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4470
4471fi
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4473$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4474if test $ac_compiler_gnu = yes; then
4475  GXX=yes
4476else
4477  GXX=
4478fi
4479ac_test_CXXFLAGS=${CXXFLAGS+set}
4480ac_save_CXXFLAGS=$CXXFLAGS
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4482$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4483if test "${ac_cv_prog_cxx_g+set}" = set; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4487   ac_cxx_werror_flag=yes
4488   ac_cv_prog_cxx_g=no
4489   CXXFLAGS="-g"
4490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h.  */
4492
4493int
4494main ()
4495{
4496
4497  ;
4498  return 0;
4499}
4500_ACEOF
4501if ac_fn_cxx_try_compile "$LINENO"; then :
4502  ac_cv_prog_cxx_g=yes
4503else
4504  CXXFLAGS=""
4505      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506/* end confdefs.h.  */
4507
4508int
4509main ()
4510{
4511
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516if ac_fn_cxx_try_compile "$LINENO"; then :
4517
4518else
4519  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4520	 CXXFLAGS="-g"
4521	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522/* end confdefs.h.  */
4523
4524int
4525main ()
4526{
4527
4528  ;
4529  return 0;
4530}
4531_ACEOF
4532if ac_fn_cxx_try_compile "$LINENO"; then :
4533  ac_cv_prog_cxx_g=yes
4534fi
4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536fi
4537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538fi
4539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4543$as_echo "$ac_cv_prog_cxx_g" >&6; }
4544if test "$ac_test_CXXFLAGS" = set; then
4545  CXXFLAGS=$ac_save_CXXFLAGS
4546elif test $ac_cv_prog_cxx_g = yes; then
4547  if test "$GXX" = yes; then
4548    CXXFLAGS="-g -O2"
4549  else
4550    CXXFLAGS="-g"
4551  fi
4552else
4553  if test "$GXX" = yes; then
4554    CXXFLAGS="-O2"
4555  else
4556    CXXFLAGS=
4557  fi
4558fi
4559ac_ext=c
4560ac_cpp='$CPP $CPPFLAGS'
4561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564
4565
4566
4567
4568if test -n "$ac_tool_prefix"; then
4569  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4570set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572$as_echo_n "checking for $ac_word... " >&6; }
4573if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4574  $as_echo_n "(cached) " >&6
4575else
4576  if test -n "$GNATBIND"; then
4577  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4578else
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582  IFS=$as_save_IFS
4583  test -z "$as_dir" && as_dir=.
4584    for ac_exec_ext in '' $ac_executable_extensions; do
4585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588    break 2
4589  fi
4590done
4591  done
4592IFS=$as_save_IFS
4593
4594fi
4595fi
4596GNATBIND=$ac_cv_prog_GNATBIND
4597if test -n "$GNATBIND"; then
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4599$as_echo "$GNATBIND" >&6; }
4600else
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602$as_echo "no" >&6; }
4603fi
4604
4605
4606fi
4607if test -z "$ac_cv_prog_GNATBIND"; then
4608  ac_ct_GNATBIND=$GNATBIND
4609  # Extract the first word of "gnatbind", so it can be a program name with args.
4610set dummy gnatbind; ac_word=$2
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612$as_echo_n "checking for $ac_word... " >&6; }
4613if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  if test -n "$ac_ct_GNATBIND"; then
4617  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622  IFS=$as_save_IFS
4623  test -z "$as_dir" && as_dir=.
4624    for ac_exec_ext in '' $ac_executable_extensions; do
4625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628    break 2
4629  fi
4630done
4631  done
4632IFS=$as_save_IFS
4633
4634fi
4635fi
4636ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4637if test -n "$ac_ct_GNATBIND"; then
4638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4639$as_echo "$ac_ct_GNATBIND" >&6; }
4640else
4641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642$as_echo "no" >&6; }
4643fi
4644
4645  if test "x$ac_ct_GNATBIND" = x; then
4646    GNATBIND="no"
4647  else
4648    case $cross_compiling:$ac_tool_warned in
4649yes:)
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4652ac_tool_warned=yes ;;
4653esac
4654    GNATBIND=$ac_ct_GNATBIND
4655  fi
4656else
4657  GNATBIND="$ac_cv_prog_GNATBIND"
4658fi
4659
4660if test -n "$ac_tool_prefix"; then
4661  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4662set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664$as_echo_n "checking for $ac_word... " >&6; }
4665if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4666  $as_echo_n "(cached) " >&6
4667else
4668  if test -n "$GNATMAKE"; then
4669  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674  IFS=$as_save_IFS
4675  test -z "$as_dir" && as_dir=.
4676    for ac_exec_ext in '' $ac_executable_extensions; do
4677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680    break 2
4681  fi
4682done
4683  done
4684IFS=$as_save_IFS
4685
4686fi
4687fi
4688GNATMAKE=$ac_cv_prog_GNATMAKE
4689if test -n "$GNATMAKE"; then
4690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4691$as_echo "$GNATMAKE" >&6; }
4692else
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694$as_echo "no" >&6; }
4695fi
4696
4697
4698fi
4699if test -z "$ac_cv_prog_GNATMAKE"; then
4700  ac_ct_GNATMAKE=$GNATMAKE
4701  # Extract the first word of "gnatmake", so it can be a program name with args.
4702set dummy gnatmake; ac_word=$2
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704$as_echo_n "checking for $ac_word... " >&6; }
4705if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708  if test -n "$ac_ct_GNATMAKE"; then
4709  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4710else
4711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH
4713do
4714  IFS=$as_save_IFS
4715  test -z "$as_dir" && as_dir=.
4716    for ac_exec_ext in '' $ac_executable_extensions; do
4717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720    break 2
4721  fi
4722done
4723  done
4724IFS=$as_save_IFS
4725
4726fi
4727fi
4728ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4729if test -n "$ac_ct_GNATMAKE"; then
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4731$as_echo "$ac_ct_GNATMAKE" >&6; }
4732else
4733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734$as_echo "no" >&6; }
4735fi
4736
4737  if test "x$ac_ct_GNATMAKE" = x; then
4738    GNATMAKE="no"
4739  else
4740    case $cross_compiling:$ac_tool_warned in
4741yes:)
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4744ac_tool_warned=yes ;;
4745esac
4746    GNATMAKE=$ac_ct_GNATMAKE
4747  fi
4748else
4749  GNATMAKE="$ac_cv_prog_GNATMAKE"
4750fi
4751
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4753$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4754if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4755  $as_echo_n "(cached) " >&6
4756else
4757  cat >conftest.adb <<EOF
4758procedure conftest is begin null; end conftest;
4759EOF
4760acx_cv_cc_gcc_supports_ada=no
4761# There is a bug in old released versions of GCC which causes the
4762# driver to exit successfully when the appropriate language module
4763# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4764# Therefore we must check for the error message as well as an
4765# unsuccessful exit.
4766# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4767# given a .adb file, but produce no object file.  So we must check
4768# if an object file was really produced to guard against this.
4769errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4770if test x"$errors" = x && test -f conftest.$ac_objext; then
4771  acx_cv_cc_gcc_supports_ada=yes
4772fi
4773rm -f conftest.*
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4776$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4777
4778if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4779  have_gnat=yes
4780else
4781  have_gnat=no
4782fi
4783
4784
4785# Remove the -O2: for historical reasons, unless bootstrapping we prefer
4786# optimizations to be activated explicitly by the toplevel.
4787case "$CC" in
4788  */prev-gcc/xgcc*) ;;
4789  *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
4790     CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
4791esac
4792
4793
4794
4795# Determine PICFLAG for target gnatlib.
4796
4797
4798
4799
4800case "${target}" in
4801    # PIC is the default on some targets or must not be used.
4802    *-*-darwin*)
4803	# For darwin, common symbols are not allowed in MH_DYLIB files
4804	case "${CFLAGS}" in
4805	  # If we are using a compiler supporting mdynamic-no-pic
4806	  # and the option has been tested as safe to add, then cancel
4807	  # it here, since the code generated is incompatible with shared
4808	  #��libs.
4809	  *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
4810	  *) PICFLAG_FOR_TARGET=-fno-common ;;
4811	esac
4812	;;
4813    alpha*-dec-osf5*)
4814	# PIC is the default.
4815	;;
4816    hppa*64*-*-hpux*)
4817	# PIC is the default for 64-bit PA HP-UX.
4818	;;
4819    i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4820	;;
4821    i[34567]86-*-mingw* | x86_64-*-mingw*)
4822	;;
4823    i[34567]86-*-interix[3-9]*)
4824	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4825	# Instead, we relocate shared libraries at runtime.
4826	;;
4827    i[34567]86-*-nto-qnx*)
4828	# QNX uses GNU C++, but need to define -shared option too, otherwise
4829	# it will coredump.
4830	PICFLAG_FOR_TARGET='-fPIC -shared'
4831	;;
4832    i[34567]86-pc-msdosdjgpp*)
4833	# DJGPP does not support shared libraries at all.
4834	;;
4835    ia64*-*-hpux*)
4836	# On IA64 HP-UX, PIC is the default but the pic flag
4837	# sets the default TLS model and affects inlining.
4838	PICFLAG_FOR_TARGET=-fPIC
4839	;;
4840    mips-sgi-irix6*)
4841	# PIC is the default.
4842	;;
4843    rs6000-ibm-aix* | powerpc-ibm-aix*)
4844	# All AIX code is PIC.
4845	;;
4846
4847    # Some targets support both -fPIC and -fpic, but prefer the latter.
4848    # FIXME: Why?
4849    i[34567]86-*-* | x86_64-*-*)
4850	PICFLAG_FOR_TARGET=-fpic
4851	;;
4852    # FIXME: Override -fPIC default in libgcc only?
4853    sh-*-linux* | sh[2346lbe]*-*-linux*)
4854	PICFLAG_FOR_TARGET=-fpic
4855	;;
4856    # FIXME: Simplify to sh*-*-netbsd*?
4857    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4858      sh64-*-netbsd* | sh64l*-*-netbsd*)
4859	PICFLAG_FOR_TARGET=-fpic
4860	;;
4861    # Default to -fPIC unless specified otherwise.
4862    *)
4863	PICFLAG_FOR_TARGET=-fPIC
4864	;;
4865esac
4866
4867# If the user explicitly uses -fpic/-fPIC, keep that.
4868case "${CFLAGS_FOR_TARGET}" in
4869    *-fpic*)
4870	PICFLAG_FOR_TARGET=-fpic
4871	;;
4872    *-fPIC*)
4873	PICFLAG_FOR_TARGET=-fPIC
4874	;;
4875esac
4876
4877
4878
4879# -------------------------
4880# Check C compiler features
4881# -------------------------
4882
4883
4884ac_ext=c
4885ac_cpp='$CPP $CPPFLAGS'
4886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4890$as_echo_n "checking how to run the C preprocessor... " >&6; }
4891# On Suns, sometimes $CPP names a directory.
4892if test -n "$CPP" && test -d "$CPP"; then
4893  CPP=
4894fi
4895if test -z "$CPP"; then
4896  if test "${ac_cv_prog_CPP+set}" = set; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899      # Double quotes because CPP needs to be expanded
4900    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4901    do
4902      ac_preproc_ok=false
4903for ac_c_preproc_warn_flag in '' yes
4904do
4905  # Use a header file that comes with gcc, so configuring glibc
4906  # with a fresh cross-compiler works.
4907  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4908  # <limits.h> exists even on freestanding compilers.
4909  # On the NeXT, cc -E runs the code through the compiler's parser,
4910  # not just through cpp. "Syntax error" is here to catch this case.
4911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h.  */
4913#ifdef __STDC__
4914# include <limits.h>
4915#else
4916# include <assert.h>
4917#endif
4918		     Syntax error
4919_ACEOF
4920if ac_fn_c_try_cpp "$LINENO"; then :
4921
4922else
4923  # Broken: fails on valid input.
4924continue
4925fi
4926rm -f conftest.err conftest.$ac_ext
4927
4928  # OK, works on sane cases.  Now check whether nonexistent headers
4929  # can be detected and how.
4930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931/* end confdefs.h.  */
4932#include <ac_nonexistent.h>
4933_ACEOF
4934if ac_fn_c_try_cpp "$LINENO"; then :
4935  # Broken: success on invalid input.
4936continue
4937else
4938  # Passes both tests.
4939ac_preproc_ok=:
4940break
4941fi
4942rm -f conftest.err conftest.$ac_ext
4943
4944done
4945# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4946rm -f conftest.err conftest.$ac_ext
4947if $ac_preproc_ok; then :
4948  break
4949fi
4950
4951    done
4952    ac_cv_prog_CPP=$CPP
4953
4954fi
4955  CPP=$ac_cv_prog_CPP
4956else
4957  ac_cv_prog_CPP=$CPP
4958fi
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4960$as_echo "$CPP" >&6; }
4961ac_preproc_ok=false
4962for ac_c_preproc_warn_flag in '' yes
4963do
4964  # Use a header file that comes with gcc, so configuring glibc
4965  # with a fresh cross-compiler works.
4966  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967  # <limits.h> exists even on freestanding compilers.
4968  # On the NeXT, cc -E runs the code through the compiler's parser,
4969  # not just through cpp. "Syntax error" is here to catch this case.
4970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971/* end confdefs.h.  */
4972#ifdef __STDC__
4973# include <limits.h>
4974#else
4975# include <assert.h>
4976#endif
4977		     Syntax error
4978_ACEOF
4979if ac_fn_c_try_cpp "$LINENO"; then :
4980
4981else
4982  # Broken: fails on valid input.
4983continue
4984fi
4985rm -f conftest.err conftest.$ac_ext
4986
4987  # OK, works on sane cases.  Now check whether nonexistent headers
4988  # can be detected and how.
4989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991#include <ac_nonexistent.h>
4992_ACEOF
4993if ac_fn_c_try_cpp "$LINENO"; then :
4994  # Broken: success on invalid input.
4995continue
4996else
4997  # Passes both tests.
4998ac_preproc_ok=:
4999break
5000fi
5001rm -f conftest.err conftest.$ac_ext
5002
5003done
5004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005rm -f conftest.err conftest.$ac_ext
5006if $ac_preproc_ok; then :
5007
5008else
5009  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5011as_fn_error "C preprocessor \"$CPP\" fails sanity check
5012See \`config.log' for more details." "$LINENO" 5; }
5013fi
5014
5015ac_ext=c
5016ac_cpp='$CPP $CPPFLAGS'
5017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020
5021
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5023$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5024if test "${ac_cv_path_GREP+set}" = set; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  if test -z "$GREP"; then
5028  ac_path_GREP_found=false
5029  # Loop through the user's path and test for each of PROGNAME-LIST
5030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5032do
5033  IFS=$as_save_IFS
5034  test -z "$as_dir" && as_dir=.
5035    for ac_prog in grep ggrep; do
5036    for ac_exec_ext in '' $ac_executable_extensions; do
5037      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5038      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5039# Check for GNU ac_path_GREP and select it if it is found.
5040  # Check for GNU $ac_path_GREP
5041case `"$ac_path_GREP" --version 2>&1` in
5042*GNU*)
5043  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5044*)
5045  ac_count=0
5046  $as_echo_n 0123456789 >"conftest.in"
5047  while :
5048  do
5049    cat "conftest.in" "conftest.in" >"conftest.tmp"
5050    mv "conftest.tmp" "conftest.in"
5051    cp "conftest.in" "conftest.nl"
5052    $as_echo 'GREP' >> "conftest.nl"
5053    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5054    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5055    as_fn_arith $ac_count + 1 && ac_count=$as_val
5056    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5057      # Best one so far, save it but keep looking for a better one
5058      ac_cv_path_GREP="$ac_path_GREP"
5059      ac_path_GREP_max=$ac_count
5060    fi
5061    # 10*(2^10) chars as input seems more than enough
5062    test $ac_count -gt 10 && break
5063  done
5064  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5065esac
5066
5067      $ac_path_GREP_found && break 3
5068    done
5069  done
5070  done
5071IFS=$as_save_IFS
5072  if test -z "$ac_cv_path_GREP"; then
5073    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5074  fi
5075else
5076  ac_cv_path_GREP=$GREP
5077fi
5078
5079fi
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5081$as_echo "$ac_cv_path_GREP" >&6; }
5082 GREP="$ac_cv_path_GREP"
5083
5084
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5086$as_echo_n "checking for egrep... " >&6; }
5087if test "${ac_cv_path_EGREP+set}" = set; then :
5088  $as_echo_n "(cached) " >&6
5089else
5090  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5091   then ac_cv_path_EGREP="$GREP -E"
5092   else
5093     if test -z "$EGREP"; then
5094  ac_path_EGREP_found=false
5095  # Loop through the user's path and test for each of PROGNAME-LIST
5096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5098do
5099  IFS=$as_save_IFS
5100  test -z "$as_dir" && as_dir=.
5101    for ac_prog in egrep; do
5102    for ac_exec_ext in '' $ac_executable_extensions; do
5103      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5104      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5105# Check for GNU ac_path_EGREP and select it if it is found.
5106  # Check for GNU $ac_path_EGREP
5107case `"$ac_path_EGREP" --version 2>&1` in
5108*GNU*)
5109  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5110*)
5111  ac_count=0
5112  $as_echo_n 0123456789 >"conftest.in"
5113  while :
5114  do
5115    cat "conftest.in" "conftest.in" >"conftest.tmp"
5116    mv "conftest.tmp" "conftest.in"
5117    cp "conftest.in" "conftest.nl"
5118    $as_echo 'EGREP' >> "conftest.nl"
5119    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5120    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5121    as_fn_arith $ac_count + 1 && ac_count=$as_val
5122    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5123      # Best one so far, save it but keep looking for a better one
5124      ac_cv_path_EGREP="$ac_path_EGREP"
5125      ac_path_EGREP_max=$ac_count
5126    fi
5127    # 10*(2^10) chars as input seems more than enough
5128    test $ac_count -gt 10 && break
5129  done
5130  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131esac
5132
5133      $ac_path_EGREP_found && break 3
5134    done
5135  done
5136  done
5137IFS=$as_save_IFS
5138  if test -z "$ac_cv_path_EGREP"; then
5139    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5140  fi
5141else
5142  ac_cv_path_EGREP=$EGREP
5143fi
5144
5145   fi
5146fi
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5148$as_echo "$ac_cv_path_EGREP" >&6; }
5149 EGREP="$ac_cv_path_EGREP"
5150
5151
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5153$as_echo_n "checking for ANSI C header files... " >&6; }
5154if test "${ac_cv_header_stdc+set}" = set; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159#include <stdlib.h>
5160#include <stdarg.h>
5161#include <string.h>
5162#include <float.h>
5163
5164int
5165main ()
5166{
5167
5168  ;
5169  return 0;
5170}
5171_ACEOF
5172if ac_fn_c_try_compile "$LINENO"; then :
5173  ac_cv_header_stdc=yes
5174else
5175  ac_cv_header_stdc=no
5176fi
5177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178
5179if test $ac_cv_header_stdc = yes; then
5180  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h.  */
5183#include <string.h>
5184
5185_ACEOF
5186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187  $EGREP "memchr" >/dev/null 2>&1; then :
5188
5189else
5190  ac_cv_header_stdc=no
5191fi
5192rm -f conftest*
5193
5194fi
5195
5196if test $ac_cv_header_stdc = yes; then
5197  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200#include <stdlib.h>
5201
5202_ACEOF
5203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5204  $EGREP "free" >/dev/null 2>&1; then :
5205
5206else
5207  ac_cv_header_stdc=no
5208fi
5209rm -f conftest*
5210
5211fi
5212
5213if test $ac_cv_header_stdc = yes; then
5214  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5215  if test "$cross_compiling" = yes; then :
5216  :
5217else
5218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h.  */
5220#include <ctype.h>
5221#include <stdlib.h>
5222#if ((' ' & 0x0FF) == 0x020)
5223# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5224# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5225#else
5226# define ISLOWER(c) \
5227		   (('a' <= (c) && (c) <= 'i') \
5228		     || ('j' <= (c) && (c) <= 'r') \
5229		     || ('s' <= (c) && (c) <= 'z'))
5230# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5231#endif
5232
5233#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5234int
5235main ()
5236{
5237  int i;
5238  for (i = 0; i < 256; i++)
5239    if (XOR (islower (i), ISLOWER (i))
5240	|| toupper (i) != TOUPPER (i))
5241      return 2;
5242  return 0;
5243}
5244_ACEOF
5245if ac_fn_c_try_run "$LINENO"; then :
5246
5247else
5248  ac_cv_header_stdc=no
5249fi
5250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5251  conftest.$ac_objext conftest.beam conftest.$ac_ext
5252fi
5253
5254fi
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5257$as_echo "$ac_cv_header_stdc" >&6; }
5258if test $ac_cv_header_stdc = yes; then
5259
5260$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5261
5262fi
5263
5264# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5265for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5266		  inttypes.h stdint.h unistd.h
5267do :
5268  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5269ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5270"
5271eval as_val=\$$as_ac_Header
5272   if test "x$as_val" = x""yes; then :
5273  cat >>confdefs.h <<_ACEOF
5274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5275_ACEOF
5276
5277fi
5278
5279done
5280
5281
5282
5283  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5284if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5285  MINIX=yes
5286else
5287  MINIX=
5288fi
5289
5290
5291  if test "$MINIX" = yes; then
5292
5293$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5294
5295
5296$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5297
5298
5299$as_echo "#define _MINIX 1" >>confdefs.h
5300
5301  fi
5302
5303
5304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5305$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5306if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5307  $as_echo_n "(cached) " >&6
5308else
5309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311
5312#	  define __EXTENSIONS__ 1
5313	  $ac_includes_default
5314int
5315main ()
5316{
5317
5318  ;
5319  return 0;
5320}
5321_ACEOF
5322if ac_fn_c_try_compile "$LINENO"; then :
5323  ac_cv_safe_to_define___extensions__=yes
5324else
5325  ac_cv_safe_to_define___extensions__=no
5326fi
5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5330$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5331  test $ac_cv_safe_to_define___extensions__ = yes &&
5332    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5333
5334  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5335
5336  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5337
5338  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5339
5340  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5341
5342
5343ac_ext=c
5344ac_cpp='$CPP $CPPFLAGS'
5345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5349$as_echo_n "checking how to run the C preprocessor... " >&6; }
5350# On Suns, sometimes $CPP names a directory.
5351if test -n "$CPP" && test -d "$CPP"; then
5352  CPP=
5353fi
5354if test -z "$CPP"; then
5355  if test "${ac_cv_prog_CPP+set}" = set; then :
5356  $as_echo_n "(cached) " >&6
5357else
5358      # Double quotes because CPP needs to be expanded
5359    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5360    do
5361      ac_preproc_ok=false
5362for ac_c_preproc_warn_flag in '' yes
5363do
5364  # Use a header file that comes with gcc, so configuring glibc
5365  # with a fresh cross-compiler works.
5366  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5367  # <limits.h> exists even on freestanding compilers.
5368  # On the NeXT, cc -E runs the code through the compiler's parser,
5369  # not just through cpp. "Syntax error" is here to catch this case.
5370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h.  */
5372#ifdef __STDC__
5373# include <limits.h>
5374#else
5375# include <assert.h>
5376#endif
5377		     Syntax error
5378_ACEOF
5379if ac_fn_c_try_cpp "$LINENO"; then :
5380
5381else
5382  # Broken: fails on valid input.
5383continue
5384fi
5385rm -f conftest.err conftest.$ac_ext
5386
5387  # OK, works on sane cases.  Now check whether nonexistent headers
5388  # can be detected and how.
5389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390/* end confdefs.h.  */
5391#include <ac_nonexistent.h>
5392_ACEOF
5393if ac_fn_c_try_cpp "$LINENO"; then :
5394  # Broken: success on invalid input.
5395continue
5396else
5397  # Passes both tests.
5398ac_preproc_ok=:
5399break
5400fi
5401rm -f conftest.err conftest.$ac_ext
5402
5403done
5404# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5405rm -f conftest.err conftest.$ac_ext
5406if $ac_preproc_ok; then :
5407  break
5408fi
5409
5410    done
5411    ac_cv_prog_CPP=$CPP
5412
5413fi
5414  CPP=$ac_cv_prog_CPP
5415else
5416  ac_cv_prog_CPP=$CPP
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5419$as_echo "$CPP" >&6; }
5420ac_preproc_ok=false
5421for ac_c_preproc_warn_flag in '' yes
5422do
5423  # Use a header file that comes with gcc, so configuring glibc
5424  # with a fresh cross-compiler works.
5425  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5426  # <limits.h> exists even on freestanding compilers.
5427  # On the NeXT, cc -E runs the code through the compiler's parser,
5428  # not just through cpp. "Syntax error" is here to catch this case.
5429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h.  */
5431#ifdef __STDC__
5432# include <limits.h>
5433#else
5434# include <assert.h>
5435#endif
5436		     Syntax error
5437_ACEOF
5438if ac_fn_c_try_cpp "$LINENO"; then :
5439
5440else
5441  # Broken: fails on valid input.
5442continue
5443fi
5444rm -f conftest.err conftest.$ac_ext
5445
5446  # OK, works on sane cases.  Now check whether nonexistent headers
5447  # can be detected and how.
5448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450#include <ac_nonexistent.h>
5451_ACEOF
5452if ac_fn_c_try_cpp "$LINENO"; then :
5453  # Broken: success on invalid input.
5454continue
5455else
5456  # Passes both tests.
5457ac_preproc_ok=:
5458break
5459fi
5460rm -f conftest.err conftest.$ac_ext
5461
5462done
5463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5464rm -f conftest.err conftest.$ac_ext
5465if $ac_preproc_ok; then :
5466
5467else
5468  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5470as_fn_error "C preprocessor \"$CPP\" fails sanity check
5471See \`config.log' for more details." "$LINENO" 5; }
5472fi
5473
5474ac_ext=c
5475ac_cpp='$CPP $CPPFLAGS'
5476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478ac_compiler_gnu=$ac_cv_c_compiler_gnu
5479
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5481$as_echo_n "checking for inline... " >&6; }
5482if test "${ac_cv_c_inline+set}" = set; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  ac_cv_c_inline=no
5486for ac_kw in inline __inline__ __inline; do
5487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488/* end confdefs.h.  */
5489#ifndef __cplusplus
5490typedef int foo_t;
5491static $ac_kw foo_t static_foo () {return 0; }
5492$ac_kw foo_t foo () {return 0; }
5493#endif
5494
5495_ACEOF
5496if ac_fn_c_try_compile "$LINENO"; then :
5497  ac_cv_c_inline=$ac_kw
5498fi
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500  test "$ac_cv_c_inline" != no && break
5501done
5502
5503fi
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5505$as_echo "$ac_cv_c_inline" >&6; }
5506
5507case $ac_cv_c_inline in
5508  inline | yes) ;;
5509  *)
5510    case $ac_cv_c_inline in
5511      no) ac_val=;;
5512      *) ac_val=$ac_cv_c_inline;;
5513    esac
5514    cat >>confdefs.h <<_ACEOF
5515#ifndef __cplusplus
5516#define inline $ac_val
5517#endif
5518_ACEOF
5519    ;;
5520esac
5521
5522
5523# Check whether --enable-largefile was given.
5524if test "${enable_largefile+set}" = set; then :
5525  enableval=$enable_largefile;
5526fi
5527
5528if test "$enable_largefile" != no; then
5529
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5531$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5532if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  ac_cv_sys_largefile_CC=no
5536     if test "$GCC" != yes; then
5537       ac_save_CC=$CC
5538       while :; do
5539	 # IRIX 6.2 and later do not support large files by default,
5540	 # so use the C compiler's -n32 option if that helps.
5541	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542/* end confdefs.h.  */
5543#include <sys/types.h>
5544 /* Check that off_t can represent 2**63 - 1 correctly.
5545    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5546    since some C++ compilers masquerading as C compilers
5547    incorrectly reject 9223372036854775807.  */
5548#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5549  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5550		       && LARGE_OFF_T % 2147483647 == 1)
5551		      ? 1 : -1];
5552int
5553main ()
5554{
5555
5556  ;
5557  return 0;
5558}
5559_ACEOF
5560	 if ac_fn_c_try_compile "$LINENO"; then :
5561  break
5562fi
5563rm -f core conftest.err conftest.$ac_objext
5564	 CC="$CC -n32"
5565	 if ac_fn_c_try_compile "$LINENO"; then :
5566  ac_cv_sys_largefile_CC=' -n32'; break
5567fi
5568rm -f core conftest.err conftest.$ac_objext
5569	 break
5570       done
5571       CC=$ac_save_CC
5572       rm -f conftest.$ac_ext
5573    fi
5574fi
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5576$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5577  if test "$ac_cv_sys_largefile_CC" != no; then
5578    CC=$CC$ac_cv_sys_largefile_CC
5579  fi
5580
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5582$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5583if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  while :; do
5587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h.  */
5589#include <sys/types.h>
5590 /* Check that off_t can represent 2**63 - 1 correctly.
5591    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5592    since some C++ compilers masquerading as C compilers
5593    incorrectly reject 9223372036854775807.  */
5594#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5595  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5596		       && LARGE_OFF_T % 2147483647 == 1)
5597		      ? 1 : -1];
5598int
5599main ()
5600{
5601
5602  ;
5603  return 0;
5604}
5605_ACEOF
5606if ac_fn_c_try_compile "$LINENO"; then :
5607  ac_cv_sys_file_offset_bits=no; break
5608fi
5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h.  */
5612#define _FILE_OFFSET_BITS 64
5613#include <sys/types.h>
5614 /* Check that off_t can represent 2**63 - 1 correctly.
5615    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5616    since some C++ compilers masquerading as C compilers
5617    incorrectly reject 9223372036854775807.  */
5618#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5619  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5620		       && LARGE_OFF_T % 2147483647 == 1)
5621		      ? 1 : -1];
5622int
5623main ()
5624{
5625
5626  ;
5627  return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_compile "$LINENO"; then :
5631  ac_cv_sys_file_offset_bits=64; break
5632fi
5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634  ac_cv_sys_file_offset_bits=unknown
5635  break
5636done
5637fi
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5639$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5640case $ac_cv_sys_file_offset_bits in #(
5641  no | unknown) ;;
5642  *)
5643cat >>confdefs.h <<_ACEOF
5644#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5645_ACEOF
5646;;
5647esac
5648rm -rf conftest*
5649  if test $ac_cv_sys_file_offset_bits = unknown; then
5650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5651$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5652if test "${ac_cv_sys_large_files+set}" = set; then :
5653  $as_echo_n "(cached) " >&6
5654else
5655  while :; do
5656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658#include <sys/types.h>
5659 /* Check that off_t can represent 2**63 - 1 correctly.
5660    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5661    since some C++ compilers masquerading as C compilers
5662    incorrectly reject 9223372036854775807.  */
5663#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5664  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5665		       && LARGE_OFF_T % 2147483647 == 1)
5666		      ? 1 : -1];
5667int
5668main ()
5669{
5670
5671  ;
5672  return 0;
5673}
5674_ACEOF
5675if ac_fn_c_try_compile "$LINENO"; then :
5676  ac_cv_sys_large_files=no; break
5677fi
5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h.  */
5681#define _LARGE_FILES 1
5682#include <sys/types.h>
5683 /* Check that off_t can represent 2**63 - 1 correctly.
5684    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5685    since some C++ compilers masquerading as C compilers
5686    incorrectly reject 9223372036854775807.  */
5687#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5688  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5689		       && LARGE_OFF_T % 2147483647 == 1)
5690		      ? 1 : -1];
5691int
5692main ()
5693{
5694
5695  ;
5696  return 0;
5697}
5698_ACEOF
5699if ac_fn_c_try_compile "$LINENO"; then :
5700  ac_cv_sys_large_files=1; break
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703  ac_cv_sys_large_files=unknown
5704  break
5705done
5706fi
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5708$as_echo "$ac_cv_sys_large_files" >&6; }
5709case $ac_cv_sys_large_files in #(
5710  no | unknown) ;;
5711  *)
5712cat >>confdefs.h <<_ACEOF
5713#define _LARGE_FILES $ac_cv_sys_large_files
5714_ACEOF
5715;;
5716esac
5717rm -rf conftest*
5718  fi
5719fi
5720
5721
5722# sizeof(char) is 1 by definition.
5723# The cast to long int works around a bug in the HP C Compiler
5724# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5725# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5726# This bug is HP SR number 8606223364.
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5728$as_echo_n "checking size of void *... " >&6; }
5729if test "${ac_cv_sizeof_void_p+set}" = set; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5733
5734else
5735  if test "$ac_cv_type_void_p" = yes; then
5736     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5738{ as_fn_set_status 77
5739as_fn_error "cannot compute sizeof (void *)
5740See \`config.log' for more details." "$LINENO" 5; }; }
5741   else
5742     ac_cv_sizeof_void_p=0
5743   fi
5744fi
5745
5746fi
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5748$as_echo "$ac_cv_sizeof_void_p" >&6; }
5749
5750
5751
5752cat >>confdefs.h <<_ACEOF
5753#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5754_ACEOF
5755
5756
5757# The cast to long int works around a bug in the HP C Compiler
5758# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5759# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5760# This bug is HP SR number 8606223364.
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5762$as_echo_n "checking size of short... " >&6; }
5763if test "${ac_cv_sizeof_short+set}" = set; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5767
5768else
5769  if test "$ac_cv_type_short" = yes; then
5770     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5772{ as_fn_set_status 77
5773as_fn_error "cannot compute sizeof (short)
5774See \`config.log' for more details." "$LINENO" 5; }; }
5775   else
5776     ac_cv_sizeof_short=0
5777   fi
5778fi
5779
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5782$as_echo "$ac_cv_sizeof_short" >&6; }
5783
5784
5785
5786cat >>confdefs.h <<_ACEOF
5787#define SIZEOF_SHORT $ac_cv_sizeof_short
5788_ACEOF
5789
5790
5791# The cast to long int works around a bug in the HP C Compiler
5792# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5793# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5794# This bug is HP SR number 8606223364.
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5796$as_echo_n "checking size of int... " >&6; }
5797if test "${ac_cv_sizeof_int+set}" = set; then :
5798  $as_echo_n "(cached) " >&6
5799else
5800  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5801
5802else
5803  if test "$ac_cv_type_int" = yes; then
5804     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5806{ as_fn_set_status 77
5807as_fn_error "cannot compute sizeof (int)
5808See \`config.log' for more details." "$LINENO" 5; }; }
5809   else
5810     ac_cv_sizeof_int=0
5811   fi
5812fi
5813
5814fi
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5816$as_echo "$ac_cv_sizeof_int" >&6; }
5817
5818
5819
5820cat >>confdefs.h <<_ACEOF
5821#define SIZEOF_INT $ac_cv_sizeof_int
5822_ACEOF
5823
5824
5825# The cast to long int works around a bug in the HP C Compiler
5826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5828# This bug is HP SR number 8606223364.
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5830$as_echo_n "checking size of long... " >&6; }
5831if test "${ac_cv_sizeof_long+set}" = set; then :
5832  $as_echo_n "(cached) " >&6
5833else
5834  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5835
5836else
5837  if test "$ac_cv_type_long" = yes; then
5838     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5840{ as_fn_set_status 77
5841as_fn_error "cannot compute sizeof (long)
5842See \`config.log' for more details." "$LINENO" 5; }; }
5843   else
5844     ac_cv_sizeof_long=0
5845   fi
5846fi
5847
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5850$as_echo "$ac_cv_sizeof_long" >&6; }
5851
5852
5853
5854cat >>confdefs.h <<_ACEOF
5855#define SIZEOF_LONG $ac_cv_sizeof_long
5856_ACEOF
5857
5858
5859ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5860if test "x$ac_cv_type_long_long" = x""yes; then :
5861
5862cat >>confdefs.h <<_ACEOF
5863#define HAVE_LONG_LONG 1
5864_ACEOF
5865
5866# The cast to long int works around a bug in the HP C Compiler
5867# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5868# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5869# This bug is HP SR number 8606223364.
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5871$as_echo_n "checking size of long long... " >&6; }
5872if test "${ac_cv_sizeof_long_long+set}" = set; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5876
5877else
5878  if test "$ac_cv_type_long_long" = yes; then
5879     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5881{ as_fn_set_status 77
5882as_fn_error "cannot compute sizeof (long long)
5883See \`config.log' for more details." "$LINENO" 5; }; }
5884   else
5885     ac_cv_sizeof_long_long=0
5886   fi
5887fi
5888
5889fi
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5891$as_echo "$ac_cv_sizeof_long_long" >&6; }
5892
5893
5894
5895cat >>confdefs.h <<_ACEOF
5896#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5897_ACEOF
5898
5899
5900fi
5901
5902ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5903case $ac_cv_c_int8_t in #(
5904  no|yes) ;; #(
5905  *)
5906
5907cat >>confdefs.h <<_ACEOF
5908#define int8_t $ac_cv_c_int8_t
5909_ACEOF
5910;;
5911esac
5912
5913ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5914case $ac_cv_c_int16_t in #(
5915  no|yes) ;; #(
5916  *)
5917
5918cat >>confdefs.h <<_ACEOF
5919#define int16_t $ac_cv_c_int16_t
5920_ACEOF
5921;;
5922esac
5923
5924ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5925case $ac_cv_c_int32_t in #(
5926  no|yes) ;; #(
5927  *)
5928
5929cat >>confdefs.h <<_ACEOF
5930#define int32_t $ac_cv_c_int32_t
5931_ACEOF
5932;;
5933esac
5934
5935ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5936case $ac_cv_c_int64_t in #(
5937  no|yes) ;; #(
5938  *)
5939
5940cat >>confdefs.h <<_ACEOF
5941#define int64_t $ac_cv_c_int64_t
5942_ACEOF
5943;;
5944esac
5945
5946
5947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5948$as_echo_n "checking for long long int... " >&6; }
5949if test "${ac_cv_type_long_long_int+set}" = set; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954
5955  /* For now, do not test the preprocessor; as of 2007 there are too many
5956	 implementations with broken preprocessors.  Perhaps this can
5957	 be revisited in 2012.  In the meantime, code should not expect
5958	 #if to work with literals wider than 32 bits.  */
5959      /* Test literals.  */
5960      long long int ll = 9223372036854775807ll;
5961      long long int nll = -9223372036854775807LL;
5962      unsigned long long int ull = 18446744073709551615ULL;
5963      /* Test constant expressions.   */
5964      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5965		     ? 1 : -1)];
5966      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5967		     ? 1 : -1)];
5968      int i = 63;
5969int
5970main ()
5971{
5972/* Test availability of runtime routines for shift and division.  */
5973      long long int llmax = 9223372036854775807ll;
5974      unsigned long long int ullmax = 18446744073709551615ull;
5975      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5976	      | (llmax / ll) | (llmax % ll)
5977	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5978	      | (ullmax / ull) | (ullmax % ull));
5979  ;
5980  return 0;
5981}
5982
5983_ACEOF
5984if ac_fn_c_try_link "$LINENO"; then :
5985  			if test "$cross_compiling" = yes; then :
5986  ac_cv_type_long_long_int=yes
5987else
5988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989/* end confdefs.h.  */
5990#include <limits.h>
5991	       #ifndef LLONG_MAX
5992	       # define HALF \
5993			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
5994	       # define LLONG_MAX (HALF - 1 + HALF)
5995	       #endif
5996int
5997main ()
5998{
5999long long int n = 1;
6000	       int i;
6001	       for (i = 0; ; i++)
6002		 {
6003		   long long int m = n << i;
6004		   if (m >> i != n)
6005		     return 1;
6006		   if (LLONG_MAX / 2 < m)
6007		     break;
6008		 }
6009	       return 0;
6010  ;
6011  return 0;
6012}
6013_ACEOF
6014if ac_fn_c_try_run "$LINENO"; then :
6015  ac_cv_type_long_long_int=yes
6016else
6017  ac_cv_type_long_long_int=no
6018fi
6019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020  conftest.$ac_objext conftest.beam conftest.$ac_ext
6021fi
6022
6023else
6024  ac_cv_type_long_long_int=no
6025fi
6026rm -f core conftest.err conftest.$ac_objext \
6027    conftest$ac_exeext conftest.$ac_ext
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6030$as_echo "$ac_cv_type_long_long_int" >&6; }
6031  if test $ac_cv_type_long_long_int = yes; then
6032
6033$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6034
6035  fi
6036
6037
6038
6039  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6040if test "x$ac_cv_type_intmax_t" = x""yes; then :
6041
6042$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6043
6044else
6045  test $ac_cv_type_long_long_int = yes \
6046       && ac_type='long long int' \
6047       || ac_type='long int'
6048
6049cat >>confdefs.h <<_ACEOF
6050#define intmax_t $ac_type
6051_ACEOF
6052
6053fi
6054
6055
6056
6057  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6058if test "x$ac_cv_type_intptr_t" = x""yes; then :
6059
6060$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6061
6062else
6063  for ac_type in 'int' 'long int' 'long long int'; do
6064       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h.  */
6066$ac_includes_default
6067int
6068main ()
6069{
6070static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6071test_array [0] = 0
6072
6073  ;
6074  return 0;
6075}
6076_ACEOF
6077if ac_fn_c_try_compile "$LINENO"; then :
6078
6079cat >>confdefs.h <<_ACEOF
6080#define intptr_t $ac_type
6081_ACEOF
6082
6083	  ac_type=
6084fi
6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086       test -z "$ac_type" && break
6087     done
6088fi
6089
6090
6091ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6092case $ac_cv_c_uint8_t in #(
6093  no|yes) ;; #(
6094  *)
6095
6096$as_echo "#define _UINT8_T 1" >>confdefs.h
6097
6098
6099cat >>confdefs.h <<_ACEOF
6100#define uint8_t $ac_cv_c_uint8_t
6101_ACEOF
6102;;
6103  esac
6104
6105ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6106case $ac_cv_c_uint16_t in #(
6107  no|yes) ;; #(
6108  *)
6109
6110
6111cat >>confdefs.h <<_ACEOF
6112#define uint16_t $ac_cv_c_uint16_t
6113_ACEOF
6114;;
6115  esac
6116
6117ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6118case $ac_cv_c_uint32_t in #(
6119  no|yes) ;; #(
6120  *)
6121
6122$as_echo "#define _UINT32_T 1" >>confdefs.h
6123
6124
6125cat >>confdefs.h <<_ACEOF
6126#define uint32_t $ac_cv_c_uint32_t
6127_ACEOF
6128;;
6129  esac
6130
6131ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6132case $ac_cv_c_uint64_t in #(
6133  no|yes) ;; #(
6134  *)
6135
6136$as_echo "#define _UINT64_T 1" >>confdefs.h
6137
6138
6139cat >>confdefs.h <<_ACEOF
6140#define uint64_t $ac_cv_c_uint64_t
6141_ACEOF
6142;;
6143  esac
6144
6145
6146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6147$as_echo_n "checking for unsigned long long int... " >&6; }
6148if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6149  $as_echo_n "(cached) " >&6
6150else
6151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153
6154  /* For now, do not test the preprocessor; as of 2007 there are too many
6155	 implementations with broken preprocessors.  Perhaps this can
6156	 be revisited in 2012.  In the meantime, code should not expect
6157	 #if to work with literals wider than 32 bits.  */
6158      /* Test literals.  */
6159      long long int ll = 9223372036854775807ll;
6160      long long int nll = -9223372036854775807LL;
6161      unsigned long long int ull = 18446744073709551615ULL;
6162      /* Test constant expressions.   */
6163      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6164		     ? 1 : -1)];
6165      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6166		     ? 1 : -1)];
6167      int i = 63;
6168int
6169main ()
6170{
6171/* Test availability of runtime routines for shift and division.  */
6172      long long int llmax = 9223372036854775807ll;
6173      unsigned long long int ullmax = 18446744073709551615ull;
6174      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6175	      | (llmax / ll) | (llmax % ll)
6176	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6177	      | (ullmax / ull) | (ullmax % ull));
6178  ;
6179  return 0;
6180}
6181
6182_ACEOF
6183if ac_fn_c_try_link "$LINENO"; then :
6184  ac_cv_type_unsigned_long_long_int=yes
6185else
6186  ac_cv_type_unsigned_long_long_int=no
6187fi
6188rm -f core conftest.err conftest.$ac_objext \
6189    conftest$ac_exeext conftest.$ac_ext
6190fi
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6192$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6193  if test $ac_cv_type_unsigned_long_long_int = yes; then
6194
6195$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6196
6197  fi
6198
6199
6200
6201  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6202if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6203
6204$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6205
6206else
6207  test $ac_cv_type_unsigned_long_long_int = yes \
6208       && ac_type='unsigned long long int' \
6209       || ac_type='unsigned long int'
6210
6211cat >>confdefs.h <<_ACEOF
6212#define uintmax_t $ac_type
6213_ACEOF
6214
6215fi
6216
6217
6218
6219  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6220if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6221
6222$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6223
6224else
6225  for ac_type in 'unsigned int' 'unsigned long int' \
6226	'unsigned long long int'; do
6227       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229$ac_includes_default
6230int
6231main ()
6232{
6233static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6234test_array [0] = 0
6235
6236  ;
6237  return 0;
6238}
6239_ACEOF
6240if ac_fn_c_try_compile "$LINENO"; then :
6241
6242cat >>confdefs.h <<_ACEOF
6243#define uintptr_t $ac_type
6244_ACEOF
6245
6246	  ac_type=
6247fi
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249       test -z "$ac_type" && break
6250     done
6251fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6267  as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6268fi
6269
6270# check what underlying integer type int64_t uses
6271ac_ext=cpp
6272ac_cpp='$CXXCPP $CPPFLAGS'
6273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6276
6277
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6279$as_echo_n "checking for int64_t underlying type... " >&6; }
6280if test "${ac_cv_int64_t_type+set}" = set; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283
6284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285/* end confdefs.h.  */
6286
6287#ifdef HAVE_STDINT_H
6288#include <stdint.h>
6289#endif
6290template <typename T> struct X { };
6291template <>
6292struct X<long> { typedef long t; };
6293
6294int
6295main ()
6296{
6297X<int64_t>::t x;
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302if ac_fn_cxx_try_compile "$LINENO"; then :
6303  ac_cv_int64_t_type=long
6304else
6305  ac_cv_int64_t_type="long long"
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308fi
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6310$as_echo "$ac_cv_int64_t_type" >&6; }
6311if test "$ac_cv_int64_t_type" = "long"; then
6312
6313$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6314
6315else
6316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317/* end confdefs.h.  */
6318
6319#ifdef HAVE_STDINT_H
6320#include <stdint.h>
6321#endif
6322template <typename T> struct X { };
6323template <>
6324struct X<long long> { typedef long long t; };
6325
6326int
6327main ()
6328{
6329X<int64_t>::t x;
6330  ;
6331  return 0;
6332}
6333_ACEOF
6334if ac_fn_cxx_try_compile "$LINENO"; then :
6335
6336else
6337  as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6338fi
6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340fi
6341ac_ext=c
6342ac_cpp='$CPP $CPPFLAGS'
6343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6345ac_compiler_gnu=$ac_cv_c_compiler_gnu
6346
6347
6348
6349
6350
6351# ---------------------
6352# Warnings and checking
6353# ---------------------
6354
6355# Check $CC warning features (if it's GCC).
6356# We want to use -pedantic, but we don't want warnings about
6357# * 'long long'
6358# * variadic macros
6359# * overlong strings
6360# * C++11 narrowing conversions in { }
6361# So, we only use -pedantic if we can disable those warnings.
6362
6363# In stage 1, disable -Wformat warnings from old GCCs about new % codes
6364# Check whether --enable-build-format-warnings was given.
6365if test "${enable_build_format_warnings+set}" = set; then :
6366  enableval=$enable_build_format_warnings;
6367else
6368  enable_build_format_warnings=yes
6369fi
6370
6371if test $enable_build_format_warnings = no; then :
6372  wf_opt=-Wno-format
6373else
6374  wf_opt=
6375fi
6376loose_warn=
6377save_CFLAGS="$CFLAGS"
6378for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6379  # Do the check with the no- prefix removed since gcc silently
6380  # accepts any -Wno-* option on purpose
6381  case $real_option in
6382    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6383    *) option=$real_option ;;
6384  esac
6385  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6386
6387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6388$as_echo_n "checking whether $CC supports $option... " >&6; }
6389if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6390  $as_echo_n "(cached) " >&6
6391else
6392  CFLAGS="$option"
6393    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h.  */
6395
6396int
6397main ()
6398{
6399
6400  ;
6401  return 0;
6402}
6403_ACEOF
6404if ac_fn_c_try_compile "$LINENO"; then :
6405  eval "$as_acx_Woption=yes"
6406else
6407  eval "$as_acx_Woption=no"
6408fi
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410
6411fi
6412eval ac_res=\$$as_acx_Woption
6413	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6414$as_echo "$ac_res" >&6; }
6415  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6416  loose_warn="$loose_warn${loose_warn:+ }$real_option"
6417fi
6418  done
6419CFLAGS="$save_CFLAGS"
6420
6421c_loose_warn=
6422save_CFLAGS="$CFLAGS"
6423for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6424  # Do the check with the no- prefix removed since gcc silently
6425  # accepts any -Wno-* option on purpose
6426  case $real_option in
6427    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6428    *) option=$real_option ;;
6429  esac
6430  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6431
6432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6433$as_echo_n "checking whether $CC supports $option... " >&6; }
6434if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  CFLAGS="$option"
6438    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h.  */
6440
6441int
6442main ()
6443{
6444
6445  ;
6446  return 0;
6447}
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"; then :
6450  eval "$as_acx_Woption=yes"
6451else
6452  eval "$as_acx_Woption=no"
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455
6456fi
6457eval ac_res=\$$as_acx_Woption
6458	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6459$as_echo "$ac_res" >&6; }
6460  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6461  c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6462fi
6463  done
6464CFLAGS="$save_CFLAGS"
6465
6466strict_warn=
6467save_CFLAGS="$CFLAGS"
6468for real_option in -Wmissing-format-attribute; do
6469  # Do the check with the no- prefix removed since gcc silently
6470  # accepts any -Wno-* option on purpose
6471  case $real_option in
6472    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6473    *) option=$real_option ;;
6474  esac
6475  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6476
6477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6478$as_echo_n "checking whether $CC supports $option... " >&6; }
6479if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6480  $as_echo_n "(cached) " >&6
6481else
6482  CFLAGS="$option"
6483    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h.  */
6485
6486int
6487main ()
6488{
6489
6490  ;
6491  return 0;
6492}
6493_ACEOF
6494if ac_fn_c_try_compile "$LINENO"; then :
6495  eval "$as_acx_Woption=yes"
6496else
6497  eval "$as_acx_Woption=no"
6498fi
6499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500
6501fi
6502eval ac_res=\$$as_acx_Woption
6503	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6504$as_echo "$ac_res" >&6; }
6505  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6506  strict_warn="$strict_warn${strict_warn:+ }$real_option"
6507fi
6508  done
6509CFLAGS="$save_CFLAGS"
6510
6511save_CFLAGS="$CFLAGS"
6512for real_option in -Woverloaded-virtual; do
6513  # Do the check with the no- prefix removed since gcc silently
6514  # accepts any -Wno-* option on purpose
6515  case $real_option in
6516    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6517    *) option=$real_option ;;
6518  esac
6519  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6520
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6522$as_echo_n "checking whether $CC supports $option... " >&6; }
6523if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6524  $as_echo_n "(cached) " >&6
6525else
6526  CFLAGS="$option"
6527    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529
6530int
6531main ()
6532{
6533
6534  ;
6535  return 0;
6536}
6537_ACEOF
6538if ac_fn_c_try_compile "$LINENO"; then :
6539  eval "$as_acx_Woption=yes"
6540else
6541  eval "$as_acx_Woption=no"
6542fi
6543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544
6545fi
6546eval ac_res=\$$as_acx_Woption
6547	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6548$as_echo "$ac_res" >&6; }
6549  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6550  strict_warn="$strict_warn${strict_warn:+ }$real_option"
6551fi
6552  done
6553CFLAGS="$save_CFLAGS"
6554
6555c_strict_warn=
6556save_CFLAGS="$CFLAGS"
6557for real_option in -Wold-style-definition -Wc++-compat; do
6558  # Do the check with the no- prefix removed since gcc silently
6559  # accepts any -Wno-* option on purpose
6560  case $real_option in
6561    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6562    *) option=$real_option ;;
6563  esac
6564  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6565
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6567$as_echo_n "checking whether $CC supports $option... " >&6; }
6568if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  CFLAGS="$option"
6572    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574
6575int
6576main ()
6577{
6578
6579  ;
6580  return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_compile "$LINENO"; then :
6584  eval "$as_acx_Woption=yes"
6585else
6586  eval "$as_acx_Woption=no"
6587fi
6588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589
6590fi
6591eval ac_res=\$$as_acx_Woption
6592	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6593$as_echo "$ac_res" >&6; }
6594  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6595  c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6596fi
6597  done
6598CFLAGS="$save_CFLAGS"
6599
6600# Do the check with the no- prefix removed from the warning options
6601# since gcc silently accepts any -Wno-* option on purpose
6602if test "$GCC" = yes; then :
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6604$as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6605if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  save_CFLAGS="$CFLAGS"
6609CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h.  */
6612
6613int
6614main ()
6615{
6616
6617  ;
6618  return 0;
6619}
6620_ACEOF
6621if ac_fn_c_try_compile "$LINENO"; then :
6622  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6623else
6624  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6625fi
6626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627CFLAGS="$save_CFLAGS"
6628fi
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6630$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6631if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6632  strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6633fi
6634
6635fi
6636
6637# Check whether --enable-werror-always was given.
6638if test "${enable_werror_always+set}" = set; then :
6639  enableval=$enable_werror_always;
6640else
6641  enable_werror_always=no
6642fi
6643
6644if test $enable_werror_always = yes; then :
6645  strict_warn="$strict_warn${strict_warn:+ }-Werror"
6646fi
6647
6648
6649
6650# The above macros do nothing if the compiler is not GCC.  However, the
6651# Makefile has more goo to add other flags, so these variables are used
6652# to enable warnings only for GCC.
6653warn_cflags=
6654warn_cxxflags=
6655if test "x$GCC" = "xyes"; then
6656  warn_cflags='$(GCC_WARN_CFLAGS)'
6657  warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6658fi
6659
6660
6661
6662# Disable exceptions and RTTI if building with g++
6663noexception_flags=
6664save_CFLAGS="$CFLAGS"
6665for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6666  # Do the check with the no- prefix removed since gcc silently
6667  # accepts any -Wno-* option on purpose
6668  case $real_option in
6669    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6670    *) option=$real_option ;;
6671  esac
6672  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6673
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6675$as_echo_n "checking whether $CC supports $option... " >&6; }
6676if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  CFLAGS="$option"
6680    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h.  */
6682
6683int
6684main ()
6685{
6686
6687  ;
6688  return 0;
6689}
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"; then :
6692  eval "$as_acx_Woption=yes"
6693else
6694  eval "$as_acx_Woption=no"
6695fi
6696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697
6698fi
6699eval ac_res=\$$as_acx_Woption
6700	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6701$as_echo "$ac_res" >&6; }
6702  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6703  noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6704fi
6705  done
6706CFLAGS="$save_CFLAGS"
6707
6708
6709# Enable expensive internal checks
6710is_release=
6711if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6712  is_release=yes
6713fi
6714
6715# Check whether --enable-checking was given.
6716if test "${enable_checking+set}" = set; then :
6717  enableval=$enable_checking; ac_checking_flags="${enableval}"
6718else
6719
6720# Determine the default checks.
6721if test x$is_release = x ; then
6722  ac_checking_flags=yes
6723else
6724  ac_checking_flags=release
6725fi
6726fi
6727
6728IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
6729for check in release $ac_checking_flags
6730do
6731	case $check in
6732	# these set all the flags to specific states
6733	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6734			ac_fold_checking= ; ac_gc_checking=1 ;
6735			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6736			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6737			ac_tree_checking=1 ; ac_valgrind_checking= ;
6738			ac_types_checking=1 ;;
6739	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6740			ac_fold_checking= ; ac_gc_checking= ;
6741			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6742			ac_rtlflag_checking= ; ac_runtime_checking= ;
6743			ac_tree_checking= ; ac_valgrind_checking= ;
6744			ac_types_checking= ;;
6745	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6746			ac_fold_checking=1 ; ac_gc_checking=1 ;
6747			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6748			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6749			ac_tree_checking=1 ; ac_valgrind_checking= ;
6750			ac_types_checking=1 ;;
6751	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6752			ac_fold_checking= ; ac_gc_checking= ;
6753			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6754			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6755			ac_tree_checking= ; ac_valgrind_checking= ;
6756			ac_types_checking= ;;
6757	# these enable particular checks
6758	assert) 	ac_assert_checking=1 ;;
6759	df)	 	ac_df_checking=1 ;;
6760	fold)		ac_fold_checking=1 ;;
6761	gc)		ac_gc_checking=1 ;;
6762	gcac)		ac_gc_always_collect=1 ;;
6763	gimple)		ac_gimple_checking=1 ;;
6764	misc)		ac_checking=1 ;;
6765	rtl)		ac_rtl_checking=1 ;;
6766	rtlflag)	ac_rtlflag_checking=1 ;;
6767	runtime)	ac_runtime_checking=1 ;;
6768	tree)		ac_tree_checking=1 ;;
6769	types)		ac_types_checking=1 ;;
6770	valgrind)	ac_valgrind_checking=1 ;;
6771	*)	as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6772	esac
6773done
6774IFS="$ac_save_IFS"
6775
6776nocommon_flag=""
6777if test x$ac_checking != x ; then
6778
6779$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6780
6781  nocommon_flag=-fno-common
6782fi
6783
6784if test x$ac_df_checking != x ; then
6785
6786$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6787
6788fi
6789if test x$ac_assert_checking != x ; then
6790
6791$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6792
6793fi
6794if test x$ac_gimple_checking != x ; then
6795
6796$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6797
6798fi
6799
6800if test x$ac_runtime_checking != x ; then
6801
6802$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6803
6804fi
6805if test x$ac_tree_checking != x ; then
6806
6807$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6808
6809  TREEBROWSER=tree-browser.o
6810  TREECHECKING=yes
6811fi
6812if test x$ac_types_checking != x ; then
6813
6814$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6815
6816fi
6817
6818
6819if test x$ac_rtl_checking != x ; then
6820
6821$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6822
6823fi
6824if test x$ac_rtlflag_checking != x ; then
6825
6826$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6827
6828fi
6829if test x$ac_gc_checking != x ; then
6830
6831$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6832
6833fi
6834if test x$ac_gc_always_collect != x ; then
6835
6836$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6837
6838fi
6839if test x$ac_fold_checking != x ; then
6840
6841$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6842
6843fi
6844valgrind_path_defines=
6845valgrind_command=
6846
6847ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6848if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6849  have_valgrind_h=yes
6850else
6851  have_valgrind_h=no
6852fi
6853
6854
6855
6856# It is certainly possible that there's valgrind but no valgrind.h.
6857# GCC relies on making annotations so we must have both.
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6859$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h.  */
6862#include <valgrind/memcheck.h>
6863#ifndef VALGRIND_DISCARD
6864#error VALGRIND_DISCARD not defined
6865#endif
6866_ACEOF
6867if ac_fn_c_try_cpp "$LINENO"; then :
6868  gcc_cv_header_valgrind_memcheck_h=yes
6869else
6870  gcc_cv_header_valgrind_memcheck_h=no
6871fi
6872rm -f conftest.err conftest.$ac_ext
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6874$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6876$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879#include <memcheck.h>
6880#ifndef VALGRIND_DISCARD
6881#error VALGRIND_DISCARD not defined
6882#endif
6883_ACEOF
6884if ac_fn_c_try_cpp "$LINENO"; then :
6885  gcc_cv_header_memcheck_h=yes
6886else
6887  gcc_cv_header_memcheck_h=no
6888fi
6889rm -f conftest.err conftest.$ac_ext
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6891$as_echo "$gcc_cv_header_memcheck_h" >&6; }
6892if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6893
6894$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6895
6896fi
6897if test $gcc_cv_header_memcheck_h = yes; then
6898
6899$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6900
6901fi
6902
6903if test x$ac_valgrind_checking != x ; then
6904
6905# Prepare PATH_SEPARATOR.
6906# The user is always right.
6907if test "${PATH_SEPARATOR+set}" != set; then
6908  echo "#! /bin/sh" >conf$$.sh
6909  echo  "exit 0"   >>conf$$.sh
6910  chmod +x conf$$.sh
6911  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6912    PATH_SEPARATOR=';'
6913  else
6914    PATH_SEPARATOR=:
6915  fi
6916  rm -f conf$$.sh
6917fi
6918
6919# Find out how to test for executable files. Don't use a zero-byte file,
6920# as systems may use methods other than mode bits to determine executability.
6921cat >conf$$.file <<_ASEOF
6922#! /bin/sh
6923exit 0
6924_ASEOF
6925chmod +x conf$$.file
6926if test -x conf$$.file >/dev/null 2>&1; then
6927  ac_executable_p="test -x"
6928else
6929  ac_executable_p="test -f"
6930fi
6931rm -f conf$$.file
6932
6933# Extract the first word of "valgrind", so it can be a program name with args.
6934set dummy valgrind; ac_word=$2
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936$as_echo_n "checking for $ac_word... " >&6; }
6937if test "${ac_cv_path_valgrind_path+set}" = set; then :
6938  $as_echo_n "(cached) " >&6
6939else
6940  case "$valgrind_path" in
6941  [\\/]* | ?:[\\/]*)
6942    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6943    ;;
6944  *)
6945    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6946    for ac_dir in $PATH; do
6947      IFS="$ac_save_IFS"
6948      test -z "$ac_dir" && ac_dir=.
6949      for ac_exec_ext in '' $ac_executable_extensions; do
6950        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6951          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6952            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6953            break 2
6954          fi
6955        fi
6956      done
6957    done
6958    IFS="$ac_save_IFS"
6959    ;;
6960esac
6961fi
6962valgrind_path="$ac_cv_path_valgrind_path"
6963if test -n "$valgrind_path"; then
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6965$as_echo "$valgrind_path" >&6; }
6966else
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
6969fi
6970
6971  if test "x$valgrind_path" = "x" \
6972    || (test $have_valgrind_h = no \
6973	&& test $gcc_cv_header_memcheck_h = no \
6974	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
6975	as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6976  fi
6977  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6978  valgrind_command="$valgrind_path -q"
6979
6980$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6981
6982fi
6983
6984
6985
6986# Enable code coverage collection
6987# Check whether --enable-coverage was given.
6988if test "${enable_coverage+set}" = set; then :
6989  enableval=$enable_coverage; case "${enableval}" in
6990  yes|noopt)
6991    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6992    ;;
6993  opt)
6994    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6995    ;;
6996  no)
6997    # a.k.a. --disable-coverage
6998    coverage_flags=""
6999    ;;
7000  *)
7001    as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7002    ;;
7003esac
7004else
7005  coverage_flags=""
7006fi
7007
7008
7009
7010# Check whether --enable-gather-detailed-mem-stats was given.
7011if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7012  enableval=$enable_gather_detailed_mem_stats;
7013else
7014  enable_gather_detailed_mem_stats=no
7015fi
7016
7017gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7018
7019cat >>confdefs.h <<_ACEOF
7020#define GATHER_STATISTICS $gather_stats
7021_ACEOF
7022
7023
7024# Check whether --enable-valgrind-annotations was given.
7025if test "${enable_valgrind_annotations+set}" = set; then :
7026  enableval=$enable_valgrind_annotations;
7027else
7028  enable_valgrind_annotations=no
7029fi
7030
7031if test x$enable_valgrind_annotations != xno \
7032    || test x$ac_valgrind_checking != x; then
7033  if (test $have_valgrind_h = no \
7034      && test $gcc_cv_header_memcheck_h = no \
7035      && test $gcc_cv_header_valgrind_memcheck_h = no); then
7036    as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7037  fi
7038
7039$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7040
7041fi
7042
7043# -------------------------------
7044# Miscenalleous configure options
7045# -------------------------------
7046
7047# handle --with-hybrid-secondary
7048
7049# Check whether --with-hybrid_secondary was given.
7050if test "${with_hybrid_secondary+set}" = set; then :
7051  withval=$with_hybrid_secondary; HYBRID_SECONDARY=$withval
7052else
7053  HYBRID_SECONDARY=
7054
7055fi
7056
7057
7058
7059# With stabs
7060
7061# Check whether --with-stabs was given.
7062if test "${with_stabs+set}" = set; then :
7063  withval=$with_stabs; stabs="$with_stabs"
7064else
7065  stabs=no
7066fi
7067
7068
7069# Determine whether or not multilibs are enabled.
7070# Check whether --enable-multilib was given.
7071if test "${enable_multilib+set}" = set; then :
7072  enableval=$enable_multilib;
7073else
7074  enable_multilib=yes
7075fi
7076
7077
7078
7079# Determine whether or not multiarch is enabled.
7080# Check whether --enable-multiarch was given.
7081if test "${enable_multiarch+set}" = set; then :
7082  enableval=$enable_multiarch; case "${enableval}" in
7083yes|no|auto) enable_multiarch=$enableval;;
7084*) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7085esac
7086else
7087  enable_multiarch=auto
7088fi
7089
7090if test x${enable_multiarch} = xauto; then
7091  if test x${with_native_system_header_dir} != x; then
7092    ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7093    enable_multiarch=no
7094  fi
7095  if test x$host != x$target && test "x$with_sysroot" = x; then
7096    ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7097    enable_multiarch=no
7098  fi
7099fi
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7101$as_echo_n "checking for multiarch configuration... " >&6; }
7102
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7104$as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7105
7106# needed for setting the multiarch name for soft-float/hard-float ABIs
7107
7108
7109
7110# Enable __cxa_atexit for C++.
7111# Check whether --enable-__cxa_atexit was given.
7112if test "${enable___cxa_atexit+set}" = set; then :
7113  enableval=$enable___cxa_atexit;
7114fi
7115
7116
7117# Enable C extension for decimal float if target supports it.
7118
7119# Check whether --enable-decimal-float was given.
7120if test "${enable_decimal_float+set}" = set; then :
7121  enableval=$enable_decimal_float;
7122  case $enable_decimal_float in
7123    yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7124    *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7125Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7126  esac
7127
7128else
7129
7130  case $target in
7131    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7132    i?86*-*-gnu* | \
7133    i?86*-*-mingw* | x86_64*-*-mingw* | \
7134    i?86*-*-cygwin* | x86_64*-*-cygwin*)
7135      enable_decimal_float=yes
7136      ;;
7137    *)
7138      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7139$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7140      enable_decimal_float=no
7141      ;;
7142  esac
7143
7144fi
7145
7146
7147# x86's use BID format instead of DPD
7148case x$enable_decimal_float in
7149  xyes)
7150    case $target in
7151      i?86*-*-* | x86_64*-*-*)
7152	enable_decimal_float=bid
7153	;;
7154      *)
7155	enable_decimal_float=dpd
7156	;;
7157    esac
7158    default_decimal_float=$enable_decimal_float
7159    ;;
7160  xno)
7161    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7162    # dependency on libdecnumber.
7163    default_decimal_float=dpd
7164    ;;
7165esac
7166
7167
7168
7169
7170dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7171
7172cat >>confdefs.h <<_ACEOF
7173#define ENABLE_DECIMAL_FLOAT $dfp
7174_ACEOF
7175
7176
7177# Use default_decimal_float for dependency.
7178enable_decimal_float=$default_decimal_float
7179
7180bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7181
7182cat >>confdefs.h <<_ACEOF
7183#define ENABLE_DECIMAL_BID_FORMAT $bid
7184_ACEOF
7185
7186
7187# Enable C extension for fixed-point arithmetic.
7188# Check whether --enable-fixed-point was given.
7189if test "${enable_fixed_point+set}" = set; then :
7190  enableval=$enable_fixed_point;
7191else
7192
7193  case $target in
7194    arm*)
7195      enable_fixed_point=yes
7196      ;;
7197
7198    mips*-*-*)
7199      enable_fixed_point=yes
7200      ;;
7201    *)
7202      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7203$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7204      enable_fixed_point=no
7205      ;;
7206  esac
7207
7208fi
7209
7210
7211
7212fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7213
7214cat >>confdefs.h <<_ACEOF
7215#define ENABLE_FIXED_POINT $fixedpoint
7216_ACEOF
7217
7218
7219# Enable threads
7220# Pass with no value to take the default
7221# Pass with a value to specify a thread package
7222# Check whether --enable-threads was given.
7223if test "${enable_threads+set}" = set; then :
7224  enableval=$enable_threads;
7225else
7226  enable_threads=''
7227fi
7228
7229
7230# Check whether --enable-tls was given.
7231if test "${enable_tls+set}" = set; then :
7232  enableval=$enable_tls;
7233  case $enable_tls in
7234    yes | no) ;;
7235    *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7236Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7237  esac
7238
7239else
7240  enable_tls=''
7241fi
7242
7243
7244# Check whether --enable-objc-gc was given.
7245if test "${enable_objc_gc+set}" = set; then :
7246  enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7247	objc_boehm_gc=''
7248else
7249	objc_boehm_gc=1
7250fi
7251else
7252  objc_boehm_gc=''
7253fi
7254
7255
7256
7257# Check whether --with-dwarf2 was given.
7258if test "${with_dwarf2+set}" = set; then :
7259  withval=$with_dwarf2; dwarf2="$with_dwarf2"
7260else
7261  dwarf2=no
7262fi
7263
7264
7265# Check whether --enable-shared was given.
7266if test "${enable_shared+set}" = set; then :
7267  enableval=$enable_shared;
7268  case $enable_shared in
7269  yes | no) ;;
7270  *)
7271    enable_shared=no
7272    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7273    for pkg in $enableval; do
7274      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7275        enable_shared=yes
7276      fi
7277    done
7278    IFS="$ac_save_ifs"
7279    ;;
7280  esac
7281
7282else
7283  enable_shared=yes
7284fi
7285
7286
7287
7288
7289# Check whether --with-native-system-header-dir was given.
7290if test "${with_native_system_header_dir+set}" = set; then :
7291  withval=$with_native_system_header_dir;
7292 case ${with_native_system_header_dir} in
7293 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7294 /* | [A-Za-z]:[\\/]*) ;;
7295 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7296 esac
7297 configured_native_system_header_dir="${withval}"
7298
7299else
7300  configured_native_system_header_dir=
7301fi
7302
7303
7304
7305# Check whether --with-build-sysroot was given.
7306if test "${with_build_sysroot+set}" = set; then :
7307  withval=$with_build_sysroot; if test x"$withval" != x ; then
7308     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7309   fi
7310else
7311  SYSROOT_CFLAGS_FOR_TARGET=
7312fi
7313
7314
7315
7316if test "x$prefix" = xNONE; then
7317 test_prefix=/usr/local
7318else
7319 test_prefix=$prefix
7320fi
7321if test "x$exec_prefix" = xNONE; then
7322 test_exec_prefix=$test_prefix
7323else
7324 test_exec_prefix=$exec_prefix
7325fi
7326
7327
7328# Check whether --with-sysroot was given.
7329if test "${with_sysroot+set}" = set; then :
7330  withval=$with_sysroot;
7331 case ${with_sysroot} in
7332 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7333 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7334 esac
7335
7336 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7337 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7338
7339 case ${TARGET_SYSTEM_ROOT} in
7340 "${test_prefix}"|"${test_prefix}/"*|\
7341 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7342 '${prefix}'|'${prefix}/'*|\
7343 '${exec_prefix}'|'${exec_prefix}/'*)
7344   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7345   TARGET_SYSTEM_ROOT_DEFINE="$t"
7346   ;;
7347 esac
7348
7349else
7350
7351 TARGET_SYSTEM_ROOT=
7352 TARGET_SYSTEM_ROOT_DEFINE=
7353 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7354
7355fi
7356
7357
7358
7359
7360
7361
7362# Check whether --with-specs was given.
7363if test "${with_specs+set}" = set; then :
7364  withval=$with_specs; CONFIGURE_SPECS=$withval
7365else
7366  CONFIGURE_SPECS=
7367
7368fi
7369
7370
7371
7372
7373
7374# Check whether --with-pkgversion was given.
7375if test "${with_pkgversion+set}" = set; then :
7376  withval=$with_pkgversion; case "$withval" in
7377      yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7378      no)  PKGVERSION= ;;
7379      *)   PKGVERSION="($withval) " ;;
7380     esac
7381else
7382  PKGVERSION="(GCC) "
7383
7384fi
7385
7386
7387
7388
7389
7390# Check whether --with-bugurl was given.
7391if test "${with_bugurl+set}" = set; then :
7392  withval=$with_bugurl; case "$withval" in
7393      yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7394      no)  BUGURL=
7395	   ;;
7396      *)   BUGURL="$withval"
7397	   ;;
7398     esac
7399else
7400  BUGURL="http://gcc.gnu.org/bugs.html"
7401
7402fi
7403
7404  case ${BUGURL} in
7405  "")
7406    REPORT_BUGS_TO=
7407    REPORT_BUGS_TEXI=
7408    ;;
7409  *)
7410    REPORT_BUGS_TO="<$BUGURL>"
7411    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7412    ;;
7413  esac;
7414
7415
7416
7417
7418# Sanity check enable_languages in case someone does not run the toplevel
7419# configure # script.
7420# Check whether --enable-languages was given.
7421if test "${enable_languages+set}" = set; then :
7422  enableval=$enable_languages; case ,${enable_languages}, in
7423       ,,|,yes,)
7424		# go safe -- we cannot be much sure without the toplevel
7425		# configure's
7426		# analysis of which target libs are present and usable
7427		enable_languages=c
7428		;;
7429	 *,all,*)
7430		as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7431		;;
7432	*,c,*)
7433		;;
7434        *)
7435		enable_languages=c,${enable_languages}
7436		;;
7437esac
7438else
7439  enable_languages=c
7440fi
7441
7442
7443if test x"$enable_as_accelerator_for" != x; then
7444
7445$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7446
7447  enable_as_accelerator=yes
7448  case "${target}" in
7449    *-intelmicemul-*)
7450      # In this case we expect offload compiler to be built as native, so we
7451      # need to rename the driver to avoid clashes with host's drivers.
7452      program_transform_name="s&^&${target}-&" ;;
7453  esac
7454  sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7455  program_transform_name=`echo $program_transform_name | sed $sedscript`
7456  accel_dir_suffix=/accel/${target_noncanonical}
7457  real_target_noncanonical=${enable_as_accelerator_for}
7458fi
7459
7460
7461
7462
7463for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7464  tgt=`echo $tgt | sed 's/=.*//'`
7465  if test x"$offload_targets" = x; then
7466    offload_targets=$tgt
7467  else
7468    offload_targets="$offload_targets:$tgt"
7469  fi
7470done
7471
7472cat >>confdefs.h <<_ACEOF
7473#define OFFLOAD_TARGETS "$offload_targets"
7474_ACEOF
7475
7476if test x"$offload_targets" != x; then
7477
7478$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7479
7480fi
7481
7482
7483# Check whether --with-multilib-list was given.
7484if test "${with_multilib_list+set}" = set; then :
7485  withval=$with_multilib_list; :
7486else
7487  with_multilib_list=default
7488fi
7489
7490
7491# -------------------------
7492# Checks for other programs
7493# -------------------------
7494
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7496$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7497set x ${MAKE-make}
7498ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7499if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7500  $as_echo_n "(cached) " >&6
7501else
7502  cat >conftest.make <<\_ACEOF
7503SHELL = /bin/sh
7504all:
7505	@echo '@@@%%%=$(MAKE)=@@@%%%'
7506_ACEOF
7507# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7508case `${MAKE-make} -f conftest.make 2>/dev/null` in
7509  *@@@%%%=?*=@@@%%%*)
7510    eval ac_cv_prog_make_${ac_make}_set=yes;;
7511  *)
7512    eval ac_cv_prog_make_${ac_make}_set=no;;
7513esac
7514rm -f conftest.make
7515fi
7516if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7518$as_echo "yes" >&6; }
7519  SET_MAKE=
7520else
7521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522$as_echo "no" >&6; }
7523  SET_MAKE="MAKE=${MAKE-make}"
7524fi
7525
7526
7527# Find some useful tools
7528for ac_prog in gawk mawk nawk awk
7529do
7530  # Extract the first word of "$ac_prog", so it can be a program name with args.
7531set dummy $ac_prog; ac_word=$2
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533$as_echo_n "checking for $ac_word... " >&6; }
7534if test "${ac_cv_prog_AWK+set}" = set; then :
7535  $as_echo_n "(cached) " >&6
7536else
7537  if test -n "$AWK"; then
7538  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7539else
7540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543  IFS=$as_save_IFS
7544  test -z "$as_dir" && as_dir=.
7545    for ac_exec_ext in '' $ac_executable_extensions; do
7546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547    ac_cv_prog_AWK="$ac_prog"
7548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549    break 2
7550  fi
7551done
7552  done
7553IFS=$as_save_IFS
7554
7555fi
7556fi
7557AWK=$ac_cv_prog_AWK
7558if test -n "$AWK"; then
7559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7560$as_echo "$AWK" >&6; }
7561else
7562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563$as_echo "no" >&6; }
7564fi
7565
7566
7567  test -n "$AWK" && break
7568done
7569
7570# We need awk to create options.c and options.h.
7571# Bail out if it's missing.
7572case ${AWK} in
7573  "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7574esac
7575
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7577$as_echo_n "checking whether ln -s works... " >&6; }
7578if test "${gcc_cv_prog_LN_S+set}" = set; then :
7579  $as_echo_n "(cached) " >&6
7580else
7581  rm -f conftestdata_t
7582echo >conftestdata_f
7583if ln -s conftestdata_f conftestdata_t 2>/dev/null
7584then
7585  gcc_cv_prog_LN_S="ln -s"
7586else
7587  if ln conftestdata_f conftestdata_t 2>/dev/null
7588  then
7589    gcc_cv_prog_LN_S=ln
7590  else
7591    if cp -p conftestdata_f conftestdata_t 2>/dev/null
7592    then
7593      gcc_cv_prog_LN_S="cp -p"
7594    else
7595      gcc_cv_prog_LN_S=cp
7596    fi
7597  fi
7598fi
7599rm -f conftestdata_f conftestdata_t
7600
7601fi
7602LN_S="$gcc_cv_prog_LN_S"
7603if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7605$as_echo "yes" >&6; }
7606else
7607  if test "$gcc_cv_prog_LN_S" = "ln"; then
7608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7609$as_echo "no, using ln" >&6; }
7610  else
7611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7612$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7613  fi
7614fi
7615
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7617$as_echo_n "checking whether ln works... " >&6; }
7618if test "${acx_cv_prog_LN+set}" = set; then :
7619  $as_echo_n "(cached) " >&6
7620else
7621  rm -f conftestdata_t
7622echo >conftestdata_f
7623if ln conftestdata_f conftestdata_t 2>/dev/null
7624then
7625  acx_cv_prog_LN=ln
7626else
7627  acx_cv_prog_LN=no
7628fi
7629rm -f conftestdata_f conftestdata_t
7630
7631fi
7632if test $acx_cv_prog_LN = no; then
7633  LN="$LN_S"
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7635$as_echo "no, using $LN" >&6; }
7636else
7637  LN="$acx_cv_prog_LN"
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7639$as_echo "yes" >&6; }
7640fi
7641
7642if test -n "$ac_tool_prefix"; then
7643  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7644set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646$as_echo_n "checking for $ac_word... " >&6; }
7647if test "${ac_cv_prog_RANLIB+set}" = set; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  if test -n "$RANLIB"; then
7651  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7652else
7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656  IFS=$as_save_IFS
7657  test -z "$as_dir" && as_dir=.
7658    for ac_exec_ext in '' $ac_executable_extensions; do
7659  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662    break 2
7663  fi
7664done
7665  done
7666IFS=$as_save_IFS
7667
7668fi
7669fi
7670RANLIB=$ac_cv_prog_RANLIB
7671if test -n "$RANLIB"; then
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7673$as_echo "$RANLIB" >&6; }
7674else
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676$as_echo "no" >&6; }
7677fi
7678
7679
7680fi
7681if test -z "$ac_cv_prog_RANLIB"; then
7682  ac_ct_RANLIB=$RANLIB
7683  # Extract the first word of "ranlib", so it can be a program name with args.
7684set dummy ranlib; ac_word=$2
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686$as_echo_n "checking for $ac_word... " >&6; }
7687if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7688  $as_echo_n "(cached) " >&6
7689else
7690  if test -n "$ac_ct_RANLIB"; then
7691  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7692else
7693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694for as_dir in $PATH
7695do
7696  IFS=$as_save_IFS
7697  test -z "$as_dir" && as_dir=.
7698    for ac_exec_ext in '' $ac_executable_extensions; do
7699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700    ac_cv_prog_ac_ct_RANLIB="ranlib"
7701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702    break 2
7703  fi
7704done
7705  done
7706IFS=$as_save_IFS
7707
7708fi
7709fi
7710ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7711if test -n "$ac_ct_RANLIB"; then
7712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7713$as_echo "$ac_ct_RANLIB" >&6; }
7714else
7715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716$as_echo "no" >&6; }
7717fi
7718
7719  if test "x$ac_ct_RANLIB" = x; then
7720    RANLIB=":"
7721  else
7722    case $cross_compiling:$ac_tool_warned in
7723yes:)
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726ac_tool_warned=yes ;;
7727esac
7728    RANLIB=$ac_ct_RANLIB
7729  fi
7730else
7731  RANLIB="$ac_cv_prog_RANLIB"
7732fi
7733
7734ranlib_flags=""
7735
7736
7737# Find a good install program.  We prefer a C program (faster),
7738# so one script is as good as another.  But avoid the broken or
7739# incompatible versions:
7740# SysV /etc/install, /usr/sbin/install
7741# SunOS /usr/etc/install
7742# IRIX /sbin/install
7743# AIX /bin/install
7744# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7745# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7746# ./install, which can be erroneously created by make from ./install.sh.
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7748$as_echo_n "checking for a BSD compatible install... " >&6; }
7749if test -z "$INSTALL"; then
7750if test "${ac_cv_path_install+set}" = set; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7754  for ac_dir in $PATH; do
7755    # Account for people who put trailing slashes in PATH elements.
7756    case "$ac_dir/" in
7757    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7758    *)
7759      # OSF1 and SCO ODT 3.0 have their own names for install.
7760      for ac_prog in ginstall scoinst install; do
7761        if test -f $ac_dir/$ac_prog; then
7762	  if test $ac_prog = install &&
7763            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7764	    # AIX install.  It has an incompatible calling convention.
7765	    # OSF/1 installbsd also uses dspmsg, but is usable.
7766	    :
7767	  else
7768	    ac_cv_path_install="$ac_dir/$ac_prog -c"
7769	    break 2
7770	  fi
7771	fi
7772      done
7773      ;;
7774    esac
7775  done
7776  IFS="$ac_save_IFS"
7777
7778fi
7779  if test "${ac_cv_path_install+set}" = set; then
7780    INSTALL="$ac_cv_path_install"
7781  else
7782    # As a last resort, use the slow shell script.  We don't cache a
7783    # path for INSTALL within a source directory, because that will
7784    # break other packages using the cache if that directory is
7785    # removed, or if the path is relative.
7786    INSTALL="$ac_install_sh"
7787  fi
7788fi
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7790$as_echo "$INSTALL" >&6; }
7791
7792# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7793# It thinks the first close brace ends the variable substitution.
7794test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7795
7796test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7797
7798
7799# See if cmp has --ignore-initial.
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7801$as_echo_n "checking for cmp's capabilities... " >&6; }
7802if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805   echo abfoo >t1
7806  echo cdfoo >t2
7807  gcc_cv_prog_cmp_skip=slowcompare
7808  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7809    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7810      :
7811    else
7812      gcc_cv_prog_cmp_skip=gnucompare
7813    fi
7814  fi
7815  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7816    if cmp t1 t2 2 2 > /dev/null 2>&1; then
7817      if cmp t1 t2 1 1 > /dev/null 2>&1; then
7818        :
7819      else
7820        gcc_cv_prog_cmp_skip=fastcompare
7821      fi
7822    fi
7823  fi
7824  rm t1 t2
7825
7826fi
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7828$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7829make_compare_target=$gcc_cv_prog_cmp_skip
7830
7831
7832
7833# See if we have the mktemp command.
7834# Extract the first word of "mktemp", so it can be a program name with args.
7835set dummy mktemp; ac_word=$2
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837$as_echo_n "checking for $ac_word... " >&6; }
7838if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841  if test -n "$have_mktemp_command"; then
7842  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7843else
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847  IFS=$as_save_IFS
7848  test -z "$as_dir" && as_dir=.
7849    for ac_exec_ext in '' $ac_executable_extensions; do
7850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851    ac_cv_prog_have_mktemp_command="yes"
7852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853    break 2
7854  fi
7855done
7856  done
7857IFS=$as_save_IFS
7858
7859  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7860fi
7861fi
7862have_mktemp_command=$ac_cv_prog_have_mktemp_command
7863if test -n "$have_mktemp_command"; then
7864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7865$as_echo "$have_mktemp_command" >&6; }
7866else
7867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869fi
7870
7871
7872
7873# See if makeinfo has been installed and is modern enough
7874# that we can use it.
7875
7876  # Extract the first word of "makeinfo", so it can be a program name with args.
7877set dummy makeinfo; ac_word=$2
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879$as_echo_n "checking for $ac_word... " >&6; }
7880if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7881  $as_echo_n "(cached) " >&6
7882else
7883  if test -n "$MAKEINFO"; then
7884  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7885else
7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887for as_dir in $PATH
7888do
7889  IFS=$as_save_IFS
7890  test -z "$as_dir" && as_dir=.
7891    for ac_exec_ext in '' $ac_executable_extensions; do
7892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7893    ac_cv_prog_MAKEINFO="makeinfo"
7894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895    break 2
7896  fi
7897done
7898  done
7899IFS=$as_save_IFS
7900
7901fi
7902fi
7903MAKEINFO=$ac_cv_prog_MAKEINFO
7904if test -n "$MAKEINFO"; then
7905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7906$as_echo "$MAKEINFO" >&6; }
7907else
7908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909$as_echo "no" >&6; }
7910fi
7911
7912
7913  if test -n "$MAKEINFO"; then
7914    # Found it, now check the version.
7915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7916$as_echo_n "checking for modern makeinfo... " >&6; }
7917if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7918  $as_echo_n "(cached) " >&6
7919else
7920  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7921                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7922
7923                    case $ac_prog_version in
7924                      '')  gcc_cv_prog_makeinfo_modern=no;;
7925                      4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7926                      *)   gcc_cv_prog_makeinfo_modern=no;;
7927                    esac
7928
7929fi
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7931$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7932  else
7933    gcc_cv_prog_makeinfo_modern=no
7934  fi
7935  if test $gcc_cv_prog_makeinfo_modern = no; then
7936    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7937  fi
7938
7939if test $gcc_cv_prog_makeinfo_modern = no; then
7940  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7941*** Makeinfo is missing or too old.
7942*** Info documentation will not be built." >&5
7943$as_echo "$as_me: WARNING:
7944*** Makeinfo is missing or too old.
7945*** Info documentation will not be built." >&2;}
7946  BUILD_INFO=
7947else
7948  BUILD_INFO=info
7949fi
7950
7951
7952# Is pod2man recent enough to regenerate manpages?
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7954$as_echo_n "checking for recent Pod::Man... " >&6; }
7955if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7957$as_echo "yes" >&6; }
7958  GENERATED_MANPAGES=generated-manpages
7959else
7960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961$as_echo "no" >&6; }
7962  GENERATED_MANPAGES=
7963fi
7964
7965
7966MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7967
7968# How about lex?
7969for ac_prog in flex
7970do
7971  # Extract the first word of "$ac_prog", so it can be a program name with args.
7972set dummy $ac_prog; ac_word=$2
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974$as_echo_n "checking for $ac_word... " >&6; }
7975if test "${ac_cv_prog_FLEX+set}" = set; then :
7976  $as_echo_n "(cached) " >&6
7977else
7978  if test -n "$FLEX"; then
7979  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984  IFS=$as_save_IFS
7985  test -z "$as_dir" && as_dir=.
7986    for ac_exec_ext in '' $ac_executable_extensions; do
7987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988    ac_cv_prog_FLEX="$ac_prog"
7989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990    break 2
7991  fi
7992done
7993  done
7994IFS=$as_save_IFS
7995
7996fi
7997fi
7998FLEX=$ac_cv_prog_FLEX
7999if test -n "$FLEX"; then
8000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8001$as_echo "$FLEX" >&6; }
8002else
8003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004$as_echo "no" >&6; }
8005fi
8006
8007
8008  test -n "$FLEX" && break
8009done
8010test -n "$FLEX" || FLEX="$MISSING flex"
8011
8012
8013# Bison?
8014for ac_prog in bison
8015do
8016  # Extract the first word of "$ac_prog", so it can be a program name with args.
8017set dummy $ac_prog; ac_word=$2
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if test "${ac_cv_prog_BISON+set}" = set; then :
8021  $as_echo_n "(cached) " >&6
8022else
8023  if test -n "$BISON"; then
8024  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  test -z "$as_dir" && as_dir=.
8031    for ac_exec_ext in '' $ac_executable_extensions; do
8032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033    ac_cv_prog_BISON="$ac_prog"
8034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035    break 2
8036  fi
8037done
8038  done
8039IFS=$as_save_IFS
8040
8041fi
8042fi
8043BISON=$ac_cv_prog_BISON
8044if test -n "$BISON"; then
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8046$as_echo "$BISON" >&6; }
8047else
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050fi
8051
8052
8053  test -n "$BISON" && break
8054done
8055test -n "$BISON" || BISON="$MISSING bison"
8056
8057
8058# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8059# check for build == host before using them.
8060
8061# NM
8062if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8063  && test -d ../binutils ; then
8064  NM='${objdir}/../binutils/nm-new'
8065else
8066  # Extract the first word of "nm", so it can be a program name with args.
8067set dummy nm; ac_word=$2
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
8070if test "${ac_cv_prog_NM+set}" = set; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  if test -n "$NM"; then
8074  ac_cv_prog_NM="$NM" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079  IFS=$as_save_IFS
8080  test -z "$as_dir" && as_dir=.
8081    for ac_exec_ext in '' $ac_executable_extensions; do
8082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8083    ac_cv_prog_NM="nm"
8084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085    break 2
8086  fi
8087done
8088  done
8089IFS=$as_save_IFS
8090
8091  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8092fi
8093fi
8094NM=$ac_cv_prog_NM
8095if test -n "$NM"; then
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8097$as_echo "$NM" >&6; }
8098else
8099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
8101fi
8102
8103
8104fi
8105
8106# AR
8107if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8108  && test -d ../binutils ; then
8109  AR='${objdir}/../binutils/ar'
8110else
8111  # Extract the first word of "ar", so it can be a program name with args.
8112set dummy ar; ac_word=$2
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if test "${ac_cv_prog_AR+set}" = set; then :
8116  $as_echo_n "(cached) " >&6
8117else
8118  if test -n "$AR"; then
8119  ac_cv_prog_AR="$AR" # Let the user override the test.
8120else
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124  IFS=$as_save_IFS
8125  test -z "$as_dir" && as_dir=.
8126    for ac_exec_ext in '' $ac_executable_extensions; do
8127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128    ac_cv_prog_AR="ar"
8129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130    break 2
8131  fi
8132done
8133  done
8134IFS=$as_save_IFS
8135
8136  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8137fi
8138fi
8139AR=$ac_cv_prog_AR
8140if test -n "$AR"; then
8141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8142$as_echo "$AR" >&6; }
8143else
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
8146fi
8147
8148
8149fi
8150
8151# The jit documentation looks better if built with sphinx, but can be
8152# built with texinfo if sphinx is not available.
8153# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8154# Extract the first word of "sphinx-build", so it can be a program name with args.
8155set dummy sphinx-build; ac_word=$2
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157$as_echo_n "checking for $ac_word... " >&6; }
8158if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  if test -n "$doc_build_sys"; then
8162  ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8163else
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167  IFS=$as_save_IFS
8168  test -z "$as_dir" && as_dir=.
8169    for ac_exec_ext in '' $ac_executable_extensions; do
8170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171    ac_cv_prog_doc_build_sys="sphinx"
8172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173    break 2
8174  fi
8175done
8176  done
8177IFS=$as_save_IFS
8178
8179  test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8180fi
8181fi
8182doc_build_sys=$ac_cv_prog_doc_build_sys
8183if test -n "$doc_build_sys"; then
8184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8185$as_echo "$doc_build_sys" >&6; }
8186else
8187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188$as_echo "no" >&6; }
8189fi
8190
8191
8192
8193# --------------------
8194# Checks for C headers
8195# --------------------
8196
8197# Need to reject headers which give warnings, so that the -Werror bootstrap
8198# works later. *sigh*  This needs to come before all header checks.
8199
8200ac_c_preproc_warn_flag=yes
8201
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8203$as_echo_n "checking for ANSI C header files... " >&6; }
8204if test "${ac_cv_header_stdc+set}" = set; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209#include <stdlib.h>
8210#include <stdarg.h>
8211#include <string.h>
8212#include <float.h>
8213
8214int
8215main ()
8216{
8217
8218  ;
8219  return 0;
8220}
8221_ACEOF
8222if ac_fn_c_try_compile "$LINENO"; then :
8223  ac_cv_header_stdc=yes
8224else
8225  ac_cv_header_stdc=no
8226fi
8227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228
8229if test $ac_cv_header_stdc = yes; then
8230  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h.  */
8233#include <string.h>
8234
8235_ACEOF
8236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8237  $EGREP "memchr" >/dev/null 2>&1; then :
8238
8239else
8240  ac_cv_header_stdc=no
8241fi
8242rm -f conftest*
8243
8244fi
8245
8246if test $ac_cv_header_stdc = yes; then
8247  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249/* end confdefs.h.  */
8250#include <stdlib.h>
8251
8252_ACEOF
8253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8254  $EGREP "free" >/dev/null 2>&1; then :
8255
8256else
8257  ac_cv_header_stdc=no
8258fi
8259rm -f conftest*
8260
8261fi
8262
8263if test $ac_cv_header_stdc = yes; then
8264  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8265  if test "$cross_compiling" = yes; then :
8266  :
8267else
8268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h.  */
8270#include <ctype.h>
8271#include <stdlib.h>
8272#if ((' ' & 0x0FF) == 0x020)
8273# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8274# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8275#else
8276# define ISLOWER(c) \
8277		   (('a' <= (c) && (c) <= 'i') \
8278		     || ('j' <= (c) && (c) <= 'r') \
8279		     || ('s' <= (c) && (c) <= 'z'))
8280# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8281#endif
8282
8283#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8284int
8285main ()
8286{
8287  int i;
8288  for (i = 0; i < 256; i++)
8289    if (XOR (islower (i), ISLOWER (i))
8290	|| toupper (i) != TOUPPER (i))
8291      return 2;
8292  return 0;
8293}
8294_ACEOF
8295if ac_fn_c_try_run "$LINENO"; then :
8296
8297else
8298  ac_cv_header_stdc=no
8299fi
8300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8301  conftest.$ac_objext conftest.beam conftest.$ac_ext
8302fi
8303
8304fi
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8307$as_echo "$ac_cv_header_stdc" >&6; }
8308if test $ac_cv_header_stdc = yes; then
8309
8310$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8311
8312fi
8313
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8315$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8316if test "${ac_cv_header_time+set}" = set; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h.  */
8321#include <sys/types.h>
8322#include <sys/time.h>
8323#include <time.h>
8324
8325int
8326main ()
8327{
8328if ((struct tm *) 0)
8329return 0;
8330  ;
8331  return 0;
8332}
8333_ACEOF
8334if ac_fn_c_try_compile "$LINENO"; then :
8335  ac_cv_header_time=yes
8336else
8337  ac_cv_header_time=no
8338fi
8339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340fi
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8342$as_echo "$ac_cv_header_time" >&6; }
8343if test $ac_cv_header_time = yes; then
8344
8345$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8346
8347fi
8348
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8350$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8351if test "${gcc_cv_header_string+set}" = set; then :
8352  $as_echo_n "(cached) " >&6
8353else
8354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h.  */
8356#include <string.h>
8357#include <strings.h>
8358int
8359main ()
8360{
8361
8362  ;
8363  return 0;
8364}
8365_ACEOF
8366if ac_fn_c_try_compile "$LINENO"; then :
8367  gcc_cv_header_string=yes
8368else
8369  gcc_cv_header_string=no
8370fi
8371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372fi
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8374$as_echo "$gcc_cv_header_string" >&6; }
8375if test $gcc_cv_header_string = yes; then
8376
8377$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8378
8379fi
8380
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8382$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8383if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387/* end confdefs.h.  */
8388#include <sys/types.h>
8389#include <sys/wait.h>
8390#ifndef WEXITSTATUS
8391# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8392#endif
8393#ifndef WIFEXITED
8394# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8395#endif
8396
8397int
8398main ()
8399{
8400  int s;
8401  wait (&s);
8402  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8403  ;
8404  return 0;
8405}
8406_ACEOF
8407if ac_fn_c_try_compile "$LINENO"; then :
8408  ac_cv_header_sys_wait_h=yes
8409else
8410  ac_cv_header_sys_wait_h=no
8411fi
8412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8413fi
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8415$as_echo "$ac_cv_header_sys_wait_h" >&6; }
8416if test $ac_cv_header_sys_wait_h = yes; then
8417
8418$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8419
8420fi
8421
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8423$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8424if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8425  $as_echo_n "(cached) " >&6
8426else
8427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428/* end confdefs.h.  */
8429#include <sys/types.h>
8430#include <termios.h>
8431#ifdef TIOCGWINSZ
8432  yes
8433#endif
8434
8435_ACEOF
8436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8437  $EGREP "yes" >/dev/null 2>&1; then :
8438  ac_cv_sys_tiocgwinsz_in_termios_h=yes
8439else
8440  ac_cv_sys_tiocgwinsz_in_termios_h=no
8441fi
8442rm -f conftest*
8443
8444fi
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8446$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8447
8448if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8450$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8451if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8452  $as_echo_n "(cached) " >&6
8453else
8454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h.  */
8456#include <sys/types.h>
8457#include <sys/ioctl.h>
8458#ifdef TIOCGWINSZ
8459  yes
8460#endif
8461
8462_ACEOF
8463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8464  $EGREP "yes" >/dev/null 2>&1; then :
8465  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8466else
8467  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8468fi
8469rm -f conftest*
8470
8471fi
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8473$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8474
8475  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8476
8477$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8478
8479  fi
8480fi
8481
8482for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8483		 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8484		 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8485		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8486do :
8487  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8488ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8489eval as_val=\$$as_ac_Header
8490   if test "x$as_val" = x""yes; then :
8491  cat >>confdefs.h <<_ACEOF
8492#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8493_ACEOF
8494
8495fi
8496done
8497
8498
8499# Check for thread headers.
8500ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8501if test "x$ac_cv_header_thread_h" = x""yes; then :
8502  have_thread_h=yes
8503else
8504  have_thread_h=
8505fi
8506
8507ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8508if test "x$ac_cv_header_pthread_h" = x""yes; then :
8509  have_pthread_h=yes
8510else
8511  have_pthread_h=
8512fi
8513
8514
8515# These tests can't be done till we know if we have limits.h.
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8517$as_echo_n "checking for CHAR_BIT... " >&6; }
8518if test "${gcc_cv_decl_char_bit+set}" = set; then :
8519  $as_echo_n "(cached) " >&6
8520else
8521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h.  */
8523#ifdef HAVE_LIMITS_H
8524#include <limits.h>
8525#endif
8526#ifdef CHAR_BIT
8527found
8528#endif
8529_ACEOF
8530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8531  $EGREP "found" >/dev/null 2>&1; then :
8532  gcc_cv_decl_char_bit=yes
8533else
8534  gcc_cv_decl_char_bit=no
8535fi
8536rm -f conftest*
8537
8538
8539fi
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8541$as_echo "$gcc_cv_decl_char_bit" >&6; }
8542if test $gcc_cv_decl_char_bit = no; then
8543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8544$as_echo_n "checking number of bits in a byte... " >&6; }
8545if test "${gcc_cv_c_nbby+set}" = set; then :
8546  $as_echo_n "(cached) " >&6
8547else
8548  i=8
8549 gcc_cv_c_nbby=
8550 while test $i -lt 65; do
8551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552/* end confdefs.h.  */
8553
8554int
8555main ()
8556{
8557switch(0) {
8558  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8559  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8560  ; }
8561  ;
8562  return 0;
8563}
8564_ACEOF
8565if ac_fn_c_try_compile "$LINENO"; then :
8566  gcc_cv_c_nbby=$i; break
8567fi
8568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569   i=`expr $i + 1`
8570 done
8571 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8572
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8575$as_echo "$gcc_cv_c_nbby" >&6; }
8576if test $gcc_cv_c_nbby = failed; then
8577  as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8578else
8579
8580cat >>confdefs.h <<_ACEOF
8581#define CHAR_BIT $gcc_cv_c_nbby
8582_ACEOF
8583
8584fi
8585fi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8587$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8588if test "${ac_cv_c_bigendian+set}" = set; then :
8589  $as_echo_n "(cached) " >&6
8590else
8591  ac_cv_c_bigendian=unknown
8592    # See if we're dealing with a universal compiler.
8593    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h.  */
8595#ifndef __APPLE_CC__
8596	       not a universal capable compiler
8597	     #endif
8598	     typedef int dummy;
8599
8600_ACEOF
8601if ac_fn_c_try_compile "$LINENO"; then :
8602
8603	# Check for potential -arch flags.  It is not universal unless
8604	# there are at least two -arch flags with different values.
8605	ac_arch=
8606	ac_prev=
8607	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8608	 if test -n "$ac_prev"; then
8609	   case $ac_word in
8610	     i?86 | x86_64 | ppc | ppc64)
8611	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8612		 ac_arch=$ac_word
8613	       else
8614		 ac_cv_c_bigendian=universal
8615		 break
8616	       fi
8617	       ;;
8618	   esac
8619	   ac_prev=
8620	 elif test "x$ac_word" = "x-arch"; then
8621	   ac_prev=arch
8622	 fi
8623       done
8624fi
8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626    if test $ac_cv_c_bigendian = unknown; then
8627      # See if sys/param.h defines the BYTE_ORDER macro.
8628      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h.  */
8630#include <sys/types.h>
8631	     #include <sys/param.h>
8632
8633int
8634main ()
8635{
8636#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8637		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8638		     && LITTLE_ENDIAN)
8639	      bogus endian macros
8640	     #endif
8641
8642  ;
8643  return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_compile "$LINENO"; then :
8647  # It does; now see whether it defined to BIG_ENDIAN or not.
8648	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649/* end confdefs.h.  */
8650#include <sys/types.h>
8651		#include <sys/param.h>
8652
8653int
8654main ()
8655{
8656#if BYTE_ORDER != BIG_ENDIAN
8657		 not big endian
8658		#endif
8659
8660  ;
8661  return 0;
8662}
8663_ACEOF
8664if ac_fn_c_try_compile "$LINENO"; then :
8665  ac_cv_c_bigendian=yes
8666else
8667  ac_cv_c_bigendian=no
8668fi
8669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670fi
8671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672    fi
8673    if test $ac_cv_c_bigendian = unknown; then
8674      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8675      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676/* end confdefs.h.  */
8677#include <limits.h>
8678
8679int
8680main ()
8681{
8682#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8683	      bogus endian macros
8684	     #endif
8685
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690if ac_fn_c_try_compile "$LINENO"; then :
8691  # It does; now see whether it defined to _BIG_ENDIAN or not.
8692	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693/* end confdefs.h.  */
8694#include <limits.h>
8695
8696int
8697main ()
8698{
8699#ifndef _BIG_ENDIAN
8700		 not big endian
8701		#endif
8702
8703  ;
8704  return 0;
8705}
8706_ACEOF
8707if ac_fn_c_try_compile "$LINENO"; then :
8708  ac_cv_c_bigendian=yes
8709else
8710  ac_cv_c_bigendian=no
8711fi
8712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713fi
8714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715    fi
8716    if test $ac_cv_c_bigendian = unknown; then
8717      # Compile a test program.
8718      if test "$cross_compiling" = yes; then :
8719  # Try to guess by grepping values from an object file.
8720	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721/* end confdefs.h.  */
8722short int ascii_mm[] =
8723		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8724		short int ascii_ii[] =
8725		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8726		int use_ascii (int i) {
8727		  return ascii_mm[i] + ascii_ii[i];
8728		}
8729		short int ebcdic_ii[] =
8730		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8731		short int ebcdic_mm[] =
8732		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8733		int use_ebcdic (int i) {
8734		  return ebcdic_mm[i] + ebcdic_ii[i];
8735		}
8736		extern int foo;
8737
8738int
8739main ()
8740{
8741return use_ascii (foo) == use_ebcdic (foo);
8742  ;
8743  return 0;
8744}
8745_ACEOF
8746if ac_fn_c_try_compile "$LINENO"; then :
8747  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8748	      ac_cv_c_bigendian=yes
8749	    fi
8750	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8751	      if test "$ac_cv_c_bigendian" = unknown; then
8752		ac_cv_c_bigendian=no
8753	      else
8754		# finding both strings is unlikely to happen, but who knows?
8755		ac_cv_c_bigendian=unknown
8756	      fi
8757	    fi
8758fi
8759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760else
8761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762/* end confdefs.h.  */
8763$ac_includes_default
8764int
8765main ()
8766{
8767
8768	     /* Are we little or big endian?  From Harbison&Steele.  */
8769	     union
8770	     {
8771	       long int l;
8772	       char c[sizeof (long int)];
8773	     } u;
8774	     u.l = 1;
8775	     return u.c[sizeof (long int) - 1] == 1;
8776
8777  ;
8778  return 0;
8779}
8780_ACEOF
8781if ac_fn_c_try_run "$LINENO"; then :
8782  ac_cv_c_bigendian=no
8783else
8784  ac_cv_c_bigendian=yes
8785fi
8786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8787  conftest.$ac_objext conftest.beam conftest.$ac_ext
8788fi
8789
8790    fi
8791fi
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8793$as_echo "$ac_cv_c_bigendian" >&6; }
8794 case $ac_cv_c_bigendian in #(
8795   yes)
8796     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8797;; #(
8798   no)
8799      ;; #(
8800   universal)
8801
8802$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8803
8804     ;; #(
8805   *)
8806     as_fn_error "unknown endianness
8807 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8808 esac
8809
8810
8811# ----------------------
8812# Checks for C++ headers
8813# ----------------------
8814
8815ac_ext=cpp
8816ac_cpp='$CXXCPP $CPPFLAGS'
8817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8821$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8822if test -z "$CXXCPP"; then
8823  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8824  $as_echo_n "(cached) " >&6
8825else
8826      # Double quotes because CXXCPP needs to be expanded
8827    for CXXCPP in "$CXX -E" "/lib/cpp"
8828    do
8829      ac_preproc_ok=false
8830for ac_cxx_preproc_warn_flag in '' yes
8831do
8832  # Use a header file that comes with gcc, so configuring glibc
8833  # with a fresh cross-compiler works.
8834  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8835  # <limits.h> exists even on freestanding compilers.
8836  # On the NeXT, cc -E runs the code through the compiler's parser,
8837  # not just through cpp. "Syntax error" is here to catch this case.
8838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839/* end confdefs.h.  */
8840#ifdef __STDC__
8841# include <limits.h>
8842#else
8843# include <assert.h>
8844#endif
8845		     Syntax error
8846_ACEOF
8847if ac_fn_cxx_try_cpp "$LINENO"; then :
8848
8849else
8850  # Broken: fails on valid input.
8851continue
8852fi
8853rm -f conftest.err conftest.$ac_ext
8854
8855  # OK, works on sane cases.  Now check whether nonexistent headers
8856  # can be detected and how.
8857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h.  */
8859#include <ac_nonexistent.h>
8860_ACEOF
8861if ac_fn_cxx_try_cpp "$LINENO"; then :
8862  # Broken: success on invalid input.
8863continue
8864else
8865  # Passes both tests.
8866ac_preproc_ok=:
8867break
8868fi
8869rm -f conftest.err conftest.$ac_ext
8870
8871done
8872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8873rm -f conftest.err conftest.$ac_ext
8874if $ac_preproc_ok; then :
8875  break
8876fi
8877
8878    done
8879    ac_cv_prog_CXXCPP=$CXXCPP
8880
8881fi
8882  CXXCPP=$ac_cv_prog_CXXCPP
8883else
8884  ac_cv_prog_CXXCPP=$CXXCPP
8885fi
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8887$as_echo "$CXXCPP" >&6; }
8888ac_preproc_ok=false
8889for ac_cxx_preproc_warn_flag in '' yes
8890do
8891  # Use a header file that comes with gcc, so configuring glibc
8892  # with a fresh cross-compiler works.
8893  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894  # <limits.h> exists even on freestanding compilers.
8895  # On the NeXT, cc -E runs the code through the compiler's parser,
8896  # not just through cpp. "Syntax error" is here to catch this case.
8897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898/* end confdefs.h.  */
8899#ifdef __STDC__
8900# include <limits.h>
8901#else
8902# include <assert.h>
8903#endif
8904		     Syntax error
8905_ACEOF
8906if ac_fn_cxx_try_cpp "$LINENO"; then :
8907
8908else
8909  # Broken: fails on valid input.
8910continue
8911fi
8912rm -f conftest.err conftest.$ac_ext
8913
8914  # OK, works on sane cases.  Now check whether nonexistent headers
8915  # can be detected and how.
8916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917/* end confdefs.h.  */
8918#include <ac_nonexistent.h>
8919_ACEOF
8920if ac_fn_cxx_try_cpp "$LINENO"; then :
8921  # Broken: success on invalid input.
8922continue
8923else
8924  # Passes both tests.
8925ac_preproc_ok=:
8926break
8927fi
8928rm -f conftest.err conftest.$ac_ext
8929
8930done
8931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8932rm -f conftest.err conftest.$ac_ext
8933if $ac_preproc_ok; then :
8934
8935else
8936  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8939See \`config.log' for more details." >&5
8940$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8941See \`config.log' for more details." >&2;}; }
8942fi
8943
8944ac_ext=c
8945ac_cpp='$CPP $CPPFLAGS'
8946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948ac_compiler_gnu=$ac_cv_c_compiler_gnu
8949
8950
8951ac_ext=cpp
8952ac_cpp='$CXXCPP $CPPFLAGS'
8953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8956
8957
8958
8959for ac_header in unordered_map
8960do :
8961  ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8962if test "x$ac_cv_header_unordered_map" = x""yes; then :
8963  cat >>confdefs.h <<_ACEOF
8964#define HAVE_UNORDERED_MAP 1
8965_ACEOF
8966
8967fi
8968done
8969
8970for ac_header in tr1/unordered_map
8971do :
8972  ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8973if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8974  cat >>confdefs.h <<_ACEOF
8975#define HAVE_TR1_UNORDERED_MAP 1
8976_ACEOF
8977
8978fi
8979done
8980
8981for ac_header in ext/hash_map
8982do :
8983  ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8984if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8985  cat >>confdefs.h <<_ACEOF
8986#define HAVE_EXT_HASH_MAP 1
8987_ACEOF
8988
8989fi
8990done
8991
8992
8993ac_ext=c
8994ac_cpp='$CPP $CPPFLAGS'
8995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998
8999
9000# --------
9001# Dependency checking.
9002# --------
9003
9004ac_ext=cpp
9005ac_cpp='$CXXCPP $CPPFLAGS'
9006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9009
9010rm -rf .tst 2>/dev/null
9011mkdir .tst 2>/dev/null
9012if test -d .tst; then
9013  am__leading_dot=.
9014else
9015  am__leading_dot=_
9016fi
9017rmdir .tst 2>/dev/null
9018
9019DEPDIR="${am__leading_dot}deps"
9020
9021ac_config_commands="$ac_config_commands depdir"
9022
9023
9024ac_config_commands="$ac_config_commands gccdepdir"
9025
9026
9027depcc="$CXX"  am_compiler_list=
9028
9029am_depcomp=$ac_aux_dir/depcomp
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9031$as_echo_n "checking dependency style of $depcc... " >&6; }
9032if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9033  $as_echo_n "(cached) " >&6
9034else
9035  if test -f "$am_depcomp"; then
9036  # We make a subdir and do the tests there.  Otherwise we can end up
9037  # making bogus files that we don't know about and never remove.  For
9038  # instance it was reported that on HP-UX the gcc test will end up
9039  # making a dummy file named `D' -- because `-MD' means `put the output
9040  # in D'.
9041  mkdir conftest.dir
9042  # Copy depcomp to subdir because otherwise we won't find it if we're
9043  # using a relative directory.
9044  cp "$am_depcomp" conftest.dir
9045  cd conftest.dir
9046  # We will build objects and dependencies in a subdirectory because
9047  # it helps to detect inapplicable dependency modes.  For instance
9048  # both Tru64's cc and ICC support -MD to output dependencies as a
9049  # side effect of compilation, but ICC will put the dependencies in
9050  # the current directory while Tru64 will put them in the object
9051  # directory.
9052  mkdir sub
9053
9054  am_cv_CXX_dependencies_compiler_type=none
9055  if test "$am_compiler_list" = ""; then
9056     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9057  fi
9058  for depmode in $am_compiler_list; do
9059    if test $depmode = none; then break; fi
9060
9061    $as_echo "$as_me:$LINENO: trying $depmode" >&5
9062    # Setup a source with many dependencies, because some compilers
9063    # like to wrap large dependency lists on column 80 (with \), and
9064    # we should not choose a depcomp mode which is confused by this.
9065    #
9066    # We need to recreate these files for each test, as the compiler may
9067    # overwrite some of them when testing with obscure command lines.
9068    # This happens at least with the AIX C compiler.
9069    : > sub/conftest.c
9070    for i in 1 2 3 4 5 6; do
9071      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9072      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9073      # Solaris 8's {/usr,}/bin/sh.
9074      touch sub/conftst$i.h
9075    done
9076    echo "include sub/conftest.Po" > confmf
9077
9078    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9079    # mode.  It turns out that the SunPro C++ compiler does not properly
9080    # handle `-M -o', and we need to detect this.
9081    depcmd="depmode=$depmode \
9082       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9083       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9084       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9085    echo "| $depcmd" | sed -e 's/  */ /g' >&5
9086    if env $depcmd > conftest.err 2>&1 &&
9087       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9088       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9089       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9090      # icc doesn't choke on unknown options, it will just issue warnings
9091      # or remarks (even with -Werror).  So we grep stderr for any message
9092      # that says an option was ignored or not supported.
9093      # When given -MP, icc 7.0 and 7.1 complain thusly:
9094      #   icc: Command line warning: ignoring option '-M'; no argument required
9095      # The diagnosis changed in icc 8.0:
9096      #   icc: Command line remark: option '-MP' not supported
9097      if (grep 'ignoring option' conftest.err ||
9098          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9099        am_cv_CXX_dependencies_compiler_type=$depmode
9100	$as_echo "$as_me:$LINENO: success" >&5
9101        break
9102      fi
9103    fi
9104    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9105    sed -e 's/^/| /' < conftest.err >&5
9106  done
9107
9108  cd ..
9109  rm -rf conftest.dir
9110else
9111  am_cv_CXX_dependencies_compiler_type=none
9112fi
9113
9114fi
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9116$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9117if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9118then as_fn_error "no usable dependency style found" "$LINENO" 5
9119else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9120
9121fi
9122
9123ac_ext=c
9124ac_cpp='$CPP $CPPFLAGS'
9125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9127ac_compiler_gnu=$ac_cv_c_compiler_gnu
9128
9129
9130# --------
9131# UNSORTED
9132# --------
9133
9134
9135# Configure -lm usage for host tools that need it
9136build_math_library="-lm"
9137case $build in
9138  *-*-haiku*)
9139    # no separate math library needed
9140    build_math_library=
9141    ;;
9142esac
9143
9144
9145# These libraries may be used by collect2.
9146# We may need a special search path to get them linked.
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9148$as_echo_n "checking for collect2 libraries... " >&6; }
9149if test "${gcc_cv_collect2_libs+set}" = set; then :
9150  $as_echo_n "(cached) " >&6
9151else
9152  save_LIBS="$LIBS"
9153for libs in '' -lld -lmld \
9154		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
9155		'-L/usr/lib/cmplrs/cc3.11 -lmld'
9156do
9157	LIBS="$libs"
9158	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159/* end confdefs.h.  */
9160
9161/* Override any GCC internal prototype to avoid an error.
9162   Use char because int might match the return type of a GCC
9163   builtin and then its argument prototype would still apply.  */
9164#ifdef __cplusplus
9165extern "C"
9166#endif
9167char ldopen ();
9168int
9169main ()
9170{
9171return ldopen ();
9172  ;
9173  return 0;
9174}
9175_ACEOF
9176if ac_fn_c_try_link "$LINENO"; then :
9177  gcc_cv_collect2_libs="$libs"; break
9178fi
9179rm -f core conftest.err conftest.$ac_objext \
9180    conftest$ac_exeext conftest.$ac_ext
9181done
9182LIBS="$save_LIBS"
9183test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9184fi
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9186$as_echo "$gcc_cv_collect2_libs" >&6; }
9187case $gcc_cv_collect2_libs in
9188	"none required")	;;
9189	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9190esac
9191
9192
9193# When building Ada code on Alpha, we need exc_resume which is usually in
9194# -lexc.  So test for it.
9195save_LIBS="$LIBS"
9196LIBS=
9197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9198$as_echo_n "checking for library containing exc_resume... " >&6; }
9199if test "${ac_cv_search_exc_resume+set}" = set; then :
9200  $as_echo_n "(cached) " >&6
9201else
9202  ac_func_search_save_LIBS=$LIBS
9203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h.  */
9205
9206/* Override any GCC internal prototype to avoid an error.
9207   Use char because int might match the return type of a GCC
9208   builtin and then its argument prototype would still apply.  */
9209#ifdef __cplusplus
9210extern "C"
9211#endif
9212char exc_resume ();
9213int
9214main ()
9215{
9216return exc_resume ();
9217  ;
9218  return 0;
9219}
9220_ACEOF
9221for ac_lib in '' exc; do
9222  if test -z "$ac_lib"; then
9223    ac_res="none required"
9224  else
9225    ac_res=-l$ac_lib
9226    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9227  fi
9228  if ac_fn_c_try_link "$LINENO"; then :
9229  ac_cv_search_exc_resume=$ac_res
9230fi
9231rm -f core conftest.err conftest.$ac_objext \
9232    conftest$ac_exeext
9233  if test "${ac_cv_search_exc_resume+set}" = set; then :
9234  break
9235fi
9236done
9237if test "${ac_cv_search_exc_resume+set}" = set; then :
9238
9239else
9240  ac_cv_search_exc_resume=no
9241fi
9242rm conftest.$ac_ext
9243LIBS=$ac_func_search_save_LIBS
9244fi
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9246$as_echo "$ac_cv_search_exc_resume" >&6; }
9247ac_res=$ac_cv_search_exc_resume
9248if test "$ac_res" != no; then :
9249  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9250
9251fi
9252
9253GNAT_LIBEXC="$LIBS"
9254LIBS="$save_LIBS"
9255
9256
9257# To support -mcpu=native on Solaris/SPARC, we need libkstat.
9258save_LIBS="$LIBS"
9259LIBS=
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9261$as_echo_n "checking for library containing kstat_open... " >&6; }
9262if test "${ac_cv_search_kstat_open+set}" = set; then :
9263  $as_echo_n "(cached) " >&6
9264else
9265  ac_func_search_save_LIBS=$LIBS
9266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h.  */
9268
9269/* Override any GCC internal prototype to avoid an error.
9270   Use char because int might match the return type of a GCC
9271   builtin and then its argument prototype would still apply.  */
9272#ifdef __cplusplus
9273extern "C"
9274#endif
9275char kstat_open ();
9276int
9277main ()
9278{
9279return kstat_open ();
9280  ;
9281  return 0;
9282}
9283_ACEOF
9284for ac_lib in '' kstat; do
9285  if test -z "$ac_lib"; then
9286    ac_res="none required"
9287  else
9288    ac_res=-l$ac_lib
9289    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9290  fi
9291  if ac_fn_c_try_link "$LINENO"; then :
9292  ac_cv_search_kstat_open=$ac_res
9293fi
9294rm -f core conftest.err conftest.$ac_objext \
9295    conftest$ac_exeext
9296  if test "${ac_cv_search_kstat_open+set}" = set; then :
9297  break
9298fi
9299done
9300if test "${ac_cv_search_kstat_open+set}" = set; then :
9301
9302else
9303  ac_cv_search_kstat_open=no
9304fi
9305rm conftest.$ac_ext
9306LIBS=$ac_func_search_save_LIBS
9307fi
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9309$as_echo "$ac_cv_search_kstat_open" >&6; }
9310ac_res=$ac_cv_search_kstat_open
9311if test "$ac_res" != no; then :
9312  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9313
9314fi
9315
9316EXTRA_GCC_LIBS="$LIBS"
9317LIBS="$save_LIBS"
9318
9319
9320# Some systems put ldexp and frexp in libm instead of libc; assume
9321# they're both in the same place.  jcf-dump needs them.
9322save_LIBS="$LIBS"
9323LIBS=
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9325$as_echo_n "checking for library containing ldexp... " >&6; }
9326if test "${ac_cv_search_ldexp+set}" = set; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  ac_func_search_save_LIBS=$LIBS
9330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332
9333/* Override any GCC internal prototype to avoid an error.
9334   Use char because int might match the return type of a GCC
9335   builtin and then its argument prototype would still apply.  */
9336#ifdef __cplusplus
9337extern "C"
9338#endif
9339char ldexp ();
9340int
9341main ()
9342{
9343return ldexp ();
9344  ;
9345  return 0;
9346}
9347_ACEOF
9348for ac_lib in '' m; do
9349  if test -z "$ac_lib"; then
9350    ac_res="none required"
9351  else
9352    ac_res=-l$ac_lib
9353    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9354  fi
9355  if ac_fn_c_try_link "$LINENO"; then :
9356  ac_cv_search_ldexp=$ac_res
9357fi
9358rm -f core conftest.err conftest.$ac_objext \
9359    conftest$ac_exeext
9360  if test "${ac_cv_search_ldexp+set}" = set; then :
9361  break
9362fi
9363done
9364if test "${ac_cv_search_ldexp+set}" = set; then :
9365
9366else
9367  ac_cv_search_ldexp=no
9368fi
9369rm conftest.$ac_ext
9370LIBS=$ac_func_search_save_LIBS
9371fi
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9373$as_echo "$ac_cv_search_ldexp" >&6; }
9374ac_res=$ac_cv_search_ldexp
9375if test "$ac_res" != no; then :
9376  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9377
9378fi
9379
9380LDEXP_LIB="$LIBS"
9381LIBS="$save_LIBS"
9382
9383
9384# Use <inttypes.h> only if it exists,
9385# doesn't clash with <sys/types.h>, declares intmax_t and defines
9386# PRId64
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9388$as_echo_n "checking for inttypes.h... " >&6; }
9389if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9390  $as_echo_n "(cached) " >&6
9391else
9392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h.  */
9394#define __STDC_FORMAT_MACROS
9395#include <sys/types.h>
9396#include <inttypes.h>
9397int
9398main ()
9399{
9400intmax_t i = -1;
9401#ifndef PRId64
9402choke me
9403#endif
9404  ;
9405  return 0;
9406}
9407_ACEOF
9408if ac_fn_c_try_compile "$LINENO"; then :
9409  gcc_cv_header_inttypes_h=yes
9410else
9411  gcc_cv_header_inttypes_h=no
9412fi
9413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414fi
9415
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9417$as_echo "$gcc_cv_header_inttypes_h" >&6; }
9418if test $gcc_cv_header_inttypes_h = yes; then
9419
9420$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9421
9422fi
9423
9424
9425
9426for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9427	popen sysconf strsignal getrusage nl_langinfo \
9428	gettimeofday mbstowcs wcswidth mmap setlocale \
9429	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 madvise
9430do :
9431  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9432ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9433eval as_val=\$$as_ac_var
9434   if test "x$as_val" = x""yes; then :
9435  cat >>confdefs.h <<_ACEOF
9436#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9437_ACEOF
9438
9439fi
9440done
9441
9442
9443if test x$ac_cv_func_mbstowcs = xyes; then
9444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9445$as_echo_n "checking whether mbstowcs works... " >&6; }
9446if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9447  $as_echo_n "(cached) " >&6
9448else
9449      if test "$cross_compiling" = yes; then :
9450  gcc_cv_func_mbstowcs_works=yes
9451else
9452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453/* end confdefs.h.  */
9454#include <stdlib.h>
9455int main()
9456{
9457  mbstowcs(0, "", 0);
9458  return 0;
9459}
9460_ACEOF
9461if ac_fn_c_try_run "$LINENO"; then :
9462  gcc_cv_func_mbstowcs_works=yes
9463else
9464  gcc_cv_func_mbstowcs_works=no
9465fi
9466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9467  conftest.$ac_objext conftest.beam conftest.$ac_ext
9468fi
9469
9470fi
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9472$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9473  if test x$gcc_cv_func_mbstowcs_works = xyes; then
9474
9475$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9476
9477  fi
9478fi
9479
9480ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9481if test "x$ac_cv_type_ssize_t" = x""yes; then :
9482
9483else
9484
9485cat >>confdefs.h <<_ACEOF
9486#define ssize_t int
9487_ACEOF
9488
9489fi
9490
9491ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9492if test "x$ac_cv_type_caddr_t" = x""yes; then :
9493
9494else
9495
9496cat >>confdefs.h <<_ACEOF
9497#define caddr_t char *
9498_ACEOF
9499
9500fi
9501
9502
9503
9504ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9505if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9506  gcc_header_sys_mman_h=yes
9507else
9508  gcc_header_sys_mman_h=no
9509fi
9510
9511ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9512if test "x$ac_cv_func_mmap" = x""yes; then :
9513  gcc_func_mmap=yes
9514else
9515  gcc_func_mmap=no
9516fi
9517
9518if test "$gcc_header_sys_mman_h" != yes \
9519 || test "$gcc_func_mmap" != yes; then
9520   gcc_cv_func_mmap_file=no
9521   gcc_cv_func_mmap_dev_zero=no
9522   gcc_cv_func_mmap_anon=no
9523else
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9525$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9526if test "${gcc_cv_func_mmap_file+set}" = set; then :
9527  $as_echo_n "(cached) " >&6
9528else
9529  # Add a system to this blacklist if
9530   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9531   # memory area containing the same data that you'd get if you applied
9532   # read() to the same fd.  The only system known to have a problem here
9533   # is VMS, where text files have record structure.
9534   case "$host_os" in
9535     *vms* | ultrix*)
9536        gcc_cv_func_mmap_file=no ;;
9537     *)
9538        gcc_cv_func_mmap_file=yes;;
9539   esac
9540fi
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9542$as_echo "$gcc_cv_func_mmap_file" >&6; }
9543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9544$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9545if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9546  $as_echo_n "(cached) " >&6
9547else
9548  # Add a system to this blacklist if it has mmap() but /dev/zero
9549   # does not exist, or if mmapping /dev/zero does not give anonymous
9550   # zeroed pages with both the following properties:
9551   # 1. If you map N consecutive pages in with one call, and then
9552   #    unmap any subset of those pages, the pages that were not
9553   #    explicitly unmapped remain accessible.
9554   # 2. If you map two adjacent blocks of memory and then unmap them
9555   #    both at once, they must both go away.
9556   # Systems known to be in this category are Windows (all variants),
9557   # VMS, and Darwin.
9558   case "$host_os" in
9559     *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9560        gcc_cv_func_mmap_dev_zero=no ;;
9561     *)
9562        gcc_cv_func_mmap_dev_zero=yes;;
9563   esac
9564fi
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9566$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9567
9568   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9570$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9571if test "${gcc_cv_decl_map_anon+set}" = set; then :
9572  $as_echo_n "(cached) " >&6
9573else
9574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575/* end confdefs.h.  */
9576#include <sys/types.h>
9577#include <sys/mman.h>
9578#include <unistd.h>
9579
9580#ifndef MAP_ANONYMOUS
9581#define MAP_ANONYMOUS MAP_ANON
9582#endif
9583
9584int
9585main ()
9586{
9587int n = MAP_ANONYMOUS;
9588  ;
9589  return 0;
9590}
9591_ACEOF
9592if ac_fn_c_try_compile "$LINENO"; then :
9593  gcc_cv_decl_map_anon=yes
9594else
9595  gcc_cv_decl_map_anon=no
9596fi
9597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598fi
9599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9600$as_echo "$gcc_cv_decl_map_anon" >&6; }
9601
9602   if test $gcc_cv_decl_map_anon = no; then
9603     gcc_cv_func_mmap_anon=no
9604   else
9605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9606$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9607if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9608  $as_echo_n "(cached) " >&6
9609else
9610  # Add a system to this blacklist if it has mmap() and MAP_ANON or
9611   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9612   # doesn't give anonymous zeroed pages with the same properties listed
9613   # above for use of /dev/zero.
9614   # Systems known to be in this category are Windows, VMS, and SCO Unix.
9615   case "$host_os" in
9616     *vms* | cygwin* | pe | mingw* | sco* | udk* )
9617        gcc_cv_func_mmap_anon=no ;;
9618     *)
9619        gcc_cv_func_mmap_anon=yes;;
9620   esac
9621fi
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9623$as_echo "$gcc_cv_func_mmap_anon" >&6; }
9624   fi
9625fi
9626
9627if test $gcc_cv_func_mmap_file = yes; then
9628
9629$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9630
9631fi
9632if test $gcc_cv_func_mmap_dev_zero = yes; then
9633
9634$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9635
9636fi
9637if test $gcc_cv_func_mmap_anon = yes; then
9638
9639$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9640
9641fi
9642
9643
9644case "${host}" in
9645*-*-*vms*)
9646  # Under VMS, vfork works very differently than on Unix. The standard test
9647  # won't work, and it isn't easily adaptable. It makes more sense to
9648  # just force it.
9649  ac_cv_func_vfork_works=yes
9650  ;;
9651esac
9652ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9653if test "x$ac_cv_type_pid_t" = x""yes; then :
9654
9655else
9656
9657cat >>confdefs.h <<_ACEOF
9658#define pid_t int
9659_ACEOF
9660
9661fi
9662
9663for ac_header in vfork.h
9664do :
9665  ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9666if test "x$ac_cv_header_vfork_h" = x""yes; then :
9667  cat >>confdefs.h <<_ACEOF
9668#define HAVE_VFORK_H 1
9669_ACEOF
9670
9671fi
9672done
9673
9674for ac_func in fork vfork
9675do :
9676  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9677ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9678eval as_val=\$$as_ac_var
9679   if test "x$as_val" = x""yes; then :
9680  cat >>confdefs.h <<_ACEOF
9681#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9682_ACEOF
9683
9684fi
9685done
9686
9687if test "x$ac_cv_func_fork" = xyes; then
9688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9689$as_echo_n "checking for working fork... " >&6; }
9690if test "${ac_cv_func_fork_works+set}" = set; then :
9691  $as_echo_n "(cached) " >&6
9692else
9693  if test "$cross_compiling" = yes; then :
9694  ac_cv_func_fork_works=cross
9695else
9696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697/* end confdefs.h.  */
9698$ac_includes_default
9699int
9700main ()
9701{
9702
9703	  /* By Ruediger Kuhlmann. */
9704	  return fork () < 0;
9705
9706  ;
9707  return 0;
9708}
9709_ACEOF
9710if ac_fn_c_try_run "$LINENO"; then :
9711  ac_cv_func_fork_works=yes
9712else
9713  ac_cv_func_fork_works=no
9714fi
9715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9716  conftest.$ac_objext conftest.beam conftest.$ac_ext
9717fi
9718
9719fi
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9721$as_echo "$ac_cv_func_fork_works" >&6; }
9722
9723else
9724  ac_cv_func_fork_works=$ac_cv_func_fork
9725fi
9726if test "x$ac_cv_func_fork_works" = xcross; then
9727  case $host in
9728    *-*-amigaos* | *-*-msdosdjgpp*)
9729      # Override, as these systems have only a dummy fork() stub
9730      ac_cv_func_fork_works=no
9731      ;;
9732    *)
9733      ac_cv_func_fork_works=yes
9734      ;;
9735  esac
9736  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9737$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9738fi
9739ac_cv_func_vfork_works=$ac_cv_func_vfork
9740if test "x$ac_cv_func_vfork" = xyes; then
9741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9742$as_echo_n "checking for working vfork... " >&6; }
9743if test "${ac_cv_func_vfork_works+set}" = set; then :
9744  $as_echo_n "(cached) " >&6
9745else
9746  if test "$cross_compiling" = yes; then :
9747  ac_cv_func_vfork_works=cross
9748else
9749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h.  */
9751/* Thanks to Paul Eggert for this test.  */
9752$ac_includes_default
9753#include <sys/wait.h>
9754#ifdef HAVE_VFORK_H
9755# include <vfork.h>
9756#endif
9757/* On some sparc systems, changes by the child to local and incoming
9758   argument registers are propagated back to the parent.  The compiler
9759   is told about this with #include <vfork.h>, but some compilers
9760   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9761   static variable whose address is put into a register that is
9762   clobbered by the vfork.  */
9763static void
9764#ifdef __cplusplus
9765sparc_address_test (int arg)
9766# else
9767sparc_address_test (arg) int arg;
9768#endif
9769{
9770  static pid_t child;
9771  if (!child) {
9772    child = vfork ();
9773    if (child < 0) {
9774      perror ("vfork");
9775      _exit(2);
9776    }
9777    if (!child) {
9778      arg = getpid();
9779      write(-1, "", 0);
9780      _exit (arg);
9781    }
9782  }
9783}
9784
9785int
9786main ()
9787{
9788  pid_t parent = getpid ();
9789  pid_t child;
9790
9791  sparc_address_test (0);
9792
9793  child = vfork ();
9794
9795  if (child == 0) {
9796    /* Here is another test for sparc vfork register problems.  This
9797       test uses lots of local variables, at least as many local
9798       variables as main has allocated so far including compiler
9799       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9800       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9801       reuse the register of parent for one of the local variables,
9802       since it will think that parent can't possibly be used any more
9803       in this routine.  Assigning to the local variable will thus
9804       munge parent in the parent process.  */
9805    pid_t
9806      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9807      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9808    /* Convince the compiler that p..p7 are live; otherwise, it might
9809       use the same hardware register for all 8 local variables.  */
9810    if (p != p1 || p != p2 || p != p3 || p != p4
9811	|| p != p5 || p != p6 || p != p7)
9812      _exit(1);
9813
9814    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9815       from child file descriptors.  If the child closes a descriptor
9816       before it execs or exits, this munges the parent's descriptor
9817       as well.  Test for this by closing stdout in the child.  */
9818    _exit(close(fileno(stdout)) != 0);
9819  } else {
9820    int status;
9821    struct stat st;
9822
9823    while (wait(&status) != child)
9824      ;
9825    return (
9826	 /* Was there some problem with vforking?  */
9827	 child < 0
9828
9829	 /* Did the child fail?  (This shouldn't happen.)  */
9830	 || status
9831
9832	 /* Did the vfork/compiler bug occur?  */
9833	 || parent != getpid()
9834
9835	 /* Did the file descriptor bug occur?  */
9836	 || fstat(fileno(stdout), &st) != 0
9837	 );
9838  }
9839}
9840_ACEOF
9841if ac_fn_c_try_run "$LINENO"; then :
9842  ac_cv_func_vfork_works=yes
9843else
9844  ac_cv_func_vfork_works=no
9845fi
9846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9847  conftest.$ac_objext conftest.beam conftest.$ac_ext
9848fi
9849
9850fi
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9852$as_echo "$ac_cv_func_vfork_works" >&6; }
9853
9854fi;
9855if test "x$ac_cv_func_fork_works" = xcross; then
9856  ac_cv_func_vfork_works=$ac_cv_func_vfork
9857  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9858$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9859fi
9860
9861if test "x$ac_cv_func_vfork_works" = xyes; then
9862
9863$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9864
9865else
9866
9867$as_echo "#define vfork fork" >>confdefs.h
9868
9869fi
9870if test "x$ac_cv_func_fork_works" = xyes; then
9871
9872$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9873
9874fi
9875
9876
9877# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9878# iconv() prototype.
9879ac_ext=cpp
9880ac_cpp='$CXXCPP $CPPFLAGS'
9881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9884
9885
9886      if test "X$prefix" = "XNONE"; then
9887    acl_final_prefix="$ac_default_prefix"
9888  else
9889    acl_final_prefix="$prefix"
9890  fi
9891  if test "X$exec_prefix" = "XNONE"; then
9892    acl_final_exec_prefix='${prefix}'
9893  else
9894    acl_final_exec_prefix="$exec_prefix"
9895  fi
9896  acl_save_prefix="$prefix"
9897  prefix="$acl_final_prefix"
9898  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9899  prefix="$acl_save_prefix"
9900
9901
9902# Check whether --with-gnu-ld was given.
9903if test "${with_gnu_ld+set}" = set; then :
9904  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9905else
9906  with_gnu_ld=no
9907fi
9908
9909# Prepare PATH_SEPARATOR.
9910# The user is always right.
9911if test "${PATH_SEPARATOR+set}" != set; then
9912  echo "#! /bin/sh" >conf$$.sh
9913  echo  "exit 0"   >>conf$$.sh
9914  chmod +x conf$$.sh
9915  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9916    PATH_SEPARATOR=';'
9917  else
9918    PATH_SEPARATOR=:
9919  fi
9920  rm -f conf$$.sh
9921fi
9922ac_prog=ld
9923if test "$GCC" = yes; then
9924  # Check if gcc -print-prog-name=ld gives a path.
9925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9926$as_echo_n "checking for ld used by GCC... " >&6; }
9927  case $host in
9928  *-*-mingw*)
9929    # gcc leaves a trailing carriage return which upsets mingw
9930    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9931  *)
9932    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9933  esac
9934  case $ac_prog in
9935    # Accept absolute paths.
9936    [\\/]* | [A-Za-z]:[\\/]*)
9937      re_direlt='/[^/][^/]*/\.\./'
9938      # Canonicalize the path of ld
9939      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9940      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9941	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9942      done
9943      test -z "$LD" && LD="$ac_prog"
9944      ;;
9945  "")
9946    # If it fails, then pretend we aren't using GCC.
9947    ac_prog=ld
9948    ;;
9949  *)
9950    # If it is relative, then search for the first ld in PATH.
9951    with_gnu_ld=unknown
9952    ;;
9953  esac
9954elif test "$with_gnu_ld" = yes; then
9955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9956$as_echo_n "checking for GNU ld... " >&6; }
9957else
9958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9959$as_echo_n "checking for non-GNU ld... " >&6; }
9960fi
9961if test "${acl_cv_path_LD+set}" = set; then :
9962  $as_echo_n "(cached) " >&6
9963else
9964  if test -z "$LD"; then
9965  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9966  for ac_dir in $PATH; do
9967    test -z "$ac_dir" && ac_dir=.
9968    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9969      acl_cv_path_LD="$ac_dir/$ac_prog"
9970      # Check to see if the program is GNU ld.  I'd rather use --version,
9971      # but apparently some GNU ld's only accept -v.
9972      # Break only if it was the GNU/non-GNU ld that we prefer.
9973      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9974	test "$with_gnu_ld" != no && break
9975      else
9976	test "$with_gnu_ld" != yes && break
9977      fi
9978    fi
9979  done
9980  IFS="$ac_save_ifs"
9981else
9982  acl_cv_path_LD="$LD" # Let the user override the test with a path.
9983fi
9984fi
9985
9986LD="$acl_cv_path_LD"
9987if test -n "$LD"; then
9988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9989$as_echo "$LD" >&6; }
9990else
9991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992$as_echo "no" >&6; }
9993fi
9994test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9996$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9997if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9998  $as_echo_n "(cached) " >&6
9999else
10000  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10001if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10002  acl_cv_prog_gnu_ld=yes
10003else
10004  acl_cv_prog_gnu_ld=no
10005fi
10006fi
10007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10008$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10009with_gnu_ld=$acl_cv_prog_gnu_ld
10010
10011
10012
10013                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10014$as_echo_n "checking for shared library run path origin... " >&6; }
10015if test "${acl_cv_rpath+set}" = set; then :
10016  $as_echo_n "(cached) " >&6
10017else
10018
10019    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10020    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10021    . ./conftest.sh
10022    rm -f ./conftest.sh
10023    acl_cv_rpath=done
10024
10025fi
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10027$as_echo "$acl_cv_rpath" >&6; }
10028  wl="$acl_cv_wl"
10029  libext="$acl_cv_libext"
10030  shlibext="$acl_cv_shlibext"
10031  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10032  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10033  hardcode_direct="$acl_cv_hardcode_direct"
10034  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10035    # Check whether --enable-rpath was given.
10036if test "${enable_rpath+set}" = set; then :
10037  enableval=$enable_rpath; :
10038else
10039  enable_rpath=yes
10040fi
10041
10042
10043
10044
10045
10046
10047
10048
10049    use_additional=yes
10050
10051  acl_save_prefix="$prefix"
10052  prefix="$acl_final_prefix"
10053  acl_save_exec_prefix="$exec_prefix"
10054  exec_prefix="$acl_final_exec_prefix"
10055
10056    eval additional_includedir=\"$includedir\"
10057    eval additional_libdir=\"$libdir\"
10058
10059  exec_prefix="$acl_save_exec_prefix"
10060  prefix="$acl_save_prefix"
10061
10062
10063# Check whether --with-libiconv-prefix was given.
10064if test "${with_libiconv_prefix+set}" = set; then :
10065  withval=$with_libiconv_prefix;
10066    if test "X$withval" = "Xno"; then
10067      use_additional=no
10068    else
10069      if test "X$withval" = "X"; then
10070
10071  acl_save_prefix="$prefix"
10072  prefix="$acl_final_prefix"
10073  acl_save_exec_prefix="$exec_prefix"
10074  exec_prefix="$acl_final_exec_prefix"
10075
10076          eval additional_includedir=\"$includedir\"
10077          eval additional_libdir=\"$libdir\"
10078
10079  exec_prefix="$acl_save_exec_prefix"
10080  prefix="$acl_save_prefix"
10081
10082      else
10083        additional_includedir="$withval/include"
10084        additional_libdir="$withval/lib"
10085      fi
10086    fi
10087
10088fi
10089
10090      LIBICONV=
10091  LTLIBICONV=
10092  INCICONV=
10093  rpathdirs=
10094  ltrpathdirs=
10095  names_already_handled=
10096  names_next_round='iconv '
10097  while test -n "$names_next_round"; do
10098    names_this_round="$names_next_round"
10099    names_next_round=
10100    for name in $names_this_round; do
10101      already_handled=
10102      for n in $names_already_handled; do
10103        if test "$n" = "$name"; then
10104          already_handled=yes
10105          break
10106        fi
10107      done
10108      if test -z "$already_handled"; then
10109        names_already_handled="$names_already_handled $name"
10110                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10111        eval value=\"\$HAVE_LIB$uppername\"
10112        if test -n "$value"; then
10113          if test "$value" = yes; then
10114            eval value=\"\$LIB$uppername\"
10115            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10116            eval value=\"\$LTLIB$uppername\"
10117            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10118          else
10119                                    :
10120          fi
10121        else
10122                              found_dir=
10123          found_la=
10124          found_so=
10125          found_a=
10126          if test $use_additional = yes; then
10127            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10128              found_dir="$additional_libdir"
10129              found_so="$additional_libdir/lib$name.$shlibext"
10130              if test -f "$additional_libdir/lib$name.la"; then
10131                found_la="$additional_libdir/lib$name.la"
10132              fi
10133            else
10134              if test -f "$additional_libdir/lib$name.$libext"; then
10135                found_dir="$additional_libdir"
10136                found_a="$additional_libdir/lib$name.$libext"
10137                if test -f "$additional_libdir/lib$name.la"; then
10138                  found_la="$additional_libdir/lib$name.la"
10139                fi
10140              fi
10141            fi
10142          fi
10143          if test "X$found_dir" = "X"; then
10144            for x in $LDFLAGS $LTLIBICONV; do
10145
10146  acl_save_prefix="$prefix"
10147  prefix="$acl_final_prefix"
10148  acl_save_exec_prefix="$exec_prefix"
10149  exec_prefix="$acl_final_exec_prefix"
10150  eval x=\"$x\"
10151  exec_prefix="$acl_save_exec_prefix"
10152  prefix="$acl_save_prefix"
10153
10154              case "$x" in
10155                -L*)
10156                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10157                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10158                    found_dir="$dir"
10159                    found_so="$dir/lib$name.$shlibext"
10160                    if test -f "$dir/lib$name.la"; then
10161                      found_la="$dir/lib$name.la"
10162                    fi
10163                  else
10164                    if test -f "$dir/lib$name.$libext"; then
10165                      found_dir="$dir"
10166                      found_a="$dir/lib$name.$libext"
10167                      if test -f "$dir/lib$name.la"; then
10168                        found_la="$dir/lib$name.la"
10169                      fi
10170                    fi
10171                  fi
10172                  ;;
10173              esac
10174              if test "X$found_dir" != "X"; then
10175                break
10176              fi
10177            done
10178          fi
10179          if test "X$found_dir" != "X"; then
10180                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10181            if test "X$found_so" != "X"; then
10182                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10183                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10184              else
10185                                                                                haveit=
10186                for x in $ltrpathdirs; do
10187                  if test "X$x" = "X$found_dir"; then
10188                    haveit=yes
10189                    break
10190                  fi
10191                done
10192                if test -z "$haveit"; then
10193                  ltrpathdirs="$ltrpathdirs $found_dir"
10194                fi
10195                                if test "$hardcode_direct" = yes; then
10196                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10197                else
10198                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10199                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10200                                                            haveit=
10201                    for x in $rpathdirs; do
10202                      if test "X$x" = "X$found_dir"; then
10203                        haveit=yes
10204                        break
10205                      fi
10206                    done
10207                    if test -z "$haveit"; then
10208                      rpathdirs="$rpathdirs $found_dir"
10209                    fi
10210                  else
10211                                                                                haveit=
10212                    for x in $LDFLAGS $LIBICONV; do
10213
10214  acl_save_prefix="$prefix"
10215  prefix="$acl_final_prefix"
10216  acl_save_exec_prefix="$exec_prefix"
10217  exec_prefix="$acl_final_exec_prefix"
10218  eval x=\"$x\"
10219  exec_prefix="$acl_save_exec_prefix"
10220  prefix="$acl_save_prefix"
10221
10222                      if test "X$x" = "X-L$found_dir"; then
10223                        haveit=yes
10224                        break
10225                      fi
10226                    done
10227                    if test -z "$haveit"; then
10228                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10229                    fi
10230                    if test "$hardcode_minus_L" != no; then
10231                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10232                    else
10233                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10234                    fi
10235                  fi
10236                fi
10237              fi
10238            else
10239              if test "X$found_a" != "X"; then
10240                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10241              else
10242                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10243              fi
10244            fi
10245                        additional_includedir=
10246            case "$found_dir" in
10247              */lib | */lib/)
10248                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10249                additional_includedir="$basedir/include"
10250                ;;
10251            esac
10252            if test "X$additional_includedir" != "X"; then
10253                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10254                haveit=
10255                if test "X$additional_includedir" = "X/usr/local/include"; then
10256                  if test -n "$GCC"; then
10257                    case $host_os in
10258                      linux*) haveit=yes;;
10259                    esac
10260                  fi
10261                fi
10262                if test -z "$haveit"; then
10263                  for x in $CPPFLAGS $INCICONV; do
10264
10265  acl_save_prefix="$prefix"
10266  prefix="$acl_final_prefix"
10267  acl_save_exec_prefix="$exec_prefix"
10268  exec_prefix="$acl_final_exec_prefix"
10269  eval x=\"$x\"
10270  exec_prefix="$acl_save_exec_prefix"
10271  prefix="$acl_save_prefix"
10272
10273                    if test "X$x" = "X-I$additional_includedir"; then
10274                      haveit=yes
10275                      break
10276                    fi
10277                  done
10278                  if test -z "$haveit"; then
10279                    if test -d "$additional_includedir"; then
10280                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10281                    fi
10282                  fi
10283                fi
10284              fi
10285            fi
10286                        if test -n "$found_la"; then
10287                                                        save_libdir="$libdir"
10288              case "$found_la" in
10289                */* | *\\*) . "$found_la" ;;
10290                *) . "./$found_la" ;;
10291              esac
10292              libdir="$save_libdir"
10293                            for dep in $dependency_libs; do
10294                case "$dep" in
10295                  -L*)
10296                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10297                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10298                      haveit=
10299                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10300                        if test -n "$GCC"; then
10301                          case $host_os in
10302                            linux*) haveit=yes;;
10303                          esac
10304                        fi
10305                      fi
10306                      if test -z "$haveit"; then
10307                        haveit=
10308                        for x in $LDFLAGS $LIBICONV; do
10309
10310  acl_save_prefix="$prefix"
10311  prefix="$acl_final_prefix"
10312  acl_save_exec_prefix="$exec_prefix"
10313  exec_prefix="$acl_final_exec_prefix"
10314  eval x=\"$x\"
10315  exec_prefix="$acl_save_exec_prefix"
10316  prefix="$acl_save_prefix"
10317
10318                          if test "X$x" = "X-L$additional_libdir"; then
10319                            haveit=yes
10320                            break
10321                          fi
10322                        done
10323                        if test -z "$haveit"; then
10324                          if test -d "$additional_libdir"; then
10325                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10326                          fi
10327                        fi
10328                        haveit=
10329                        for x in $LDFLAGS $LTLIBICONV; do
10330
10331  acl_save_prefix="$prefix"
10332  prefix="$acl_final_prefix"
10333  acl_save_exec_prefix="$exec_prefix"
10334  exec_prefix="$acl_final_exec_prefix"
10335  eval x=\"$x\"
10336  exec_prefix="$acl_save_exec_prefix"
10337  prefix="$acl_save_prefix"
10338
10339                          if test "X$x" = "X-L$additional_libdir"; then
10340                            haveit=yes
10341                            break
10342                          fi
10343                        done
10344                        if test -z "$haveit"; then
10345                          if test -d "$additional_libdir"; then
10346                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10347                          fi
10348                        fi
10349                      fi
10350                    fi
10351                    ;;
10352                  -R*)
10353                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10354                    if test "$enable_rpath" != no; then
10355                                                                  haveit=
10356                      for x in $rpathdirs; do
10357                        if test "X$x" = "X$dir"; then
10358                          haveit=yes
10359                          break
10360                        fi
10361                      done
10362                      if test -z "$haveit"; then
10363                        rpathdirs="$rpathdirs $dir"
10364                      fi
10365                                                                  haveit=
10366                      for x in $ltrpathdirs; do
10367                        if test "X$x" = "X$dir"; then
10368                          haveit=yes
10369                          break
10370                        fi
10371                      done
10372                      if test -z "$haveit"; then
10373                        ltrpathdirs="$ltrpathdirs $dir"
10374                      fi
10375                    fi
10376                    ;;
10377                  -l*)
10378                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10379                    ;;
10380                  *.la)
10381                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10382                    ;;
10383                  *)
10384                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10385                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10386                    ;;
10387                esac
10388              done
10389            fi
10390          else
10391                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10392            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10393          fi
10394        fi
10395      fi
10396    done
10397  done
10398  if test "X$rpathdirs" != "X"; then
10399    if test -n "$hardcode_libdir_separator"; then
10400                        alldirs=
10401      for found_dir in $rpathdirs; do
10402        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10403      done
10404            acl_save_libdir="$libdir"
10405      libdir="$alldirs"
10406      eval flag=\"$hardcode_libdir_flag_spec\"
10407      libdir="$acl_save_libdir"
10408      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10409    else
10410            for found_dir in $rpathdirs; do
10411        acl_save_libdir="$libdir"
10412        libdir="$found_dir"
10413        eval flag=\"$hardcode_libdir_flag_spec\"
10414        libdir="$acl_save_libdir"
10415        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10416      done
10417    fi
10418  fi
10419  if test "X$ltrpathdirs" != "X"; then
10420            for found_dir in $ltrpathdirs; do
10421      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10422    done
10423  fi
10424
10425
10426
10427
10428
10429
10430
10431          am_save_CPPFLAGS="$CPPFLAGS"
10432
10433  for element in $INCICONV; do
10434    haveit=
10435    for x in $CPPFLAGS; do
10436
10437  acl_save_prefix="$prefix"
10438  prefix="$acl_final_prefix"
10439  acl_save_exec_prefix="$exec_prefix"
10440  exec_prefix="$acl_final_exec_prefix"
10441  eval x=\"$x\"
10442  exec_prefix="$acl_save_exec_prefix"
10443  prefix="$acl_save_prefix"
10444
10445      if test "X$x" = "X$element"; then
10446        haveit=yes
10447        break
10448      fi
10449    done
10450    if test -z "$haveit"; then
10451      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10452    fi
10453  done
10454
10455
10456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10457$as_echo_n "checking for iconv... " >&6; }
10458if test "${am_cv_func_iconv+set}" = set; then :
10459  $as_echo_n "(cached) " >&6
10460else
10461
10462    am_cv_func_iconv="no, consider installing GNU libiconv"
10463    am_cv_lib_iconv=no
10464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465/* end confdefs.h.  */
10466#include <stdlib.h>
10467#include <iconv.h>
10468int
10469main ()
10470{
10471iconv_t cd = iconv_open("","");
10472       iconv(cd,NULL,NULL,NULL,NULL);
10473       iconv_close(cd);
10474  ;
10475  return 0;
10476}
10477_ACEOF
10478if ac_fn_cxx_try_link "$LINENO"; then :
10479  am_cv_func_iconv=yes
10480fi
10481rm -f core conftest.err conftest.$ac_objext \
10482    conftest$ac_exeext conftest.$ac_ext
10483    if test "$am_cv_func_iconv" != yes; then
10484      am_save_LIBS="$LIBS"
10485      LIBS="$LIBS $LIBICONV"
10486      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487/* end confdefs.h.  */
10488#include <stdlib.h>
10489#include <iconv.h>
10490int
10491main ()
10492{
10493iconv_t cd = iconv_open("","");
10494         iconv(cd,NULL,NULL,NULL,NULL);
10495         iconv_close(cd);
10496  ;
10497  return 0;
10498}
10499_ACEOF
10500if ac_fn_cxx_try_link "$LINENO"; then :
10501  am_cv_lib_iconv=yes
10502        am_cv_func_iconv=yes
10503fi
10504rm -f core conftest.err conftest.$ac_objext \
10505    conftest$ac_exeext conftest.$ac_ext
10506      LIBS="$am_save_LIBS"
10507    fi
10508
10509fi
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10511$as_echo "$am_cv_func_iconv" >&6; }
10512  if test "$am_cv_func_iconv" = yes; then
10513
10514$as_echo "#define HAVE_ICONV 1" >>confdefs.h
10515
10516  fi
10517  if test "$am_cv_lib_iconv" = yes; then
10518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10519$as_echo_n "checking how to link with libiconv... " >&6; }
10520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10521$as_echo "$LIBICONV" >&6; }
10522  else
10523            CPPFLAGS="$am_save_CPPFLAGS"
10524    LIBICONV=
10525    LTLIBICONV=
10526  fi
10527
10528
10529
10530  if test "$am_cv_func_iconv" = yes; then
10531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10532$as_echo_n "checking for iconv declaration... " >&6; }
10533    if test "${am_cv_proto_iconv+set}" = set; then :
10534  $as_echo_n "(cached) " >&6
10535else
10536
10537      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538/* end confdefs.h.  */
10539
10540#include <stdlib.h>
10541#include <iconv.h>
10542extern
10543#ifdef __cplusplus
10544"C"
10545#endif
10546#if defined(__STDC__) || defined(__cplusplus)
10547size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10548#else
10549size_t iconv();
10550#endif
10551
10552int
10553main ()
10554{
10555
10556  ;
10557  return 0;
10558}
10559_ACEOF
10560if ac_fn_cxx_try_compile "$LINENO"; then :
10561  am_cv_proto_iconv_arg1=""
10562else
10563  am_cv_proto_iconv_arg1="const"
10564fi
10565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566      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);"
10567fi
10568
10569    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10570    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10571         }$am_cv_proto_iconv" >&5
10572$as_echo "${ac_t:-
10573         }$am_cv_proto_iconv" >&6; }
10574
10575cat >>confdefs.h <<_ACEOF
10576#define ICONV_CONST $am_cv_proto_iconv_arg1
10577_ACEOF
10578
10579  fi
10580
10581ac_ext=c
10582ac_cpp='$CPP $CPPFLAGS'
10583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586
10587
10588# Until we have in-tree GNU iconv:
10589LIBICONV_DEP=
10590
10591
10592
10593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10594$as_echo_n "checking for LC_MESSAGES... " >&6; }
10595if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10596  $as_echo_n "(cached) " >&6
10597else
10598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599/* end confdefs.h.  */
10600#include <locale.h>
10601int
10602main ()
10603{
10604return LC_MESSAGES
10605  ;
10606  return 0;
10607}
10608_ACEOF
10609if ac_fn_c_try_link "$LINENO"; then :
10610  am_cv_val_LC_MESSAGES=yes
10611else
10612  am_cv_val_LC_MESSAGES=no
10613fi
10614rm -f core conftest.err conftest.$ac_objext \
10615    conftest$ac_exeext conftest.$ac_ext
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10618$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10619  if test $am_cv_val_LC_MESSAGES = yes; then
10620
10621$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10622
10623  fi
10624
10625
10626
10627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10628$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10629if test "${am_cv_langinfo_codeset+set}" = set; then :
10630  $as_echo_n "(cached) " >&6
10631else
10632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633/* end confdefs.h.  */
10634#include <langinfo.h>
10635int
10636main ()
10637{
10638char* cs = nl_langinfo(CODESET);
10639  ;
10640  return 0;
10641}
10642_ACEOF
10643if ac_fn_c_try_link "$LINENO"; then :
10644  am_cv_langinfo_codeset=yes
10645else
10646  am_cv_langinfo_codeset=no
10647fi
10648rm -f core conftest.err conftest.$ac_objext \
10649    conftest$ac_exeext conftest.$ac_ext
10650
10651fi
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10653$as_echo "$am_cv_langinfo_codeset" >&6; }
10654  if test $am_cv_langinfo_codeset = yes; then
10655
10656$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10657
10658  fi
10659
10660
10661# We will need to find libiberty.h and ansidecl.h
10662saved_CFLAGS="$CFLAGS"
10663CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10664saved_CXXFLAGS="$CXXFLAGS"
10665CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10666for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10667	stpcpy strnlen strsignal strstr strverscmp \
10668	strtol strtoul strtoll strtoull \
10669	errno snprintf vsnprintf vasprintf malloc realloc calloc \
10670	free basename getopt clock getpagesize ffs 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
10671do
10672  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10674$as_echo_n "checking whether $ac_func is declared... " >&6; }
10675if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10676  $as_echo_n "(cached) " >&6
10677else
10678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679/* end confdefs.h.  */
10680#undef $ac_tr_decl
10681#define $ac_tr_decl 1
10682
10683#include "ansidecl.h"
10684#include "system.h"
10685
10686int
10687main ()
10688{
10689#ifndef $ac_func
10690char *(*pfn) = (char *(*)) $ac_func ;
10691#endif
10692  ;
10693  return 0;
10694}
10695_ACEOF
10696if ac_fn_c_try_compile "$LINENO"; then :
10697  eval "gcc_cv_have_decl_$ac_func=yes"
10698else
10699  eval "gcc_cv_have_decl_$ac_func=no"
10700fi
10701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702fi
10703
10704if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10706$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10707#define $ac_tr_decl 1
10708_ACEOF
10709
10710else
10711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10713#define $ac_tr_decl 0
10714_ACEOF
10715
10716fi
10717
10718done
10719
10720
10721for ac_func in getrlimit setrlimit getrusage
10722do
10723  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10725$as_echo_n "checking whether $ac_func is declared... " >&6; }
10726if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10727  $as_echo_n "(cached) " >&6
10728else
10729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h.  */
10731#undef $ac_tr_decl
10732#define $ac_tr_decl 1
10733
10734#include "ansidecl.h"
10735#include "system.h"
10736#ifdef HAVE_SYS_RESOURCE_H
10737#include <sys/resource.h>
10738#endif
10739
10740
10741int
10742main ()
10743{
10744#ifndef $ac_func
10745char *(*pfn) = (char *(*)) $ac_func ;
10746#endif
10747  ;
10748  return 0;
10749}
10750_ACEOF
10751if ac_fn_c_try_compile "$LINENO"; then :
10752  eval "gcc_cv_have_decl_$ac_func=yes"
10753else
10754  eval "gcc_cv_have_decl_$ac_func=no"
10755fi
10756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757fi
10758
10759if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10761$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10762#define $ac_tr_decl 1
10763_ACEOF
10764
10765else
10766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10768#define $ac_tr_decl 0
10769_ACEOF
10770
10771fi
10772
10773done
10774
10775
10776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778
10779#include "ansidecl.h"
10780#include "system.h"
10781#ifdef HAVE_SYS_RESOURCE_H
10782#include <sys/resource.h>
10783#endif
10784
10785int
10786main ()
10787{
10788rlim_t l = 0;
10789  ;
10790  return 0;
10791}
10792_ACEOF
10793if ac_fn_c_try_compile "$LINENO"; then :
10794
10795else
10796
10797$as_echo "#define rlim_t long" >>confdefs.h
10798
10799fi
10800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10801
10802# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10803# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10804# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10805# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10806for ac_func in ldgetname
10807do
10808  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10810$as_echo_n "checking whether $ac_func is declared... " >&6; }
10811if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10812  $as_echo_n "(cached) " >&6
10813else
10814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815/* end confdefs.h.  */
10816#undef $ac_tr_decl
10817#define $ac_tr_decl 1
10818
10819#include "ansidecl.h"
10820#include "system.h"
10821#ifdef HAVE_LDFCN_H
10822#undef FREAD
10823#undef FWRITE
10824#include <ldfcn.h>
10825#endif
10826
10827
10828int
10829main ()
10830{
10831#ifndef $ac_func
10832char *(*pfn) = (char *(*)) $ac_func ;
10833#endif
10834  ;
10835  return 0;
10836}
10837_ACEOF
10838if ac_fn_c_try_compile "$LINENO"; then :
10839  eval "gcc_cv_have_decl_$ac_func=yes"
10840else
10841  eval "gcc_cv_have_decl_$ac_func=no"
10842fi
10843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844fi
10845
10846if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10848$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10849#define $ac_tr_decl 1
10850_ACEOF
10851
10852else
10853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10855#define $ac_tr_decl 0
10856_ACEOF
10857
10858fi
10859
10860done
10861
10862
10863for ac_func in times
10864do
10865  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10867$as_echo_n "checking whether $ac_func is declared... " >&6; }
10868if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10869  $as_echo_n "(cached) " >&6
10870else
10871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872/* end confdefs.h.  */
10873#undef $ac_tr_decl
10874#define $ac_tr_decl 1
10875
10876#include "ansidecl.h"
10877#include "system.h"
10878#ifdef HAVE_SYS_TIMES_H
10879#include <sys/times.h>
10880#endif
10881
10882
10883int
10884main ()
10885{
10886#ifndef $ac_func
10887char *(*pfn) = (char *(*)) $ac_func ;
10888#endif
10889  ;
10890  return 0;
10891}
10892_ACEOF
10893if ac_fn_c_try_compile "$LINENO"; then :
10894  eval "gcc_cv_have_decl_$ac_func=yes"
10895else
10896  eval "gcc_cv_have_decl_$ac_func=no"
10897fi
10898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899fi
10900
10901if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10903$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10904#define $ac_tr_decl 1
10905_ACEOF
10906
10907else
10908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10910#define $ac_tr_decl 0
10911_ACEOF
10912
10913fi
10914
10915done
10916
10917
10918for ac_func in sigaltstack
10919do
10920  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10922$as_echo_n "checking whether $ac_func is declared... " >&6; }
10923if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10924  $as_echo_n "(cached) " >&6
10925else
10926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h.  */
10928#undef $ac_tr_decl
10929#define $ac_tr_decl 1
10930
10931#include "ansidecl.h"
10932#include "system.h"
10933#include <signal.h>
10934
10935
10936int
10937main ()
10938{
10939#ifndef $ac_func
10940char *(*pfn) = (char *(*)) $ac_func ;
10941#endif
10942  ;
10943  return 0;
10944}
10945_ACEOF
10946if ac_fn_c_try_compile "$LINENO"; then :
10947  eval "gcc_cv_have_decl_$ac_func=yes"
10948else
10949  eval "gcc_cv_have_decl_$ac_func=no"
10950fi
10951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952fi
10953
10954if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10956$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10957#define $ac_tr_decl 1
10958_ACEOF
10959
10960else
10961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10963#define $ac_tr_decl 0
10964_ACEOF
10965
10966fi
10967
10968done
10969
10970
10971# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10972# prototype.
10973ac_ext=cpp
10974ac_cpp='$CXXCPP $CPPFLAGS'
10975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10978
10979for ac_func in madvise
10980do
10981  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10983$as_echo_n "checking whether $ac_func is declared... " >&6; }
10984if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10985  $as_echo_n "(cached) " >&6
10986else
10987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h.  */
10989#undef $ac_tr_decl
10990#define $ac_tr_decl 1
10991
10992  #include "ansidecl.h"
10993  #include "system.h"
10994
10995
10996int
10997main ()
10998{
10999#ifndef $ac_func
11000char *(*pfn) = (char *(*)) $ac_func ;
11001#endif
11002  ;
11003  return 0;
11004}
11005_ACEOF
11006if ac_fn_cxx_try_compile "$LINENO"; then :
11007  eval "gcc_cv_have_decl_$ac_func=yes"
11008else
11009  eval "gcc_cv_have_decl_$ac_func=no"
11010fi
11011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012fi
11013
11014if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11016$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11017#define $ac_tr_decl 1
11018_ACEOF
11019
11020else
11021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11023#define $ac_tr_decl 0
11024_ACEOF
11025
11026fi
11027
11028done
11029
11030ac_ext=c
11031ac_cpp='$CPP $CPPFLAGS'
11032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11034ac_compiler_gnu=$ac_cv_c_compiler_gnu
11035
11036
11037# More time-related stuff.
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11039$as_echo_n "checking for struct tms... " >&6; }
11040if test "${ac_cv_struct_tms+set}" = set; then :
11041  $as_echo_n "(cached) " >&6
11042else
11043
11044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045/* end confdefs.h.  */
11046
11047#include "ansidecl.h"
11048#include "system.h"
11049#ifdef HAVE_SYS_TIMES_H
11050#include <sys/times.h>
11051#endif
11052
11053int
11054main ()
11055{
11056struct tms tms;
11057  ;
11058  return 0;
11059}
11060_ACEOF
11061if ac_fn_c_try_compile "$LINENO"; then :
11062  ac_cv_struct_tms=yes
11063else
11064  ac_cv_struct_tms=no
11065fi
11066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11069$as_echo "$ac_cv_struct_tms" >&6; }
11070if test $ac_cv_struct_tms = yes; then
11071
11072$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11073
11074fi
11075
11076# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11077# revisit after autoconf 2.50.
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11079$as_echo_n "checking for clock_t... " >&6; }
11080if test "${gcc_cv_type_clock_t+set}" = set; then :
11081  $as_echo_n "(cached) " >&6
11082else
11083
11084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085/* end confdefs.h.  */
11086
11087#include "ansidecl.h"
11088#include "system.h"
11089
11090int
11091main ()
11092{
11093clock_t x;
11094  ;
11095  return 0;
11096}
11097_ACEOF
11098if ac_fn_c_try_compile "$LINENO"; then :
11099  gcc_cv_type_clock_t=yes
11100else
11101  gcc_cv_type_clock_t=no
11102fi
11103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104fi
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11106$as_echo "$gcc_cv_type_clock_t" >&6; }
11107if test $gcc_cv_type_clock_t = yes; then
11108
11109$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11110
11111fi
11112
11113# Check if F_SETLKW is supported by fcntl.
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11115$as_echo_n "checking for F_SETLKW... " >&6; }
11116if test "${ac_cv_f_setlkw+set}" = set; then :
11117  $as_echo_n "(cached) " >&6
11118else
11119
11120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121/* end confdefs.h.  */
11122
11123#include <fcntl.h>
11124int
11125main ()
11126{
11127
11128struct flock fl;
11129fl.l_whence = 0;
11130fl.l_start = 0;
11131fl.l_len = 0;
11132fl.l_pid = 0;
11133return fcntl (1, F_SETLKW, &fl);
11134  ;
11135  return 0;
11136}
11137_ACEOF
11138if ac_fn_c_try_compile "$LINENO"; then :
11139  ac_cv_f_setlkw=yes
11140else
11141  ac_cv_f_setlkw=no
11142fi
11143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144fi
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11146$as_echo "$ac_cv_f_setlkw" >&6; }
11147if test $ac_cv_f_setlkw = yes; then
11148
11149$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11150
11151fi
11152
11153# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11154CFLAGS="$saved_CFLAGS"
11155CXXFLAGS="$saved_CXXFLAGS"
11156
11157# mkdir takes a single argument on some systems.
11158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11159$as_echo_n "checking if mkdir takes one argument... " >&6; }
11160if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11161  $as_echo_n "(cached) " >&6
11162else
11163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164/* end confdefs.h.  */
11165
11166#include <sys/types.h>
11167#ifdef HAVE_SYS_STAT_H
11168# include <sys/stat.h>
11169#endif
11170#ifdef HAVE_UNISTD_H
11171# include <unistd.h>
11172#endif
11173#ifdef HAVE_DIRECT_H
11174# include <direct.h>
11175#endif
11176int
11177main ()
11178{
11179mkdir ("foo", 0);
11180  ;
11181  return 0;
11182}
11183_ACEOF
11184if ac_fn_c_try_compile "$LINENO"; then :
11185  gcc_cv_mkdir_takes_one_arg=no
11186else
11187  gcc_cv_mkdir_takes_one_arg=yes
11188fi
11189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190fi
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11192$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11193if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11194
11195$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11196
11197fi
11198
11199
11200# File extensions
11201manext='.1'
11202objext='.o'
11203
11204
11205
11206# With Setjmp/Longjmp based exception handling.
11207# Check whether --enable-sjlj-exceptions was given.
11208if test "${enable_sjlj_exceptions+set}" = set; then :
11209  enableval=$enable_sjlj_exceptions; case $target in
11210  *-*-hpux10*)
11211    if test $enableval != yes; then
11212      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11213$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11214      enableval=yes
11215    fi
11216    ;;
11217esac
11218force_sjlj_exceptions=yes
11219else
11220  case $target in
11221  *-*-hpux10*)
11222    force_sjlj_exceptions=yes
11223    enableval=yes
11224    ;;
11225  lm32*-*-*)
11226     force_sjlj_exceptions=yes
11227     enableval=yes
11228     ;;
11229  *)
11230    force_sjlj_exceptions=no
11231    ;;
11232esac
11233fi
11234
11235if test $force_sjlj_exceptions = yes; then
11236  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11237
11238cat >>confdefs.h <<_ACEOF
11239#define CONFIG_SJLJ_EXCEPTIONS $sjlj
11240_ACEOF
11241
11242fi
11243
11244# --------------------------------------------------------
11245# Build, host, and target specific configuration fragments
11246# --------------------------------------------------------
11247
11248# Collect build-machine-specific information.
11249. ${srcdir}/config.build
11250
11251# Collect host-machine-specific information.
11252. ${srcdir}/config.host
11253
11254target_gtfiles=
11255
11256# Collect target-machine-specific information.
11257. ${srcdir}/config.gcc
11258
11259extra_objs="${host_extra_objs} ${extra_objs}"
11260extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11261
11262# Default the target-machine variables that were not explicitly set.
11263if test x"$tm_file" = x
11264then tm_file=$cpu_type/$cpu_type.h; fi
11265
11266if test x"$extra_headers" = x
11267then extra_headers=; fi
11268
11269if test x$md_file = x
11270then md_file=$cpu_type/$cpu_type.md; fi
11271
11272if test x$out_file = x
11273then out_file=$cpu_type/$cpu_type.c; fi
11274
11275if test x"$tmake_file" = x
11276then tmake_file=$cpu_type/t-$cpu_type
11277fi
11278
11279# Support --enable-initfini-array.
11280if test x$enable_initfini_array != xno; then
11281  tm_file="${tm_file} initfini-array.h"
11282fi
11283
11284if test x"$dwarf2" = xyes
11285then tm_file="$tm_file tm-dwarf2.h"
11286fi
11287
11288# Say what files are being used for the output code and MD file.
11289echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11290echo "Using \`$srcdir/config/$md_file' as machine description file."
11291
11292# If any of the xm_file variables contain nonexistent files, warn
11293# about them and drop them.
11294
11295bx=
11296for x in $build_xm_file; do
11297  if    test -f $srcdir/config/$x
11298  then      bx="$bx $x"
11299  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11300$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11301  fi
11302done
11303build_xm_file="$bx"
11304
11305hx=
11306for x in $host_xm_file; do
11307  if    test -f $srcdir/config/$x
11308  then      hx="$hx $x"
11309  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11310$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11311  fi
11312done
11313host_xm_file="$hx"
11314
11315tx=
11316for x in $xm_file; do
11317  if    test -f $srcdir/config/$x
11318  then      tx="$tx $x"
11319  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11320$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11321  fi
11322done
11323xm_file="$tx"
11324
11325count=a
11326for f in $tm_file; do
11327	count=${count}x
11328done
11329if test $count = ax; then
11330	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11331else
11332	echo "Using the following target machine macro files:"
11333	for f in $tm_file; do
11334		echo "	$srcdir/config/$f"
11335	done
11336fi
11337
11338if test x$use_long_long_for_widest_fast_int = xyes; then
11339
11340$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11341
11342fi
11343
11344gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11345
11346cat >>confdefs.h <<_ACEOF
11347#define HAVE_GNU_LD $gnu_ld_bool
11348_ACEOF
11349
11350
11351gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11352
11353cat >>confdefs.h <<_ACEOF
11354#define HAVE_GNU_AS $gnu_as_bool
11355_ACEOF
11356
11357
11358count=a
11359for f in $host_xm_file; do
11360	count=${count}x
11361done
11362if test $count = a; then
11363	:
11364elif test $count = ax; then
11365	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11366else
11367	echo "Using the following host machine macro files:"
11368	for f in $host_xm_file; do
11369		echo "	$srcdir/config/$f"
11370	done
11371fi
11372echo "Using ${out_host_hook_obj} for host machine hooks."
11373
11374if test "$host_xm_file" != "$build_xm_file"; then
11375	count=a
11376	for f in $build_xm_file; do
11377		count=${count}x
11378	done
11379	if test $count = a; then
11380		:
11381	elif test $count = ax; then
11382		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11383	else
11384		echo "Using the following build machine macro files:"
11385		for f in $build_xm_file; do
11386			echo "	$srcdir/config/$f"
11387		done
11388	fi
11389fi
11390
11391if test -n "$configured_native_system_header_dir"; then
11392  native_system_header_dir=$configured_native_system_header_dir
11393fi
11394NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11395
11396
11397case ${host} in
11398  powerpc*-*-darwin*)
11399    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11400$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11401if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11402  $as_echo_n "(cached) " >&6
11403else
11404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405/* end confdefs.h.  */
11406
11407#include <sys/cdefs.h>
11408#include <sys/signal.h>
11409#include <ucontext.h>
11410int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11411
11412_ACEOF
11413if ac_fn_c_try_compile "$LINENO"; then :
11414  gcc_cv_mcontext_underscores=no
11415else
11416  gcc_cv_mcontext_underscores=yes
11417fi
11418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419fi
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11421$as_echo "$gcc_cv_mcontext_underscores" >&6; }
11422      if test $gcc_cv_mcontext_underscores = yes; then
11423
11424$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11425
11426      fi
11427    ;;
11428esac
11429
11430# ---------
11431# Threading
11432# ---------
11433
11434# Check if a valid thread package
11435case ${enable_threads} in
11436  "" | no)
11437    # No threads
11438    target_thread_file='single'
11439    ;;
11440  yes)
11441    # default
11442    target_thread_file='single'
11443    ;;
11444  aix | dce | haiku | lynx | mipssde | posix | rtems | \
11445  single | tpf | vxworks | win32)
11446    target_thread_file=${enable_threads}
11447    ;;
11448  *)
11449    echo "${enable_threads} is an unknown thread package" 1>&2
11450    exit 1
11451    ;;
11452esac
11453
11454if test x${thread_file} = x; then
11455  # No thread file set by target-specific clauses in config.gcc,
11456  # so use file chosen by default logic above
11457  thread_file=${target_thread_file}
11458fi
11459
11460# --------
11461# UNSORTED
11462# --------
11463
11464use_cxa_atexit=no
11465if test x$enable___cxa_atexit = xyes || \
11466   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11467  if test x$host = x$target; then
11468    case $host in
11469      # mingw32 doesn't have __cxa_atexit but uses atexit registration
11470      # keyed to flag_use_cxa_atexit
11471      *-*-mingw32*)
11472	use_cxa_atexit=yes
11473	;;
11474      powerpc-ibm-aix*)
11475	use_cxa_atexit=yes
11476	;;
11477      *)
11478	ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11479if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11480  use_cxa_atexit=yes
11481else
11482  echo "__cxa_atexit can't be enabled on this target"
11483fi
11484
11485	;;
11486    esac
11487  else
11488    # We can't check for __cxa_atexit when building a cross, so assume
11489    # it is available
11490    use_cxa_atexit=yes
11491  fi
11492  if test x$use_cxa_atexit = xyes; then
11493
11494$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11495
11496  fi
11497fi
11498
11499# Look for a file containing extra machine modes.
11500if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11501  extra_modes_file='$(srcdir)'/config/${extra_modes}
11502
11503
11504cat >>confdefs.h <<_ACEOF
11505#define EXTRA_MODES_FILE "config/$extra_modes"
11506_ACEOF
11507
11508fi
11509
11510# Convert extra_options into a form suitable for Makefile use.
11511extra_opt_files=
11512all_opt_files=
11513for f in $extra_options; do
11514  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11515  all_opt_files="$all_opt_files $srcdir/config/$f"
11516done
11517
11518
11519# auto-host.h is the file containing items generated by autoconf and is
11520# the first file included by config.h.
11521# If host=build, it is correct to have bconfig include auto-host.h
11522# as well.  If host!=build, we are in error and need to do more
11523# work to find out the build config parameters.
11524if test x$host = x$build
11525then
11526	build_auto=auto-host.h
11527else
11528	# We create a subdir, then run autoconf in the subdir.
11529	# To prevent recursion we set host and build for the new
11530	# invocation of configure to the build for this invocation
11531	# of configure.
11532	tempdir=build.$$
11533	rm -rf $tempdir
11534	mkdir $tempdir
11535	cd $tempdir
11536	case ${srcdir} in
11537	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11538	*) realsrcdir=../${srcdir};;
11539	esac
11540	# Clearing GMPINC is necessary to prevent host headers being
11541	# used by the build compiler.  Defining GENERATOR_FILE stops
11542	# system.h from including gmp.h.
11543	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11544	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11545	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11546	GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11547	${realsrcdir}/configure \
11548		--enable-languages=${enable_languages-all} \
11549		--target=$target_alias --host=$build_alias --build=$build_alias
11550
11551	# We just finished tests for the build machine, so rename
11552	# the file auto-build.h in the gcc directory.
11553	mv auto-host.h ../auto-build.h
11554	cd ..
11555	rm -rf $tempdir
11556	build_auto=auto-build.h
11557fi
11558
11559
11560tm_file="${tm_file} defaults.h"
11561tm_p_file="${tm_p_file} tm-preds.h"
11562host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11563build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11564# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11565# put this back in temporarily.
11566xm_file="auto-host.h ansidecl.h ${xm_file}"
11567
11568# --------
11569# UNSORTED
11570# --------
11571
11572# Compile in configure arguments.
11573if test -f configargs.h ; then
11574	# Being re-configured.
11575	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11576	gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11577else
11578	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11579fi
11580
11581# Double all backslashes and backslash all quotes to turn
11582# gcc_config_arguments into a C string.
11583sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11584$gcc_config_arguments
11585EOF
11586gcc_config_arguments_str=`cat conftest.out`
11587rm -f conftest.out
11588
11589cat > configargs.h <<EOF
11590/* Generated automatically. */
11591static const char configuration_arguments[] = "$gcc_config_arguments_str";
11592static const char thread_model[] = "$thread_file";
11593
11594static const struct {
11595  const char *name, *value;
11596} configure_default_options[] = $configure_default_options;
11597EOF
11598
11599gcc_BASEVER=`cat $srcdir/BASE-VER`
11600gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11601gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11602if test -f $srcdir/REVISION ; then
11603	gcc_REVISION=`cat $srcdir/REVISION`
11604else
11605        gcc_REVISION=""
11606fi
11607cat > plugin-version.h <<EOF
11608#include "configargs.h"
11609
11610#define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11611#define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11612#define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11613#define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11614
11615static char basever[] = "$gcc_BASEVER";
11616static char datestamp[] = "$gcc_DATESTAMP";
11617static char devphase[] = "$gcc_DEVPHASE";
11618static char revision[] = "$gcc_REVISION";
11619
11620/* FIXME plugins: We should make the version information more precise.
11621   One way to do is to add a checksum. */
11622
11623static struct plugin_gcc_version gcc_version = {basever, datestamp,
11624						devphase, revision,
11625						configuration_arguments};
11626EOF
11627
11628# Internationalization
11629# If we haven't got the data from the intl directory,
11630# assume NLS is disabled.
11631USE_NLS=no
11632LIBINTL=
11633LIBINTL_DEP=
11634INCINTL=
11635XGETTEXT=
11636GMSGFMT=
11637POSUB=
11638
11639if test -f  ../intl/config.intl; then
11640  .  ../intl/config.intl
11641fi
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11643$as_echo_n "checking whether NLS is requested... " >&6; }
11644if test x"$USE_NLS" != xyes; then
11645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
11647else
11648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649$as_echo "yes" >&6; }
11650
11651$as_echo "#define ENABLE_NLS 1" >>confdefs.h
11652
11653
11654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11655$as_echo_n "checking for catalogs to be installed... " >&6; }
11656  # Look for .po and .gmo files in the source directory.
11657  CATALOGS=
11658  XLINGUAS=
11659  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11660    # If there aren't any .gmo files the shell will give us the
11661    # literal string "../path/to/srcdir/po/*.gmo" which has to be
11662    # weeded out.
11663    case "$cat" in *\**)
11664      continue;;
11665    esac
11666    # The quadruple backslash is collapsed to a double backslash
11667    # by the backticks, then collapsed again by the double quotes,
11668    # leaving us with one backslash in the sed expression (right
11669    # before the dot that mustn't act as a wildcard).
11670    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11671    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11672    # The user is allowed to set LINGUAS to a list of languages to
11673    # install catalogs for.  If it's empty that means "all of them."
11674    if test "x$LINGUAS" = x; then
11675      CATALOGS="$CATALOGS $cat"
11676      XLINGUAS="$XLINGUAS $lang"
11677    else
11678      case "$LINGUAS" in *$lang*)
11679        CATALOGS="$CATALOGS $cat"
11680        XLINGUAS="$XLINGUAS $lang"
11681        ;;
11682      esac
11683    fi
11684  done
11685  LINGUAS="$XLINGUAS"
11686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11687$as_echo "$LINGUAS" >&6; }
11688
11689
11690    DATADIRNAME=share
11691
11692  INSTOBJEXT=.mo
11693
11694  GENCAT=gencat
11695
11696  CATOBJEXT=.gmo
11697
11698fi
11699
11700# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11701# -liconv on the link line twice.
11702case "$LIBINTL" in *$LIBICONV*)
11703	LIBICONV= ;;
11704esac
11705
11706# Check whether --enable-secureplt was given.
11707if test "${enable_secureplt+set}" = set; then :
11708  enableval=$enable_secureplt;
11709fi
11710
11711
11712# Check whether --enable-leading-mingw64-underscores was given.
11713if test "${enable_leading_mingw64_underscores+set}" = set; then :
11714  enableval=$enable_leading_mingw64_underscores;
11715fi
11716
11717if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11718
11719$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11720
11721fi
11722
11723# Check whether --enable-cld was given.
11724if test "${enable_cld+set}" = set; then :
11725  enableval=$enable_cld;
11726else
11727  enable_cld=no
11728fi
11729
11730
11731# Check whether --enable-frame-pointer was given.
11732if test "${enable_frame_pointer+set}" = set; then :
11733  enableval=$enable_frame_pointer;
11734else
11735
11736case $target_os in
11737linux* | darwin[8912]*)
11738  # Enable -fomit-frame-pointer by default for Linux and Darwin with
11739  # DWARF2.
11740  enable_frame_pointer=no
11741  ;;
11742*)
11743  enable_frame_pointer=yes
11744  ;;
11745esac
11746
11747fi
11748
11749
11750# Windows32 Registry support for specifying GCC installation paths.
11751# Check whether --enable-win32-registry was given.
11752if test "${enable_win32_registry+set}" = set; then :
11753  enableval=$enable_win32_registry;
11754fi
11755
11756
11757case $host_os in
11758  win32 | pe | cygwin* | mingw32* | uwin*)
11759    if test "x$enable_win32_registry" != xno; then
11760      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11761$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11762if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11763  $as_echo_n "(cached) " >&6
11764else
11765  ac_func_search_save_LIBS=$LIBS
11766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767/* end confdefs.h.  */
11768
11769/* Override any GCC internal prototype to avoid an error.
11770   Use char because int might match the return type of a GCC
11771   builtin and then its argument prototype would still apply.  */
11772#ifdef __cplusplus
11773extern "C"
11774#endif
11775char RegOpenKeyExA ();
11776int
11777main ()
11778{
11779return RegOpenKeyExA ();
11780  ;
11781  return 0;
11782}
11783_ACEOF
11784for ac_lib in '' advapi32; do
11785  if test -z "$ac_lib"; then
11786    ac_res="none required"
11787  else
11788    ac_res=-l$ac_lib
11789    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11790  fi
11791  if ac_fn_c_try_link "$LINENO"; then :
11792  ac_cv_search_RegOpenKeyExA=$ac_res
11793fi
11794rm -f core conftest.err conftest.$ac_objext \
11795    conftest$ac_exeext
11796  if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11797  break
11798fi
11799done
11800if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11801
11802else
11803  ac_cv_search_RegOpenKeyExA=no
11804fi
11805rm conftest.$ac_ext
11806LIBS=$ac_func_search_save_LIBS
11807fi
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11809$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11810ac_res=$ac_cv_search_RegOpenKeyExA
11811if test "$ac_res" != no; then :
11812  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11813
11814else
11815  enable_win32_registry=no
11816fi
11817
11818    fi
11819
11820    if test "x$enable_win32_registry" != xno; then
11821
11822$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11823
11824
11825      if test "x$enable_win32_registry" != xyes \
11826         && test "x$enable_win32_registry" != x; then
11827
11828cat >>confdefs.h <<_ACEOF
11829#define WIN32_REGISTRY_KEY "$enable_win32_registry"
11830_ACEOF
11831
11832      fi
11833    fi
11834  ;;
11835esac
11836
11837# Get an absolute path to the GCC top-level source directory
11838holddir=`${PWDCMD-pwd}`
11839cd $srcdir
11840topdir=`${PWDCMD-pwd}`
11841cd $holddir
11842
11843# Conditionalize the makefile for this host machine.
11844xmake_file=
11845for f in ${host_xmake_file}
11846do
11847	if test -f ${srcdir}/config/$f
11848	then
11849		xmake_file="${xmake_file} \$(srcdir)/config/$f"
11850	fi
11851done
11852
11853# Conditionalize the makefile for this target machine.
11854tmake_file_=
11855for f in ${tmake_file}
11856do
11857	if test -f ${srcdir}/config/$f
11858	then
11859		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11860	fi
11861done
11862tmake_file="${tmake_file_}"
11863
11864out_object_file=`basename $out_file .c`.o
11865common_out_object_file=`basename $common_out_file .c`.o
11866
11867tm_file_list="options.h"
11868tm_include_list="options.h insn-constants.h"
11869for f in $tm_file; do
11870  case $f in
11871    ./* )
11872       f=`echo $f | sed 's/^..//'`
11873       tm_file_list="${tm_file_list} $f"
11874       tm_include_list="${tm_include_list} $f"
11875       ;;
11876    defaults.h )
11877       tm_file_list="${tm_file_list} \$(srcdir)/$f"
11878       tm_include_list="${tm_include_list} $f"
11879       ;;
11880    * )
11881       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11882       tm_include_list="${tm_include_list} config/$f"
11883       ;;
11884  esac
11885done
11886
11887tm_p_file_list=
11888tm_p_include_list=
11889for f in $tm_p_file; do
11890  case $f in
11891    tm-preds.h )
11892       tm_p_file_list="${tm_p_file_list} $f"
11893       tm_p_include_list="${tm_p_include_list} $f"
11894       ;;
11895    * )
11896       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11897       tm_p_include_list="${tm_p_include_list} config/$f"
11898  esac
11899done
11900
11901xm_file_list=
11902xm_include_list=
11903for f in $xm_file; do
11904  case $f in
11905    ansidecl.h )
11906       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11907       xm_include_list="${xm_include_list} $f"
11908       ;;
11909    auto-host.h )
11910       xm_file_list="${xm_file_list} $f"
11911       xm_include_list="${xm_include_list} $f"
11912       ;;
11913    * )
11914       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11915       xm_include_list="${xm_include_list} config/$f"
11916       ;;
11917  esac
11918done
11919
11920host_xm_file_list=
11921host_xm_include_list=
11922for f in $host_xm_file; do
11923  case $f in
11924    ansidecl.h )
11925       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11926       host_xm_include_list="${host_xm_include_list} $f"
11927       ;;
11928    auto-host.h )
11929       host_xm_file_list="${host_xm_file_list} $f"
11930       host_xm_include_list="${host_xm_include_list} $f"
11931       ;;
11932    * )
11933       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11934       host_xm_include_list="${host_xm_include_list} config/$f"
11935       ;;
11936  esac
11937done
11938
11939build_xm_file_list=
11940for f in $build_xm_file; do
11941  case $f in
11942    ansidecl.h )
11943       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11944       build_xm_include_list="${build_xm_include_list} $f"
11945       ;;
11946    auto-build.h | auto-host.h )
11947       build_xm_file_list="${build_xm_file_list} $f"
11948       build_xm_include_list="${build_xm_include_list} $f"
11949       ;;
11950    * )
11951       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11952       build_xm_include_list="${build_xm_include_list} config/$f"
11953       ;;
11954  esac
11955done
11956
11957# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11958# cross-compiler which does not use the native headers and libraries.
11959# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11960CROSS=
11961ALL=all.internal
11962SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11963
11964if test "x$with_build_sysroot" != x; then
11965  build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11966else
11967  # This value is used, even on a native system, because
11968  # CROSS_SYSTEM_HEADER_DIR is just
11969  # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11970  build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11971fi
11972
11973if test x$host != x$target
11974then
11975	CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11976	ALL=all.cross
11977	SYSTEM_HEADER_DIR=$build_system_header_dir
11978	case "$host","$target" in
11979	# Darwin crosses can use the host system's libraries and headers,
11980	# because of the fat library support.  Of course, it must be the
11981	# same version of Darwin on both sides.  Allow the user to
11982	# just say --target=foo-darwin without a version number to mean
11983	# "the version on this system".
11984	    *-*-darwin*,*-*-darwin*)
11985		hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11986		targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11987		if test $hostos = $targetos -o $targetos = darwin ; then
11988		    CROSS=
11989		    SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11990		    with_headers=yes
11991		fi
11992		;;
11993
11994	    i?86-*-*,x86_64-*-* \
11995	    | powerpc*-*-*,powerpc64*-*-*)
11996		CROSS="$CROSS -DNATIVE_CROSS" ;;
11997	esac
11998
11999	case $target in
12000		*-*-mingw*)
12001			if test "x$with_headers" = x; then
12002				with_headers=yes
12003			fi
12004			;;
12005		*)
12006			;;
12007	esac
12008elif test "x$TARGET_SYSTEM_ROOT" != x; then
12009        SYSTEM_HEADER_DIR=$build_system_header_dir
12010fi
12011
12012if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12013  if test "x$with_headers" != x; then
12014    target_header_dir=$with_headers
12015  elif test "x$with_sysroot" = x; then
12016    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12017  elif test "x$with_build_sysroot" != "x"; then
12018    target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12019  elif test "x$with_sysroot" = xyes; then
12020    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12021  else
12022    target_header_dir="${with_sysroot}${native_system_header_dir}"
12023  fi
12024else
12025  target_header_dir=${native_system_header_dir}
12026fi
12027
12028# If this is a cross-compiler that does not
12029# have its own set of headers then define
12030# inhibit_libc
12031
12032# If this is using newlib, without having the headers available now,
12033# then define inhibit_libc in LIBGCC2_CFLAGS.
12034# This prevents libgcc2 from containing any code which requires libc
12035# support.
12036: ${inhibit_libc=false}
12037if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12038       test x$with_newlib = xyes ; } &&
12039     { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12040       inhibit_libc=true
12041fi
12042
12043
12044# When building gcc with a cross-compiler, we need to adjust things so
12045# that the generator programs are still built with the native compiler.
12046# Also, we cannot run fixincludes.
12047
12048# These are the normal (build=host) settings:
12049CC_FOR_BUILD='$(CC)'
12050CXX_FOR_BUILD='$(CXX)'
12051BUILD_CFLAGS='$(ALL_CFLAGS)'
12052BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12053BUILD_LDFLAGS='$(LDFLAGS)'
12054STMP_FIXINC=stmp-fixinc
12055
12056# And these apply if build != host, or we are generating coverage data
12057if test x$build != x$host || test "x$coverage_flags" != x
12058then
12059    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12060    BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12061    BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12062fi
12063
12064# Expand extra_headers to include complete path.
12065# This substitutes for lots of t-* files.
12066extra_headers_list=
12067# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12068for file in ${extra_headers} ; do
12069  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12070done
12071
12072# If use_gcc_tgmath is set, append ginclude/tgmath.h.
12073if test x"$use_gcc_tgmath" = xyes
12074then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12075fi
12076
12077# Define collect2 in Makefile.
12078case $host_can_use_collect2 in
12079  no) collect2= ;;
12080  *) collect2='collect2$(exeext)' ;;
12081esac
12082
12083
12084# Add a definition of USE_COLLECT2 if system wants one.
12085case $use_collect2 in
12086  no) use_collect2= ;;
12087  "") ;;
12088  *)
12089    host_xm_defines="${host_xm_defines} USE_COLLECT2"
12090    xm_defines="${xm_defines} USE_COLLECT2"
12091    case $host_can_use_collect2 in
12092      no)
12093        as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12094        ;;
12095    esac
12096    ;;
12097esac
12098
12099
12100cat >>confdefs.h <<_ACEOF
12101#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12102_ACEOF
12103
12104
12105# ---------------------------
12106# Assembler & linker features
12107# ---------------------------
12108
12109# During stage 2, ld is actually gcc/collect-ld, which is a small script to
12110# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12111# However when ld-new is first executed from the build tree, libtool will
12112# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12113# to the build tree.  While doing this we need to use the previous-stage
12114# linker, or we have an infinite loop.  The presence of a shell script as
12115# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12116# the gcc/collect-ld script.  So we need to know how libtool works, or
12117# exec-tool will fail.
12118
12119
12120case `pwd` in
12121  *\ * | *\	*)
12122    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12123$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12124esac
12125
12126
12127
12128macro_version='2.2.7a'
12129macro_revision='1.3134'
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143ltmain="$ac_aux_dir/ltmain.sh"
12144
12145# Backslashify metacharacters that are still active within
12146# double-quoted strings.
12147sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12148
12149# Same as above, but do not quote variable references.
12150double_quote_subst='s/\(["`\\]\)/\\\1/g'
12151
12152# Sed substitution to delay expansion of an escaped shell variable in a
12153# double_quote_subst'ed string.
12154delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12155
12156# Sed substitution to delay expansion of an escaped single quote.
12157delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12158
12159# Sed substitution to avoid accidental globbing in evaled expressions
12160no_glob_subst='s/\*/\\\*/g'
12161
12162ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12163ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12164ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12165
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12167$as_echo_n "checking how to print strings... " >&6; }
12168# Test print first, because it will be a builtin if present.
12169if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12170   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12171  ECHO='print -r --'
12172elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12173  ECHO='printf %s\n'
12174else
12175  # Use this function as a fallback that always works.
12176  func_fallback_echo ()
12177  {
12178    eval 'cat <<_LTECHO_EOF
12179$1
12180_LTECHO_EOF'
12181  }
12182  ECHO='func_fallback_echo'
12183fi
12184
12185# func_echo_all arg...
12186# Invoke $ECHO with all args, space-separated.
12187func_echo_all ()
12188{
12189    $ECHO ""
12190}
12191
12192case "$ECHO" in
12193  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12194$as_echo "printf" >&6; } ;;
12195  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12196$as_echo "print -r" >&6; } ;;
12197  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12198$as_echo "cat" >&6; } ;;
12199esac
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12215$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12216if test "${ac_cv_path_SED+set}" = set; then :
12217  $as_echo_n "(cached) " >&6
12218else
12219            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12220     for ac_i in 1 2 3 4 5 6 7; do
12221       ac_script="$ac_script$as_nl$ac_script"
12222     done
12223     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12224     { ac_script=; unset ac_script;}
12225     if test -z "$SED"; then
12226  ac_path_SED_found=false
12227  # Loop through the user's path and test for each of PROGNAME-LIST
12228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229for as_dir in $PATH
12230do
12231  IFS=$as_save_IFS
12232  test -z "$as_dir" && as_dir=.
12233    for ac_prog in sed gsed; do
12234    for ac_exec_ext in '' $ac_executable_extensions; do
12235      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12236      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12237# Check for GNU ac_path_SED and select it if it is found.
12238  # Check for GNU $ac_path_SED
12239case `"$ac_path_SED" --version 2>&1` in
12240*GNU*)
12241  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12242*)
12243  ac_count=0
12244  $as_echo_n 0123456789 >"conftest.in"
12245  while :
12246  do
12247    cat "conftest.in" "conftest.in" >"conftest.tmp"
12248    mv "conftest.tmp" "conftest.in"
12249    cp "conftest.in" "conftest.nl"
12250    $as_echo '' >> "conftest.nl"
12251    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12252    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12253    as_fn_arith $ac_count + 1 && ac_count=$as_val
12254    if test $ac_count -gt ${ac_path_SED_max-0}; then
12255      # Best one so far, save it but keep looking for a better one
12256      ac_cv_path_SED="$ac_path_SED"
12257      ac_path_SED_max=$ac_count
12258    fi
12259    # 10*(2^10) chars as input seems more than enough
12260    test $ac_count -gt 10 && break
12261  done
12262  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12263esac
12264
12265      $ac_path_SED_found && break 3
12266    done
12267  done
12268  done
12269IFS=$as_save_IFS
12270  if test -z "$ac_cv_path_SED"; then
12271    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12272  fi
12273else
12274  ac_cv_path_SED=$SED
12275fi
12276
12277fi
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12279$as_echo "$ac_cv_path_SED" >&6; }
12280 SED="$ac_cv_path_SED"
12281  rm -f conftest.sed
12282
12283test -z "$SED" && SED=sed
12284Xsed="$SED -e 1s/^X//"
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12297$as_echo_n "checking for fgrep... " >&6; }
12298if test "${ac_cv_path_FGREP+set}" = set; then :
12299  $as_echo_n "(cached) " >&6
12300else
12301  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12302   then ac_cv_path_FGREP="$GREP -F"
12303   else
12304     if test -z "$FGREP"; then
12305  ac_path_FGREP_found=false
12306  # Loop through the user's path and test for each of PROGNAME-LIST
12307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12309do
12310  IFS=$as_save_IFS
12311  test -z "$as_dir" && as_dir=.
12312    for ac_prog in fgrep; do
12313    for ac_exec_ext in '' $ac_executable_extensions; do
12314      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12315      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12316# Check for GNU ac_path_FGREP and select it if it is found.
12317  # Check for GNU $ac_path_FGREP
12318case `"$ac_path_FGREP" --version 2>&1` in
12319*GNU*)
12320  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12321*)
12322  ac_count=0
12323  $as_echo_n 0123456789 >"conftest.in"
12324  while :
12325  do
12326    cat "conftest.in" "conftest.in" >"conftest.tmp"
12327    mv "conftest.tmp" "conftest.in"
12328    cp "conftest.in" "conftest.nl"
12329    $as_echo 'FGREP' >> "conftest.nl"
12330    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12331    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12332    as_fn_arith $ac_count + 1 && ac_count=$as_val
12333    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12334      # Best one so far, save it but keep looking for a better one
12335      ac_cv_path_FGREP="$ac_path_FGREP"
12336      ac_path_FGREP_max=$ac_count
12337    fi
12338    # 10*(2^10) chars as input seems more than enough
12339    test $ac_count -gt 10 && break
12340  done
12341  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12342esac
12343
12344      $ac_path_FGREP_found && break 3
12345    done
12346  done
12347  done
12348IFS=$as_save_IFS
12349  if test -z "$ac_cv_path_FGREP"; then
12350    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12351  fi
12352else
12353  ac_cv_path_FGREP=$FGREP
12354fi
12355
12356   fi
12357fi
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12359$as_echo "$ac_cv_path_FGREP" >&6; }
12360 FGREP="$ac_cv_path_FGREP"
12361
12362
12363test -z "$GREP" && GREP=grep
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383# Check whether --with-gnu-ld was given.
12384if test "${with_gnu_ld+set}" = set; then :
12385  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12386else
12387  with_gnu_ld=no
12388fi
12389
12390ac_prog=ld
12391if test "$GCC" = yes; then
12392  # Check if gcc -print-prog-name=ld gives a path.
12393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12394$as_echo_n "checking for ld used by $CC... " >&6; }
12395  case $host in
12396  *-*-mingw*)
12397    # gcc leaves a trailing carriage return which upsets mingw
12398    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12399  *)
12400    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12401  esac
12402  case $ac_prog in
12403    # Accept absolute paths.
12404    [\\/]* | ?:[\\/]*)
12405      re_direlt='/[^/][^/]*/\.\./'
12406      # Canonicalize the pathname of ld
12407      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12408      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12409	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12410      done
12411      test -z "$LD" && LD="$ac_prog"
12412      ;;
12413  "")
12414    # If it fails, then pretend we aren't using GCC.
12415    ac_prog=ld
12416    ;;
12417  *)
12418    # If it is relative, then search for the first ld in PATH.
12419    with_gnu_ld=unknown
12420    ;;
12421  esac
12422elif test "$with_gnu_ld" = yes; then
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12424$as_echo_n "checking for GNU ld... " >&6; }
12425else
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12427$as_echo_n "checking for non-GNU ld... " >&6; }
12428fi
12429if test "${lt_cv_path_LD+set}" = set; then :
12430  $as_echo_n "(cached) " >&6
12431else
12432  if test -z "$LD"; then
12433  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12434  for ac_dir in $PATH; do
12435    IFS="$lt_save_ifs"
12436    test -z "$ac_dir" && ac_dir=.
12437    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12438      lt_cv_path_LD="$ac_dir/$ac_prog"
12439      # Check to see if the program is GNU ld.  I'd rather use --version,
12440      # but apparently some variants of GNU ld only accept -v.
12441      # Break only if it was the GNU/non-GNU ld that we prefer.
12442      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12443      *GNU* | *'with BFD'*)
12444	test "$with_gnu_ld" != no && break
12445	;;
12446      *)
12447	test "$with_gnu_ld" != yes && break
12448	;;
12449      esac
12450    fi
12451  done
12452  IFS="$lt_save_ifs"
12453else
12454  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12455fi
12456fi
12457
12458LD="$lt_cv_path_LD"
12459if test -n "$LD"; then
12460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12461$as_echo "$LD" >&6; }
12462else
12463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
12465fi
12466test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12468$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12469if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12470  $as_echo_n "(cached) " >&6
12471else
12472  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12473case `$LD -v 2>&1 </dev/null` in
12474*GNU* | *'with BFD'*)
12475  lt_cv_prog_gnu_ld=yes
12476  ;;
12477*)
12478  lt_cv_prog_gnu_ld=no
12479  ;;
12480esac
12481fi
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12483$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12484with_gnu_ld=$lt_cv_prog_gnu_ld
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12495$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12496if test "${lt_cv_path_NM+set}" = set; then :
12497  $as_echo_n "(cached) " >&6
12498else
12499  if test -n "$NM"; then
12500  # Let the user override the test.
12501  lt_cv_path_NM="$NM"
12502else
12503  lt_nm_to_check="${ac_tool_prefix}nm"
12504  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12505    lt_nm_to_check="$lt_nm_to_check nm"
12506  fi
12507  for lt_tmp_nm in $lt_nm_to_check; do
12508    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12509    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12510      IFS="$lt_save_ifs"
12511      test -z "$ac_dir" && ac_dir=.
12512      tmp_nm="$ac_dir/$lt_tmp_nm"
12513      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12514	# Check to see if the nm accepts a BSD-compat flag.
12515	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
12516	#   nm: unknown option "B" ignored
12517	# Tru64's nm complains that /dev/null is an invalid object file
12518	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12519	*/dev/null* | *'Invalid file or object type'*)
12520	  lt_cv_path_NM="$tmp_nm -B"
12521	  break
12522	  ;;
12523	*)
12524	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12525	  */dev/null*)
12526	    lt_cv_path_NM="$tmp_nm -p"
12527	    break
12528	    ;;
12529	  *)
12530	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12531	    continue # so that we can try to find one that supports BSD flags
12532	    ;;
12533	  esac
12534	  ;;
12535	esac
12536      fi
12537    done
12538    IFS="$lt_save_ifs"
12539  done
12540  : ${lt_cv_path_NM=no}
12541fi
12542fi
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12544$as_echo "$lt_cv_path_NM" >&6; }
12545if test "$lt_cv_path_NM" != "no"; then
12546  NM="$lt_cv_path_NM"
12547else
12548  # Didn't find any BSD compatible name lister, look for dumpbin.
12549  if test -n "$DUMPBIN"; then :
12550    # Let the user override the test.
12551  else
12552    if test -n "$ac_tool_prefix"; then
12553  for ac_prog in dumpbin "link -dump"
12554  do
12555    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558$as_echo_n "checking for $ac_word... " >&6; }
12559if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12560  $as_echo_n "(cached) " >&6
12561else
12562  if test -n "$DUMPBIN"; then
12563  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12564else
12565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566for as_dir in $PATH
12567do
12568  IFS=$as_save_IFS
12569  test -z "$as_dir" && as_dir=.
12570    for ac_exec_ext in '' $ac_executable_extensions; do
12571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574    break 2
12575  fi
12576done
12577  done
12578IFS=$as_save_IFS
12579
12580fi
12581fi
12582DUMPBIN=$ac_cv_prog_DUMPBIN
12583if test -n "$DUMPBIN"; then
12584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12585$as_echo "$DUMPBIN" >&6; }
12586else
12587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588$as_echo "no" >&6; }
12589fi
12590
12591
12592    test -n "$DUMPBIN" && break
12593  done
12594fi
12595if test -z "$DUMPBIN"; then
12596  ac_ct_DUMPBIN=$DUMPBIN
12597  for ac_prog in dumpbin "link -dump"
12598do
12599  # Extract the first word of "$ac_prog", so it can be a program name with args.
12600set dummy $ac_prog; ac_word=$2
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602$as_echo_n "checking for $ac_word... " >&6; }
12603if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12604  $as_echo_n "(cached) " >&6
12605else
12606  if test -n "$ac_ct_DUMPBIN"; then
12607  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12608else
12609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610for as_dir in $PATH
12611do
12612  IFS=$as_save_IFS
12613  test -z "$as_dir" && as_dir=.
12614    for ac_exec_ext in '' $ac_executable_extensions; do
12615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12616    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618    break 2
12619  fi
12620done
12621  done
12622IFS=$as_save_IFS
12623
12624fi
12625fi
12626ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12627if test -n "$ac_ct_DUMPBIN"; then
12628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12629$as_echo "$ac_ct_DUMPBIN" >&6; }
12630else
12631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
12633fi
12634
12635
12636  test -n "$ac_ct_DUMPBIN" && break
12637done
12638
12639  if test "x$ac_ct_DUMPBIN" = x; then
12640    DUMPBIN=":"
12641  else
12642    case $cross_compiling:$ac_tool_warned in
12643yes:)
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12646ac_tool_warned=yes ;;
12647esac
12648    DUMPBIN=$ac_ct_DUMPBIN
12649  fi
12650fi
12651
12652    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12653    *COFF*)
12654      DUMPBIN="$DUMPBIN -symbols"
12655      ;;
12656    *)
12657      DUMPBIN=:
12658      ;;
12659    esac
12660  fi
12661
12662  if test "$DUMPBIN" != ":"; then
12663    NM="$DUMPBIN"
12664  fi
12665fi
12666test -z "$NM" && NM=nm
12667
12668
12669
12670
12671
12672
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12674$as_echo_n "checking the name lister ($NM) interface... " >&6; }
12675if test "${lt_cv_nm_interface+set}" = set; then :
12676  $as_echo_n "(cached) " >&6
12677else
12678  lt_cv_nm_interface="BSD nm"
12679  echo "int some_variable = 0;" > conftest.$ac_ext
12680  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12681  (eval "$ac_compile" 2>conftest.err)
12682  cat conftest.err >&5
12683  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12684  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12685  cat conftest.err >&5
12686  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12687  cat conftest.out >&5
12688  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12689    lt_cv_nm_interface="MS dumpbin"
12690  fi
12691  rm -f conftest*
12692fi
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12694$as_echo "$lt_cv_nm_interface" >&6; }
12695
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12697$as_echo_n "checking whether ln -s works... " >&6; }
12698LN_S=$as_ln_s
12699if test "$LN_S" = "ln -s"; then
12700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12701$as_echo "yes" >&6; }
12702else
12703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12704$as_echo "no, using $LN_S" >&6; }
12705fi
12706
12707# find the maximum length of command line arguments
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12709$as_echo_n "checking the maximum length of command line arguments... " >&6; }
12710if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12711  $as_echo_n "(cached) " >&6
12712else
12713    i=0
12714  teststring="ABCD"
12715
12716  case $build_os in
12717  msdosdjgpp*)
12718    # On DJGPP, this test can blow up pretty badly due to problems in libc
12719    # (any single argument exceeding 2000 bytes causes a buffer overrun
12720    # during glob expansion).  Even if it were fixed, the result of this
12721    # check would be larger than it should be.
12722    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12723    ;;
12724
12725  gnu*)
12726    # Under GNU Hurd, this test is not required because there is
12727    # no limit to the length of command line arguments.
12728    # Libtool will interpret -1 as no limit whatsoever
12729    lt_cv_sys_max_cmd_len=-1;
12730    ;;
12731
12732  cygwin* | mingw* | cegcc*)
12733    # On Win9x/ME, this test blows up -- it succeeds, but takes
12734    # about 5 minutes as the teststring grows exponentially.
12735    # Worse, since 9x/ME are not pre-emptively multitasking,
12736    # you end up with a "frozen" computer, even though with patience
12737    # the test eventually succeeds (with a max line length of 256k).
12738    # Instead, let's just punt: use the minimum linelength reported by
12739    # all of the supported platforms: 8192 (on NT/2K/XP).
12740    lt_cv_sys_max_cmd_len=8192;
12741    ;;
12742
12743  mint*)
12744    # On MiNT this can take a long time and run out of memory.
12745    lt_cv_sys_max_cmd_len=8192;
12746    ;;
12747
12748  amigaos*)
12749    # On AmigaOS with pdksh, this test takes hours, literally.
12750    # So we just punt and use a minimum line length of 8192.
12751    lt_cv_sys_max_cmd_len=8192;
12752    ;;
12753
12754  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12755    # This has been around since 386BSD, at least.  Likely further.
12756    if test -x /sbin/sysctl; then
12757      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12758    elif test -x /usr/sbin/sysctl; then
12759      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12760    else
12761      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12762    fi
12763    # And add a safety zone
12764    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12765    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12766    ;;
12767
12768  interix*)
12769    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12770    lt_cv_sys_max_cmd_len=196608
12771    ;;
12772
12773  osf*)
12774    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12775    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12776    # nice to cause kernel panics so lets avoid the loop below.
12777    # First set a reasonable default.
12778    lt_cv_sys_max_cmd_len=16384
12779    #
12780    if test -x /sbin/sysconfig; then
12781      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12782        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12783      esac
12784    fi
12785    ;;
12786  sco3.2v5*)
12787    lt_cv_sys_max_cmd_len=102400
12788    ;;
12789  sysv5* | sco5v6* | sysv4.2uw2*)
12790    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12791    if test -n "$kargmax"; then
12792      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
12793    else
12794      lt_cv_sys_max_cmd_len=32768
12795    fi
12796    ;;
12797  *)
12798    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12799    if test -n "$lt_cv_sys_max_cmd_len"; then
12800      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12801      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12802    else
12803      # Make teststring a little bigger before we do anything with it.
12804      # a 1K string should be a reasonable start.
12805      for i in 1 2 3 4 5 6 7 8 ; do
12806        teststring=$teststring$teststring
12807      done
12808      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12809      # If test is not a shell built-in, we'll probably end up computing a
12810      # maximum length that is only half of the actual maximum length, but
12811      # we can't tell.
12812      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12813	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12814	      test $i != 17 # 1/2 MB should be enough
12815      do
12816        i=`expr $i + 1`
12817        teststring=$teststring$teststring
12818      done
12819      # Only check the string length outside the loop.
12820      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12821      teststring=
12822      # Add a significant safety factor because C++ compilers can tack on
12823      # massive amounts of additional arguments before passing them to the
12824      # linker.  It appears as though 1/2 is a usable value.
12825      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12826    fi
12827    ;;
12828  esac
12829
12830fi
12831
12832if test -n $lt_cv_sys_max_cmd_len ; then
12833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12834$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12835else
12836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12837$as_echo "none" >&6; }
12838fi
12839max_cmd_len=$lt_cv_sys_max_cmd_len
12840
12841
12842
12843
12844
12845
12846: ${CP="cp -f"}
12847: ${MV="mv -f"}
12848: ${RM="rm -f"}
12849
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12851$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12852# Try some XSI features
12853xsi_shell=no
12854( _lt_dummy="a/b/c"
12855  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12856      = c,a/b,, \
12857    && eval 'test $(( 1 + 1 )) -eq 2 \
12858    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12859  && xsi_shell=yes
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12861$as_echo "$xsi_shell" >&6; }
12862
12863
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12865$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12866lt_shell_append=no
12867( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12868    >/dev/null 2>&1 \
12869  && lt_shell_append=yes
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12871$as_echo "$lt_shell_append" >&6; }
12872
12873
12874if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12875  lt_unset=unset
12876else
12877  lt_unset=false
12878fi
12879
12880
12881
12882
12883
12884# test EBCDIC or ASCII
12885case `echo X|tr X '\101'` in
12886 A) # ASCII based system
12887    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12888  lt_SP2NL='tr \040 \012'
12889  lt_NL2SP='tr \015\012 \040\040'
12890  ;;
12891 *) # EBCDIC based system
12892  lt_SP2NL='tr \100 \n'
12893  lt_NL2SP='tr \r\n \100\100'
12894  ;;
12895esac
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12906$as_echo_n "checking for $LD option to reload object files... " >&6; }
12907if test "${lt_cv_ld_reload_flag+set}" = set; then :
12908  $as_echo_n "(cached) " >&6
12909else
12910  lt_cv_ld_reload_flag='-r'
12911fi
12912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12913$as_echo "$lt_cv_ld_reload_flag" >&6; }
12914reload_flag=$lt_cv_ld_reload_flag
12915case $reload_flag in
12916"" | " "*) ;;
12917*) reload_flag=" $reload_flag" ;;
12918esac
12919reload_cmds='$LD$reload_flag -o $output$reload_objs'
12920case $host_os in
12921  darwin*)
12922    if test "$GCC" = yes; then
12923      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12924    else
12925      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12926    fi
12927    ;;
12928esac
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938if test -n "$ac_tool_prefix"; then
12939  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12940set dummy ${ac_tool_prefix}objdump; ac_word=$2
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942$as_echo_n "checking for $ac_word... " >&6; }
12943if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12944  $as_echo_n "(cached) " >&6
12945else
12946  if test -n "$OBJDUMP"; then
12947  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12948else
12949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950for as_dir in $PATH
12951do
12952  IFS=$as_save_IFS
12953  test -z "$as_dir" && as_dir=.
12954    for ac_exec_ext in '' $ac_executable_extensions; do
12955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12956    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958    break 2
12959  fi
12960done
12961  done
12962IFS=$as_save_IFS
12963
12964fi
12965fi
12966OBJDUMP=$ac_cv_prog_OBJDUMP
12967if test -n "$OBJDUMP"; then
12968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12969$as_echo "$OBJDUMP" >&6; }
12970else
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972$as_echo "no" >&6; }
12973fi
12974
12975
12976fi
12977if test -z "$ac_cv_prog_OBJDUMP"; then
12978  ac_ct_OBJDUMP=$OBJDUMP
12979  # Extract the first word of "objdump", so it can be a program name with args.
12980set dummy objdump; ac_word=$2
12981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982$as_echo_n "checking for $ac_word... " >&6; }
12983if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12984  $as_echo_n "(cached) " >&6
12985else
12986  if test -n "$ac_ct_OBJDUMP"; then
12987  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12988else
12989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990for as_dir in $PATH
12991do
12992  IFS=$as_save_IFS
12993  test -z "$as_dir" && as_dir=.
12994    for ac_exec_ext in '' $ac_executable_extensions; do
12995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12996    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12998    break 2
12999  fi
13000done
13001  done
13002IFS=$as_save_IFS
13003
13004fi
13005fi
13006ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13007if test -n "$ac_ct_OBJDUMP"; then
13008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13009$as_echo "$ac_ct_OBJDUMP" >&6; }
13010else
13011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012$as_echo "no" >&6; }
13013fi
13014
13015  if test "x$ac_ct_OBJDUMP" = x; then
13016    OBJDUMP="false"
13017  else
13018    case $cross_compiling:$ac_tool_warned in
13019yes:)
13020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13022ac_tool_warned=yes ;;
13023esac
13024    OBJDUMP=$ac_ct_OBJDUMP
13025  fi
13026else
13027  OBJDUMP="$ac_cv_prog_OBJDUMP"
13028fi
13029
13030test -z "$OBJDUMP" && OBJDUMP=objdump
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13041$as_echo_n "checking how to recognize dependent libraries... " >&6; }
13042if test "${lt_cv_deplibs_check_method+set}" = set; then :
13043  $as_echo_n "(cached) " >&6
13044else
13045  lt_cv_file_magic_cmd='$MAGIC_CMD'
13046lt_cv_file_magic_test_file=
13047lt_cv_deplibs_check_method='unknown'
13048# Need to set the preceding variable on all platforms that support
13049# interlibrary dependencies.
13050# 'none' -- dependencies not supported.
13051# `unknown' -- same as none, but documents that we really don't know.
13052# 'pass_all' -- all dependencies passed with no checks.
13053# 'test_compile' -- check by making test program.
13054# 'file_magic [[regex]]' -- check by looking for files in library path
13055# which responds to the $file_magic_cmd with a given extended regex.
13056# If you have `file' or equivalent on your system and you're not sure
13057# whether `pass_all' will *always* work, you probably want this one.
13058
13059case $host_os in
13060aix[4-9]*)
13061  lt_cv_deplibs_check_method=pass_all
13062  ;;
13063
13064beos*)
13065  lt_cv_deplibs_check_method=pass_all
13066  ;;
13067
13068bsdi[45]*)
13069  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13070  lt_cv_file_magic_cmd='/usr/bin/file -L'
13071  lt_cv_file_magic_test_file=/shlib/libc.so
13072  ;;
13073
13074cygwin*)
13075  # func_win32_libid is a shell function defined in ltmain.sh
13076  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13077  lt_cv_file_magic_cmd='func_win32_libid'
13078  ;;
13079
13080mingw* | pw32*)
13081  # Base MSYS/MinGW do not provide the 'file' command needed by
13082  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13083  # unless we find 'file', for example because we are cross-compiling.
13084  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13085  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13086    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13087    lt_cv_file_magic_cmd='func_win32_libid'
13088  else
13089    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13090    lt_cv_file_magic_cmd='$OBJDUMP -f'
13091  fi
13092  ;;
13093
13094cegcc*)
13095  # use the weaker test based on 'objdump'. See mingw*.
13096  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13097  lt_cv_file_magic_cmd='$OBJDUMP -f'
13098  ;;
13099
13100darwin* | rhapsody*)
13101  lt_cv_deplibs_check_method=pass_all
13102  ;;
13103
13104freebsd* | dragonfly*)
13105  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13106    case $host_cpu in
13107    i*86 )
13108      # Not sure whether the presence of OpenBSD here was a mistake.
13109      # Let's accept both of them until this is cleared up.
13110      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13111      lt_cv_file_magic_cmd=/usr/bin/file
13112      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13113      ;;
13114    esac
13115  else
13116    lt_cv_deplibs_check_method=pass_all
13117  fi
13118  ;;
13119
13120gnu*)
13121  lt_cv_deplibs_check_method=pass_all
13122  ;;
13123
13124haiku*)
13125  lt_cv_deplibs_check_method=pass_all
13126  ;;
13127
13128hpux10.20* | hpux11*)
13129  lt_cv_file_magic_cmd=/usr/bin/file
13130  case $host_cpu in
13131  ia64*)
13132    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13133    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13134    ;;
13135  hppa*64*)
13136    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
13137    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13138    ;;
13139  *)
13140    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13141    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13142    ;;
13143  esac
13144  ;;
13145
13146interix[3-9]*)
13147  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13148  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13149  ;;
13150
13151irix5* | irix6* | nonstopux*)
13152  case $LD in
13153  *-32|*"-32 ") libmagic=32-bit;;
13154  *-n32|*"-n32 ") libmagic=N32;;
13155  *-64|*"-64 ") libmagic=64-bit;;
13156  *) libmagic=never-match;;
13157  esac
13158  lt_cv_deplibs_check_method=pass_all
13159  ;;
13160
13161# This must be Linux ELF.
13162linux* | k*bsd*-gnu | kopensolaris*-gnu)
13163  lt_cv_deplibs_check_method=pass_all
13164  ;;
13165
13166netbsd*)
13167  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13168    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13169  else
13170    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13171  fi
13172  ;;
13173
13174newos6*)
13175  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13176  lt_cv_file_magic_cmd=/usr/bin/file
13177  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13178  ;;
13179
13180*nto* | *qnx*)
13181  lt_cv_deplibs_check_method=pass_all
13182  ;;
13183
13184openbsd*)
13185  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13186    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13187  else
13188    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13189  fi
13190  ;;
13191
13192osf3* | osf4* | osf5*)
13193  lt_cv_deplibs_check_method=pass_all
13194  ;;
13195
13196rdos*)
13197  lt_cv_deplibs_check_method=pass_all
13198  ;;
13199
13200solaris*)
13201  lt_cv_deplibs_check_method=pass_all
13202  ;;
13203
13204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13205  lt_cv_deplibs_check_method=pass_all
13206  ;;
13207
13208sysv4 | sysv4.3*)
13209  case $host_vendor in
13210  motorola)
13211    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]'
13212    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13213    ;;
13214  ncr)
13215    lt_cv_deplibs_check_method=pass_all
13216    ;;
13217  sequent)
13218    lt_cv_file_magic_cmd='/bin/file'
13219    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13220    ;;
13221  sni)
13222    lt_cv_file_magic_cmd='/bin/file'
13223    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13224    lt_cv_file_magic_test_file=/lib/libc.so
13225    ;;
13226  siemens)
13227    lt_cv_deplibs_check_method=pass_all
13228    ;;
13229  pc)
13230    lt_cv_deplibs_check_method=pass_all
13231    ;;
13232  esac
13233  ;;
13234
13235tpf*)
13236  lt_cv_deplibs_check_method=pass_all
13237  ;;
13238esac
13239
13240fi
13241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13242$as_echo "$lt_cv_deplibs_check_method" >&6; }
13243file_magic_cmd=$lt_cv_file_magic_cmd
13244deplibs_check_method=$lt_cv_deplibs_check_method
13245test -z "$deplibs_check_method" && deplibs_check_method=unknown
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258if test -n "$ac_tool_prefix"; then
13259  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13260set dummy ${ac_tool_prefix}ar; ac_word=$2
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262$as_echo_n "checking for $ac_word... " >&6; }
13263if test "${ac_cv_prog_AR+set}" = set; then :
13264  $as_echo_n "(cached) " >&6
13265else
13266  if test -n "$AR"; then
13267  ac_cv_prog_AR="$AR" # Let the user override the test.
13268else
13269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270for as_dir in $PATH
13271do
13272  IFS=$as_save_IFS
13273  test -z "$as_dir" && as_dir=.
13274    for ac_exec_ext in '' $ac_executable_extensions; do
13275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13276    ac_cv_prog_AR="${ac_tool_prefix}ar"
13277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13278    break 2
13279  fi
13280done
13281  done
13282IFS=$as_save_IFS
13283
13284fi
13285fi
13286AR=$ac_cv_prog_AR
13287if test -n "$AR"; then
13288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13289$as_echo "$AR" >&6; }
13290else
13291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292$as_echo "no" >&6; }
13293fi
13294
13295
13296fi
13297if test -z "$ac_cv_prog_AR"; then
13298  ac_ct_AR=$AR
13299  # Extract the first word of "ar", so it can be a program name with args.
13300set dummy ar; ac_word=$2
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13302$as_echo_n "checking for $ac_word... " >&6; }
13303if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13304  $as_echo_n "(cached) " >&6
13305else
13306  if test -n "$ac_ct_AR"; then
13307  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13308else
13309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310for as_dir in $PATH
13311do
13312  IFS=$as_save_IFS
13313  test -z "$as_dir" && as_dir=.
13314    for ac_exec_ext in '' $ac_executable_extensions; do
13315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13316    ac_cv_prog_ac_ct_AR="ar"
13317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318    break 2
13319  fi
13320done
13321  done
13322IFS=$as_save_IFS
13323
13324fi
13325fi
13326ac_ct_AR=$ac_cv_prog_ac_ct_AR
13327if test -n "$ac_ct_AR"; then
13328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13329$as_echo "$ac_ct_AR" >&6; }
13330else
13331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
13333fi
13334
13335  if test "x$ac_ct_AR" = x; then
13336    AR="false"
13337  else
13338    case $cross_compiling:$ac_tool_warned in
13339yes:)
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13342ac_tool_warned=yes ;;
13343esac
13344    AR=$ac_ct_AR
13345  fi
13346else
13347  AR="$ac_cv_prog_AR"
13348fi
13349
13350test -z "$AR" && AR=ar
13351test -z "$AR_FLAGS" && AR_FLAGS=cru
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363if test -n "$ac_tool_prefix"; then
13364  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13365set dummy ${ac_tool_prefix}strip; ac_word=$2
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13367$as_echo_n "checking for $ac_word... " >&6; }
13368if test "${ac_cv_prog_STRIP+set}" = set; then :
13369  $as_echo_n "(cached) " >&6
13370else
13371  if test -n "$STRIP"; then
13372  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13373else
13374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13375for as_dir in $PATH
13376do
13377  IFS=$as_save_IFS
13378  test -z "$as_dir" && as_dir=.
13379    for ac_exec_ext in '' $ac_executable_extensions; do
13380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13381    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13383    break 2
13384  fi
13385done
13386  done
13387IFS=$as_save_IFS
13388
13389fi
13390fi
13391STRIP=$ac_cv_prog_STRIP
13392if test -n "$STRIP"; then
13393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13394$as_echo "$STRIP" >&6; }
13395else
13396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397$as_echo "no" >&6; }
13398fi
13399
13400
13401fi
13402if test -z "$ac_cv_prog_STRIP"; then
13403  ac_ct_STRIP=$STRIP
13404  # Extract the first word of "strip", so it can be a program name with args.
13405set dummy strip; ac_word=$2
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407$as_echo_n "checking for $ac_word... " >&6; }
13408if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13409  $as_echo_n "(cached) " >&6
13410else
13411  if test -n "$ac_ct_STRIP"; then
13412  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13413else
13414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415for as_dir in $PATH
13416do
13417  IFS=$as_save_IFS
13418  test -z "$as_dir" && as_dir=.
13419    for ac_exec_ext in '' $ac_executable_extensions; do
13420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421    ac_cv_prog_ac_ct_STRIP="strip"
13422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423    break 2
13424  fi
13425done
13426  done
13427IFS=$as_save_IFS
13428
13429fi
13430fi
13431ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13432if test -n "$ac_ct_STRIP"; then
13433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13434$as_echo "$ac_ct_STRIP" >&6; }
13435else
13436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437$as_echo "no" >&6; }
13438fi
13439
13440  if test "x$ac_ct_STRIP" = x; then
13441    STRIP=":"
13442  else
13443    case $cross_compiling:$ac_tool_warned in
13444yes:)
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13447ac_tool_warned=yes ;;
13448esac
13449    STRIP=$ac_ct_STRIP
13450  fi
13451else
13452  STRIP="$ac_cv_prog_STRIP"
13453fi
13454
13455test -z "$STRIP" && STRIP=:
13456
13457
13458
13459
13460
13461
13462if test -n "$ac_tool_prefix"; then
13463  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13464set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466$as_echo_n "checking for $ac_word... " >&6; }
13467if test "${ac_cv_prog_RANLIB+set}" = set; then :
13468  $as_echo_n "(cached) " >&6
13469else
13470  if test -n "$RANLIB"; then
13471  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13472else
13473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474for as_dir in $PATH
13475do
13476  IFS=$as_save_IFS
13477  test -z "$as_dir" && as_dir=.
13478    for ac_exec_ext in '' $ac_executable_extensions; do
13479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13480    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13482    break 2
13483  fi
13484done
13485  done
13486IFS=$as_save_IFS
13487
13488fi
13489fi
13490RANLIB=$ac_cv_prog_RANLIB
13491if test -n "$RANLIB"; then
13492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13493$as_echo "$RANLIB" >&6; }
13494else
13495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496$as_echo "no" >&6; }
13497fi
13498
13499
13500fi
13501if test -z "$ac_cv_prog_RANLIB"; then
13502  ac_ct_RANLIB=$RANLIB
13503  # Extract the first word of "ranlib", so it can be a program name with args.
13504set dummy ranlib; ac_word=$2
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13506$as_echo_n "checking for $ac_word... " >&6; }
13507if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13508  $as_echo_n "(cached) " >&6
13509else
13510  if test -n "$ac_ct_RANLIB"; then
13511  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13512else
13513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13514for as_dir in $PATH
13515do
13516  IFS=$as_save_IFS
13517  test -z "$as_dir" && as_dir=.
13518    for ac_exec_ext in '' $ac_executable_extensions; do
13519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13520    ac_cv_prog_ac_ct_RANLIB="ranlib"
13521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13522    break 2
13523  fi
13524done
13525  done
13526IFS=$as_save_IFS
13527
13528fi
13529fi
13530ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13531if test -n "$ac_ct_RANLIB"; then
13532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13533$as_echo "$ac_ct_RANLIB" >&6; }
13534else
13535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536$as_echo "no" >&6; }
13537fi
13538
13539  if test "x$ac_ct_RANLIB" = x; then
13540    RANLIB=":"
13541  else
13542    case $cross_compiling:$ac_tool_warned in
13543yes:)
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13546ac_tool_warned=yes ;;
13547esac
13548    RANLIB=$ac_ct_RANLIB
13549  fi
13550else
13551  RANLIB="$ac_cv_prog_RANLIB"
13552fi
13553
13554test -z "$RANLIB" && RANLIB=:
13555
13556
13557
13558
13559
13560
13561# Determine commands to create old-style static archives.
13562old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13563old_postinstall_cmds='chmod 644 $oldlib'
13564old_postuninstall_cmds=
13565
13566if test -n "$RANLIB"; then
13567  case $host_os in
13568  openbsd*)
13569    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13570    ;;
13571  *)
13572    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13573    ;;
13574  esac
13575  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13576fi
13577
13578case $host_os in
13579  darwin*)
13580    lock_old_archive_extraction=yes ;;
13581  *)
13582    lock_old_archive_extraction=no ;;
13583esac
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623# If no C compiler was specified, use CC.
13624LTCC=${LTCC-"$CC"}
13625
13626# If no C compiler flags were specified, use CFLAGS.
13627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13628
13629# Allow CC to be a program name with arguments.
13630compiler=$CC
13631
13632
13633# Check for command to grab the raw symbol name followed by C symbol from nm.
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13635$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13636if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13637  $as_echo_n "(cached) " >&6
13638else
13639
13640# These are sane defaults that work on at least a few old systems.
13641# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13642
13643# Character class describing NM global symbol codes.
13644symcode='[BCDEGRST]'
13645
13646# Regexp to match symbols that can be accessed directly from C.
13647sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13648
13649# Define system-specific variables.
13650case $host_os in
13651aix*)
13652  symcode='[BCDT]'
13653  ;;
13654cygwin* | mingw* | pw32* | cegcc*)
13655  symcode='[ABCDGISTW]'
13656  ;;
13657hpux*)
13658  if test "$host_cpu" = ia64; then
13659    symcode='[ABCDEGRST]'
13660  fi
13661  ;;
13662irix* | nonstopux*)
13663  symcode='[BCDEGRST]'
13664  ;;
13665osf*)
13666  symcode='[BCDEGQRST]'
13667  ;;
13668solaris*)
13669  symcode='[BDRT]'
13670  ;;
13671sco3.2v5*)
13672  symcode='[DT]'
13673  ;;
13674sysv4.2uw2*)
13675  symcode='[DT]'
13676  ;;
13677sysv5* | sco5v6* | unixware* | OpenUNIX*)
13678  symcode='[ABDT]'
13679  ;;
13680sysv4)
13681  symcode='[DFNSTU]'
13682  ;;
13683esac
13684
13685# If we're using GNU nm, then use its standard symbol codes.
13686case `$NM -V 2>&1` in
13687*GNU* | *'with BFD'*)
13688  symcode='[ABCDGIRSTW]' ;;
13689esac
13690
13691# Transform an extracted symbol line into a proper C declaration.
13692# Some systems (esp. on ia64) link data and code symbols differently,
13693# so use this general approach.
13694lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13695
13696# Transform an extracted symbol line into symbol name and symbol address
13697lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13698lt_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'"
13699
13700# Handle CRLF in mingw tool chain
13701opt_cr=
13702case $build_os in
13703mingw*)
13704  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13705  ;;
13706esac
13707
13708# Try without a prefix underscore, then with it.
13709for ac_symprfx in "" "_"; do
13710
13711  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13712  symxfrm="\\1 $ac_symprfx\\2 \\2"
13713
13714  # Write the raw and C identifiers.
13715  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13716    # Fake it for dumpbin and say T for any non-static function
13717    # and D for any global variable.
13718    # Also find C++ and __fastcall symbols from MSVC++,
13719    # which start with @ or ?.
13720    lt_cv_sys_global_symbol_pipe="$AWK '"\
13721"     {last_section=section; section=\$ 3};"\
13722"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13723"     \$ 0!~/External *\|/{next};"\
13724"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13725"     {if(hide[section]) next};"\
13726"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13727"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13728"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13729"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13730"     ' prfx=^$ac_symprfx"
13731  else
13732    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13733  fi
13734
13735  # Check to see that the pipe works correctly.
13736  pipe_works=no
13737
13738  rm -f conftest*
13739  cat > conftest.$ac_ext <<_LT_EOF
13740#ifdef __cplusplus
13741extern "C" {
13742#endif
13743char nm_test_var;
13744void nm_test_func(void);
13745void nm_test_func(void){}
13746#ifdef __cplusplus
13747}
13748#endif
13749int main(){nm_test_var='a';nm_test_func();return(0);}
13750_LT_EOF
13751
13752  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13753  (eval $ac_compile) 2>&5
13754  ac_status=$?
13755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13756  test $ac_status = 0; }; then
13757    # Now try to grab the symbols.
13758    nlist=conftest.nm
13759    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13760  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13761  ac_status=$?
13762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13763  test $ac_status = 0; } && test -s "$nlist"; then
13764      # Try sorting and uniquifying the output.
13765      if sort "$nlist" | uniq > "$nlist"T; then
13766	mv -f "$nlist"T "$nlist"
13767      else
13768	rm -f "$nlist"T
13769      fi
13770
13771      # Make sure that we snagged all the symbols we need.
13772      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13773	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13774	  cat <<_LT_EOF > conftest.$ac_ext
13775#ifdef __cplusplus
13776extern "C" {
13777#endif
13778
13779_LT_EOF
13780	  # Now generate the symbol file.
13781	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13782
13783	  cat <<_LT_EOF >> conftest.$ac_ext
13784
13785/* The mapping between symbol names and symbols.  */
13786const struct {
13787  const char *name;
13788  void       *address;
13789}
13790lt__PROGRAM__LTX_preloaded_symbols[] =
13791{
13792  { "@PROGRAM@", (void *) 0 },
13793_LT_EOF
13794	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13795	  cat <<\_LT_EOF >> conftest.$ac_ext
13796  {0, (void *) 0}
13797};
13798
13799/* This works around a problem in FreeBSD linker */
13800#ifdef FREEBSD_WORKAROUND
13801static const void *lt_preloaded_setup() {
13802  return lt__PROGRAM__LTX_preloaded_symbols;
13803}
13804#endif
13805
13806#ifdef __cplusplus
13807}
13808#endif
13809_LT_EOF
13810	  # Now try linking the two files.
13811	  mv conftest.$ac_objext conftstm.$ac_objext
13812	  lt_save_LIBS="$LIBS"
13813	  lt_save_CFLAGS="$CFLAGS"
13814	  LIBS="conftstm.$ac_objext"
13815	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13816	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13817  (eval $ac_link) 2>&5
13818  ac_status=$?
13819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13821	    pipe_works=yes
13822	  fi
13823	  LIBS="$lt_save_LIBS"
13824	  CFLAGS="$lt_save_CFLAGS"
13825	else
13826	  echo "cannot find nm_test_func in $nlist" >&5
13827	fi
13828      else
13829	echo "cannot find nm_test_var in $nlist" >&5
13830      fi
13831    else
13832      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13833    fi
13834  else
13835    echo "$progname: failed program was:" >&5
13836    cat conftest.$ac_ext >&5
13837  fi
13838  rm -rf conftest* conftst*
13839
13840  # Do not use the global_symbol_pipe unless it works.
13841  if test "$pipe_works" = yes; then
13842    break
13843  else
13844    lt_cv_sys_global_symbol_pipe=
13845  fi
13846done
13847
13848fi
13849
13850if test -z "$lt_cv_sys_global_symbol_pipe"; then
13851  lt_cv_sys_global_symbol_to_cdecl=
13852fi
13853if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13855$as_echo "failed" >&6; }
13856else
13857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13858$as_echo "ok" >&6; }
13859fi
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882# Check whether --enable-libtool-lock was given.
13883if test "${enable_libtool_lock+set}" = set; then :
13884  enableval=$enable_libtool_lock;
13885fi
13886
13887test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13888
13889# Some flags need to be propagated to the compiler or linker for good
13890# libtool support.
13891case $host in
13892ia64-*-hpux*)
13893  # Find out which ABI we are using.
13894  echo 'int i;' > conftest.$ac_ext
13895  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13896  (eval $ac_compile) 2>&5
13897  ac_status=$?
13898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13899  test $ac_status = 0; }; then
13900    case `/usr/bin/file conftest.$ac_objext` in
13901      *ELF-32*)
13902	HPUX_IA64_MODE="32"
13903	;;
13904      *ELF-64*)
13905	HPUX_IA64_MODE="64"
13906	;;
13907    esac
13908  fi
13909  rm -rf conftest*
13910  ;;
13911*-*-irix6*)
13912  # Find out which ABI we are using.
13913  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13914  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13915  (eval $ac_compile) 2>&5
13916  ac_status=$?
13917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13918  test $ac_status = 0; }; then
13919    if test "$lt_cv_prog_gnu_ld" = yes; then
13920      case `/usr/bin/file conftest.$ac_objext` in
13921	*32-bit*)
13922	  LD="${LD-ld} -melf32bsmip"
13923	  ;;
13924	*N32*)
13925	  LD="${LD-ld} -melf32bmipn32"
13926	  ;;
13927	*64-bit*)
13928	  LD="${LD-ld} -melf64bmip"
13929	;;
13930      esac
13931    else
13932      case `/usr/bin/file conftest.$ac_objext` in
13933	*32-bit*)
13934	  LD="${LD-ld} -32"
13935	  ;;
13936	*N32*)
13937	  LD="${LD-ld} -n32"
13938	  ;;
13939	*64-bit*)
13940	  LD="${LD-ld} -64"
13941	  ;;
13942      esac
13943    fi
13944  fi
13945  rm -rf conftest*
13946  ;;
13947
13948x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13949s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13950  # Find out which ABI we are using.
13951  echo 'int i;' > conftest.$ac_ext
13952  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13953  (eval $ac_compile) 2>&5
13954  ac_status=$?
13955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13956  test $ac_status = 0; }; then
13957    case `/usr/bin/file conftest.o` in
13958      *32-bit*)
13959	case $host in
13960	  x86_64-*kfreebsd*-gnu)
13961	    LD="${LD-ld} -m elf_i386_fbsd"
13962	    ;;
13963	  x86_64-*linux*)
13964	    case `/usr/bin/file conftest.o` in
13965	      *x86-64*)
13966		LD="${LD-ld} -m elf32_x86_64"
13967		;;
13968	      *)
13969		LD="${LD-ld} -m elf_i386"
13970		;;
13971	    esac
13972	    ;;
13973	  powerpc64le-*linux*)
13974	    LD="${LD-ld} -m elf32lppclinux"
13975	    ;;
13976	  powerpc64-*linux*)
13977	    LD="${LD-ld} -m elf32ppclinux"
13978	    ;;
13979	  s390x-*linux*)
13980	    LD="${LD-ld} -m elf_s390"
13981	    ;;
13982	  sparc64-*linux*)
13983	    LD="${LD-ld} -m elf32_sparc"
13984	    ;;
13985	esac
13986	;;
13987      *64-bit*)
13988	case $host in
13989	  x86_64-*kfreebsd*-gnu)
13990	    LD="${LD-ld} -m elf_x86_64_fbsd"
13991	    ;;
13992	  x86_64-*linux*)
13993	    LD="${LD-ld} -m elf_x86_64"
13994	    ;;
13995	  powerpcle-*linux*)
13996	    LD="${LD-ld} -m elf64lppc"
13997	    ;;
13998	  powerpc-*linux*)
13999	    LD="${LD-ld} -m elf64ppc"
14000	    ;;
14001	  s390*-*linux*|s390*-*tpf*)
14002	    LD="${LD-ld} -m elf64_s390"
14003	    ;;
14004	  sparc*-*linux*)
14005	    LD="${LD-ld} -m elf64_sparc"
14006	    ;;
14007	esac
14008	;;
14009    esac
14010  fi
14011  rm -rf conftest*
14012  ;;
14013
14014*-*-sco3.2v5*)
14015  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14016  SAVE_CFLAGS="$CFLAGS"
14017  CFLAGS="$CFLAGS -belf"
14018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14019$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14020if test "${lt_cv_cc_needs_belf+set}" = set; then :
14021  $as_echo_n "(cached) " >&6
14022else
14023  ac_ext=c
14024ac_cpp='$CPP $CPPFLAGS'
14025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14027ac_compiler_gnu=$ac_cv_c_compiler_gnu
14028
14029     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030/* end confdefs.h.  */
14031
14032int
14033main ()
14034{
14035
14036  ;
14037  return 0;
14038}
14039_ACEOF
14040if ac_fn_c_try_link "$LINENO"; then :
14041  lt_cv_cc_needs_belf=yes
14042else
14043  lt_cv_cc_needs_belf=no
14044fi
14045rm -f core conftest.err conftest.$ac_objext \
14046    conftest$ac_exeext conftest.$ac_ext
14047     ac_ext=c
14048ac_cpp='$CPP $CPPFLAGS'
14049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14051ac_compiler_gnu=$ac_cv_c_compiler_gnu
14052
14053fi
14054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14055$as_echo "$lt_cv_cc_needs_belf" >&6; }
14056  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14057    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14058    CFLAGS="$SAVE_CFLAGS"
14059  fi
14060  ;;
14061sparc*-*solaris*)
14062  # Find out which ABI we are using.
14063  echo 'int i;' > conftest.$ac_ext
14064  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14065  (eval $ac_compile) 2>&5
14066  ac_status=$?
14067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14068  test $ac_status = 0; }; then
14069    case `/usr/bin/file conftest.o` in
14070    *64-bit*)
14071      case $lt_cv_prog_gnu_ld in
14072      yes*) LD="${LD-ld} -m elf64_sparc" ;;
14073      *)
14074	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14075	  LD="${LD-ld} -64"
14076	fi
14077	;;
14078      esac
14079      ;;
14080    esac
14081  fi
14082  rm -rf conftest*
14083  ;;
14084esac
14085
14086need_locks="$enable_libtool_lock"
14087
14088
14089  case $host_os in
14090    rhapsody* | darwin*)
14091    if test -n "$ac_tool_prefix"; then
14092  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14093set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14095$as_echo_n "checking for $ac_word... " >&6; }
14096if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14097  $as_echo_n "(cached) " >&6
14098else
14099  if test -n "$DSYMUTIL"; then
14100  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14101else
14102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103for as_dir in $PATH
14104do
14105  IFS=$as_save_IFS
14106  test -z "$as_dir" && as_dir=.
14107    for ac_exec_ext in '' $ac_executable_extensions; do
14108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14109    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111    break 2
14112  fi
14113done
14114  done
14115IFS=$as_save_IFS
14116
14117fi
14118fi
14119DSYMUTIL=$ac_cv_prog_DSYMUTIL
14120if test -n "$DSYMUTIL"; then
14121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14122$as_echo "$DSYMUTIL" >&6; }
14123else
14124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125$as_echo "no" >&6; }
14126fi
14127
14128
14129fi
14130if test -z "$ac_cv_prog_DSYMUTIL"; then
14131  ac_ct_DSYMUTIL=$DSYMUTIL
14132  # Extract the first word of "dsymutil", so it can be a program name with args.
14133set dummy dsymutil; ac_word=$2
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135$as_echo_n "checking for $ac_word... " >&6; }
14136if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14137  $as_echo_n "(cached) " >&6
14138else
14139  if test -n "$ac_ct_DSYMUTIL"; then
14140  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14141else
14142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143for as_dir in $PATH
14144do
14145  IFS=$as_save_IFS
14146  test -z "$as_dir" && as_dir=.
14147    for ac_exec_ext in '' $ac_executable_extensions; do
14148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14149    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151    break 2
14152  fi
14153done
14154  done
14155IFS=$as_save_IFS
14156
14157fi
14158fi
14159ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14160if test -n "$ac_ct_DSYMUTIL"; then
14161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14162$as_echo "$ac_ct_DSYMUTIL" >&6; }
14163else
14164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165$as_echo "no" >&6; }
14166fi
14167
14168  if test "x$ac_ct_DSYMUTIL" = x; then
14169    DSYMUTIL=":"
14170  else
14171    case $cross_compiling:$ac_tool_warned in
14172yes:)
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14175ac_tool_warned=yes ;;
14176esac
14177    DSYMUTIL=$ac_ct_DSYMUTIL
14178  fi
14179else
14180  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14181fi
14182
14183    if test -n "$ac_tool_prefix"; then
14184  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14185set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14187$as_echo_n "checking for $ac_word... " >&6; }
14188if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14189  $as_echo_n "(cached) " >&6
14190else
14191  if test -n "$NMEDIT"; then
14192  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14193else
14194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195for as_dir in $PATH
14196do
14197  IFS=$as_save_IFS
14198  test -z "$as_dir" && as_dir=.
14199    for ac_exec_ext in '' $ac_executable_extensions; do
14200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14201    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14203    break 2
14204  fi
14205done
14206  done
14207IFS=$as_save_IFS
14208
14209fi
14210fi
14211NMEDIT=$ac_cv_prog_NMEDIT
14212if test -n "$NMEDIT"; then
14213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14214$as_echo "$NMEDIT" >&6; }
14215else
14216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217$as_echo "no" >&6; }
14218fi
14219
14220
14221fi
14222if test -z "$ac_cv_prog_NMEDIT"; then
14223  ac_ct_NMEDIT=$NMEDIT
14224  # Extract the first word of "nmedit", so it can be a program name with args.
14225set dummy nmedit; ac_word=$2
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227$as_echo_n "checking for $ac_word... " >&6; }
14228if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14229  $as_echo_n "(cached) " >&6
14230else
14231  if test -n "$ac_ct_NMEDIT"; then
14232  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14233else
14234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235for as_dir in $PATH
14236do
14237  IFS=$as_save_IFS
14238  test -z "$as_dir" && as_dir=.
14239    for ac_exec_ext in '' $ac_executable_extensions; do
14240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14241    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243    break 2
14244  fi
14245done
14246  done
14247IFS=$as_save_IFS
14248
14249fi
14250fi
14251ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14252if test -n "$ac_ct_NMEDIT"; then
14253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14254$as_echo "$ac_ct_NMEDIT" >&6; }
14255else
14256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257$as_echo "no" >&6; }
14258fi
14259
14260  if test "x$ac_ct_NMEDIT" = x; then
14261    NMEDIT=":"
14262  else
14263    case $cross_compiling:$ac_tool_warned in
14264yes:)
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14267ac_tool_warned=yes ;;
14268esac
14269    NMEDIT=$ac_ct_NMEDIT
14270  fi
14271else
14272  NMEDIT="$ac_cv_prog_NMEDIT"
14273fi
14274
14275    if test -n "$ac_tool_prefix"; then
14276  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14277set dummy ${ac_tool_prefix}lipo; ac_word=$2
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14279$as_echo_n "checking for $ac_word... " >&6; }
14280if test "${ac_cv_prog_LIPO+set}" = set; then :
14281  $as_echo_n "(cached) " >&6
14282else
14283  if test -n "$LIPO"; then
14284  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14285else
14286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287for as_dir in $PATH
14288do
14289  IFS=$as_save_IFS
14290  test -z "$as_dir" && as_dir=.
14291    for ac_exec_ext in '' $ac_executable_extensions; do
14292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14293    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14295    break 2
14296  fi
14297done
14298  done
14299IFS=$as_save_IFS
14300
14301fi
14302fi
14303LIPO=$ac_cv_prog_LIPO
14304if test -n "$LIPO"; then
14305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14306$as_echo "$LIPO" >&6; }
14307else
14308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309$as_echo "no" >&6; }
14310fi
14311
14312
14313fi
14314if test -z "$ac_cv_prog_LIPO"; then
14315  ac_ct_LIPO=$LIPO
14316  # Extract the first word of "lipo", so it can be a program name with args.
14317set dummy lipo; ac_word=$2
14318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14319$as_echo_n "checking for $ac_word... " >&6; }
14320if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14321  $as_echo_n "(cached) " >&6
14322else
14323  if test -n "$ac_ct_LIPO"; then
14324  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14325else
14326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327for as_dir in $PATH
14328do
14329  IFS=$as_save_IFS
14330  test -z "$as_dir" && as_dir=.
14331    for ac_exec_ext in '' $ac_executable_extensions; do
14332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14333    ac_cv_prog_ac_ct_LIPO="lipo"
14334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14335    break 2
14336  fi
14337done
14338  done
14339IFS=$as_save_IFS
14340
14341fi
14342fi
14343ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14344if test -n "$ac_ct_LIPO"; then
14345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14346$as_echo "$ac_ct_LIPO" >&6; }
14347else
14348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349$as_echo "no" >&6; }
14350fi
14351
14352  if test "x$ac_ct_LIPO" = x; then
14353    LIPO=":"
14354  else
14355    case $cross_compiling:$ac_tool_warned in
14356yes:)
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14359ac_tool_warned=yes ;;
14360esac
14361    LIPO=$ac_ct_LIPO
14362  fi
14363else
14364  LIPO="$ac_cv_prog_LIPO"
14365fi
14366
14367    if test -n "$ac_tool_prefix"; then
14368  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14369set dummy ${ac_tool_prefix}otool; ac_word=$2
14370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14371$as_echo_n "checking for $ac_word... " >&6; }
14372if test "${ac_cv_prog_OTOOL+set}" = set; then :
14373  $as_echo_n "(cached) " >&6
14374else
14375  if test -n "$OTOOL"; then
14376  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14377else
14378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379for as_dir in $PATH
14380do
14381  IFS=$as_save_IFS
14382  test -z "$as_dir" && as_dir=.
14383    for ac_exec_ext in '' $ac_executable_extensions; do
14384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14385    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14387    break 2
14388  fi
14389done
14390  done
14391IFS=$as_save_IFS
14392
14393fi
14394fi
14395OTOOL=$ac_cv_prog_OTOOL
14396if test -n "$OTOOL"; then
14397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14398$as_echo "$OTOOL" >&6; }
14399else
14400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401$as_echo "no" >&6; }
14402fi
14403
14404
14405fi
14406if test -z "$ac_cv_prog_OTOOL"; then
14407  ac_ct_OTOOL=$OTOOL
14408  # Extract the first word of "otool", so it can be a program name with args.
14409set dummy otool; ac_word=$2
14410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14411$as_echo_n "checking for $ac_word... " >&6; }
14412if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14413  $as_echo_n "(cached) " >&6
14414else
14415  if test -n "$ac_ct_OTOOL"; then
14416  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14417else
14418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419for as_dir in $PATH
14420do
14421  IFS=$as_save_IFS
14422  test -z "$as_dir" && as_dir=.
14423    for ac_exec_ext in '' $ac_executable_extensions; do
14424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14425    ac_cv_prog_ac_ct_OTOOL="otool"
14426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14427    break 2
14428  fi
14429done
14430  done
14431IFS=$as_save_IFS
14432
14433fi
14434fi
14435ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14436if test -n "$ac_ct_OTOOL"; then
14437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14438$as_echo "$ac_ct_OTOOL" >&6; }
14439else
14440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441$as_echo "no" >&6; }
14442fi
14443
14444  if test "x$ac_ct_OTOOL" = x; then
14445    OTOOL=":"
14446  else
14447    case $cross_compiling:$ac_tool_warned in
14448yes:)
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14451ac_tool_warned=yes ;;
14452esac
14453    OTOOL=$ac_ct_OTOOL
14454  fi
14455else
14456  OTOOL="$ac_cv_prog_OTOOL"
14457fi
14458
14459    if test -n "$ac_tool_prefix"; then
14460  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14461set dummy ${ac_tool_prefix}otool64; ac_word=$2
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14463$as_echo_n "checking for $ac_word... " >&6; }
14464if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14465  $as_echo_n "(cached) " >&6
14466else
14467  if test -n "$OTOOL64"; then
14468  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14469else
14470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471for as_dir in $PATH
14472do
14473  IFS=$as_save_IFS
14474  test -z "$as_dir" && as_dir=.
14475    for ac_exec_ext in '' $ac_executable_extensions; do
14476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14477    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14479    break 2
14480  fi
14481done
14482  done
14483IFS=$as_save_IFS
14484
14485fi
14486fi
14487OTOOL64=$ac_cv_prog_OTOOL64
14488if test -n "$OTOOL64"; then
14489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14490$as_echo "$OTOOL64" >&6; }
14491else
14492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14493$as_echo "no" >&6; }
14494fi
14495
14496
14497fi
14498if test -z "$ac_cv_prog_OTOOL64"; then
14499  ac_ct_OTOOL64=$OTOOL64
14500  # Extract the first word of "otool64", so it can be a program name with args.
14501set dummy otool64; ac_word=$2
14502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14503$as_echo_n "checking for $ac_word... " >&6; }
14504if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14505  $as_echo_n "(cached) " >&6
14506else
14507  if test -n "$ac_ct_OTOOL64"; then
14508  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14509else
14510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511for as_dir in $PATH
14512do
14513  IFS=$as_save_IFS
14514  test -z "$as_dir" && as_dir=.
14515    for ac_exec_ext in '' $ac_executable_extensions; do
14516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14517    ac_cv_prog_ac_ct_OTOOL64="otool64"
14518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14519    break 2
14520  fi
14521done
14522  done
14523IFS=$as_save_IFS
14524
14525fi
14526fi
14527ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14528if test -n "$ac_ct_OTOOL64"; then
14529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14530$as_echo "$ac_ct_OTOOL64" >&6; }
14531else
14532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533$as_echo "no" >&6; }
14534fi
14535
14536  if test "x$ac_ct_OTOOL64" = x; then
14537    OTOOL64=":"
14538  else
14539    case $cross_compiling:$ac_tool_warned in
14540yes:)
14541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14543ac_tool_warned=yes ;;
14544esac
14545    OTOOL64=$ac_ct_OTOOL64
14546  fi
14547else
14548  OTOOL64="$ac_cv_prog_OTOOL64"
14549fi
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14578$as_echo_n "checking for -single_module linker flag... " >&6; }
14579if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14580  $as_echo_n "(cached) " >&6
14581else
14582  lt_cv_apple_cc_single_mod=no
14583      if test -z "${LT_MULTI_MODULE}"; then
14584	# By default we will add the -single_module flag. You can override
14585	# by either setting the environment variable LT_MULTI_MODULE
14586	# non-empty at configure time, or by adding -multi_module to the
14587	# link flags.
14588	rm -rf libconftest.dylib*
14589	echo "int foo(void){return 1;}" > conftest.c
14590	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14591-dynamiclib -Wl,-single_module conftest.c" >&5
14592	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14593	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14594        _lt_result=$?
14595	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14596	  lt_cv_apple_cc_single_mod=yes
14597	else
14598	  cat conftest.err >&5
14599	fi
14600	rm -rf libconftest.dylib*
14601	rm -f conftest.*
14602      fi
14603fi
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14605$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14607$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14608if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14609  $as_echo_n "(cached) " >&6
14610else
14611  lt_cv_ld_exported_symbols_list=no
14612      save_LDFLAGS=$LDFLAGS
14613      echo "_main" > conftest.sym
14614      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14615      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616/* end confdefs.h.  */
14617
14618int
14619main ()
14620{
14621
14622  ;
14623  return 0;
14624}
14625_ACEOF
14626if ac_fn_c_try_link "$LINENO"; then :
14627  lt_cv_ld_exported_symbols_list=yes
14628else
14629  lt_cv_ld_exported_symbols_list=no
14630fi
14631rm -f core conftest.err conftest.$ac_objext \
14632    conftest$ac_exeext conftest.$ac_ext
14633	LDFLAGS="$save_LDFLAGS"
14634
14635fi
14636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14637$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14639$as_echo_n "checking for -force_load linker flag... " >&6; }
14640if test "${lt_cv_ld_force_load+set}" = set; then :
14641  $as_echo_n "(cached) " >&6
14642else
14643  lt_cv_ld_force_load=no
14644      cat > conftest.c << _LT_EOF
14645int forced_loaded() { return 2;}
14646_LT_EOF
14647      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14648      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14649      echo "$AR cru libconftest.a conftest.o" >&5
14650      $AR cru libconftest.a conftest.o 2>&5
14651      cat > conftest.c << _LT_EOF
14652int main() { return 0;}
14653_LT_EOF
14654      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14655      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14656      _lt_result=$?
14657      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14658	lt_cv_ld_force_load=yes
14659      else
14660	cat conftest.err >&5
14661      fi
14662        rm -f conftest.err libconftest.a conftest conftest.c
14663        rm -rf conftest.dSYM
14664
14665fi
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14667$as_echo "$lt_cv_ld_force_load" >&6; }
14668    case $host_os in
14669    rhapsody* | darwin1.[012])
14670      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14671    darwin1.*)
14672      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14673    darwin*) # darwin 5.x on
14674      # if running on 10.5 or later, the deployment target defaults
14675      # to the OS version, if on x86, and 10.4, the deployment
14676      # target defaults to 10.4. Don't you love it?
14677      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14678	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14679	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14680	10.[012][,.]*)
14681	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14682	10.*)
14683	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14684      esac
14685    ;;
14686  esac
14687    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14688      _lt_dar_single_mod='$single_module'
14689    fi
14690    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14691      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14692    else
14693      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14694    fi
14695    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14696      _lt_dsymutil='~$DSYMUTIL $lib || :'
14697    else
14698      _lt_dsymutil=
14699    fi
14700    ;;
14701  esac
14702
14703for ac_header in dlfcn.h
14704do :
14705  ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14706if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14707  cat >>confdefs.h <<_ACEOF
14708#define HAVE_DLFCN_H 1
14709_ACEOF
14710
14711fi
14712done
14713
14714
14715
14716
14717
14718# Set options
14719
14720
14721
14722        enable_dlopen=no
14723
14724
14725  enable_win32_dll=no
14726
14727
14728            # Check whether --enable-shared was given.
14729if test "${enable_shared+set}" = set; then :
14730  enableval=$enable_shared; p=${PACKAGE-default}
14731    case $enableval in
14732    yes) enable_shared=yes ;;
14733    no) enable_shared=no ;;
14734    *)
14735      enable_shared=no
14736      # Look at the argument we got.  We use all the common list separators.
14737      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14738      for pkg in $enableval; do
14739	IFS="$lt_save_ifs"
14740	if test "X$pkg" = "X$p"; then
14741	  enable_shared=yes
14742	fi
14743      done
14744      IFS="$lt_save_ifs"
14745      ;;
14746    esac
14747else
14748  enable_shared=yes
14749fi
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759  # Check whether --enable-static was given.
14760if test "${enable_static+set}" = set; then :
14761  enableval=$enable_static; p=${PACKAGE-default}
14762    case $enableval in
14763    yes) enable_static=yes ;;
14764    no) enable_static=no ;;
14765    *)
14766     enable_static=no
14767      # Look at the argument we got.  We use all the common list separators.
14768      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14769      for pkg in $enableval; do
14770	IFS="$lt_save_ifs"
14771	if test "X$pkg" = "X$p"; then
14772	  enable_static=yes
14773	fi
14774      done
14775      IFS="$lt_save_ifs"
14776      ;;
14777    esac
14778else
14779  enable_static=yes
14780fi
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791# Check whether --with-pic was given.
14792if test "${with_pic+set}" = set; then :
14793  withval=$with_pic; pic_mode="$withval"
14794else
14795  pic_mode=default
14796fi
14797
14798
14799test -z "$pic_mode" && pic_mode=default
14800
14801
14802
14803
14804
14805
14806
14807  # Check whether --enable-fast-install was given.
14808if test "${enable_fast_install+set}" = set; then :
14809  enableval=$enable_fast_install; p=${PACKAGE-default}
14810    case $enableval in
14811    yes) enable_fast_install=yes ;;
14812    no) enable_fast_install=no ;;
14813    *)
14814      enable_fast_install=no
14815      # Look at the argument we got.  We use all the common list separators.
14816      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14817      for pkg in $enableval; do
14818	IFS="$lt_save_ifs"
14819	if test "X$pkg" = "X$p"; then
14820	  enable_fast_install=yes
14821	fi
14822      done
14823      IFS="$lt_save_ifs"
14824      ;;
14825    esac
14826else
14827  enable_fast_install=yes
14828fi
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840# This can be used to rebuild libtool when needed
14841LIBTOOL_DEPS="$ltmain"
14842
14843# Always use our own libtool.
14844LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871test -z "$LN_S" && LN_S="ln -s"
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886if test -n "${ZSH_VERSION+set}" ; then
14887   setopt NO_GLOB_SUBST
14888fi
14889
14890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14891$as_echo_n "checking for objdir... " >&6; }
14892if test "${lt_cv_objdir+set}" = set; then :
14893  $as_echo_n "(cached) " >&6
14894else
14895  rm -f .libs 2>/dev/null
14896mkdir .libs 2>/dev/null
14897if test -d .libs; then
14898  lt_cv_objdir=.libs
14899else
14900  # MS-DOS does not allow filenames that begin with a dot.
14901  lt_cv_objdir=_libs
14902fi
14903rmdir .libs 2>/dev/null
14904fi
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14906$as_echo "$lt_cv_objdir" >&6; }
14907objdir=$lt_cv_objdir
14908
14909
14910
14911
14912
14913cat >>confdefs.h <<_ACEOF
14914#define LT_OBJDIR "$lt_cv_objdir/"
14915_ACEOF
14916
14917
14918
14919
14920case $host_os in
14921aix3*)
14922  # AIX sometimes has problems with the GCC collect2 program.  For some
14923  # reason, if we set the COLLECT_NAMES environment variable, the problems
14924  # vanish in a puff of smoke.
14925  if test "X${COLLECT_NAMES+set}" != Xset; then
14926    COLLECT_NAMES=
14927    export COLLECT_NAMES
14928  fi
14929  ;;
14930esac
14931
14932# Global variables:
14933ofile=libtool
14934can_build_shared=yes
14935
14936# All known linkers require a `.a' archive for static linking (except MSVC,
14937# which needs '.lib').
14938libext=a
14939
14940with_gnu_ld="$lt_cv_prog_gnu_ld"
14941
14942old_CC="$CC"
14943old_CFLAGS="$CFLAGS"
14944
14945# Set sane defaults for various variables
14946test -z "$CC" && CC=cc
14947test -z "$LTCC" && LTCC=$CC
14948test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14949test -z "$LD" && LD=ld
14950test -z "$ac_objext" && ac_objext=o
14951
14952for cc_temp in $compiler""; do
14953  case $cc_temp in
14954    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14955    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14956    \-*) ;;
14957    *) break;;
14958  esac
14959done
14960cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14961
14962
14963# Only perform the check for file, if the check method requires it
14964test -z "$MAGIC_CMD" && MAGIC_CMD=file
14965case $deplibs_check_method in
14966file_magic*)
14967  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14969$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14970if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14971  $as_echo_n "(cached) " >&6
14972else
14973  case $MAGIC_CMD in
14974[\\/*] |  ?:[\\/]*)
14975  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14976  ;;
14977*)
14978  lt_save_MAGIC_CMD="$MAGIC_CMD"
14979  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14980  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14981  for ac_dir in $ac_dummy; do
14982    IFS="$lt_save_ifs"
14983    test -z "$ac_dir" && ac_dir=.
14984    if test -f $ac_dir/${ac_tool_prefix}file; then
14985      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14986      if test -n "$file_magic_test_file"; then
14987	case $deplibs_check_method in
14988	"file_magic "*)
14989	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14990	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14991	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14992	    $EGREP "$file_magic_regex" > /dev/null; then
14993	    :
14994	  else
14995	    cat <<_LT_EOF 1>&2
14996
14997*** Warning: the command libtool uses to detect shared libraries,
14998*** $file_magic_cmd, produces output that libtool cannot recognize.
14999*** The result is that libtool may fail to recognize shared libraries
15000*** as such.  This will affect the creation of libtool libraries that
15001*** depend on shared libraries, but programs linked with such libtool
15002*** libraries will work regardless of this problem.  Nevertheless, you
15003*** may want to report the problem to your system manager and/or to
15004*** bug-libtool@gnu.org
15005
15006_LT_EOF
15007	  fi ;;
15008	esac
15009      fi
15010      break
15011    fi
15012  done
15013  IFS="$lt_save_ifs"
15014  MAGIC_CMD="$lt_save_MAGIC_CMD"
15015  ;;
15016esac
15017fi
15018
15019MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15020if test -n "$MAGIC_CMD"; then
15021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15022$as_echo "$MAGIC_CMD" >&6; }
15023else
15024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025$as_echo "no" >&6; }
15026fi
15027
15028
15029
15030
15031
15032if test -z "$lt_cv_path_MAGIC_CMD"; then
15033  if test -n "$ac_tool_prefix"; then
15034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15035$as_echo_n "checking for file... " >&6; }
15036if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15037  $as_echo_n "(cached) " >&6
15038else
15039  case $MAGIC_CMD in
15040[\\/*] |  ?:[\\/]*)
15041  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15042  ;;
15043*)
15044  lt_save_MAGIC_CMD="$MAGIC_CMD"
15045  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15046  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15047  for ac_dir in $ac_dummy; do
15048    IFS="$lt_save_ifs"
15049    test -z "$ac_dir" && ac_dir=.
15050    if test -f $ac_dir/file; then
15051      lt_cv_path_MAGIC_CMD="$ac_dir/file"
15052      if test -n "$file_magic_test_file"; then
15053	case $deplibs_check_method in
15054	"file_magic "*)
15055	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15056	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15057	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15058	    $EGREP "$file_magic_regex" > /dev/null; then
15059	    :
15060	  else
15061	    cat <<_LT_EOF 1>&2
15062
15063*** Warning: the command libtool uses to detect shared libraries,
15064*** $file_magic_cmd, produces output that libtool cannot recognize.
15065*** The result is that libtool may fail to recognize shared libraries
15066*** as such.  This will affect the creation of libtool libraries that
15067*** depend on shared libraries, but programs linked with such libtool
15068*** libraries will work regardless of this problem.  Nevertheless, you
15069*** may want to report the problem to your system manager and/or to
15070*** bug-libtool@gnu.org
15071
15072_LT_EOF
15073	  fi ;;
15074	esac
15075      fi
15076      break
15077    fi
15078  done
15079  IFS="$lt_save_ifs"
15080  MAGIC_CMD="$lt_save_MAGIC_CMD"
15081  ;;
15082esac
15083fi
15084
15085MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15086if test -n "$MAGIC_CMD"; then
15087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15088$as_echo "$MAGIC_CMD" >&6; }
15089else
15090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15091$as_echo "no" >&6; }
15092fi
15093
15094
15095  else
15096    MAGIC_CMD=:
15097  fi
15098fi
15099
15100  fi
15101  ;;
15102esac
15103
15104# Use C for the default configuration in the libtool script
15105
15106lt_save_CC="$CC"
15107ac_ext=c
15108ac_cpp='$CPP $CPPFLAGS'
15109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15111ac_compiler_gnu=$ac_cv_c_compiler_gnu
15112
15113
15114# Source file extension for C test sources.
15115ac_ext=c
15116
15117# Object file extension for compiled C test sources.
15118objext=o
15119objext=$objext
15120
15121# Code to be used in simple compile tests
15122lt_simple_compile_test_code="int some_variable = 0;"
15123
15124# Code to be used in simple link tests
15125lt_simple_link_test_code='int main(){return(0);}'
15126
15127
15128
15129
15130
15131
15132
15133# If no C compiler was specified, use CC.
15134LTCC=${LTCC-"$CC"}
15135
15136# If no C compiler flags were specified, use CFLAGS.
15137LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15138
15139# Allow CC to be a program name with arguments.
15140compiler=$CC
15141
15142# Save the default compiler, since it gets overwritten when the other
15143# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15144compiler_DEFAULT=$CC
15145
15146# save warnings/boilerplate of simple test code
15147ac_outfile=conftest.$ac_objext
15148echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15149eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15150_lt_compiler_boilerplate=`cat conftest.err`
15151$RM conftest*
15152
15153ac_outfile=conftest.$ac_objext
15154echo "$lt_simple_link_test_code" >conftest.$ac_ext
15155eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15156_lt_linker_boilerplate=`cat conftest.err`
15157$RM -r conftest*
15158
15159
15160## CAVEAT EMPTOR:
15161## There is no encapsulation within the following macros, do not change
15162## the running order or otherwise move them around unless you know exactly
15163## what you are doing...
15164if test -n "$compiler"; then
15165
15166lt_prog_compiler_no_builtin_flag=
15167
15168if test "$GCC" = yes; then
15169  case $cc_basename in
15170  nvcc*)
15171    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15172  *)
15173    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15174  esac
15175
15176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15177$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15178if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15179  $as_echo_n "(cached) " >&6
15180else
15181  lt_cv_prog_compiler_rtti_exceptions=no
15182   ac_outfile=conftest.$ac_objext
15183   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15184   lt_compiler_flag="-fno-rtti -fno-exceptions"
15185   # Insert the option either (1) after the last *FLAGS variable, or
15186   # (2) before a word containing "conftest.", or (3) at the end.
15187   # Note that $ac_compile itself does not contain backslashes and begins
15188   # with a dollar sign (not a hyphen), so the echo should work correctly.
15189   # The option is referenced via a variable to avoid confusing sed.
15190   lt_compile=`echo "$ac_compile" | $SED \
15191   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15192   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15193   -e 's:$: $lt_compiler_flag:'`
15194   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15195   (eval "$lt_compile" 2>conftest.err)
15196   ac_status=$?
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   if (exit $ac_status) && test -s "$ac_outfile"; then
15200     # The compiler can only warn and ignore the option if not recognized
15201     # So say no if there are warnings other than the usual output.
15202     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15203     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15204     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15205       lt_cv_prog_compiler_rtti_exceptions=yes
15206     fi
15207   fi
15208   $RM conftest*
15209
15210fi
15211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15212$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15213
15214if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15215    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15216else
15217    :
15218fi
15219
15220fi
15221
15222
15223
15224
15225
15226
15227  lt_prog_compiler_wl=
15228lt_prog_compiler_pic=
15229lt_prog_compiler_static=
15230
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15232$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15233
15234  if test "$GCC" = yes; then
15235    lt_prog_compiler_wl='-Wl,'
15236    lt_prog_compiler_static='-static'
15237
15238    case $host_os in
15239      aix*)
15240      # All AIX code is PIC.
15241      if test "$host_cpu" = ia64; then
15242	# AIX 5 now supports IA64 processor
15243	lt_prog_compiler_static='-Bstatic'
15244      fi
15245      lt_prog_compiler_pic='-fPIC'
15246      ;;
15247
15248    amigaos*)
15249      case $host_cpu in
15250      powerpc)
15251            # see comment about AmigaOS4 .so support
15252            lt_prog_compiler_pic='-fPIC'
15253        ;;
15254      m68k)
15255            # FIXME: we need at least 68020 code to build shared libraries, but
15256            # adding the `-m68020' flag to GCC prevents building anything better,
15257            # like `-m68040'.
15258            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15259        ;;
15260      esac
15261      ;;
15262
15263    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15264      # PIC is the default for these OSes.
15265      ;;
15266
15267    mingw* | cygwin* | pw32* | os2* | cegcc*)
15268      # This hack is so that the source file can tell whether it is being
15269      # built for inclusion in a dll (and should export symbols for example).
15270      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15271      # (--disable-auto-import) libraries
15272      lt_prog_compiler_pic='-DDLL_EXPORT'
15273      ;;
15274
15275    darwin* | rhapsody*)
15276      # PIC is the default on this platform
15277      # Common symbols not allowed in MH_DYLIB files
15278      lt_prog_compiler_pic='-fno-common'
15279      ;;
15280
15281    haiku*)
15282      # PIC is the default for Haiku.
15283      ;;
15284
15285    hpux*)
15286      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15287      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15288      # sets the default TLS model and affects inlining.
15289      case $host_cpu in
15290      hppa*64*)
15291	# +Z the default
15292	;;
15293      *)
15294	lt_prog_compiler_pic='-fPIC'
15295	;;
15296      esac
15297      ;;
15298
15299    interix[3-9]*)
15300      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15301      # Instead, we relocate shared libraries at runtime.
15302      ;;
15303
15304    msdosdjgpp*)
15305      # Just because we use GCC doesn't mean we suddenly get shared libraries
15306      # on systems that don't support them.
15307      lt_prog_compiler_can_build_shared=no
15308      enable_shared=no
15309      ;;
15310
15311    *nto* | *qnx*)
15312      # QNX uses GNU C++, but need to define -shared option too, otherwise
15313      # it will coredump.
15314      lt_prog_compiler_pic='-fPIC -shared'
15315      ;;
15316
15317    sysv4*MP*)
15318      if test -d /usr/nec; then
15319	lt_prog_compiler_pic=-Kconform_pic
15320      fi
15321      ;;
15322
15323    *)
15324      lt_prog_compiler_pic='-fPIC'
15325      ;;
15326    esac
15327
15328    case $cc_basename in
15329    nvcc*) # Cuda Compiler Driver 2.2
15330      lt_prog_compiler_wl='-Xlinker '
15331      lt_prog_compiler_pic='-Xcompiler -fPIC'
15332      ;;
15333    esac
15334  else
15335    # PORTME Check for flag to pass linker flags through the system compiler.
15336    case $host_os in
15337    aix*)
15338      lt_prog_compiler_wl='-Wl,'
15339      if test "$host_cpu" = ia64; then
15340	# AIX 5 now supports IA64 processor
15341	lt_prog_compiler_static='-Bstatic'
15342      else
15343	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15344      fi
15345      ;;
15346
15347    mingw* | cygwin* | pw32* | os2* | cegcc*)
15348      # This hack is so that the source file can tell whether it is being
15349      # built for inclusion in a dll (and should export symbols for example).
15350      lt_prog_compiler_pic='-DDLL_EXPORT'
15351      ;;
15352
15353    hpux9* | hpux10* | hpux11*)
15354      lt_prog_compiler_wl='-Wl,'
15355      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15356      # not for PA HP-UX.
15357      case $host_cpu in
15358      hppa*64*|ia64*)
15359	# +Z the default
15360	;;
15361      *)
15362	lt_prog_compiler_pic='+Z'
15363	;;
15364      esac
15365      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15366      lt_prog_compiler_static='${wl}-a ${wl}archive'
15367      ;;
15368
15369    irix5* | irix6* | nonstopux*)
15370      lt_prog_compiler_wl='-Wl,'
15371      # PIC (with -KPIC) is the default.
15372      lt_prog_compiler_static='-non_shared'
15373      ;;
15374
15375    linux* | k*bsd*-gnu | kopensolaris*-gnu)
15376      case $cc_basename in
15377      # old Intel for x86_64 which still supported -KPIC.
15378      ecc*)
15379	lt_prog_compiler_wl='-Wl,'
15380	lt_prog_compiler_pic='-KPIC'
15381	lt_prog_compiler_static='-static'
15382        ;;
15383      # icc used to be incompatible with GCC.
15384      # ICC 10 doesn't accept -KPIC any more.
15385      icc* | ifort*)
15386	lt_prog_compiler_wl='-Wl,'
15387	lt_prog_compiler_pic='-fPIC'
15388	lt_prog_compiler_static='-static'
15389        ;;
15390      # Lahey Fortran 8.1.
15391      lf95*)
15392	lt_prog_compiler_wl='-Wl,'
15393	lt_prog_compiler_pic='--shared'
15394	lt_prog_compiler_static='--static'
15395	;;
15396      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15397        # Portland Group compilers (*not* the Pentium gcc compiler,
15398	# which looks to be a dead project)
15399	lt_prog_compiler_wl='-Wl,'
15400	lt_prog_compiler_pic='-fpic'
15401	lt_prog_compiler_static='-Bstatic'
15402        ;;
15403      ccc*)
15404        lt_prog_compiler_wl='-Wl,'
15405        # All Alpha code is PIC.
15406        lt_prog_compiler_static='-non_shared'
15407        ;;
15408      xl* | bgxl* | bgf* | mpixl*)
15409	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15410	lt_prog_compiler_wl='-Wl,'
15411	lt_prog_compiler_pic='-qpic'
15412	lt_prog_compiler_static='-qstaticlink'
15413	;;
15414      *)
15415	case `$CC -V 2>&1 | sed 5q` in
15416	*Sun\ F* | *Sun*Fortran*)
15417	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15418	  lt_prog_compiler_pic='-KPIC'
15419	  lt_prog_compiler_static='-Bstatic'
15420	  lt_prog_compiler_wl=''
15421	  ;;
15422	*Sun\ C*)
15423	  # Sun C 5.9
15424	  lt_prog_compiler_pic='-KPIC'
15425	  lt_prog_compiler_static='-Bstatic'
15426	  lt_prog_compiler_wl='-Wl,'
15427	  ;;
15428	esac
15429	;;
15430      esac
15431      ;;
15432
15433    newsos6)
15434      lt_prog_compiler_pic='-KPIC'
15435      lt_prog_compiler_static='-Bstatic'
15436      ;;
15437
15438    *nto* | *qnx*)
15439      # QNX uses GNU C++, but need to define -shared option too, otherwise
15440      # it will coredump.
15441      lt_prog_compiler_pic='-fPIC -shared'
15442      ;;
15443
15444    osf3* | osf4* | osf5*)
15445      lt_prog_compiler_wl='-Wl,'
15446      # All OSF/1 code is PIC.
15447      lt_prog_compiler_static='-non_shared'
15448      ;;
15449
15450    rdos*)
15451      lt_prog_compiler_static='-non_shared'
15452      ;;
15453
15454    solaris*)
15455      lt_prog_compiler_pic='-KPIC'
15456      lt_prog_compiler_static='-Bstatic'
15457      case $cc_basename in
15458      f77* | f90* | f95*)
15459	lt_prog_compiler_wl='-Qoption ld ';;
15460      *)
15461	lt_prog_compiler_wl='-Wl,';;
15462      esac
15463      ;;
15464
15465    sunos4*)
15466      lt_prog_compiler_wl='-Qoption ld '
15467      lt_prog_compiler_pic='-PIC'
15468      lt_prog_compiler_static='-Bstatic'
15469      ;;
15470
15471    sysv4 | sysv4.2uw2* | sysv4.3*)
15472      lt_prog_compiler_wl='-Wl,'
15473      lt_prog_compiler_pic='-KPIC'
15474      lt_prog_compiler_static='-Bstatic'
15475      ;;
15476
15477    sysv4*MP*)
15478      if test -d /usr/nec ;then
15479	lt_prog_compiler_pic='-Kconform_pic'
15480	lt_prog_compiler_static='-Bstatic'
15481      fi
15482      ;;
15483
15484    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15485      lt_prog_compiler_wl='-Wl,'
15486      lt_prog_compiler_pic='-KPIC'
15487      lt_prog_compiler_static='-Bstatic'
15488      ;;
15489
15490    unicos*)
15491      lt_prog_compiler_wl='-Wl,'
15492      lt_prog_compiler_can_build_shared=no
15493      ;;
15494
15495    uts4*)
15496      lt_prog_compiler_pic='-pic'
15497      lt_prog_compiler_static='-Bstatic'
15498      ;;
15499
15500    *)
15501      lt_prog_compiler_can_build_shared=no
15502      ;;
15503    esac
15504  fi
15505
15506case $host_os in
15507  # For platforms which do not support PIC, -DPIC is meaningless:
15508  *djgpp*)
15509    lt_prog_compiler_pic=
15510    ;;
15511  *)
15512    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15513    ;;
15514esac
15515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15516$as_echo "$lt_prog_compiler_pic" >&6; }
15517
15518
15519
15520
15521
15522
15523#
15524# Check to make sure the PIC flag actually works.
15525#
15526if test -n "$lt_prog_compiler_pic"; then
15527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15528$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15529if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15530  $as_echo_n "(cached) " >&6
15531else
15532  lt_cv_prog_compiler_pic_works=no
15533   ac_outfile=conftest.$ac_objext
15534   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15535   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15536   # Insert the option either (1) after the last *FLAGS variable, or
15537   # (2) before a word containing "conftest.", or (3) at the end.
15538   # Note that $ac_compile itself does not contain backslashes and begins
15539   # with a dollar sign (not a hyphen), so the echo should work correctly.
15540   # The option is referenced via a variable to avoid confusing sed.
15541   lt_compile=`echo "$ac_compile" | $SED \
15542   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15543   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15544   -e 's:$: $lt_compiler_flag:'`
15545   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15546   (eval "$lt_compile" 2>conftest.err)
15547   ac_status=$?
15548   cat conftest.err >&5
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   if (exit $ac_status) && test -s "$ac_outfile"; then
15551     # The compiler can only warn and ignore the option if not recognized
15552     # So say no if there are warnings other than the usual output.
15553     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15554     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15555     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15556       lt_cv_prog_compiler_pic_works=yes
15557     fi
15558   fi
15559   $RM conftest*
15560
15561fi
15562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15563$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15564
15565if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15566    case $lt_prog_compiler_pic in
15567     "" | " "*) ;;
15568     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15569     esac
15570else
15571    lt_prog_compiler_pic=
15572     lt_prog_compiler_can_build_shared=no
15573fi
15574
15575fi
15576
15577
15578
15579
15580
15581
15582#
15583# Check to make sure the static flag actually works.
15584#
15585wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15587$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15588if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15589  $as_echo_n "(cached) " >&6
15590else
15591  lt_cv_prog_compiler_static_works=no
15592   save_LDFLAGS="$LDFLAGS"
15593   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15594   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15595   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15596     # The linker can only warn and ignore the option if not recognized
15597     # So say no if there are warnings
15598     if test -s conftest.err; then
15599       # Append any errors to the config.log.
15600       cat conftest.err 1>&5
15601       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15602       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15603       if diff conftest.exp conftest.er2 >/dev/null; then
15604         lt_cv_prog_compiler_static_works=yes
15605       fi
15606     else
15607       lt_cv_prog_compiler_static_works=yes
15608     fi
15609   fi
15610   $RM -r conftest*
15611   LDFLAGS="$save_LDFLAGS"
15612
15613fi
15614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15615$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15616
15617if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15618    :
15619else
15620    lt_prog_compiler_static=
15621fi
15622
15623
15624
15625
15626
15627
15628
15629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15630$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15631if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15632  $as_echo_n "(cached) " >&6
15633else
15634  lt_cv_prog_compiler_c_o=no
15635   $RM -r conftest 2>/dev/null
15636   mkdir conftest
15637   cd conftest
15638   mkdir out
15639   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15640
15641   lt_compiler_flag="-o out/conftest2.$ac_objext"
15642   # Insert the option either (1) after the last *FLAGS variable, or
15643   # (2) before a word containing "conftest.", or (3) at the end.
15644   # Note that $ac_compile itself does not contain backslashes and begins
15645   # with a dollar sign (not a hyphen), so the echo should work correctly.
15646   lt_compile=`echo "$ac_compile" | $SED \
15647   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15648   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15649   -e 's:$: $lt_compiler_flag:'`
15650   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15651   (eval "$lt_compile" 2>out/conftest.err)
15652   ac_status=$?
15653   cat out/conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15656   then
15657     # The compiler can only warn and ignore the option if not recognized
15658     # So say no if there are warnings
15659     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15660     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15661     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15662       lt_cv_prog_compiler_c_o=yes
15663     fi
15664   fi
15665   chmod u+w . 2>&5
15666   $RM conftest*
15667   # SGI C++ compiler will create directory out/ii_files/ for
15668   # template instantiation
15669   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15670   $RM out/* && rmdir out
15671   cd ..
15672   $RM -r conftest
15673   $RM conftest*
15674
15675fi
15676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15677$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15678
15679
15680
15681
15682
15683
15684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15685$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15686if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15687  $as_echo_n "(cached) " >&6
15688else
15689  lt_cv_prog_compiler_c_o=no
15690   $RM -r conftest 2>/dev/null
15691   mkdir conftest
15692   cd conftest
15693   mkdir out
15694   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15695
15696   lt_compiler_flag="-o out/conftest2.$ac_objext"
15697   # Insert the option either (1) after the last *FLAGS variable, or
15698   # (2) before a word containing "conftest.", or (3) at the end.
15699   # Note that $ac_compile itself does not contain backslashes and begins
15700   # with a dollar sign (not a hyphen), so the echo should work correctly.
15701   lt_compile=`echo "$ac_compile" | $SED \
15702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15704   -e 's:$: $lt_compiler_flag:'`
15705   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15706   (eval "$lt_compile" 2>out/conftest.err)
15707   ac_status=$?
15708   cat out/conftest.err >&5
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15711   then
15712     # The compiler can only warn and ignore the option if not recognized
15713     # So say no if there are warnings
15714     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15715     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15716     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15717       lt_cv_prog_compiler_c_o=yes
15718     fi
15719   fi
15720   chmod u+w . 2>&5
15721   $RM conftest*
15722   # SGI C++ compiler will create directory out/ii_files/ for
15723   # template instantiation
15724   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15725   $RM out/* && rmdir out
15726   cd ..
15727   $RM -r conftest
15728   $RM conftest*
15729
15730fi
15731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15732$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15733
15734
15735
15736
15737hard_links="nottested"
15738if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15739  # do not overwrite the value of need_locks provided by the user
15740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15741$as_echo_n "checking if we can lock with hard links... " >&6; }
15742  hard_links=yes
15743  $RM conftest*
15744  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15745  touch conftest.a
15746  ln conftest.a conftest.b 2>&5 || hard_links=no
15747  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15749$as_echo "$hard_links" >&6; }
15750  if test "$hard_links" = no; then
15751    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15752$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15753    need_locks=warn
15754  fi
15755else
15756  need_locks=no
15757fi
15758
15759
15760
15761
15762
15763
15764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15765$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15766
15767  runpath_var=
15768  allow_undefined_flag=
15769  always_export_symbols=no
15770  archive_cmds=
15771  archive_expsym_cmds=
15772  compiler_needs_object=no
15773  enable_shared_with_static_runtimes=no
15774  export_dynamic_flag_spec=
15775  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15776  hardcode_automatic=no
15777  hardcode_direct=no
15778  hardcode_direct_absolute=no
15779  hardcode_libdir_flag_spec=
15780  hardcode_libdir_flag_spec_ld=
15781  hardcode_libdir_separator=
15782  hardcode_minus_L=no
15783  hardcode_shlibpath_var=unsupported
15784  inherit_rpath=no
15785  link_all_deplibs=unknown
15786  module_cmds=
15787  module_expsym_cmds=
15788  old_archive_from_new_cmds=
15789  old_archive_from_expsyms_cmds=
15790  thread_safe_flag_spec=
15791  whole_archive_flag_spec=
15792  # include_expsyms should be a list of space-separated symbols to be *always*
15793  # included in the symbol list
15794  include_expsyms=
15795  # exclude_expsyms can be an extended regexp of symbols to exclude
15796  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15797  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15798  # as well as any symbol that contains `d'.
15799  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15800  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15801  # platforms (ab)use it in PIC code, but their linkers get confused if
15802  # the symbol is explicitly referenced.  Since portable code cannot
15803  # rely on this symbol name, it's probably fine to never include it in
15804  # preloaded symbol tables.
15805  # Exclude shared library initialization/finalization symbols.
15806  extract_expsyms_cmds=
15807
15808  case $host_os in
15809  cygwin* | mingw* | pw32* | cegcc*)
15810    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15811    # When not using gcc, we currently assume that we are using
15812    # Microsoft Visual C++.
15813    if test "$GCC" != yes; then
15814      with_gnu_ld=no
15815    fi
15816    ;;
15817  interix*)
15818    # we just hope/assume this is gcc and not c89 (= MSVC++)
15819    with_gnu_ld=yes
15820    ;;
15821  openbsd*)
15822    with_gnu_ld=no
15823    ;;
15824  esac
15825
15826  ld_shlibs=yes
15827
15828  # On some targets, GNU ld is compatible enough with the native linker
15829  # that we're better off using the native interface for both.
15830  lt_use_gnu_ld_interface=no
15831  if test "$with_gnu_ld" = yes; then
15832    case $host_os in
15833      aix*)
15834	# The AIX port of GNU ld has always aspired to compatibility
15835	# with the native linker.  However, as the warning in the GNU ld
15836	# block says, versions before 2.19.5* couldn't really create working
15837	# shared libraries, regardless of the interface used.
15838	case `$LD -v 2>&1` in
15839	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15840	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15841	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15842	  *)
15843	    lt_use_gnu_ld_interface=yes
15844	    ;;
15845	esac
15846	;;
15847      *)
15848	lt_use_gnu_ld_interface=yes
15849	;;
15850    esac
15851  fi
15852
15853  if test "$lt_use_gnu_ld_interface" = yes; then
15854    # If archive_cmds runs LD, not CC, wlarc should be empty
15855    wlarc='${wl}'
15856
15857    # Set some defaults for GNU ld with shared library support. These
15858    # are reset later if shared libraries are not supported. Putting them
15859    # here allows them to be overridden if necessary.
15860    runpath_var=LD_RUN_PATH
15861    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15862    export_dynamic_flag_spec='${wl}--export-dynamic'
15863    # ancient GNU ld didn't support --whole-archive et. al.
15864    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15865      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15866    else
15867      whole_archive_flag_spec=
15868    fi
15869    supports_anon_versioning=no
15870    case `$LD -v 2>&1` in
15871      *GNU\ gold*) supports_anon_versioning=yes ;;
15872      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15873      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15874      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15875      *\ 2.11.*) ;; # other 2.11 versions
15876      *) supports_anon_versioning=yes ;;
15877    esac
15878
15879    # See if GNU ld supports shared libraries.
15880    case $host_os in
15881    aix[3-9]*)
15882      # On AIX/PPC, the GNU linker is very broken
15883      if test "$host_cpu" != ia64; then
15884	ld_shlibs=no
15885	cat <<_LT_EOF 1>&2
15886
15887*** Warning: the GNU linker, at least up to release 2.19, is reported
15888*** to be unable to reliably create shared libraries on AIX.
15889*** Therefore, libtool is disabling shared libraries support.  If you
15890*** really care for shared libraries, you may want to install binutils
15891*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15892*** You will then need to restart the configuration process.
15893
15894_LT_EOF
15895      fi
15896      ;;
15897
15898    amigaos*)
15899      case $host_cpu in
15900      powerpc)
15901            # see comment about AmigaOS4 .so support
15902            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15903            archive_expsym_cmds=''
15904        ;;
15905      m68k)
15906            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)'
15907            hardcode_libdir_flag_spec='-L$libdir'
15908            hardcode_minus_L=yes
15909        ;;
15910      esac
15911      ;;
15912
15913    beos*)
15914      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15915	allow_undefined_flag=unsupported
15916	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15917	# support --undefined.  This deserves some investigation.  FIXME
15918	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15919      else
15920	ld_shlibs=no
15921      fi
15922      ;;
15923
15924    cygwin* | mingw* | pw32* | cegcc*)
15925      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15926      # as there is no search path for DLLs.
15927      hardcode_libdir_flag_spec='-L$libdir'
15928      export_dynamic_flag_spec='${wl}--export-all-symbols'
15929      allow_undefined_flag=unsupported
15930      always_export_symbols=no
15931      enable_shared_with_static_runtimes=yes
15932      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15933
15934      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15935        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15936	# If the export-symbols file already is a .def file (1st line
15937	# is EXPORTS), use it as is; otherwise, prepend...
15938	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15939	  cp $export_symbols $output_objdir/$soname.def;
15940	else
15941	  echo EXPORTS > $output_objdir/$soname.def;
15942	  cat $export_symbols >> $output_objdir/$soname.def;
15943	fi~
15944	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15945      else
15946	ld_shlibs=no
15947      fi
15948      ;;
15949
15950    haiku*)
15951      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15952      link_all_deplibs=yes
15953      ;;
15954
15955    interix[3-9]*)
15956      hardcode_direct=no
15957      hardcode_shlibpath_var=no
15958      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15959      export_dynamic_flag_spec='${wl}-E'
15960      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15961      # Instead, shared libraries are loaded at an image base (0x10000000 by
15962      # default) and relocated if they conflict, which is a slow very memory
15963      # consuming and fragmenting process.  To avoid this, we pick a random,
15964      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15965      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15966      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15967      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'
15968      ;;
15969
15970    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15971      tmp_diet=no
15972      if test "$host_os" = linux-dietlibc; then
15973	case $cc_basename in
15974	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15975	esac
15976      fi
15977      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15978	 && test "$tmp_diet" = no
15979      then
15980	tmp_addflag=' $pic_flag'
15981	tmp_sharedflag='-shared'
15982	case $cc_basename,$host_cpu in
15983        pgcc*)				# Portland Group C compiler
15984	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15985	  tmp_addflag=' $pic_flag'
15986	  ;;
15987	pgf77* | pgf90* | pgf95* | pgfortran*)
15988					# Portland Group f77 and f90 compilers
15989	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15990	  tmp_addflag=' $pic_flag -Mnomain' ;;
15991	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15992	  tmp_addflag=' -i_dynamic' ;;
15993	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15994	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15995	ifc* | ifort*)			# Intel Fortran compiler
15996	  tmp_addflag=' -nofor_main' ;;
15997	lf95*)				# Lahey Fortran 8.1
15998	  whole_archive_flag_spec=
15999	  tmp_sharedflag='--shared' ;;
16000	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16001	  tmp_sharedflag='-qmkshrobj'
16002	  tmp_addflag= ;;
16003	nvcc*)	# Cuda Compiler Driver 2.2
16004	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16005	  compiler_needs_object=yes
16006	  ;;
16007	esac
16008	case `$CC -V 2>&1 | sed 5q` in
16009	*Sun\ C*)			# Sun C 5.9
16010	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16011	  compiler_needs_object=yes
16012	  tmp_sharedflag='-G' ;;
16013	*Sun\ F*)			# Sun Fortran 8.3
16014	  tmp_sharedflag='-G' ;;
16015	esac
16016	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017
16018        if test "x$supports_anon_versioning" = xyes; then
16019          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16020	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16021	    echo "local: *; };" >> $output_objdir/$libname.ver~
16022	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16023        fi
16024
16025	case $cc_basename in
16026	xlf* | bgf* | bgxlf* | mpixlf*)
16027	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16028	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16029	  hardcode_libdir_flag_spec=
16030	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
16031	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16032	  if test "x$supports_anon_versioning" = xyes; then
16033	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16034	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16035	      echo "local: *; };" >> $output_objdir/$libname.ver~
16036	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16037	  fi
16038	  ;;
16039	esac
16040      else
16041        ld_shlibs=no
16042      fi
16043      ;;
16044
16045    netbsd*)
16046      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16047	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16048	wlarc=
16049      else
16050	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16051	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16052      fi
16053      ;;
16054
16055    solaris*)
16056      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16057	ld_shlibs=no
16058	cat <<_LT_EOF 1>&2
16059
16060*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16061*** create shared libraries on Solaris systems.  Therefore, libtool
16062*** is disabling shared libraries support.  We urge you to upgrade GNU
16063*** binutils to release 2.9.1 or newer.  Another option is to modify
16064*** your PATH or compiler configuration so that the native linker is
16065*** used, and then restart.
16066
16067_LT_EOF
16068      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16069	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16070	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16071      else
16072	ld_shlibs=no
16073      fi
16074      ;;
16075
16076    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16077      case `$LD -v 2>&1` in
16078        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16079	ld_shlibs=no
16080	cat <<_LT_EOF 1>&2
16081
16082*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16083*** reliably create shared libraries on SCO systems.  Therefore, libtool
16084*** is disabling shared libraries support.  We urge you to upgrade GNU
16085*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16086*** your PATH or compiler configuration so that the native linker is
16087*** used, and then restart.
16088
16089_LT_EOF
16090	;;
16091	*)
16092	  # For security reasons, it is highly recommended that you always
16093	  # use absolute paths for naming shared libraries, and exclude the
16094	  # DT_RUNPATH tag from executables and libraries.  But doing so
16095	  # requires that you compile everything twice, which is a pain.
16096	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16097	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16098	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16099	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16100	  else
16101	    ld_shlibs=no
16102	  fi
16103	;;
16104      esac
16105      ;;
16106
16107    sunos4*)
16108      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16109      wlarc=
16110      hardcode_direct=yes
16111      hardcode_shlibpath_var=no
16112      ;;
16113
16114    *)
16115      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16116	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16117	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16118      else
16119	ld_shlibs=no
16120      fi
16121      ;;
16122    esac
16123
16124    if test "$ld_shlibs" = no; then
16125      runpath_var=
16126      hardcode_libdir_flag_spec=
16127      export_dynamic_flag_spec=
16128      whole_archive_flag_spec=
16129    fi
16130  else
16131    # PORTME fill in a description of your system's linker (not GNU ld)
16132    case $host_os in
16133    aix3*)
16134      allow_undefined_flag=unsupported
16135      always_export_symbols=yes
16136      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'
16137      # Note: this linker hardcodes the directories in LIBPATH if there
16138      # are no directories specified by -L.
16139      hardcode_minus_L=yes
16140      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16141	# Neither direct hardcoding nor static linking is supported with a
16142	# broken collect2.
16143	hardcode_direct=unsupported
16144      fi
16145      ;;
16146
16147    aix[4-9]*)
16148      if test "$host_cpu" = ia64; then
16149	# On IA64, the linker does run time linking by default, so we don't
16150	# have to do anything special.
16151	aix_use_runtimelinking=no
16152	exp_sym_flag='-Bexport'
16153	no_entry_flag=""
16154      else
16155	# If we're using GNU nm, then we don't want the "-C" option.
16156	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16157	# Also, AIX nm treats weak defined symbols like other global
16158	# defined symbols, whereas GNU nm marks them as "W".
16159	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16160	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16161	else
16162	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16163	fi
16164	aix_use_runtimelinking=no
16165
16166	# Test if we are trying to use run time linking or normal
16167	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16168	# need to do runtime linking.
16169	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16170	  for ld_flag in $LDFLAGS; do
16171	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16172	    aix_use_runtimelinking=yes
16173	    break
16174	  fi
16175	  done
16176	  ;;
16177	esac
16178
16179	exp_sym_flag='-bexport'
16180	no_entry_flag='-bnoentry'
16181      fi
16182
16183      # When large executables or shared objects are built, AIX ld can
16184      # have problems creating the table of contents.  If linking a library
16185      # or program results in "error TOC overflow" add -mminimal-toc to
16186      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16187      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16188
16189      archive_cmds=''
16190      hardcode_direct=yes
16191      hardcode_direct_absolute=yes
16192      hardcode_libdir_separator=':'
16193      link_all_deplibs=yes
16194      file_list_spec='${wl}-f,'
16195
16196      if test "$GCC" = yes; then
16197	case $host_os in aix4.[012]|aix4.[012].*)
16198	# We only want to do this on AIX 4.2 and lower, the check
16199	# below for broken collect2 doesn't work under 4.3+
16200	  collect2name=`${CC} -print-prog-name=collect2`
16201	  if test -f "$collect2name" &&
16202	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16203	  then
16204	  # We have reworked collect2
16205	  :
16206	  else
16207	  # We have old collect2
16208	  hardcode_direct=unsupported
16209	  # It fails to find uninstalled libraries when the uninstalled
16210	  # path is not listed in the libpath.  Setting hardcode_minus_L
16211	  # to unsupported forces relinking
16212	  hardcode_minus_L=yes
16213	  hardcode_libdir_flag_spec='-L$libdir'
16214	  hardcode_libdir_separator=
16215	  fi
16216	  ;;
16217	esac
16218	shared_flag='-shared'
16219	if test "$aix_use_runtimelinking" = yes; then
16220	  shared_flag="$shared_flag "'${wl}-G'
16221	fi
16222      else
16223	# not using gcc
16224	if test "$host_cpu" = ia64; then
16225	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16226	# chokes on -Wl,-G. The following line is correct:
16227	  shared_flag='-G'
16228	else
16229	  if test "$aix_use_runtimelinking" = yes; then
16230	    shared_flag='${wl}-G'
16231	  else
16232	    shared_flag='${wl}-bM:SRE'
16233	  fi
16234	fi
16235      fi
16236
16237      export_dynamic_flag_spec='${wl}-bexpall'
16238      # It seems that -bexpall does not export symbols beginning with
16239      # underscore (_), so it is better to generate a list of symbols to export.
16240      always_export_symbols=yes
16241      if test "$aix_use_runtimelinking" = yes; then
16242	# Warning - without using the other runtime loading flags (-brtl),
16243	# -berok will link without error, but may produce a broken library.
16244	allow_undefined_flag='-berok'
16245        # Determine the default libpath from the value encoded in an
16246        # empty executable.
16247        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h.  */
16249
16250int
16251main ()
16252{
16253
16254  ;
16255  return 0;
16256}
16257_ACEOF
16258if ac_fn_c_try_link "$LINENO"; then :
16259
16260lt_aix_libpath_sed='
16261    /Import File Strings/,/^$/ {
16262	/^0/ {
16263	    s/^0  *\(.*\)$/\1/
16264	    p
16265	}
16266    }'
16267aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16268# Check for a 64-bit object if we didn't find anything.
16269if test -z "$aix_libpath"; then
16270  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16271fi
16272fi
16273rm -f core conftest.err conftest.$ac_objext \
16274    conftest$ac_exeext conftest.$ac_ext
16275if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16276
16277        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16278        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16279      else
16280	if test "$host_cpu" = ia64; then
16281	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16282	  allow_undefined_flag="-z nodefs"
16283	  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"
16284	else
16285	 # Determine the default libpath from the value encoded in an
16286	 # empty executable.
16287	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288/* end confdefs.h.  */
16289
16290int
16291main ()
16292{
16293
16294  ;
16295  return 0;
16296}
16297_ACEOF
16298if ac_fn_c_try_link "$LINENO"; then :
16299
16300lt_aix_libpath_sed='
16301    /Import File Strings/,/^$/ {
16302	/^0/ {
16303	    s/^0  *\(.*\)$/\1/
16304	    p
16305	}
16306    }'
16307aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16308# Check for a 64-bit object if we didn't find anything.
16309if test -z "$aix_libpath"; then
16310  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16311fi
16312fi
16313rm -f core conftest.err conftest.$ac_objext \
16314    conftest$ac_exeext conftest.$ac_ext
16315if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16316
16317	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16318	  # Warning - without using the other run time loading flags,
16319	  # -berok will link without error, but may produce a broken library.
16320	  no_undefined_flag=' ${wl}-bernotok'
16321	  allow_undefined_flag=' ${wl}-berok'
16322	  if test "$with_gnu_ld" = yes; then
16323	    # We only use this code for GNU lds that support --whole-archive.
16324	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16325	  else
16326	    # Exported symbols can be pulled into shared objects from archives
16327	    whole_archive_flag_spec='$convenience'
16328	  fi
16329	  archive_cmds_need_lc=yes
16330	  # This is similar to how AIX traditionally builds its shared libraries.
16331	  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'
16332	fi
16333      fi
16334      ;;
16335
16336    amigaos*)
16337      case $host_cpu in
16338      powerpc)
16339            # see comment about AmigaOS4 .so support
16340            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16341            archive_expsym_cmds=''
16342        ;;
16343      m68k)
16344            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)'
16345            hardcode_libdir_flag_spec='-L$libdir'
16346            hardcode_minus_L=yes
16347        ;;
16348      esac
16349      ;;
16350
16351    bsdi[45]*)
16352      export_dynamic_flag_spec=-rdynamic
16353      ;;
16354
16355    cygwin* | mingw* | pw32* | cegcc*)
16356      # When not using gcc, we currently assume that we are using
16357      # Microsoft Visual C++.
16358      # hardcode_libdir_flag_spec is actually meaningless, as there is
16359      # no search path for DLLs.
16360      hardcode_libdir_flag_spec=' '
16361      allow_undefined_flag=unsupported
16362      # Tell ltmain to make .lib files, not .a files.
16363      libext=lib
16364      # Tell ltmain to make .dll files, not .so files.
16365      shrext_cmds=".dll"
16366      # FIXME: Setting linknames here is a bad hack.
16367      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16368      # The linker will automatically build a .lib file if we build a DLL.
16369      old_archive_from_new_cmds='true'
16370      # FIXME: Should let the user specify the lib program.
16371      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16372      fix_srcfile_path='`cygpath -w "$srcfile"`'
16373      enable_shared_with_static_runtimes=yes
16374      ;;
16375
16376    darwin* | rhapsody*)
16377
16378
16379  archive_cmds_need_lc=no
16380  hardcode_direct=no
16381  hardcode_automatic=yes
16382  hardcode_shlibpath_var=unsupported
16383  if test "$lt_cv_ld_force_load" = "yes"; then
16384    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16385  else
16386    whole_archive_flag_spec=''
16387  fi
16388  link_all_deplibs=yes
16389  allow_undefined_flag="$_lt_dar_allow_undefined"
16390  case $cc_basename in
16391     ifort*) _lt_dar_can_shared=yes ;;
16392     *) _lt_dar_can_shared=$GCC ;;
16393  esac
16394  if test "$_lt_dar_can_shared" = "yes"; then
16395    output_verbose_link_cmd=func_echo_all
16396    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16397    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16398    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}"
16399    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}"
16400
16401  else
16402  ld_shlibs=no
16403  fi
16404
16405      ;;
16406
16407    dgux*)
16408      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16409      hardcode_libdir_flag_spec='-L$libdir'
16410      hardcode_shlibpath_var=no
16411      ;;
16412
16413    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16414    # support.  Future versions do this automatically, but an explicit c++rt0.o
16415    # does not break anything, and helps significantly (at the cost of a little
16416    # extra space).
16417    freebsd2.2*)
16418      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16419      hardcode_libdir_flag_spec='-R$libdir'
16420      hardcode_direct=yes
16421      hardcode_shlibpath_var=no
16422      ;;
16423
16424    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16425    freebsd2.*)
16426      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16427      hardcode_direct=yes
16428      hardcode_minus_L=yes
16429      hardcode_shlibpath_var=no
16430      ;;
16431
16432    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16433    freebsd* | dragonfly*)
16434      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16435      hardcode_libdir_flag_spec='-R$libdir'
16436      hardcode_direct=yes
16437      hardcode_shlibpath_var=no
16438      ;;
16439
16440    hpux9*)
16441      if test "$GCC" = yes; then
16442	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'
16443      else
16444	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'
16445      fi
16446      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16447      hardcode_libdir_separator=:
16448      hardcode_direct=yes
16449
16450      # hardcode_minus_L: Not really in the search PATH,
16451      # but as the default location of the library.
16452      hardcode_minus_L=yes
16453      export_dynamic_flag_spec='${wl}-E'
16454      ;;
16455
16456    hpux10*)
16457      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16458	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16459      else
16460	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16461      fi
16462      if test "$with_gnu_ld" = no; then
16463	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16464	hardcode_libdir_flag_spec_ld='+b $libdir'
16465	hardcode_libdir_separator=:
16466	hardcode_direct=yes
16467	hardcode_direct_absolute=yes
16468	export_dynamic_flag_spec='${wl}-E'
16469	# hardcode_minus_L: Not really in the search PATH,
16470	# but as the default location of the library.
16471	hardcode_minus_L=yes
16472      fi
16473      ;;
16474
16475    hpux11*)
16476      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16477	case $host_cpu in
16478	hppa*64*)
16479	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16480	  ;;
16481	ia64*)
16482	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16483	  ;;
16484	*)
16485	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16486	  ;;
16487	esac
16488      else
16489	case $host_cpu in
16490	hppa*64*)
16491	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16492	  ;;
16493	ia64*)
16494	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16495	  ;;
16496	*)
16497
16498	  # Older versions of the 11.00 compiler do not understand -b yet
16499	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16500	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16501$as_echo_n "checking if $CC understands -b... " >&6; }
16502if test "${lt_cv_prog_compiler__b+set}" = set; then :
16503  $as_echo_n "(cached) " >&6
16504else
16505  lt_cv_prog_compiler__b=no
16506   save_LDFLAGS="$LDFLAGS"
16507   LDFLAGS="$LDFLAGS -b"
16508   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16509   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16510     # The linker can only warn and ignore the option if not recognized
16511     # So say no if there are warnings
16512     if test -s conftest.err; then
16513       # Append any errors to the config.log.
16514       cat conftest.err 1>&5
16515       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16516       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16517       if diff conftest.exp conftest.er2 >/dev/null; then
16518         lt_cv_prog_compiler__b=yes
16519       fi
16520     else
16521       lt_cv_prog_compiler__b=yes
16522     fi
16523   fi
16524   $RM -r conftest*
16525   LDFLAGS="$save_LDFLAGS"
16526
16527fi
16528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16529$as_echo "$lt_cv_prog_compiler__b" >&6; }
16530
16531if test x"$lt_cv_prog_compiler__b" = xyes; then
16532    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16533else
16534    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16535fi
16536
16537	  ;;
16538	esac
16539      fi
16540      if test "$with_gnu_ld" = no; then
16541	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16542	hardcode_libdir_separator=:
16543
16544	case $host_cpu in
16545	hppa*64*|ia64*)
16546	  hardcode_direct=no
16547	  hardcode_shlibpath_var=no
16548	  ;;
16549	*)
16550	  hardcode_direct=yes
16551	  hardcode_direct_absolute=yes
16552	  export_dynamic_flag_spec='${wl}-E'
16553
16554	  # hardcode_minus_L: Not really in the search PATH,
16555	  # but as the default location of the library.
16556	  hardcode_minus_L=yes
16557	  ;;
16558	esac
16559      fi
16560      ;;
16561
16562    irix5* | irix6* | nonstopux*)
16563      if test "$GCC" = yes; then
16564	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16565	# Try to use the -exported_symbol ld option, if it does not
16566	# work, assume that -exports_file does not work either and
16567	# implicitly export all symbols.
16568        save_LDFLAGS="$LDFLAGS"
16569        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16570        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571/* end confdefs.h.  */
16572int foo(void) {}
16573_ACEOF
16574if ac_fn_c_try_link "$LINENO"; then :
16575  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16576
16577fi
16578rm -f core conftest.err conftest.$ac_objext \
16579    conftest$ac_exeext conftest.$ac_ext
16580        LDFLAGS="$save_LDFLAGS"
16581      else
16582	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16583	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
16584      fi
16585      archive_cmds_need_lc='no'
16586      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16587      hardcode_libdir_separator=:
16588      inherit_rpath=yes
16589      link_all_deplibs=yes
16590      ;;
16591
16592    netbsd*)
16593      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16594	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16595      else
16596	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16597      fi
16598      hardcode_libdir_flag_spec='-R$libdir'
16599      hardcode_direct=yes
16600      hardcode_shlibpath_var=no
16601      ;;
16602
16603    newsos6)
16604      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605      hardcode_direct=yes
16606      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16607      hardcode_libdir_separator=:
16608      hardcode_shlibpath_var=no
16609      ;;
16610
16611    *nto* | *qnx*)
16612      ;;
16613
16614    openbsd*)
16615      if test -f /usr/libexec/ld.so; then
16616	hardcode_direct=yes
16617	hardcode_shlibpath_var=no
16618	hardcode_direct_absolute=yes
16619	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16620	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16621	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16622	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16623	  export_dynamic_flag_spec='${wl}-E'
16624	else
16625	  case $host_os in
16626	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16627	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16628	     hardcode_libdir_flag_spec='-R$libdir'
16629	     ;;
16630	   *)
16631	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16632	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16633	     ;;
16634	  esac
16635	fi
16636      else
16637	ld_shlibs=no
16638      fi
16639      ;;
16640
16641    os2*)
16642      hardcode_libdir_flag_spec='-L$libdir'
16643      hardcode_minus_L=yes
16644      allow_undefined_flag=unsupported
16645      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'
16646      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16647      ;;
16648
16649    osf3*)
16650      if test "$GCC" = yes; then
16651	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16652	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16653      else
16654	allow_undefined_flag=' -expect_unresolved \*'
16655	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16656      fi
16657      archive_cmds_need_lc='no'
16658      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16659      hardcode_libdir_separator=:
16660      ;;
16661
16662    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16663      if test "$GCC" = yes; then
16664	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16665	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16666	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16667      else
16668	allow_undefined_flag=' -expect_unresolved \*'
16669	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16670	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~
16671	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
16672
16673	# Both c and cxx compiler support -rpath directly
16674	hardcode_libdir_flag_spec='-rpath $libdir'
16675      fi
16676      archive_cmds_need_lc='no'
16677      hardcode_libdir_separator=:
16678      ;;
16679
16680    solaris*)
16681      no_undefined_flag=' -z defs'
16682      if test "$GCC" = yes; then
16683	wlarc='${wl}'
16684	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16685	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16686	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16687      else
16688	case `$CC -V 2>&1` in
16689	*"Compilers 5.0"*)
16690	  wlarc=''
16691	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16692	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16693	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16694	  ;;
16695	*)
16696	  wlarc='${wl}'
16697	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16698	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16699	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16700	  ;;
16701	esac
16702      fi
16703      hardcode_libdir_flag_spec='-R$libdir'
16704      hardcode_shlibpath_var=no
16705      case $host_os in
16706      solaris2.[0-5] | solaris2.[0-5].*) ;;
16707      *)
16708	# The compiler driver will combine and reorder linker options,
16709	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16710	# but is careful enough not to reorder.
16711	# Supported since Solaris 2.6 (maybe 2.5.1?)
16712	if test "$GCC" = yes; then
16713	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16714	else
16715	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16716	fi
16717	;;
16718      esac
16719      link_all_deplibs=yes
16720      ;;
16721
16722    sunos4*)
16723      if test "x$host_vendor" = xsequent; then
16724	# Use $CC to link under sequent, because it throws in some extra .o
16725	# files that make .init and .fini sections work.
16726	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16727      else
16728	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16729      fi
16730      hardcode_libdir_flag_spec='-L$libdir'
16731      hardcode_direct=yes
16732      hardcode_minus_L=yes
16733      hardcode_shlibpath_var=no
16734      ;;
16735
16736    sysv4)
16737      case $host_vendor in
16738	sni)
16739	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740	  hardcode_direct=yes # is this really true???
16741	;;
16742	siemens)
16743	  ## LD is ld it makes a PLAMLIB
16744	  ## CC just makes a GrossModule.
16745	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16746	  reload_cmds='$CC -r -o $output$reload_objs'
16747	  hardcode_direct=no
16748        ;;
16749	motorola)
16750	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16751	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16752	;;
16753      esac
16754      runpath_var='LD_RUN_PATH'
16755      hardcode_shlibpath_var=no
16756      ;;
16757
16758    sysv4.3*)
16759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760      hardcode_shlibpath_var=no
16761      export_dynamic_flag_spec='-Bexport'
16762      ;;
16763
16764    sysv4*MP*)
16765      if test -d /usr/nec; then
16766	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767	hardcode_shlibpath_var=no
16768	runpath_var=LD_RUN_PATH
16769	hardcode_runpath_var=yes
16770	ld_shlibs=yes
16771      fi
16772      ;;
16773
16774    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16775      no_undefined_flag='${wl}-z,text'
16776      archive_cmds_need_lc=no
16777      hardcode_shlibpath_var=no
16778      runpath_var='LD_RUN_PATH'
16779
16780      if test "$GCC" = yes; then
16781	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16782	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16783      else
16784	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16785	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16786      fi
16787      ;;
16788
16789    sysv5* | sco3.2v5* | sco5v6*)
16790      # Note: We can NOT use -z defs as we might desire, because we do not
16791      # link with -lc, and that would cause any symbols used from libc to
16792      # always be unresolved, which means just about no library would
16793      # ever link correctly.  If we're not using GNU ld we use -z text
16794      # though, which does catch some bad symbols but isn't as heavy-handed
16795      # as -z defs.
16796      no_undefined_flag='${wl}-z,text'
16797      allow_undefined_flag='${wl}-z,nodefs'
16798      archive_cmds_need_lc=no
16799      hardcode_shlibpath_var=no
16800      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16801      hardcode_libdir_separator=':'
16802      link_all_deplibs=yes
16803      export_dynamic_flag_spec='${wl}-Bexport'
16804      runpath_var='LD_RUN_PATH'
16805
16806      if test "$GCC" = yes; then
16807	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16808	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16809      else
16810	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16811	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16812      fi
16813      ;;
16814
16815    uts4*)
16816      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16817      hardcode_libdir_flag_spec='-L$libdir'
16818      hardcode_shlibpath_var=no
16819      ;;
16820
16821    *)
16822      ld_shlibs=no
16823      ;;
16824    esac
16825
16826    if test x$host_vendor = xsni; then
16827      case $host in
16828      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16829	export_dynamic_flag_spec='${wl}-Blargedynsym'
16830	;;
16831      esac
16832    fi
16833  fi
16834
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16836$as_echo "$ld_shlibs" >&6; }
16837test "$ld_shlibs" = no && can_build_shared=no
16838
16839with_gnu_ld=$with_gnu_ld
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855#
16856# Do we need to explicitly link libc?
16857#
16858case "x$archive_cmds_need_lc" in
16859x|xyes)
16860  # Assume -lc should be added
16861  archive_cmds_need_lc=yes
16862
16863  if test "$enable_shared" = yes && test "$GCC" = yes; then
16864    case $archive_cmds in
16865    *'~'*)
16866      # FIXME: we may have to deal with multi-command sequences.
16867      ;;
16868    '$CC '*)
16869      # Test whether the compiler implicitly links with -lc since on some
16870      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16871      # to ld, don't add -lc before -lgcc.
16872      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16873$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16874if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16875  $as_echo_n "(cached) " >&6
16876else
16877  $RM conftest*
16878	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16879
16880	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16881  (eval $ac_compile) 2>&5
16882  ac_status=$?
16883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16884  test $ac_status = 0; } 2>conftest.err; then
16885	  soname=conftest
16886	  lib=conftest
16887	  libobjs=conftest.$ac_objext
16888	  deplibs=
16889	  wl=$lt_prog_compiler_wl
16890	  pic_flag=$lt_prog_compiler_pic
16891	  compiler_flags=-v
16892	  linker_flags=-v
16893	  verstring=
16894	  output_objdir=.
16895	  libname=conftest
16896	  lt_save_allow_undefined_flag=$allow_undefined_flag
16897	  allow_undefined_flag=
16898	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16899  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16900  ac_status=$?
16901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16902  test $ac_status = 0; }
16903	  then
16904	    lt_cv_archive_cmds_need_lc=no
16905	  else
16906	    lt_cv_archive_cmds_need_lc=yes
16907	  fi
16908	  allow_undefined_flag=$lt_save_allow_undefined_flag
16909	else
16910	  cat conftest.err 1>&5
16911	fi
16912	$RM conftest*
16913
16914fi
16915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16916$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16917      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16918      ;;
16919    esac
16920  fi
16921  ;;
16922esac
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
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17081$as_echo_n "checking dynamic linker characteristics... " >&6; }
17082
17083if test "$GCC" = yes; then
17084  case $host_os in
17085    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17086    *) lt_awk_arg="/^libraries:/" ;;
17087  esac
17088  case $host_os in
17089    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17090    *) lt_sed_strip_eq="s,=/,/,g" ;;
17091  esac
17092  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17093  case $lt_search_path_spec in
17094  *\;*)
17095    # if the path contains ";" then we assume it to be the separator
17096    # otherwise default to the standard path separator (i.e. ":") - it is
17097    # assumed that no part of a normal pathname contains ";" but that should
17098    # okay in the real world where ";" in dirpaths is itself problematic.
17099    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17100    ;;
17101  *)
17102    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17103    ;;
17104  esac
17105  # Ok, now we have the path, separated by spaces, we can step through it
17106  # and add multilib dir if necessary.
17107  lt_tmp_lt_search_path_spec=
17108  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17109  for lt_sys_path in $lt_search_path_spec; do
17110    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17111      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17112    else
17113      test -d "$lt_sys_path" && \
17114	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17115    fi
17116  done
17117  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17118BEGIN {RS=" "; FS="/|\n";} {
17119  lt_foo="";
17120  lt_count=0;
17121  for (lt_i = NF; lt_i > 0; lt_i--) {
17122    if ($lt_i != "" && $lt_i != ".") {
17123      if ($lt_i == "..") {
17124        lt_count++;
17125      } else {
17126        if (lt_count == 0) {
17127          lt_foo="/" $lt_i lt_foo;
17128        } else {
17129          lt_count--;
17130        }
17131      }
17132    }
17133  }
17134  if (lt_foo != "") { lt_freq[lt_foo]++; }
17135  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17136}'`
17137  # AWK program above erroneously prepends '/' to C:/dos/paths
17138  # for these hosts.
17139  case $host_os in
17140    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17141      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17142  esac
17143  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17144else
17145  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17146fi
17147library_names_spec=
17148libname_spec='lib$name'
17149soname_spec=
17150shrext_cmds=".so"
17151postinstall_cmds=
17152postuninstall_cmds=
17153finish_cmds=
17154finish_eval=
17155shlibpath_var=
17156shlibpath_overrides_runpath=unknown
17157version_type=none
17158dynamic_linker="$host_os ld.so"
17159sys_lib_dlsearch_path_spec="/lib /usr/lib"
17160need_lib_prefix=unknown
17161hardcode_into_libs=no
17162
17163# when you set need_version to no, make sure it does not cause -set_version
17164# flags to be left without arguments
17165need_version=unknown
17166
17167case $host_os in
17168aix3*)
17169  version_type=linux
17170  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17171  shlibpath_var=LIBPATH
17172
17173  # AIX 3 has no versioning support, so we append a major version to the name.
17174  soname_spec='${libname}${release}${shared_ext}$major'
17175  ;;
17176
17177aix[4-9]*)
17178  version_type=linux
17179  need_lib_prefix=no
17180  need_version=no
17181  hardcode_into_libs=yes
17182  if test "$host_cpu" = ia64; then
17183    # AIX 5 supports IA64
17184    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17185    shlibpath_var=LD_LIBRARY_PATH
17186  else
17187    # With GCC up to 2.95.x, collect2 would create an import file
17188    # for dependence libraries.  The import file would start with
17189    # the line `#! .'.  This would cause the generated library to
17190    # depend on `.', always an invalid library.  This was fixed in
17191    # development snapshots of GCC prior to 3.0.
17192    case $host_os in
17193      aix4 | aix4.[01] | aix4.[01].*)
17194      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17195	   echo ' yes '
17196	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17197	:
17198      else
17199	can_build_shared=no
17200      fi
17201      ;;
17202    esac
17203    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17204    # soname into executable. Probably we can add versioning support to
17205    # collect2, so additional links can be useful in future.
17206    if test "$aix_use_runtimelinking" = yes; then
17207      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17208      # instead of lib<name>.a to let people know that these are not
17209      # typical AIX shared libraries.
17210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211    else
17212      # We preserve .a as extension for shared libraries through AIX4.2
17213      # and later when we are not doing run time linking.
17214      library_names_spec='${libname}${release}.a $libname.a'
17215      soname_spec='${libname}${release}${shared_ext}$major'
17216    fi
17217    shlibpath_var=LIBPATH
17218  fi
17219  ;;
17220
17221amigaos*)
17222  case $host_cpu in
17223  powerpc)
17224    # Since July 2007 AmigaOS4 officially supports .so libraries.
17225    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17226    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227    ;;
17228  m68k)
17229    library_names_spec='$libname.ixlibrary $libname.a'
17230    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17231    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17232    ;;
17233  esac
17234  ;;
17235
17236beos*)
17237  library_names_spec='${libname}${shared_ext}'
17238  dynamic_linker="$host_os ld.so"
17239  shlibpath_var=LIBRARY_PATH
17240  ;;
17241
17242bsdi[45]*)
17243  version_type=linux
17244  need_version=no
17245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246  soname_spec='${libname}${release}${shared_ext}$major'
17247  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17248  shlibpath_var=LD_LIBRARY_PATH
17249  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17250  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17251  # the default ld.so.conf also contains /usr/contrib/lib and
17252  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17253  # libtool to hard-code these into programs
17254  ;;
17255
17256cygwin* | mingw* | pw32* | cegcc*)
17257  version_type=windows
17258  shrext_cmds=".dll"
17259  need_version=no
17260  need_lib_prefix=no
17261
17262  case $GCC,$host_os in
17263  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17264    library_names_spec='$libname.dll.a'
17265    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17266    postinstall_cmds='base_file=`basename \${file}`~
17267      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17268      dldir=$destdir/`dirname \$dlpath`~
17269      test -d \$dldir || mkdir -p \$dldir~
17270      $install_prog $dir/$dlname \$dldir/$dlname~
17271      chmod a+x \$dldir/$dlname~
17272      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17273        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17274      fi'
17275    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17276      dlpath=$dir/\$dldll~
17277       $RM \$dlpath'
17278    shlibpath_overrides_runpath=yes
17279
17280    case $host_os in
17281    cygwin*)
17282      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17283      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17284
17285      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17286      ;;
17287    mingw* | cegcc*)
17288      # MinGW DLLs use traditional 'lib' prefix
17289      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17290      ;;
17291    pw32*)
17292      # pw32 DLLs use 'pw' prefix rather than 'lib'
17293      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17294      ;;
17295    esac
17296    ;;
17297
17298  *)
17299    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17300    ;;
17301  esac
17302  dynamic_linker='Win32 ld.exe'
17303  # FIXME: first we should search . and the directory the executable is in
17304  shlibpath_var=PATH
17305  ;;
17306
17307darwin* | rhapsody*)
17308  dynamic_linker="$host_os dyld"
17309  version_type=darwin
17310  need_lib_prefix=no
17311  need_version=no
17312  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17313  soname_spec='${libname}${release}${major}$shared_ext'
17314  shlibpath_overrides_runpath=yes
17315  shlibpath_var=DYLD_LIBRARY_PATH
17316  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17317
17318  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17319  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17320  ;;
17321
17322dgux*)
17323  version_type=linux
17324  need_lib_prefix=no
17325  need_version=no
17326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17327  soname_spec='${libname}${release}${shared_ext}$major'
17328  shlibpath_var=LD_LIBRARY_PATH
17329  ;;
17330
17331freebsd* | dragonfly*)
17332  # DragonFly does not have aout.  When/if they implement a new
17333  # versioning mechanism, adjust this.
17334  if test -x /usr/bin/objformat; then
17335    objformat=`/usr/bin/objformat`
17336  else
17337    case $host_os in
17338    freebsd[23].*) objformat=aout ;;
17339    *) objformat=elf ;;
17340    esac
17341  fi
17342  version_type=freebsd-$objformat
17343  case $version_type in
17344    freebsd-elf*)
17345      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17346      need_version=no
17347      need_lib_prefix=no
17348      ;;
17349    freebsd-*)
17350      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17351      need_version=yes
17352      ;;
17353  esac
17354  shlibpath_var=LD_LIBRARY_PATH
17355  case $host_os in
17356  freebsd2.*)
17357    shlibpath_overrides_runpath=yes
17358    ;;
17359  freebsd3.[01]* | freebsdelf3.[01]*)
17360    shlibpath_overrides_runpath=yes
17361    hardcode_into_libs=yes
17362    ;;
17363  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17364  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17365    shlibpath_overrides_runpath=no
17366    hardcode_into_libs=yes
17367    ;;
17368  *) # from 4.6 on, and DragonFly
17369    shlibpath_overrides_runpath=yes
17370    hardcode_into_libs=yes
17371    ;;
17372  esac
17373  ;;
17374
17375gnu*)
17376  version_type=linux
17377  need_lib_prefix=no
17378  need_version=no
17379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17380  soname_spec='${libname}${release}${shared_ext}$major'
17381  shlibpath_var=LD_LIBRARY_PATH
17382  hardcode_into_libs=yes
17383  ;;
17384
17385haiku*)
17386  version_type=linux
17387  need_lib_prefix=no
17388  need_version=no
17389  dynamic_linker="$host_os runtime_loader"
17390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17391  soname_spec='${libname}${release}${shared_ext}$major'
17392  shlibpath_var=LIBRARY_PATH
17393  shlibpath_overrides_runpath=yes
17394  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
17395  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
17396  hardcode_into_libs=no
17397  ;;
17398
17399hpux9* | hpux10* | hpux11*)
17400  # Give a soname corresponding to the major version so that dld.sl refuses to
17401  # link against other versions.
17402  version_type=sunos
17403  need_lib_prefix=no
17404  need_version=no
17405  case $host_cpu in
17406  ia64*)
17407    shrext_cmds='.so'
17408    hardcode_into_libs=yes
17409    dynamic_linker="$host_os dld.so"
17410    shlibpath_var=LD_LIBRARY_PATH
17411    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17412    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413    soname_spec='${libname}${release}${shared_ext}$major'
17414    if test "X$HPUX_IA64_MODE" = X32; then
17415      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17416    else
17417      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17418    fi
17419    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17420    ;;
17421  hppa*64*)
17422    shrext_cmds='.sl'
17423    hardcode_into_libs=yes
17424    dynamic_linker="$host_os dld.sl"
17425    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17426    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17427    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428    soname_spec='${libname}${release}${shared_ext}$major'
17429    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17430    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17431    ;;
17432  *)
17433    shrext_cmds='.sl'
17434    dynamic_linker="$host_os dld.sl"
17435    shlibpath_var=SHLIB_PATH
17436    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17437    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438    soname_spec='${libname}${release}${shared_ext}$major'
17439    ;;
17440  esac
17441  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17442  postinstall_cmds='chmod 555 $lib'
17443  # or fails outright, so override atomically:
17444  install_override_mode=555
17445  ;;
17446
17447interix[3-9]*)
17448  version_type=linux
17449  need_lib_prefix=no
17450  need_version=no
17451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17452  soname_spec='${libname}${release}${shared_ext}$major'
17453  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17454  shlibpath_var=LD_LIBRARY_PATH
17455  shlibpath_overrides_runpath=no
17456  hardcode_into_libs=yes
17457  ;;
17458
17459irix5* | irix6* | nonstopux*)
17460  case $host_os in
17461    nonstopux*) version_type=nonstopux ;;
17462    *)
17463	if test "$lt_cv_prog_gnu_ld" = yes; then
17464		version_type=linux
17465	else
17466		version_type=irix
17467	fi ;;
17468  esac
17469  need_lib_prefix=no
17470  need_version=no
17471  soname_spec='${libname}${release}${shared_ext}$major'
17472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17473  case $host_os in
17474  irix5* | nonstopux*)
17475    libsuff= shlibsuff=
17476    ;;
17477  *)
17478    case $LD in # libtool.m4 will add one of these switches to LD
17479    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17480      libsuff= shlibsuff= libmagic=32-bit;;
17481    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17482      libsuff=32 shlibsuff=N32 libmagic=N32;;
17483    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17484      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17485    *) libsuff= shlibsuff= libmagic=never-match;;
17486    esac
17487    ;;
17488  esac
17489  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17490  shlibpath_overrides_runpath=no
17491  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17492  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17493  hardcode_into_libs=yes
17494  ;;
17495
17496# No shared lib support for Linux oldld, aout, or coff.
17497linux*oldld* | linux*aout* | linux*coff*)
17498  dynamic_linker=no
17499  ;;
17500
17501# This must be Linux ELF.
17502linux* | k*bsd*-gnu | kopensolaris*-gnu)
17503  version_type=linux
17504  need_lib_prefix=no
17505  need_version=no
17506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507  soname_spec='${libname}${release}${shared_ext}$major'
17508  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17509  shlibpath_var=LD_LIBRARY_PATH
17510  shlibpath_overrides_runpath=no
17511
17512  # Some binutils ld are patched to set DT_RUNPATH
17513  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17514  $as_echo_n "(cached) " >&6
17515else
17516  lt_cv_shlibpath_overrides_runpath=no
17517    save_LDFLAGS=$LDFLAGS
17518    save_libdir=$libdir
17519    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17520	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17521    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522/* end confdefs.h.  */
17523
17524int
17525main ()
17526{
17527
17528  ;
17529  return 0;
17530}
17531_ACEOF
17532if ac_fn_c_try_link "$LINENO"; then :
17533  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17534  lt_cv_shlibpath_overrides_runpath=yes
17535fi
17536fi
17537rm -f core conftest.err conftest.$ac_objext \
17538    conftest$ac_exeext conftest.$ac_ext
17539    LDFLAGS=$save_LDFLAGS
17540    libdir=$save_libdir
17541
17542fi
17543
17544  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17545
17546  # This implies no fast_install, which is unacceptable.
17547  # Some rework will be needed to allow for fast_install
17548  # before this can be enabled.
17549  hardcode_into_libs=yes
17550
17551  # Append ld.so.conf contents to the search path
17552  if test -f /etc/ld.so.conf; then
17553    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17554    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17555  fi
17556
17557  # We used to test for /lib/ld.so.1 and disable shared libraries on
17558  # powerpc, because MkLinux only supported shared libraries with the
17559  # GNU dynamic linker.  Since this was broken with cross compilers,
17560  # most powerpc-linux boxes support dynamic linking these days and
17561  # people can always --disable-shared, the test was removed, and we
17562  # assume the GNU/Linux dynamic linker is in use.
17563  dynamic_linker='GNU/Linux ld.so'
17564  ;;
17565
17566netbsd*)
17567  version_type=sunos
17568  need_lib_prefix=no
17569  need_version=no
17570  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17571    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17572    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17573    dynamic_linker='NetBSD (a.out) ld.so'
17574  else
17575    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17576    soname_spec='${libname}${release}${shared_ext}$major'
17577    dynamic_linker='NetBSD ld.elf_so'
17578  fi
17579  shlibpath_var=LD_LIBRARY_PATH
17580  shlibpath_overrides_runpath=yes
17581  hardcode_into_libs=yes
17582  ;;
17583
17584newsos6)
17585  version_type=linux
17586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587  shlibpath_var=LD_LIBRARY_PATH
17588  shlibpath_overrides_runpath=yes
17589  ;;
17590
17591*nto* | *qnx*)
17592  version_type=qnx
17593  need_lib_prefix=no
17594  need_version=no
17595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596  soname_spec='${libname}${release}${shared_ext}$major'
17597  shlibpath_var=LD_LIBRARY_PATH
17598  shlibpath_overrides_runpath=no
17599  hardcode_into_libs=yes
17600  dynamic_linker='ldqnx.so'
17601  ;;
17602
17603openbsd*)
17604  version_type=sunos
17605  sys_lib_dlsearch_path_spec="/usr/lib"
17606  need_lib_prefix=no
17607  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17608  case $host_os in
17609    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17610    *)				need_version=no  ;;
17611  esac
17612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17613  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17614  shlibpath_var=LD_LIBRARY_PATH
17615  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17616    case $host_os in
17617      openbsd2.[89] | openbsd2.[89].*)
17618	shlibpath_overrides_runpath=no
17619	;;
17620      *)
17621	shlibpath_overrides_runpath=yes
17622	;;
17623      esac
17624  else
17625    shlibpath_overrides_runpath=yes
17626  fi
17627  ;;
17628
17629os2*)
17630  libname_spec='$name'
17631  shrext_cmds=".dll"
17632  need_lib_prefix=no
17633  library_names_spec='$libname${shared_ext} $libname.a'
17634  dynamic_linker='OS/2 ld.exe'
17635  shlibpath_var=LIBPATH
17636  ;;
17637
17638osf3* | osf4* | osf5*)
17639  version_type=osf
17640  need_lib_prefix=no
17641  need_version=no
17642  soname_spec='${libname}${release}${shared_ext}$major'
17643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644  shlibpath_var=LD_LIBRARY_PATH
17645  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17646  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17647  ;;
17648
17649rdos*)
17650  dynamic_linker=no
17651  ;;
17652
17653solaris*)
17654  version_type=linux
17655  need_lib_prefix=no
17656  need_version=no
17657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658  soname_spec='${libname}${release}${shared_ext}$major'
17659  shlibpath_var=LD_LIBRARY_PATH
17660  shlibpath_overrides_runpath=yes
17661  hardcode_into_libs=yes
17662  # ldd complains unless libraries are executable
17663  postinstall_cmds='chmod +x $lib'
17664  ;;
17665
17666sunos4*)
17667  version_type=sunos
17668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17669  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17670  shlibpath_var=LD_LIBRARY_PATH
17671  shlibpath_overrides_runpath=yes
17672  if test "$with_gnu_ld" = yes; then
17673    need_lib_prefix=no
17674  fi
17675  need_version=yes
17676  ;;
17677
17678sysv4 | sysv4.3*)
17679  version_type=linux
17680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681  soname_spec='${libname}${release}${shared_ext}$major'
17682  shlibpath_var=LD_LIBRARY_PATH
17683  case $host_vendor in
17684    sni)
17685      shlibpath_overrides_runpath=no
17686      need_lib_prefix=no
17687      runpath_var=LD_RUN_PATH
17688      ;;
17689    siemens)
17690      need_lib_prefix=no
17691      ;;
17692    motorola)
17693      need_lib_prefix=no
17694      need_version=no
17695      shlibpath_overrides_runpath=no
17696      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17697      ;;
17698  esac
17699  ;;
17700
17701sysv4*MP*)
17702  if test -d /usr/nec ;then
17703    version_type=linux
17704    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17705    soname_spec='$libname${shared_ext}.$major'
17706    shlibpath_var=LD_LIBRARY_PATH
17707  fi
17708  ;;
17709
17710sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17711  version_type=freebsd-elf
17712  need_lib_prefix=no
17713  need_version=no
17714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17715  soname_spec='${libname}${release}${shared_ext}$major'
17716  shlibpath_var=LD_LIBRARY_PATH
17717  shlibpath_overrides_runpath=yes
17718  hardcode_into_libs=yes
17719  if test "$with_gnu_ld" = yes; then
17720    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17721  else
17722    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17723    case $host_os in
17724      sco3.2v5*)
17725        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17726	;;
17727    esac
17728  fi
17729  sys_lib_dlsearch_path_spec='/usr/lib'
17730  ;;
17731
17732tpf*)
17733  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17734  version_type=linux
17735  need_lib_prefix=no
17736  need_version=no
17737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17738  shlibpath_var=LD_LIBRARY_PATH
17739  shlibpath_overrides_runpath=no
17740  hardcode_into_libs=yes
17741  ;;
17742
17743uts4*)
17744  version_type=linux
17745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746  soname_spec='${libname}${release}${shared_ext}$major'
17747  shlibpath_var=LD_LIBRARY_PATH
17748  ;;
17749
17750*)
17751  dynamic_linker=no
17752  ;;
17753esac
17754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17755$as_echo "$dynamic_linker" >&6; }
17756test "$dynamic_linker" = no && can_build_shared=no
17757
17758variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17759if test "$GCC" = yes; then
17760  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17761fi
17762
17763if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17764  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17765fi
17766if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17767  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17768fi
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17862$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17863hardcode_action=
17864if test -n "$hardcode_libdir_flag_spec" ||
17865   test -n "$runpath_var" ||
17866   test "X$hardcode_automatic" = "Xyes" ; then
17867
17868  # We can hardcode non-existent directories.
17869  if test "$hardcode_direct" != no &&
17870     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17871     # have to relink, otherwise we might link with an installed library
17872     # when we should be linking with a yet-to-be-installed one
17873     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17874     test "$hardcode_minus_L" != no; then
17875    # Linking always hardcodes the temporary library directory.
17876    hardcode_action=relink
17877  else
17878    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17879    hardcode_action=immediate
17880  fi
17881else
17882  # We cannot hardcode anything, or else we can only hardcode existing
17883  # directories.
17884  hardcode_action=unsupported
17885fi
17886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17887$as_echo "$hardcode_action" >&6; }
17888
17889if test "$hardcode_action" = relink ||
17890   test "$inherit_rpath" = yes; then
17891  # Fast installation is not supported
17892  enable_fast_install=no
17893elif test "$shlibpath_overrides_runpath" = yes ||
17894     test "$enable_shared" = no; then
17895  # Fast installation is not necessary
17896  enable_fast_install=needless
17897fi
17898
17899
17900
17901
17902
17903
17904  if test "x$enable_dlopen" != xyes; then
17905  enable_dlopen=unknown
17906  enable_dlopen_self=unknown
17907  enable_dlopen_self_static=unknown
17908else
17909  lt_cv_dlopen=no
17910  lt_cv_dlopen_libs=
17911
17912  case $host_os in
17913  beos* | haiku* )
17914    lt_cv_dlopen="load_add_on"
17915    lt_cv_dlopen_libs=
17916    lt_cv_dlopen_self=yes
17917    ;;
17918
17919  mingw* | pw32* | cegcc*)
17920    lt_cv_dlopen="LoadLibrary"
17921    lt_cv_dlopen_libs=
17922    ;;
17923
17924  cygwin*)
17925    lt_cv_dlopen="dlopen"
17926    lt_cv_dlopen_libs=
17927    ;;
17928
17929  darwin*)
17930  # if libdl is installed we need to link against it
17931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17932$as_echo_n "checking for dlopen in -ldl... " >&6; }
17933if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17934  $as_echo_n "(cached) " >&6
17935else
17936  ac_check_lib_save_LIBS=$LIBS
17937LIBS="-ldl  $LIBS"
17938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939/* end confdefs.h.  */
17940
17941/* Override any GCC internal prototype to avoid an error.
17942   Use char because int might match the return type of a GCC
17943   builtin and then its argument prototype would still apply.  */
17944#ifdef __cplusplus
17945extern "C"
17946#endif
17947char dlopen ();
17948int
17949main ()
17950{
17951return dlopen ();
17952  ;
17953  return 0;
17954}
17955_ACEOF
17956if ac_fn_c_try_link "$LINENO"; then :
17957  ac_cv_lib_dl_dlopen=yes
17958else
17959  ac_cv_lib_dl_dlopen=no
17960fi
17961rm -f core conftest.err conftest.$ac_objext \
17962    conftest$ac_exeext conftest.$ac_ext
17963LIBS=$ac_check_lib_save_LIBS
17964fi
17965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17966$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17967if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17968  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17969else
17970
17971    lt_cv_dlopen="dyld"
17972    lt_cv_dlopen_libs=
17973    lt_cv_dlopen_self=yes
17974
17975fi
17976
17977    ;;
17978
17979  *)
17980    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17981if test "x$ac_cv_func_shl_load" = x""yes; then :
17982  lt_cv_dlopen="shl_load"
17983else
17984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17985$as_echo_n "checking for shl_load in -ldld... " >&6; }
17986if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17987  $as_echo_n "(cached) " >&6
17988else
17989  ac_check_lib_save_LIBS=$LIBS
17990LIBS="-ldld  $LIBS"
17991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992/* end confdefs.h.  */
17993
17994/* Override any GCC internal prototype to avoid an error.
17995   Use char because int might match the return type of a GCC
17996   builtin and then its argument prototype would still apply.  */
17997#ifdef __cplusplus
17998extern "C"
17999#endif
18000char shl_load ();
18001int
18002main ()
18003{
18004return shl_load ();
18005  ;
18006  return 0;
18007}
18008_ACEOF
18009if ac_fn_c_try_link "$LINENO"; then :
18010  ac_cv_lib_dld_shl_load=yes
18011else
18012  ac_cv_lib_dld_shl_load=no
18013fi
18014rm -f core conftest.err conftest.$ac_objext \
18015    conftest$ac_exeext conftest.$ac_ext
18016LIBS=$ac_check_lib_save_LIBS
18017fi
18018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18019$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18020if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18021  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18022else
18023  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18024if test "x$ac_cv_func_dlopen" = x""yes; then :
18025  lt_cv_dlopen="dlopen"
18026else
18027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18028$as_echo_n "checking for dlopen in -ldl... " >&6; }
18029if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18030  $as_echo_n "(cached) " >&6
18031else
18032  ac_check_lib_save_LIBS=$LIBS
18033LIBS="-ldl  $LIBS"
18034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035/* end confdefs.h.  */
18036
18037/* Override any GCC internal prototype to avoid an error.
18038   Use char because int might match the return type of a GCC
18039   builtin and then its argument prototype would still apply.  */
18040#ifdef __cplusplus
18041extern "C"
18042#endif
18043char dlopen ();
18044int
18045main ()
18046{
18047return dlopen ();
18048  ;
18049  return 0;
18050}
18051_ACEOF
18052if ac_fn_c_try_link "$LINENO"; then :
18053  ac_cv_lib_dl_dlopen=yes
18054else
18055  ac_cv_lib_dl_dlopen=no
18056fi
18057rm -f core conftest.err conftest.$ac_objext \
18058    conftest$ac_exeext conftest.$ac_ext
18059LIBS=$ac_check_lib_save_LIBS
18060fi
18061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18062$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18063if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18064  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18065else
18066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18067$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18068if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18069  $as_echo_n "(cached) " >&6
18070else
18071  ac_check_lib_save_LIBS=$LIBS
18072LIBS="-lsvld  $LIBS"
18073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074/* end confdefs.h.  */
18075
18076/* Override any GCC internal prototype to avoid an error.
18077   Use char because int might match the return type of a GCC
18078   builtin and then its argument prototype would still apply.  */
18079#ifdef __cplusplus
18080extern "C"
18081#endif
18082char dlopen ();
18083int
18084main ()
18085{
18086return dlopen ();
18087  ;
18088  return 0;
18089}
18090_ACEOF
18091if ac_fn_c_try_link "$LINENO"; then :
18092  ac_cv_lib_svld_dlopen=yes
18093else
18094  ac_cv_lib_svld_dlopen=no
18095fi
18096rm -f core conftest.err conftest.$ac_objext \
18097    conftest$ac_exeext conftest.$ac_ext
18098LIBS=$ac_check_lib_save_LIBS
18099fi
18100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18101$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18102if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18103  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18104else
18105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18106$as_echo_n "checking for dld_link in -ldld... " >&6; }
18107if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18108  $as_echo_n "(cached) " >&6
18109else
18110  ac_check_lib_save_LIBS=$LIBS
18111LIBS="-ldld  $LIBS"
18112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18113/* end confdefs.h.  */
18114
18115/* Override any GCC internal prototype to avoid an error.
18116   Use char because int might match the return type of a GCC
18117   builtin and then its argument prototype would still apply.  */
18118#ifdef __cplusplus
18119extern "C"
18120#endif
18121char dld_link ();
18122int
18123main ()
18124{
18125return dld_link ();
18126  ;
18127  return 0;
18128}
18129_ACEOF
18130if ac_fn_c_try_link "$LINENO"; then :
18131  ac_cv_lib_dld_dld_link=yes
18132else
18133  ac_cv_lib_dld_dld_link=no
18134fi
18135rm -f core conftest.err conftest.$ac_objext \
18136    conftest$ac_exeext conftest.$ac_ext
18137LIBS=$ac_check_lib_save_LIBS
18138fi
18139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18140$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18141if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18142  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18143fi
18144
18145
18146fi
18147
18148
18149fi
18150
18151
18152fi
18153
18154
18155fi
18156
18157
18158fi
18159
18160    ;;
18161  esac
18162
18163  if test "x$lt_cv_dlopen" != xno; then
18164    enable_dlopen=yes
18165  else
18166    enable_dlopen=no
18167  fi
18168
18169  case $lt_cv_dlopen in
18170  dlopen)
18171    save_CPPFLAGS="$CPPFLAGS"
18172    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18173
18174    save_LDFLAGS="$LDFLAGS"
18175    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18176
18177    save_LIBS="$LIBS"
18178    LIBS="$lt_cv_dlopen_libs $LIBS"
18179
18180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18181$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18182if test "${lt_cv_dlopen_self+set}" = set; then :
18183  $as_echo_n "(cached) " >&6
18184else
18185  	  if test "$cross_compiling" = yes; then :
18186  lt_cv_dlopen_self=cross
18187else
18188  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18189  lt_status=$lt_dlunknown
18190  cat > conftest.$ac_ext <<_LT_EOF
18191#line 18191 "configure"
18192#include "confdefs.h"
18193
18194#if HAVE_DLFCN_H
18195#include <dlfcn.h>
18196#endif
18197
18198#include <stdio.h>
18199
18200#ifdef RTLD_GLOBAL
18201#  define LT_DLGLOBAL		RTLD_GLOBAL
18202#else
18203#  ifdef DL_GLOBAL
18204#    define LT_DLGLOBAL		DL_GLOBAL
18205#  else
18206#    define LT_DLGLOBAL		0
18207#  endif
18208#endif
18209
18210/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18211   find out it does not work in some platform. */
18212#ifndef LT_DLLAZY_OR_NOW
18213#  ifdef RTLD_LAZY
18214#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18215#  else
18216#    ifdef DL_LAZY
18217#      define LT_DLLAZY_OR_NOW		DL_LAZY
18218#    else
18219#      ifdef RTLD_NOW
18220#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18221#      else
18222#        ifdef DL_NOW
18223#          define LT_DLLAZY_OR_NOW	DL_NOW
18224#        else
18225#          define LT_DLLAZY_OR_NOW	0
18226#        endif
18227#      endif
18228#    endif
18229#  endif
18230#endif
18231
18232/* When -fvisbility=hidden is used, assume the code has been annotated
18233   correspondingly for the symbols needed.  */
18234#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18235void fnord () __attribute__((visibility("default")));
18236#endif
18237
18238void fnord () { int i=42; }
18239int main ()
18240{
18241  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18242  int status = $lt_dlunknown;
18243
18244  if (self)
18245    {
18246      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18247      else
18248        {
18249	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18250          else puts (dlerror ());
18251	}
18252      /* dlclose (self); */
18253    }
18254  else
18255    puts (dlerror ());
18256
18257  return status;
18258}
18259_LT_EOF
18260  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18261  (eval $ac_link) 2>&5
18262  ac_status=$?
18263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18264  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18265    (./conftest; exit; ) >&5 2>/dev/null
18266    lt_status=$?
18267    case x$lt_status in
18268      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18269      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18270      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18271    esac
18272  else :
18273    # compilation failed
18274    lt_cv_dlopen_self=no
18275  fi
18276fi
18277rm -fr conftest*
18278
18279
18280fi
18281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18282$as_echo "$lt_cv_dlopen_self" >&6; }
18283
18284    if test "x$lt_cv_dlopen_self" = xyes; then
18285      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18286      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18287$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18288if test "${lt_cv_dlopen_self_static+set}" = set; then :
18289  $as_echo_n "(cached) " >&6
18290else
18291  	  if test "$cross_compiling" = yes; then :
18292  lt_cv_dlopen_self_static=cross
18293else
18294  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18295  lt_status=$lt_dlunknown
18296  cat > conftest.$ac_ext <<_LT_EOF
18297#line 18297 "configure"
18298#include "confdefs.h"
18299
18300#if HAVE_DLFCN_H
18301#include <dlfcn.h>
18302#endif
18303
18304#include <stdio.h>
18305
18306#ifdef RTLD_GLOBAL
18307#  define LT_DLGLOBAL		RTLD_GLOBAL
18308#else
18309#  ifdef DL_GLOBAL
18310#    define LT_DLGLOBAL		DL_GLOBAL
18311#  else
18312#    define LT_DLGLOBAL		0
18313#  endif
18314#endif
18315
18316/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18317   find out it does not work in some platform. */
18318#ifndef LT_DLLAZY_OR_NOW
18319#  ifdef RTLD_LAZY
18320#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18321#  else
18322#    ifdef DL_LAZY
18323#      define LT_DLLAZY_OR_NOW		DL_LAZY
18324#    else
18325#      ifdef RTLD_NOW
18326#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18327#      else
18328#        ifdef DL_NOW
18329#          define LT_DLLAZY_OR_NOW	DL_NOW
18330#        else
18331#          define LT_DLLAZY_OR_NOW	0
18332#        endif
18333#      endif
18334#    endif
18335#  endif
18336#endif
18337
18338/* When -fvisbility=hidden is used, assume the code has been annotated
18339   correspondingly for the symbols needed.  */
18340#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18341void fnord () __attribute__((visibility("default")));
18342#endif
18343
18344void fnord () { int i=42; }
18345int main ()
18346{
18347  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18348  int status = $lt_dlunknown;
18349
18350  if (self)
18351    {
18352      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18353      else
18354        {
18355	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18356          else puts (dlerror ());
18357	}
18358      /* dlclose (self); */
18359    }
18360  else
18361    puts (dlerror ());
18362
18363  return status;
18364}
18365_LT_EOF
18366  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18367  (eval $ac_link) 2>&5
18368  ac_status=$?
18369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18370  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18371    (./conftest; exit; ) >&5 2>/dev/null
18372    lt_status=$?
18373    case x$lt_status in
18374      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18375      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18376      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18377    esac
18378  else :
18379    # compilation failed
18380    lt_cv_dlopen_self_static=no
18381  fi
18382fi
18383rm -fr conftest*
18384
18385
18386fi
18387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18388$as_echo "$lt_cv_dlopen_self_static" >&6; }
18389    fi
18390
18391    CPPFLAGS="$save_CPPFLAGS"
18392    LDFLAGS="$save_LDFLAGS"
18393    LIBS="$save_LIBS"
18394    ;;
18395  esac
18396
18397  case $lt_cv_dlopen_self in
18398  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18399  *) enable_dlopen_self=unknown ;;
18400  esac
18401
18402  case $lt_cv_dlopen_self_static in
18403  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18404  *) enable_dlopen_self_static=unknown ;;
18405  esac
18406fi
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424striplib=
18425old_striplib=
18426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18427$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18428if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18429  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18430  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18432$as_echo "yes" >&6; }
18433else
18434# FIXME - insert some real tests, host_os isn't really good enough
18435  case $host_os in
18436  darwin*)
18437    if test -n "$STRIP" ; then
18438      striplib="$STRIP -x"
18439      old_striplib="$STRIP -S"
18440      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18441$as_echo "yes" >&6; }
18442    else
18443      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18444$as_echo "no" >&6; }
18445    fi
18446    ;;
18447  *)
18448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18449$as_echo "no" >&6; }
18450    ;;
18451  esac
18452fi
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465  # Report which library types will actually be built
18466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18467$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18469$as_echo "$can_build_shared" >&6; }
18470
18471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18472$as_echo_n "checking whether to build shared libraries... " >&6; }
18473  test "$can_build_shared" = "no" && enable_shared=no
18474
18475  # On AIX, shared libraries and static libraries use the same namespace, and
18476  # are all built from PIC.
18477  case $host_os in
18478  aix3*)
18479    test "$enable_shared" = yes && enable_static=no
18480    if test -n "$RANLIB"; then
18481      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18482      postinstall_cmds='$RANLIB $lib'
18483    fi
18484    ;;
18485
18486  aix[4-9]*)
18487    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18488      test "$enable_shared" = yes && enable_static=no
18489    fi
18490    ;;
18491  esac
18492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18493$as_echo "$enable_shared" >&6; }
18494
18495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18496$as_echo_n "checking whether to build static libraries... " >&6; }
18497  # Make sure either enable_shared or enable_static is yes.
18498  test "$enable_shared" = yes || enable_static=yes
18499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18500$as_echo "$enable_static" >&6; }
18501
18502
18503
18504
18505fi
18506ac_ext=c
18507ac_cpp='$CPP $CPPFLAGS'
18508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18510ac_compiler_gnu=$ac_cv_c_compiler_gnu
18511
18512CC="$lt_save_CC"
18513
18514      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18515    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18516    (test "X$CXX" != "Xg++"))) ; then
18517  ac_ext=cpp
18518ac_cpp='$CXXCPP $CPPFLAGS'
18519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18523$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18524if test -z "$CXXCPP"; then
18525  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18526  $as_echo_n "(cached) " >&6
18527else
18528      # Double quotes because CXXCPP needs to be expanded
18529    for CXXCPP in "$CXX -E" "/lib/cpp"
18530    do
18531      ac_preproc_ok=false
18532for ac_cxx_preproc_warn_flag in '' yes
18533do
18534  # Use a header file that comes with gcc, so configuring glibc
18535  # with a fresh cross-compiler works.
18536  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18537  # <limits.h> exists even on freestanding compilers.
18538  # On the NeXT, cc -E runs the code through the compiler's parser,
18539  # not just through cpp. "Syntax error" is here to catch this case.
18540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541/* end confdefs.h.  */
18542#ifdef __STDC__
18543# include <limits.h>
18544#else
18545# include <assert.h>
18546#endif
18547		     Syntax error
18548_ACEOF
18549if ac_fn_cxx_try_cpp "$LINENO"; then :
18550
18551else
18552  # Broken: fails on valid input.
18553continue
18554fi
18555rm -f conftest.err conftest.$ac_ext
18556
18557  # OK, works on sane cases.  Now check whether nonexistent headers
18558  # can be detected and how.
18559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560/* end confdefs.h.  */
18561#include <ac_nonexistent.h>
18562_ACEOF
18563if ac_fn_cxx_try_cpp "$LINENO"; then :
18564  # Broken: success on invalid input.
18565continue
18566else
18567  # Passes both tests.
18568ac_preproc_ok=:
18569break
18570fi
18571rm -f conftest.err conftest.$ac_ext
18572
18573done
18574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18575rm -f conftest.err conftest.$ac_ext
18576if $ac_preproc_ok; then :
18577  break
18578fi
18579
18580    done
18581    ac_cv_prog_CXXCPP=$CXXCPP
18582
18583fi
18584  CXXCPP=$ac_cv_prog_CXXCPP
18585else
18586  ac_cv_prog_CXXCPP=$CXXCPP
18587fi
18588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18589$as_echo "$CXXCPP" >&6; }
18590ac_preproc_ok=false
18591for ac_cxx_preproc_warn_flag in '' yes
18592do
18593  # Use a header file that comes with gcc, so configuring glibc
18594  # with a fresh cross-compiler works.
18595  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18596  # <limits.h> exists even on freestanding compilers.
18597  # On the NeXT, cc -E runs the code through the compiler's parser,
18598  # not just through cpp. "Syntax error" is here to catch this case.
18599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600/* end confdefs.h.  */
18601#ifdef __STDC__
18602# include <limits.h>
18603#else
18604# include <assert.h>
18605#endif
18606		     Syntax error
18607_ACEOF
18608if ac_fn_cxx_try_cpp "$LINENO"; then :
18609
18610else
18611  # Broken: fails on valid input.
18612continue
18613fi
18614rm -f conftest.err conftest.$ac_ext
18615
18616  # OK, works on sane cases.  Now check whether nonexistent headers
18617  # can be detected and how.
18618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619/* end confdefs.h.  */
18620#include <ac_nonexistent.h>
18621_ACEOF
18622if ac_fn_cxx_try_cpp "$LINENO"; then :
18623  # Broken: success on invalid input.
18624continue
18625else
18626  # Passes both tests.
18627ac_preproc_ok=:
18628break
18629fi
18630rm -f conftest.err conftest.$ac_ext
18631
18632done
18633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18634rm -f conftest.err conftest.$ac_ext
18635if $ac_preproc_ok; then :
18636
18637else
18638  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18640as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18641See \`config.log' for more details." "$LINENO" 5; }
18642fi
18643
18644ac_ext=c
18645ac_cpp='$CPP $CPPFLAGS'
18646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18648ac_compiler_gnu=$ac_cv_c_compiler_gnu
18649
18650else
18651  _lt_caught_CXX_error=yes
18652fi
18653
18654ac_ext=cpp
18655ac_cpp='$CXXCPP $CPPFLAGS'
18656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18659
18660archive_cmds_need_lc_CXX=no
18661allow_undefined_flag_CXX=
18662always_export_symbols_CXX=no
18663archive_expsym_cmds_CXX=
18664compiler_needs_object_CXX=no
18665export_dynamic_flag_spec_CXX=
18666hardcode_direct_CXX=no
18667hardcode_direct_absolute_CXX=no
18668hardcode_libdir_flag_spec_CXX=
18669hardcode_libdir_flag_spec_ld_CXX=
18670hardcode_libdir_separator_CXX=
18671hardcode_minus_L_CXX=no
18672hardcode_shlibpath_var_CXX=unsupported
18673hardcode_automatic_CXX=no
18674inherit_rpath_CXX=no
18675module_cmds_CXX=
18676module_expsym_cmds_CXX=
18677link_all_deplibs_CXX=unknown
18678old_archive_cmds_CXX=$old_archive_cmds
18679reload_flag_CXX=$reload_flag
18680reload_cmds_CXX=$reload_cmds
18681no_undefined_flag_CXX=
18682whole_archive_flag_spec_CXX=
18683enable_shared_with_static_runtimes_CXX=no
18684
18685# Source file extension for C++ test sources.
18686ac_ext=cpp
18687
18688# Object file extension for compiled C++ test sources.
18689objext=o
18690objext_CXX=$objext
18691
18692# No sense in running all these tests if we already determined that
18693# the CXX compiler isn't working.  Some variables (like enable_shared)
18694# are currently assumed to apply to all compilers on this platform,
18695# and will be corrupted by setting them based on a non-working compiler.
18696if test "$_lt_caught_CXX_error" != yes; then
18697  # Code to be used in simple compile tests
18698  lt_simple_compile_test_code="int some_variable = 0;"
18699
18700  # Code to be used in simple link tests
18701  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18702
18703  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18704
18705
18706
18707
18708
18709
18710# If no C compiler was specified, use CC.
18711LTCC=${LTCC-"$CC"}
18712
18713# If no C compiler flags were specified, use CFLAGS.
18714LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18715
18716# Allow CC to be a program name with arguments.
18717compiler=$CC
18718
18719
18720  # save warnings/boilerplate of simple test code
18721  ac_outfile=conftest.$ac_objext
18722echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18723eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18724_lt_compiler_boilerplate=`cat conftest.err`
18725$RM conftest*
18726
18727  ac_outfile=conftest.$ac_objext
18728echo "$lt_simple_link_test_code" >conftest.$ac_ext
18729eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18730_lt_linker_boilerplate=`cat conftest.err`
18731$RM -r conftest*
18732
18733
18734  # Allow CC to be a program name with arguments.
18735  lt_save_CC=$CC
18736  lt_save_LD=$LD
18737  lt_save_GCC=$GCC
18738  GCC=$GXX
18739  lt_save_with_gnu_ld=$with_gnu_ld
18740  lt_save_path_LD=$lt_cv_path_LD
18741  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18742    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18743  else
18744    $as_unset lt_cv_prog_gnu_ld
18745  fi
18746  if test -n "${lt_cv_path_LDCXX+set}"; then
18747    lt_cv_path_LD=$lt_cv_path_LDCXX
18748  else
18749    $as_unset lt_cv_path_LD
18750  fi
18751  test -z "${LDCXX+set}" || LD=$LDCXX
18752  CC=${CXX-"c++"}
18753  compiler=$CC
18754  compiler_CXX=$CC
18755  for cc_temp in $compiler""; do
18756  case $cc_temp in
18757    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18758    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18759    \-*) ;;
18760    *) break;;
18761  esac
18762done
18763cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18764
18765
18766  if test -n "$compiler"; then
18767    # We don't want -fno-exception when compiling C++ code, so set the
18768    # no_builtin_flag separately
18769    if test "$GXX" = yes; then
18770      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18771    else
18772      lt_prog_compiler_no_builtin_flag_CXX=
18773    fi
18774
18775    if test "$GXX" = yes; then
18776      # Set up default GNU C++ configuration
18777
18778
18779
18780# Check whether --with-gnu-ld was given.
18781if test "${with_gnu_ld+set}" = set; then :
18782  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18783else
18784  with_gnu_ld=no
18785fi
18786
18787ac_prog=ld
18788if test "$GCC" = yes; then
18789  # Check if gcc -print-prog-name=ld gives a path.
18790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18791$as_echo_n "checking for ld used by $CC... " >&6; }
18792  case $host in
18793  *-*-mingw*)
18794    # gcc leaves a trailing carriage return which upsets mingw
18795    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18796  *)
18797    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18798  esac
18799  case $ac_prog in
18800    # Accept absolute paths.
18801    [\\/]* | ?:[\\/]*)
18802      re_direlt='/[^/][^/]*/\.\./'
18803      # Canonicalize the pathname of ld
18804      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18805      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18806	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18807      done
18808      test -z "$LD" && LD="$ac_prog"
18809      ;;
18810  "")
18811    # If it fails, then pretend we aren't using GCC.
18812    ac_prog=ld
18813    ;;
18814  *)
18815    # If it is relative, then search for the first ld in PATH.
18816    with_gnu_ld=unknown
18817    ;;
18818  esac
18819elif test "$with_gnu_ld" = yes; then
18820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18821$as_echo_n "checking for GNU ld... " >&6; }
18822else
18823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18824$as_echo_n "checking for non-GNU ld... " >&6; }
18825fi
18826if test "${lt_cv_path_LD+set}" = set; then :
18827  $as_echo_n "(cached) " >&6
18828else
18829  if test -z "$LD"; then
18830  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18831  for ac_dir in $PATH; do
18832    IFS="$lt_save_ifs"
18833    test -z "$ac_dir" && ac_dir=.
18834    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18835      lt_cv_path_LD="$ac_dir/$ac_prog"
18836      # Check to see if the program is GNU ld.  I'd rather use --version,
18837      # but apparently some variants of GNU ld only accept -v.
18838      # Break only if it was the GNU/non-GNU ld that we prefer.
18839      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18840      *GNU* | *'with BFD'*)
18841	test "$with_gnu_ld" != no && break
18842	;;
18843      *)
18844	test "$with_gnu_ld" != yes && break
18845	;;
18846      esac
18847    fi
18848  done
18849  IFS="$lt_save_ifs"
18850else
18851  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18852fi
18853fi
18854
18855LD="$lt_cv_path_LD"
18856if test -n "$LD"; then
18857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18858$as_echo "$LD" >&6; }
18859else
18860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18861$as_echo "no" >&6; }
18862fi
18863test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18865$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18866if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18867  $as_echo_n "(cached) " >&6
18868else
18869  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18870case `$LD -v 2>&1 </dev/null` in
18871*GNU* | *'with BFD'*)
18872  lt_cv_prog_gnu_ld=yes
18873  ;;
18874*)
18875  lt_cv_prog_gnu_ld=no
18876  ;;
18877esac
18878fi
18879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18880$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18881with_gnu_ld=$lt_cv_prog_gnu_ld
18882
18883
18884
18885
18886
18887
18888
18889      # Check if GNU C++ uses GNU ld as the underlying linker, since the
18890      # archiving commands below assume that GNU ld is being used.
18891      if test "$with_gnu_ld" = yes; then
18892        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18893        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18894
18895        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18896        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18897
18898        # If archive_cmds runs LD, not CC, wlarc should be empty
18899        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18900        #     investigate it a little bit more. (MM)
18901        wlarc='${wl}'
18902
18903        # ancient GNU ld didn't support --whole-archive et. al.
18904        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18905	  $GREP 'no-whole-archive' > /dev/null; then
18906          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18907        else
18908          whole_archive_flag_spec_CXX=
18909        fi
18910      else
18911        with_gnu_ld=no
18912        wlarc=
18913
18914        # A generic and very simple default shared library creation
18915        # command for GNU C++ for the case where it uses the native
18916        # linker, instead of GNU ld.  If possible, this setting should
18917        # overridden to take advantage of the native linker features on
18918        # the platform it is being used on.
18919        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18920      fi
18921
18922      # Commands to make compiler produce verbose output that lists
18923      # what "hidden" libraries, object files and flags are used when
18924      # linking a shared library.
18925      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18926
18927    else
18928      GXX=no
18929      with_gnu_ld=no
18930      wlarc=
18931    fi
18932
18933    # PORTME: fill in a description of your system's C++ link characteristics
18934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18935$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18936    ld_shlibs_CXX=yes
18937    case $host_os in
18938      aix3*)
18939        # FIXME: insert proper C++ library support
18940        ld_shlibs_CXX=no
18941        ;;
18942      aix[4-9]*)
18943        if test "$host_cpu" = ia64; then
18944          # On IA64, the linker does run time linking by default, so we don't
18945          # have to do anything special.
18946          aix_use_runtimelinking=no
18947          exp_sym_flag='-Bexport'
18948          no_entry_flag=""
18949        else
18950          aix_use_runtimelinking=no
18951
18952          # Test if we are trying to use run time linking or normal
18953          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18954          # need to do runtime linking.
18955          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18956	    for ld_flag in $LDFLAGS; do
18957	      case $ld_flag in
18958	      *-brtl*)
18959	        aix_use_runtimelinking=yes
18960	        break
18961	        ;;
18962	      esac
18963	    done
18964	    ;;
18965          esac
18966
18967          exp_sym_flag='-bexport'
18968          no_entry_flag='-bnoentry'
18969        fi
18970
18971        # When large executables or shared objects are built, AIX ld can
18972        # have problems creating the table of contents.  If linking a library
18973        # or program results in "error TOC overflow" add -mminimal-toc to
18974        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18975        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18976
18977        archive_cmds_CXX=''
18978        hardcode_direct_CXX=yes
18979        hardcode_direct_absolute_CXX=yes
18980        hardcode_libdir_separator_CXX=':'
18981        link_all_deplibs_CXX=yes
18982        file_list_spec_CXX='${wl}-f,'
18983
18984        if test "$GXX" = yes; then
18985          case $host_os in aix4.[012]|aix4.[012].*)
18986          # We only want to do this on AIX 4.2 and lower, the check
18987          # below for broken collect2 doesn't work under 4.3+
18988	  collect2name=`${CC} -print-prog-name=collect2`
18989	  if test -f "$collect2name" &&
18990	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18991	  then
18992	    # We have reworked collect2
18993	    :
18994	  else
18995	    # We have old collect2
18996	    hardcode_direct_CXX=unsupported
18997	    # It fails to find uninstalled libraries when the uninstalled
18998	    # path is not listed in the libpath.  Setting hardcode_minus_L
18999	    # to unsupported forces relinking
19000	    hardcode_minus_L_CXX=yes
19001	    hardcode_libdir_flag_spec_CXX='-L$libdir'
19002	    hardcode_libdir_separator_CXX=
19003	  fi
19004          esac
19005          shared_flag='-shared'
19006	  if test "$aix_use_runtimelinking" = yes; then
19007	    shared_flag="$shared_flag "'${wl}-G'
19008	  fi
19009        else
19010          # not using gcc
19011          if test "$host_cpu" = ia64; then
19012	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19013	  # chokes on -Wl,-G. The following line is correct:
19014	  shared_flag='-G'
19015          else
19016	    if test "$aix_use_runtimelinking" = yes; then
19017	      shared_flag='${wl}-G'
19018	    else
19019	      shared_flag='${wl}-bM:SRE'
19020	    fi
19021          fi
19022        fi
19023
19024        export_dynamic_flag_spec_CXX='${wl}-bexpall'
19025        # It seems that -bexpall does not export symbols beginning with
19026        # underscore (_), so it is better to generate a list of symbols to
19027	# export.
19028        always_export_symbols_CXX=yes
19029        if test "$aix_use_runtimelinking" = yes; then
19030          # Warning - without using the other runtime loading flags (-brtl),
19031          # -berok will link without error, but may produce a broken library.
19032          allow_undefined_flag_CXX='-berok'
19033          # Determine the default libpath from the value encoded in an empty
19034          # executable.
19035          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036/* end confdefs.h.  */
19037
19038int
19039main ()
19040{
19041
19042  ;
19043  return 0;
19044}
19045_ACEOF
19046if ac_fn_cxx_try_link "$LINENO"; then :
19047
19048lt_aix_libpath_sed='
19049    /Import File Strings/,/^$/ {
19050	/^0/ {
19051	    s/^0  *\(.*\)$/\1/
19052	    p
19053	}
19054    }'
19055aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19056# Check for a 64-bit object if we didn't find anything.
19057if test -z "$aix_libpath"; then
19058  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19059fi
19060fi
19061rm -f core conftest.err conftest.$ac_objext \
19062    conftest$ac_exeext conftest.$ac_ext
19063if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19064
19065          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19066
19067          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19068        else
19069          if test "$host_cpu" = ia64; then
19070	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19071	    allow_undefined_flag_CXX="-z nodefs"
19072	    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"
19073          else
19074	    # Determine the default libpath from the value encoded in an
19075	    # empty executable.
19076	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077/* end confdefs.h.  */
19078
19079int
19080main ()
19081{
19082
19083  ;
19084  return 0;
19085}
19086_ACEOF
19087if ac_fn_cxx_try_link "$LINENO"; then :
19088
19089lt_aix_libpath_sed='
19090    /Import File Strings/,/^$/ {
19091	/^0/ {
19092	    s/^0  *\(.*\)$/\1/
19093	    p
19094	}
19095    }'
19096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19097# Check for a 64-bit object if we didn't find anything.
19098if test -z "$aix_libpath"; then
19099  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19100fi
19101fi
19102rm -f core conftest.err conftest.$ac_objext \
19103    conftest$ac_exeext conftest.$ac_ext
19104if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19105
19106	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19107	    # Warning - without using the other run time loading flags,
19108	    # -berok will link without error, but may produce a broken library.
19109	    no_undefined_flag_CXX=' ${wl}-bernotok'
19110	    allow_undefined_flag_CXX=' ${wl}-berok'
19111	    if test "$with_gnu_ld" = yes; then
19112	      # We only use this code for GNU lds that support --whole-archive.
19113	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19114	    else
19115	      # Exported symbols can be pulled into shared objects from archives
19116	      whole_archive_flag_spec_CXX='$convenience'
19117	    fi
19118	    archive_cmds_need_lc_CXX=yes
19119	    # This is similar to how AIX traditionally builds its shared
19120	    # libraries.
19121	    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'
19122          fi
19123        fi
19124        ;;
19125
19126      beos*)
19127	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19128	  allow_undefined_flag_CXX=unsupported
19129	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19130	  # support --undefined.  This deserves some investigation.  FIXME
19131	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19132	else
19133	  ld_shlibs_CXX=no
19134	fi
19135	;;
19136
19137      chorus*)
19138        case $cc_basename in
19139          *)
19140	  # FIXME: insert proper C++ library support
19141	  ld_shlibs_CXX=no
19142	  ;;
19143        esac
19144        ;;
19145
19146      cygwin* | mingw* | pw32* | cegcc*)
19147        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19148        # as there is no search path for DLLs.
19149        hardcode_libdir_flag_spec_CXX='-L$libdir'
19150        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19151        allow_undefined_flag_CXX=unsupported
19152        always_export_symbols_CXX=no
19153        enable_shared_with_static_runtimes_CXX=yes
19154
19155        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19156          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'
19157          # If the export-symbols file already is a .def file (1st line
19158          # is EXPORTS), use it as is; otherwise, prepend...
19159          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19160	    cp $export_symbols $output_objdir/$soname.def;
19161          else
19162	    echo EXPORTS > $output_objdir/$soname.def;
19163	    cat $export_symbols >> $output_objdir/$soname.def;
19164          fi~
19165          $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'
19166        else
19167          ld_shlibs_CXX=no
19168        fi
19169        ;;
19170      darwin* | rhapsody*)
19171
19172
19173  archive_cmds_need_lc_CXX=no
19174  hardcode_direct_CXX=no
19175  hardcode_automatic_CXX=yes
19176  hardcode_shlibpath_var_CXX=unsupported
19177  if test "$lt_cv_ld_force_load" = "yes"; then
19178    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19179  else
19180    whole_archive_flag_spec_CXX=''
19181  fi
19182  link_all_deplibs_CXX=yes
19183  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19184  case $cc_basename in
19185     ifort*) _lt_dar_can_shared=yes ;;
19186     *) _lt_dar_can_shared=$GCC ;;
19187  esac
19188  if test "$_lt_dar_can_shared" = "yes"; then
19189    output_verbose_link_cmd=func_echo_all
19190    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}"
19191    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19192    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}"
19193    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}"
19194       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19195      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}"
19196      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}"
19197    fi
19198
19199  else
19200  ld_shlibs_CXX=no
19201  fi
19202
19203	;;
19204
19205      dgux*)
19206        case $cc_basename in
19207          ec++*)
19208	    # FIXME: insert proper C++ library support
19209	    ld_shlibs_CXX=no
19210	    ;;
19211          ghcx*)
19212	    # Green Hills C++ Compiler
19213	    # FIXME: insert proper C++ library support
19214	    ld_shlibs_CXX=no
19215	    ;;
19216          *)
19217	    # FIXME: insert proper C++ library support
19218	    ld_shlibs_CXX=no
19219	    ;;
19220        esac
19221        ;;
19222
19223      freebsd2.*)
19224        # C++ shared libraries reported to be fairly broken before
19225	# switch to ELF
19226        ld_shlibs_CXX=no
19227        ;;
19228
19229      freebsd-elf*)
19230        archive_cmds_need_lc_CXX=no
19231        ;;
19232
19233      freebsd* | dragonfly*)
19234        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19235        # conventions
19236        ld_shlibs_CXX=yes
19237        ;;
19238
19239      gnu*)
19240        ;;
19241
19242      haiku*)
19243        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19244        link_all_deplibs_CXX=yes
19245        ;;
19246
19247      hpux9*)
19248        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19249        hardcode_libdir_separator_CXX=:
19250        export_dynamic_flag_spec_CXX='${wl}-E'
19251        hardcode_direct_CXX=yes
19252        hardcode_minus_L_CXX=yes # Not in the search PATH,
19253				             # but as the default
19254				             # location of the library.
19255
19256        case $cc_basename in
19257          CC*)
19258            # FIXME: insert proper C++ library support
19259            ld_shlibs_CXX=no
19260            ;;
19261          aCC*)
19262            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'
19263            # Commands to make compiler produce verbose output that lists
19264            # what "hidden" libraries, object files and flags are used when
19265            # linking a shared library.
19266            #
19267            # There doesn't appear to be a way to prevent this compiler from
19268            # explicitly linking system object files so we need to strip them
19269            # from the output so that they don't get included in the library
19270            # dependencies.
19271            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19272            ;;
19273          *)
19274            if test "$GXX" = yes; then
19275              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'
19276            else
19277              # FIXME: insert proper C++ library support
19278              ld_shlibs_CXX=no
19279            fi
19280            ;;
19281        esac
19282        ;;
19283
19284      hpux10*|hpux11*)
19285        if test $with_gnu_ld = no; then
19286	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19287	  hardcode_libdir_separator_CXX=:
19288
19289          case $host_cpu in
19290            hppa*64*|ia64*)
19291              ;;
19292            *)
19293	      export_dynamic_flag_spec_CXX='${wl}-E'
19294              ;;
19295          esac
19296        fi
19297        case $host_cpu in
19298          hppa*64*|ia64*)
19299            hardcode_direct_CXX=no
19300            hardcode_shlibpath_var_CXX=no
19301            ;;
19302          *)
19303            hardcode_direct_CXX=yes
19304            hardcode_direct_absolute_CXX=yes
19305            hardcode_minus_L_CXX=yes # Not in the search PATH,
19306					         # but as the default
19307					         # location of the library.
19308            ;;
19309        esac
19310
19311        case $cc_basename in
19312          CC*)
19313	    # FIXME: insert proper C++ library support
19314	    ld_shlibs_CXX=no
19315	    ;;
19316          aCC*)
19317	    case $host_cpu in
19318	      hppa*64*)
19319	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19320	        ;;
19321	      ia64*)
19322	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19323	        ;;
19324	      *)
19325	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19326	        ;;
19327	    esac
19328	    # Commands to make compiler produce verbose output that lists
19329	    # what "hidden" libraries, object files and flags are used when
19330	    # linking a shared library.
19331	    #
19332	    # There doesn't appear to be a way to prevent this compiler from
19333	    # explicitly linking system object files so we need to strip them
19334	    # from the output so that they don't get included in the library
19335	    # dependencies.
19336	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19337	    ;;
19338          *)
19339	    if test "$GXX" = yes; then
19340	      if test $with_gnu_ld = no; then
19341	        case $host_cpu in
19342	          hppa*64*)
19343	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19344	            ;;
19345	          ia64*)
19346	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19347	            ;;
19348	          *)
19349	            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'
19350	            ;;
19351	        esac
19352	      fi
19353	    else
19354	      # FIXME: insert proper C++ library support
19355	      ld_shlibs_CXX=no
19356	    fi
19357	    ;;
19358        esac
19359        ;;
19360
19361      interix[3-9]*)
19362	hardcode_direct_CXX=no
19363	hardcode_shlibpath_var_CXX=no
19364	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19365	export_dynamic_flag_spec_CXX='${wl}-E'
19366	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19367	# Instead, shared libraries are loaded at an image base (0x10000000 by
19368	# default) and relocated if they conflict, which is a slow very memory
19369	# consuming and fragmenting process.  To avoid this, we pick a random,
19370	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19371	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19372	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'
19373	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'
19374	;;
19375      irix5* | irix6*)
19376        case $cc_basename in
19377          CC*)
19378	    # SGI C++
19379	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19380
19381	    # Archives containing C++ object files must be created using
19382	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19383	    # necessary to make sure instantiated templates are included
19384	    # in the archive.
19385	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19386	    ;;
19387          *)
19388	    if test "$GXX" = yes; then
19389	      if test "$with_gnu_ld" = no; then
19390	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19391	      else
19392	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19393	      fi
19394	    fi
19395	    link_all_deplibs_CXX=yes
19396	    ;;
19397        esac
19398        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19399        hardcode_libdir_separator_CXX=:
19400        inherit_rpath_CXX=yes
19401        ;;
19402
19403      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19404        case $cc_basename in
19405          KCC*)
19406	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19407
19408	    # KCC will only create a shared library if the output file
19409	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19410	    # to its proper name (with version) after linking.
19411	    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'
19412	    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'
19413	    # Commands to make compiler produce verbose output that lists
19414	    # what "hidden" libraries, object files and flags are used when
19415	    # linking a shared library.
19416	    #
19417	    # There doesn't appear to be a way to prevent this compiler from
19418	    # explicitly linking system object files so we need to strip them
19419	    # from the output so that they don't get included in the library
19420	    # dependencies.
19421	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19422
19423	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19424	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19425
19426	    # Archives containing C++ object files must be created using
19427	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19428	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19429	    ;;
19430	  icpc* | ecpc* )
19431	    # Intel C++
19432	    with_gnu_ld=yes
19433	    # version 8.0 and above of icpc choke on multiply defined symbols
19434	    # if we add $predep_objects and $postdep_objects, however 7.1 and
19435	    # earlier do not add the objects themselves.
19436	    case `$CC -V 2>&1` in
19437	      *"Version 7."*)
19438	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19439		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'
19440		;;
19441	      *)  # Version 8.0 or newer
19442	        tmp_idyn=
19443	        case $host_cpu in
19444		  ia64*) tmp_idyn=' -i_dynamic';;
19445		esac
19446	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19447		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'
19448		;;
19449	    esac
19450	    archive_cmds_need_lc_CXX=no
19451	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19452	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19453	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19454	    ;;
19455          pgCC* | pgcpp*)
19456            # Portland Group C++ compiler
19457	    case `$CC -V` in
19458	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19459	      prelink_cmds_CXX='tpldir=Template.dir~
19460		rm -rf $tpldir~
19461		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19462		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19463	      old_archive_cmds_CXX='tpldir=Template.dir~
19464		rm -rf $tpldir~
19465		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19466		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19467		$RANLIB $oldlib'
19468	      archive_cmds_CXX='tpldir=Template.dir~
19469		rm -rf $tpldir~
19470		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19471		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19472	      archive_expsym_cmds_CXX='tpldir=Template.dir~
19473		rm -rf $tpldir~
19474		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19475		$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'
19476	      ;;
19477	    *) # Version 6 and above use weak symbols
19478	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19479	      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'
19480	      ;;
19481	    esac
19482
19483	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19484	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19485	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19486            ;;
19487	  cxx*)
19488	    # Compaq C++
19489	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19490	    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'
19491
19492	    runpath_var=LD_RUN_PATH
19493	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19494	    hardcode_libdir_separator_CXX=:
19495
19496	    # Commands to make compiler produce verbose output that lists
19497	    # what "hidden" libraries, object files and flags are used when
19498	    # linking a shared library.
19499	    #
19500	    # There doesn't appear to be a way to prevent this compiler from
19501	    # explicitly linking system object files so we need to strip them
19502	    # from the output so that they don't get included in the library
19503	    # dependencies.
19504	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19505	    ;;
19506	  xl* | mpixl* | bgxl*)
19507	    # IBM XL 8.0 on PPC, with GNU ld
19508	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19509	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19510	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19511	    if test "x$supports_anon_versioning" = xyes; then
19512	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19513		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19514		echo "local: *; };" >> $output_objdir/$libname.ver~
19515		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19516	    fi
19517	    ;;
19518	  *)
19519	    case `$CC -V 2>&1 | sed 5q` in
19520	    *Sun\ C*)
19521	      # Sun C++ 5.9
19522	      no_undefined_flag_CXX=' -zdefs'
19523	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19524	      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'
19525	      hardcode_libdir_flag_spec_CXX='-R$libdir'
19526	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19527	      compiler_needs_object_CXX=yes
19528
19529	      # Not sure whether something based on
19530	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19531	      # would be better.
19532	      output_verbose_link_cmd='func_echo_all'
19533
19534	      # Archives containing C++ object files must be created using
19535	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19536	      # necessary to make sure instantiated templates are included
19537	      # in the archive.
19538	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19539	      ;;
19540	    esac
19541	    ;;
19542	esac
19543	;;
19544
19545      lynxos*)
19546        # FIXME: insert proper C++ library support
19547	ld_shlibs_CXX=no
19548	;;
19549
19550      m88k*)
19551        # FIXME: insert proper C++ library support
19552        ld_shlibs_CXX=no
19553	;;
19554
19555      mvs*)
19556        case $cc_basename in
19557          cxx*)
19558	    # FIXME: insert proper C++ library support
19559	    ld_shlibs_CXX=no
19560	    ;;
19561	  *)
19562	    # FIXME: insert proper C++ library support
19563	    ld_shlibs_CXX=no
19564	    ;;
19565	esac
19566	;;
19567
19568      netbsd*)
19569        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19570	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19571	  wlarc=
19572	  hardcode_libdir_flag_spec_CXX='-R$libdir'
19573	  hardcode_direct_CXX=yes
19574	  hardcode_shlibpath_var_CXX=no
19575	fi
19576	# Workaround some broken pre-1.5 toolchains
19577	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19578	;;
19579
19580      *nto* | *qnx*)
19581        ld_shlibs_CXX=yes
19582	;;
19583
19584      openbsd2*)
19585        # C++ shared libraries are fairly broken
19586	ld_shlibs_CXX=no
19587	;;
19588
19589      openbsd*)
19590	if test -f /usr/libexec/ld.so; then
19591	  hardcode_direct_CXX=yes
19592	  hardcode_shlibpath_var_CXX=no
19593	  hardcode_direct_absolute_CXX=yes
19594	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19595	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19596	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19597	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19598	    export_dynamic_flag_spec_CXX='${wl}-E'
19599	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19600	  fi
19601	  output_verbose_link_cmd=func_echo_all
19602	else
19603	  ld_shlibs_CXX=no
19604	fi
19605	;;
19606
19607      osf3* | osf4* | osf5*)
19608        case $cc_basename in
19609          KCC*)
19610	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19611
19612	    # KCC will only create a shared library if the output file
19613	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19614	    # to its proper name (with version) after linking.
19615	    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'
19616
19617	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19618	    hardcode_libdir_separator_CXX=:
19619
19620	    # Archives containing C++ object files must be created using
19621	    # the KAI C++ compiler.
19622	    case $host in
19623	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19624	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19625	    esac
19626	    ;;
19627          RCC*)
19628	    # Rational C++ 2.4.1
19629	    # FIXME: insert proper C++ library support
19630	    ld_shlibs_CXX=no
19631	    ;;
19632          cxx*)
19633	    case $host in
19634	      osf3*)
19635	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19636	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19637	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19638		;;
19639	      *)
19640	        allow_undefined_flag_CXX=' -expect_unresolved \*'
19641	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19642	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19643	          echo "-hidden">> $lib.exp~
19644	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19645	          $RM $lib.exp'
19646	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19647		;;
19648	    esac
19649
19650	    hardcode_libdir_separator_CXX=:
19651
19652	    # Commands to make compiler produce verbose output that lists
19653	    # what "hidden" libraries, object files and flags are used when
19654	    # linking a shared library.
19655	    #
19656	    # There doesn't appear to be a way to prevent this compiler from
19657	    # explicitly linking system object files so we need to strip them
19658	    # from the output so that they don't get included in the library
19659	    # dependencies.
19660	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19661	    ;;
19662	  *)
19663	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19664	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19665	      case $host in
19666	        osf3*)
19667	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19668		  ;;
19669	        *)
19670	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19671		  ;;
19672	      esac
19673
19674	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19675	      hardcode_libdir_separator_CXX=:
19676
19677	      # Commands to make compiler produce verbose output that lists
19678	      # what "hidden" libraries, object files and flags are used when
19679	      # linking a shared library.
19680	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19681
19682	    else
19683	      # FIXME: insert proper C++ library support
19684	      ld_shlibs_CXX=no
19685	    fi
19686	    ;;
19687        esac
19688        ;;
19689
19690      psos*)
19691        # FIXME: insert proper C++ library support
19692        ld_shlibs_CXX=no
19693        ;;
19694
19695      sunos4*)
19696        case $cc_basename in
19697          CC*)
19698	    # Sun C++ 4.x
19699	    # FIXME: insert proper C++ library support
19700	    ld_shlibs_CXX=no
19701	    ;;
19702          lcc*)
19703	    # Lucid
19704	    # FIXME: insert proper C++ library support
19705	    ld_shlibs_CXX=no
19706	    ;;
19707          *)
19708	    # FIXME: insert proper C++ library support
19709	    ld_shlibs_CXX=no
19710	    ;;
19711        esac
19712        ;;
19713
19714      solaris*)
19715        case $cc_basename in
19716          CC*)
19717	    # Sun C++ 4.2, 5.x and Centerline C++
19718            archive_cmds_need_lc_CXX=yes
19719	    no_undefined_flag_CXX=' -zdefs'
19720	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19721	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19722	      $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'
19723
19724	    hardcode_libdir_flag_spec_CXX='-R$libdir'
19725	    hardcode_shlibpath_var_CXX=no
19726	    case $host_os in
19727	      solaris2.[0-5] | solaris2.[0-5].*) ;;
19728	      *)
19729		# The compiler driver will combine and reorder linker options,
19730		# but understands `-z linker_flag'.
19731	        # Supported since Solaris 2.6 (maybe 2.5.1?)
19732		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19733	        ;;
19734	    esac
19735	    link_all_deplibs_CXX=yes
19736
19737	    output_verbose_link_cmd='func_echo_all'
19738
19739	    # Archives containing C++ object files must be created using
19740	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19741	    # necessary to make sure instantiated templates are included
19742	    # in the archive.
19743	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19744	    ;;
19745          gcx*)
19746	    # Green Hills C++ Compiler
19747	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19748
19749	    # The C++ compiler must be used to create the archive.
19750	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19751	    ;;
19752          *)
19753	    # GNU C++ compiler with Solaris linker
19754	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19755	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19756	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19757	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19758	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19759		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19760
19761	        # Commands to make compiler produce verbose output that lists
19762	        # what "hidden" libraries, object files and flags are used when
19763	        # linking a shared library.
19764	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19765	      else
19766	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
19767	        # platform.
19768	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19769	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19770		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19771
19772	        # Commands to make compiler produce verbose output that lists
19773	        # what "hidden" libraries, object files and flags are used when
19774	        # linking a shared library.
19775	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19776	      fi
19777
19778	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19779	      case $host_os in
19780		solaris2.[0-5] | solaris2.[0-5].*) ;;
19781		*)
19782		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19783		  ;;
19784	      esac
19785	    fi
19786	    ;;
19787        esac
19788        ;;
19789
19790    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19791      no_undefined_flag_CXX='${wl}-z,text'
19792      archive_cmds_need_lc_CXX=no
19793      hardcode_shlibpath_var_CXX=no
19794      runpath_var='LD_RUN_PATH'
19795
19796      case $cc_basename in
19797        CC*)
19798	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19799	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19800	  ;;
19801	*)
19802	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19803	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19804	  ;;
19805      esac
19806      ;;
19807
19808      sysv5* | sco3.2v5* | sco5v6*)
19809	# Note: We can NOT use -z defs as we might desire, because we do not
19810	# link with -lc, and that would cause any symbols used from libc to
19811	# always be unresolved, which means just about no library would
19812	# ever link correctly.  If we're not using GNU ld we use -z text
19813	# though, which does catch some bad symbols but isn't as heavy-handed
19814	# as -z defs.
19815	no_undefined_flag_CXX='${wl}-z,text'
19816	allow_undefined_flag_CXX='${wl}-z,nodefs'
19817	archive_cmds_need_lc_CXX=no
19818	hardcode_shlibpath_var_CXX=no
19819	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19820	hardcode_libdir_separator_CXX=':'
19821	link_all_deplibs_CXX=yes
19822	export_dynamic_flag_spec_CXX='${wl}-Bexport'
19823	runpath_var='LD_RUN_PATH'
19824
19825	case $cc_basename in
19826          CC*)
19827	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19828	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19829	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19830	      '"$old_archive_cmds_CXX"
19831	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19832	      '"$reload_cmds_CXX"
19833	    ;;
19834	  *)
19835	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19836	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19837	    ;;
19838	esac
19839      ;;
19840
19841      tandem*)
19842        case $cc_basename in
19843          NCC*)
19844	    # NonStop-UX NCC 3.20
19845	    # FIXME: insert proper C++ library support
19846	    ld_shlibs_CXX=no
19847	    ;;
19848          *)
19849	    # FIXME: insert proper C++ library support
19850	    ld_shlibs_CXX=no
19851	    ;;
19852        esac
19853        ;;
19854
19855      vxworks*)
19856        # FIXME: insert proper C++ library support
19857        ld_shlibs_CXX=no
19858        ;;
19859
19860      *)
19861        # FIXME: insert proper C++ library support
19862        ld_shlibs_CXX=no
19863        ;;
19864    esac
19865
19866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19867$as_echo "$ld_shlibs_CXX" >&6; }
19868    test "$ld_shlibs_CXX" = no && can_build_shared=no
19869
19870    GCC_CXX="$GXX"
19871    LD_CXX="$LD"
19872
19873    ## CAVEAT EMPTOR:
19874    ## There is no encapsulation within the following macros, do not change
19875    ## the running order or otherwise move them around unless you know exactly
19876    ## what you are doing...
19877    # Dependencies to place before and after the object being linked:
19878predep_objects_CXX=
19879postdep_objects_CXX=
19880predeps_CXX=
19881postdeps_CXX=
19882compiler_lib_search_path_CXX=
19883
19884cat > conftest.$ac_ext <<_LT_EOF
19885class Foo
19886{
19887public:
19888  Foo (void) { a = 0; }
19889private:
19890  int a;
19891};
19892_LT_EOF
19893
19894if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19895  (eval $ac_compile) 2>&5
19896  ac_status=$?
19897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19898  test $ac_status = 0; }; then
19899  # Parse the compiler output and extract the necessary
19900  # objects, libraries and library flags.
19901
19902  # Sentinel used to keep track of whether or not we are before
19903  # the conftest object file.
19904  pre_test_object_deps_done=no
19905
19906  for p in `eval "$output_verbose_link_cmd"`; do
19907    case $p in
19908
19909    -L* | -R* | -l*)
19910       # Some compilers place space between "-{L,R}" and the path.
19911       # Remove the space.
19912       if test $p = "-L" ||
19913          test $p = "-R"; then
19914	 prev=$p
19915	 continue
19916       else
19917	 prev=
19918       fi
19919
19920       if test "$pre_test_object_deps_done" = no; then
19921	 case $p in
19922	 -L* | -R*)
19923	   # Internal compiler library paths should come after those
19924	   # provided the user.  The postdeps already come after the
19925	   # user supplied libs so there is no need to process them.
19926	   if test -z "$compiler_lib_search_path_CXX"; then
19927	     compiler_lib_search_path_CXX="${prev}${p}"
19928	   else
19929	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19930	   fi
19931	   ;;
19932	 # The "-l" case would never come before the object being
19933	 # linked, so don't bother handling this case.
19934	 esac
19935       else
19936	 if test -z "$postdeps_CXX"; then
19937	   postdeps_CXX="${prev}${p}"
19938	 else
19939	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19940	 fi
19941       fi
19942       ;;
19943
19944    *.$objext)
19945       # This assumes that the test object file only shows up
19946       # once in the compiler output.
19947       if test "$p" = "conftest.$objext"; then
19948	 pre_test_object_deps_done=yes
19949	 continue
19950       fi
19951
19952       if test "$pre_test_object_deps_done" = no; then
19953	 if test -z "$predep_objects_CXX"; then
19954	   predep_objects_CXX="$p"
19955	 else
19956	   predep_objects_CXX="$predep_objects_CXX $p"
19957	 fi
19958       else
19959	 if test -z "$postdep_objects_CXX"; then
19960	   postdep_objects_CXX="$p"
19961	 else
19962	   postdep_objects_CXX="$postdep_objects_CXX $p"
19963	 fi
19964       fi
19965       ;;
19966
19967    *) ;; # Ignore the rest.
19968
19969    esac
19970  done
19971
19972  # Clean up.
19973  rm -f a.out a.exe
19974else
19975  echo "libtool.m4: error: problem compiling CXX test program"
19976fi
19977
19978$RM -f confest.$objext
19979
19980# PORTME: override above test on systems where it is broken
19981case $host_os in
19982interix[3-9]*)
19983  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19984  # hack all around it, let's just trust "g++" to DTRT.
19985  predep_objects_CXX=
19986  postdep_objects_CXX=
19987  postdeps_CXX=
19988  ;;
19989
19990linux*)
19991  case `$CC -V 2>&1 | sed 5q` in
19992  *Sun\ C*)
19993    # Sun C++ 5.9
19994
19995    # The more standards-conforming stlport4 library is
19996    # incompatible with the Cstd library. Avoid specifying
19997    # it if it's in CXXFLAGS. Ignore libCrun as
19998    # -library=stlport4 depends on it.
19999    case " $CXX $CXXFLAGS " in
20000    *" -library=stlport4 "*)
20001      solaris_use_stlport4=yes
20002      ;;
20003    esac
20004
20005    if test "$solaris_use_stlport4" != yes; then
20006      postdeps_CXX='-library=Cstd -library=Crun'
20007    fi
20008    ;;
20009  esac
20010  ;;
20011
20012solaris*)
20013  case $cc_basename in
20014  CC*)
20015    # The more standards-conforming stlport4 library is
20016    # incompatible with the Cstd library. Avoid specifying
20017    # it if it's in CXXFLAGS. Ignore libCrun as
20018    # -library=stlport4 depends on it.
20019    case " $CXX $CXXFLAGS " in
20020    *" -library=stlport4 "*)
20021      solaris_use_stlport4=yes
20022      ;;
20023    esac
20024
20025    # Adding this requires a known-good setup of shared libraries for
20026    # Sun compiler versions before 5.6, else PIC objects from an old
20027    # archive will be linked into the output, leading to subtle bugs.
20028    if test "$solaris_use_stlport4" != yes; then
20029      postdeps_CXX='-library=Cstd -library=Crun'
20030    fi
20031    ;;
20032  esac
20033  ;;
20034esac
20035
20036
20037case " $postdeps_CXX " in
20038*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20039esac
20040 compiler_lib_search_dirs_CXX=
20041if test -n "${compiler_lib_search_path_CXX}"; then
20042 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20043fi
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075    lt_prog_compiler_wl_CXX=
20076lt_prog_compiler_pic_CXX=
20077lt_prog_compiler_static_CXX=
20078
20079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20080$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20081
20082  # C++ specific cases for pic, static, wl, etc.
20083  if test "$GXX" = yes; then
20084    lt_prog_compiler_wl_CXX='-Wl,'
20085    lt_prog_compiler_static_CXX='-static'
20086
20087    case $host_os in
20088    aix*)
20089      # All AIX code is PIC.
20090      if test "$host_cpu" = ia64; then
20091	# AIX 5 now supports IA64 processor
20092	lt_prog_compiler_static_CXX='-Bstatic'
20093      fi
20094      lt_prog_compiler_pic_CXX='-fPIC'
20095      ;;
20096
20097    amigaos*)
20098      case $host_cpu in
20099      powerpc)
20100            # see comment about AmigaOS4 .so support
20101            lt_prog_compiler_pic_CXX='-fPIC'
20102        ;;
20103      m68k)
20104            # FIXME: we need at least 68020 code to build shared libraries, but
20105            # adding the `-m68020' flag to GCC prevents building anything better,
20106            # like `-m68040'.
20107            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20108        ;;
20109      esac
20110      ;;
20111    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20112      # PIC is the default for these OSes.
20113      ;;
20114    mingw* | cygwin* | os2* | pw32* | cegcc*)
20115      # This hack is so that the source file can tell whether it is being
20116      # built for inclusion in a dll (and should export symbols for example).
20117      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20118      # (--disable-auto-import) libraries
20119      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20120      ;;
20121    darwin* | rhapsody*)
20122      # PIC is the default on this platform
20123      # Common symbols not allowed in MH_DYLIB files
20124      lt_prog_compiler_pic_CXX='-fno-common'
20125      ;;
20126    *djgpp*)
20127      # DJGPP does not support shared libraries at all
20128      lt_prog_compiler_pic_CXX=
20129      ;;
20130    haiku*)
20131      # PIC is the default for Haiku.
20132      ;;
20133    interix[3-9]*)
20134      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20135      # Instead, we relocate shared libraries at runtime.
20136      ;;
20137    sysv4*MP*)
20138      if test -d /usr/nec; then
20139	lt_prog_compiler_pic_CXX=-Kconform_pic
20140      fi
20141      ;;
20142    hpux*)
20143      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20144      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20145      # sets the default TLS model and affects inlining.
20146      case $host_cpu in
20147      hppa*64*)
20148	;;
20149      *)
20150	lt_prog_compiler_pic_CXX='-fPIC'
20151	;;
20152      esac
20153      ;;
20154    *qnx* | *nto*)
20155      # QNX uses GNU C++, but need to define -shared option too, otherwise
20156      # it will coredump.
20157      lt_prog_compiler_pic_CXX='-fPIC -shared'
20158      ;;
20159    *)
20160      lt_prog_compiler_pic_CXX='-fPIC'
20161      ;;
20162    esac
20163  else
20164    case $host_os in
20165      aix[4-9]*)
20166	# All AIX code is PIC.
20167	if test "$host_cpu" = ia64; then
20168	  # AIX 5 now supports IA64 processor
20169	  lt_prog_compiler_static_CXX='-Bstatic'
20170	else
20171	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20172	fi
20173	;;
20174      chorus*)
20175	case $cc_basename in
20176	cxch68*)
20177	  # Green Hills C++ Compiler
20178	  # _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"
20179	  ;;
20180	esac
20181	;;
20182      dgux*)
20183	case $cc_basename in
20184	  ec++*)
20185	    lt_prog_compiler_pic_CXX='-KPIC'
20186	    ;;
20187	  ghcx*)
20188	    # Green Hills C++ Compiler
20189	    lt_prog_compiler_pic_CXX='-pic'
20190	    ;;
20191	  *)
20192	    ;;
20193	esac
20194	;;
20195      freebsd* | dragonfly*)
20196	# FreeBSD uses GNU C++
20197	;;
20198      hpux9* | hpux10* | hpux11*)
20199	case $cc_basename in
20200	  CC*)
20201	    lt_prog_compiler_wl_CXX='-Wl,'
20202	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20203	    if test "$host_cpu" != ia64; then
20204	      lt_prog_compiler_pic_CXX='+Z'
20205	    fi
20206	    ;;
20207	  aCC*)
20208	    lt_prog_compiler_wl_CXX='-Wl,'
20209	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20210	    case $host_cpu in
20211	    hppa*64*|ia64*)
20212	      # +Z the default
20213	      ;;
20214	    *)
20215	      lt_prog_compiler_pic_CXX='+Z'
20216	      ;;
20217	    esac
20218	    ;;
20219	  *)
20220	    ;;
20221	esac
20222	;;
20223      interix*)
20224	# This is c89, which is MS Visual C++ (no shared libs)
20225	# Anyone wants to do a port?
20226	;;
20227      irix5* | irix6* | nonstopux*)
20228	case $cc_basename in
20229	  CC*)
20230	    lt_prog_compiler_wl_CXX='-Wl,'
20231	    lt_prog_compiler_static_CXX='-non_shared'
20232	    # CC pic flag -KPIC is the default.
20233	    ;;
20234	  *)
20235	    ;;
20236	esac
20237	;;
20238      linux* | k*bsd*-gnu | kopensolaris*-gnu)
20239	case $cc_basename in
20240	  KCC*)
20241	    # KAI C++ Compiler
20242	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20243	    lt_prog_compiler_pic_CXX='-fPIC'
20244	    ;;
20245	  ecpc* )
20246	    # old Intel C++ for x86_64 which still supported -KPIC.
20247	    lt_prog_compiler_wl_CXX='-Wl,'
20248	    lt_prog_compiler_pic_CXX='-KPIC'
20249	    lt_prog_compiler_static_CXX='-static'
20250	    ;;
20251	  icpc* )
20252	    # Intel C++, used to be incompatible with GCC.
20253	    # ICC 10 doesn't accept -KPIC any more.
20254	    lt_prog_compiler_wl_CXX='-Wl,'
20255	    lt_prog_compiler_pic_CXX='-fPIC'
20256	    lt_prog_compiler_static_CXX='-static'
20257	    ;;
20258	  pgCC* | pgcpp*)
20259	    # Portland Group C++ compiler
20260	    lt_prog_compiler_wl_CXX='-Wl,'
20261	    lt_prog_compiler_pic_CXX='-fpic'
20262	    lt_prog_compiler_static_CXX='-Bstatic'
20263	    ;;
20264	  cxx*)
20265	    # Compaq C++
20266	    # Make sure the PIC flag is empty.  It appears that all Alpha
20267	    # Linux and Compaq Tru64 Unix objects are PIC.
20268	    lt_prog_compiler_pic_CXX=
20269	    lt_prog_compiler_static_CXX='-non_shared'
20270	    ;;
20271	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20272	    # IBM XL 8.0, 9.0 on PPC and BlueGene
20273	    lt_prog_compiler_wl_CXX='-Wl,'
20274	    lt_prog_compiler_pic_CXX='-qpic'
20275	    lt_prog_compiler_static_CXX='-qstaticlink'
20276	    ;;
20277	  *)
20278	    case `$CC -V 2>&1 | sed 5q` in
20279	    *Sun\ C*)
20280	      # Sun C++ 5.9
20281	      lt_prog_compiler_pic_CXX='-KPIC'
20282	      lt_prog_compiler_static_CXX='-Bstatic'
20283	      lt_prog_compiler_wl_CXX='-Qoption ld '
20284	      ;;
20285	    esac
20286	    ;;
20287	esac
20288	;;
20289      lynxos*)
20290	;;
20291      m88k*)
20292	;;
20293      mvs*)
20294	case $cc_basename in
20295	  cxx*)
20296	    lt_prog_compiler_pic_CXX='-W c,exportall'
20297	    ;;
20298	  *)
20299	    ;;
20300	esac
20301	;;
20302      netbsd*)
20303	;;
20304      *qnx* | *nto*)
20305        # QNX uses GNU C++, but need to define -shared option too, otherwise
20306        # it will coredump.
20307        lt_prog_compiler_pic_CXX='-fPIC -shared'
20308        ;;
20309      osf3* | osf4* | osf5*)
20310	case $cc_basename in
20311	  KCC*)
20312	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20313	    ;;
20314	  RCC*)
20315	    # Rational C++ 2.4.1
20316	    lt_prog_compiler_pic_CXX='-pic'
20317	    ;;
20318	  cxx*)
20319	    # Digital/Compaq C++
20320	    lt_prog_compiler_wl_CXX='-Wl,'
20321	    # Make sure the PIC flag is empty.  It appears that all Alpha
20322	    # Linux and Compaq Tru64 Unix objects are PIC.
20323	    lt_prog_compiler_pic_CXX=
20324	    lt_prog_compiler_static_CXX='-non_shared'
20325	    ;;
20326	  *)
20327	    ;;
20328	esac
20329	;;
20330      psos*)
20331	;;
20332      solaris*)
20333	case $cc_basename in
20334	  CC*)
20335	    # Sun C++ 4.2, 5.x and Centerline C++
20336	    lt_prog_compiler_pic_CXX='-KPIC'
20337	    lt_prog_compiler_static_CXX='-Bstatic'
20338	    lt_prog_compiler_wl_CXX='-Qoption ld '
20339	    ;;
20340	  gcx*)
20341	    # Green Hills C++ Compiler
20342	    lt_prog_compiler_pic_CXX='-PIC'
20343	    ;;
20344	  *)
20345	    ;;
20346	esac
20347	;;
20348      sunos4*)
20349	case $cc_basename in
20350	  CC*)
20351	    # Sun C++ 4.x
20352	    lt_prog_compiler_pic_CXX='-pic'
20353	    lt_prog_compiler_static_CXX='-Bstatic'
20354	    ;;
20355	  lcc*)
20356	    # Lucid
20357	    lt_prog_compiler_pic_CXX='-pic'
20358	    ;;
20359	  *)
20360	    ;;
20361	esac
20362	;;
20363      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20364	case $cc_basename in
20365	  CC*)
20366	    lt_prog_compiler_wl_CXX='-Wl,'
20367	    lt_prog_compiler_pic_CXX='-KPIC'
20368	    lt_prog_compiler_static_CXX='-Bstatic'
20369	    ;;
20370	esac
20371	;;
20372      tandem*)
20373	case $cc_basename in
20374	  NCC*)
20375	    # NonStop-UX NCC 3.20
20376	    lt_prog_compiler_pic_CXX='-KPIC'
20377	    ;;
20378	  *)
20379	    ;;
20380	esac
20381	;;
20382      vxworks*)
20383	;;
20384      *)
20385	lt_prog_compiler_can_build_shared_CXX=no
20386	;;
20387    esac
20388  fi
20389
20390case $host_os in
20391  # For platforms which do not support PIC, -DPIC is meaningless:
20392  *djgpp*)
20393    lt_prog_compiler_pic_CXX=
20394    ;;
20395  *)
20396    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20397    ;;
20398esac
20399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20400$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20401
20402
20403
20404#
20405# Check to make sure the PIC flag actually works.
20406#
20407if test -n "$lt_prog_compiler_pic_CXX"; then
20408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20409$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20410if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20411  $as_echo_n "(cached) " >&6
20412else
20413  lt_cv_prog_compiler_pic_works_CXX=no
20414   ac_outfile=conftest.$ac_objext
20415   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20416   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20417   # Insert the option either (1) after the last *FLAGS variable, or
20418   # (2) before a word containing "conftest.", or (3) at the end.
20419   # Note that $ac_compile itself does not contain backslashes and begins
20420   # with a dollar sign (not a hyphen), so the echo should work correctly.
20421   # The option is referenced via a variable to avoid confusing sed.
20422   lt_compile=`echo "$ac_compile" | $SED \
20423   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20424   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20425   -e 's:$: $lt_compiler_flag:'`
20426   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20427   (eval "$lt_compile" 2>conftest.err)
20428   ac_status=$?
20429   cat conftest.err >&5
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   if (exit $ac_status) && test -s "$ac_outfile"; then
20432     # The compiler can only warn and ignore the option if not recognized
20433     # So say no if there are warnings other than the usual output.
20434     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20435     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20436     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20437       lt_cv_prog_compiler_pic_works_CXX=yes
20438     fi
20439   fi
20440   $RM conftest*
20441
20442fi
20443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20444$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20445
20446if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20447    case $lt_prog_compiler_pic_CXX in
20448     "" | " "*) ;;
20449     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20450     esac
20451else
20452    lt_prog_compiler_pic_CXX=
20453     lt_prog_compiler_can_build_shared_CXX=no
20454fi
20455
20456fi
20457
20458
20459
20460#
20461# Check to make sure the static flag actually works.
20462#
20463wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20465$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20466if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20467  $as_echo_n "(cached) " >&6
20468else
20469  lt_cv_prog_compiler_static_works_CXX=no
20470   save_LDFLAGS="$LDFLAGS"
20471   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20472   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20473   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20474     # The linker can only warn and ignore the option if not recognized
20475     # So say no if there are warnings
20476     if test -s conftest.err; then
20477       # Append any errors to the config.log.
20478       cat conftest.err 1>&5
20479       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20480       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20481       if diff conftest.exp conftest.er2 >/dev/null; then
20482         lt_cv_prog_compiler_static_works_CXX=yes
20483       fi
20484     else
20485       lt_cv_prog_compiler_static_works_CXX=yes
20486     fi
20487   fi
20488   $RM -r conftest*
20489   LDFLAGS="$save_LDFLAGS"
20490
20491fi
20492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20493$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20494
20495if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20496    :
20497else
20498    lt_prog_compiler_static_CXX=
20499fi
20500
20501
20502
20503
20504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20505$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20506if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20507  $as_echo_n "(cached) " >&6
20508else
20509  lt_cv_prog_compiler_c_o_CXX=no
20510   $RM -r conftest 2>/dev/null
20511   mkdir conftest
20512   cd conftest
20513   mkdir out
20514   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20515
20516   lt_compiler_flag="-o out/conftest2.$ac_objext"
20517   # Insert the option either (1) after the last *FLAGS variable, or
20518   # (2) before a word containing "conftest.", or (3) at the end.
20519   # Note that $ac_compile itself does not contain backslashes and begins
20520   # with a dollar sign (not a hyphen), so the echo should work correctly.
20521   lt_compile=`echo "$ac_compile" | $SED \
20522   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20523   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20524   -e 's:$: $lt_compiler_flag:'`
20525   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20526   (eval "$lt_compile" 2>out/conftest.err)
20527   ac_status=$?
20528   cat out/conftest.err >&5
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20531   then
20532     # The compiler can only warn and ignore the option if not recognized
20533     # So say no if there are warnings
20534     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20535     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20536     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20537       lt_cv_prog_compiler_c_o_CXX=yes
20538     fi
20539   fi
20540   chmod u+w . 2>&5
20541   $RM conftest*
20542   # SGI C++ compiler will create directory out/ii_files/ for
20543   # template instantiation
20544   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20545   $RM out/* && rmdir out
20546   cd ..
20547   $RM -r conftest
20548   $RM conftest*
20549
20550fi
20551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20552$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20553
20554
20555
20556    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20557$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20558if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20559  $as_echo_n "(cached) " >&6
20560else
20561  lt_cv_prog_compiler_c_o_CXX=no
20562   $RM -r conftest 2>/dev/null
20563   mkdir conftest
20564   cd conftest
20565   mkdir out
20566   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20567
20568   lt_compiler_flag="-o out/conftest2.$ac_objext"
20569   # Insert the option either (1) after the last *FLAGS variable, or
20570   # (2) before a word containing "conftest.", or (3) at the end.
20571   # Note that $ac_compile itself does not contain backslashes and begins
20572   # with a dollar sign (not a hyphen), so the echo should work correctly.
20573   lt_compile=`echo "$ac_compile" | $SED \
20574   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20575   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20576   -e 's:$: $lt_compiler_flag:'`
20577   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20578   (eval "$lt_compile" 2>out/conftest.err)
20579   ac_status=$?
20580   cat out/conftest.err >&5
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20583   then
20584     # The compiler can only warn and ignore the option if not recognized
20585     # So say no if there are warnings
20586     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20587     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20588     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20589       lt_cv_prog_compiler_c_o_CXX=yes
20590     fi
20591   fi
20592   chmod u+w . 2>&5
20593   $RM conftest*
20594   # SGI C++ compiler will create directory out/ii_files/ for
20595   # template instantiation
20596   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20597   $RM out/* && rmdir out
20598   cd ..
20599   $RM -r conftest
20600   $RM conftest*
20601
20602fi
20603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20604$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20605
20606
20607
20608
20609hard_links="nottested"
20610if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20611  # do not overwrite the value of need_locks provided by the user
20612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20613$as_echo_n "checking if we can lock with hard links... " >&6; }
20614  hard_links=yes
20615  $RM conftest*
20616  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20617  touch conftest.a
20618  ln conftest.a conftest.b 2>&5 || hard_links=no
20619  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20621$as_echo "$hard_links" >&6; }
20622  if test "$hard_links" = no; then
20623    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20624$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20625    need_locks=warn
20626  fi
20627else
20628  need_locks=no
20629fi
20630
20631
20632
20633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20634$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20635
20636  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20637  case $host_os in
20638  aix[4-9]*)
20639    # If we're using GNU nm, then we don't want the "-C" option.
20640    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20641    # Also, AIX nm treats weak defined symbols like other global defined
20642    # symbols, whereas GNU nm marks them as "W".
20643    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20644      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20645    else
20646      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20647    fi
20648    ;;
20649  pw32*)
20650    export_symbols_cmds_CXX="$ltdll_cmds"
20651  ;;
20652  cygwin* | mingw* | cegcc*)
20653    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'
20654  ;;
20655  *)
20656    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20657  ;;
20658  esac
20659  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20660
20661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20662$as_echo "$ld_shlibs_CXX" >&6; }
20663test "$ld_shlibs_CXX" = no && can_build_shared=no
20664
20665with_gnu_ld_CXX=$with_gnu_ld
20666
20667
20668
20669
20670
20671
20672#
20673# Do we need to explicitly link libc?
20674#
20675case "x$archive_cmds_need_lc_CXX" in
20676x|xyes)
20677  # Assume -lc should be added
20678  archive_cmds_need_lc_CXX=yes
20679
20680  if test "$enable_shared" = yes && test "$GCC" = yes; then
20681    case $archive_cmds_CXX in
20682    *'~'*)
20683      # FIXME: we may have to deal with multi-command sequences.
20684      ;;
20685    '$CC '*)
20686      # Test whether the compiler implicitly links with -lc since on some
20687      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20688      # to ld, don't add -lc before -lgcc.
20689      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20690$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20691if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20692  $as_echo_n "(cached) " >&6
20693else
20694  $RM conftest*
20695	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20696
20697	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20698  (eval $ac_compile) 2>&5
20699  ac_status=$?
20700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20701  test $ac_status = 0; } 2>conftest.err; then
20702	  soname=conftest
20703	  lib=conftest
20704	  libobjs=conftest.$ac_objext
20705	  deplibs=
20706	  wl=$lt_prog_compiler_wl_CXX
20707	  pic_flag=$lt_prog_compiler_pic_CXX
20708	  compiler_flags=-v
20709	  linker_flags=-v
20710	  verstring=
20711	  output_objdir=.
20712	  libname=conftest
20713	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20714	  allow_undefined_flag_CXX=
20715	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20716  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20717  ac_status=$?
20718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20719  test $ac_status = 0; }
20720	  then
20721	    lt_cv_archive_cmds_need_lc_CXX=no
20722	  else
20723	    lt_cv_archive_cmds_need_lc_CXX=yes
20724	  fi
20725	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20726	else
20727	  cat conftest.err 1>&5
20728	fi
20729	$RM conftest*
20730
20731fi
20732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20733$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20734      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20735      ;;
20736    esac
20737  fi
20738  ;;
20739esac
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20805$as_echo_n "checking dynamic linker characteristics... " >&6; }
20806
20807library_names_spec=
20808libname_spec='lib$name'
20809soname_spec=
20810shrext_cmds=".so"
20811postinstall_cmds=
20812postuninstall_cmds=
20813finish_cmds=
20814finish_eval=
20815shlibpath_var=
20816shlibpath_overrides_runpath=unknown
20817version_type=none
20818dynamic_linker="$host_os ld.so"
20819sys_lib_dlsearch_path_spec="/lib /usr/lib"
20820need_lib_prefix=unknown
20821hardcode_into_libs=no
20822
20823# when you set need_version to no, make sure it does not cause -set_version
20824# flags to be left without arguments
20825need_version=unknown
20826
20827case $host_os in
20828aix3*)
20829  version_type=linux
20830  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20831  shlibpath_var=LIBPATH
20832
20833  # AIX 3 has no versioning support, so we append a major version to the name.
20834  soname_spec='${libname}${release}${shared_ext}$major'
20835  ;;
20836
20837aix[4-9]*)
20838  version_type=linux
20839  need_lib_prefix=no
20840  need_version=no
20841  hardcode_into_libs=yes
20842  if test "$host_cpu" = ia64; then
20843    # AIX 5 supports IA64
20844    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20845    shlibpath_var=LD_LIBRARY_PATH
20846  else
20847    # With GCC up to 2.95.x, collect2 would create an import file
20848    # for dependence libraries.  The import file would start with
20849    # the line `#! .'.  This would cause the generated library to
20850    # depend on `.', always an invalid library.  This was fixed in
20851    # development snapshots of GCC prior to 3.0.
20852    case $host_os in
20853      aix4 | aix4.[01] | aix4.[01].*)
20854      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20855	   echo ' yes '
20856	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20857	:
20858      else
20859	can_build_shared=no
20860      fi
20861      ;;
20862    esac
20863    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20864    # soname into executable. Probably we can add versioning support to
20865    # collect2, so additional links can be useful in future.
20866    if test "$aix_use_runtimelinking" = yes; then
20867      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20868      # instead of lib<name>.a to let people know that these are not
20869      # typical AIX shared libraries.
20870      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20871    else
20872      # We preserve .a as extension for shared libraries through AIX4.2
20873      # and later when we are not doing run time linking.
20874      library_names_spec='${libname}${release}.a $libname.a'
20875      soname_spec='${libname}${release}${shared_ext}$major'
20876    fi
20877    shlibpath_var=LIBPATH
20878  fi
20879  ;;
20880
20881amigaos*)
20882  case $host_cpu in
20883  powerpc)
20884    # Since July 2007 AmigaOS4 officially supports .so libraries.
20885    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20886    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887    ;;
20888  m68k)
20889    library_names_spec='$libname.ixlibrary $libname.a'
20890    # Create ${libname}_ixlibrary.a entries in /sys/libs.
20891    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20892    ;;
20893  esac
20894  ;;
20895
20896beos*)
20897  library_names_spec='${libname}${shared_ext}'
20898  dynamic_linker="$host_os ld.so"
20899  shlibpath_var=LIBRARY_PATH
20900  ;;
20901
20902bsdi[45]*)
20903  version_type=linux
20904  need_version=no
20905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906  soname_spec='${libname}${release}${shared_ext}$major'
20907  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20908  shlibpath_var=LD_LIBRARY_PATH
20909  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20910  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20911  # the default ld.so.conf also contains /usr/contrib/lib and
20912  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20913  # libtool to hard-code these into programs
20914  ;;
20915
20916cygwin* | mingw* | pw32* | cegcc*)
20917  version_type=windows
20918  shrext_cmds=".dll"
20919  need_version=no
20920  need_lib_prefix=no
20921
20922  case $GCC,$host_os in
20923  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20924    library_names_spec='$libname.dll.a'
20925    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20926    postinstall_cmds='base_file=`basename \${file}`~
20927      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20928      dldir=$destdir/`dirname \$dlpath`~
20929      test -d \$dldir || mkdir -p \$dldir~
20930      $install_prog $dir/$dlname \$dldir/$dlname~
20931      chmod a+x \$dldir/$dlname~
20932      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20933        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20934      fi'
20935    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20936      dlpath=$dir/\$dldll~
20937       $RM \$dlpath'
20938    shlibpath_overrides_runpath=yes
20939
20940    case $host_os in
20941    cygwin*)
20942      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20943      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20944
20945      ;;
20946    mingw* | cegcc*)
20947      # MinGW DLLs use traditional 'lib' prefix
20948      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20949      ;;
20950    pw32*)
20951      # pw32 DLLs use 'pw' prefix rather than 'lib'
20952      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20953      ;;
20954    esac
20955    ;;
20956
20957  *)
20958    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20959    ;;
20960  esac
20961  dynamic_linker='Win32 ld.exe'
20962  # FIXME: first we should search . and the directory the executable is in
20963  shlibpath_var=PATH
20964  ;;
20965
20966darwin* | rhapsody*)
20967  dynamic_linker="$host_os dyld"
20968  version_type=darwin
20969  need_lib_prefix=no
20970  need_version=no
20971  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20972  soname_spec='${libname}${release}${major}$shared_ext'
20973  shlibpath_overrides_runpath=yes
20974  shlibpath_var=DYLD_LIBRARY_PATH
20975  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20976
20977  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20978  ;;
20979
20980dgux*)
20981  version_type=linux
20982  need_lib_prefix=no
20983  need_version=no
20984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20985  soname_spec='${libname}${release}${shared_ext}$major'
20986  shlibpath_var=LD_LIBRARY_PATH
20987  ;;
20988
20989freebsd* | dragonfly*)
20990  # DragonFly does not have aout.  When/if they implement a new
20991  # versioning mechanism, adjust this.
20992  if test -x /usr/bin/objformat; then
20993    objformat=`/usr/bin/objformat`
20994  else
20995    case $host_os in
20996    freebsd[23].*) objformat=aout ;;
20997    *) objformat=elf ;;
20998    esac
20999  fi
21000  version_type=freebsd-$objformat
21001  case $version_type in
21002    freebsd-elf*)
21003      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21004      need_version=no
21005      need_lib_prefix=no
21006      ;;
21007    freebsd-*)
21008      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21009      need_version=yes
21010      ;;
21011  esac
21012  shlibpath_var=LD_LIBRARY_PATH
21013  case $host_os in
21014  freebsd2.*)
21015    shlibpath_overrides_runpath=yes
21016    ;;
21017  freebsd3.[01]* | freebsdelf3.[01]*)
21018    shlibpath_overrides_runpath=yes
21019    hardcode_into_libs=yes
21020    ;;
21021  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21022  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21023    shlibpath_overrides_runpath=no
21024    hardcode_into_libs=yes
21025    ;;
21026  *) # from 4.6 on, and DragonFly
21027    shlibpath_overrides_runpath=yes
21028    hardcode_into_libs=yes
21029    ;;
21030  esac
21031  ;;
21032
21033gnu*)
21034  version_type=linux
21035  need_lib_prefix=no
21036  need_version=no
21037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21038  soname_spec='${libname}${release}${shared_ext}$major'
21039  shlibpath_var=LD_LIBRARY_PATH
21040  hardcode_into_libs=yes
21041  ;;
21042
21043haiku*)
21044  version_type=linux
21045  need_lib_prefix=no
21046  need_version=no
21047  dynamic_linker="$host_os runtime_loader"
21048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21049  soname_spec='${libname}${release}${shared_ext}$major'
21050  shlibpath_var=LIBRARY_PATH
21051  shlibpath_overrides_runpath=yes
21052  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
21053  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
21054  hardcode_into_libs=no
21055  ;;
21056
21057hpux9* | hpux10* | hpux11*)
21058  # Give a soname corresponding to the major version so that dld.sl refuses to
21059  # link against other versions.
21060  version_type=sunos
21061  need_lib_prefix=no
21062  need_version=no
21063  case $host_cpu in
21064  ia64*)
21065    shrext_cmds='.so'
21066    hardcode_into_libs=yes
21067    dynamic_linker="$host_os dld.so"
21068    shlibpath_var=LD_LIBRARY_PATH
21069    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21070    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21071    soname_spec='${libname}${release}${shared_ext}$major'
21072    if test "X$HPUX_IA64_MODE" = X32; then
21073      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21074    else
21075      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21076    fi
21077    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21078    ;;
21079  hppa*64*)
21080    shrext_cmds='.sl'
21081    hardcode_into_libs=yes
21082    dynamic_linker="$host_os dld.sl"
21083    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21084    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21085    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21086    soname_spec='${libname}${release}${shared_ext}$major'
21087    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21088    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21089    ;;
21090  *)
21091    shrext_cmds='.sl'
21092    dynamic_linker="$host_os dld.sl"
21093    shlibpath_var=SHLIB_PATH
21094    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21095    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21096    soname_spec='${libname}${release}${shared_ext}$major'
21097    ;;
21098  esac
21099  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21100  postinstall_cmds='chmod 555 $lib'
21101  # or fails outright, so override atomically:
21102  install_override_mode=555
21103  ;;
21104
21105interix[3-9]*)
21106  version_type=linux
21107  need_lib_prefix=no
21108  need_version=no
21109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21110  soname_spec='${libname}${release}${shared_ext}$major'
21111  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21112  shlibpath_var=LD_LIBRARY_PATH
21113  shlibpath_overrides_runpath=no
21114  hardcode_into_libs=yes
21115  ;;
21116
21117irix5* | irix6* | nonstopux*)
21118  case $host_os in
21119    nonstopux*) version_type=nonstopux ;;
21120    *)
21121	if test "$lt_cv_prog_gnu_ld" = yes; then
21122		version_type=linux
21123	else
21124		version_type=irix
21125	fi ;;
21126  esac
21127  need_lib_prefix=no
21128  need_version=no
21129  soname_spec='${libname}${release}${shared_ext}$major'
21130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21131  case $host_os in
21132  irix5* | nonstopux*)
21133    libsuff= shlibsuff=
21134    ;;
21135  *)
21136    case $LD in # libtool.m4 will add one of these switches to LD
21137    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21138      libsuff= shlibsuff= libmagic=32-bit;;
21139    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21140      libsuff=32 shlibsuff=N32 libmagic=N32;;
21141    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21142      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21143    *) libsuff= shlibsuff= libmagic=never-match;;
21144    esac
21145    ;;
21146  esac
21147  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21148  shlibpath_overrides_runpath=no
21149  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21150  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21151  hardcode_into_libs=yes
21152  ;;
21153
21154# No shared lib support for Linux oldld, aout, or coff.
21155linux*oldld* | linux*aout* | linux*coff*)
21156  dynamic_linker=no
21157  ;;
21158
21159# This must be Linux ELF.
21160linux* | k*bsd*-gnu | kopensolaris*-gnu)
21161  version_type=linux
21162  need_lib_prefix=no
21163  need_version=no
21164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21165  soname_spec='${libname}${release}${shared_ext}$major'
21166  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21167  shlibpath_var=LD_LIBRARY_PATH
21168  shlibpath_overrides_runpath=no
21169
21170  # Some binutils ld are patched to set DT_RUNPATH
21171  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21172  $as_echo_n "(cached) " >&6
21173else
21174  lt_cv_shlibpath_overrides_runpath=no
21175    save_LDFLAGS=$LDFLAGS
21176    save_libdir=$libdir
21177    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21178	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21180/* end confdefs.h.  */
21181
21182int
21183main ()
21184{
21185
21186  ;
21187  return 0;
21188}
21189_ACEOF
21190if ac_fn_cxx_try_link "$LINENO"; then :
21191  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21192  lt_cv_shlibpath_overrides_runpath=yes
21193fi
21194fi
21195rm -f core conftest.err conftest.$ac_objext \
21196    conftest$ac_exeext conftest.$ac_ext
21197    LDFLAGS=$save_LDFLAGS
21198    libdir=$save_libdir
21199
21200fi
21201
21202  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21203
21204  # This implies no fast_install, which is unacceptable.
21205  # Some rework will be needed to allow for fast_install
21206  # before this can be enabled.
21207  hardcode_into_libs=yes
21208
21209  # Append ld.so.conf contents to the search path
21210  if test -f /etc/ld.so.conf; then
21211    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
21212    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21213  fi
21214
21215  # We used to test for /lib/ld.so.1 and disable shared libraries on
21216  # powerpc, because MkLinux only supported shared libraries with the
21217  # GNU dynamic linker.  Since this was broken with cross compilers,
21218  # most powerpc-linux boxes support dynamic linking these days and
21219  # people can always --disable-shared, the test was removed, and we
21220  # assume the GNU/Linux dynamic linker is in use.
21221  dynamic_linker='GNU/Linux ld.so'
21222  ;;
21223
21224netbsd*)
21225  version_type=sunos
21226  need_lib_prefix=no
21227  need_version=no
21228  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21230    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21231    dynamic_linker='NetBSD (a.out) ld.so'
21232  else
21233    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21234    soname_spec='${libname}${release}${shared_ext}$major'
21235    dynamic_linker='NetBSD ld.elf_so'
21236  fi
21237  shlibpath_var=LD_LIBRARY_PATH
21238  shlibpath_overrides_runpath=yes
21239  hardcode_into_libs=yes
21240  ;;
21241
21242newsos6)
21243  version_type=linux
21244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21245  shlibpath_var=LD_LIBRARY_PATH
21246  shlibpath_overrides_runpath=yes
21247  ;;
21248
21249*nto* | *qnx*)
21250  version_type=qnx
21251  need_lib_prefix=no
21252  need_version=no
21253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21254  soname_spec='${libname}${release}${shared_ext}$major'
21255  shlibpath_var=LD_LIBRARY_PATH
21256  shlibpath_overrides_runpath=no
21257  hardcode_into_libs=yes
21258  dynamic_linker='ldqnx.so'
21259  ;;
21260
21261openbsd*)
21262  version_type=sunos
21263  sys_lib_dlsearch_path_spec="/usr/lib"
21264  need_lib_prefix=no
21265  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21266  case $host_os in
21267    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
21268    *)				need_version=no  ;;
21269  esac
21270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21271  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21272  shlibpath_var=LD_LIBRARY_PATH
21273  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21274    case $host_os in
21275      openbsd2.[89] | openbsd2.[89].*)
21276	shlibpath_overrides_runpath=no
21277	;;
21278      *)
21279	shlibpath_overrides_runpath=yes
21280	;;
21281      esac
21282  else
21283    shlibpath_overrides_runpath=yes
21284  fi
21285  ;;
21286
21287os2*)
21288  libname_spec='$name'
21289  shrext_cmds=".dll"
21290  need_lib_prefix=no
21291  library_names_spec='$libname${shared_ext} $libname.a'
21292  dynamic_linker='OS/2 ld.exe'
21293  shlibpath_var=LIBPATH
21294  ;;
21295
21296osf3* | osf4* | osf5*)
21297  version_type=osf
21298  need_lib_prefix=no
21299  need_version=no
21300  soname_spec='${libname}${release}${shared_ext}$major'
21301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21302  shlibpath_var=LD_LIBRARY_PATH
21303  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21304  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21305  ;;
21306
21307rdos*)
21308  dynamic_linker=no
21309  ;;
21310
21311solaris*)
21312  version_type=linux
21313  need_lib_prefix=no
21314  need_version=no
21315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21316  soname_spec='${libname}${release}${shared_ext}$major'
21317  shlibpath_var=LD_LIBRARY_PATH
21318  shlibpath_overrides_runpath=yes
21319  hardcode_into_libs=yes
21320  # ldd complains unless libraries are executable
21321  postinstall_cmds='chmod +x $lib'
21322  ;;
21323
21324sunos4*)
21325  version_type=sunos
21326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21327  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21328  shlibpath_var=LD_LIBRARY_PATH
21329  shlibpath_overrides_runpath=yes
21330  if test "$with_gnu_ld" = yes; then
21331    need_lib_prefix=no
21332  fi
21333  need_version=yes
21334  ;;
21335
21336sysv4 | sysv4.3*)
21337  version_type=linux
21338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21339  soname_spec='${libname}${release}${shared_ext}$major'
21340  shlibpath_var=LD_LIBRARY_PATH
21341  case $host_vendor in
21342    sni)
21343      shlibpath_overrides_runpath=no
21344      need_lib_prefix=no
21345      runpath_var=LD_RUN_PATH
21346      ;;
21347    siemens)
21348      need_lib_prefix=no
21349      ;;
21350    motorola)
21351      need_lib_prefix=no
21352      need_version=no
21353      shlibpath_overrides_runpath=no
21354      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21355      ;;
21356  esac
21357  ;;
21358
21359sysv4*MP*)
21360  if test -d /usr/nec ;then
21361    version_type=linux
21362    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21363    soname_spec='$libname${shared_ext}.$major'
21364    shlibpath_var=LD_LIBRARY_PATH
21365  fi
21366  ;;
21367
21368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21369  version_type=freebsd-elf
21370  need_lib_prefix=no
21371  need_version=no
21372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21373  soname_spec='${libname}${release}${shared_ext}$major'
21374  shlibpath_var=LD_LIBRARY_PATH
21375  shlibpath_overrides_runpath=yes
21376  hardcode_into_libs=yes
21377  if test "$with_gnu_ld" = yes; then
21378    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21379  else
21380    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21381    case $host_os in
21382      sco3.2v5*)
21383        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21384	;;
21385    esac
21386  fi
21387  sys_lib_dlsearch_path_spec='/usr/lib'
21388  ;;
21389
21390tpf*)
21391  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21392  version_type=linux
21393  need_lib_prefix=no
21394  need_version=no
21395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21396  shlibpath_var=LD_LIBRARY_PATH
21397  shlibpath_overrides_runpath=no
21398  hardcode_into_libs=yes
21399  ;;
21400
21401uts4*)
21402  version_type=linux
21403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21404  soname_spec='${libname}${release}${shared_ext}$major'
21405  shlibpath_var=LD_LIBRARY_PATH
21406  ;;
21407
21408*)
21409  dynamic_linker=no
21410  ;;
21411esac
21412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21413$as_echo "$dynamic_linker" >&6; }
21414test "$dynamic_linker" = no && can_build_shared=no
21415
21416variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21417if test "$GCC" = yes; then
21418  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21419fi
21420
21421if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21422  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21423fi
21424if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21425  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21426fi
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21466$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21467hardcode_action_CXX=
21468if test -n "$hardcode_libdir_flag_spec_CXX" ||
21469   test -n "$runpath_var_CXX" ||
21470   test "X$hardcode_automatic_CXX" = "Xyes" ; then
21471
21472  # We can hardcode non-existent directories.
21473  if test "$hardcode_direct_CXX" != no &&
21474     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21475     # have to relink, otherwise we might link with an installed library
21476     # when we should be linking with a yet-to-be-installed one
21477     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21478     test "$hardcode_minus_L_CXX" != no; then
21479    # Linking always hardcodes the temporary library directory.
21480    hardcode_action_CXX=relink
21481  else
21482    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21483    hardcode_action_CXX=immediate
21484  fi
21485else
21486  # We cannot hardcode anything, or else we can only hardcode existing
21487  # directories.
21488  hardcode_action_CXX=unsupported
21489fi
21490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21491$as_echo "$hardcode_action_CXX" >&6; }
21492
21493if test "$hardcode_action_CXX" = relink ||
21494   test "$inherit_rpath_CXX" = yes; then
21495  # Fast installation is not supported
21496  enable_fast_install=no
21497elif test "$shlibpath_overrides_runpath" = yes ||
21498     test "$enable_shared" = no; then
21499  # Fast installation is not necessary
21500  enable_fast_install=needless
21501fi
21502
21503
21504
21505
21506
21507
21508
21509  fi # test -n "$compiler"
21510
21511  CC=$lt_save_CC
21512  LDCXX=$LD
21513  LD=$lt_save_LD
21514  GCC=$lt_save_GCC
21515  with_gnu_ld=$lt_save_with_gnu_ld
21516  lt_cv_path_LDCXX=$lt_cv_path_LD
21517  lt_cv_path_LD=$lt_save_path_LD
21518  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21519  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21520fi # test "$_lt_caught_CXX_error" != yes
21521
21522ac_ext=c
21523ac_cpp='$CPP $CPPFLAGS'
21524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21526ac_compiler_gnu=$ac_cv_c_compiler_gnu
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543# Only expand once:
21544
21545
21546
21547
21548
21549# Identify the assembler which will work hand-in-glove with the newly
21550# built GCC, so that we can examine its features.  This is the assembler
21551# which will be driven by the driver program.
21552#
21553# If build != host, and we aren't building gas in-tree, we identify a
21554# build->target assembler and hope that it will have the same features
21555# as the host->target assembler we'll be using.
21556gcc_cv_gas_major_version=
21557gcc_cv_gas_minor_version=
21558gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21559
21560if test "${gcc_cv_as+set}" = set; then :
21561
21562else
21563
21564if test -x "$DEFAULT_ASSEMBLER"; then
21565	gcc_cv_as="$DEFAULT_ASSEMBLER"
21566elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21567     && test -f ../gas/Makefile \
21568     && test x$build = x$host; then
21569	gcc_cv_as=../gas/as-new$build_exeext
21570elif test -x as$build_exeext; then
21571	# Build using assembler in the current directory.
21572	gcc_cv_as=./as$build_exeext
21573elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21574        gcc_cv_as="$AS_FOR_TARGET"
21575else
21576        # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21577set dummy $AS_FOR_TARGET; ac_word=$2
21578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21579$as_echo_n "checking for $ac_word... " >&6; }
21580if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21581  $as_echo_n "(cached) " >&6
21582else
21583  case $gcc_cv_as in
21584  [\\/]* | ?:[\\/]*)
21585  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21586  ;;
21587  *)
21588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21589for as_dir in $PATH
21590do
21591  IFS=$as_save_IFS
21592  test -z "$as_dir" && as_dir=.
21593    for ac_exec_ext in '' $ac_executable_extensions; do
21594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21595    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21597    break 2
21598  fi
21599done
21600  done
21601IFS=$as_save_IFS
21602
21603  ;;
21604esac
21605fi
21606gcc_cv_as=$ac_cv_path_gcc_cv_as
21607if test -n "$gcc_cv_as"; then
21608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21609$as_echo "$gcc_cv_as" >&6; }
21610else
21611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21612$as_echo "no" >&6; }
21613fi
21614
21615
21616fi
21617fi
21618
21619ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21620
21621case "$ORIGINAL_AS_FOR_TARGET" in
21622  ./as | ./as$build_exeext) ;;
21623  *) ac_config_files="$ac_config_files as:exec-tool.in"
21624 ;;
21625esac
21626
21627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21628$as_echo_n "checking what assembler to use... " >&6; }
21629if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21630  # Single tree build which includes gas.  We want to prefer it
21631  # over whatever linker top-level may have detected, since
21632  # we'll use what we're building after installation anyway.
21633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21634$as_echo "newly built gas" >&6; }
21635  in_tree_gas=yes
21636  gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21637for f in $gcc_cv_as_bfd_srcdir/configure \
21638         $gcc_cv_as_gas_srcdir/configure \
21639         $gcc_cv_as_gas_srcdir/configure.in \
21640         $gcc_cv_as_gas_srcdir/Makefile.in ; do
21641  gcc_cv_gas_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21642  if test x$gcc_cv_gas_version != x; then
21643    break
21644  fi
21645done
21646case $gcc_cv_gas_version in
21647  VERSION=[0-9]*) ;;
21648  *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21649esac
21650gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21651gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21652gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21653case $gcc_cv_gas_patch_version in
21654  "") gcc_cv_gas_patch_version="0" ;;
21655esac
21656gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21657			    + $gcc_cv_gas_minor_version \) \* 1000 \
21658			    + $gcc_cv_gas_patch_version`
21659
21660  in_tree_gas_is_elf=no
21661  if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21662     || (grep 'obj_format = multi' ../gas/Makefile \
21663         && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21664  then
21665    in_tree_gas_is_elf=yes
21666  fi
21667else
21668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21669$as_echo "$gcc_cv_as" >&6; }
21670  in_tree_gas=no
21671fi
21672
21673default_ld=
21674# Check whether --enable-ld was given.
21675if test "${enable_ld+set}" = set; then :
21676  enableval=$enable_ld; case "${enableval}" in
21677 no)
21678   default_ld=ld.gold
21679   ;;
21680 esac
21681fi
21682
21683
21684install_gold_as_default=no
21685# Check whether --enable-gold was given.
21686if test "${enable_gold+set}" = set; then :
21687  enableval=$enable_gold; case "${enableval}" in
21688 default)
21689   install_gold_as_default=yes
21690   ;;
21691 yes)
21692   if test x${default_ld} != x; then
21693     install_gold_as_default=yes
21694   fi
21695   ;;
21696 no)
21697   ;;
21698 *)
21699   as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21700   ;;
21701 esac
21702fi
21703
21704
21705# Identify the linker which will work hand-in-glove with the newly
21706# built GCC, so that we can examine its features.  This is the linker
21707# which will be driven by the driver program.
21708#
21709# If build != host, and we aren't building gas in-tree, we identify a
21710# build->target linker and hope that it will have the same features
21711# as the host->target linker we'll be using.
21712gcc_cv_gld_major_version=
21713gcc_cv_gld_minor_version=
21714gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21715gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21716gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21717
21718if test "${gcc_cv_ld+set}" = set; then :
21719
21720else
21721
21722if test -x "$DEFAULT_LINKER"; then
21723	gcc_cv_ld="$DEFAULT_LINKER"
21724elif test $install_gold_as_default = yes \
21725     && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21726     && test -f ../gold/Makefile \
21727     && test x$build = x$host; then
21728	gcc_cv_ld=../gold/ld-new$build_exeext
21729elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21730     && test -f ../ld/Makefile \
21731     && test x$build = x$host; then
21732	gcc_cv_ld=../ld/ld-new$build_exeext
21733elif test -x collect-ld$build_exeext; then
21734	# Build using linker in the current directory.
21735	gcc_cv_ld=./collect-ld$build_exeext
21736elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21737        gcc_cv_ld="$LD_FOR_TARGET"
21738else
21739        # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21740set dummy $LD_FOR_TARGET; ac_word=$2
21741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21742$as_echo_n "checking for $ac_word... " >&6; }
21743if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21744  $as_echo_n "(cached) " >&6
21745else
21746  case $gcc_cv_ld in
21747  [\\/]* | ?:[\\/]*)
21748  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21749  ;;
21750  *)
21751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21752for as_dir in $PATH
21753do
21754  IFS=$as_save_IFS
21755  test -z "$as_dir" && as_dir=.
21756    for ac_exec_ext in '' $ac_executable_extensions; do
21757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21758    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21760    break 2
21761  fi
21762done
21763  done
21764IFS=$as_save_IFS
21765
21766  ;;
21767esac
21768fi
21769gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21770if test -n "$gcc_cv_ld"; then
21771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21772$as_echo "$gcc_cv_ld" >&6; }
21773else
21774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21775$as_echo "no" >&6; }
21776fi
21777
21778
21779fi
21780fi
21781
21782ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21783PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21784# if the PLUGIN_LD is set ld-new, just have it as ld
21785# as that is the installed named.
21786if test x$PLUGIN_LD_SUFFIX = xld-new \
21787   || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21788  PLUGIN_LD_SUFFIX=ld
21789fi
21790
21791# Check whether --with-plugin-ld was given.
21792if test "${with_plugin_ld+set}" = set; then :
21793  withval=$with_plugin_ld; if test x"$withval" != x; then
21794   ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21795   PLUGIN_LD_SUFFIX="$withval"
21796 fi
21797fi
21798
21799
21800
21801cat >>confdefs.h <<_ACEOF
21802#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21803_ACEOF
21804
21805
21806# Check to see if we are using gold instead of ld
21807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21808$as_echo_n "checking whether we are using gold... " >&6; }
21809ld_is_gold=no
21810if test x$gcc_cv_ld != x; then
21811  if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21812     | grep "GNU gold" > /dev/null; then
21813    ld_is_gold=yes
21814  fi
21815fi
21816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21817$as_echo "$ld_is_gold" >&6; }
21818
21819ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21820
21821case "$ORIGINAL_LD_FOR_TARGET" in
21822  ./collect-ld | ./collect-ld$build_exeext) ;;
21823  *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21824 ;;
21825esac
21826
21827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21828$as_echo_n "checking what linker to use... " >&6; }
21829if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21830   || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21831	# Single tree build which includes ld.  We want to prefer it
21832	# over whatever linker top-level may have detected, since
21833	# we'll use what we're building after installation anyway.
21834	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21835$as_echo "newly built ld" >&6; }
21836	in_tree_ld=yes
21837	in_tree_ld_is_elf=no
21838	if (grep 'EMUL = .*elf' ../ld/Makefile \
21839	    || grep 'EMUL = .*linux' ../ld/Makefile \
21840	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21841	  in_tree_ld_is_elf=yes
21842	elif test "$ld_is_gold" = yes; then
21843	  in_tree_ld_is_elf=yes
21844	fi
21845	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
21846	do
21847		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21848		if test x$gcc_cv_gld_version != x; then
21849			break
21850		fi
21851	done
21852	case $gcc_cv_gld_version in
21853	  VERSION=[0-9]*) ;;
21854	  *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21855	esac
21856	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21857	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21858	ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21859	ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21860else
21861	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21862$as_echo "$gcc_cv_ld" >&6; }
21863	in_tree_ld=no
21864	gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21865	ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21866	ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21867fi
21868
21869
21870
21871
21872# Figure out what nm we will be using.
21873gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21874if test "${gcc_cv_nm+set}" = set; then :
21875
21876else
21877
21878if test -f $gcc_cv_binutils_srcdir/configure.in \
21879     && test -f ../binutils/Makefile \
21880     && test x$build = x$host; then
21881	gcc_cv_nm=../binutils/nm-new$build_exeext
21882elif test -x nm$build_exeext; then
21883	gcc_cv_nm=./nm$build_exeext
21884elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21885        gcc_cv_nm="$NM_FOR_TARGET"
21886else
21887        # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21888set dummy $NM_FOR_TARGET; ac_word=$2
21889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21890$as_echo_n "checking for $ac_word... " >&6; }
21891if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21892  $as_echo_n "(cached) " >&6
21893else
21894  case $gcc_cv_nm in
21895  [\\/]* | ?:[\\/]*)
21896  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21897  ;;
21898  *)
21899  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21900for as_dir in $PATH
21901do
21902  IFS=$as_save_IFS
21903  test -z "$as_dir" && as_dir=.
21904    for ac_exec_ext in '' $ac_executable_extensions; do
21905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21906    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21908    break 2
21909  fi
21910done
21911  done
21912IFS=$as_save_IFS
21913
21914  ;;
21915esac
21916fi
21917gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21918if test -n "$gcc_cv_nm"; then
21919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21920$as_echo "$gcc_cv_nm" >&6; }
21921else
21922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21923$as_echo "no" >&6; }
21924fi
21925
21926
21927fi
21928fi
21929
21930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21931$as_echo_n "checking what nm to use... " >&6; }
21932if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21933	# Single tree build which includes binutils.
21934	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21935$as_echo "newly built nm" >&6; }
21936	in_tree_nm=yes
21937else
21938	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21939$as_echo "$gcc_cv_nm" >&6; }
21940	in_tree_nm=no
21941fi
21942
21943ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21944
21945case "$ORIGINAL_NM_FOR_TARGET" in
21946  ./nm | ./nm$build_exeext) ;;
21947  *) ac_config_files="$ac_config_files nm:exec-tool.in"
21948 ;;
21949esac
21950
21951
21952# Figure out what objdump we will be using.
21953if test "${gcc_cv_objdump+set}" = set; then :
21954
21955else
21956
21957if test -f $gcc_cv_binutils_srcdir/configure.in \
21958     && test -f ../binutils/Makefile \
21959     && test x$build = x$host; then
21960	# Single tree build which includes binutils.
21961	gcc_cv_objdump=../binutils/objdump$build_exeext
21962elif test -x objdump$build_exeext; then
21963	gcc_cv_objdump=./objdump$build_exeext
21964elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21965        gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21966else
21967        # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21968set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21970$as_echo_n "checking for $ac_word... " >&6; }
21971if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21972  $as_echo_n "(cached) " >&6
21973else
21974  case $gcc_cv_objdump in
21975  [\\/]* | ?:[\\/]*)
21976  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21977  ;;
21978  *)
21979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21980for as_dir in $PATH
21981do
21982  IFS=$as_save_IFS
21983  test -z "$as_dir" && as_dir=.
21984    for ac_exec_ext in '' $ac_executable_extensions; do
21985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21986    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21988    break 2
21989  fi
21990done
21991  done
21992IFS=$as_save_IFS
21993
21994  ;;
21995esac
21996fi
21997gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21998if test -n "$gcc_cv_objdump"; then
21999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22000$as_echo "$gcc_cv_objdump" >&6; }
22001else
22002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22003$as_echo "no" >&6; }
22004fi
22005
22006
22007fi
22008fi
22009
22010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22011$as_echo_n "checking what objdump to use... " >&6; }
22012if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22013	# Single tree build which includes binutils.
22014	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22015$as_echo "newly built objdump" >&6; }
22016elif test x$gcc_cv_objdump = x; then
22017	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22018$as_echo "not found" >&6; }
22019else
22020	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22021$as_echo "$gcc_cv_objdump" >&6; }
22022fi
22023
22024# Figure out what readelf we will be using.
22025if test "${gcc_cv_readelf+set}" = set; then :
22026
22027else
22028
22029if test -f $gcc_cv_binutils_srcdir/configure.in \
22030     && test -f ../binutils/Makefile \
22031     && test x$build = x$host; then
22032	# Single tree build which includes binutils.
22033	gcc_cv_readelf=../binutils/readelf$build_exeext
22034elif test -x readelf$build_exeext; then
22035	gcc_cv_readelf=./readelf$build_exeext
22036else
22037        # Extract the first word of "readelf", so it can be a program name with args.
22038set dummy readelf; ac_word=$2
22039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22040$as_echo_n "checking for $ac_word... " >&6; }
22041if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22042  $as_echo_n "(cached) " >&6
22043else
22044  case $gcc_cv_readelf in
22045  [\\/]* | ?:[\\/]*)
22046  ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22047  ;;
22048  *)
22049  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22050for as_dir in $PATH
22051do
22052  IFS=$as_save_IFS
22053  test -z "$as_dir" && as_dir=.
22054    for ac_exec_ext in '' $ac_executable_extensions; do
22055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22056    ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22058    break 2
22059  fi
22060done
22061  done
22062IFS=$as_save_IFS
22063
22064  ;;
22065esac
22066fi
22067gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22068if test -n "$gcc_cv_readelf"; then
22069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22070$as_echo "$gcc_cv_readelf" >&6; }
22071else
22072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22073$as_echo "no" >&6; }
22074fi
22075
22076
22077fi
22078fi
22079
22080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22081$as_echo_n "checking what readelf to use... " >&6; }
22082if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22083	# Single tree build which includes binutils.
22084	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22085$as_echo "newly built readelf" >&6; }
22086elif test x$gcc_cv_readelf = x; then
22087	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22088$as_echo "not found" >&6; }
22089else
22090	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22091$as_echo "$gcc_cv_readelf" >&6; }
22092fi
22093
22094# Figure out what assembler alignment features are present.
22095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22096$as_echo_n "checking assembler flags... " >&6; }
22097if test "${gcc_cv_as_flags+set}" = set; then :
22098  $as_echo_n "(cached) " >&6
22099else
22100   case "$target" in
22101  i[34567]86-*-linux*)
22102        gcc_cv_as_flags=--32
22103    ;;
22104  x86_64-*-linux-gnux32)
22105        gcc_cv_as_flags=--x32
22106    ;;
22107  x86_64-*-linux*)
22108        gcc_cv_as_flags=--64
22109    ;;
22110  powerpc*-*-darwin*)
22111        gcc_cv_as_flags="-arch ppc"
22112    ;;
22113  *)
22114    gcc_cv_as_flags=" "
22115    ;;
22116  esac
22117fi
22118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22119$as_echo "$gcc_cv_as_flags" >&6; }
22120
22121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22122$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22123if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22124  $as_echo_n "(cached) " >&6
22125else
22126  gcc_cv_as_balign_and_p2align=no
22127    if test $in_tree_gas = yes; then
22128    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22129  then gcc_cv_as_balign_and_p2align=yes
22130fi
22131  elif test x$gcc_cv_as != x; then
22132    $as_echo '.balign 4
22133.p2align 2' > conftest.s
22134    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22135  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22136  (eval $ac_try) 2>&5
22137  ac_status=$?
22138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22139  test $ac_status = 0; }; }
22140    then
22141	gcc_cv_as_balign_and_p2align=yes
22142    else
22143      echo "configure: failed program was" >&5
22144      cat conftest.s >&5
22145    fi
22146    rm -f conftest.o conftest.s
22147  fi
22148fi
22149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22150$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22151if test $gcc_cv_as_balign_and_p2align = yes; then
22152
22153$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22154
22155fi
22156
22157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22158$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22159if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22160  $as_echo_n "(cached) " >&6
22161else
22162  gcc_cv_as_max_skip_p2align=no
22163    if test $in_tree_gas = yes; then
22164    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22165  then gcc_cv_as_max_skip_p2align=yes
22166fi
22167  elif test x$gcc_cv_as != x; then
22168    $as_echo '.p2align 4,,7' > conftest.s
22169    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22170  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22171  (eval $ac_try) 2>&5
22172  ac_status=$?
22173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22174  test $ac_status = 0; }; }
22175    then
22176	gcc_cv_as_max_skip_p2align=yes
22177    else
22178      echo "configure: failed program was" >&5
22179      cat conftest.s >&5
22180    fi
22181    rm -f conftest.o conftest.s
22182  fi
22183fi
22184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22185$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22186if test $gcc_cv_as_max_skip_p2align = yes; then
22187
22188$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22189
22190fi
22191
22192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22193$as_echo_n "checking assembler for .literal16... " >&6; }
22194if test "${gcc_cv_as_literal16+set}" = set; then :
22195  $as_echo_n "(cached) " >&6
22196else
22197  gcc_cv_as_literal16=no
22198    if test $in_tree_gas = yes; then
22199    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22200  then gcc_cv_as_literal16=yes
22201fi
22202  elif test x$gcc_cv_as != x; then
22203    $as_echo '.literal16' > conftest.s
22204    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22205  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22206  (eval $ac_try) 2>&5
22207  ac_status=$?
22208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22209  test $ac_status = 0; }; }
22210    then
22211	gcc_cv_as_literal16=yes
22212    else
22213      echo "configure: failed program was" >&5
22214      cat conftest.s >&5
22215    fi
22216    rm -f conftest.o conftest.s
22217  fi
22218fi
22219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22220$as_echo "$gcc_cv_as_literal16" >&6; }
22221if test $gcc_cv_as_literal16 = yes; then
22222
22223$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22224
22225fi
22226
22227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22228$as_echo_n "checking assembler for working .subsection -1... " >&6; }
22229if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22230  $as_echo_n "(cached) " >&6
22231else
22232  gcc_cv_as_subsection_m1=no
22233    if test $in_tree_gas = yes; then
22234    if test $in_tree_gas_is_elf = yes \
22235  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22236  then gcc_cv_as_subsection_m1=yes
22237fi
22238  elif test x$gcc_cv_as != x; then
22239    $as_echo 'conftest_label1: .word 0
22240.subsection -1
22241conftest_label2: .word 0
22242.previous' > conftest.s
22243    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22244  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22245  (eval $ac_try) 2>&5
22246  ac_status=$?
22247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22248  test $ac_status = 0; }; }
22249    then
22250	if test x$gcc_cv_nm != x; then
22251    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22252    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22253    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22254    then :
22255    else gcc_cv_as_subsection_m1=yes
22256    fi
22257    rm -f conftest.nm1 conftest.nm2
22258  fi
22259    else
22260      echo "configure: failed program was" >&5
22261      cat conftest.s >&5
22262    fi
22263    rm -f conftest.o conftest.s
22264  fi
22265fi
22266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22267$as_echo "$gcc_cv_as_subsection_m1" >&6; }
22268if test $gcc_cv_as_subsection_m1 = yes; then
22269
22270$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22271
22272fi
22273
22274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22275$as_echo_n "checking assembler for .weak... " >&6; }
22276if test "${gcc_cv_as_weak+set}" = set; then :
22277  $as_echo_n "(cached) " >&6
22278else
22279  gcc_cv_as_weak=no
22280    if test $in_tree_gas = yes; then
22281    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22282  then gcc_cv_as_weak=yes
22283fi
22284  elif test x$gcc_cv_as != x; then
22285    $as_echo '	.weak foobar' > conftest.s
22286    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22287  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22288  (eval $ac_try) 2>&5
22289  ac_status=$?
22290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22291  test $ac_status = 0; }; }
22292    then
22293	gcc_cv_as_weak=yes
22294    else
22295      echo "configure: failed program was" >&5
22296      cat conftest.s >&5
22297    fi
22298    rm -f conftest.o conftest.s
22299  fi
22300fi
22301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22302$as_echo "$gcc_cv_as_weak" >&6; }
22303if test $gcc_cv_as_weak = yes; then
22304
22305$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22306
22307fi
22308
22309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22310$as_echo_n "checking assembler for .weakref... " >&6; }
22311if test "${gcc_cv_as_weakref+set}" = set; then :
22312  $as_echo_n "(cached) " >&6
22313else
22314  gcc_cv_as_weakref=no
22315    if test $in_tree_gas = yes; then
22316    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22317  then gcc_cv_as_weakref=yes
22318fi
22319  elif test x$gcc_cv_as != x; then
22320    $as_echo '	.weakref foobar, barfnot' > conftest.s
22321    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22322  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22323  (eval $ac_try) 2>&5
22324  ac_status=$?
22325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22326  test $ac_status = 0; }; }
22327    then
22328	gcc_cv_as_weakref=yes
22329    else
22330      echo "configure: failed program was" >&5
22331      cat conftest.s >&5
22332    fi
22333    rm -f conftest.o conftest.s
22334  fi
22335fi
22336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22337$as_echo "$gcc_cv_as_weakref" >&6; }
22338if test $gcc_cv_as_weakref = yes; then
22339
22340$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22341
22342fi
22343
22344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22345$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22346if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22347  $as_echo_n "(cached) " >&6
22348else
22349  gcc_cv_as_nsubspa_comdat=no
22350    if test $in_tree_gas = yes; then
22351    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22352  then gcc_cv_as_nsubspa_comdat=yes
22353fi
22354  elif test x$gcc_cv_as != x; then
22355    $as_echo '	.SPACE $TEXT$
22356	.NSUBSPA $CODE$,COMDAT' > conftest.s
22357    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22358  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22359  (eval $ac_try) 2>&5
22360  ac_status=$?
22361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22362  test $ac_status = 0; }; }
22363    then
22364	gcc_cv_as_nsubspa_comdat=yes
22365    else
22366      echo "configure: failed program was" >&5
22367      cat conftest.s >&5
22368    fi
22369    rm -f conftest.o conftest.s
22370  fi
22371fi
22372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22373$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22374if test $gcc_cv_as_nsubspa_comdat = yes; then
22375
22376$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22377
22378fi
22379
22380# .hidden needs to be supported in both the assembler and the linker,
22381# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22382# This is irritatingly difficult to feature test for; we have to check the
22383# date string after the version number.  If we've got an in-tree
22384# ld, we don't know its patchlevel version, so we set the baseline at 2.13
22385# to be safe.
22386# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22388$as_echo_n "checking assembler for .hidden... " >&6; }
22389if test "${gcc_cv_as_hidden+set}" = set; then :
22390  $as_echo_n "(cached) " >&6
22391else
22392  gcc_cv_as_hidden=no
22393    if test $in_tree_gas = yes; then
22394    if test $in_tree_gas_is_elf = yes \
22395  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22396  then gcc_cv_as_hidden=yes
22397fi
22398  elif test x$gcc_cv_as != x; then
22399    $as_echo '	.hidden foobar
22400foobar:' > conftest.s
22401    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22402  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403  (eval $ac_try) 2>&5
22404  ac_status=$?
22405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406  test $ac_status = 0; }; }
22407    then
22408	gcc_cv_as_hidden=yes
22409    else
22410      echo "configure: failed program was" >&5
22411      cat conftest.s >&5
22412    fi
22413    rm -f conftest.o conftest.s
22414  fi
22415fi
22416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22417$as_echo "$gcc_cv_as_hidden" >&6; }
22418
22419case "${target}" in
22420  *-*-darwin*)
22421    # Darwin as has some visibility support, though with a different syntax.
22422    gcc_cv_as_hidden=yes
22423    ;;
22424esac
22425
22426# gnu_indirect_function type is an extension proposed at
22427# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22428# selection of function implementation
22429# Check whether --enable-gnu-indirect-function was given.
22430if test "${enable_gnu_indirect_function+set}" = set; then :
22431  enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22432    yes | no) ;;
22433    *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22434Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22435  esac
22436else
22437  enable_gnu_indirect_function="$default_gnu_indirect_function"
22438fi
22439
22440
22441gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22442
22443cat >>confdefs.h <<_ACEOF
22444#define HAVE_GNU_INDIRECT_FUNCTION $gif
22445_ACEOF
22446
22447
22448
22449if test $in_tree_ld != yes ; then
22450  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22451  if echo "$ld_ver" | grep GNU > /dev/null; then
22452    if test x"$ld_is_gold" = xyes; then
22453      # GNU gold --version looks like this:
22454      #
22455      # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22456      #
22457      # We extract the binutils version which is more familiar and specific
22458      # than the gold version.
22459      ld_vers=`echo $ld_ver | sed -n \
22460	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22461    else
22462      # GNU ld --version looks like this:
22463      #
22464      # GNU ld (GNU Binutils) 2.21.51.20110225
22465      ld_vers=`echo $ld_ver | sed -n \
22466	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22467    fi
22468    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'`
22469    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22470    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22471    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22472  else
22473    case "${target}" in
22474      *-*-solaris2*)
22475	# See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22476	# format.
22477	#
22478	# Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22479	# /usr/ccs/bin/ld has been configured.
22480	ld_ver=`$gcc_cv_ld -V 2>&1`
22481	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22482	  ld_vers=`echo $ld_ver | sed -n \
22483	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22484	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22485	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22486	fi
22487	;;
22488    esac
22489  fi
22490fi
22491
22492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22493$as_echo_n "checking linker for .hidden support... " >&6; }
22494if test "${gcc_cv_ld_hidden+set}" = set; then :
22495  $as_echo_n "(cached) " >&6
22496else
22497  if test $in_tree_ld = yes ; then
22498  gcc_cv_ld_hidden=no
22499  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 \
22500     && test $in_tree_ld_is_elf = yes; then
22501     gcc_cv_ld_hidden=yes
22502  fi
22503else
22504  gcc_cv_ld_hidden=yes
22505  if test x"$ld_is_gold" = xyes; then
22506    :
22507  elif echo "$ld_ver" | grep GNU > /dev/null; then
22508    case "${target}" in
22509      mmix-knuth-mmixware)
22510        # The linker emits by default mmo, not ELF, so "no" is appropriate.
22511	gcc_cv_ld_hidden=no
22512	;;
22513    esac
22514    if test 0"$ld_date" -lt 20020404; then
22515      if test -n "$ld_date"; then
22516	# If there was date string, but was earlier than 2002-04-04, fail
22517	gcc_cv_ld_hidden=no
22518      elif test -z "$ld_vers"; then
22519	# If there was no date string nor ld version number, something is wrong
22520	gcc_cv_ld_hidden=no
22521      else
22522	test -z "$ld_vers_patch" && ld_vers_patch=0
22523	if test "$ld_vers_major" -lt 2; then
22524	  gcc_cv_ld_hidden=no
22525	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22526	  gcc_cv_ld_hidden="no"
22527	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22528	  gcc_cv_ld_hidden=no
22529	fi
22530      fi
22531    fi
22532  else
22533    case "${target}" in
22534      *-*-darwin*)
22535	# Darwin ld has some visibility support.
22536	gcc_cv_ld_hidden=yes
22537        ;;
22538      hppa64*-*-hpux* | ia64*-*-hpux*)
22539	gcc_cv_ld_hidden=yes
22540	;;
22541      *-*-solaris2.1[0-9]*)
22542	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22543	# .symbolic was only added in Solaris 9 12/02.
22544        gcc_cv_ld_hidden=yes
22545	;;
22546      *)
22547	gcc_cv_ld_hidden=no
22548	;;
22549    esac
22550  fi
22551fi
22552fi
22553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22554$as_echo "$gcc_cv_ld_hidden" >&6; }
22555libgcc_visibility=no
22556
22557
22558if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22559  libgcc_visibility=yes
22560
22561$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22562
22563fi
22564
22565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22566$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22567gcc_cv_ld_ro_rw_mix=unknown
22568if test $in_tree_ld = yes ; then
22569  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 \
22570     && test $in_tree_ld_is_elf = yes; then
22571    gcc_cv_ld_ro_rw_mix=read-write
22572  fi
22573elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22574  echo '.section myfoosect, "a"' > conftest1.s
22575  echo '.section myfoosect, "aw"' > conftest2.s
22576  echo '.byte 1' >> conftest2.s
22577  echo '.section myfoosect, "a"' > conftest3.s
22578  echo '.byte 0' >> conftest3.s
22579  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22580     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22581     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22582     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22583	conftest2.o conftest3.o > /dev/null 2>&1; then
22584    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22585			 | sed -e '/myfoosect/!d' -e N`
22586    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22587      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22588	gcc_cv_ld_ro_rw_mix=read-only
22589      else
22590	gcc_cv_ld_ro_rw_mix=read-write
22591      fi
22592    fi
22593  fi
22594  rm -f conftest.* conftest[123].*
22595fi
22596if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22597
22598$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22599
22600fi
22601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22602$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22603
22604if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22605  case "${target}" in
22606    *-*-solaris2*)
22607      #
22608      # Solaris 2 ld -V output looks like this for a regular version:
22609      #
22610      # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22611      #
22612      # but test versions add stuff at the end:
22613      #
22614      # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22615      #
22616      gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22617      if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22618	gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22619	  -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22620	gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22621	gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22622      fi
22623      ;;
22624  esac
22625fi
22626
22627# Check whether --enable-initfini-array was given.
22628if test "${enable_initfini_array+set}" = set; then :
22629  enableval=$enable_initfini_array;
22630else
22631
22632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22633$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22634if test "${gcc_cv_initfini_array+set}" = set; then :
22635  $as_echo_n "(cached) " >&6
22636else
22637    if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22638    case "${target}" in
22639      ia64-*)
22640	if test "$cross_compiling" = yes; then :
22641  gcc_cv_initfini_array=no
22642else
22643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644/* end confdefs.h.  */
22645
22646#ifndef __ELF__
22647#error Not an ELF OS
22648#endif
22649/* We turn on .preinit_array/.init_array/.fini_array support for ia64
22650   if it can be used.  */
22651static int x = -1;
22652int main (void) { return x; }
22653int foo (void) { x = 0; }
22654int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22655
22656_ACEOF
22657if ac_fn_c_try_run "$LINENO"; then :
22658  gcc_cv_initfini_array=yes
22659else
22660  gcc_cv_initfini_array=no
22661fi
22662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22663  conftest.$ac_objext conftest.beam conftest.$ac_ext
22664fi
22665;;
22666      *)
22667	gcc_cv_initfini_array=no
22668	if test $in_tree_ld = yes ; then
22669	  if test "$gcc_cv_gld_major_version" -eq 2 \
22670	     -a "$gcc_cv_gld_minor_version" -ge 22 \
22671	     -o "$gcc_cv_gld_major_version" -gt 2 \
22672	     && test $in_tree_ld_is_elf = yes; then
22673	    gcc_cv_initfini_array=yes
22674	  fi
22675	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22676	  cat > conftest.s <<\EOF
22677.section .dtors,"a",%progbits
22678.balign 4
22679.byte 'A', 'A', 'A', 'A'
22680.section .ctors,"a",%progbits
22681.balign 4
22682.byte 'B', 'B', 'B', 'B'
22683.section .fini_array.65530,"a",%progbits
22684.balign 4
22685.byte 'C', 'C', 'C', 'C'
22686.section .init_array.65530,"a",%progbits
22687.balign 4
22688.byte 'D', 'D', 'D', 'D'
22689.section .dtors.64528,"a",%progbits
22690.balign 4
22691.byte 'E', 'E', 'E', 'E'
22692.section .ctors.64528,"a",%progbits
22693.balign 4
22694.byte 'F', 'F', 'F', 'F'
22695.section .fini_array.01005,"a",%progbits
22696.balign 4
22697.byte 'G', 'G', 'G', 'G'
22698.section .init_array.01005,"a",%progbits
22699.balign 4
22700.byte 'H', 'H', 'H', 'H'
22701.text
22702.globl _start
22703_start:
22704EOF
22705	  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22706	     && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22707	     && $gcc_cv_objdump -s -j .init_array conftest \
22708		| grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22709	     && $gcc_cv_objdump -s -j .fini_array conftest \
22710		| grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22711	    gcc_cv_initfini_array=yes
22712	  fi
22713	  rm -f conftest conftest.*
22714	fi
22715	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716/* end confdefs.h.  */
22717
22718#ifndef __ELF__
22719# error Not an ELF OS
22720#endif
22721#include <stdlib.h>
22722#if defined __GLIBC_PREREQ
22723# if __GLIBC_PREREQ (2, 4)
22724# else
22725#  error GLIBC 2.4 required
22726# endif
22727#else
22728# if defined __sun__ && defined __svr4__
22729   /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
22730# else
22731#  error The C library not known to support .init_array/.fini_array
22732# endif
22733#endif
22734
22735_ACEOF
22736if ac_fn_c_try_cpp "$LINENO"; then :
22737
22738else
22739  gcc_cv_initfini_array=no
22740fi
22741rm -f conftest.err conftest.$ac_ext;;
22742    esac
22743  else
22744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22745$as_echo_n "checking cross compile... guessing... " >&6; }
22746    gcc_cv_initfini_array=no
22747  fi
22748fi
22749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22750$as_echo "$gcc_cv_initfini_array" >&6; }
22751  enable_initfini_array=$gcc_cv_initfini_array
22752
22753fi
22754
22755if test $enable_initfini_array = yes; then
22756
22757$as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22758
22759fi
22760
22761# Check if we have .[us]leb128, and support symbol arithmetic with it.
22762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22763$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22764if test "${gcc_cv_as_leb128+set}" = set; then :
22765  $as_echo_n "(cached) " >&6
22766else
22767  gcc_cv_as_leb128=no
22768    if test $in_tree_gas = yes; then
22769    if test $in_tree_gas_is_elf = yes \
22770  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22771  then gcc_cv_as_leb128=yes
22772fi
22773  elif test x$gcc_cv_as != x; then
22774    $as_echo '	.data
22775	.uleb128 L2 - L1
22776L1:
22777	.uleb128 1280
22778	.sleb128 -1010
22779L2:' > conftest.s
22780    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22781  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22782  (eval $ac_try) 2>&5
22783  ac_status=$?
22784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22785  test $ac_status = 0; }; }
22786    then
22787	# GAS versions before 2.11 do not support uleb128,
22788  # despite appearing to.
22789  # ??? There exists an elf-specific test that will crash
22790  # the assembler.  Perhaps it's better to figure out whether
22791  # arbitrary sections are supported and try the test.
22792  as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22793  if echo "$as_ver" | grep GNU > /dev/null; then
22794    as_vers=`echo $as_ver | sed -n \
22795	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22796    as_major=`expr "$as_vers" : '\([0-9]*\)'`
22797    as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22798    if test $as_major -eq 2 && test $as_minor -lt 11
22799    then :
22800    else gcc_cv_as_leb128=yes
22801    fi
22802  fi
22803    else
22804      echo "configure: failed program was" >&5
22805      cat conftest.s >&5
22806    fi
22807    rm -f conftest.o conftest.s
22808  fi
22809fi
22810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22811$as_echo "$gcc_cv_as_leb128" >&6; }
22812if test $gcc_cv_as_leb128 = yes; then
22813
22814$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22815
22816fi
22817
22818# Check if we have assembler support for unwind directives.
22819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22820$as_echo_n "checking assembler for cfi directives... " >&6; }
22821if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22822  $as_echo_n "(cached) " >&6
22823else
22824  gcc_cv_as_cfi_directive=no
22825  if test x$gcc_cv_as != x; then
22826    $as_echo '	.text
22827	.cfi_startproc
22828	.cfi_offset 0, 0
22829	.cfi_same_value 1
22830	.cfi_def_cfa 1, 2
22831	.cfi_escape 1, 2, 3, 4, 5
22832	.cfi_endproc' > conftest.s
22833    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22834  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22835  (eval $ac_try) 2>&5
22836  ac_status=$?
22837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22838  test $ac_status = 0; }; }
22839    then
22840	case "$target" in
22841  *-*-solaris*)
22842    # If the linker used on Solaris (like Sun ld) isn't capable of merging
22843    # read-only and read-write sections, we need to make sure that the
22844    # assembler used emits read-write .eh_frame sections.
22845    if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22846      if test "x$gcc_cv_objdump" != x; then
22847	if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22848		sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22849	  gcc_cv_as_cfi_directive=no
22850	else
22851	  case "$target" in
22852	    i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22853	      # On Solaris/x86, make sure that GCC and assembler agree on using
22854	      # read-only .eh_frame sections for 64-bit.
22855	      if test x$gas = xyes; then
22856	         as_ix86_64_opt="--64"
22857	      else
22858	         as_ix86_64_opt="-xarch=amd64"
22859	      fi
22860	      if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22861		$gcc_cv_objdump -h conftest.o 2>/dev/null | \
22862			sed -e /.eh_frame/!d -e N | \
22863			grep READONLY > /dev/null; then
22864		gcc_cv_as_cfi_directive=yes
22865	      else
22866		gcc_cv_as_cfi_directive=no
22867	      fi
22868	      ;;
22869	    *)
22870	      gcc_cv_as_cfi_directive=yes
22871	      ;;
22872	  esac
22873	fi
22874      else
22875        # no objdump, err on the side of caution
22876	gcc_cv_as_cfi_directive=no
22877      fi
22878    else
22879      gcc_cv_as_cfi_directive=yes
22880    fi
22881    ;;
22882  *-*-*)
22883    gcc_cv_as_cfi_directive=yes
22884    ;;
22885esac
22886    else
22887      echo "configure: failed program was" >&5
22888      cat conftest.s >&5
22889    fi
22890    rm -f conftest.o conftest.s
22891  fi
22892fi
22893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22894$as_echo "$gcc_cv_as_cfi_directive" >&6; }
22895
22896if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22898$as_echo_n "checking assembler for working cfi advance... " >&6; }
22899if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22900  $as_echo_n "(cached) " >&6
22901else
22902  gcc_cv_as_cfi_advance_working=no
22903  if test x$gcc_cv_as != x; then
22904    $as_echo '	.text
22905	.cfi_startproc
22906	.cfi_adjust_cfa_offset 64
22907	.skip 75040, 0
22908	.cfi_adjust_cfa_offset 128
22909	.cfi_endproc' > conftest.s
22910    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22911  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22912  (eval $ac_try) 2>&5
22913  ac_status=$?
22914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22915  test $ac_status = 0; }; }
22916    then
22917
22918if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22919    | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
22920   gcc_cv_as_cfi_advance_working=yes
22921fi
22922
22923    else
22924      echo "configure: failed program was" >&5
22925      cat conftest.s >&5
22926    fi
22927    rm -f conftest.o conftest.s
22928  fi
22929fi
22930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22931$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22932
22933else
22934  # no objdump, err on the side of caution
22935  gcc_cv_as_cfi_advance_working=no
22936fi
22937
22938
22939cat >>confdefs.h <<_ACEOF
22940#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22941       && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22942_ACEOF
22943
22944
22945
22946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22947$as_echo_n "checking assembler for cfi personality directive... " >&6; }
22948if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22949  $as_echo_n "(cached) " >&6
22950else
22951  gcc_cv_as_cfi_personality_directive=no
22952  if test x$gcc_cv_as != x; then
22953    $as_echo '	.text
22954	.cfi_startproc
22955	.cfi_personality 0, symbol
22956	.cfi_endproc' > conftest.s
22957    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22958  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22959  (eval $ac_try) 2>&5
22960  ac_status=$?
22961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22962  test $ac_status = 0; }; }
22963    then
22964	gcc_cv_as_cfi_personality_directive=yes
22965    else
22966      echo "configure: failed program was" >&5
22967      cat conftest.s >&5
22968    fi
22969    rm -f conftest.o conftest.s
22970  fi
22971fi
22972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22973$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22974
22975
22976cat >>confdefs.h <<_ACEOF
22977#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22978    then echo 1; else echo 0; fi`
22979_ACEOF
22980
22981
22982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22983$as_echo_n "checking assembler for cfi sections directive... " >&6; }
22984if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22985  $as_echo_n "(cached) " >&6
22986else
22987  gcc_cv_as_cfi_sections_directive=no
22988  if test x$gcc_cv_as != x; then
22989    $as_echo '	.text
22990	.cfi_sections .debug_frame, .eh_frame
22991	.cfi_startproc
22992	.cfi_endproc' > conftest.s
22993    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22994  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22995  (eval $ac_try) 2>&5
22996  ac_status=$?
22997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22998  test $ac_status = 0; }; }
22999    then
23000	case $target_os in
23001  win32 | pe | cygwin* | mingw32* | uwin*)
23002    # Need to check that we generated the correct relocation for the
23003    # .debug_frame section.  This was fixed for binutils 2.21.
23004    gcc_cv_as_cfi_sections_directive=no
23005    if test "x$gcc_cv_objdump" != x; then
23006     if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23007	grep secrel > /dev/null; then
23008      gcc_cv_as_cfi_sections_directive=yes
23009     fi
23010    fi
23011    ;;
23012  *)
23013    gcc_cv_as_cfi_sections_directive=yes
23014    ;;
23015esac
23016    else
23017      echo "configure: failed program was" >&5
23018      cat conftest.s >&5
23019    fi
23020    rm -f conftest.o conftest.s
23021  fi
23022fi
23023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23024$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23025
23026
23027
23028cat >>confdefs.h <<_ACEOF
23029#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23030    then echo 1; else echo 0; fi`
23031_ACEOF
23032
23033
23034# GAS versions up to and including 2.11.0 may mis-optimize
23035# .eh_frame data.
23036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23037$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23038if test "${gcc_cv_as_eh_frame+set}" = set; then :
23039  $as_echo_n "(cached) " >&6
23040else
23041  gcc_cv_as_eh_frame=no
23042    if test $in_tree_gas = yes; then
23043    if test $in_tree_gas_is_elf = yes \
23044  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23045  then gcc_cv_as_eh_frame=yes
23046fi
23047  elif test x$gcc_cv_as != x; then
23048    $as_echo '	.text
23049.LFB1:
23050	.4byte	0
23051.L1:
23052	.4byte	0
23053.LFE1:
23054	.section	.eh_frame,"aw",@progbits
23055__FRAME_BEGIN__:
23056	.4byte	.LECIE1-.LSCIE1
23057.LSCIE1:
23058	.4byte	0x0
23059	.byte	0x1
23060	.ascii "z\0"
23061	.byte	0x1
23062	.byte	0x78
23063	.byte	0x1a
23064	.byte	0x0
23065	.byte	0x4
23066	.4byte	1
23067	.p2align 1
23068.LECIE1:
23069.LSFDE1:
23070	.4byte	.LEFDE1-.LASFDE1
23071.LASFDE1:
23072	.4byte	.LASFDE1-__FRAME_BEGIN__
23073	.4byte	.LFB1
23074	.4byte	.LFE1-.LFB1
23075	.byte	0x4
23076	.4byte	.LFE1-.LFB1
23077	.byte	0x4
23078	.4byte	.L1-.LFB1
23079.LEFDE1:' > conftest.s
23080    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23081  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23082  (eval $ac_try) 2>&5
23083  ac_status=$?
23084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23085  test $ac_status = 0; }; }
23086    then
23087	  cat > conftest.lit <<EOF
23088 0000 10000000 00000000 017a0001 781a0004  .........z..x...
23089 0010 01000000 12000000 18000000 00000000  ................
23090 0020 08000000 04080000 0044               .........D      
23091EOF
23092cat > conftest.big <<EOF
23093 0000 00000010 00000000 017a0001 781a0004  .........z..x...
23094 0010 00000001 00000012 00000018 00000000  ................
23095 0020 00000008 04000000 0844               .........D      
23096EOF
23097  # If the assembler didn't choke, and we can objdump,
23098  # and we got the correct data, then succeed.
23099  # The text in the here-document typically retains its unix-style line
23100  # endings, while the output of objdump will use host line endings.
23101  # Therefore, use diff -b for the comparisons.
23102  if test x$gcc_cv_objdump != x \
23103  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23104     | tail -3 > conftest.got \
23105  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23106    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23107  then
23108    gcc_cv_as_eh_frame=yes
23109  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23110  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23111  (eval $ac_try) 2>&5
23112  ac_status=$?
23113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23114  test $ac_status = 0; }; }; then
23115    gcc_cv_as_eh_frame=buggy
23116  else
23117    # Uh oh, what do we do now?
23118    gcc_cv_as_eh_frame=no
23119  fi
23120    else
23121      echo "configure: failed program was" >&5
23122      cat conftest.s >&5
23123    fi
23124    rm -f conftest.o conftest.s
23125  fi
23126fi
23127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23128$as_echo "$gcc_cv_as_eh_frame" >&6; }
23129
23130
23131if test $gcc_cv_as_eh_frame = buggy; then
23132
23133$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23134
23135fi
23136
23137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23138$as_echo_n "checking assembler for section merging support... " >&6; }
23139if test "${gcc_cv_as_shf_merge+set}" = set; then :
23140  $as_echo_n "(cached) " >&6
23141else
23142  gcc_cv_as_shf_merge=no
23143    if test $in_tree_gas = yes; then
23144    if test $in_tree_gas_is_elf = yes \
23145  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23146  then gcc_cv_as_shf_merge=yes
23147fi
23148  elif test x$gcc_cv_as != x; then
23149    $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23150    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23151  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152  (eval $ac_try) 2>&5
23153  ac_status=$?
23154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155  test $ac_status = 0; }; }
23156    then
23157	gcc_cv_as_shf_merge=yes
23158    else
23159      echo "configure: failed program was" >&5
23160      cat conftest.s >&5
23161    fi
23162    rm -f conftest.o conftest.s
23163  fi
23164fi
23165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23166$as_echo "$gcc_cv_as_shf_merge" >&6; }
23167
23168if test $gcc_cv_as_shf_merge = no; then
23169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23170$as_echo_n "checking assembler for section merging support... " >&6; }
23171if test "${gcc_cv_as_shf_merge+set}" = set; then :
23172  $as_echo_n "(cached) " >&6
23173else
23174  gcc_cv_as_shf_merge=no
23175    if test $in_tree_gas = yes; then
23176    if test $in_tree_gas_is_elf = yes \
23177  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23178  then gcc_cv_as_shf_merge=yes
23179fi
23180  elif test x$gcc_cv_as != x; then
23181    $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23182    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23183  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23184  (eval $ac_try) 2>&5
23185  ac_status=$?
23186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23187  test $ac_status = 0; }; }
23188    then
23189	gcc_cv_as_shf_merge=yes
23190    else
23191      echo "configure: failed program was" >&5
23192      cat conftest.s >&5
23193    fi
23194    rm -f conftest.o conftest.s
23195  fi
23196fi
23197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23198$as_echo "$gcc_cv_as_shf_merge" >&6; }
23199
23200fi
23201
23202cat >>confdefs.h <<_ACEOF
23203#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23204_ACEOF
23205
23206
23207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23208$as_echo_n "checking assembler for stabs directive... " >&6; }
23209if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23210  $as_echo_n "(cached) " >&6
23211else
23212  gcc_cv_as_stabs_directive=no
23213  if test x$gcc_cv_as != x; then
23214    $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23215    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23216  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23217  (eval $ac_try) 2>&5
23218  ac_status=$?
23219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23220  test $ac_status = 0; }; }
23221    then
23222	gcc_cv_as_stabs_directive=yes
23223    else
23224      echo "configure: failed program was" >&5
23225      cat conftest.s >&5
23226    fi
23227    rm -f conftest.o conftest.s
23228  fi
23229fi
23230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23231$as_echo "$gcc_cv_as_stabs_directive" >&6; }
23232if test $gcc_cv_as_stabs_directive = yes; then
23233
23234$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23235
23236fi
23237
23238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23239$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23240if test "${gcc_cv_as_comdat_group+set}" = set; then :
23241  $as_echo_n "(cached) " >&6
23242else
23243  gcc_cv_as_comdat_group=no
23244    if test $in_tree_gas = yes; then
23245    if test $in_tree_gas_is_elf = yes \
23246  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23247  then gcc_cv_as_comdat_group=yes
23248fi
23249  elif test x$gcc_cv_as != x; then
23250    $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23251    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23252  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23253  (eval $ac_try) 2>&5
23254  ac_status=$?
23255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23256  test $ac_status = 0; }; }
23257    then
23258	gcc_cv_as_comdat_group=yes
23259    else
23260      echo "configure: failed program was" >&5
23261      cat conftest.s >&5
23262    fi
23263    rm -f conftest.o conftest.s
23264  fi
23265fi
23266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23267$as_echo "$gcc_cv_as_comdat_group" >&6; }
23268
23269if test $gcc_cv_as_comdat_group = yes; then
23270  gcc_cv_as_comdat_group_percent=no
23271  gcc_cv_as_comdat_group_group=no
23272else
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23274$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23275if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23276  $as_echo_n "(cached) " >&6
23277else
23278  gcc_cv_as_comdat_group_percent=no
23279    if test $in_tree_gas = yes; then
23280    if test $in_tree_gas_is_elf = yes \
23281  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23282  then gcc_cv_as_comdat_group_percent=yes
23283fi
23284  elif test x$gcc_cv_as != x; then
23285    $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23286    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23287  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23288  (eval $ac_try) 2>&5
23289  ac_status=$?
23290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23291  test $ac_status = 0; }; }
23292    then
23293	gcc_cv_as_comdat_group_percent=yes
23294    else
23295      echo "configure: failed program was" >&5
23296      cat conftest.s >&5
23297    fi
23298    rm -f conftest.o conftest.s
23299  fi
23300fi
23301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23302$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23303
23304 if test $gcc_cv_as_comdat_group_percent = yes; then
23305   gcc_cv_as_comdat_group_group=no
23306 else
23307   case "${target}" in
23308     # Sun as uses a completely different syntax.
23309     *-*-solaris2*)
23310       case "${target}" in
23311         sparc*-*-solaris2*)
23312           conftest_s='
23313               .group foo,".text%foo",#comdat
23314               .section ".text%foo", #alloc,#execinstr,#progbits
23315               .globl foo
23316             foo:
23317	     '
23318           ;;
23319         i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23320	   conftest_s='
23321               .group foo,.text%foo,#comdat
23322               .section .text%foo, "ax", @progbits
23323               .globl  foo
23324             foo:
23325	     '
23326	   ;;
23327       esac
23328       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23329$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23330if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23331  $as_echo_n "(cached) " >&6
23332else
23333  gcc_cv_as_comdat_group_group=no
23334  if test x$gcc_cv_as != x; then
23335    $as_echo "$conftest_s" > conftest.s
23336    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23337  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23338  (eval $ac_try) 2>&5
23339  ac_status=$?
23340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23341  test $ac_status = 0; }; }
23342    then
23343	gcc_cv_as_comdat_group_group=yes
23344    else
23345      echo "configure: failed program was" >&5
23346      cat conftest.s >&5
23347    fi
23348    rm -f conftest.o conftest.s
23349  fi
23350fi
23351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23352$as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23353
23354       ;;
23355   esac
23356   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23357     gcc_cv_as_comdat_group_group=no
23358   fi
23359 fi
23360fi
23361if test x"$ld_is_gold" = xyes; then
23362  comdat_group=yes
23363elif test $in_tree_ld = yes ; then
23364  comdat_group=no
23365  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 \
23366     && test $in_tree_ld_is_elf = yes; then
23367     comdat_group=yes
23368  fi
23369elif echo "$ld_ver" | grep GNU > /dev/null; then
23370  comdat_group=yes
23371  if test 0"$ld_date" -lt 20050308; then
23372    if test -n "$ld_date"; then
23373      # If there was date string, but was earlier than 2005-03-08, fail
23374      comdat_group=no
23375    elif test "$ld_vers_major" -lt 2; then
23376      comdat_group=no
23377    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23378      comdat_group=no
23379    fi
23380  fi
23381else
23382  case "${target}" in
23383    *-*-solaris2.1[1-9]*)
23384      comdat_group=no
23385      # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23386      # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23387      # version 1.688.
23388      #
23389      # If using Sun as for COMDAT group as emitted by GCC, one needs at
23390      # least ld version 1.2267.
23391      if test "$ld_vers_major" -gt 1; then
23392        comdat_group=yes
23393      elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23394	comdat_group=yes
23395      elif test "$ld_vers_minor" -ge 2267; then
23396	comdat_group=yes
23397      fi
23398      ;;
23399    *)
23400      # Assume linkers other than GNU ld don't support COMDAT group.
23401      comdat_group=no
23402      ;;
23403  esac
23404fi
23405# Allow overriding the automatic COMDAT group tests above.
23406# Check whether --enable-comdat was given.
23407if test "${enable_comdat+set}" = set; then :
23408  enableval=$enable_comdat; comdat_group="$enable_comdat"
23409fi
23410
23411if test $comdat_group = no; then
23412  gcc_cv_as_comdat_group=no
23413  gcc_cv_as_comdat_group_percent=no
23414  gcc_cv_as_comdat_group_group=no
23415fi
23416
23417cat >>confdefs.h <<_ACEOF
23418#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23419    || test $gcc_cv_as_comdat_group_percent = yes \
23420    || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23421_ACEOF
23422
23423
23424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23425$as_echo_n "checking assembler for line table discriminator support... " >&6; }
23426if test "${gcc_cv_as_discriminator+set}" = set; then :
23427  $as_echo_n "(cached) " >&6
23428else
23429  gcc_cv_as_discriminator=no
23430    if test $in_tree_gas = yes; then
23431    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23432  then gcc_cv_as_discriminator=yes
23433fi
23434  elif test x$gcc_cv_as != x; then
23435    $as_echo '	.text
23436	.file 1 "conf.c"
23437	.loc 1 1 0 discriminator 1' > conftest.s
23438    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23439  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23440  (eval $ac_try) 2>&5
23441  ac_status=$?
23442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23443  test $ac_status = 0; }; }
23444    then
23445	gcc_cv_as_discriminator=yes
23446    else
23447      echo "configure: failed program was" >&5
23448      cat conftest.s >&5
23449    fi
23450    rm -f conftest.o conftest.s
23451  fi
23452fi
23453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23454$as_echo "$gcc_cv_as_discriminator" >&6; }
23455if test $gcc_cv_as_discriminator = yes; then
23456
23457$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23458
23459fi
23460
23461# Thread-local storage - the check is heavily parameterized.
23462conftest_s=
23463tls_first_major=
23464tls_first_minor=
23465tls_as_opt=
23466case "$target" in
23467  alpha*-*-*)
23468    conftest_s='
23469	.section ".tdata","awT",@progbits
23470foo:	.long	25
23471	.text
23472	ldq	$27,__tls_get_addr($29)		!literal!1
23473	lda	$16,foo($29)			!tlsgd!1
23474	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
23475	ldq	$27,__tls_get_addr($29)		!literal!2
23476	lda	$16,foo($29)			!tlsldm!2
23477	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
23478	ldq	$1,foo($29)			!gotdtprel
23479	ldah	$2,foo($29)			!dtprelhi
23480	lda	$3,foo($2)			!dtprello
23481	lda	$4,foo($29)			!dtprel
23482	ldq	$1,foo($29)			!gottprel
23483	ldah	$2,foo($29)			!tprelhi
23484	lda	$3,foo($2)			!tprello
23485	lda	$4,foo($29)			!tprel'
23486	tls_first_major=2
23487	tls_first_minor=13
23488	tls_as_opt=--fatal-warnings
23489	;;
23490  cris-*-*|crisv32-*-*)
23491    conftest_s='
23492	.section ".tdata","awT",@progbits
23493x:      .long   25
23494        .text
23495	move.d x:IE,$r10
23496	nop'
23497	tls_first_major=2
23498	tls_first_minor=20
23499	tls_as_opt=--fatal-warnings
23500	;;
23501  frv*-*-*)
23502    conftest_s='
23503	.section ".tdata","awT",@progbits
23504x:      .long   25
23505        .text
23506        call    #gettlsoff(x)'
23507	tls_first_major=2
23508	tls_first_minor=14
23509	;;
23510  hppa*-*-linux*)
23511    conftest_s='
23512t1:	.reg	%r20
23513t2:	.reg	%r21
23514gp:	.reg	%r19
23515	.section ".tdata","awT",@progbits
23516foo:	.long	25
23517	.text
23518	.align	4
23519	addil LT%foo-$tls_gdidx$,gp
23520	ldo RT%foo-$tls_gdidx$(%r1),%arg0
23521	b __tls_get_addr
23522	nop
23523	addil LT%foo-$tls_ldidx$,gp
23524	b __tls_get_addr
23525	ldo RT%foo-$tls_ldidx$(%r1),%arg0
23526	addil LR%foo-$tls_dtpoff$,%ret0
23527	ldo RR%foo-$tls_dtpoff$(%r1),%t1
23528	mfctl %cr27,%t1
23529	addil LT%foo-$tls_ieoff$,gp
23530	ldw RT%foo-$tls_ieoff$(%r1),%t2
23531	add %t1,%t2,%t3
23532	mfctl %cr27,%t1
23533	addil LR%foo-$tls_leoff$,%t1
23534	ldo RR%foo-$tls_leoff$(%r1),%t2'
23535	tls_first_major=2
23536	tls_first_minor=15
23537	tls_as_opt=--fatal-warnings
23538	;;
23539  arm*-*-*)
23540    conftest_s='
23541	.section ".tdata","awT",%progbits
23542foo:	.long	25
23543	.text
23544.word foo(gottpoff)
23545.word foo(tpoff)
23546.word foo(tlsgd)
23547.word foo(tlsldm)
23548.word foo(tlsldo)'
23549	tls_first_major=2
23550	tls_first_minor=17
23551	;;
23552  i[34567]86-*-* | x86_64-*-*)
23553    case "$target" in
23554      i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23555	on_solaris=yes
23556        ;;
23557      *)
23558	on_solaris=no
23559	;;
23560    esac
23561    if test x$on_solaris = xyes && test x$gas_flag = xno; then
23562      conftest_s='
23563	.section .tdata,"awt",@progbits'
23564      tls_first_major=0
23565      tls_first_minor=0
23566      tls_section_flag=t
23567
23568$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23569
23570    else
23571      conftest_s='
23572	.section ".tdata","awT",@progbits'
23573      tls_first_major=2
23574      tls_first_minor=14
23575      tls_section_flag=T
23576      tls_as_opt="--fatal-warnings"
23577    fi
23578    case "$target" in
23579      i[34567]86-*-*)
23580	conftest_s="$conftest_s
23581foo:	.long	25
23582	.text
23583	movl	%gs:0, %eax
23584	leal	foo@tlsgd(,%ebx,1), %eax
23585	leal	foo@tlsldm(%ebx), %eax
23586	leal	foo@dtpoff(%eax), %edx
23587	movl	foo@gottpoff(%ebx), %eax
23588	subl	foo@gottpoff(%ebx), %eax
23589	addl	foo@gotntpoff(%ebx), %eax
23590	movl	foo@indntpoff, %eax
23591	movl	\$foo@tpoff, %eax
23592	subl	\$foo@tpoff, %eax
23593	leal	foo@ntpoff(%ecx), %eax"
23594	;;
23595      x86_64-*-*)
23596	if test x$on_solaris = xyes; then
23597	  case $gas_flag in
23598	    yes) tls_as_opt="$tls_as_opt --64" ;;
23599	    no)	 tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23600	  esac
23601	fi
23602	conftest_s="$conftest_s
23603foo:	.long	25
23604	.text
23605	movq	%fs:0, %rax
23606	leaq	foo@tlsgd(%rip), %rdi
23607	leaq	foo@tlsld(%rip), %rdi
23608	leaq	foo@dtpoff(%rax), %rdx
23609	movq	foo@gottpoff(%rip), %rax
23610	movq	\$foo@tpoff, %rax"
23611        ;;
23612    esac
23613    ;;
23614  ia64-*-*)
23615    conftest_s='
23616	.section ".tdata","awT",@progbits
23617foo:	data8	25
23618	.text
23619	addl	r16 = @ltoff(@dtpmod(foo#)), gp
23620	addl	r17 = @ltoff(@dtprel(foo#)), gp
23621	addl	r18 = @ltoff(@tprel(foo#)), gp
23622	addl	r19 = @dtprel(foo#), gp
23623	adds	r21 = @dtprel(foo#), r13
23624	movl	r23 = @dtprel(foo#)
23625	addl	r20 = @tprel(foo#), gp
23626	adds	r22 = @tprel(foo#), r13
23627	movl	r24 = @tprel(foo#)'
23628	tls_first_major=2
23629	tls_first_minor=13
23630	tls_as_opt=--fatal-warnings
23631	;;
23632  microblaze*-*-*)
23633    conftest_s='
23634	.section .tdata,"awT",@progbits
23635x:
23636	.word 2
23637	.text
23638	addik r5,r20,x@TLSGD
23639	addik r5,r20,x@TLSLDM'
23640	tls_first_major=2
23641	tls_first_minor=20
23642	tls_as_opt='--fatal-warnings'
23643	;;
23644  mips*-*-*)
23645    conftest_s='
23646	.section .tdata,"awT",@progbits
23647x:
23648	.word 2
23649	.text
23650	addiu $4, $28, %tlsgd(x)
23651	addiu $4, $28, %tlsldm(x)
23652	lui $4, %dtprel_hi(x)
23653	addiu $4, $4, %dtprel_lo(x)
23654	lw $4, %gottprel(x)($28)
23655	lui $4, %tprel_hi(x)
23656	addiu $4, $4, %tprel_lo(x)'
23657	tls_first_major=2
23658	tls_first_minor=16
23659	tls_as_opt='-32 --fatal-warnings'
23660	;;
23661  m68k-*-*)
23662    conftest_s='
23663	.section .tdata,"awT",@progbits
23664x:
23665	.word 2
23666	.text
23667foo:
23668	move.l x@TLSGD(%a5),%a0
23669	move.l x@TLSLDM(%a5),%a0
23670	move.l x@TLSLDO(%a5),%a0
23671	move.l x@TLSIE(%a5),%a0
23672	move.l x@TLSLE(%a5),%a0'
23673	tls_first_major=2
23674	tls_first_minor=19
23675	tls_as_opt='--fatal-warnings'
23676	;;
23677  nios2-*-*)
23678      conftest_s='
23679	.section ".tdata","awT",@progbits'
23680	tls_first_major=2
23681	tls_first_minor=23
23682	tls_as_opt="--fatal-warnings"
23683	;;
23684  aarch64*-*-*)
23685    conftest_s='
23686	.section ".tdata","awT",%progbits
23687foo:	.long	25
23688	.text
23689	adrp  x0, :tlsgd:x
23690	add   x0, x0, #:tlsgd_lo12:x
23691        bl    __tls_get_addr
23692	nop'
23693	tls_first_major=2
23694	tls_first_minor=20
23695	tls_as_opt='--fatal-warnings'
23696	;;
23697  powerpc-ibm-aix*)
23698    conftest_s='
23699	.extern __get_tpointer
23700	.toc
23701LC..1:
23702	.tc a[TC],a[TL]@le
23703	.csect .text[PR]
23704.tlstest:
23705	lwz 9,LC..1(2)
23706	bla __get_tpointer
23707	lwzx 3,9,3
23708	.globl a
23709	.csect a[TL],4
23710a:
23711	.space 4'
23712	tls_first_major=0
23713	tls_first_minor=0
23714	;;
23715  powerpc64*-*-*)
23716    conftest_s='
23717	.section ".tdata","awT",@progbits
23718	.align 3
23719ld0:	.space 8
23720ld1:	.space 8
23721x1:	.space 8
23722x2:	.space 8
23723x3:	.space 8
23724	.text
23725	addi 3,2,ld0@got@tlsgd
23726	bl .__tls_get_addr
23727	nop
23728	addi 3,2,ld1@toc
23729	bl .__tls_get_addr
23730	nop
23731	addi 3,2,x1@got@tlsld
23732	bl .__tls_get_addr
23733	nop
23734	addi 9,3,x1@dtprel
23735	bl .__tls_get_addr
23736	nop
23737	addis 9,3,x2@dtprel@ha
23738	addi 9,9,x2@dtprel@l
23739	bl .__tls_get_addr
23740	nop
23741	ld 9,x3@got@dtprel(2)
23742	add 9,9,3
23743	bl .__tls_get_addr
23744	nop'
23745	tls_first_major=2
23746	tls_first_minor=14
23747	tls_as_opt="-a64 --fatal-warnings"
23748	;;
23749  powerpc*-*-*)
23750    conftest_s='
23751	.section ".tdata","awT",@progbits
23752	.align 2
23753ld0:	.space 4
23754ld1:	.space 4
23755x1:	.space 4
23756x2:	.space 4
23757x3:	.space 4
23758	.text
23759	addi 3,31,ld0@got@tlsgd
23760	bl __tls_get_addr
23761	addi 3,31,x1@got@tlsld
23762	bl __tls_get_addr
23763	addi 9,3,x1@dtprel
23764	addis 9,3,x2@dtprel@ha
23765	addi 9,9,x2@dtprel@l
23766	lwz 9,x3@got@tprel(31)
23767	add 9,9,x@tls
23768	addi 9,2,x1@tprel
23769	addis 9,2,x2@tprel@ha
23770	addi 9,9,x2@tprel@l'
23771	tls_first_major=2
23772	tls_first_minor=14
23773	tls_as_opt="-a32 --fatal-warnings"
23774	;;
23775  s390-*-*)
23776    conftest_s='
23777	.section ".tdata","awT",@progbits
23778foo:	.long	25
23779	.text
23780	.long	foo@TLSGD
23781	.long	foo@TLSLDM
23782	.long	foo@DTPOFF
23783	.long	foo@NTPOFF
23784	.long	foo@GOTNTPOFF
23785	.long	foo@INDNTPOFF
23786	l	%r1,foo@GOTNTPOFF(%r12)
23787	l	%r1,0(%r1):tls_load:foo
23788	bas	%r14,0(%r1,%r13):tls_gdcall:foo
23789	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
23790	tls_first_major=2
23791	tls_first_minor=14
23792	tls_as_opt="-m31 --fatal-warnings"
23793	;;
23794  s390x-*-*)
23795    conftest_s='
23796	.section ".tdata","awT",@progbits
23797foo:	.long	25
23798	.text
23799	.quad	foo@TLSGD
23800	.quad	foo@TLSLDM
23801	.quad	foo@DTPOFF
23802	.quad	foo@NTPOFF
23803	.quad	foo@GOTNTPOFF
23804	lg	%r1,foo@GOTNTPOFF(%r12)
23805	larl	%r1,foo@INDNTPOFF
23806	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
23807	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
23808	tls_first_major=2
23809	tls_first_minor=14
23810	tls_as_opt="-m64 -Aesame --fatal-warnings"
23811	;;
23812  sh-*-* | sh[34]-*-*)
23813    conftest_s='
23814	.section ".tdata","awT",@progbits
23815foo:	.long	25
23816	.text
23817	.long	foo@TLSGD
23818	.long	foo@TLSLDM
23819	.long	foo@DTPOFF
23820	.long	foo@GOTTPOFF
23821	.long	foo@TPOFF'
23822	tls_first_major=2
23823	tls_first_minor=13
23824	tls_as_opt=--fatal-warnings
23825	;;
23826  sparc*-*-*)
23827    case "$target" in
23828      sparc*-sun-solaris2.*)
23829	on_solaris=yes
23830	;;
23831      *)
23832	on_solaris=no
23833	;;
23834    esac
23835    if test x$on_solaris = xyes && test x$gas_flag = xno; then
23836      conftest_s='
23837	.section ".tdata",#alloc,#write,#tls'
23838	tls_first_major=0
23839	tls_first_minor=0
23840    else
23841      conftest_s='
23842	.section ".tdata","awT",@progbits'
23843	tls_first_major=2
23844	tls_first_minor=14
23845	tls_as_opt="-32 --fatal-warnings"
23846    fi
23847    conftest_s="$conftest_s
23848foo:	.long	25
23849	.text
23850	sethi	%tgd_hi22(foo), %o0
23851	add	%o0, %tgd_lo10(foo), %o1
23852	add	%l7, %o1, %o0, %tgd_add(foo)
23853	call	__tls_get_addr, %tgd_call(foo)
23854	sethi	%tldm_hi22(foo), %l1
23855	add	%l1, %tldm_lo10(foo), %l2
23856	add	%l7, %l2, %o0, %tldm_add(foo)
23857	call	__tls_get_addr, %tldm_call(foo)
23858	sethi	%tldo_hix22(foo), %l3
23859	xor	%l3, %tldo_lox10(foo), %l4
23860	add	%o0, %l4, %l5, %tldo_add(foo)
23861	sethi	%tie_hi22(foo), %o3
23862	add	%o3, %tie_lo10(foo), %o3
23863	ld	[%l7 + %o3], %o2, %tie_ld(foo)
23864	add	%g7, %o2, %o4, %tie_add(foo)
23865	sethi	%tle_hix22(foo), %l1
23866	xor	%l1, %tle_lox10(foo), %o5
23867	ld	[%g7 + %o5], %o1"
23868	;;
23869  tilepro*-*-*)
23870      conftest_s='
23871	.section ".tdata","awT",@progbits
23872foo:	.long	25
23873	.text
23874	addli	r0, zero, tls_gd(foo)
23875	auli	r0, zero, tls_gd_ha16(foo)
23876	addli	r0, r0, tls_gd_lo16(foo)
23877	jal	__tls_get_addr
23878	addli	r0, zero, tls_ie(foo)
23879	auli	r0, r0, tls_ie_ha16(foo)
23880	addli	r0, r0, tls_ie_lo16(foo)'
23881	tls_first_major=2
23882	tls_first_minor=22
23883	tls_as_opt="--fatal-warnings"
23884	;;
23885  tilegx*-*-*)
23886      conftest_s='
23887	.section ".tdata","awT",@progbits
23888foo:	.long	25
23889	.text
23890	shl16insli r0, zero, hw0_last_tls_gd(foo)
23891	shl16insli r0, zero, hw1_last_tls_gd(foo)
23892	shl16insli r0, r0,   hw0_tls_gd(foo)
23893	jal	   __tls_get_addr
23894	shl16insli r0, zero, hw1_last_tls_ie(foo)
23895	shl16insli r0, r0,   hw0_tls_ie(foo)'
23896	tls_first_major=2
23897	tls_first_minor=22
23898	tls_as_opt="--fatal-warnings"
23899	;;
23900  xtensa*-*-*)
23901    conftest_s='
23902	.section ".tdata","awT",@progbits
23903foo:	.long	25
23904	.text
23905	movi	a8, foo@TLSFUNC
23906	movi	a10, foo@TLSARG
23907	callx8.tls a8, foo@TLSCALL'
23908	tls_first_major=2
23909	tls_first_minor=19
23910	;;
23911esac
23912set_have_as_tls=no
23913if test "x$enable_tls" = xno ; then
23914  : # TLS explicitly disabled.
23915elif test "x$enable_tls" = xyes ; then
23916  set_have_as_tls=yes # TLS explicitly enabled.
23917elif test -z "$tls_first_major"; then
23918  : # If we don't have a check, assume no support.
23919else
23920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23921$as_echo_n "checking assembler for thread-local storage support... " >&6; }
23922if test "${gcc_cv_as_tls+set}" = set; then :
23923  $as_echo_n "(cached) " >&6
23924else
23925  gcc_cv_as_tls=no
23926    if test $in_tree_gas = yes; then
23927    if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23928  then gcc_cv_as_tls=yes
23929fi
23930  elif test x$gcc_cv_as != x; then
23931    $as_echo "$conftest_s" > conftest.s
23932    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23933  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23934  (eval $ac_try) 2>&5
23935  ac_status=$?
23936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23937  test $ac_status = 0; }; }
23938    then
23939	gcc_cv_as_tls=yes
23940    else
23941      echo "configure: failed program was" >&5
23942      cat conftest.s >&5
23943    fi
23944    rm -f conftest.o conftest.s
23945  fi
23946fi
23947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23948$as_echo "$gcc_cv_as_tls" >&6; }
23949if test $gcc_cv_as_tls = yes; then
23950  set_have_as_tls=yes
23951fi
23952fi
23953if test $set_have_as_tls = yes ; then
23954
23955$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23956
23957fi
23958
23959# Target-specific assembler checks.
23960
23961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23962$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23963gcc_cv_ld_static_dynamic=no
23964gcc_cv_ld_static_option='-Bstatic'
23965gcc_cv_ld_dynamic_option='-Bdynamic'
23966if test $in_tree_ld = yes ; then
23967  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
23968    gcc_cv_ld_static_dynamic=yes
23969  fi
23970elif test x$gcc_cv_ld != x; then
23971  # Check if linker supports -Bstatic/-Bdynamic option
23972  if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23973     && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23974      gcc_cv_ld_static_dynamic=yes
23975  else
23976    case "$target" in
23977      # AIX ld uses -b flags
23978      *-*-aix4.[23]* | *-*-aix[5-9]*)
23979	gcc_cv_ld_static_dynamic=yes
23980	gcc_cv_ld_static_option="-bstatic"
23981	gcc_cv_ld_dynamic_option="-bdynamic"
23982	;;
23983      # HP-UX ld uses -a flags to select between shared and archive.
23984      *-*-hpux*)
23985	if test x"$gnu_ld" = xno; then
23986	  gcc_cv_ld_static_dynamic=yes
23987	  gcc_cv_ld_static_option="-aarchive_shared"
23988	  gcc_cv_ld_dynamic_option="-adefault"
23989	fi
23990	;;
23991      # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23992      *-*-solaris2*)
23993        gcc_cv_ld_static_dynamic=yes
23994        ;;
23995    esac
23996  fi
23997fi
23998if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23999
24000$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24001
24002
24003cat >>confdefs.h <<_ACEOF
24004#define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24005_ACEOF
24006
24007
24008cat >>confdefs.h <<_ACEOF
24009#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24010_ACEOF
24011
24012fi
24013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24014$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24015
24016if test x"$demangler_in_ld" = xyes; then
24017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24018$as_echo_n "checking linker --demangle support... " >&6; }
24019  gcc_cv_ld_demangle=no
24020  if test $in_tree_ld = yes; then
24021    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 \
24022      gcc_cv_ld_demangle=yes
24023    fi
24024  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24025    # Check if the GNU linker supports --demangle option
24026    if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24027      gcc_cv_ld_demangle=yes
24028    fi
24029  fi
24030  if test x"$gcc_cv_ld_demangle" = xyes; then
24031
24032$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24033
24034  fi
24035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24036$as_echo "$gcc_cv_ld_demangle" >&6; }
24037fi
24038
24039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24040$as_echo_n "checking linker plugin support... " >&6; }
24041gcc_cv_lto_plugin=0
24042if test -f liblto_plugin.la; then
24043  save_ld_ver="$ld_ver"
24044  save_ld_vers_major="$ld_vers_major"
24045  save_ld_vers_minor="$ld_vers_minor"
24046  save_ld_is_gold="$ld_is_gold"
24047
24048  ld_is_gold=no
24049
24050  if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24051    ld_ver="GNU ld"
24052    # FIXME: ld_is_gold?
24053    ld_vers_major="$gcc_cv_gld_major_version"
24054    ld_vers_minor="$gcc_cv_gld_minor_version"
24055  else
24056    # Determine plugin linker version.
24057    # FIXME: Partial duplicate from above, generalize.
24058    ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24059    if echo "$ld_ver" | grep GNU > /dev/null; then
24060      if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24061        ld_is_gold=yes
24062        ld_vers=`echo $ld_ver | sed -n \
24063    	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24064      else
24065        ld_vers=`echo $ld_ver | sed -n \
24066    	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24067      fi
24068      ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24069      ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24070    fi
24071  fi
24072
24073  # Determine plugin support.
24074  if echo "$ld_ver" | grep GNU > /dev/null; then
24075    # Require GNU ld or gold 2.21+ for plugin support by default.
24076    if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24077      gcc_cv_lto_plugin=2
24078    # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24079    elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24080      gcc_cv_lto_plugin=1
24081    fi
24082  fi
24083
24084  ld_ver="$save_ld_ver"
24085  ld_vers_major="$save_ld_vers_major"
24086  ld_vers_minor="$save_ld_vers_minor"
24087  ld_is_gold="$save_ld_is_gold"
24088fi
24089
24090cat >>confdefs.h <<_ACEOF
24091#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24092_ACEOF
24093
24094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24095$as_echo "$gcc_cv_lto_plugin" >&6; }
24096
24097case "$target" in
24098  aarch64*-*-*)
24099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24100$as_echo_n "checking assembler for -mabi option... " >&6; }
24101if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24102  $as_echo_n "(cached) " >&6
24103else
24104  gcc_cv_as_aarch64_mabi=no
24105  if test x$gcc_cv_as != x; then
24106    $as_echo '.text' > conftest.s
24107    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24108  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24109  (eval $ac_try) 2>&5
24110  ac_status=$?
24111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24112  test $ac_status = 0; }; }
24113    then
24114	gcc_cv_as_aarch64_mabi=yes
24115    else
24116      echo "configure: failed program was" >&5
24117      cat conftest.s >&5
24118    fi
24119    rm -f conftest.o conftest.s
24120  fi
24121fi
24122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24123$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24124
24125    if test x$gcc_cv_as_aarch64_mabi = xyes; then
24126
24127$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24128
24129    else
24130      if test x$with_abi = xilp32; then
24131        as_fn_error "Assembler does not support -mabi=ilp32.\
24132                     Upgrade the Assembler." "$LINENO" 5
24133      fi
24134      if test x"$with_multilib_list" = xdefault; then
24135        TM_MULTILIB_CONFIG=lp64
24136      else
24137        aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24138        for aarch64_multilib in ${aarch64_multilibs}; do
24139          case ${aarch64_multilib} in
24140            ilp32)
24141              as_fn_error "Assembler does not support -mabi=ilp32.\
24142                            Upgrade the Assembler." "$LINENO" 5
24143              ;;
24144            *)
24145              ;;
24146          esac
24147        done
24148      fi
24149    fi
24150    # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24151    # Check whether --enable-fix-cortex-a53-835769 was given.
24152if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24153  enableval=$enable_fix_cortex_a53_835769;
24154        case $enableval in
24155          yes)
24156            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24157            ;;
24158          no)
24159            ;;
24160          *)
24161            as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24162  Valid choices are 'yes' and 'no'." "$LINENO" 5
24163            ;;
24164
24165        esac
24166
24167fi
24168
24169    # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24170    # Check whether --enable-fix-cortex-a53-843419 was given.
24171if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24172  enableval=$enable_fix_cortex_a53_843419;
24173        case $enableval in
24174          yes)
24175            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24176            ;;
24177          no)
24178            ;;
24179          *)
24180            as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24181  Valid choices are 'yes' and 'no'." "$LINENO" 5
24182            ;;
24183
24184        esac
24185
24186fi
24187
24188    ;;
24189
24190  # All TARGET_ABI_OSF targets.
24191  alpha*-*-linux* | alpha*-*-*bsd*)
24192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24193$as_echo_n "checking assembler for explicit relocation support... " >&6; }
24194if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24195  $as_echo_n "(cached) " >&6
24196else
24197  gcc_cv_as_alpha_explicit_relocs=no
24198    if test $in_tree_gas = yes; then
24199    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24200  then gcc_cv_as_alpha_explicit_relocs=yes
24201fi
24202  elif test x$gcc_cv_as != x; then
24203    $as_echo '	.set nomacro
24204	.text
24205	extbl	$3, $2, $3	!lituse_bytoff!1
24206	ldq	$2, a($29)	!literal!1
24207	ldq	$4, b($29)	!literal!2
24208	ldq_u	$3, 0($2)	!lituse_base!1
24209	ldq	$27, f($29)	!literal!5
24210	jsr	$26, ($27), f	!lituse_jsr!5
24211	ldah	$29, 0($26)	!gpdisp!3
24212	lda	$0, c($29)	!gprel
24213	ldah	$1, d($29)	!gprelhigh
24214	lda	$1, d($1)	!gprellow
24215	lda	$29, 0($29)	!gpdisp!3' > conftest.s
24216    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24217  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24218  (eval $ac_try) 2>&5
24219  ac_status=$?
24220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24221  test $ac_status = 0; }; }
24222    then
24223	gcc_cv_as_alpha_explicit_relocs=yes
24224    else
24225      echo "configure: failed program was" >&5
24226      cat conftest.s >&5
24227    fi
24228    rm -f conftest.o conftest.s
24229  fi
24230fi
24231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24232$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24233if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24234
24235$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24236
24237fi
24238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24239$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24240if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24241  $as_echo_n "(cached) " >&6
24242else
24243  gcc_cv_as_alpha_jsrdirect_relocs=no
24244    if test $in_tree_gas = yes; then
24245    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24246  then gcc_cv_as_alpha_jsrdirect_relocs=yes
24247fi
24248  elif test x$gcc_cv_as != x; then
24249    $as_echo '	.set nomacro
24250	.text
24251	ldq	$27, a($29)	!literal!1
24252	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
24253    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24254  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24255  (eval $ac_try) 2>&5
24256  ac_status=$?
24257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24258  test $ac_status = 0; }; }
24259    then
24260	gcc_cv_as_alpha_jsrdirect_relocs=yes
24261    else
24262      echo "configure: failed program was" >&5
24263      cat conftest.s >&5
24264    fi
24265    rm -f conftest.o conftest.s
24266  fi
24267fi
24268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24269$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24270if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24271
24272$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24273
24274fi
24275    ;;
24276
24277  avr-*-*)
24278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24279$as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24280if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24281  $as_echo_n "(cached) " >&6
24282else
24283  gcc_cv_as_avr_mlink_relax=no
24284  if test x$gcc_cv_as != x; then
24285    $as_echo '.text' > conftest.s
24286    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24287  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24288  (eval $ac_try) 2>&5
24289  ac_status=$?
24290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24291  test $ac_status = 0; }; }
24292    then
24293	gcc_cv_as_avr_mlink_relax=yes
24294    else
24295      echo "configure: failed program was" >&5
24296      cat conftest.s >&5
24297    fi
24298    rm -f conftest.o conftest.s
24299  fi
24300fi
24301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24302$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24303if test $gcc_cv_as_avr_mlink_relax = yes; then
24304
24305$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24306
24307fi
24308
24309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24310$as_echo_n "checking assembler for -mrmw option... " >&6; }
24311if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24312  $as_echo_n "(cached) " >&6
24313else
24314  gcc_cv_as_avr_mrmw=no
24315  if test x$gcc_cv_as != x; then
24316    $as_echo '.text' > conftest.s
24317    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24318  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24319  (eval $ac_try) 2>&5
24320  ac_status=$?
24321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24322  test $ac_status = 0; }; }
24323    then
24324	gcc_cv_as_avr_mrmw=yes
24325    else
24326      echo "configure: failed program was" >&5
24327      cat conftest.s >&5
24328    fi
24329    rm -f conftest.o conftest.s
24330  fi
24331fi
24332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24333$as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24334if test $gcc_cv_as_avr_mrmw = yes; then
24335
24336$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24337
24338fi
24339    ;;
24340
24341  cris-*-*)
24342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24343$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24344if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24345  $as_echo_n "(cached) " >&6
24346else
24347  gcc_cv_as_cris_no_mul_bug=no
24348    if test $in_tree_gas = yes; then
24349    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24350  then gcc_cv_as_cris_no_mul_bug=yes
24351fi
24352  elif test x$gcc_cv_as != x; then
24353    $as_echo '.text' > conftest.s
24354    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24355  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24356  (eval $ac_try) 2>&5
24357  ac_status=$?
24358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24359  test $ac_status = 0; }; }
24360    then
24361	gcc_cv_as_cris_no_mul_bug=yes
24362    else
24363      echo "configure: failed program was" >&5
24364      cat conftest.s >&5
24365    fi
24366    rm -f conftest.o conftest.s
24367  fi
24368fi
24369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24370$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24371if test $gcc_cv_as_cris_no_mul_bug = yes; then
24372
24373$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24374
24375fi
24376    ;;
24377
24378  sparc*-*-*)
24379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24380$as_echo_n "checking assembler for .register... " >&6; }
24381if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24382  $as_echo_n "(cached) " >&6
24383else
24384  gcc_cv_as_sparc_register_op=no
24385  if test x$gcc_cv_as != x; then
24386    $as_echo '.register %g2, #scratch' > conftest.s
24387    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24388  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24389  (eval $ac_try) 2>&5
24390  ac_status=$?
24391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24392  test $ac_status = 0; }; }
24393    then
24394	gcc_cv_as_sparc_register_op=yes
24395    else
24396      echo "configure: failed program was" >&5
24397      cat conftest.s >&5
24398    fi
24399    rm -f conftest.o conftest.s
24400  fi
24401fi
24402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24403$as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24404if test $gcc_cv_as_sparc_register_op = yes; then
24405
24406$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24407
24408fi
24409
24410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24411$as_echo_n "checking assembler for #nobits... " >&6; }
24412if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24413  $as_echo_n "(cached) " >&6
24414else
24415  gcc_cv_as_sparc_nobits=no
24416  if test x$gcc_cv_as != x; then
24417    $as_echo '.section "nobits",#alloc,#write,#nobits
24418       .section "progbits",#alloc,#write,#progbits' > conftest.s
24419    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24420  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24421  (eval $ac_try) 2>&5
24422  ac_status=$?
24423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24424  test $ac_status = 0; }; }
24425    then
24426	gcc_cv_as_sparc_nobits=yes
24427    else
24428      echo "configure: failed program was" >&5
24429      cat conftest.s >&5
24430    fi
24431    rm -f conftest.o conftest.s
24432  fi
24433fi
24434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24435$as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24436
24437
24438cat >>confdefs.h <<_ACEOF
24439#define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24440_ACEOF
24441
24442
24443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24444$as_echo_n "checking assembler for -relax option... " >&6; }
24445if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24446  $as_echo_n "(cached) " >&6
24447else
24448  gcc_cv_as_sparc_relax=no
24449  if test x$gcc_cv_as != x; then
24450    $as_echo '.text' > conftest.s
24451    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24452  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24453  (eval $ac_try) 2>&5
24454  ac_status=$?
24455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24456  test $ac_status = 0; }; }
24457    then
24458	gcc_cv_as_sparc_relax=yes
24459    else
24460      echo "configure: failed program was" >&5
24461      cat conftest.s >&5
24462    fi
24463    rm -f conftest.o conftest.s
24464  fi
24465fi
24466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24467$as_echo "$gcc_cv_as_sparc_relax" >&6; }
24468if test $gcc_cv_as_sparc_relax = yes; then
24469
24470$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24471
24472fi
24473
24474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24475$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24476if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24477  $as_echo_n "(cached) " >&6
24478else
24479  gcc_cv_as_sparc_gotdata_op=no
24480  if test x$gcc_cv_as != x; then
24481    $as_echo '.text
24482.align 4
24483foo:
24484	nop
24485bar:
24486	sethi %gdop_hix22(foo), %g1
24487	xor    %g1, %gdop_lox10(foo), %g1
24488	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24489    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24490  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24491  (eval $ac_try) 2>&5
24492  ac_status=$?
24493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24494  test $ac_status = 0; }; }
24495    then
24496	if test x$gcc_cv_ld != x \
24497       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24498         if test x$gcc_cv_objdump != x; then
24499           if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24500              | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24501	       gcc_cv_as_sparc_gotdata_op=no
24502           else
24503	       gcc_cv_as_sparc_gotdata_op=yes
24504           fi
24505         fi
24506       fi
24507       rm -f conftest
24508    else
24509      echo "configure: failed program was" >&5
24510      cat conftest.s >&5
24511    fi
24512    rm -f conftest.o conftest.s
24513  fi
24514fi
24515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24516$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24517if test $gcc_cv_as_sparc_gotdata_op = yes; then
24518
24519$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24520
24521fi
24522
24523    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24524$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24525if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24526  $as_echo_n "(cached) " >&6
24527else
24528  gcc_cv_as_sparc_ua_pcrel=no
24529  if test x$gcc_cv_as != x; then
24530    $as_echo '.text
24531foo:
24532	nop
24533.data
24534.align 4
24535.byte 0
24536.uaword %r_disp32(foo)' > conftest.s
24537    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24538  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24539  (eval $ac_try) 2>&5
24540  ac_status=$?
24541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24542  test $ac_status = 0; }; }
24543    then
24544	if test x$gcc_cv_ld != x \
24545       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24546	 gcc_cv_as_sparc_ua_pcrel=yes
24547       fi
24548       rm -f conftest
24549    else
24550      echo "configure: failed program was" >&5
24551      cat conftest.s >&5
24552    fi
24553    rm -f conftest.o conftest.s
24554  fi
24555fi
24556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24557$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24558if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24559
24560$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24561
24562
24563      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24564$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24565if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24566  $as_echo_n "(cached) " >&6
24567else
24568  gcc_cv_as_sparc_ua_pcrel_hidden=no
24569  if test x$gcc_cv_as != x; then
24570    $as_echo '.data
24571.align 4
24572.byte 0x31
24573.uaword %r_disp32(foo)
24574.byte 0x32, 0x33, 0x34
24575.global foo
24576.hidden foo
24577foo:
24578.skip 4' > conftest.s
24579    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24580  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24581  (eval $ac_try) 2>&5
24582  ac_status=$?
24583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584  test $ac_status = 0; }; }
24585    then
24586	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24587	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24588	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24589	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
24590	    if $gcc_cv_objdump -R conftest 2> /dev/null \
24591	       | grep 'DISP32' > /dev/null 2>&1; then
24592		:
24593	    else
24594		gcc_cv_as_sparc_ua_pcrel_hidden=yes
24595	    fi
24596	 fi
24597	 rm -f conftest
24598    else
24599      echo "configure: failed program was" >&5
24600      cat conftest.s >&5
24601    fi
24602    rm -f conftest.o conftest.s
24603  fi
24604fi
24605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24606$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24607if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24608
24609$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24610
24611fi
24612
24613fi # unaligned pcrel relocs
24614
24615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24616$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24617if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24618  $as_echo_n "(cached) " >&6
24619else
24620  gcc_cv_as_sparc_offsetable_lo10=no
24621  if test x$gcc_cv_as != x; then
24622    $as_echo '.text
24623	or %g1, %lo(ab) + 12, %g1
24624	or %g1, %lo(ab + 12), %g1' > conftest.s
24625    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24626  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24627  (eval $ac_try) 2>&5
24628  ac_status=$?
24629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24630  test $ac_status = 0; }; }
24631    then
24632	if test x$gcc_cv_objdump != x \
24633       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24634          | grep ' 82106000 82106000' > /dev/null 2>&1; then
24635	 gcc_cv_as_sparc_offsetable_lo10=yes
24636       fi
24637    else
24638      echo "configure: failed program was" >&5
24639      cat conftest.s >&5
24640    fi
24641    rm -f conftest.o conftest.s
24642  fi
24643fi
24644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24645$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24646if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24647
24648$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24649
24650fi
24651
24652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24653$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24654if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24655  $as_echo_n "(cached) " >&6
24656else
24657  gcc_cv_as_sparc_fmaf=no
24658  if test x$gcc_cv_as != x; then
24659    $as_echo '.text
24660       .register %g2, #scratch
24661       .register %g3, #scratch
24662       .align 4
24663       fmaddd %f0, %f2, %f4, %f6
24664       addxccc %g1, %g2, %g3
24665       fsrl32 %f2, %f4, %f8
24666       fnaddd %f10, %f12, %f14' > conftest.s
24667    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24668  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24669  (eval $ac_try) 2>&5
24670  ac_status=$?
24671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24672  test $ac_status = 0; }; }
24673    then
24674	gcc_cv_as_sparc_fmaf=yes
24675    else
24676      echo "configure: failed program was" >&5
24677      cat conftest.s >&5
24678    fi
24679    rm -f conftest.o conftest.s
24680  fi
24681fi
24682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24683$as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24684if test $gcc_cv_as_sparc_fmaf = yes; then
24685
24686$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24687
24688fi
24689
24690    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24691$as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24692if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24693  $as_echo_n "(cached) " >&6
24694else
24695  gcc_cv_as_sparc_sparc4=no
24696  if test x$gcc_cv_as != x; then
24697    $as_echo '.text
24698       .register %g2, #scratch
24699       .register %g3, #scratch
24700       .align 4
24701       cxbe %g2, %g3, 1f
247021:     cwbneg %g2, %g3, 1f
247031:     sha1
24704       md5
24705       aes_kexpand0 %f4, %f6, %f8
24706       des_round %f38, %f40, %f42, %f44
24707       camellia_f %f54, %f56, %f58, %f60
24708       kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24709    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24710  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24711  (eval $ac_try) 2>&5
24712  ac_status=$?
24713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24714  test $ac_status = 0; }; }
24715    then
24716	gcc_cv_as_sparc_sparc4=yes
24717    else
24718      echo "configure: failed program was" >&5
24719      cat conftest.s >&5
24720    fi
24721    rm -f conftest.o conftest.s
24722  fi
24723fi
24724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24725$as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24726if test $gcc_cv_as_sparc_sparc4 = yes; then
24727
24728$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24729
24730fi
24731
24732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24733$as_echo_n "checking assembler for LEON instructions... " >&6; }
24734if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24735  $as_echo_n "(cached) " >&6
24736else
24737  gcc_cv_as_sparc_leon=no
24738  if test x$gcc_cv_as != x; then
24739    $as_echo '.text
24740       .register %g2, #scratch
24741       .register %g3, #scratch
24742       .align 4
24743       smac %g2, %g3, %g1
24744       umac %g2, %g3, %g1
24745       casa [%g2] 0xb, %g3, %g1' > conftest.s
24746    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24747  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748  (eval $ac_try) 2>&5
24749  ac_status=$?
24750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751  test $ac_status = 0; }; }
24752    then
24753	gcc_cv_as_sparc_leon=yes
24754    else
24755      echo "configure: failed program was" >&5
24756      cat conftest.s >&5
24757    fi
24758    rm -f conftest.o conftest.s
24759  fi
24760fi
24761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24762$as_echo "$gcc_cv_as_sparc_leon" >&6; }
24763if test $gcc_cv_as_sparc_leon = yes; then
24764
24765$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24766
24767fi
24768    ;;
24769
24770  i[34567]86-*-* | x86_64-*-*)
24771    case $target_os in
24772      cygwin*)
24773	# Full C++ conformance when using a shared libstdc++-v3 requires some
24774	# support from the Cygwin DLL, which in more recent versions exports
24775	# wrappers to aid in interposing and redirecting operators new, delete,
24776	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24777	# are configuring for a version of Cygwin that exports the wrappers.
24778	if test x$host = x$target && test x$host_cpu = xi686; then
24779	  ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24780if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24781  gcc_ac_cygwin_dll_wrappers=yes
24782else
24783  gcc_ac_cygwin_dll_wrappers=no
24784fi
24785
24786	else
24787	  # Can't check presence of libc functions during cross-compile, so
24788	  # we just have to assume we're building for an up-to-date target.
24789	  gcc_ac_cygwin_dll_wrappers=yes
24790	fi
24791
24792cat >>confdefs.h <<_ACEOF
24793#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24794_ACEOF
24795
24796    esac
24797    case $target_os in
24798      cygwin* | pe | mingw32* | interix*)
24799	# Recent binutils allows the three-operand form of ".comm" on PE.  This
24800	# definition is used unconditionally to initialise the default state of
24801	# the target option variable that governs usage of the feature.
24802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24803$as_echo_n "checking assembler for .comm with alignment... " >&6; }
24804if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24805  $as_echo_n "(cached) " >&6
24806else
24807  gcc_cv_as_comm_has_align=no
24808    if test $in_tree_gas = yes; then
24809    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24810  then gcc_cv_as_comm_has_align=yes
24811fi
24812  elif test x$gcc_cv_as != x; then
24813    $as_echo '.comm foo,1,32' > conftest.s
24814    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24815  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24816  (eval $ac_try) 2>&5
24817  ac_status=$?
24818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24819  test $ac_status = 0; }; }
24820    then
24821	gcc_cv_as_comm_has_align=yes
24822    else
24823      echo "configure: failed program was" >&5
24824      cat conftest.s >&5
24825    fi
24826    rm -f conftest.o conftest.s
24827  fi
24828fi
24829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24830$as_echo "$gcc_cv_as_comm_has_align" >&6; }
24831
24832
24833cat >>confdefs.h <<_ACEOF
24834#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24835_ACEOF
24836
24837	# Used for DWARF 2 in PE
24838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24839$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24840if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24841  $as_echo_n "(cached) " >&6
24842else
24843  gcc_cv_as_ix86_pe_secrel32=no
24844    if test $in_tree_gas = yes; then
24845    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24846  then gcc_cv_as_ix86_pe_secrel32=yes
24847fi
24848  elif test x$gcc_cv_as != x; then
24849    $as_echo '.text
24850foo:	nop
24851.data
24852	.secrel32 foo' > conftest.s
24853    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24854  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24855  (eval $ac_try) 2>&5
24856  ac_status=$?
24857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24858  test $ac_status = 0; }; }
24859    then
24860	if test x$gcc_cv_ld != x \
24861	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24862	     gcc_cv_as_ix86_pe_secrel32=yes
24863	   fi
24864	   rm -f conftest
24865    else
24866      echo "configure: failed program was" >&5
24867      cat conftest.s >&5
24868    fi
24869    rm -f conftest.o conftest.s
24870  fi
24871fi
24872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24873$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24874if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24875
24876$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24877
24878fi
24879	# Test if the assembler supports the extended form of the .section
24880	# directive that specifies section alignment.  LTO support uses this,
24881	# but normally only after installation, so we warn but don't fail the
24882	# configure if LTO is enabled but the assembler does not support it.
24883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24884$as_echo_n "checking assembler for .section with alignment... " >&6; }
24885if test "${gcc_cv_as_section_has_align+set}" = set; then :
24886  $as_echo_n "(cached) " >&6
24887else
24888  gcc_cv_as_section_has_align=no
24889    if test $in_tree_gas = yes; then
24890    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24891  then gcc_cv_as_section_has_align=yes
24892fi
24893  elif test x$gcc_cv_as != x; then
24894    $as_echo '.section lto_test,"dr0"' > conftest.s
24895    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24896  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24897  (eval $ac_try) 2>&5
24898  ac_status=$?
24899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24900  test $ac_status = 0; }; }
24901    then
24902	gcc_cv_as_section_has_align=yes
24903    else
24904      echo "configure: failed program was" >&5
24905      cat conftest.s >&5
24906    fi
24907    rm -f conftest.o conftest.s
24908  fi
24909fi
24910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24911$as_echo "$gcc_cv_as_section_has_align" >&6; }
24912
24913	if test x$gcc_cv_as_section_has_align != xyes; then
24914	  case ",$enable_languages," in
24915	    *,lto,*)
24916	      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
24917$as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
24918	      ;;
24919	  esac
24920	fi
24921	;;
24922    esac
24923
24924    # Test if the assembler supports the section flag 'e' for specifying
24925    # an excluded section.
24926    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24927$as_echo_n "checking assembler for .section with e... " >&6; }
24928if test "${gcc_cv_as_section_has_e+set}" = set; then :
24929  $as_echo_n "(cached) " >&6
24930else
24931  gcc_cv_as_section_has_e=no
24932    if test $in_tree_gas = yes; then
24933    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24934  then gcc_cv_as_section_has_e=yes
24935fi
24936  elif test x$gcc_cv_as != x; then
24937    $as_echo '.section foo1,"e"
24938.byte 0,0,0,0' > conftest.s
24939    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24940  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24941  (eval $ac_try) 2>&5
24942  ac_status=$?
24943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24944  test $ac_status = 0; }; }
24945    then
24946	gcc_cv_as_section_has_e=yes
24947    else
24948      echo "configure: failed program was" >&5
24949      cat conftest.s >&5
24950    fi
24951    rm -f conftest.o conftest.s
24952  fi
24953fi
24954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24955$as_echo "$gcc_cv_as_section_has_e" >&6; }
24956
24957
24958cat >>confdefs.h <<_ACEOF
24959#define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24960_ACEOF
24961
24962
24963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24964$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24965if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24966  $as_echo_n "(cached) " >&6
24967else
24968  gcc_cv_as_ix86_filds=no
24969  if test x$gcc_cv_as != x; then
24970    $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
24971    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24972  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973  (eval $ac_try) 2>&5
24974  ac_status=$?
24975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976  test $ac_status = 0; }; }
24977    then
24978	gcc_cv_as_ix86_filds=yes
24979    else
24980      echo "configure: failed program was" >&5
24981      cat conftest.s >&5
24982    fi
24983    rm -f conftest.o conftest.s
24984  fi
24985fi
24986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24987$as_echo "$gcc_cv_as_ix86_filds" >&6; }
24988if test $gcc_cv_as_ix86_filds = yes; then
24989
24990$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24991
24992fi
24993
24994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24995$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24996if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24997  $as_echo_n "(cached) " >&6
24998else
24999  gcc_cv_as_ix86_fildq=no
25000  if test x$gcc_cv_as != x; then
25001    $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25002    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25003  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25004  (eval $ac_try) 2>&5
25005  ac_status=$?
25006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25007  test $ac_status = 0; }; }
25008    then
25009	gcc_cv_as_ix86_fildq=yes
25010    else
25011      echo "configure: failed program was" >&5
25012      cat conftest.s >&5
25013    fi
25014    rm -f conftest.o conftest.s
25015  fi
25016fi
25017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25018$as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25019if test $gcc_cv_as_ix86_fildq = yes; then
25020
25021$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25022
25023fi
25024
25025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25026$as_echo_n "checking assembler for cmov syntax... " >&6; }
25027if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25028  $as_echo_n "(cached) " >&6
25029else
25030  gcc_cv_as_ix86_cmov_sun_syntax=no
25031  if test x$gcc_cv_as != x; then
25032    $as_echo 'cmovl.l %edx, %eax' > conftest.s
25033    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25034  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035  (eval $ac_try) 2>&5
25036  ac_status=$?
25037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038  test $ac_status = 0; }; }
25039    then
25040	gcc_cv_as_ix86_cmov_sun_syntax=yes
25041    else
25042      echo "configure: failed program was" >&5
25043      cat conftest.s >&5
25044    fi
25045    rm -f conftest.o conftest.s
25046  fi
25047fi
25048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25049$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25050if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25051
25052$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25053
25054fi
25055
25056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25057$as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25058if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25059  $as_echo_n "(cached) " >&6
25060else
25061  gcc_cv_as_ix86_ffreep=no
25062  if test x$gcc_cv_as != x; then
25063    $as_echo 'ffreep %st(1)' > conftest.s
25064    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25065  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25066  (eval $ac_try) 2>&5
25067  ac_status=$?
25068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25069  test $ac_status = 0; }; }
25070    then
25071	gcc_cv_as_ix86_ffreep=yes
25072    else
25073      echo "configure: failed program was" >&5
25074      cat conftest.s >&5
25075    fi
25076    rm -f conftest.o conftest.s
25077  fi
25078fi
25079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25080$as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25081if test $gcc_cv_as_ix86_ffreep = yes; then
25082
25083$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25084
25085fi
25086
25087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25088$as_echo_n "checking assembler for .quad directive... " >&6; }
25089if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25090  $as_echo_n "(cached) " >&6
25091else
25092  gcc_cv_as_ix86_quad=no
25093  if test x$gcc_cv_as != x; then
25094    $as_echo '.quad 0' > conftest.s
25095    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25096  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25097  (eval $ac_try) 2>&5
25098  ac_status=$?
25099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25100  test $ac_status = 0; }; }
25101    then
25102	gcc_cv_as_ix86_quad=yes
25103    else
25104      echo "configure: failed program was" >&5
25105      cat conftest.s >&5
25106    fi
25107    rm -f conftest.o conftest.s
25108  fi
25109fi
25110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25111$as_echo "$gcc_cv_as_ix86_quad" >&6; }
25112if test $gcc_cv_as_ix86_quad = yes; then
25113
25114$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25115
25116fi
25117
25118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25119$as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25120if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25121  $as_echo_n "(cached) " >&6
25122else
25123  gcc_cv_as_ix86_sahf=no
25124  if test x$gcc_cv_as != x; then
25125    $as_echo '.code64
25126       sahf' > conftest.s
25127    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25128  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129  (eval $ac_try) 2>&5
25130  ac_status=$?
25131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132  test $ac_status = 0; }; }
25133    then
25134	gcc_cv_as_ix86_sahf=yes
25135    else
25136      echo "configure: failed program was" >&5
25137      cat conftest.s >&5
25138    fi
25139    rm -f conftest.o conftest.s
25140  fi
25141fi
25142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25143$as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25144if test $gcc_cv_as_ix86_sahf = yes; then
25145
25146$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25147
25148fi
25149
25150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25151$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25152if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25153  $as_echo_n "(cached) " >&6
25154else
25155  gcc_cv_as_ix86_interunit_movq=no
25156  if test x$gcc_cv_as != x; then
25157    $as_echo '.code64
25158       movq %mm0, %rax
25159       movq %rax, %xmm0' > conftest.s
25160    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25161  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162  (eval $ac_try) 2>&5
25163  ac_status=$?
25164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165  test $ac_status = 0; }; }
25166    then
25167	gcc_cv_as_ix86_interunit_movq=yes
25168    else
25169      echo "configure: failed program was" >&5
25170      cat conftest.s >&5
25171    fi
25172    rm -f conftest.o conftest.s
25173  fi
25174fi
25175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25176$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25177
25178
25179cat >>confdefs.h <<_ACEOF
25180#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25181_ACEOF
25182
25183
25184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25185$as_echo_n "checking assembler for hle prefixes... " >&6; }
25186if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25187  $as_echo_n "(cached) " >&6
25188else
25189  gcc_cv_as_ix86_hle=no
25190  if test x$gcc_cv_as != x; then
25191    $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25192    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25193  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25194  (eval $ac_try) 2>&5
25195  ac_status=$?
25196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25197  test $ac_status = 0; }; }
25198    then
25199	gcc_cv_as_ix86_hle=yes
25200    else
25201      echo "configure: failed program was" >&5
25202      cat conftest.s >&5
25203    fi
25204    rm -f conftest.o conftest.s
25205  fi
25206fi
25207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25208$as_echo "$gcc_cv_as_ix86_hle" >&6; }
25209if test $gcc_cv_as_ix86_hle = yes; then
25210
25211$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25212
25213fi
25214
25215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25216$as_echo_n "checking assembler for swap suffix... " >&6; }
25217if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25218  $as_echo_n "(cached) " >&6
25219else
25220  gcc_cv_as_ix86_swap=no
25221  if test x$gcc_cv_as != x; then
25222    $as_echo 'movl.s %esp, %ebp' > conftest.s
25223    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25224  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25225  (eval $ac_try) 2>&5
25226  ac_status=$?
25227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25228  test $ac_status = 0; }; }
25229    then
25230	gcc_cv_as_ix86_swap=yes
25231    else
25232      echo "configure: failed program was" >&5
25233      cat conftest.s >&5
25234    fi
25235    rm -f conftest.o conftest.s
25236  fi
25237fi
25238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25239$as_echo "$gcc_cv_as_ix86_swap" >&6; }
25240if test $gcc_cv_as_ix86_swap = yes; then
25241
25242$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25243
25244fi
25245
25246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25247$as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25248if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25249  $as_echo_n "(cached) " >&6
25250else
25251  gcc_cv_as_ix86_diff_sect_delta=no
25252  if test x$gcc_cv_as != x; then
25253    $as_echo '.section .rodata
25254.L1:
25255        .long .L2-.L1
25256        .long .L3-.L1
25257        .text
25258.L3:    nop
25259.L2:    nop' > conftest.s
25260    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25261  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25262  (eval $ac_try) 2>&5
25263  ac_status=$?
25264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25265  test $ac_status = 0; }; }
25266    then
25267	gcc_cv_as_ix86_diff_sect_delta=yes
25268    else
25269      echo "configure: failed program was" >&5
25270      cat conftest.s >&5
25271    fi
25272    rm -f conftest.o conftest.s
25273  fi
25274fi
25275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25276$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25277if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25278
25279$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25280
25281fi
25282
25283    # These two are used unconditionally by i386.[ch]; it is to be defined
25284    # to 1 if the feature is present, 0 otherwise.
25285    as_ix86_gotoff_in_data_opt=
25286    if test x$gas = xyes; then
25287      as_ix86_gotoff_in_data_opt="--32"
25288    fi
25289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25290$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25291if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25292  $as_echo_n "(cached) " >&6
25293else
25294  gcc_cv_as_ix86_gotoff_in_data=no
25295    if test $in_tree_gas = yes; then
25296    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25297  then gcc_cv_as_ix86_gotoff_in_data=yes
25298fi
25299  elif test x$gcc_cv_as != x; then
25300    $as_echo '	.text
25301.L0:
25302	nop
25303	.data
25304	.long .L0@GOTOFF' > conftest.s
25305    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25306  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25307  (eval $ac_try) 2>&5
25308  ac_status=$?
25309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25310  test $ac_status = 0; }; }
25311    then
25312	gcc_cv_as_ix86_gotoff_in_data=yes
25313    else
25314      echo "configure: failed program was" >&5
25315      cat conftest.s >&5
25316    fi
25317    rm -f conftest.o conftest.s
25318  fi
25319fi
25320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25321$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25322
25323
25324cat >>confdefs.h <<_ACEOF
25325#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25326_ACEOF
25327
25328
25329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25330$as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25331if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25332  $as_echo_n "(cached) " >&6
25333else
25334  gcc_cv_as_ix86_rep_lock_prefix=no
25335  if test x$gcc_cv_as != x; then
25336    $as_echo 'rep movsl
25337	 rep ret
25338	 rep nop
25339	 rep bsf %ecx, %eax
25340	 rep bsr %ecx, %eax
25341	 lock addl %edi, (%eax,%esi)
25342	 lock orl $0, (%esp)' > conftest.s
25343    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25344  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25345  (eval $ac_try) 2>&5
25346  ac_status=$?
25347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25348  test $ac_status = 0; }; }
25349    then
25350	gcc_cv_as_ix86_rep_lock_prefix=yes
25351    else
25352      echo "configure: failed program was" >&5
25353      cat conftest.s >&5
25354    fi
25355    rm -f conftest.o conftest.s
25356  fi
25357fi
25358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25359$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25360if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25361
25362$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25363
25364fi
25365
25366    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25367$as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25368if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25369  $as_echo_n "(cached) " >&6
25370else
25371  gcc_cv_as_ix86_ud2=no
25372  if test x$gcc_cv_as != x; then
25373    $as_echo 'ud2' > conftest.s
25374    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25375  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25376  (eval $ac_try) 2>&5
25377  ac_status=$?
25378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25379  test $ac_status = 0; }; }
25380    then
25381	gcc_cv_as_ix86_ud2=yes
25382    else
25383      echo "configure: failed program was" >&5
25384      cat conftest.s >&5
25385    fi
25386    rm -f conftest.o conftest.s
25387  fi
25388fi
25389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25390$as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25391if test $gcc_cv_as_ix86_ud2 = yes; then
25392
25393$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25394
25395fi
25396
25397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25398$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25399if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25400  $as_echo_n "(cached) " >&6
25401else
25402  gcc_cv_as_ix86_tlsgdplt=no
25403  if test x$gcc_cv_as != x; then
25404    $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
25405    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25406  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25407  (eval $ac_try) 2>&5
25408  ac_status=$?
25409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25410  test $ac_status = 0; }; }
25411    then
25412	if test x$gcc_cv_ld != x \
25413	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25414	   gcc_cv_as_ix86_tlsgdplt=yes
25415	 fi
25416	 rm -f conftest
25417    else
25418      echo "configure: failed program was" >&5
25419      cat conftest.s >&5
25420    fi
25421    rm -f conftest.o conftest.s
25422  fi
25423fi
25424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25425$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25426if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25427
25428$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25429
25430fi
25431
25432    conftest_s='
25433	.section .tdata,"aw'$tls_section_flag'",@progbits
25434tls_ld:
25435	.section .text,"ax",@progbits
25436	 call    tls_ld@tlsldmplt'
25437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25438$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25439if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25440  $as_echo_n "(cached) " >&6
25441else
25442  gcc_cv_as_ix86_tlsldmplt=no
25443  if test x$gcc_cv_as != x; then
25444    $as_echo "$conftest_s" > conftest.s
25445    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25446  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447  (eval $ac_try) 2>&5
25448  ac_status=$?
25449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450  test $ac_status = 0; }; }
25451    then
25452	if test x$gcc_cv_ld != x \
25453	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25454	   gcc_cv_as_ix86_tlsldmplt=yes
25455	 fi
25456	 rm -f conftest
25457    else
25458      echo "configure: failed program was" >&5
25459      cat conftest.s >&5
25460    fi
25461    rm -f conftest.o conftest.s
25462  fi
25463fi
25464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25465$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25466
25467
25468cat >>confdefs.h <<_ACEOF
25469#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25470_ACEOF
25471
25472
25473    # Enforce 32-bit output with gas and gld.
25474    if test x$gas = xyes; then
25475      as_ix86_tls_ldm_opt="--32"
25476    fi
25477    if echo "$ld_ver" | grep GNU > /dev/null; then
25478      if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25479        ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25480      else
25481        ld_ix86_tls_ldm_opt="-melf_i386"
25482      fi
25483    fi
25484    conftest_s='
25485	.section .text,"ax",@progbits
25486        .globl  _start
25487        .type   _start, @function
25488_start:
25489	leal	value@tlsldm(%ebx), %eax
25490	call	___tls_get_addr@plt
25491
25492        .section .tdata,"aw'$tls_section_flag'",@progbits
25493        .type	value, @object
25494value:'
25495    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25496$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25497if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25498  $as_echo_n "(cached) " >&6
25499else
25500  gcc_cv_as_ix86_tlsldm=no
25501  if test x$gcc_cv_as != x; then
25502    $as_echo "$conftest_s" > conftest.s
25503    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25504  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25505  (eval $ac_try) 2>&5
25506  ac_status=$?
25507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25508  test $ac_status = 0; }; }
25509    then
25510	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25511	    && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25512	   if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25513	      || dis conftest 2>/dev/null | grep nop > /dev/null; then
25514	     gcc_cv_as_ix86_tlsldm=yes
25515	   fi
25516	 fi
25517	 rm -f conftest
25518    else
25519      echo "configure: failed program was" >&5
25520      cat conftest.s >&5
25521    fi
25522    rm -f conftest.o conftest.s
25523  fi
25524fi
25525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25526$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25527
25528
25529cat >>confdefs.h <<_ACEOF
25530#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25531_ACEOF
25532
25533
25534    ;;
25535
25536  ia64*-*-*)
25537    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25538$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25539if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25540  $as_echo_n "(cached) " >&6
25541else
25542  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25543    if test $in_tree_gas = yes; then
25544    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25545  then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25546fi
25547  elif test x$gcc_cv_as != x; then
25548    $as_echo '	.text
25549	addl r15 = @ltoffx(x#), gp
25550	;;
25551	ld8.mov r16 = [r15], x#' > conftest.s
25552    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25553  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25554  (eval $ac_try) 2>&5
25555  ac_status=$?
25556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557  test $ac_status = 0; }; }
25558    then
25559	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25560    else
25561      echo "configure: failed program was" >&5
25562      cat conftest.s >&5
25563    fi
25564    rm -f conftest.o conftest.s
25565  fi
25566fi
25567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25568$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25569if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25570
25571$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25572
25573fi
25574
25575    ;;
25576
25577  powerpc*-*-*)
25578    case $target in
25579      *-*-aix*) conftest_s='	.machine "pwr5"
25580	.csect .text[PR]
25581	mfcr 3,128';;
25582      *-*-darwin*)
25583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25584$as_echo_n "checking assembler for .machine directive support... " >&6; }
25585if test "${gcc_cv_as_machine_directive+set}" = set; then :
25586  $as_echo_n "(cached) " >&6
25587else
25588  gcc_cv_as_machine_directive=no
25589  if test x$gcc_cv_as != x; then
25590    $as_echo '	.machine ppc7400' > conftest.s
25591    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25592  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593  (eval $ac_try) 2>&5
25594  ac_status=$?
25595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596  test $ac_status = 0; }; }
25597    then
25598	gcc_cv_as_machine_directive=yes
25599    else
25600      echo "configure: failed program was" >&5
25601      cat conftest.s >&5
25602    fi
25603    rm -f conftest.o conftest.s
25604  fi
25605fi
25606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25607$as_echo "$gcc_cv_as_machine_directive" >&6; }
25608
25609	if test x$gcc_cv_as_machine_directive != xyes; then
25610	  echo "*** This target requires an assembler supporting \".machine\"" >&2
25611	  echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25612	  test x$build = x$target && exit 1
25613	fi
25614	conftest_s='	.text
25615	mfcr r3,128';;
25616      *) conftest_s='	.machine power4
25617	.text
25618	mfcr 3,128';;
25619    esac
25620
25621    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25622$as_echo_n "checking assembler for mfcr field support... " >&6; }
25623if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25624  $as_echo_n "(cached) " >&6
25625else
25626  gcc_cv_as_powerpc_mfcrf=no
25627    if test $in_tree_gas = yes; then
25628    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25629  then gcc_cv_as_powerpc_mfcrf=yes
25630fi
25631  elif test x$gcc_cv_as != x; then
25632    $as_echo "$conftest_s" > conftest.s
25633    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25634  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25635  (eval $ac_try) 2>&5
25636  ac_status=$?
25637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25638  test $ac_status = 0; }; }
25639    then
25640	gcc_cv_as_powerpc_mfcrf=yes
25641    else
25642      echo "configure: failed program was" >&5
25643      cat conftest.s >&5
25644    fi
25645    rm -f conftest.o conftest.s
25646  fi
25647fi
25648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25649$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25650if test $gcc_cv_as_powerpc_mfcrf = yes; then
25651
25652$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25653
25654fi
25655
25656    case $target in
25657      *-*-aix*) conftest_s='	.machine "pwr5"
25658	.csect .text[PR]
25659	popcntb 3,3';;
25660      *) conftest_s='	.machine power5
25661	.text
25662	popcntb 3,3';;
25663    esac
25664
25665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25666$as_echo_n "checking assembler for popcntb support... " >&6; }
25667if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25668  $as_echo_n "(cached) " >&6
25669else
25670  gcc_cv_as_powerpc_popcntb=no
25671    if test $in_tree_gas = yes; then
25672    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25673  then gcc_cv_as_powerpc_popcntb=yes
25674fi
25675  elif test x$gcc_cv_as != x; then
25676    $as_echo "$conftest_s" > conftest.s
25677    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25678  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25679  (eval $ac_try) 2>&5
25680  ac_status=$?
25681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25682  test $ac_status = 0; }; }
25683    then
25684	gcc_cv_as_powerpc_popcntb=yes
25685    else
25686      echo "configure: failed program was" >&5
25687      cat conftest.s >&5
25688    fi
25689    rm -f conftest.o conftest.s
25690  fi
25691fi
25692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25693$as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25694if test $gcc_cv_as_powerpc_popcntb = yes; then
25695
25696$as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25697
25698fi
25699
25700    case $target in
25701      *-*-aix*) conftest_s='	.machine "pwr5x"
25702	.csect .text[PR]
25703	frin 1,1';;
25704      *) conftest_s='	.machine power5
25705	.text
25706	frin 1,1';;
25707    esac
25708
25709    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25710$as_echo_n "checking assembler for fp round support... " >&6; }
25711if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25712  $as_echo_n "(cached) " >&6
25713else
25714  gcc_cv_as_powerpc_fprnd=no
25715    if test $in_tree_gas = yes; then
25716    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25717  then gcc_cv_as_powerpc_fprnd=yes
25718fi
25719  elif test x$gcc_cv_as != x; then
25720    $as_echo "$conftest_s" > conftest.s
25721    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25722  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25723  (eval $ac_try) 2>&5
25724  ac_status=$?
25725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25726  test $ac_status = 0; }; }
25727    then
25728	gcc_cv_as_powerpc_fprnd=yes
25729    else
25730      echo "configure: failed program was" >&5
25731      cat conftest.s >&5
25732    fi
25733    rm -f conftest.o conftest.s
25734  fi
25735fi
25736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25737$as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25738if test $gcc_cv_as_powerpc_fprnd = yes; then
25739
25740$as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25741
25742fi
25743
25744    case $target in
25745      *-*-aix*) conftest_s='	.machine "pwr6"
25746	.csect .text[PR]
25747	mffgpr 1,3';;
25748      *) conftest_s='	.machine power6
25749	.text
25750	mffgpr 1,3';;
25751    esac
25752
25753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25754$as_echo_n "checking assembler for move fp gpr support... " >&6; }
25755if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25756  $as_echo_n "(cached) " >&6
25757else
25758  gcc_cv_as_powerpc_mfpgpr=no
25759    if test $in_tree_gas = yes; then
25760    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25761  then gcc_cv_as_powerpc_mfpgpr=yes
25762fi
25763  elif test x$gcc_cv_as != x; then
25764    $as_echo "$conftest_s" > conftest.s
25765    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25766  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25767  (eval $ac_try) 2>&5
25768  ac_status=$?
25769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25770  test $ac_status = 0; }; }
25771    then
25772	gcc_cv_as_powerpc_mfpgpr=yes
25773    else
25774      echo "configure: failed program was" >&5
25775      cat conftest.s >&5
25776    fi
25777    rm -f conftest.o conftest.s
25778  fi
25779fi
25780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25781$as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25782if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25783
25784$as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25785
25786fi
25787
25788    case $target in
25789      *-*-aix*) conftest_s='	.csect .text[PR]
25790LCF..0:
25791	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25792      *-*-darwin*)
25793	conftest_s='	.text
25794LCF0:
25795	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25796      *) conftest_s='	.text
25797.LCF0:
25798	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25799    esac
25800
25801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25802$as_echo_n "checking assembler for rel16 relocs... " >&6; }
25803if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25804  $as_echo_n "(cached) " >&6
25805else
25806  gcc_cv_as_powerpc_rel16=no
25807    if test $in_tree_gas = yes; then
25808    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25809  then gcc_cv_as_powerpc_rel16=yes
25810fi
25811  elif test x$gcc_cv_as != x; then
25812    $as_echo "$conftest_s" > conftest.s
25813    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25814  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815  (eval $ac_try) 2>&5
25816  ac_status=$?
25817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818  test $ac_status = 0; }; }
25819    then
25820	gcc_cv_as_powerpc_rel16=yes
25821    else
25822      echo "configure: failed program was" >&5
25823      cat conftest.s >&5
25824    fi
25825    rm -f conftest.o conftest.s
25826  fi
25827fi
25828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25829$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25830if test $gcc_cv_as_powerpc_rel16 = yes; then
25831
25832$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25833
25834fi
25835
25836    case $target in
25837      *-*-aix*) conftest_s='	.machine "pwr6"
25838	.csect .text[PR]
25839	cmpb 3,4,5';;
25840      *) conftest_s='	.machine power6
25841	.text
25842	cmpb 3,4,5';;
25843    esac
25844
25845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25846$as_echo_n "checking assembler for compare bytes support... " >&6; }
25847if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25848  $as_echo_n "(cached) " >&6
25849else
25850  gcc_cv_as_powerpc_cmpb=no
25851    if test $in_tree_gas = yes; then
25852    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25853  then gcc_cv_as_powerpc_cmpb=yes
25854fi
25855  elif test x$gcc_cv_as != x; then
25856    $as_echo "$conftest_s" > conftest.s
25857    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25858  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859  (eval $ac_try) 2>&5
25860  ac_status=$?
25861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862  test $ac_status = 0; }; }
25863    then
25864	gcc_cv_as_powerpc_cmpb=yes
25865    else
25866      echo "configure: failed program was" >&5
25867      cat conftest.s >&5
25868    fi
25869    rm -f conftest.o conftest.s
25870  fi
25871fi
25872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25873$as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25874if test $gcc_cv_as_powerpc_cmpb = yes; then
25875
25876$as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25877
25878fi
25879
25880    case $target in
25881      *-*-aix*) conftest_s='	.machine "pwr6"
25882	.csect .text[PR]
25883	dadd 1,2,3';;
25884      *) conftest_s='	.machine power6
25885	.text
25886	dadd 1,2,3';;
25887    esac
25888
25889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25890$as_echo_n "checking assembler for decimal float support... " >&6; }
25891if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25892  $as_echo_n "(cached) " >&6
25893else
25894  gcc_cv_as_powerpc_dfp=no
25895    if test $in_tree_gas = yes; then
25896    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25897  then gcc_cv_as_powerpc_dfp=yes
25898fi
25899  elif test x$gcc_cv_as != x; then
25900    $as_echo "$conftest_s" > conftest.s
25901    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25902  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25903  (eval $ac_try) 2>&5
25904  ac_status=$?
25905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25906  test $ac_status = 0; }; }
25907    then
25908	gcc_cv_as_powerpc_dfp=yes
25909    else
25910      echo "configure: failed program was" >&5
25911      cat conftest.s >&5
25912    fi
25913    rm -f conftest.o conftest.s
25914  fi
25915fi
25916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25917$as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25918if test $gcc_cv_as_powerpc_dfp = yes; then
25919
25920$as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25921
25922fi
25923
25924    case $target in
25925      *-*-aix*) conftest_s='	.machine "pwr7"
25926	.csect .text[PR]
25927	lxvd2x 1,2,3';;
25928      *) conftest_s='	.machine power7
25929	.text
25930	lxvd2x 1,2,3';;
25931    esac
25932
25933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25934$as_echo_n "checking assembler for vector-scalar support... " >&6; }
25935if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25936  $as_echo_n "(cached) " >&6
25937else
25938  gcc_cv_as_powerpc_vsx=no
25939    if test $in_tree_gas = yes; then
25940    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25941  then gcc_cv_as_powerpc_vsx=yes
25942fi
25943  elif test x$gcc_cv_as != x; then
25944    $as_echo "$conftest_s" > conftest.s
25945    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25946  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947  (eval $ac_try) 2>&5
25948  ac_status=$?
25949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950  test $ac_status = 0; }; }
25951    then
25952	gcc_cv_as_powerpc_vsx=yes
25953    else
25954      echo "configure: failed program was" >&5
25955      cat conftest.s >&5
25956    fi
25957    rm -f conftest.o conftest.s
25958  fi
25959fi
25960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25961$as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25962if test $gcc_cv_as_powerpc_vsx = yes; then
25963
25964$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25965
25966fi
25967
25968    case $target in
25969      *-*-aix*) conftest_s='	.machine "pwr7"
25970	.csect .text[PR]
25971	popcntd 3,3';;
25972      *) conftest_s='	.machine power7
25973	.text
25974	popcntd 3,3';;
25975    esac
25976
25977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25978$as_echo_n "checking assembler for popcntd support... " >&6; }
25979if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25980  $as_echo_n "(cached) " >&6
25981else
25982  gcc_cv_as_powerpc_popcntd=no
25983    if test $in_tree_gas = yes; then
25984    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25985  then gcc_cv_as_powerpc_popcntd=yes
25986fi
25987  elif test x$gcc_cv_as != x; then
25988    $as_echo "$conftest_s" > conftest.s
25989    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25990  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25991  (eval $ac_try) 2>&5
25992  ac_status=$?
25993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25994  test $ac_status = 0; }; }
25995    then
25996	gcc_cv_as_powerpc_popcntd=yes
25997    else
25998      echo "configure: failed program was" >&5
25999      cat conftest.s >&5
26000    fi
26001    rm -f conftest.o conftest.s
26002  fi
26003fi
26004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26005$as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26006if test $gcc_cv_as_powerpc_popcntd = yes; then
26007
26008$as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26009
26010fi
26011
26012    case $target in
26013      *-*-aix*) conftest_s='	.machine "pwr8"
26014	.csect .text[PR]';;
26015      *) conftest_s='	.machine power8
26016	.text';;
26017    esac
26018
26019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26020$as_echo_n "checking assembler for power8 support... " >&6; }
26021if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26022  $as_echo_n "(cached) " >&6
26023else
26024  gcc_cv_as_powerpc_power8=no
26025    if test $in_tree_gas = yes; then
26026    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26027  then gcc_cv_as_powerpc_power8=yes
26028fi
26029  elif test x$gcc_cv_as != x; then
26030    $as_echo "$conftest_s" > conftest.s
26031    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26032  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26033  (eval $ac_try) 2>&5
26034  ac_status=$?
26035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26036  test $ac_status = 0; }; }
26037    then
26038	gcc_cv_as_powerpc_power8=yes
26039    else
26040      echo "configure: failed program was" >&5
26041      cat conftest.s >&5
26042    fi
26043    rm -f conftest.o conftest.s
26044  fi
26045fi
26046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26047$as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26048if test $gcc_cv_as_powerpc_power8 = yes; then
26049
26050$as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26051
26052fi
26053
26054    case $target in
26055      *-*-aix*) conftest_s='	.csect .text[PR]
26056	lwsync';;
26057      *) conftest_s='	.text
26058	lwsync';;
26059    esac
26060
26061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26062$as_echo_n "checking assembler for lwsync support... " >&6; }
26063if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26064  $as_echo_n "(cached) " >&6
26065else
26066  gcc_cv_as_powerpc_lwsync=no
26067    if test $in_tree_gas = yes; then
26068    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26069  then gcc_cv_as_powerpc_lwsync=yes
26070fi
26071  elif test x$gcc_cv_as != x; then
26072    $as_echo "$conftest_s" > conftest.s
26073    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26074  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26075  (eval $ac_try) 2>&5
26076  ac_status=$?
26077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26078  test $ac_status = 0; }; }
26079    then
26080	gcc_cv_as_powerpc_lwsync=yes
26081    else
26082      echo "configure: failed program was" >&5
26083      cat conftest.s >&5
26084    fi
26085    rm -f conftest.o conftest.s
26086  fi
26087fi
26088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26089$as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26090if test $gcc_cv_as_powerpc_lwsync = yes; then
26091
26092$as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26093
26094fi
26095
26096    case $target in
26097      *-*-aix*) conftest_s='	.machine "476"
26098	.csect .text[PR]
26099	dci 0';;
26100      *) conftest_s='	.machine "476"
26101	.text
26102	dci 0';;
26103    esac
26104
26105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26106$as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26107if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26108  $as_echo_n "(cached) " >&6
26109else
26110  gcc_cv_as_powerpc_dci=no
26111    if test $in_tree_gas = yes; then
26112    if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26113  then gcc_cv_as_powerpc_dci=yes
26114fi
26115  elif test x$gcc_cv_as != x; then
26116    $as_echo "$conftest_s" > conftest.s
26117    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26118  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26119  (eval $ac_try) 2>&5
26120  ac_status=$?
26121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26122  test $ac_status = 0; }; }
26123    then
26124	gcc_cv_as_powerpc_dci=yes
26125    else
26126      echo "configure: failed program was" >&5
26127      cat conftest.s >&5
26128    fi
26129    rm -f conftest.o conftest.s
26130  fi
26131fi
26132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26133$as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26134if test $gcc_cv_as_powerpc_dci = yes; then
26135
26136$as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26137
26138fi
26139
26140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26141$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26142if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26143  $as_echo_n "(cached) " >&6
26144else
26145  gcc_cv_as_powerpc_gnu_attribute=no
26146    if test $in_tree_gas = yes; then
26147    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26148  then gcc_cv_as_powerpc_gnu_attribute=yes
26149fi
26150  elif test x$gcc_cv_as != x; then
26151    $as_echo '.gnu_attribute 4,1' > conftest.s
26152    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26153  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26154  (eval $ac_try) 2>&5
26155  ac_status=$?
26156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26157  test $ac_status = 0; }; }
26158    then
26159	gcc_cv_as_powerpc_gnu_attribute=yes
26160    else
26161      echo "configure: failed program was" >&5
26162      cat conftest.s >&5
26163    fi
26164    rm -f conftest.o conftest.s
26165  fi
26166fi
26167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26168$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26169if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26170
26171$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26172
26173fi
26174
26175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26176$as_echo_n "checking assembler for tls marker support... " >&6; }
26177if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26178  $as_echo_n "(cached) " >&6
26179else
26180  gcc_cv_as_powerpc_tls_markers=no
26181    if test $in_tree_gas = yes; then
26182    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26183  then gcc_cv_as_powerpc_tls_markers=yes
26184fi
26185  elif test x$gcc_cv_as != x; then
26186    $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26187    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26188  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26189  (eval $ac_try) 2>&5
26190  ac_status=$?
26191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26192  test $ac_status = 0; }; }
26193    then
26194	gcc_cv_as_powerpc_tls_markers=yes
26195    else
26196      echo "configure: failed program was" >&5
26197      cat conftest.s >&5
26198    fi
26199    rm -f conftest.o conftest.s
26200  fi
26201fi
26202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26203$as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26204if test $gcc_cv_as_powerpc_tls_markers = yes; then
26205
26206$as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26207
26208fi
26209
26210    case $target in
26211      *-*-aix*)
26212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26213$as_echo_n "checking assembler for .ref support... " >&6; }
26214if test "${gcc_cv_as_aix_ref+set}" = set; then :
26215  $as_echo_n "(cached) " >&6
26216else
26217  gcc_cv_as_aix_ref=no
26218    if test $in_tree_gas = yes; then
26219    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26220  then gcc_cv_as_aix_ref=yes
26221fi
26222  elif test x$gcc_cv_as != x; then
26223    $as_echo '	.csect stuff[rw]
26224	     stuff:
26225		.long 1
26226		.extern sym
26227		.ref sym
26228	  ' > conftest.s
26229    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26230  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26231  (eval $ac_try) 2>&5
26232  ac_status=$?
26233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234  test $ac_status = 0; }; }
26235    then
26236	gcc_cv_as_aix_ref=yes
26237    else
26238      echo "configure: failed program was" >&5
26239      cat conftest.s >&5
26240    fi
26241    rm -f conftest.o conftest.s
26242  fi
26243fi
26244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26245$as_echo "$gcc_cv_as_aix_ref" >&6; }
26246if test $gcc_cv_as_aix_ref = yes; then
26247
26248$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26249
26250fi
26251	;;
26252    esac
26253    ;;
26254
26255  mips*-*-*)
26256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26257$as_echo_n "checking assembler for explicit relocation support... " >&6; }
26258if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26259  $as_echo_n "(cached) " >&6
26260else
26261  gcc_cv_as_mips_explicit_relocs=no
26262    if test $in_tree_gas = yes; then
26263    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26264  then gcc_cv_as_mips_explicit_relocs=yes
26265fi
26266  elif test x$gcc_cv_as != x; then
26267    $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
26268    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26269  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26270  (eval $ac_try) 2>&5
26271  ac_status=$?
26272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26273  test $ac_status = 0; }; }
26274    then
26275	gcc_cv_as_mips_explicit_relocs=yes
26276    else
26277      echo "configure: failed program was" >&5
26278      cat conftest.s >&5
26279    fi
26280    rm -f conftest.o conftest.s
26281  fi
26282fi
26283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26284$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26285if test $gcc_cv_as_mips_explicit_relocs = yes; then
26286  if test x$target_cpu_default = x
26287       then target_cpu_default=MASK_EXPLICIT_RELOCS
26288       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26289       fi
26290fi
26291    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26292$as_echo_n "checking assembler for -mno-shared support... " >&6; }
26293if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26294  $as_echo_n "(cached) " >&6
26295else
26296  gcc_cv_as_mips_no_shared=no
26297    if test $in_tree_gas = yes; then
26298    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26299  then gcc_cv_as_mips_no_shared=yes
26300fi
26301  elif test x$gcc_cv_as != x; then
26302    $as_echo 'nop' > conftest.s
26303    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26304  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26305  (eval $ac_try) 2>&5
26306  ac_status=$?
26307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26308  test $ac_status = 0; }; }
26309    then
26310	gcc_cv_as_mips_no_shared=yes
26311    else
26312      echo "configure: failed program was" >&5
26313      cat conftest.s >&5
26314    fi
26315    rm -f conftest.o conftest.s
26316  fi
26317fi
26318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26319$as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26320if test $gcc_cv_as_mips_no_shared = yes; then
26321
26322$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26323
26324fi
26325
26326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26327$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26328if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26329  $as_echo_n "(cached) " >&6
26330else
26331  gcc_cv_as_mips_gnu_attribute=no
26332    if test $in_tree_gas = yes; then
26333    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26334  then gcc_cv_as_mips_gnu_attribute=yes
26335fi
26336  elif test x$gcc_cv_as != x; then
26337    $as_echo '.gnu_attribute 4,1' > conftest.s
26338    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26339  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26340  (eval $ac_try) 2>&5
26341  ac_status=$?
26342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26343  test $ac_status = 0; }; }
26344    then
26345	gcc_cv_as_mips_gnu_attribute=yes
26346    else
26347      echo "configure: failed program was" >&5
26348      cat conftest.s >&5
26349    fi
26350    rm -f conftest.o conftest.s
26351  fi
26352fi
26353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26354$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26355if test $gcc_cv_as_mips_gnu_attribute = yes; then
26356
26357$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26358
26359fi
26360
26361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26362$as_echo_n "checking assembler for .module support... " >&6; }
26363if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26364  $as_echo_n "(cached) " >&6
26365else
26366  gcc_cv_as_mips_dot_module=no
26367  if test x$gcc_cv_as != x; then
26368    $as_echo '.module mips2
26369       .module fp=xx' > conftest.s
26370    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26371  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26372  (eval $ac_try) 2>&5
26373  ac_status=$?
26374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26375  test $ac_status = 0; }; }
26376    then
26377	gcc_cv_as_mips_dot_module=yes
26378    else
26379      echo "configure: failed program was" >&5
26380      cat conftest.s >&5
26381    fi
26382    rm -f conftest.o conftest.s
26383  fi
26384fi
26385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26386$as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26387if test $gcc_cv_as_mips_dot_module = yes; then
26388
26389$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26390
26391fi
26392    if test x$gcc_cv_as_mips_dot_module = xno \
26393       && test x$with_fp_32 != x; then
26394      as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26395    fi
26396
26397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26398$as_echo_n "checking assembler for .micromips support... " >&6; }
26399if test "${gcc_cv_as_micromips_support+set}" = set; then :
26400  $as_echo_n "(cached) " >&6
26401else
26402  gcc_cv_as_micromips_support=no
26403  if test x$gcc_cv_as != x; then
26404    $as_echo '.set micromips' > conftest.s
26405    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26406  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26407  (eval $ac_try) 2>&5
26408  ac_status=$?
26409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26410  test $ac_status = 0; }; }
26411    then
26412	gcc_cv_as_micromips_support=yes
26413    else
26414      echo "configure: failed program was" >&5
26415      cat conftest.s >&5
26416    fi
26417    rm -f conftest.o conftest.s
26418  fi
26419fi
26420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26421$as_echo "$gcc_cv_as_micromips_support" >&6; }
26422if test $gcc_cv_as_micromips_support = yes; then
26423
26424$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26425
26426fi
26427
26428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26429$as_echo_n "checking assembler for .dtprelword support... " >&6; }
26430if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26431  $as_echo_n "(cached) " >&6
26432else
26433  gcc_cv_as_mips_dtprelword=no
26434    if test $in_tree_gas = yes; then
26435    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26436  then gcc_cv_as_mips_dtprelword=yes
26437fi
26438  elif test x$gcc_cv_as != x; then
26439    $as_echo '.section .tdata,"awT",@progbits
26440x:
26441	.word 2
26442	.text
26443	.dtprelword x+0x8000' > conftest.s
26444    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26445  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446  (eval $ac_try) 2>&5
26447  ac_status=$?
26448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449  test $ac_status = 0; }; }
26450    then
26451	gcc_cv_as_mips_dtprelword=yes
26452    else
26453      echo "configure: failed program was" >&5
26454      cat conftest.s >&5
26455    fi
26456    rm -f conftest.o conftest.s
26457  fi
26458fi
26459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26460$as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26461if test $gcc_cv_as_mips_dtprelword = yes; then
26462
26463$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26464
26465fi
26466
26467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26468$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26469if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26470  $as_echo_n "(cached) " >&6
26471else
26472  gcc_cv_as_mips_dspr1_mult=no
26473  if test x$gcc_cv_as != x; then
26474    $as_echo '	.set	mips32r2
26475	.set	nodspr2
26476	.set	dsp
26477	madd	$ac3,$4,$5
26478	maddu	$ac3,$4,$5
26479	msub	$ac3,$4,$5
26480	msubu	$ac3,$4,$5
26481	mult	$ac3,$4,$5
26482	multu	$ac3,$4,$5' > conftest.s
26483    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26484  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26485  (eval $ac_try) 2>&5
26486  ac_status=$?
26487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26488  test $ac_status = 0; }; }
26489    then
26490	gcc_cv_as_mips_dspr1_mult=yes
26491    else
26492      echo "configure: failed program was" >&5
26493      cat conftest.s >&5
26494    fi
26495    rm -f conftest.o conftest.s
26496  fi
26497fi
26498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26499$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26500if test $gcc_cv_as_mips_dspr1_mult = yes; then
26501
26502$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26503
26504fi
26505
26506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26507$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26508    gcc_cv_as_ld_jalr_reloc=no
26509    if test $gcc_cv_as_mips_explicit_relocs = yes; then
26510      if test $in_tree_ld = yes ; then
26511        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 \
26512           && test $in_tree_ld_is_elf = yes; then
26513          gcc_cv_as_ld_jalr_reloc=yes
26514        fi
26515      elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26516        echo '	.ent x' > conftest.s
26517        echo 'x:	lw $2,%got_disp(y)($3)' >> conftest.s
26518        echo '	lw $25,%call16(y)($28)' >> conftest.s
26519        echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
26520        echo '1:	jalr $25' >> conftest.s
26521        echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
26522        echo '1:	jalr $25' >> conftest.s
26523        echo '	.end x' >> conftest.s
26524        if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26525           && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26526	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26527	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26528            gcc_cv_as_ld_jalr_reloc=yes
26529	  fi
26530        fi
26531        rm -f conftest.*
26532      fi
26533    fi
26534    if test $gcc_cv_as_ld_jalr_reloc = yes; then
26535      if test x$target_cpu_default = x; then
26536        target_cpu_default=MASK_RELAX_PIC_CALLS
26537      else
26538        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26539      fi
26540    fi
26541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26542$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26543
26544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26545$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26546if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26547  $as_echo_n "(cached) " >&6
26548else
26549  gcc_cv_ld_mips_personality_relaxation=no
26550       if test $in_tree_ld = yes ; then
26551	 if test "$gcc_cv_gld_major_version" -eq 2 \
26552		 -a "$gcc_cv_gld_minor_version" -ge 21 \
26553		 -o "$gcc_cv_gld_major_version" -gt 2; then
26554	   gcc_cv_ld_mips_personality_relaxation=yes
26555	 fi
26556       elif test x$gcc_cv_as != x \
26557       	    	 -a x$gcc_cv_ld != x \
26558		 -a x$gcc_cv_readelf != x ; then
26559	 cat > conftest.s <<EOF
26560	.cfi_startproc
26561	.cfi_personality 0x80,indirect_ptr
26562	.ent test
26563test:
26564	nop
26565	.end test
26566	.cfi_endproc
26567
26568	.section .data,"aw",@progbits
26569indirect_ptr:
26570	.dc.a personality
26571EOF
26572	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26573	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26574	   if $gcc_cv_readelf -d conftest 2>&1 \
26575	      | grep TEXTREL > /dev/null 2>&1; then
26576	     :
26577	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
26578	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26579	     :
26580	   else
26581	     gcc_cv_ld_mips_personality_relaxation=yes
26582	   fi
26583	 fi
26584       fi
26585       rm -f conftest.s conftest.o conftest
26586fi
26587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26588$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26589    if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26590
26591$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26592
26593    fi
26594
26595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26596$as_echo_n "checking assembler for -mnan= support... " >&6; }
26597if test "${gcc_cv_as_mips_nan+set}" = set; then :
26598  $as_echo_n "(cached) " >&6
26599else
26600  gcc_cv_as_mips_nan=no
26601  if test x$gcc_cv_as != x; then
26602    $as_echo '' > conftest.s
26603    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26604  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26605  (eval $ac_try) 2>&5
26606  ac_status=$?
26607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26608  test $ac_status = 0; }; }
26609    then
26610	gcc_cv_as_mips_nan=yes
26611    else
26612      echo "configure: failed program was" >&5
26613      cat conftest.s >&5
26614    fi
26615    rm -f conftest.o conftest.s
26616  fi
26617fi
26618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26619$as_echo "$gcc_cv_as_mips_nan" >&6; }
26620if test $gcc_cv_as_mips_nan = yes; then
26621
26622$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26623
26624fi
26625    if test x$gcc_cv_as_mips_nan = xno \
26626       && test x$with_nan != x; then
26627      as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26628    fi
26629    ;;
26630    s390*-*-*)
26631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26632$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26633if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26634  $as_echo_n "(cached) " >&6
26635else
26636  gcc_cv_as_s390_gnu_attribute=no
26637    if test $in_tree_gas = yes; then
26638    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26639  then gcc_cv_as_s390_gnu_attribute=yes
26640fi
26641  elif test x$gcc_cv_as != x; then
26642    $as_echo '.gnu_attribute 8,1' > conftest.s
26643    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26644  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26645  (eval $ac_try) 2>&5
26646  ac_status=$?
26647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26648  test $ac_status = 0; }; }
26649    then
26650	gcc_cv_as_s390_gnu_attribute=yes
26651    else
26652      echo "configure: failed program was" >&5
26653      cat conftest.s >&5
26654    fi
26655    rm -f conftest.o conftest.s
26656  fi
26657fi
26658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26659$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26660if test $gcc_cv_as_s390_gnu_attribute = yes; then
26661
26662$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26663
26664fi
26665    ;;
26666esac
26667
26668# Mips and HP-UX need the GNU assembler.
26669# Linux on IA64 might be able to use the Intel assembler.
26670
26671case "$target" in
26672  mips*-*-* | *-*-hpux* )
26673    if test x$gas_flag = xyes \
26674       || test x"$host" != x"$build" \
26675       || test ! -x "$gcc_cv_as" \
26676       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26677      :
26678    else
26679      echo "*** This configuration requires the GNU assembler" >&2
26680      exit 1
26681    fi
26682    ;;
26683esac
26684
26685# ??? Not all targets support dwarf2 debug_line, even within a version
26686# of gas.  Moreover, we need to emit a valid instruction to trigger any
26687# info to the output file.  So, as supported targets are added to gas 2.11,
26688# add some instruction here to (also) show we expect this might work.
26689# ??? Once 2.11 is released, probably need to add first known working
26690# version to the per-target configury.
26691case "$cpu_type" in
26692  aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26693  | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26694  | visium | xstormy16 | xtensa)
26695    insn="nop"
26696    ;;
26697  ia64 | s390)
26698    insn="nop 0"
26699    ;;
26700  mmix)
26701    insn="swym 0"
26702    ;;
26703esac
26704if test x"$insn" != x; then
26705 conftest_s="\
26706	.file 1 \"conftest.s\"
26707	.loc 1 3 0
26708	$insn"
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26710$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26711if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26712  $as_echo_n "(cached) " >&6
26713else
26714  gcc_cv_as_dwarf2_debug_line=no
26715    if test $in_tree_gas = yes; then
26716    if test $in_tree_gas_is_elf = yes \
26717  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26718  then gcc_cv_as_dwarf2_debug_line=yes
26719fi
26720  elif test x$gcc_cv_as != x; then
26721    $as_echo "$conftest_s" > conftest.s
26722    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26723  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26724  (eval $ac_try) 2>&5
26725  ac_status=$?
26726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26727  test $ac_status = 0; }; }
26728    then
26729	if test x$gcc_cv_objdump != x \
26730   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26731      | grep debug_line > /dev/null 2>&1; then
26732     gcc_cv_as_dwarf2_debug_line=yes
26733   fi
26734    else
26735      echo "configure: failed program was" >&5
26736      cat conftest.s >&5
26737    fi
26738    rm -f conftest.o conftest.s
26739  fi
26740fi
26741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26742$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26743
26744
26745# The .debug_line file table must be in the exact order that
26746# we specified the files, since these indices are also used
26747# by DW_AT_decl_file.  Approximate this test by testing if
26748# the assembler bitches if the same index is assigned twice.
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26750$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26751if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26752  $as_echo_n "(cached) " >&6
26753else
26754  gcc_cv_as_dwarf2_file_buggy=no
26755  if test x$gcc_cv_as != x; then
26756    $as_echo '	.file 1 "foo.s"
26757	.file 1 "bar.s"' > conftest.s
26758    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26759  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26760  (eval $ac_try) 2>&5
26761  ac_status=$?
26762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26763  test $ac_status = 0; }; }
26764    then
26765	gcc_cv_as_dwarf2_file_buggy=yes
26766    else
26767      echo "configure: failed program was" >&5
26768      cat conftest.s >&5
26769    fi
26770    rm -f conftest.o conftest.s
26771  fi
26772fi
26773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26774$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26775
26776
26777 if test $gcc_cv_as_dwarf2_debug_line = yes \
26778 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26779
26780$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26781
26782 fi
26783
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26785$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26786if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26787  $as_echo_n "(cached) " >&6
26788else
26789  gcc_cv_as_gdwarf2_flag=no
26790    if test $in_tree_gas = yes; then
26791    if test $in_tree_gas_is_elf = yes \
26792  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26793  then gcc_cv_as_gdwarf2_flag=yes
26794fi
26795  elif test x$gcc_cv_as != x; then
26796    $as_echo "$insn" > conftest.s
26797    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26798  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26799  (eval $ac_try) 2>&5
26800  ac_status=$?
26801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26802  test $ac_status = 0; }; }
26803    then
26804	gcc_cv_as_gdwarf2_flag=yes
26805    else
26806      echo "configure: failed program was" >&5
26807      cat conftest.s >&5
26808    fi
26809    rm -f conftest.o conftest.s
26810  fi
26811fi
26812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26813$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26814if test $gcc_cv_as_gdwarf2_flag = yes; then
26815
26816$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26817
26818fi
26819
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26821$as_echo_n "checking assembler for --gstabs option... " >&6; }
26822if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26823  $as_echo_n "(cached) " >&6
26824else
26825  gcc_cv_as_gstabs_flag=no
26826    if test $in_tree_gas = yes; then
26827    if test $in_tree_gas_is_elf = yes \
26828  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26829  then gcc_cv_as_gstabs_flag=yes
26830fi
26831  elif test x$gcc_cv_as != x; then
26832    $as_echo "$insn" > conftest.s
26833    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26834  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26835  (eval $ac_try) 2>&5
26836  ac_status=$?
26837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26838  test $ac_status = 0; }; }
26839    then
26840	gcc_cv_as_gstabs_flag=yes
26841    else
26842      echo "configure: failed program was" >&5
26843      cat conftest.s >&5
26844    fi
26845    rm -f conftest.o conftest.s
26846  fi
26847fi
26848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26849$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26850if test $gcc_cv_as_gstabs_flag = yes; then
26851
26852$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26853
26854fi
26855
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26857$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26858if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26859  $as_echo_n "(cached) " >&6
26860else
26861  gcc_cv_as_debug_prefix_map_flag=no
26862    if test $in_tree_gas = yes; then
26863    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26864  then gcc_cv_as_debug_prefix_map_flag=yes
26865fi
26866  elif test x$gcc_cv_as != x; then
26867    $as_echo "$insn" > conftest.s
26868    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26869  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26870  (eval $ac_try) 2>&5
26871  ac_status=$?
26872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26873  test $ac_status = 0; }; }
26874    then
26875	gcc_cv_as_debug_prefix_map_flag=yes
26876    else
26877      echo "configure: failed program was" >&5
26878      cat conftest.s >&5
26879    fi
26880    rm -f conftest.o conftest.s
26881  fi
26882fi
26883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26884$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26885if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26886
26887$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26888
26889fi
26890fi
26891
26892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26893$as_echo_n "checking assembler for compressed debug sections... " >&6; }
26894if test "${gcc_cv_as_compress_debug+set}" = set; then :
26895  $as_echo_n "(cached) " >&6
26896else
26897  gcc_cv_as_compress_debug=no
26898  if test x$gcc_cv_as != x; then
26899    $as_echo '' > conftest.s
26900    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26901  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26902  (eval $ac_try) 2>&5
26903  ac_status=$?
26904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26905  test $ac_status = 0; }; }
26906    then
26907	# gas compiled without zlib cannot compress debug sections and warns
26908   # about it, but still exits successfully.  So check for this, too.
26909   if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26910   then
26911     gcc_cv_as_compress_debug=0
26912   elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26913   then
26914     gcc_cv_as_compress_debug=1
26915     gcc_cv_as_compress_debug_option="--compress-debug-sections"
26916     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26917   else
26918     gcc_cv_as_compress_debug=0
26919   # FIXME: Future gas versions will support ELF gABI style via
26920   # --compress-debug-sections[=type].
26921   fi
26922    else
26923      echo "configure: failed program was" >&5
26924      cat conftest.s >&5
26925    fi
26926    rm -f conftest.o conftest.s
26927  fi
26928fi
26929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26930$as_echo "$gcc_cv_as_compress_debug" >&6; }
26931
26932
26933cat >>confdefs.h <<_ACEOF
26934#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26935_ACEOF
26936
26937
26938cat >>confdefs.h <<_ACEOF
26939#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26940_ACEOF
26941
26942
26943cat >>confdefs.h <<_ACEOF
26944#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26945_ACEOF
26946
26947
26948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26949$as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26950if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26951  $as_echo_n "(cached) " >&6
26952else
26953  gcc_cv_as_lcomm_with_alignment=no
26954  if test x$gcc_cv_as != x; then
26955    $as_echo '.lcomm bar,4,16' > conftest.s
26956    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26957  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26958  (eval $ac_try) 2>&5
26959  ac_status=$?
26960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26961  test $ac_status = 0; }; }
26962    then
26963	gcc_cv_as_lcomm_with_alignment=yes
26964    else
26965      echo "configure: failed program was" >&5
26966      cat conftest.s >&5
26967    fi
26968    rm -f conftest.o conftest.s
26969  fi
26970fi
26971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26972$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26973if test $gcc_cv_as_lcomm_with_alignment = yes; then
26974
26975$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26976
26977fi
26978
26979if test x$with_sysroot = x && test x$host = x$target \
26980   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26981   && test "$prefix" != "NONE"; then
26982
26983cat >>confdefs.h <<_ACEOF
26984#define PREFIX_INCLUDE_DIR "$prefix/include"
26985_ACEOF
26986
26987fi
26988
26989# Determine the version of glibc, if any, used on the target.
26990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26991$as_echo_n "checking for target glibc version... " >&6; }
26992
26993# Check whether --with-glibc-version was given.
26994if test "${with_glibc_version+set}" = set; then :
26995  withval=$with_glibc_version;
26996if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26997  glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26998  glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26999else
27000  as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27001fi
27002else
27003
27004glibc_version_major=0
27005glibc_version_minor=0
27006if test -f $target_header_dir/features.h \
27007  && glibc_version_major_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+[0-9]' $target_header_dir/features.h` \
27008  && glibc_version_minor_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+[0-9]' $target_header_dir/features.h`; then
27009  glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ 	]*//'`
27010  glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ 	]*//'`
27011fi
27012fi
27013
27014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27015$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27016
27017cat >>confdefs.h <<_ACEOF
27018#define TARGET_GLIBC_MAJOR $glibc_version_major
27019_ACEOF
27020
27021
27022cat >>confdefs.h <<_ACEOF
27023#define TARGET_GLIBC_MINOR $glibc_version_minor
27024_ACEOF
27025
27026
27027# Check whether --enable-gnu-unique-object was given.
27028if test "${enable_gnu_unique_object+set}" = set; then :
27029  enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27030    yes | no) ;;
27031    *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27032Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27033  esac
27034else
27035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27036$as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27037if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27038  $as_echo_n "(cached) " >&6
27039else
27040  gcc_cv_as_gnu_unique_object=no
27041    if test $in_tree_gas = yes; then
27042    if test $in_tree_gas_is_elf = yes \
27043  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27044  then gcc_cv_as_gnu_unique_object=yes
27045fi
27046  elif test x$gcc_cv_as != x; then
27047    $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27048    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27049  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27050  (eval $ac_try) 2>&5
27051  ac_status=$?
27052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27053  test $ac_status = 0; }; }
27054    then
27055	gcc_cv_as_gnu_unique_object=yes
27056    else
27057      echo "configure: failed program was" >&5
27058      cat conftest.s >&5
27059    fi
27060    rm -f conftest.o conftest.s
27061  fi
27062fi
27063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27064$as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27065if test $gcc_cv_as_gnu_unique_object = yes; then
27066  # We need to unquote above to to use the definition from config.gcc.
27067# Also check for ld.so support, i.e. glibc 2.11 or higher.
27068
27069if test $glibc_version_major -gt 2 \
27070  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27071  enable_gnu_unique_object=yes
27072fi
27073
27074fi
27075fi
27076
27077if test x$enable_gnu_unique_object = xyes; then
27078
27079$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27080
27081fi
27082
27083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27084$as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27085if test "${gcc_cv_as_line_zero+set}" = set; then :
27086  $as_echo_n "(cached) " >&6
27087else
27088  gcc_cv_as_line_zero=no
27089  if test $in_tree_gas = yes; then
27090    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27091  then gcc_cv_as_line_zero=yes
27092fi
27093  elif test "x$gcc_cv_as" != x; then
27094    { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27095    if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27096  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27097  (eval $ac_try) 2>&5
27098  ac_status=$?
27099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27100  test $ac_status = 0; }; } &&
27101       test "x`cat conftest.out`" = x
27102    then
27103      gcc_cv_as_line_zero=yes
27104    else
27105      echo "configure: failed program was" >&5
27106      cat conftest.s >&5
27107      echo "configure: error output was" >&5
27108      cat conftest.out >&5
27109    fi
27110    rm -f conftest.o conftest.s conftest.out
27111  fi
27112fi
27113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27114$as_echo "$gcc_cv_as_line_zero" >&6; }
27115if test "x$gcc_cv_as_line_zero" = xyes; then
27116
27117$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27118
27119fi
27120
27121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27122$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27123gcc_cv_ld_eh_frame_hdr=no
27124if test $in_tree_ld = yes ; then
27125  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 \
27126     && test $in_tree_ld_is_elf = yes; then
27127    gcc_cv_ld_eh_frame_hdr=yes
27128  fi
27129elif test x$gcc_cv_ld != x; then
27130  if echo "$ld_ver" | grep GNU > /dev/null; then
27131    # Check if linker supports --eh-frame-hdr option
27132    if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27133      gcc_cv_ld_eh_frame_hdr=yes
27134    fi
27135  else
27136    case "$target" in
27137      *-*-solaris2*)
27138        # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27139        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27140          gcc_cv_ld_eh_frame_hdr=yes
27141        fi
27142        ;;
27143    esac
27144  fi
27145fi
27146
27147if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27148
27149$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27150
27151fi
27152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27153$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27154
27155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27156$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27157gcc_cv_ld_eh_frame_ciev3=no
27158if test $in_tree_ld = yes ; then
27159  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 \
27160     && test $in_tree_ld_is_elf = yes; then
27161    gcc_cv_ld_eh_frame_ciev3=yes
27162  fi
27163elif test x$gcc_cv_ld != x; then
27164  if echo "$ld_ver" | grep GNU > /dev/null; then
27165    gcc_cv_ld_eh_frame_ciev3=yes
27166    if test 0"$ld_date" -lt 20040513; then
27167      if test -n "$ld_date"; then
27168	# If there was date string, but was earlier than 2004-05-13, fail
27169	gcc_cv_ld_eh_frame_ciev3=no
27170      elif test "$ld_vers_major" -lt 2; then
27171	gcc_cv_ld_eh_frame_ciev3=no
27172      elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27173	gcc_cv_ld_eh_frame_ciev3=no
27174      fi
27175    fi
27176  else
27177    case "$target" in
27178      *-*-solaris2*)
27179        # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27180        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27181          gcc_cv_ld_eh_frame_ciev3=yes
27182        fi
27183        ;;
27184    esac
27185  fi
27186fi
27187
27188cat >>confdefs.h <<_ACEOF
27189#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27190_ACEOF
27191
27192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27193$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27194
27195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27196$as_echo_n "checking linker position independent executable support... " >&6; }
27197gcc_cv_ld_pie=no
27198if test $in_tree_ld = yes ; then
27199  case "$target" in
27200    # Full PIE support on Solaris was only introduced in gld 2.26.
27201    *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
27202    *) 		    gcc_gld_pie_min_version=15 ;;
27203  esac
27204  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
27205     && test $in_tree_ld_is_elf = yes; then
27206    gcc_cv_ld_pie=yes
27207  fi
27208elif test x$gcc_cv_ld != x; then
27209  # Check if linker supports -pie option
27210  if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27211    gcc_cv_ld_pie=yes
27212    case "$target" in
27213      *-*-solaris2*)
27214	if echo "$ld_ver" | grep GNU > /dev/null \
27215	  && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27216	  gcc_cv_ld_pie=no
27217	fi
27218	;;
27219    esac
27220  else
27221    case "$target" in
27222      *-*-solaris2.1[1-9]*)
27223	# Solaris 11.x and Solaris 12 added PIE support.
27224	if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27225	  gcc_cv_ld_pie=yes
27226	fi
27227	;;
27228    esac
27229  fi
27230fi
27231if test x"$gcc_cv_ld_pie" = xyes; then
27232
27233$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27234
27235fi
27236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27237$as_echo "$gcc_cv_ld_pie" >&6; }
27238
27239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27240$as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27241gcc_cv_ld_pie_copyreloc=no
27242if test $gcc_cv_ld_pie = yes ; then
27243  if test $in_tree_ld = yes ; then
27244    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27245      gcc_cv_ld_pie_copyreloc=yes
27246    fi
27247  elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27248    # Check if linker supports -pie option with copy reloc
27249    case "$target" in
27250    i?86-*-linux* | x86_64-*-linux*)
27251      cat > conftest1.s <<EOF
27252	.globl	a_glob
27253	.data
27254	.type	a_glob, @object
27255	.size	a_glob, 4
27256a_glob:
27257	.long	2
27258EOF
27259      cat > conftest2.s <<EOF
27260	.text
27261	.globl	main
27262	.type	main, @function
27263main:
27264	movl	%eax, a_glob(%rip)
27265	.size	main, .-main
27266	.globl	ptr
27267	.section	.data.rel,"aw",@progbits
27268	.type	ptr, @object
27269ptr:
27270	.quad	a_glob
27271EOF
27272      if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27273         && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27274         && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27275         && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27276        gcc_cv_ld_pie_copyreloc=yes
27277      fi
27278      rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27279      ;;
27280    esac
27281  fi
27282fi
27283
27284cat >>confdefs.h <<_ACEOF
27285#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27286_ACEOF
27287
27288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27289$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27290
27291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27292$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27293gcc_cv_ld_eh_gc_sections=no
27294if test $in_tree_ld = yes ; then
27295  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 \
27296     && test $in_tree_ld_is_elf = yes; then
27297    gcc_cv_ld_eh_gc_sections=yes
27298  fi
27299elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27300  cat > conftest.s <<EOF
27301	.section	.text
27302.globl _start
27303        .type _start, @function
27304_start:
27305	.long foo
27306	.size _start, .-_start
27307	.section	.text.foo,"ax",@progbits
27308	.type foo, @function
27309foo:
27310	.long 0
27311	.size foo, .-foo
27312	.section	.gcc_except_table.foo,"a",@progbits
27313.L0:
27314	.long 0
27315	.section	.eh_frame,"a",@progbits
27316	.long .L0
27317EOF
27318  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27319    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27320	 | grep "gc-sections option ignored" > /dev/null; then
27321      gcc_cv_ld_eh_gc_sections=no
27322    elif $gcc_cv_objdump -h conftest 2> /dev/null \
27323         | grep gcc_except_table > /dev/null; then
27324      gcc_cv_ld_eh_gc_sections=yes
27325      # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27326      if test x$gcc_cv_as_comdat_group != xyes; then
27327	gcc_cv_ld_eh_gc_sections=no
27328	cat > conftest.s <<EOF
27329	.section	.text
27330.globl _start
27331        .type _start, @function
27332_start:
27333	.long foo
27334	.size _start, .-_start
27335	.section	.gnu.linkonce.t.foo,"ax",@progbits
27336	.type foo, @function
27337foo:
27338	.long 0
27339	.size foo, .-foo
27340	.section	.gcc_except_table.foo,"a",@progbits
27341.L0:
27342	.long 0
27343	.section	.eh_frame,"a",@progbits
27344	.long .L0
27345EOF
27346	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27347	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27348	       | grep "gc-sections option ignored" > /dev/null; then
27349	    gcc_cv_ld_eh_gc_sections=no
27350	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
27351	       | grep gcc_except_table > /dev/null; then
27352	    gcc_cv_ld_eh_gc_sections=yes
27353	  fi
27354	fi
27355      fi
27356    fi
27357  fi
27358  rm -f conftest.s conftest.o conftest
27359fi
27360case "$target" in
27361  hppa*-*-linux*)
27362    # ??? This apparently exposes a binutils bug with PC-relative relocations.
27363    gcc_cv_ld_eh_gc_sections=no
27364    ;;
27365esac
27366if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27367
27368$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27369
27370fi
27371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27372$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27373
27374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27375$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27376gcc_cv_ld_eh_gc_sections_bug=no
27377if test $in_tree_ld = yes ; then
27378  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
27379     && test $in_tree_ld_is_elf = yes; then
27380    gcc_cv_ld_eh_gc_sections_bug=yes
27381  fi
27382elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
27383  gcc_cv_ld_eh_gc_sections_bug=yes
27384  cat > conftest.s <<EOF
27385	.section	.text
27386.globl _start
27387	.type _start, @function
27388_start:
27389	.long foo
27390	.size _start, .-_start
27391	.section	.text.startup.foo,"ax",@progbits
27392	.type foo, @function
27393foo:
27394	.long 0
27395	.size foo, .-foo
27396	.section	.gcc_except_table.foo,"a",@progbits
27397.L0:
27398	.long 0
27399	.section	.eh_frame,"a",@progbits
27400	.long .L0
27401EOF
27402  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27403    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27404	 | grep "gc-sections option ignored" > /dev/null; then
27405      :
27406    elif $gcc_cv_objdump -h conftest 2> /dev/null \
27407	 | grep gcc_except_table > /dev/null; then
27408      gcc_cv_ld_eh_gc_sections_bug=no
27409    fi
27410  fi
27411  rm -f conftest.s conftest.o conftest
27412fi
27413if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27414
27415$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27416
27417fi
27418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27419$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27420
27421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27422$as_echo_n "checking linker for compressed debug sections... " >&6; }
27423# gold/gld support compressed debug sections since binutils 2.19/2.21
27424if test $in_tree_ld = yes ; then
27425  gcc_cv_ld_compress_debug=0
27426  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27427     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27428    gcc_cv_ld_compress_debug=2
27429    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27430  elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27431     && test $in_tree_ld_is_elf = yes; then
27432    gcc_cv_ld_compress_debug=1
27433  fi
27434elif echo "$ld_ver" | grep GNU > /dev/null; then
27435  gcc_cv_ld_compress_debug=1
27436  if test 0"$ld_date" -lt 20050308; then
27437    if test -n "$ld_date"; then
27438      # If there was date string, but was earlier than 2005-03-08, fail
27439      gcc_cv_ld_compress_debug=0
27440    elif test "$ld_vers_major" -lt 2; then
27441      gcc_cv_ld_compress_debug=0
27442    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27443      gcc_cv_ld_compress_debug=0
27444    fi
27445  fi
27446  if test $ld_is_gold = yes; then
27447    gcc_cv_ld_compress_debug=2
27448    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27449  fi
27450else
27451  case "${target}" in
27452    *-*-solaris2*)
27453      # Introduced in Solaris 11.2.
27454      if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27455        gcc_cv_ld_compress_debug=3
27456        gcc_cv_ld_compress_debug_option="-z compress-sections"
27457      else
27458        gcc_cv_ld_compress_debug=0
27459      fi
27460      ;;
27461    *)
27462      # Assume linkers other than GNU ld don't support compessed debug
27463      # sections.
27464      gcc_cv_ld_compress_debug=0
27465      ;;
27466  esac
27467fi
27468
27469cat >>confdefs.h <<_ACEOF
27470#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27471_ACEOF
27472
27473
27474cat >>confdefs.h <<_ACEOF
27475#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27476_ACEOF
27477
27478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27479$as_echo "$gcc_cv_ld_compress_debug" >&6; }
27480
27481# --------
27482# UNSORTED
27483# --------
27484
27485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27486$as_echo_n "checking linker --as-needed support... " >&6; }
27487if test "${gcc_cv_ld_as_needed+set}" = set; then :
27488  $as_echo_n "(cached) " >&6
27489else
27490  gcc_cv_ld_as_needed=no
27491gcc_cv_ld_as_needed_option='--as-needed'
27492gcc_cv_ld_no_as_needed_option='--no-as-needed'
27493if test $in_tree_ld = yes ; then
27494  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 \
27495     && test $in_tree_ld_is_elf = yes; then
27496    gcc_cv_ld_as_needed=yes
27497  fi
27498elif test x$gcc_cv_ld != x; then
27499	# Check if linker supports --as-needed and --no-as-needed options
27500	if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27501		gcc_cv_ld_as_needed=yes
27502	else
27503	  case "$target" in
27504	    # Solaris 2 ld always supports -z ignore/-z record.
27505	    *-*-solaris2*)
27506	      gcc_cv_ld_as_needed=yes
27507	      gcc_cv_ld_as_needed_option="-z ignore"
27508	      gcc_cv_ld_no_as_needed_option="-z record"
27509	      ;;
27510	  esac
27511	fi
27512fi
27513# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27514# dl_iterate_phdr, i.e. since Solaris 11.
27515case "$target" in
27516  *-*-solaris2.1[1-9]*)
27517    case "$target" in
27518    i?86-*-* | x86_64-*-*)
27519      if echo "$ld_ver" | grep GNU > /dev/null; then
27520        # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27521        gcc_cv_ld_as_needed=no
27522      fi
27523      ;;
27524    esac
27525    ;;
27526  *-*-solaris2*)
27527    gcc_cv_ld_as_needed=no
27528    ;;
27529esac
27530
27531fi
27532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27533$as_echo "$gcc_cv_ld_as_needed" >&6; }
27534if test x"$gcc_cv_ld_as_needed" = xyes; then
27535
27536$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27537
27538
27539cat >>confdefs.h <<_ACEOF
27540#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27541_ACEOF
27542
27543
27544cat >>confdefs.h <<_ACEOF
27545#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27546_ACEOF
27547
27548fi
27549
27550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27551$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27552saved_LDFLAGS="$LDFLAGS"
27553for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27554  LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27556/* end confdefs.h.  */
27557int main(void) {return 0;}
27558_ACEOF
27559if ac_fn_c_try_link "$LINENO"; then :
27560  gcc_cv_ld_clearcap=yes; break
27561else
27562  gcc_cv_ld_clearcap=no
27563fi
27564rm -f core conftest.err conftest.$ac_objext \
27565    conftest$ac_exeext conftest.$ac_ext
27566done
27567LDFLAGS="$saved_LDFLAGS"
27568if test "x$gcc_cv_ld_clearcap" = xyes; then
27569
27570$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27571
27572  ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27573
27574fi
27575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27576$as_echo "$gcc_cv_ld_clearcap" >&6; }
27577
27578case "$target:$tm_file" in
27579  powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27580  case "$target" in
27581     *le-*-linux*)
27582     emul_name="-melf64lppc"
27583      ;;
27584     *-*-linux*)
27585     emul_name="-melf64ppc"
27586      ;;
27587     *-*-freebsd*)
27588     emul_name="-melf64ppc_fbsd"
27589      ;;
27590  esac
27591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27592$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27593if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27594  $as_echo_n "(cached) " >&6
27595else
27596  gcc_cv_ld_no_dot_syms=no
27597    if test x"$ld_is_gold" = xyes; then
27598      gcc_cv_ld_no_dot_syms=yes
27599    elif test $in_tree_ld = yes ; then
27600      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
27601        gcc_cv_ld_no_dot_syms=yes
27602      fi
27603    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27604      cat > conftest1.s <<EOF
27605	.text
27606	bl .foo
27607EOF
27608      cat > conftest2.s <<EOF
27609	.section ".opd","aw"
27610	.align 3
27611	.globl foo
27612	.type foo,@function
27613foo:
27614	.quad .LEfoo,.TOC.@tocbase,0
27615	.text
27616.LEfoo:
27617	blr
27618	.size foo,.-.LEfoo
27619EOF
27620      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27621         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27622         && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27623        gcc_cv_ld_no_dot_syms=yes
27624      fi
27625      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27626    fi
27627
27628fi
27629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27630$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27631    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27632
27633$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27634
27635    fi
27636
27637    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27638$as_echo_n "checking linker large toc support... " >&6; }
27639if test "${gcc_cv_ld_large_toc+set}" = set; then :
27640  $as_echo_n "(cached) " >&6
27641else
27642  gcc_cv_ld_large_toc=no
27643    if test x"$ld_is_gold" = xyes; then
27644      gcc_cv_ld_large_toc=yes
27645    elif test $in_tree_ld = yes ; then
27646      if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
27647        gcc_cv_ld_large_toc=yes
27648      fi
27649    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27650      cat > conftest.s <<EOF
27651	.section ".tbss","awT",@nobits
27652	.align 3
27653ie0:	.space 8
27654	.global _start
27655	.text
27656_start:
27657	addis 9,13,ie0@got@tprel@ha
27658	ld 9,ie0@got@tprel@l(9)
27659EOF
27660      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27661         && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27662        gcc_cv_ld_large_toc=yes
27663      fi
27664      rm -f conftest conftest.o conftest.s
27665    fi
27666
27667fi
27668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27669$as_echo "$gcc_cv_ld_large_toc" >&6; }
27670    if test x"$gcc_cv_ld_large_toc" = xyes; then
27671
27672$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27673
27674    fi
27675    ;;
27676esac
27677
27678case "$target" in
27679  *-*-aix*)
27680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27681$as_echo_n "checking linker large toc support... " >&6; }
27682if test "${gcc_cv_ld_large_toc+set}" = set; then :
27683  $as_echo_n "(cached) " >&6
27684else
27685  gcc_cv_ld_large_toc=no
27686    if test x$gcc_cv_as != x ; then
27687      cat > conftest.s <<EOF
27688	.toc
27689LC..1:
27690	.tc a[TC],a[RW]
27691	.extern a[RW]
27692	.csect .text[PR]
27693.largetoctest:
27694	addis 9,LC..1@u(2)
27695	ld 3,LC..1@l(9)
27696EOF
27697      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27698        gcc_cv_ld_large_toc=yes
27699      fi
27700      rm -f conftest conftest.o conftest.s
27701    fi
27702
27703fi
27704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27705$as_echo "$gcc_cv_ld_large_toc" >&6; }
27706    if test x"$gcc_cv_ld_large_toc" = xyes; then
27707
27708$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27709
27710    fi
27711    ;;
27712esac
27713
27714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27715$as_echo_n "checking linker --build-id support... " >&6; }
27716if test "${gcc_cv_ld_buildid+set}" = set; then :
27717  $as_echo_n "(cached) " >&6
27718else
27719  gcc_cv_ld_buildid=no
27720  if test $in_tree_ld = yes ; then
27721    if test "$gcc_cv_gld_major_version" -eq 2 -a \
27722       "$gcc_cv_gld_minor_version" -ge 18 -o \
27723       "$gcc_cv_gld_major_version" -gt 2 \
27724       && test $in_tree_ld_is_elf = yes; then
27725      gcc_cv_ld_buildid=yes
27726    fi
27727  elif test x$gcc_cv_ld != x; then
27728    if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27729      gcc_cv_ld_buildid=yes
27730    fi
27731  fi
27732fi
27733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27734$as_echo "$gcc_cv_ld_buildid" >&6; }
27735if test x"$gcc_cv_ld_buildid" = xyes; then
27736
27737$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27738
27739fi
27740
27741# Check whether --enable-linker-build-id was given.
27742if test "${enable_linker_build_id+set}" = set; then :
27743  enableval=$enable_linker_build_id;
27744else
27745  enable_linker_build_id=no
27746fi
27747
27748
27749if test x"$enable_linker_build_id" = xyes; then
27750  if test x"$gcc_cv_ld_buildid" = xyes; then
27751
27752$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27753
27754  else
27755    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27756$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27757  fi
27758fi
27759
27760# In binutils 2.21, GNU ld gained support for new emulations fully
27761# supporting the Solaris 2 ABI.  Detect their presence in the linker used.
27762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27763$as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27764if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27765  $as_echo_n "(cached) " >&6
27766else
27767  gcc_cv_ld_sol2_emulation=no
27768  if test $in_tree_ld = yes ; then
27769    if test "$gcc_cv_gld_major_version" -eq 2 -a \
27770       "$gcc_cv_gld_minor_version" -ge 21 -o \
27771       "$gcc_cv_gld_major_version" -gt 2 \
27772       && test $in_tree_ld_is_elf = yes; then
27773      gcc_cv_ld_sol2_emulation=yes
27774    fi
27775  elif test x$gcc_cv_ld != x; then
27776    if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27777       grep _sol2 > /dev/null; then
27778      gcc_cv_ld_sol2_emulation=yes
27779    fi
27780  fi
27781fi
27782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27783$as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27784if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27785
27786$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27787
27788fi
27789
27790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27791$as_echo_n "checking linker --sysroot support... " >&6; }
27792if test "${gcc_cv_ld_sysroot+set}" = set; then :
27793  $as_echo_n "(cached) " >&6
27794else
27795  gcc_cv_ld_sysroot=no
27796  if test $in_tree_ld = yes ; then
27797      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
27798        gcc_cv_ld_sysroot=yes
27799      fi
27800  elif test x$gcc_cv_ld != x; then
27801    if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27802      gcc_cv_ld_sysroot=yes
27803    fi
27804  fi
27805fi
27806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27807$as_echo "$gcc_cv_ld_sysroot" >&6; }
27808if test x"$gcc_cv_ld_sysroot" = xyes; then
27809
27810$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27811
27812fi
27813
27814case $target in
27815*-*-solaris2*)
27816  # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
27817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
27818$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
27819if test "${gcc_cv_solaris_crts+set}" = set; then :
27820  $as_echo_n "(cached) " >&6
27821else
27822  gcc_cv_solaris_crts=no
27823     if test x$host != x$target; then
27824       if test "x$with_sysroot" = xyes; then
27825         target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
27826       else
27827         target_sysroot="${with_sysroot}"
27828       fi
27829     fi
27830     target_libdir="$target_sysroot/usr/lib"
27831     # At the time they were added, gcrt1.o became a symlink for backwards
27832     # compatibility on x86, while crt1.o was added on sparc, so check for that.
27833     case $target in
27834       i?86-*-solaris2* | x86_64-*-solaris2*)
27835         if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
27836	 ;;
27837       sparc*-*-solaris2*)
27838         if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
27839	 ;;
27840     esac
27841fi
27842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
27843$as_echo "$gcc_cv_solaris_crts" >&6; }
27844  ;;
27845esac
27846if test x$gcc_cv_solaris_crts = xyes; then
27847
27848$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
27849
27850fi
27851
27852# Test for stack protector support in target C library.
27853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27854$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27855if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27856  $as_echo_n "(cached) " >&6
27857else
27858  gcc_cv_libc_provides_ssp=no
27859    case "$target" in
27860       *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27861      # glibc 2.4 and later provides __stack_chk_fail and
27862      # either __stack_chk_guard, or TLS access to stack guard canary.
27863
27864if test $glibc_version_major -gt 2 \
27865  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27866  gcc_cv_libc_provides_ssp=yes
27867else
27868
27869      if test -f $target_header_dir/features.h \
27870	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
27871	    $target_header_dir/features.h > /dev/null; then
27872	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
27873	     $target_header_dir/features.h > /dev/null && \
27874	     test -f $target_header_dir/bits/uClibc_config.h && \
27875	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
27876	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
27877	  gcc_cv_libc_provides_ssp=yes
27878	fi
27879      # all versions of Bionic support stack protector
27880      elif test -f $target_header_dir/sys/cdefs.h \
27881        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
27882           $target_header_dir/sys/cdefs.h > /dev/null; then
27883         gcc_cv_libc_provides_ssp=yes
27884      fi
27885fi
27886	;;
27887       *-*-gnu*)
27888	 # Avoid complicated tests (see
27889	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27890	 # simply assert that glibc does provide this, which is true for all
27891	 # realistically usable GNU/Hurd configurations.
27892	 gcc_cv_libc_provides_ssp=yes;;
27893       *-*-darwin* | *-*-freebsd*)
27894	 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27895if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27896  gcc_cv_libc_provides_ssp=yes
27897else
27898  echo "no __stack_chk_fail on this target"
27899fi
27900
27901        ;;
27902  *) gcc_cv_libc_provides_ssp=no ;;
27903    esac
27904fi
27905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27906$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27907
27908if test x$gcc_cv_libc_provides_ssp = xyes; then
27909
27910$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27911
27912fi
27913
27914# Test for <sys/sdt.h> on the target.
27915
27916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27917$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27918have_sys_sdt_h=no
27919if test -f $target_header_dir/sys/sdt.h; then
27920  have_sys_sdt_h=yes
27921
27922$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27923
27924fi
27925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27926$as_echo "$have_sys_sdt_h" >&6; }
27927
27928# Check if TFmode long double should be used by default or not.
27929# Some glibc targets used DFmode long double, but with glibc 2.4
27930# and later they can use TFmode.
27931case "$target" in
27932  powerpc*-*-linux* | \
27933  sparc*-*-linux* | \
27934  s390*-*-linux* | \
27935  alpha*-*-linux*)
27936
27937# Check whether --with-long-double-128 was given.
27938if test "${with_long_double_128+set}" = set; then :
27939  withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27940else
27941
27942if test $glibc_version_major -gt 2 \
27943  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27944  gcc_cv_target_ldbl128=yes
27945else
27946
27947      gcc_cv_target_ldbl128=no
27948      grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
27949        $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27950      && gcc_cv_target_ldbl128=yes
27951
27952fi
27953fi
27954
27955    ;;
27956esac
27957if test x$gcc_cv_target_ldbl128 = xyes; then
27958
27959$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27960
27961fi
27962
27963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27964$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27965gcc_cv_target_dl_iterate_phdr=unknown
27966case "$target" in
27967  # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
27968  # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27969  # libdl there, both complicating its use and breaking compatibility
27970  # between Solaris 10 updates.
27971  *-*-solaris2.1[1-9]*)
27972    # <link.h> needs both a dl_iterate_phdr declaration and support for
27973    # compilation with largefile support.
27974    if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27975      && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27976      gcc_cv_target_dl_iterate_phdr=yes
27977    else
27978      gcc_cv_target_dl_iterate_phdr=no
27979    fi
27980    ;;
27981  *-*-dragonfly* | *-*-freebsd*)
27982    if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27983      gcc_cv_target_dl_iterate_phdr=yes
27984    else
27985      gcc_cv_target_dl_iterate_phdr=no
27986    fi
27987    ;;
27988esac
27989
27990if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27991
27992$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27993
27994fi
27995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27996$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27997
27998# We no longer support different GC mechanisms.  Emit an error if
27999# the user configures with --with-gc.
28000
28001# Check whether --with-gc was given.
28002if test "${with_gc+set}" = set; then :
28003  withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28004fi
28005
28006
28007# Libraries to use on the host.  This will normally be set by the top
28008# level Makefile.  Here we simply capture the value for our Makefile.
28009if test -z "${HOST_LIBS+set}"; then
28010  HOST_LIBS=
28011fi
28012
28013
28014# Use the system's zlib library.
28015zlibdir=-L../zlib
28016zlibinc="-I\$(srcdir)/../zlib"
28017
28018# Check whether --with-system-zlib was given.
28019if test "${with_system_zlib+set}" = set; then :
28020  withval=$with_system_zlib; zlibdir=
28021zlibinc=
28022
28023fi
28024
28025
28026
28027
28028
28029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28030$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28031    # Check whether --enable-maintainer-mode was given.
28032if test "${enable_maintainer_mode+set}" = set; then :
28033  enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28034else
28035  maintainer_mode=no
28036fi
28037
28038
28039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28040$as_echo "$maintainer_mode" >&6; }
28041
28042if test "$maintainer_mode" = "yes"; then
28043  MAINT=''
28044else
28045  MAINT='#'
28046fi
28047
28048
28049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28050$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28051  # Check whether --enable-link-mutex was given.
28052if test "${enable_link_mutex+set}" = set; then :
28053  enableval=$enable_link_mutex; do_link_mutex=$enableval
28054else
28055  do_link_mutex=no
28056fi
28057
28058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28059$as_echo "$do_link_mutex" >&6; }
28060
28061if test "$do_link_mutex" = "yes"; then
28062   DO_LINK_MUTEX=true
28063else
28064   DO_LINK_MUTEX=false
28065fi
28066
28067
28068# --------------
28069# Language hooks
28070# --------------
28071
28072# Make empty files to contain the specs and options for each language.
28073# Then add #include lines to for a compiler that has specs and/or options.
28074
28075subdirs=
28076lang_opt_files=
28077lang_specs_files=
28078lang_tree_files=
28079# These (without "all_") are set in each config-lang.in.
28080# `language' must be a single word so is spelled singularly.
28081all_languages=
28082all_compilers=
28083all_outputs='Makefile'
28084# List of language makefile fragments.
28085all_lang_makefrags=
28086# Additional files for gengtype
28087all_gtfiles="$target_gtfiles"
28088
28089# These are the languages that are set in --enable-languages,
28090# and are available in the GCC tree.
28091all_selected_languages=
28092
28093# Add the language fragments.
28094# Languages are added via two mechanisms.  Some information must be
28095# recorded in makefile variables, these are defined in config-lang.in.
28096# We accumulate them and plug them into the main Makefile.
28097# The other mechanism is a set of hooks for each of the main targets
28098# like `clean', `install', etc.
28099
28100language_hooks="Make-hooks"
28101
28102for lang in ${srcdir}/*/config-lang.in
28103do
28104	test "$lang" = "${srcdir}/*/config-lang.in" && continue
28105
28106        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
28107        if test "x$lang_alias" = x
28108        then
28109              echo "$lang doesn't set \$language." 1>&2
28110              exit 1
28111        fi
28112        subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28113        subdirs="$subdirs $subdir"
28114
28115	# $gcc_subdir is where the gcc integration files are to be found
28116	# for a language, both for internal compiler purposes (compiler
28117	# sources implementing front-end to GCC tree converters), and for
28118	# build infrastructure purposes (Make-lang.in, etc.)
28119	#
28120	# This will be <subdir> (relative to $srcdir) if a line like
28121	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28122	# is found in <langdir>/config-lang.in, and will remain <langdir>
28123	# otherwise.
28124	#
28125	# Except for the language alias (fetched above), the regular
28126	# "config-lang.in" contents are always retrieved from $gcc_subdir,
28127	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
28128	# only this and the language alias.
28129
28130        gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
28131        if [ "$gcc_subdir" = "" ]; then
28132           gcc_subdir="$subdir"
28133        fi
28134
28135        case ",$enable_languages," in
28136        *,$lang_alias,*)
28137            all_selected_languages="$all_selected_languages $lang_alias"
28138            if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28139                lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28140	    fi
28141	    ;;
28142        esac
28143
28144	language=
28145	boot_language=
28146	compilers=
28147	outputs=
28148	gtfiles=
28149	subdir_requires=
28150	. ${srcdir}/$gcc_subdir/config-lang.in
28151	if test "x$language" = x
28152	then
28153		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28154		exit 1
28155	fi
28156
28157	ok=:
28158        case ",$enable_languages," in
28159        	*,$lang_alias,*) ;;
28160		*)
28161			for i in $subdir_requires; do
28162				test -f "${srcdir}/$i/config-lang.in" && continue
28163				ok=false
28164				break
28165			done
28166		;;
28167	esac
28168	$ok || continue
28169
28170	all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28171	if test -f $srcdir/$gcc_subdir/lang.opt; then
28172	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28173	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28174	fi
28175	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28176	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28177	fi
28178	all_languages="$all_languages $language"
28179	all_compilers="$all_compilers $compilers"
28180	all_outputs="$all_outputs $outputs"
28181	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28182        case ",$enable_languages," in
28183        	*,lto,*)
28184
28185$as_echo "#define ENABLE_LTO 1" >>confdefs.h
28186
28187		    enable_lto=yes
28188
28189		    ;;
28190		*) ;;
28191	esac
28192done
28193
28194check_languages=
28195for language in $all_selected_languages
28196do
28197	check_languages="$check_languages check-$language"
28198done
28199
28200# We link each language in with a set of hooks, reached indirectly via
28201# lang.${target}.  Only do so for selected languages.
28202
28203rm -f Make-hooks
28204touch Make-hooks
28205target_list="all.cross start.encap rest.encap tags \
28206	install-common install-man install-info install-pdf install-html dvi \
28207	pdf html uninstall info man srcextra srcman srcinfo \
28208	mostlyclean clean distclean maintainer-clean install-plugin"
28209
28210for t in $target_list
28211do
28212	x=
28213	for lang in $all_selected_languages
28214	do
28215		x="$x $lang.$t"
28216	done
28217	echo "lang.$t: $x" >> Make-hooks
28218done
28219
28220# --------
28221# Option include files
28222# --------
28223
28224${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28225option_includes="option-includes.mk"
28226
28227
28228# --------
28229# UNSORTED
28230# --------
28231
28232# Create .gdbinit.
28233
28234echo "dir ." > .gdbinit
28235echo "dir ${srcdir}" >> .gdbinit
28236if test x$gdb_needs_out_file_path = xyes
28237then
28238	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28239fi
28240if test "x$subdirs" != x; then
28241	for s in $subdirs
28242	do
28243		echo "dir ${srcdir}/$s" >> .gdbinit
28244	done
28245fi
28246echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28247echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28248
28249# Put a breakpoint on __asan_report_error to help with debugging buffer
28250# overflow.
28251case "$CFLAGS" in
28252*-fsanitize=address*)
28253  echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28254  ;;
28255esac
28256
28257gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28258
28259
28260
28261# Find a directory in which to install a shared libgcc.
28262
28263# Check whether --enable-version-specific-runtime-libs was given.
28264if test "${enable_version_specific_runtime_libs+set}" = set; then :
28265  enableval=$enable_version_specific_runtime_libs;
28266fi
28267
28268
28269# Substitute configuration variables
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332# Echo link setup.
28333if test x${build} = x${host} ; then
28334  if test x${host} = x${target} ; then
28335    echo "Links are now set up to build a native compiler for ${target}." 1>&2
28336  else
28337    echo "Links are now set up to build a cross-compiler" 1>&2
28338    echo " from ${host} to ${target}." 1>&2
28339  fi
28340else
28341  if test x${host} = x${target} ; then
28342    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28343    echo " for ${target}." 1>&2
28344  else
28345    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28346    echo " from ${host} to ${target}." 1>&2
28347  fi
28348fi
28349
28350
28351
28352
28353
28354
28355if test "x${ISLLIBS}" != "x" ; then
28356
28357$as_echo "#define HAVE_isl 1" >>confdefs.h
28358
28359fi
28360
28361# Check whether isl_schedule_constraints_compute_schedule is available;
28362# it's new in ISL-0.13.
28363# Check whether isl_options_set_schedule_serialize_sccs is available;
28364# it's new in ISL-0.15.
28365if test "x${ISLLIBS}" != "x" ; then
28366  saved_CFLAGS="$CFLAGS"
28367  CFLAGS="$CFLAGS $ISLINC"
28368  saved_LIBS="$LIBS"
28369  LIBS="$LIBS $ISLLIBS $GMPLIBS"
28370
28371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28372$as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28374/* end confdefs.h.  */
28375#include <isl/schedule.h>
28376int
28377main ()
28378{
28379isl_schedule_constraints_compute_schedule (NULL);
28380  ;
28381  return 0;
28382}
28383_ACEOF
28384if ac_fn_c_try_link "$LINENO"; then :
28385  ac_has_isl_schedule_constraints_compute_schedule=yes
28386else
28387  ac_has_isl_schedule_constraints_compute_schedule=no
28388fi
28389rm -f core conftest.err conftest.$ac_objext \
28390    conftest$ac_exeext conftest.$ac_ext
28391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28392$as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28393
28394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28395$as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28397/* end confdefs.h.  */
28398#include <isl/schedule.h>
28399int
28400main ()
28401{
28402isl_options_set_schedule_serialize_sccs (NULL, 0);
28403  ;
28404  return 0;
28405}
28406_ACEOF
28407if ac_fn_c_try_link "$LINENO"; then :
28408  ac_has_isl_options_set_schedule_serialize_sccs=yes
28409else
28410  ac_has_isl_options_set_schedule_serialize_sccs=no
28411fi
28412rm -f core conftest.err conftest.$ac_objext \
28413    conftest$ac_exeext conftest.$ac_ext
28414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28415$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28416
28417  LIBS="$saved_LIBS"
28418  CFLAGS="$saved_CFLAGS"
28419
28420  if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28421
28422$as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28423
28424  fi
28425
28426  if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28427
28428$as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28429
28430  fi
28431fi
28432
28433# Check for plugin support
28434   # Check whether --enable-plugin was given.
28435if test "${enable_plugin+set}" = set; then :
28436  enableval=$enable_plugin; enable_plugin=$enableval
28437else
28438  enable_plugin=yes; default_plugin=yes
28439fi
28440
28441
28442   pluginlibs=
28443
28444   case "${host}" in
28445     *-*-darwin*)
28446       if test x$build = x$host; then
28447	 export_sym_check="nm${exeext} -g"
28448       elif test x$host = x$target; then
28449	 export_sym_check="$gcc_cv_nm -g"
28450       else
28451	 export_sym_check=
28452       fi
28453     ;;
28454     *)
28455       if test x$build = x$host; then
28456	 export_sym_check="objdump${exeext} -T"
28457       elif test x$host = x$target; then
28458	 export_sym_check="$gcc_cv_objdump -T"
28459       else
28460	 export_sym_check=
28461       fi
28462     ;;
28463   esac
28464
28465   if test x"$enable_plugin" = x"yes"; then
28466
28467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28468$as_echo_n "checking for exported symbols... " >&6; }
28469     if test "x$export_sym_check" != x; then
28470       echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28471       ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28472       if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28473	 : # No need to use a flag
28474	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28475$as_echo "yes" >&6; }
28476       else
28477	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28478$as_echo "yes" >&6; }
28479	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28480$as_echo_n "checking for -rdynamic... " >&6; }
28481	 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28482	 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28483	   plugin_rdynamic=yes
28484	   pluginlibs="-rdynamic"
28485	 else
28486	   plugin_rdynamic=no
28487	   enable_plugin=no
28488	 fi
28489	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28490$as_echo "$plugin_rdynamic" >&6; }
28491       fi
28492     else
28493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28494$as_echo "unable to check" >&6; }
28495     fi
28496
28497     # Check -ldl
28498     saved_LIBS="$LIBS"
28499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28500$as_echo_n "checking for library containing dlopen... " >&6; }
28501if test "${ac_cv_search_dlopen+set}" = set; then :
28502  $as_echo_n "(cached) " >&6
28503else
28504  ac_func_search_save_LIBS=$LIBS
28505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28506/* end confdefs.h.  */
28507
28508/* Override any GCC internal prototype to avoid an error.
28509   Use char because int might match the return type of a GCC
28510   builtin and then its argument prototype would still apply.  */
28511#ifdef __cplusplus
28512extern "C"
28513#endif
28514char dlopen ();
28515int
28516main ()
28517{
28518return dlopen ();
28519  ;
28520  return 0;
28521}
28522_ACEOF
28523for ac_lib in '' dl; do
28524  if test -z "$ac_lib"; then
28525    ac_res="none required"
28526  else
28527    ac_res=-l$ac_lib
28528    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28529  fi
28530  if ac_fn_c_try_link "$LINENO"; then :
28531  ac_cv_search_dlopen=$ac_res
28532fi
28533rm -f core conftest.err conftest.$ac_objext \
28534    conftest$ac_exeext
28535  if test "${ac_cv_search_dlopen+set}" = set; then :
28536  break
28537fi
28538done
28539if test "${ac_cv_search_dlopen+set}" = set; then :
28540
28541else
28542  ac_cv_search_dlopen=no
28543fi
28544rm conftest.$ac_ext
28545LIBS=$ac_func_search_save_LIBS
28546fi
28547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28548$as_echo "$ac_cv_search_dlopen" >&6; }
28549ac_res=$ac_cv_search_dlopen
28550if test "$ac_res" != no; then :
28551  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28552
28553fi
28554
28555     if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28556       pluginlibs="$pluginlibs -ldl"
28557     fi
28558     LIBS="$saved_LIBS"
28559
28560     # Check that we can build shared objects with -fPIC -shared
28561     saved_LDFLAGS="$LDFLAGS"
28562     saved_CFLAGS="$CFLAGS"
28563     case "${host}" in
28564       *-*-darwin*)
28565	 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28566	 CFLAGS="$CFLAGS -fPIC"
28567	 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28568       ;;
28569       *)
28570	 CFLAGS="$CFLAGS -fPIC"
28571	 LDFLAGS="$LDFLAGS -fPIC -shared"
28572       ;;
28573     esac
28574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28575$as_echo_n "checking for -fPIC -shared... " >&6; }
28576     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28577/* end confdefs.h.  */
28578extern int X;
28579int
28580main ()
28581{
28582return X == 0;
28583  ;
28584  return 0;
28585}
28586_ACEOF
28587if ac_fn_c_try_link "$LINENO"; then :
28588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28589$as_echo "yes" >&6; }; have_pic_shared=yes
28590else
28591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28592$as_echo "no" >&6; }; have_pic_shared=no
28593fi
28594rm -f core conftest.err conftest.$ac_objext \
28595    conftest$ac_exeext conftest.$ac_ext
28596     if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28597       pluginlibs=
28598       enable_plugin=no
28599     fi
28600     LDFLAGS="$saved_LDFLAGS"
28601     CFLAGS="$saved_CFLAGS"
28602
28603     # If plugin support had been requested but not available, fail.
28604     if test x"$enable_plugin" = x"no" ; then
28605       if test x"$default_plugin" != x"yes"; then
28606	 as_fn_error "
28607   Building GCC with plugin support requires a host that supports
28608   -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28609       fi
28610     fi
28611   fi
28612
28613
28614
28615if test x"$enable_plugin" = x"yes"; then
28616
28617$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28618
28619fi
28620
28621
28622# Enable --enable-host-shared
28623# Check whether --enable-host-shared was given.
28624if test "${enable_host_shared+set}" = set; then :
28625  enableval=$enable_host_shared; PICFLAG=-fPIC
28626else
28627  PICFLAG=
28628fi
28629
28630
28631
28632
28633
28634# Check whether --enable-libquadmath-support was given.
28635if test "${enable_libquadmath_support+set}" = set; then :
28636  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28637else
28638  ENABLE_LIBQUADMATH_SUPPORT=yes
28639fi
28640
28641if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28642
28643$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28644
28645fi
28646
28647
28648# Specify what hash style to use by default.
28649
28650# Check whether --with-linker-hash-style was given.
28651if test "${with_linker_hash_style+set}" = set; then :
28652  withval=$with_linker_hash_style; case x"$withval" in
28653   xsysv)
28654     LINKER_HASH_STYLE=sysv
28655     ;;
28656   xgnu)
28657     LINKER_HASH_STYLE=gnu
28658     ;;
28659   xboth)
28660     LINKER_HASH_STYLE=both
28661     ;;
28662   *)
28663     as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28664     ;;
28665 esac
28666else
28667  LINKER_HASH_STYLE=''
28668fi
28669
28670if test x"${LINKER_HASH_STYLE}" != x; then
28671
28672cat >>confdefs.h <<_ACEOF
28673#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28674_ACEOF
28675
28676fi
28677
28678# Specify what should be the default of -fdiagnostics-color option.
28679
28680# Check whether --with-diagnostics-color was given.
28681if test "${with_diagnostics_color+set}" = set; then :
28682  withval=$with_diagnostics_color; case x"$withval" in
28683   xnever)
28684     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28685     ;;
28686   xauto)
28687     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28688     ;;
28689   xauto-if-env)
28690     DIAGNOSTICS_COLOR_DEFAULT=-1
28691     ;;
28692   xalways)
28693     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28694     ;;
28695   *)
28696     as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28697     ;;
28698 esac
28699else
28700  DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28701fi
28702
28703
28704cat >>confdefs.h <<_ACEOF
28705#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28706_ACEOF
28707
28708
28709# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28710# of jit/jit-playback.c.
28711cat > gcc-driver-name.h <<EOF
28712#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28713EOF
28714
28715# Configure the subdirectories
28716# AC_CONFIG_SUBDIRS($subdirs)
28717
28718# Create the Makefile
28719# and configure language subdirectories
28720ac_config_files="$ac_config_files $all_outputs"
28721
28722
28723ac_config_commands="$ac_config_commands default"
28724
28725cat >confcache <<\_ACEOF
28726# This file is a shell script that caches the results of configure
28727# tests run on this system so they can be shared between configure
28728# scripts and configure runs, see configure's option --config-cache.
28729# It is not useful on other systems.  If it contains results you don't
28730# want to keep, you may remove or edit it.
28731#
28732# config.status only pays attention to the cache file if you give it
28733# the --recheck option to rerun configure.
28734#
28735# `ac_cv_env_foo' variables (set or unset) will be overridden when
28736# loading this file, other *unset* `ac_cv_foo' will be assigned the
28737# following values.
28738
28739_ACEOF
28740
28741# The following way of writing the cache mishandles newlines in values,
28742# but we know of no workaround that is simple, portable, and efficient.
28743# So, we kill variables containing newlines.
28744# Ultrix sh set writes to stderr and can't be redirected directly,
28745# and sets the high bit in the cache file unless we assign to the vars.
28746(
28747  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28748    eval ac_val=\$$ac_var
28749    case $ac_val in #(
28750    *${as_nl}*)
28751      case $ac_var in #(
28752      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28753$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28754      esac
28755      case $ac_var in #(
28756      _ | IFS | as_nl) ;; #(
28757      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28758      *) { eval $ac_var=; unset $ac_var;} ;;
28759      esac ;;
28760    esac
28761  done
28762
28763  (set) 2>&1 |
28764    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28765    *${as_nl}ac_space=\ *)
28766      # `set' does not quote correctly, so add quotes: double-quote
28767      # substitution turns \\\\ into \\, and sed turns \\ into \.
28768      sed -n \
28769	"s/'/'\\\\''/g;
28770	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28771      ;; #(
28772    *)
28773      # `set' quotes correctly as required by POSIX, so do not add quotes.
28774      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28775      ;;
28776    esac |
28777    sort
28778) |
28779  sed '
28780     /^ac_cv_env_/b end
28781     t clear
28782     :clear
28783     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28784     t end
28785     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28786     :end' >>confcache
28787if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28788  if test -w "$cache_file"; then
28789    test "x$cache_file" != "x/dev/null" &&
28790      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28791$as_echo "$as_me: updating cache $cache_file" >&6;}
28792    cat confcache >$cache_file
28793  else
28794    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28795$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28796  fi
28797fi
28798rm -f confcache
28799
28800test "x$prefix" = xNONE && prefix=$ac_default_prefix
28801# Let make expand exec_prefix.
28802test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28803
28804DEFS=-DHAVE_CONFIG_H
28805
28806ac_libobjs=
28807ac_ltlibobjs=
28808for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28809  # 1. Remove the extension, and $U if already installed.
28810  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28811  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28812  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28813  #    will be set to the directory where LIBOBJS objects are built.
28814  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28815  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28816done
28817LIBOBJS=$ac_libobjs
28818
28819LTLIBOBJS=$ac_ltlibobjs
28820
28821
28822
28823
28824: ${CONFIG_STATUS=./config.status}
28825ac_write_fail=0
28826ac_clean_files_save=$ac_clean_files
28827ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28828{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28829$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28830as_write_fail=0
28831cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28832#! $SHELL
28833# Generated by $as_me.
28834# Run this file to recreate the current configuration.
28835# Compiler output produced by configure, useful for debugging
28836# configure, is in config.log if it exists.
28837
28838debug=false
28839ac_cs_recheck=false
28840ac_cs_silent=false
28841
28842SHELL=\${CONFIG_SHELL-$SHELL}
28843export SHELL
28844_ASEOF
28845cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28846## -------------------- ##
28847## M4sh Initialization. ##
28848## -------------------- ##
28849
28850# Be more Bourne compatible
28851DUALCASE=1; export DUALCASE # for MKS sh
28852if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28853  emulate sh
28854  NULLCMD=:
28855  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28856  # is contrary to our usage.  Disable this feature.
28857  alias -g '${1+"$@"}'='"$@"'
28858  setopt NO_GLOB_SUBST
28859else
28860  case `(set -o) 2>/dev/null` in #(
28861  *posix*) :
28862    set -o posix ;; #(
28863  *) :
28864     ;;
28865esac
28866fi
28867
28868
28869as_nl='
28870'
28871export as_nl
28872# Printing a long string crashes Solaris 7 /usr/bin/printf.
28873as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28874as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28875as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28876# Prefer a ksh shell builtin over an external printf program on Solaris,
28877# but without wasting forks for bash or zsh.
28878if test -z "$BASH_VERSION$ZSH_VERSION" \
28879    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28880  as_echo='print -r --'
28881  as_echo_n='print -rn --'
28882elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28883  as_echo='printf %s\n'
28884  as_echo_n='printf %s'
28885else
28886  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28887    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28888    as_echo_n='/usr/ucb/echo -n'
28889  else
28890    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28891    as_echo_n_body='eval
28892      arg=$1;
28893      case $arg in #(
28894      *"$as_nl"*)
28895	expr "X$arg" : "X\\(.*\\)$as_nl";
28896	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28897      esac;
28898      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28899    '
28900    export as_echo_n_body
28901    as_echo_n='sh -c $as_echo_n_body as_echo'
28902  fi
28903  export as_echo_body
28904  as_echo='sh -c $as_echo_body as_echo'
28905fi
28906
28907# The user is always right.
28908if test "${PATH_SEPARATOR+set}" != set; then
28909  PATH_SEPARATOR=:
28910  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28911    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28912      PATH_SEPARATOR=';'
28913  }
28914fi
28915
28916
28917# IFS
28918# We need space, tab and new line, in precisely that order.  Quoting is
28919# there to prevent editors from complaining about space-tab.
28920# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28921# splitting by setting IFS to empty value.)
28922IFS=" ""	$as_nl"
28923
28924# Find who we are.  Look in the path if we contain no directory separator.
28925case $0 in #((
28926  *[\\/]* ) as_myself=$0 ;;
28927  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28928for as_dir in $PATH
28929do
28930  IFS=$as_save_IFS
28931  test -z "$as_dir" && as_dir=.
28932    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28933  done
28934IFS=$as_save_IFS
28935
28936     ;;
28937esac
28938# We did not find ourselves, most probably we were run as `sh COMMAND'
28939# in which case we are not to be found in the path.
28940if test "x$as_myself" = x; then
28941  as_myself=$0
28942fi
28943if test ! -f "$as_myself"; then
28944  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28945  exit 1
28946fi
28947
28948# Unset variables that we do not need and which cause bugs (e.g. in
28949# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28950# suppresses any "Segmentation fault" message there.  '((' could
28951# trigger a bug in pdksh 5.2.14.
28952for as_var in BASH_ENV ENV MAIL MAILPATH
28953do eval test x\${$as_var+set} = xset \
28954  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28955done
28956PS1='$ '
28957PS2='> '
28958PS4='+ '
28959
28960# NLS nuisances.
28961LC_ALL=C
28962export LC_ALL
28963LANGUAGE=C
28964export LANGUAGE
28965
28966# CDPATH.
28967(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28968
28969
28970# as_fn_error ERROR [LINENO LOG_FD]
28971# ---------------------------------
28972# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28973# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28974# script with status $?, using 1 if that was 0.
28975as_fn_error ()
28976{
28977  as_status=$?; test $as_status -eq 0 && as_status=1
28978  if test "$3"; then
28979    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28980    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28981  fi
28982  $as_echo "$as_me: error: $1" >&2
28983  as_fn_exit $as_status
28984} # as_fn_error
28985
28986
28987# as_fn_set_status STATUS
28988# -----------------------
28989# Set $? to STATUS, without forking.
28990as_fn_set_status ()
28991{
28992  return $1
28993} # as_fn_set_status
28994
28995# as_fn_exit STATUS
28996# -----------------
28997# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28998as_fn_exit ()
28999{
29000  set +e
29001  as_fn_set_status $1
29002  exit $1
29003} # as_fn_exit
29004
29005# as_fn_unset VAR
29006# ---------------
29007# Portably unset VAR.
29008as_fn_unset ()
29009{
29010  { eval $1=; unset $1;}
29011}
29012as_unset=as_fn_unset
29013# as_fn_append VAR VALUE
29014# ----------------------
29015# Append the text in VALUE to the end of the definition contained in VAR. Take
29016# advantage of any shell optimizations that allow amortized linear growth over
29017# repeated appends, instead of the typical quadratic growth present in naive
29018# implementations.
29019if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29020  eval 'as_fn_append ()
29021  {
29022    eval $1+=\$2
29023  }'
29024else
29025  as_fn_append ()
29026  {
29027    eval $1=\$$1\$2
29028  }
29029fi # as_fn_append
29030
29031# as_fn_arith ARG...
29032# ------------------
29033# Perform arithmetic evaluation on the ARGs, and store the result in the
29034# global $as_val. Take advantage of shells that can avoid forks. The arguments
29035# must be portable across $(()) and expr.
29036if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29037  eval 'as_fn_arith ()
29038  {
29039    as_val=$(( $* ))
29040  }'
29041else
29042  as_fn_arith ()
29043  {
29044    as_val=`expr "$@" || test $? -eq 1`
29045  }
29046fi # as_fn_arith
29047
29048
29049if expr a : '\(a\)' >/dev/null 2>&1 &&
29050   test "X`expr 00001 : '.*\(...\)'`" = X001; then
29051  as_expr=expr
29052else
29053  as_expr=false
29054fi
29055
29056if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29057  as_basename=basename
29058else
29059  as_basename=false
29060fi
29061
29062if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29063  as_dirname=dirname
29064else
29065  as_dirname=false
29066fi
29067
29068as_me=`$as_basename -- "$0" ||
29069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29070	 X"$0" : 'X\(//\)$' \| \
29071	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29072$as_echo X/"$0" |
29073    sed '/^.*\/\([^/][^/]*\)\/*$/{
29074	    s//\1/
29075	    q
29076	  }
29077	  /^X\/\(\/\/\)$/{
29078	    s//\1/
29079	    q
29080	  }
29081	  /^X\/\(\/\).*/{
29082	    s//\1/
29083	    q
29084	  }
29085	  s/.*/./; q'`
29086
29087# Avoid depending upon Character Ranges.
29088as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29089as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29090as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29091as_cr_digits='0123456789'
29092as_cr_alnum=$as_cr_Letters$as_cr_digits
29093
29094ECHO_C= ECHO_N= ECHO_T=
29095case `echo -n x` in #(((((
29096-n*)
29097  case `echo 'xy\c'` in
29098  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
29099  xy)  ECHO_C='\c';;
29100  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29101       ECHO_T='	';;
29102  esac;;
29103*)
29104  ECHO_N='-n';;
29105esac
29106
29107rm -f conf$$ conf$$.exe conf$$.file
29108if test -d conf$$.dir; then
29109  rm -f conf$$.dir/conf$$.file
29110else
29111  rm -f conf$$.dir
29112  mkdir conf$$.dir 2>/dev/null
29113fi
29114if (echo >conf$$.file) 2>/dev/null; then
29115  if ln -s conf$$.file conf$$ 2>/dev/null; then
29116    as_ln_s='ln -s'
29117    # ... but there are two gotchas:
29118    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29119    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29120    # In both cases, we have to default to `cp -p'.
29121    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29122      as_ln_s='cp -p'
29123  elif ln conf$$.file conf$$ 2>/dev/null; then
29124    as_ln_s=ln
29125  else
29126    as_ln_s='cp -p'
29127  fi
29128else
29129  as_ln_s='cp -p'
29130fi
29131rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29132rmdir conf$$.dir 2>/dev/null
29133
29134
29135# as_fn_mkdir_p
29136# -------------
29137# Create "$as_dir" as a directory, including parents if necessary.
29138as_fn_mkdir_p ()
29139{
29140
29141  case $as_dir in #(
29142  -*) as_dir=./$as_dir;;
29143  esac
29144  test -d "$as_dir" || eval $as_mkdir_p || {
29145    as_dirs=
29146    while :; do
29147      case $as_dir in #(
29148      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29149      *) as_qdir=$as_dir;;
29150      esac
29151      as_dirs="'$as_qdir' $as_dirs"
29152      as_dir=`$as_dirname -- "$as_dir" ||
29153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29154	 X"$as_dir" : 'X\(//\)[^/]' \| \
29155	 X"$as_dir" : 'X\(//\)$' \| \
29156	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29157$as_echo X"$as_dir" |
29158    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29159	    s//\1/
29160	    q
29161	  }
29162	  /^X\(\/\/\)[^/].*/{
29163	    s//\1/
29164	    q
29165	  }
29166	  /^X\(\/\/\)$/{
29167	    s//\1/
29168	    q
29169	  }
29170	  /^X\(\/\).*/{
29171	    s//\1/
29172	    q
29173	  }
29174	  s/.*/./; q'`
29175      test -d "$as_dir" && break
29176    done
29177    test -z "$as_dirs" || eval "mkdir $as_dirs"
29178  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29179
29180
29181} # as_fn_mkdir_p
29182if mkdir -p . 2>/dev/null; then
29183  as_mkdir_p='mkdir -p "$as_dir"'
29184else
29185  test -d ./-p && rmdir ./-p
29186  as_mkdir_p=false
29187fi
29188
29189if test -x / >/dev/null 2>&1; then
29190  as_test_x='test -x'
29191else
29192  if ls -dL / >/dev/null 2>&1; then
29193    as_ls_L_option=L
29194  else
29195    as_ls_L_option=
29196  fi
29197  as_test_x='
29198    eval sh -c '\''
29199      if test -d "$1"; then
29200	test -d "$1/.";
29201      else
29202	case $1 in #(
29203	-*)set "./$1";;
29204	esac;
29205	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29206	???[sx]*):;;*)false;;esac;fi
29207    '\'' sh
29208  '
29209fi
29210as_executable_p=$as_test_x
29211
29212# Sed expression to map a string onto a valid CPP name.
29213as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29214
29215# Sed expression to map a string onto a valid variable name.
29216as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29217
29218
29219exec 6>&1
29220## ----------------------------------- ##
29221## Main body of $CONFIG_STATUS script. ##
29222## ----------------------------------- ##
29223_ASEOF
29224test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29225
29226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29227# Save the log message, to keep $0 and so on meaningful, and to
29228# report actual input values of CONFIG_FILES etc. instead of their
29229# values after options handling.
29230ac_log="
29231This file was extended by $as_me, which was
29232generated by GNU Autoconf 2.64.  Invocation command line was
29233
29234  CONFIG_FILES    = $CONFIG_FILES
29235  CONFIG_HEADERS  = $CONFIG_HEADERS
29236  CONFIG_LINKS    = $CONFIG_LINKS
29237  CONFIG_COMMANDS = $CONFIG_COMMANDS
29238  $ $0 $@
29239
29240on `(hostname || uname -n) 2>/dev/null | sed 1q`
29241"
29242
29243_ACEOF
29244
29245case $ac_config_files in *"
29246"*) set x $ac_config_files; shift; ac_config_files=$*;;
29247esac
29248
29249case $ac_config_headers in *"
29250"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29251esac
29252
29253
29254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29255# Files that config.status was made for.
29256config_files="$ac_config_files"
29257config_headers="$ac_config_headers"
29258config_links="$ac_config_links"
29259config_commands="$ac_config_commands"
29260
29261_ACEOF
29262
29263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29264ac_cs_usage="\
29265\`$as_me' instantiates files and other configuration actions
29266from templates according to the current configuration.  Unless the files
29267and actions are specified as TAGs, all are instantiated by default.
29268
29269Usage: $0 [OPTION]... [TAG]...
29270
29271  -h, --help       print this help, then exit
29272  -V, --version    print version number and configuration settings, then exit
29273  -q, --quiet, --silent
29274                   do not print progress messages
29275  -d, --debug      don't remove temporary files
29276      --recheck    update $as_me by reconfiguring in the same conditions
29277      --file=FILE[:TEMPLATE]
29278                   instantiate the configuration file FILE
29279      --header=FILE[:TEMPLATE]
29280                   instantiate the configuration header FILE
29281
29282Configuration files:
29283$config_files
29284
29285Configuration headers:
29286$config_headers
29287
29288Configuration links:
29289$config_links
29290
29291Configuration commands:
29292$config_commands
29293
29294Report bugs to the package provider."
29295
29296_ACEOF
29297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29298ac_cs_version="\\
29299config.status
29300configured by $0, generated by GNU Autoconf 2.64,
29301  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29302
29303Copyright (C) 2009 Free Software Foundation, Inc.
29304This config.status script is free software; the Free Software Foundation
29305gives unlimited permission to copy, distribute and modify it."
29306
29307ac_pwd='$ac_pwd'
29308srcdir='$srcdir'
29309AWK='$AWK'
29310test -n "\$AWK" || AWK=awk
29311_ACEOF
29312
29313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29314# The default lists apply if the user does not specify any file.
29315ac_need_defaults=:
29316while test $# != 0
29317do
29318  case $1 in
29319  --*=*)
29320    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29321    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29322    ac_shift=:
29323    ;;
29324  *)
29325    ac_option=$1
29326    ac_optarg=$2
29327    ac_shift=shift
29328    ;;
29329  esac
29330
29331  case $ac_option in
29332  # Handling of the options.
29333  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29334    ac_cs_recheck=: ;;
29335  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29336    $as_echo "$ac_cs_version"; exit ;;
29337  --debug | --debu | --deb | --de | --d | -d )
29338    debug=: ;;
29339  --file | --fil | --fi | --f )
29340    $ac_shift
29341    case $ac_optarg in
29342    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29343    esac
29344    as_fn_append CONFIG_FILES " '$ac_optarg'"
29345    ac_need_defaults=false;;
29346  --header | --heade | --head | --hea )
29347    $ac_shift
29348    case $ac_optarg in
29349    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29350    esac
29351    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29352    ac_need_defaults=false;;
29353  --he | --h)
29354    # Conflict between --help and --header
29355    as_fn_error "ambiguous option: \`$1'
29356Try \`$0 --help' for more information.";;
29357  --help | --hel | -h )
29358    $as_echo "$ac_cs_usage"; exit ;;
29359  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29360  | -silent | --silent | --silen | --sile | --sil | --si | --s)
29361    ac_cs_silent=: ;;
29362
29363  # This is an error.
29364  -*) as_fn_error "unrecognized option: \`$1'
29365Try \`$0 --help' for more information." ;;
29366
29367  *) as_fn_append ac_config_targets " $1"
29368     ac_need_defaults=false ;;
29369
29370  esac
29371  shift
29372done
29373
29374ac_configure_extra_args=
29375
29376if $ac_cs_silent; then
29377  exec 6>/dev/null
29378  ac_configure_extra_args="$ac_configure_extra_args --silent"
29379fi
29380
29381_ACEOF
29382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29383if \$ac_cs_recheck; then
29384  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29385  shift
29386  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29387  CONFIG_SHELL='$SHELL'
29388  export CONFIG_SHELL
29389  exec "\$@"
29390fi
29391
29392_ACEOF
29393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29394exec 5>>config.log
29395{
29396  echo
29397  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29398## Running $as_me. ##
29399_ASBOX
29400  $as_echo "$ac_log"
29401} >&5
29402
29403_ACEOF
29404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29405#
29406# INIT-COMMANDS
29407#
29408ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29409subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29410subdirs='$subdirs'
29411
29412_ACEOF
29413
29414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29415
29416# Handling of arguments.
29417for ac_config_target in $ac_config_targets
29418do
29419  case $ac_config_target in
29420    "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29421    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29422    "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29423    "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29424    "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29425    "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29426    "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29427    "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29428    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29429
29430  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29431  esac
29432done
29433
29434
29435# If the user did not use the arguments to specify the items to instantiate,
29436# then the envvar interface is used.  Set only those that are not.
29437# We use the long form for the default assignment because of an extremely
29438# bizarre bug on SunOS 4.1.3.
29439if $ac_need_defaults; then
29440  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29441  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29442  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29443  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29444fi
29445
29446# Have a temporary directory for convenience.  Make it in the build tree
29447# simply because there is no reason against having it here, and in addition,
29448# creating and moving files from /tmp can sometimes cause problems.
29449# Hook for its removal unless debugging.
29450# Note that there is a small window in which the directory will not be cleaned:
29451# after its creation but before its name has been assigned to `$tmp'.
29452$debug ||
29453{
29454  tmp=
29455  trap 'exit_status=$?
29456  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29457' 0
29458  trap 'as_fn_exit 1' 1 2 13 15
29459}
29460# Create a (secure) tmp directory for tmp files.
29461
29462{
29463  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29464  test -n "$tmp" && test -d "$tmp"
29465}  ||
29466{
29467  tmp=./conf$$-$RANDOM
29468  (umask 077 && mkdir "$tmp")
29469} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29470
29471# Set up the scripts for CONFIG_FILES section.
29472# No need to generate them if there are no CONFIG_FILES.
29473# This happens for instance with `./config.status config.h'.
29474if test -n "$CONFIG_FILES"; then
29475
29476if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29477  ac_cs_awk_getline=:
29478  ac_cs_awk_pipe_init=
29479  ac_cs_awk_read_file='
29480      while ((getline aline < (F[key])) > 0)
29481	print(aline)
29482      close(F[key])'
29483  ac_cs_awk_pipe_fini=
29484else
29485  ac_cs_awk_getline=false
29486  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29487  ac_cs_awk_read_file='
29488      print "|#_!!_#|"
29489      print "cat " F[key] " &&"
29490      '$ac_cs_awk_pipe_init
29491  # The final `:' finishes the AND list.
29492  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29493fi
29494ac_cr=`echo X | tr X '\015'`
29495# On cygwin, bash can eat \r inside `` if the user requested igncr.
29496# But we know of no other shell where ac_cr would be empty at this
29497# point, so we can use a bashism as a fallback.
29498if test "x$ac_cr" = x; then
29499  eval ac_cr=\$\'\\r\'
29500fi
29501ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29502if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29503  ac_cs_awk_cr='\r'
29504else
29505  ac_cs_awk_cr=$ac_cr
29506fi
29507
29508echo 'BEGIN {' >"$tmp/subs1.awk" &&
29509_ACEOF
29510
29511# Create commands to substitute file output variables.
29512{
29513  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29514  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29515  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29516  echo "_ACAWK" &&
29517  echo "_ACEOF"
29518} >conf$$files.sh &&
29519. ./conf$$files.sh ||
29520  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29521rm -f conf$$files.sh
29522
29523{
29524  echo "cat >conf$$subs.awk <<_ACEOF" &&
29525  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29526  echo "_ACEOF"
29527} >conf$$subs.sh ||
29528  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29529ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29530ac_delim='%!_!# '
29531for ac_last_try in false false false false false :; do
29532  . ./conf$$subs.sh ||
29533    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29534
29535  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29536  if test $ac_delim_n = $ac_delim_num; then
29537    break
29538  elif $ac_last_try; then
29539    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29540  else
29541    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29542  fi
29543done
29544rm -f conf$$subs.sh
29545
29546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29547cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29548_ACEOF
29549sed -n '
29550h
29551s/^/S["/; s/!.*/"]=/
29552p
29553g
29554s/^[^!]*!//
29555:repl
29556t repl
29557s/'"$ac_delim"'$//
29558t delim
29559:nl
29560h
29561s/\(.\{148\}\).*/\1/
29562t more1
29563s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29564p
29565n
29566b repl
29567:more1
29568s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29569p
29570g
29571s/.\{148\}//
29572t nl
29573:delim
29574h
29575s/\(.\{148\}\).*/\1/
29576t more2
29577s/["\\]/\\&/g; s/^/"/; s/$/"/
29578p
29579b
29580:more2
29581s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29582p
29583g
29584s/.\{148\}//
29585t delim
29586' <conf$$subs.awk | sed '
29587/^[^""]/{
29588  N
29589  s/\n//
29590}
29591' >>$CONFIG_STATUS || ac_write_fail=1
29592rm -f conf$$subs.awk
29593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29594_ACAWK
29595cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29596  for (key in S) S_is_set[key] = 1
29597  FS = ""
29598  \$ac_cs_awk_pipe_init
29599}
29600{
29601  line = $ 0
29602  nfields = split(line, field, "@")
29603  substed = 0
29604  len = length(field[1])
29605  for (i = 2; i < nfields; i++) {
29606    key = field[i]
29607    keylen = length(key)
29608    if (S_is_set[key]) {
29609      value = S[key]
29610      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29611      len += length(value) + length(field[++i])
29612      substed = 1
29613    } else
29614      len += 1 + keylen
29615  }
29616  if (nfields == 3 && !substed) {
29617    key = field[2]
29618    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
29619      \$ac_cs_awk_read_file
29620      next
29621    }
29622  }
29623  print line
29624}
29625\$ac_cs_awk_pipe_fini
29626_ACAWK
29627_ACEOF
29628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29629if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29630  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29631else
29632  cat
29633fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29634  || as_fn_error "could not setup config files machinery" "$LINENO" 5
29635_ACEOF
29636
29637# VPATH may cause trouble with some makes, so we remove $(srcdir),
29638# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29639# trailing colons and then remove the whole line if VPATH becomes empty
29640# (actually we leave an empty line to preserve line numbers).
29641if test "x$srcdir" = x.; then
29642  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
29643s/:*\$(srcdir):*/:/
29644s/:*\${srcdir}:*/:/
29645s/:*@srcdir@:*/:/
29646s/^\([^=]*=[	 ]*\):*/\1/
29647s/:*$//
29648s/^[^=]*=[	 ]*$//
29649}'
29650fi
29651
29652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29653fi # test -n "$CONFIG_FILES"
29654
29655# Set up the scripts for CONFIG_HEADERS section.
29656# No need to generate them if there are no CONFIG_HEADERS.
29657# This happens for instance with `./config.status Makefile'.
29658if test -n "$CONFIG_HEADERS"; then
29659cat >"$tmp/defines.awk" <<\_ACAWK ||
29660BEGIN {
29661_ACEOF
29662
29663# Transform confdefs.h into an awk script `defines.awk', embedded as
29664# here-document in config.status, that substitutes the proper values into
29665# config.h.in to produce config.h.
29666
29667# Create a delimiter string that does not exist in confdefs.h, to ease
29668# handling of long lines.
29669ac_delim='%!_!# '
29670for ac_last_try in false false :; do
29671  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29672  if test -z "$ac_t"; then
29673    break
29674  elif $ac_last_try; then
29675    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29676  else
29677    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29678  fi
29679done
29680
29681# For the awk script, D is an array of macro values keyed by name,
29682# likewise P contains macro parameters if any.  Preserve backslash
29683# newline sequences.
29684
29685ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29686sed -n '
29687s/.\{148\}/&'"$ac_delim"'/g
29688t rset
29689:rset
29690s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29691t def
29692d
29693:def
29694s/\\$//
29695t bsnl
29696s/["\\]/\\&/g
29697s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29698D["\1"]=" \3"/p
29699s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29700d
29701:bsnl
29702s/["\\]/\\&/g
29703s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29704D["\1"]=" \3\\\\\\n"\\/p
29705t cont
29706s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29707t cont
29708d
29709:cont
29710n
29711s/.\{148\}/&'"$ac_delim"'/g
29712t clear
29713:clear
29714s/\\$//
29715t bsnlc
29716s/["\\]/\\&/g; s/^/"/; s/$/"/p
29717d
29718:bsnlc
29719s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29720b cont
29721' <confdefs.h | sed '
29722s/'"$ac_delim"'/"\\\
29723"/g' >>$CONFIG_STATUS || ac_write_fail=1
29724
29725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29726  for (key in D) D_is_set[key] = 1
29727  FS = ""
29728}
29729/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29730  line = \$ 0
29731  split(line, arg, " ")
29732  if (arg[1] == "#") {
29733    defundef = arg[2]
29734    mac1 = arg[3]
29735  } else {
29736    defundef = substr(arg[1], 2)
29737    mac1 = arg[2]
29738  }
29739  split(mac1, mac2, "(") #)
29740  macro = mac2[1]
29741  prefix = substr(line, 1, index(line, defundef) - 1)
29742  if (D_is_set[macro]) {
29743    # Preserve the white space surrounding the "#".
29744    print prefix "define", macro P[macro] D[macro]
29745    next
29746  } else {
29747    # Replace #undef with comments.  This is necessary, for example,
29748    # in the case of _POSIX_SOURCE, which is predefined and required
29749    # on some systems where configure will not decide to define it.
29750    if (defundef == "undef") {
29751      print "/*", prefix defundef, macro, "*/"
29752      next
29753    }
29754  }
29755}
29756{ print }
29757_ACAWK
29758_ACEOF
29759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29760  as_fn_error "could not setup config headers machinery" "$LINENO" 5
29761fi # test -n "$CONFIG_HEADERS"
29762
29763
29764eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29765shift
29766for ac_tag
29767do
29768  case $ac_tag in
29769  :[FHLC]) ac_mode=$ac_tag; continue;;
29770  esac
29771  case $ac_mode$ac_tag in
29772  :[FHL]*:*);;
29773  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29774  :[FH]-) ac_tag=-:-;;
29775  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29776  esac
29777  ac_save_IFS=$IFS
29778  IFS=:
29779  set x $ac_tag
29780  IFS=$ac_save_IFS
29781  shift
29782  ac_file=$1
29783  shift
29784
29785  case $ac_mode in
29786  :L) ac_source=$1;;
29787  :[FH])
29788    ac_file_inputs=
29789    for ac_f
29790    do
29791      case $ac_f in
29792      -) ac_f="$tmp/stdin";;
29793      *) # Look for the file first in the build tree, then in the source tree
29794	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29795	 # because $ac_f cannot contain `:'.
29796	 test -f "$ac_f" ||
29797	   case $ac_f in
29798	   [\\/$]*) false;;
29799	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29800	   esac ||
29801	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29802      esac
29803      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29804      as_fn_append ac_file_inputs " '$ac_f'"
29805    done
29806
29807    # Let's still pretend it is `configure' which instantiates (i.e., don't
29808    # use $as_me), people would be surprised to read:
29809    #    /* config.h.  Generated by config.status.  */
29810    configure_input='Generated from '`
29811	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29812	`' by configure.'
29813    if test x"$ac_file" != x-; then
29814      configure_input="$ac_file.  $configure_input"
29815      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29816$as_echo "$as_me: creating $ac_file" >&6;}
29817    fi
29818    # Neutralize special characters interpreted by sed in replacement strings.
29819    case $configure_input in #(
29820    *\&* | *\|* | *\\* )
29821       ac_sed_conf_input=`$as_echo "$configure_input" |
29822       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29823    *) ac_sed_conf_input=$configure_input;;
29824    esac
29825
29826    case $ac_tag in
29827    *:-:* | *:-) cat >"$tmp/stdin" \
29828      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29829    esac
29830    ;;
29831  esac
29832
29833  ac_dir=`$as_dirname -- "$ac_file" ||
29834$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29835	 X"$ac_file" : 'X\(//\)[^/]' \| \
29836	 X"$ac_file" : 'X\(//\)$' \| \
29837	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29838$as_echo X"$ac_file" |
29839    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29840	    s//\1/
29841	    q
29842	  }
29843	  /^X\(\/\/\)[^/].*/{
29844	    s//\1/
29845	    q
29846	  }
29847	  /^X\(\/\/\)$/{
29848	    s//\1/
29849	    q
29850	  }
29851	  /^X\(\/\).*/{
29852	    s//\1/
29853	    q
29854	  }
29855	  s/.*/./; q'`
29856  as_dir="$ac_dir"; as_fn_mkdir_p
29857  ac_builddir=.
29858
29859case "$ac_dir" in
29860.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29861*)
29862  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29863  # A ".." for each directory in $ac_dir_suffix.
29864  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29865  case $ac_top_builddir_sub in
29866  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29867  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29868  esac ;;
29869esac
29870ac_abs_top_builddir=$ac_pwd
29871ac_abs_builddir=$ac_pwd$ac_dir_suffix
29872# for backward compatibility:
29873ac_top_builddir=$ac_top_build_prefix
29874
29875case $srcdir in
29876  .)  # We are building in place.
29877    ac_srcdir=.
29878    ac_top_srcdir=$ac_top_builddir_sub
29879    ac_abs_top_srcdir=$ac_pwd ;;
29880  [\\/]* | ?:[\\/]* )  # Absolute name.
29881    ac_srcdir=$srcdir$ac_dir_suffix;
29882    ac_top_srcdir=$srcdir
29883    ac_abs_top_srcdir=$srcdir ;;
29884  *) # Relative name.
29885    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29886    ac_top_srcdir=$ac_top_build_prefix$srcdir
29887    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29888esac
29889ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29890
29891
29892  case $ac_mode in
29893  :F)
29894  #
29895  # CONFIG_FILE
29896  #
29897
29898_ACEOF
29899
29900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29901# If the template does not know about datarootdir, expand it.
29902# FIXME: This hack should be removed a few years after 2.60.
29903ac_datarootdir_hack=; ac_datarootdir_seen=
29904ac_sed_dataroot='
29905/datarootdir/ {
29906  p
29907  q
29908}
29909/@datadir@/p
29910/@docdir@/p
29911/@infodir@/p
29912/@localedir@/p
29913/@mandir@/p'
29914case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29915*datarootdir*) ac_datarootdir_seen=yes;;
29916*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29917  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29918$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29919_ACEOF
29920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29921  ac_datarootdir_hack='
29922  s&@datadir@&$datadir&g
29923  s&@docdir@&$docdir&g
29924  s&@infodir@&$infodir&g
29925  s&@localedir@&$localedir&g
29926  s&@mandir@&$mandir&g
29927  s&\\\${datarootdir}&$datarootdir&g' ;;
29928esac
29929_ACEOF
29930
29931# Neutralize VPATH when `$srcdir' = `.'.
29932# Shell code in configure.ac might set extrasub.
29933# FIXME: do we really want to maintain this feature?
29934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29935ac_sed_extra="$ac_vpsub
29936$extrasub
29937_ACEOF
29938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29939:t
29940/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29941s|@configure_input@|$ac_sed_conf_input|;t t
29942s&@top_builddir@&$ac_top_builddir_sub&;t t
29943s&@top_build_prefix@&$ac_top_build_prefix&;t t
29944s&@srcdir@&$ac_srcdir&;t t
29945s&@abs_srcdir@&$ac_abs_srcdir&;t t
29946s&@top_srcdir@&$ac_top_srcdir&;t t
29947s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29948s&@builddir@&$ac_builddir&;t t
29949s&@abs_builddir@&$ac_abs_builddir&;t t
29950s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29951$ac_datarootdir_hack
29952"
29953eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29954if $ac_cs_awk_getline; then
29955  $AWK -f "$tmp/subs.awk"
29956else
29957  $AWK -f "$tmp/subs.awk" | $SHELL
29958fi >$tmp/out \
29959  || as_fn_error "could not create $ac_file" "$LINENO" 5
29960
29961test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29962  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29963  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29964  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29965which seems to be undefined.  Please make sure it is defined." >&5
29966$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29967which seems to be undefined.  Please make sure it is defined." >&2;}
29968
29969  rm -f "$tmp/stdin"
29970  case $ac_file in
29971  -) cat "$tmp/out" && rm -f "$tmp/out";;
29972  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29973  esac \
29974  || as_fn_error "could not create $ac_file" "$LINENO" 5
29975 ;;
29976  :H)
29977  #
29978  # CONFIG_HEADER
29979  #
29980  if test x"$ac_file" != x-; then
29981    {
29982      $as_echo "/* $configure_input  */" \
29983      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29984    } >"$tmp/config.h" \
29985      || as_fn_error "could not create $ac_file" "$LINENO" 5
29986    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29987      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29988$as_echo "$as_me: $ac_file is unchanged" >&6;}
29989    else
29990      rm -f "$ac_file"
29991      mv "$tmp/config.h" "$ac_file" \
29992	|| as_fn_error "could not create $ac_file" "$LINENO" 5
29993    fi
29994  else
29995    $as_echo "/* $configure_input  */" \
29996      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29997      || as_fn_error "could not create -" "$LINENO" 5
29998  fi
29999 ;;
30000  :L)
30001  #
30002  # CONFIG_LINK
30003  #
30004
30005  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30006    :
30007  else
30008    # Prefer the file from the source tree if names are identical.
30009    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30010      ac_source=$srcdir/$ac_source
30011    fi
30012
30013    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30014$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30015
30016    if test ! -r "$ac_source"; then
30017      as_fn_error "$ac_source: file not found" "$LINENO" 5
30018    fi
30019    rm -f "$ac_file"
30020
30021    # Try a relative symlink, then a hard link, then a copy.
30022    case $srcdir in
30023    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30024	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30025    esac
30026    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30027      ln "$ac_source" "$ac_file" 2>/dev/null ||
30028      cp -p "$ac_source" "$ac_file" ||
30029      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30030  fi
30031 ;;
30032  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30033$as_echo "$as_me: executing $ac_file commands" >&6;}
30034 ;;
30035  esac
30036
30037
30038  case $ac_file$ac_mode in
30039    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30040    "gccdepdir":C)
30041  ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30042  for lang in $subdirs c-family common
30043  do
30044      ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30045  done ;;
30046    "as":F) chmod +x as ;;
30047    "collect-ld":F) chmod +x collect-ld ;;
30048    "nm":F) chmod +x nm ;;
30049    "default":C)
30050case ${CONFIG_HEADERS} in
30051  *auto-host.h:config.in*)
30052  echo > cstamp-h ;;
30053esac
30054# Make sure all the subdirs exist.
30055for d in $subdirs doc build common c-family
30056do
30057    test -d $d || mkdir $d
30058done
30059 ;;
30060
30061  esac
30062done # for ac_tag
30063
30064
30065as_fn_exit 0
30066_ACEOF
30067ac_clean_files=$ac_clean_files_save
30068
30069test $ac_write_fail = 0 ||
30070  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30071
30072
30073# configure is writing to config.log, and then calls config.status.
30074# config.status does its own redirection, appending to config.log.
30075# Unfortunately, on DOS this fails, as config.log is still kept open
30076# by configure, so config.status won't be able to write to it; its
30077# output is simply discarded.  So we exec the FD to /dev/null,
30078# effectively closing config.log, so it can be properly (re)opened and
30079# appended to by config.status.  When coming back to configure, we
30080# need to make the FD available again.
30081if test "$no_create" != yes; then
30082  ac_cs_success=:
30083  ac_config_status_args=
30084  test "$silent" = yes &&
30085    ac_config_status_args="$ac_config_status_args --quiet"
30086  exec 5>/dev/null
30087  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30088  exec 5>>config.log
30089  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30090  # would make configure fail if this is the last instruction.
30091  $ac_cs_success || as_fn_exit $?
30092fi
30093if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30094  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30095$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30096fi
30097
30098
30099