1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
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.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="tree.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
634NO_PIE_FLAG
635NO_PIE_CFLAGS
636enable_default_pie
637PICFLAG
638enable_host_shared
639enable_plugin
640pluginlibs
641ISLINC
642ISLLIBS
643GMPINC
644GMPLIBS
645target_cpu_default
646d_target_objs
647fortran_target_objs
648cxx_target_objs
649c_target_objs
650use_gcc_stdint
651xm_defines
652xm_include_list
653xm_file_list
654tm_d_include_list
655tm_d_file_list
656tm_p_include_list
657tm_p_file_list
658tm_defines
659tm_include_list
660tm_file_list
661common_out_object_file
662common_out_file
663out_object_file
664out_file
665objc_boehm_gc
666md_file
667local_prefix
668lang_tree_files
669lang_specs_files
670lang_opt_files
671install
672out_host_hook_obj
673host_xm_defines
674host_xm_include_list
675host_xm_file_list
676host_exeext
677gcc_gxx_include_dir_add_sysroot
678gcc_gxx_include_dir
679gcc_config_arguments
680float_h_file
681extra_programs
682extra_objs
683extra_headers_list
684user_headers_inc_next_post
685user_headers_inc_next_pre
686extra_gcc_objs
687TM_MULTILIB_EXCEPTIONS_CONFIG
688TM_MULTILIB_CONFIG
689TM_ENDIAN_CONFIG
690tmake_file
691xmake_file
692cpp_install_dir
693selftest_languages
694check_languages
695build_file_translate
696build_xm_defines
697build_xm_include_list
698build_xm_file_list
699build_install_headers_dir
700build_exeext
701all_selected_languages
702all_languages
703all_lang_makefrags
704all_lang_configurefrags
705all_gtfiles
706all_compilers
707srcdir
708subdirs
709dollar
710gcc_tooldir
711enable_lto
712DO_LINK_MUTEX
713MAINT
714zlibinc
715zlibdir
716HOST_LIBS
717enable_default_ssp
718thin_archive_support
719ld_soname_option
720ld_version_script_option
721libgcc_visibility
722gcc_cv_otool
723gcc_cv_readelf
724gcc_cv_objdump
725ORIGINAL_NM_FOR_TARGET
726gcc_cv_nm
727ORIGINAL_LD_GOLD_FOR_TARGET
728ORIGINAL_LD_BFD_FOR_TARGET
729ORIGINAL_LD_FOR_TARGET
730ORIGINAL_PLUGIN_LD_FOR_TARGET
731gcc_cv_ld
732ORIGINAL_AS_FOR_TARGET
733gcc_cv_as
734enable_fast_install
735objdir
736OTOOL64
737OTOOL
738LIPO
739NMEDIT
740DSYMUTIL
741STRIP
742OBJDUMP
743ac_ct_DUMPBIN
744DUMPBIN
745LD
746FGREP
747SED
748LIBTOOL
749collect2
750NO_PIE_FLAG_FOR_BUILD
751NO_PIE_CFLAGS_FOR_BUILD
752BUILD_NO_PIE_FLAG
753BUILD_NO_PIE_CFLAGS
754STMP_FIXINC
755BUILD_LDFLAGS
756BUILD_CXXFLAGS
757BUILD_CFLAGS
758CXX_FOR_BUILD
759CC_FOR_BUILD
760inhibit_libc
761BUILD_SYSTEM_HEADER_DIR
762SYSTEM_HEADER_DIR
763ALL
764CROSS
765CATOBJEXT
766GENCAT
767INSTOBJEXT
768DATADIRNAME
769CATALOGS
770POSUB
771GMSGFMT
772XGETTEXT
773INCINTL
774LIBINTL_DEP
775LIBINTL
776USE_NLS
777get_gcc_base_ver
778HAVE_AUTO_BUILD
779extra_opt_files
780extra_modes_file
781NATIVE_SYSTEM_HEADER_DIR
782objext
783manext
784LIBICONV_DEP
785LTLIBICONV
786LIBICONV
787ZSTD_LIB
788ZSTD_INCLUDE
789DL_LIB
790LDEXP_LIB
791EXTRA_GCC_LIBS
792GNAT_LIBEXC
793COLLECT2_LIBS
794CXXDEPMODE
795DEPDIR
796am__leading_dot
797doc_build_sys
798AR
799NM
800BISON
801FLEX
802GENERATED_MANPAGES
803BUILD_INFO
804MAKEINFO
805have_mktemp_command
806make_compare_target
807INSTALL_DATA
808INSTALL_PROGRAM
809INSTALL
810ranlib_flags
811RANLIB
812LN
813LN_S
814AWK
815SET_MAKE
816omp_device_property_deps
817omp_device_properties
818accel_dir_suffix
819real_target_noncanonical
820enable_as_accelerator
821gnat_install_lib
822REPORT_BUGS_TEXI
823REPORT_BUGS_TO
824PKGVERSION
825CONFIGURE_SPECS
826enable_gcov
827enable_shared
828enable_fixed_point
829enable_decimal_float
830with_float
831with_cpu
832enable_multiarch
833enable_multilib
834coverage_flags
835valgrind_command
836valgrind_path_defines
837valgrind_path
838TREECHECKING
839nocommon_flag
840noexception_flags
841warn_cxxflags
842warn_cflags
843c_strict_warn
844strict_warn
845c_loose_warn
846loose_warn
847aliasing_flags
848CPP
849EGREP
850GREP
851CXXCPP
852PICFLAG_FOR_TARGET
853GNATMAKE
854GNATBIND
855ac_ct_CXX
856CXXFLAGS
857CXX
858OBJEXT
859EXEEXT
860ac_ct_CC
861CPPFLAGS
862LDFLAGS
863CFLAGS
864CC
865GENINSRC
866CROSS_SYSTEM_HEADER_DIR
867TARGET_SYSTEM_ROOT_DEFINE
868TARGET_SYSTEM_ROOT
869SYSROOT_CFLAGS_FOR_TARGET
870target_subdir
871host_subdir
872build_subdir
873build_libsubdir
874target_noncanonical
875host_noncanonical
876target_os
877target_vendor
878target_cpu
879target
880host_os
881host_vendor
882host_cpu
883host
884build_os
885build_vendor
886build_cpu
887build
888target_alias
889host_alias
890build_alias
891LIBS
892ECHO_T
893ECHO_N
894ECHO_C
895DEFS
896mandir
897localedir
898libdir
899psdir
900pdfdir
901dvidir
902htmldir
903infodir
904docdir
905oldincludedir
906includedir
907localstatedir
908sharedstatedir
909sysconfdir
910datadir
911datarootdir
912libexecdir
913sbindir
914bindir
915program_transform_name
916prefix
917exec_prefix
918PACKAGE_URL
919PACKAGE_BUGREPORT
920PACKAGE_STRING
921PACKAGE_VERSION
922PACKAGE_TARNAME
923PACKAGE_NAME
924PATH_SEPARATOR
925SHELL'
926ac_subst_files='option_includes
927language_hooks'
928ac_user_opts='
929enable_option_checking
930with_build_libsubdir
931with_local_prefix
932with_native_system_header_dir
933with_build_sysroot
934with_sysroot
935with_gxx_include_dir
936with_cpp_install_dir
937enable_generated_files_in_srcdir
938with_gnu_ld
939with_ld
940with_demangler_in_ld
941with_gnu_as
942with_as
943enable_largefile
944enable_build_format_warnings
945enable_werror_always
946enable_checking
947enable_coverage
948enable_gather_detailed_mem_stats
949enable_valgrind_annotations
950with_stabs
951enable_multilib
952enable_multiarch
953with_stack_clash_protection_guard_size
954enable___cxa_atexit
955enable_decimal_float
956enable_fixed_point
957enable_threads
958enable_tls
959enable_vtable_verify
960enable_analyzer
961enable_objc_gc
962with_dwarf2
963enable_shared
964enable_gcov
965with_specs
966with_pkgversion
967with_bugurl
968with_documentation_root_url
969with_changes_root_url
970enable_languages
971with_multilib_list
972with_zstd
973with_zstd_include
974with_zstd_lib
975enable_rpath
976with_libiconv_prefix
977with_libiconv_type
978enable_sjlj_exceptions
979with_gcc_major_version_only
980enable_secureplt
981enable_mingw_wildcard
982enable_large_address_aware
983enable_leading_mingw64_underscores
984enable_cld
985enable_frame_pointer
986enable_win32_registry
987enable_static
988with_pic
989enable_fast_install
990enable_libtool_lock
991enable_ld
992enable_gold
993with_plugin_ld
994enable_gnu_indirect_function
995enable_initfini_array
996enable_comdat
997enable_newlib_nano_formatted_io
998enable_standard_branch_protection
999enable_fix_cortex_a53_835769
1000enable_fix_cortex_a53_843419
1001with_glibc_version
1002enable_gnu_unique_object
1003enable_linker_build_id
1004enable_libssp
1005enable_default_ssp
1006with_long_double_128
1007with_long_double_format
1008with_gc
1009with_system_zlib
1010enable_maintainer_mode
1011enable_link_mutex
1012enable_version_specific_runtime_libs
1013enable_plugin
1014enable_host_shared
1015enable_libquadmath_support
1016with_linker_hash_style
1017with_diagnostics_color
1018with_diagnostics_urls
1019enable_default_pie
1020'
1021      ac_precious_vars='build_alias
1022host_alias
1023target_alias
1024CC
1025CFLAGS
1026LDFLAGS
1027LIBS
1028CPPFLAGS
1029CXX
1030CXXFLAGS
1031CCC
1032CXXCPP
1033CPP
1034GMPLIBS
1035GMPINC
1036ISLLIBS
1037ISLINC'
1038
1039
1040# Initialize some variables set by options.
1041ac_init_help=
1042ac_init_version=false
1043ac_unrecognized_opts=
1044ac_unrecognized_sep=
1045# The variables have the same names as the options, with
1046# dashes changed to underlines.
1047cache_file=/dev/null
1048exec_prefix=NONE
1049no_create=
1050no_recursion=
1051prefix=NONE
1052program_prefix=NONE
1053program_suffix=NONE
1054program_transform_name=s,x,x,
1055silent=
1056site=
1057srcdir=
1058verbose=
1059x_includes=NONE
1060x_libraries=NONE
1061
1062# Installation directory options.
1063# These are left unexpanded so users can "make install exec_prefix=/foo"
1064# and all the variables that are supposed to be based on exec_prefix
1065# by default will actually change.
1066# Use braces instead of parens because sh, perl, etc. also accept them.
1067# (The list follows the same order as the GNU Coding Standards.)
1068bindir='${exec_prefix}/bin'
1069sbindir='${exec_prefix}/sbin'
1070libexecdir='${exec_prefix}/libexec'
1071datarootdir='${prefix}/share'
1072datadir='${datarootdir}'
1073sysconfdir='${prefix}/etc'
1074sharedstatedir='${prefix}/com'
1075localstatedir='${prefix}/var'
1076includedir='${prefix}/include'
1077oldincludedir='/usr/include'
1078docdir='${datarootdir}/doc/${PACKAGE}'
1079infodir='${datarootdir}/info'
1080htmldir='${docdir}'
1081dvidir='${docdir}'
1082pdfdir='${docdir}'
1083psdir='${docdir}'
1084libdir='${exec_prefix}/lib'
1085localedir='${datarootdir}/locale'
1086mandir='${datarootdir}/man'
1087
1088ac_prev=
1089ac_dashdash=
1090for ac_option
1091do
1092  # If the previous option needs an argument, assign it.
1093  if test -n "$ac_prev"; then
1094    eval $ac_prev=\$ac_option
1095    ac_prev=
1096    continue
1097  fi
1098
1099  case $ac_option in
1100  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101  *=)   ac_optarg= ;;
1102  *)    ac_optarg=yes ;;
1103  esac
1104
1105  # Accept the important Cygnus configure options, so we can diagnose typos.
1106
1107  case $ac_dashdash$ac_option in
1108  --)
1109    ac_dashdash=yes ;;
1110
1111  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112    ac_prev=bindir ;;
1113  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114    bindir=$ac_optarg ;;
1115
1116  -build | --build | --buil | --bui | --bu)
1117    ac_prev=build_alias ;;
1118  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119    build_alias=$ac_optarg ;;
1120
1121  -cache-file | --cache-file | --cache-fil | --cache-fi \
1122  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123    ac_prev=cache_file ;;
1124  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126    cache_file=$ac_optarg ;;
1127
1128  --config-cache | -C)
1129    cache_file=config.cache ;;
1130
1131  -datadir | --datadir | --datadi | --datad)
1132    ac_prev=datadir ;;
1133  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134    datadir=$ac_optarg ;;
1135
1136  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137  | --dataroo | --dataro | --datar)
1138    ac_prev=datarootdir ;;
1139  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141    datarootdir=$ac_optarg ;;
1142
1143  -disable-* | --disable-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error $? "invalid feature name: $ac_useropt"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"enable_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval enable_$ac_useropt=no ;;
1158
1159  -docdir | --docdir | --docdi | --doc | --do)
1160    ac_prev=docdir ;;
1161  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162    docdir=$ac_optarg ;;
1163
1164  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165    ac_prev=dvidir ;;
1166  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167    dvidir=$ac_optarg ;;
1168
1169  -enable-* | --enable-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid feature name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"enable_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval enable_$ac_useropt=\$ac_optarg ;;
1184
1185  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187  | --exec | --exe | --ex)
1188    ac_prev=exec_prefix ;;
1189  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191  | --exec=* | --exe=* | --ex=*)
1192    exec_prefix=$ac_optarg ;;
1193
1194  -gas | --gas | --ga | --g)
1195    # Obsolete; use --with-gas.
1196    with_gas=yes ;;
1197
1198  -help | --help | --hel | --he | -h)
1199    ac_init_help=long ;;
1200  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201    ac_init_help=recursive ;;
1202  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203    ac_init_help=short ;;
1204
1205  -host | --host | --hos | --ho)
1206    ac_prev=host_alias ;;
1207  -host=* | --host=* | --hos=* | --ho=*)
1208    host_alias=$ac_optarg ;;
1209
1210  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211    ac_prev=htmldir ;;
1212  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213  | --ht=*)
1214    htmldir=$ac_optarg ;;
1215
1216  -includedir | --includedir | --includedi | --included | --include \
1217  | --includ | --inclu | --incl | --inc)
1218    ac_prev=includedir ;;
1219  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220  | --includ=* | --inclu=* | --incl=* | --inc=*)
1221    includedir=$ac_optarg ;;
1222
1223  -infodir | --infodir | --infodi | --infod | --info | --inf)
1224    ac_prev=infodir ;;
1225  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226    infodir=$ac_optarg ;;
1227
1228  -libdir | --libdir | --libdi | --libd)
1229    ac_prev=libdir ;;
1230  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231    libdir=$ac_optarg ;;
1232
1233  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234  | --libexe | --libex | --libe)
1235    ac_prev=libexecdir ;;
1236  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237  | --libexe=* | --libex=* | --libe=*)
1238    libexecdir=$ac_optarg ;;
1239
1240  -localedir | --localedir | --localedi | --localed | --locale)
1241    ac_prev=localedir ;;
1242  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243    localedir=$ac_optarg ;;
1244
1245  -localstatedir | --localstatedir | --localstatedi | --localstated \
1246  | --localstate | --localstat | --localsta | --localst | --locals)
1247    ac_prev=localstatedir ;;
1248  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250    localstatedir=$ac_optarg ;;
1251
1252  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253    ac_prev=mandir ;;
1254  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255    mandir=$ac_optarg ;;
1256
1257  -nfp | --nfp | --nf)
1258    # Obsolete; use --without-fp.
1259    with_fp=no ;;
1260
1261  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262  | --no-cr | --no-c | -n)
1263    no_create=yes ;;
1264
1265  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267    no_recursion=yes ;;
1268
1269  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271  | --oldin | --oldi | --old | --ol | --o)
1272    ac_prev=oldincludedir ;;
1273  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276    oldincludedir=$ac_optarg ;;
1277
1278  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279    ac_prev=prefix ;;
1280  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281    prefix=$ac_optarg ;;
1282
1283  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284  | --program-pre | --program-pr | --program-p)
1285    ac_prev=program_prefix ;;
1286  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288    program_prefix=$ac_optarg ;;
1289
1290  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291  | --program-suf | --program-su | --program-s)
1292    ac_prev=program_suffix ;;
1293  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295    program_suffix=$ac_optarg ;;
1296
1297  -program-transform-name | --program-transform-name \
1298  | --program-transform-nam | --program-transform-na \
1299  | --program-transform-n | --program-transform- \
1300  | --program-transform | --program-transfor \
1301  | --program-transfo | --program-transf \
1302  | --program-trans | --program-tran \
1303  | --progr-tra | --program-tr | --program-t)
1304    ac_prev=program_transform_name ;;
1305  -program-transform-name=* | --program-transform-name=* \
1306  | --program-transform-nam=* | --program-transform-na=* \
1307  | --program-transform-n=* | --program-transform-=* \
1308  | --program-transform=* | --program-transfor=* \
1309  | --program-transfo=* | --program-transf=* \
1310  | --program-trans=* | --program-tran=* \
1311  | --progr-tra=* | --program-tr=* | --program-t=*)
1312    program_transform_name=$ac_optarg ;;
1313
1314  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315    ac_prev=pdfdir ;;
1316  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317    pdfdir=$ac_optarg ;;
1318
1319  -psdir | --psdir | --psdi | --psd | --ps)
1320    ac_prev=psdir ;;
1321  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322    psdir=$ac_optarg ;;
1323
1324  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325  | -silent | --silent | --silen | --sile | --sil)
1326    silent=yes ;;
1327
1328  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329    ac_prev=sbindir ;;
1330  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331  | --sbi=* | --sb=*)
1332    sbindir=$ac_optarg ;;
1333
1334  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336  | --sharedst | --shareds | --shared | --share | --shar \
1337  | --sha | --sh)
1338    ac_prev=sharedstatedir ;;
1339  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342  | --sha=* | --sh=*)
1343    sharedstatedir=$ac_optarg ;;
1344
1345  -site | --site | --sit)
1346    ac_prev=site ;;
1347  -site=* | --site=* | --sit=*)
1348    site=$ac_optarg ;;
1349
1350  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351    ac_prev=srcdir ;;
1352  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353    srcdir=$ac_optarg ;;
1354
1355  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356  | --syscon | --sysco | --sysc | --sys | --sy)
1357    ac_prev=sysconfdir ;;
1358  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360    sysconfdir=$ac_optarg ;;
1361
1362  -target | --target | --targe | --targ | --tar | --ta | --t)
1363    ac_prev=target_alias ;;
1364  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365    target_alias=$ac_optarg ;;
1366
1367  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368    verbose=yes ;;
1369
1370  -version | --version | --versio | --versi | --vers | -V)
1371    ac_init_version=: ;;
1372
1373  -with-* | --with-*)
1374    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375    # Reject names that are not valid shell variable names.
1376    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377      as_fn_error $? "invalid package name: $ac_useropt"
1378    ac_useropt_orig=$ac_useropt
1379    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380    case $ac_user_opts in
1381      *"
1382"with_$ac_useropt"
1383"*) ;;
1384      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385	 ac_unrecognized_sep=', ';;
1386    esac
1387    eval with_$ac_useropt=\$ac_optarg ;;
1388
1389  -without-* | --without-*)
1390    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391    # Reject names that are not valid shell variable names.
1392    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393      as_fn_error $? "invalid package name: $ac_useropt"
1394    ac_useropt_orig=$ac_useropt
1395    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396    case $ac_user_opts in
1397      *"
1398"with_$ac_useropt"
1399"*) ;;
1400      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401	 ac_unrecognized_sep=', ';;
1402    esac
1403    eval with_$ac_useropt=no ;;
1404
1405  --x)
1406    # Obsolete; use --with-x.
1407    with_x=yes ;;
1408
1409  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410  | --x-incl | --x-inc | --x-in | --x-i)
1411    ac_prev=x_includes ;;
1412  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414    x_includes=$ac_optarg ;;
1415
1416  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418    ac_prev=x_libraries ;;
1419  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421    x_libraries=$ac_optarg ;;
1422
1423  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1424Try \`$0 --help' for more information"
1425    ;;
1426
1427  *=*)
1428    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429    # Reject names that are not valid shell variable names.
1430    case $ac_envvar in #(
1431      '' | [0-9]* | *[!_$as_cr_alnum]* )
1432      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1433    esac
1434    eval $ac_envvar=\$ac_optarg
1435    export $ac_envvar ;;
1436
1437  *)
1438    # FIXME: should be removed in autoconf 3.0.
1439    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1443    ;;
1444
1445  esac
1446done
1447
1448if test -n "$ac_prev"; then
1449  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450  as_fn_error $? "missing argument to $ac_option"
1451fi
1452
1453if test -n "$ac_unrecognized_opts"; then
1454  case $enable_option_checking in
1455    no) ;;
1456    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1457    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458  esac
1459fi
1460
1461# Check all directory arguments for consistency.
1462for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463		datadir sysconfdir sharedstatedir localstatedir includedir \
1464		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465		libdir localedir mandir
1466do
1467  eval ac_val=\$$ac_var
1468  # Remove trailing slashes.
1469  case $ac_val in
1470    */ )
1471      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472      eval $ac_var=\$ac_val;;
1473  esac
1474  # Be sure to have absolute directory names.
1475  case $ac_val in
1476    [\\/$]* | ?:[\\/]* )  continue;;
1477    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478  esac
1479  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1480done
1481
1482# There might be people who depend on the old broken behavior: `$host'
1483# used to hold the argument of --host etc.
1484# FIXME: To remove some day.
1485build=$build_alias
1486host=$host_alias
1487target=$target_alias
1488
1489# FIXME: To remove some day.
1490if test "x$host_alias" != x; then
1491  if test "x$build_alias" = x; then
1492    cross_compiling=maybe
1493  elif test "x$build_alias" != "x$host_alias"; then
1494    cross_compiling=yes
1495  fi
1496fi
1497
1498ac_tool_prefix=
1499test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500
1501test "$silent" = yes && exec 6>/dev/null
1502
1503
1504ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505ac_ls_di=`ls -di .` &&
1506ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507  as_fn_error $? "working directory cannot be determined"
1508test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509  as_fn_error $? "pwd does not report name of working directory"
1510
1511
1512# Find the source files, if location was not specified.
1513if test -z "$srcdir"; then
1514  ac_srcdir_defaulted=yes
1515  # Try the directory containing this script, then the parent directory.
1516  ac_confdir=`$as_dirname -- "$as_myself" ||
1517$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518	 X"$as_myself" : 'X\(//\)[^/]' \| \
1519	 X"$as_myself" : 'X\(//\)$' \| \
1520	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1521$as_echo X"$as_myself" |
1522    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523	    s//\1/
1524	    q
1525	  }
1526	  /^X\(\/\/\)[^/].*/{
1527	    s//\1/
1528	    q
1529	  }
1530	  /^X\(\/\/\)$/{
1531	    s//\1/
1532	    q
1533	  }
1534	  /^X\(\/\).*/{
1535	    s//\1/
1536	    q
1537	  }
1538	  s/.*/./; q'`
1539  srcdir=$ac_confdir
1540  if test ! -r "$srcdir/$ac_unique_file"; then
1541    srcdir=..
1542  fi
1543else
1544  ac_srcdir_defaulted=no
1545fi
1546if test ! -r "$srcdir/$ac_unique_file"; then
1547  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1548  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1549fi
1550ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1551ac_abs_confdir=`(
1552	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1553	pwd)`
1554# When building in place, set srcdir=.
1555if test "$ac_abs_confdir" = "$ac_pwd"; then
1556  srcdir=.
1557fi
1558# Remove unnecessary trailing slashes from srcdir.
1559# Double slashes in file names in object file debugging info
1560# mess up M-x gdb in Emacs.
1561case $srcdir in
1562*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1563esac
1564for ac_var in $ac_precious_vars; do
1565  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1566  eval ac_env_${ac_var}_value=\$${ac_var}
1567  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1568  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1569done
1570
1571#
1572# Report the --help message.
1573#
1574if test "$ac_init_help" = "long"; then
1575  # Omit some internal or obsolete options to make the list less imposing.
1576  # This message is too long to be a string in the A/UX 3.1 sh.
1577  cat <<_ACEOF
1578\`configure' configures this package to adapt to many kinds of systems.
1579
1580Usage: $0 [OPTION]... [VAR=VALUE]...
1581
1582To assign environment variables (e.g., CC, CFLAGS...), specify them as
1583VAR=VALUE.  See below for descriptions of some of the useful variables.
1584
1585Defaults for the options are specified in brackets.
1586
1587Configuration:
1588  -h, --help              display this help and exit
1589      --help=short        display options specific to this package
1590      --help=recursive    display the short help of all the included packages
1591  -V, --version           display version information and exit
1592  -q, --quiet, --silent   do not print \`checking ...' messages
1593      --cache-file=FILE   cache test results in FILE [disabled]
1594  -C, --config-cache      alias for \`--cache-file=config.cache'
1595  -n, --no-create         do not create output files
1596      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1597
1598Installation directories:
1599  --prefix=PREFIX         install architecture-independent files in PREFIX
1600                          [$ac_default_prefix]
1601  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1602                          [PREFIX]
1603
1604By default, \`make install' will install all the files in
1605\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1606an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1607for instance \`--prefix=\$HOME'.
1608
1609For better control, use the options below.
1610
1611Fine tuning of the installation directories:
1612  --bindir=DIR            user executables [EPREFIX/bin]
1613  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1614  --libexecdir=DIR        program executables [EPREFIX/libexec]
1615  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1616  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1617  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1618  --libdir=DIR            object code libraries [EPREFIX/lib]
1619  --includedir=DIR        C header files [PREFIX/include]
1620  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1621  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1622  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1623  --infodir=DIR           info documentation [DATAROOTDIR/info]
1624  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1625  --mandir=DIR            man documentation [DATAROOTDIR/man]
1626  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1627  --htmldir=DIR           html documentation [DOCDIR]
1628  --dvidir=DIR            dvi documentation [DOCDIR]
1629  --pdfdir=DIR            pdf documentation [DOCDIR]
1630  --psdir=DIR             ps documentation [DOCDIR]
1631_ACEOF
1632
1633  cat <<\_ACEOF
1634
1635Program names:
1636  --program-prefix=PREFIX            prepend PREFIX to installed program names
1637  --program-suffix=SUFFIX            append SUFFIX to installed program names
1638  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1639
1640System types:
1641  --build=BUILD     configure for building on BUILD [guessed]
1642  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1643  --target=TARGET   configure for building compilers for TARGET [HOST]
1644_ACEOF
1645fi
1646
1647if test -n "$ac_init_help"; then
1648
1649  cat <<\_ACEOF
1650
1651Optional Features:
1652  --disable-option-checking  ignore unrecognized --enable/--with options
1653  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1654  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1655  --enable-generated-files-in-srcdir
1656                          put copies of generated files in source dir intended
1657                          for creating source tarballs for users without
1658                          texinfo bison or flex
1659  --disable-largefile     omit support for large files
1660  --disable-build-format-warnings
1661                          don't use -Wformat while building GCC
1662  --enable-werror-always  enable -Werror despite compiler version
1663  --enable-checking[=LIST]
1664                          enable expensive run-time checks. With LIST, enable
1665                          only specific categories of checks. Categories are:
1666                          yes,no,all,none,release. Flags are:
1667                          assert,df,extra,fold,gc,gcac,gimple,misc,
1668                          rtlflag,rtl,runtime,tree,valgrind,types
1669  --enable-coverage[=LEVEL]
1670                          enable compiler's code coverage collection. Use to
1671                          measure compiler performance and locate unused parts
1672                          of the compiler. With LEVEL, specify optimization.
1673                          Values are opt, noopt, default is noopt
1674  --enable-gather-detailed-mem-stats
1675                          enable detailed memory allocation stats gathering
1676  --enable-valgrind-annotations
1677                          enable valgrind runtime interaction
1678  --enable-multilib       enable library support for multiple ABIs
1679  --enable-multiarch      enable support for multiarch paths
1680  --enable-__cxa_atexit   enable __cxa_atexit for C++
1681  --enable-decimal-float={no,yes,bid,dpd}
1682			enable decimal float extension to C.  Selecting 'bid'
1683			or 'dpd' choses which decimal floating point format
1684			to use
1685  --enable-fixed-point    enable fixed-point arithmetic extension to C
1686  --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1687                          package
1688  --enable-tls            enable or disable generation of tls code overriding
1689                          the assembler check for tls support
1690  --enable-vtable-verify  enable vtable verification feature
1691  --disable-analyzer      disable -fanalyzer static analyzer
1692  --enable-objc-gc        enable the use of Boehm's garbage collector with the
1693                          GNU Objective-C runtime
1694  --disable-shared        don't provide a shared libgcc
1695  --disable-gcov          don't provide libgcov and related host tools
1696  --enable-languages=LIST specify which front-ends to build
1697  --disable-rpath         do not hardcode runtime library paths
1698  --enable-sjlj-exceptions
1699                          arrange to use setjmp/longjmp exception handling
1700  --enable-secureplt      enable -msecure-plt by default for PowerPC
1701  --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1702                          Default to platform configuration
1703  --enable-large-address-aware
1704                          Link mingw executables with --large-address-aware
1705  --enable-leading-mingw64-underscores
1706                          enable leading underscores on 64 bit mingw targets
1707  --enable-cld            enable -mcld by default for 32bit x86
1708  --enable-frame-pointer  enable -fno-omit-frame-pointer by default for x86
1709  --disable-win32-registry
1710                          disable lookup of installation paths in the Registry
1711                          on Windows hosts
1712  --enable-win32-registry enable registry lookup (default)
1713  --enable-win32-registry=KEY
1714                          use KEY instead of GCC version as the last portion
1715                          of the registry key
1716  --enable-shared[=PKGS]  build shared libraries [default=yes]
1717  --enable-static[=PKGS]  build static libraries [default=yes]
1718  --enable-fast-install[=PKGS]
1719                          optimize for fast installation [default=yes]
1720  --disable-libtool-lock  avoid locking (might break parallel builds)
1721  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1722  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1723  --enable-gnu-indirect-function
1724                          enable the use of the @gnu_indirect_function to
1725                          glibc systems
1726  --enable-initfini-array	use .init_array/.fini_array sections
1727  --enable-comdat         enable COMDAT group support
1728  --enable-newlib-nano-formatted-io
1729                          Use nano version formatted IO
1730
1731  --enable-standard-branch-protection
1732                          enable Branch Target Identification Mechanism and
1733                          Return Address Signing by default for AArch64
1734  --disable-standard-branch-protection
1735                          disable Branch Target Identification Mechanism and
1736                          Return Address Signing by default for AArch64
1737
1738
1739  --enable-fix-cortex-a53-835769
1740                          enable workaround for AArch64 Cortex-A53 erratum
1741                          835769 by default
1742  --disable-fix-cortex-a53-835769
1743                          disable workaround for AArch64 Cortex-A53 erratum
1744                          835769 by default
1745
1746
1747  --enable-fix-cortex-a53-843419
1748                          enable workaround for AArch64 Cortex-A53 erratum
1749                          843419 by default
1750  --disable-fix-cortex-a53-843419
1751                          disable workaround for AArch64 Cortex-A53 erratum
1752                          843419 by default
1753
1754  --enable-gnu-unique-object
1755                          enable the use of the @gnu_unique_object ELF
1756                          extension on glibc systems
1757  --enable-linker-build-id
1758                          compiler will always pass --build-id to linker
1759  --enable-libssp         enable linking against libssp
1760  --enable-default-ssp    enable Stack Smashing Protection as default
1761  --enable-maintainer-mode
1762                          enable make rules and dependencies not useful (and
1763                          sometimes confusing) to the casual installer
1764  --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1765                          thrashing on the build machine
1766  --enable-version-specific-runtime-libs
1767                          specify that runtime libraries should be installed
1768                          in a compiler-specific directory
1769  --enable-plugin         enable plugin support
1770  --enable-host-shared    build host code as shared libraries
1771  --disable-libquadmath-support
1772                          disable libquadmath support for Fortran
1773  --enable-default-pie    enable Position Independent Executable as default
1774
1775Optional Packages:
1776  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1777  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1778  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1779  --with-local-prefix=DIR specifies directory to put local include
1780  --with-native-system-header-dir=dir
1781                          use dir as the directory to look for standard
1782                          system header files in.  Defaults to /usr/include.
1783  --with-build-sysroot=sysroot
1784                          use sysroot as the system root during the build
1785  --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1786  --with-gxx-include-dir=DIR
1787                          specifies directory to put g++ header files
1788  --with-cpp-install-dir=DIR
1789                          install the user visible C preprocessor in DIR
1790                          (relative to PREFIX) as well as PREFIX/bin
1791  --with-gnu-ld           arrange to work with GNU ld
1792  --with-ld               arrange to use the specified ld (full pathname)
1793  --with-demangler-in-ld  try to use demangler in GNU ld
1794  --with-gnu-as           arrange to work with GNU as
1795  --with-as               arrange to use the specified as (full pathname)
1796  --with-stabs            arrange to use stabs instead of host debug format
1797  --with-stack-clash-protection-guard-size=size
1798                          Set the default stack clash protection guard size
1799                          for specific targets as a power of two in bytes.
1800  --with-dwarf2           force the default debug format to be DWARF 2
1801  --with-specs=SPECS      add SPECS to driver command-line processing
1802  --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1803  --with-bugurl=URL       Direct users to URL to report a bug
1804  --with-documentation-root-url=URL
1805                          Root for documentation URLs
1806  --with-changes-root-url=URL
1807                          Root for GCC changes URLs
1808  --with-multilib-list    select multilibs (AArch64, SH and x86-64 only)
1809  --with-zstd=PATH        specify prefix directory for installed zstd library.
1810                          Equivalent to --with-zstd-include=PATH/include plus
1811                          --with-zstd-lib=PATH/lib
1812  --with-zstd-include=PATH
1813                          specify directory for installed zstd include files
1814  --with-zstd-lib=PATH    specify directory for the installed zstd library
1815  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1816  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1817  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1818  --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1819  --with-gcc-major-version-only
1820                          use only GCC major number in filesystem paths
1821  --with-pic              try to use only PIC/non-PIC objects [default=use
1822                          both]
1823  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1824  --with-plugin-ld=[ARG]  specify the plugin linker
1825  --with-glibc-version=M.N
1826                          assume GCC used with glibc version M.N or later
1827  --with-long-double-128  use 128-bit long double by default
1828  --with-long-double-format={ieee,ibm}
1829		  Specify whether PowerPC long double uses IEEE or IBM format
1830
1831  --with-gc={page,zone}   this option is not supported anymore. It used to
1832                          choose the garbage collection mechanism to use with
1833                          the compiler
1834  --with-system-zlib      use installed libz
1835  --with-linker-hash-style={sysv,gnu,both}
1836                          specify the linker hash style
1837  --with-diagnostics-color={never,auto,auto-if-env,always}
1838                          specify the default of -fdiagnostics-color option
1839                          auto-if-env stands for -fdiagnostics-color=auto if
1840                          GCC_COLOR environment variable is present and
1841                          -fdiagnostics-color=never otherwise
1842  --with-diagnostics-urls={never,auto,auto-if-env,always}
1843                          specify the default of -fdiagnostics-urls option
1844                          auto-if-env stands for -fdiagnostics-urls=auto if
1845                          GCC_URLS or TERM_URLS environment variable is
1846                          present and -fdiagnostics-urls=never otherwise
1847
1848Some influential environment variables:
1849  CC          C compiler command
1850  CFLAGS      C compiler flags
1851  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1852              nonstandard directory <lib dir>
1853  LIBS        libraries to pass to the linker, e.g. -l<library>
1854  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1855              you have headers in a nonstandard directory <include dir>
1856  CXX         C++ compiler command
1857  CXXFLAGS    C++ compiler flags
1858  CXXCPP      C++ preprocessor
1859  CPP         C preprocessor
1860  GMPLIBS     How to link GMP
1861  GMPINC      How to find GMP include files
1862  ISLLIBS     How to link isl
1863  ISLINC      How to find isl include files
1864
1865Use these variables to override the choices made by `configure' or to help
1866it to find libraries and programs with nonstandard names/locations.
1867
1868Report bugs to the package provider.
1869_ACEOF
1870ac_status=$?
1871fi
1872
1873if test "$ac_init_help" = "recursive"; then
1874  # If there are subdirs, report their specific --help.
1875  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1876    test -d "$ac_dir" ||
1877      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1878      continue
1879    ac_builddir=.
1880
1881case "$ac_dir" in
1882.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1883*)
1884  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1885  # A ".." for each directory in $ac_dir_suffix.
1886  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1887  case $ac_top_builddir_sub in
1888  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1889  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1890  esac ;;
1891esac
1892ac_abs_top_builddir=$ac_pwd
1893ac_abs_builddir=$ac_pwd$ac_dir_suffix
1894# for backward compatibility:
1895ac_top_builddir=$ac_top_build_prefix
1896
1897case $srcdir in
1898  .)  # We are building in place.
1899    ac_srcdir=.
1900    ac_top_srcdir=$ac_top_builddir_sub
1901    ac_abs_top_srcdir=$ac_pwd ;;
1902  [\\/]* | ?:[\\/]* )  # Absolute name.
1903    ac_srcdir=$srcdir$ac_dir_suffix;
1904    ac_top_srcdir=$srcdir
1905    ac_abs_top_srcdir=$srcdir ;;
1906  *) # Relative name.
1907    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1908    ac_top_srcdir=$ac_top_build_prefix$srcdir
1909    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1910esac
1911ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1912
1913    cd "$ac_dir" || { ac_status=$?; continue; }
1914    # Check for guested configure.
1915    if test -f "$ac_srcdir/configure.gnu"; then
1916      echo &&
1917      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1918    elif test -f "$ac_srcdir/configure"; then
1919      echo &&
1920      $SHELL "$ac_srcdir/configure" --help=recursive
1921    else
1922      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1923    fi || ac_status=$?
1924    cd "$ac_pwd" || { ac_status=$?; break; }
1925  done
1926fi
1927
1928test -n "$ac_init_help" && exit $ac_status
1929if $ac_init_version; then
1930  cat <<\_ACEOF
1931configure
1932generated by GNU Autoconf 2.69
1933
1934Copyright (C) 2012 Free Software Foundation, Inc.
1935This configure script is free software; the Free Software Foundation
1936gives unlimited permission to copy, distribute and modify it.
1937_ACEOF
1938  exit
1939fi
1940
1941## ------------------------ ##
1942## Autoconf initialization. ##
1943## ------------------------ ##
1944
1945# ac_fn_c_try_compile LINENO
1946# --------------------------
1947# Try to compile conftest.$ac_ext, and return whether this succeeded.
1948ac_fn_c_try_compile ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  rm -f conftest.$ac_objext
1952  if { { ac_try="$ac_compile"
1953case "(($ac_try" in
1954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955  *) ac_try_echo=$ac_try;;
1956esac
1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958$as_echo "$ac_try_echo"; } >&5
1959  (eval "$ac_compile") 2>conftest.err
1960  ac_status=$?
1961  if test -s conftest.err; then
1962    grep -v '^ *+' conftest.err >conftest.er1
1963    cat conftest.er1 >&5
1964    mv -f conftest.er1 conftest.err
1965  fi
1966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967  test $ac_status = 0; } && {
1968	 test -z "$ac_c_werror_flag" ||
1969	 test ! -s conftest.err
1970       } && test -s conftest.$ac_objext; then :
1971  ac_retval=0
1972else
1973  $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976	ac_retval=1
1977fi
1978  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979  as_fn_set_status $ac_retval
1980
1981} # ac_fn_c_try_compile
1982
1983# ac_fn_cxx_try_compile LINENO
1984# ----------------------------
1985# Try to compile conftest.$ac_ext, and return whether this succeeded.
1986ac_fn_cxx_try_compile ()
1987{
1988  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989  rm -f conftest.$ac_objext
1990  if { { ac_try="$ac_compile"
1991case "(($ac_try" in
1992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993  *) ac_try_echo=$ac_try;;
1994esac
1995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996$as_echo "$ac_try_echo"; } >&5
1997  (eval "$ac_compile") 2>conftest.err
1998  ac_status=$?
1999  if test -s conftest.err; then
2000    grep -v '^ *+' conftest.err >conftest.er1
2001    cat conftest.er1 >&5
2002    mv -f conftest.er1 conftest.err
2003  fi
2004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005  test $ac_status = 0; } && {
2006	 test -z "$ac_cxx_werror_flag" ||
2007	 test ! -s conftest.err
2008       } && test -s conftest.$ac_objext; then :
2009  ac_retval=0
2010else
2011  $as_echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
2013
2014	ac_retval=1
2015fi
2016  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017  as_fn_set_status $ac_retval
2018
2019} # ac_fn_cxx_try_compile
2020
2021# ac_fn_cxx_try_cpp LINENO
2022# ------------------------
2023# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2024ac_fn_cxx_try_cpp ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  if { { ac_try="$ac_cpp conftest.$ac_ext"
2028case "(($ac_try" in
2029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030  *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2035  ac_status=$?
2036  if test -s conftest.err; then
2037    grep -v '^ *+' conftest.err >conftest.er1
2038    cat conftest.er1 >&5
2039    mv -f conftest.er1 conftest.err
2040  fi
2041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042  test $ac_status = 0; } > conftest.i && {
2043	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2044	 test ! -s conftest.err
2045       }; then :
2046  ac_retval=0
2047else
2048  $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051    ac_retval=1
2052fi
2053  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054  as_fn_set_status $ac_retval
2055
2056} # ac_fn_cxx_try_cpp
2057
2058# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2059# ---------------------------------------------------------
2060# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2061# the include files in INCLUDES and setting the cache variable VAR
2062# accordingly.
2063ac_fn_cxx_check_header_mongrel ()
2064{
2065  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066  if eval \${$3+:} false; then :
2067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068$as_echo_n "checking for $2... " >&6; }
2069if eval \${$3+:} false; then :
2070  $as_echo_n "(cached) " >&6
2071fi
2072eval ac_res=\$$3
2073	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075else
2076  # Is the header compilable?
2077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2078$as_echo_n "checking $2 usability... " >&6; }
2079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082#include <$2>
2083_ACEOF
2084if ac_fn_cxx_try_compile "$LINENO"; then :
2085  ac_header_compiler=yes
2086else
2087  ac_header_compiler=no
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2091$as_echo "$ac_header_compiler" >&6; }
2092
2093# Is the header present?
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2095$as_echo_n "checking $2 presence... " >&6; }
2096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098#include <$2>
2099_ACEOF
2100if ac_fn_cxx_try_cpp "$LINENO"; then :
2101  ac_header_preproc=yes
2102else
2103  ac_header_preproc=no
2104fi
2105rm -f conftest.err conftest.i conftest.$ac_ext
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2107$as_echo "$ac_header_preproc" >&6; }
2108
2109# So?  What about this header?
2110case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2111  yes:no: )
2112    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2113$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2115$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116    ;;
2117  no:yes:* )
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2119$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2120    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2121$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2122    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2123$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2124    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2125$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2126    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2127$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2128    ;;
2129esac
2130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131$as_echo_n "checking for $2... " >&6; }
2132if eval \${$3+:} false; then :
2133  $as_echo_n "(cached) " >&6
2134else
2135  eval "$3=\$ac_header_compiler"
2136fi
2137eval ac_res=\$$3
2138	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139$as_echo "$ac_res" >&6; }
2140fi
2141  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142
2143} # ac_fn_cxx_check_header_mongrel
2144
2145# ac_fn_cxx_try_run LINENO
2146# ------------------------
2147# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2148# that executables *can* be run.
2149ac_fn_cxx_try_run ()
2150{
2151  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152  if { { ac_try="$ac_link"
2153case "(($ac_try" in
2154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155  *) ac_try_echo=$ac_try;;
2156esac
2157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158$as_echo "$ac_try_echo"; } >&5
2159  (eval "$ac_link") 2>&5
2160  ac_status=$?
2161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2163  { { case "(($ac_try" in
2164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165  *) ac_try_echo=$ac_try;;
2166esac
2167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168$as_echo "$ac_try_echo"; } >&5
2169  (eval "$ac_try") 2>&5
2170  ac_status=$?
2171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172  test $ac_status = 0; }; }; then :
2173  ac_retval=0
2174else
2175  $as_echo "$as_me: program exited with status $ac_status" >&5
2176       $as_echo "$as_me: failed program was:" >&5
2177sed 's/^/| /' conftest.$ac_ext >&5
2178
2179       ac_retval=$ac_status
2180fi
2181  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2182  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183  as_fn_set_status $ac_retval
2184
2185} # ac_fn_cxx_try_run
2186
2187# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2188# ---------------------------------------------------------
2189# Tests whether HEADER exists and can be compiled using the include files in
2190# INCLUDES, setting the cache variable VAR accordingly.
2191ac_fn_cxx_check_header_compile ()
2192{
2193  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195$as_echo_n "checking for $2... " >&6; }
2196if eval \${$3+:} false; then :
2197  $as_echo_n "(cached) " >&6
2198else
2199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h.  */
2201$4
2202#include <$2>
2203_ACEOF
2204if ac_fn_cxx_try_compile "$LINENO"; then :
2205  eval "$3=yes"
2206else
2207  eval "$3=no"
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210fi
2211eval ac_res=\$$3
2212	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213$as_echo "$ac_res" >&6; }
2214  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215
2216} # ac_fn_cxx_check_header_compile
2217
2218# ac_fn_c_try_cpp LINENO
2219# ----------------------
2220# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2221ac_fn_c_try_cpp ()
2222{
2223  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224  if { { ac_try="$ac_cpp conftest.$ac_ext"
2225case "(($ac_try" in
2226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227  *) ac_try_echo=$ac_try;;
2228esac
2229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230$as_echo "$ac_try_echo"; } >&5
2231  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2232  ac_status=$?
2233  if test -s conftest.err; then
2234    grep -v '^ *+' conftest.err >conftest.er1
2235    cat conftest.er1 >&5
2236    mv -f conftest.er1 conftest.err
2237  fi
2238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2239  test $ac_status = 0; } > conftest.i && {
2240	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2241	 test ! -s conftest.err
2242       }; then :
2243  ac_retval=0
2244else
2245  $as_echo "$as_me: failed program was:" >&5
2246sed 's/^/| /' conftest.$ac_ext >&5
2247
2248    ac_retval=1
2249fi
2250  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251  as_fn_set_status $ac_retval
2252
2253} # ac_fn_c_try_cpp
2254
2255# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2256# ----------------------------------------------
2257# Tries to find the compile-time value of EXPR in a program that includes
2258# INCLUDES, setting VAR accordingly. Returns whether the value could be
2259# computed
2260ac_fn_cxx_compute_int ()
2261{
2262  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263  if test "$cross_compiling" = yes; then
2264    # Depending upon the size, compute the lo and hi bounds.
2265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$4
2268int
2269main ()
2270{
2271static int test_array [1 - 2 * !(($2) >= 0)];
2272test_array [0] = 0;
2273return test_array [0];
2274
2275  ;
2276  return 0;
2277}
2278_ACEOF
2279if ac_fn_cxx_try_compile "$LINENO"; then :
2280  ac_lo=0 ac_mid=0
2281  while :; do
2282    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283/* end confdefs.h.  */
2284$4
2285int
2286main ()
2287{
2288static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289test_array [0] = 0;
2290return test_array [0];
2291
2292  ;
2293  return 0;
2294}
2295_ACEOF
2296if ac_fn_cxx_try_compile "$LINENO"; then :
2297  ac_hi=$ac_mid; break
2298else
2299  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2300			if test $ac_lo -le $ac_mid; then
2301			  ac_lo= ac_hi=
2302			  break
2303			fi
2304			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307  done
2308else
2309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310/* end confdefs.h.  */
2311$4
2312int
2313main ()
2314{
2315static int test_array [1 - 2 * !(($2) < 0)];
2316test_array [0] = 0;
2317return test_array [0];
2318
2319  ;
2320  return 0;
2321}
2322_ACEOF
2323if ac_fn_cxx_try_compile "$LINENO"; then :
2324  ac_hi=-1 ac_mid=-1
2325  while :; do
2326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h.  */
2328$4
2329int
2330main ()
2331{
2332static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2333test_array [0] = 0;
2334return test_array [0];
2335
2336  ;
2337  return 0;
2338}
2339_ACEOF
2340if ac_fn_cxx_try_compile "$LINENO"; then :
2341  ac_lo=$ac_mid; break
2342else
2343  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2344			if test $ac_mid -le $ac_hi; then
2345			  ac_lo= ac_hi=
2346			  break
2347			fi
2348			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2349fi
2350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351  done
2352else
2353  ac_lo= ac_hi=
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358# Binary search between lo and hi bounds.
2359while test "x$ac_lo" != "x$ac_hi"; do
2360  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362/* end confdefs.h.  */
2363$4
2364int
2365main ()
2366{
2367static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2368test_array [0] = 0;
2369return test_array [0];
2370
2371  ;
2372  return 0;
2373}
2374_ACEOF
2375if ac_fn_cxx_try_compile "$LINENO"; then :
2376  ac_hi=$ac_mid
2377else
2378  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2379fi
2380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381done
2382case $ac_lo in #((
2383?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2384'') ac_retval=1 ;;
2385esac
2386  else
2387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388/* end confdefs.h.  */
2389$4
2390static long int longval () { return $2; }
2391static unsigned long int ulongval () { return $2; }
2392#include <stdio.h>
2393#include <stdlib.h>
2394int
2395main ()
2396{
2397
2398  FILE *f = fopen ("conftest.val", "w");
2399  if (! f)
2400    return 1;
2401  if (($2) < 0)
2402    {
2403      long int i = longval ();
2404      if (i != ($2))
2405	return 1;
2406      fprintf (f, "%ld", i);
2407    }
2408  else
2409    {
2410      unsigned long int i = ulongval ();
2411      if (i != ($2))
2412	return 1;
2413      fprintf (f, "%lu", i);
2414    }
2415  /* Do not output a trailing newline, as this causes \r\n confusion
2416     on some platforms.  */
2417  return ferror (f) || fclose (f) != 0;
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423if ac_fn_cxx_try_run "$LINENO"; then :
2424  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2425else
2426  ac_retval=1
2427fi
2428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2429  conftest.$ac_objext conftest.beam conftest.$ac_ext
2430rm -f conftest.val
2431
2432  fi
2433  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434  as_fn_set_status $ac_retval
2435
2436} # ac_fn_cxx_compute_int
2437
2438# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2439# ---------------------------------------------
2440# Tests whether TYPE exists after having included INCLUDES, setting cache
2441# variable VAR accordingly.
2442ac_fn_cxx_check_type ()
2443{
2444  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2446$as_echo_n "checking for $2... " >&6; }
2447if eval \${$3+:} false; then :
2448  $as_echo_n "(cached) " >&6
2449else
2450  eval "$3=no"
2451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452/* end confdefs.h.  */
2453$4
2454int
2455main ()
2456{
2457if (sizeof ($2))
2458	 return 0;
2459  ;
2460  return 0;
2461}
2462_ACEOF
2463if ac_fn_cxx_try_compile "$LINENO"; then :
2464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h.  */
2466$4
2467int
2468main ()
2469{
2470if (sizeof (($2)))
2471	    return 0;
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476if ac_fn_cxx_try_compile "$LINENO"; then :
2477
2478else
2479  eval "$3=yes"
2480fi
2481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482fi
2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484fi
2485eval ac_res=\$$3
2486	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487$as_echo "$ac_res" >&6; }
2488  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489
2490} # ac_fn_cxx_check_type
2491
2492# ac_fn_c_find_intX_t LINENO BITS VAR
2493# -----------------------------------
2494# Finds a signed integer type with width BITS, setting cache variable VAR
2495# accordingly.
2496ac_fn_c_find_intX_t ()
2497{
2498  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2500$as_echo_n "checking for int$2_t... " >&6; }
2501if eval \${$3+:} false; then :
2502  $as_echo_n "(cached) " >&6
2503else
2504  eval "$3=no"
2505     # Order is important - never check a type that is potentially smaller
2506     # than half of the expected target width.
2507     for ac_type in int$2_t 'int' 'long int' \
2508	 'long long int' 'short int' 'signed char'; do
2509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510/* end confdefs.h.  */
2511$ac_includes_default
2512	     enum { N = $2 / 2 - 1 };
2513int
2514main ()
2515{
2516static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2517test_array [0] = 0;
2518return test_array [0];
2519
2520  ;
2521  return 0;
2522}
2523_ACEOF
2524if ac_fn_cxx_try_compile "$LINENO"; then :
2525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526/* end confdefs.h.  */
2527$ac_includes_default
2528	        enum { N = $2 / 2 - 1 };
2529int
2530main ()
2531{
2532static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2533		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2534test_array [0] = 0;
2535return test_array [0];
2536
2537  ;
2538  return 0;
2539}
2540_ACEOF
2541if ac_fn_cxx_try_compile "$LINENO"; then :
2542
2543else
2544  case $ac_type in #(
2545  int$2_t) :
2546    eval "$3=yes" ;; #(
2547  *) :
2548    eval "$3=\$ac_type" ;;
2549esac
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554       if eval test \"x\$"$3"\" = x"no"; then :
2555
2556else
2557  break
2558fi
2559     done
2560fi
2561eval ac_res=\$$3
2562	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563$as_echo "$ac_res" >&6; }
2564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565
2566} # ac_fn_c_find_intX_t
2567
2568# ac_fn_cxx_try_link LINENO
2569# -------------------------
2570# Try to link conftest.$ac_ext, and return whether this succeeded.
2571ac_fn_cxx_try_link ()
2572{
2573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574  rm -f conftest.$ac_objext conftest$ac_exeext
2575  if { { ac_try="$ac_link"
2576case "(($ac_try" in
2577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578  *) ac_try_echo=$ac_try;;
2579esac
2580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581$as_echo "$ac_try_echo"; } >&5
2582  (eval "$ac_link") 2>conftest.err
2583  ac_status=$?
2584  if test -s conftest.err; then
2585    grep -v '^ *+' conftest.err >conftest.er1
2586    cat conftest.er1 >&5
2587    mv -f conftest.er1 conftest.err
2588  fi
2589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2590  test $ac_status = 0; } && {
2591	 test -z "$ac_cxx_werror_flag" ||
2592	 test ! -s conftest.err
2593       } && test -s conftest$ac_exeext && {
2594	 test "$cross_compiling" = yes ||
2595	 test -x conftest$ac_exeext
2596       }; then :
2597  ac_retval=0
2598else
2599  $as_echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602	ac_retval=1
2603fi
2604  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2605  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2606  # interfere with the next link command; also delete a directory that is
2607  # left behind by Apple's compiler.  We do this before executing the actions.
2608  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2609  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2610  as_fn_set_status $ac_retval
2611
2612} # ac_fn_cxx_try_link
2613
2614# ac_fn_c_find_uintX_t LINENO BITS VAR
2615# ------------------------------------
2616# Finds an unsigned integer type with width BITS, setting cache variable VAR
2617# accordingly.
2618ac_fn_c_find_uintX_t ()
2619{
2620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2622$as_echo_n "checking for uint$2_t... " >&6; }
2623if eval \${$3+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  eval "$3=no"
2627     # Order is important - never check a type that is potentially smaller
2628     # than half of the expected target width.
2629     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2630	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2631       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632/* end confdefs.h.  */
2633$ac_includes_default
2634int
2635main ()
2636{
2637static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2638test_array [0] = 0;
2639return test_array [0];
2640
2641  ;
2642  return 0;
2643}
2644_ACEOF
2645if ac_fn_cxx_try_compile "$LINENO"; then :
2646  case $ac_type in #(
2647  uint$2_t) :
2648    eval "$3=yes" ;; #(
2649  *) :
2650    eval "$3=\$ac_type" ;;
2651esac
2652fi
2653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654       if eval test \"x\$"$3"\" = x"no"; then :
2655
2656else
2657  break
2658fi
2659     done
2660fi
2661eval ac_res=\$$3
2662	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2663$as_echo "$ac_res" >&6; }
2664  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2665
2666} # ac_fn_c_find_uintX_t
2667
2668# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2669# ------------------------------------------------
2670# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2671ac_fn_cxx_check_header_preproc ()
2672{
2673  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675$as_echo_n "checking for $2... " >&6; }
2676if eval \${$3+:} false; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680/* end confdefs.h.  */
2681#include <$2>
2682_ACEOF
2683if ac_fn_cxx_try_cpp "$LINENO"; then :
2684  eval "$3=yes"
2685else
2686  eval "$3=no"
2687fi
2688rm -f conftest.err conftest.i conftest.$ac_ext
2689fi
2690eval ac_res=\$$3
2691	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692$as_echo "$ac_res" >&6; }
2693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2694
2695} # ac_fn_cxx_check_header_preproc
2696
2697# ac_fn_cxx_check_func LINENO FUNC VAR
2698# ------------------------------------
2699# Tests whether FUNC exists, setting the cache variable VAR accordingly
2700ac_fn_cxx_check_func ()
2701{
2702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704$as_echo_n "checking for $2... " >&6; }
2705if eval \${$3+:} false; then :
2706  $as_echo_n "(cached) " >&6
2707else
2708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h.  */
2710/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2711   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2712#define $2 innocuous_$2
2713
2714/* System header to define __stub macros and hopefully few prototypes,
2715    which can conflict with char $2 (); below.
2716    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2717    <limits.h> exists even on freestanding compilers.  */
2718
2719#ifdef __STDC__
2720# include <limits.h>
2721#else
2722# include <assert.h>
2723#endif
2724
2725#undef $2
2726
2727/* Override any GCC internal prototype to avoid an error.
2728   Use char because int might match the return type of a GCC
2729   builtin and then its argument prototype would still apply.  */
2730#ifdef __cplusplus
2731extern "C"
2732#endif
2733char $2 ();
2734/* The GNU C library defines this for functions which it implements
2735    to always fail with ENOSYS.  Some functions are actually named
2736    something starting with __ and the normal name is an alias.  */
2737#if defined __stub_$2 || defined __stub___$2
2738choke me
2739#endif
2740
2741int
2742main ()
2743{
2744return $2 ();
2745  ;
2746  return 0;
2747}
2748_ACEOF
2749if ac_fn_cxx_try_link "$LINENO"; then :
2750  eval "$3=yes"
2751else
2752  eval "$3=no"
2753fi
2754rm -f core conftest.err conftest.$ac_objext \
2755    conftest$ac_exeext conftest.$ac_ext
2756fi
2757eval ac_res=\$$3
2758	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759$as_echo "$ac_res" >&6; }
2760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2761
2762} # ac_fn_cxx_check_func
2763
2764# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2765# -----------------------------------------------
2766# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2767# accordingly.
2768ac_fn_cxx_check_decl ()
2769{
2770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771  as_decl_name=`echo $2|sed 's/ *(.*//'`
2772  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2774$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2775if eval \${$3+:} false; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779/* end confdefs.h.  */
2780$4
2781int
2782main ()
2783{
2784#ifndef $as_decl_name
2785#ifdef __cplusplus
2786  (void) $as_decl_use;
2787#else
2788  (void) $as_decl_name;
2789#endif
2790#endif
2791
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796if ac_fn_cxx_try_compile "$LINENO"; then :
2797  eval "$3=yes"
2798else
2799  eval "$3=no"
2800fi
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802fi
2803eval ac_res=\$$3
2804	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805$as_echo "$ac_res" >&6; }
2806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807
2808} # ac_fn_cxx_check_decl
2809
2810# ac_fn_c_try_link LINENO
2811# -----------------------
2812# Try to link conftest.$ac_ext, and return whether this succeeded.
2813ac_fn_c_try_link ()
2814{
2815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816  rm -f conftest.$ac_objext conftest$ac_exeext
2817  if { { ac_try="$ac_link"
2818case "(($ac_try" in
2819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820  *) ac_try_echo=$ac_try;;
2821esac
2822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823$as_echo "$ac_try_echo"; } >&5
2824  (eval "$ac_link") 2>conftest.err
2825  ac_status=$?
2826  if test -s conftest.err; then
2827    grep -v '^ *+' conftest.err >conftest.er1
2828    cat conftest.er1 >&5
2829    mv -f conftest.er1 conftest.err
2830  fi
2831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2832  test $ac_status = 0; } && {
2833	 test -z "$ac_c_werror_flag" ||
2834	 test ! -s conftest.err
2835       } && test -s conftest$ac_exeext && {
2836	 test "$cross_compiling" = yes ||
2837	 test -x conftest$ac_exeext
2838       }; then :
2839  ac_retval=0
2840else
2841  $as_echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844	ac_retval=1
2845fi
2846  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2847  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2848  # interfere with the next link command; also delete a directory that is
2849  # left behind by Apple's compiler.  We do this before executing the actions.
2850  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2852  as_fn_set_status $ac_retval
2853
2854} # ac_fn_c_try_link
2855
2856# ac_fn_c_check_header_preproc LINENO HEADER VAR
2857# ----------------------------------------------
2858# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2859ac_fn_c_check_header_preproc ()
2860{
2861  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2863$as_echo_n "checking for $2... " >&6; }
2864if eval \${$3+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h.  */
2869#include <$2>
2870_ACEOF
2871if ac_fn_c_try_cpp "$LINENO"; then :
2872  eval "$3=yes"
2873else
2874  eval "$3=no"
2875fi
2876rm -f conftest.err conftest.i conftest.$ac_ext
2877fi
2878eval ac_res=\$$3
2879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2880$as_echo "$ac_res" >&6; }
2881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2882
2883} # ac_fn_c_check_header_preproc
2884
2885# ac_fn_c_check_func LINENO FUNC VAR
2886# ----------------------------------
2887# Tests whether FUNC exists, setting the cache variable VAR accordingly
2888ac_fn_c_check_func ()
2889{
2890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892$as_echo_n "checking for $2... " >&6; }
2893if eval \${$3+:} false; then :
2894  $as_echo_n "(cached) " >&6
2895else
2896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h.  */
2898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2899   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2900#define $2 innocuous_$2
2901
2902/* System header to define __stub macros and hopefully few prototypes,
2903    which can conflict with char $2 (); below.
2904    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2905    <limits.h> exists even on freestanding compilers.  */
2906
2907#ifdef __STDC__
2908# include <limits.h>
2909#else
2910# include <assert.h>
2911#endif
2912
2913#undef $2
2914
2915/* Override any GCC internal prototype to avoid an error.
2916   Use char because int might match the return type of a GCC
2917   builtin and then its argument prototype would still apply.  */
2918#ifdef __cplusplus
2919extern "C"
2920#endif
2921char $2 ();
2922/* The GNU C library defines this for functions which it implements
2923    to always fail with ENOSYS.  Some functions are actually named
2924    something starting with __ and the normal name is an alias.  */
2925#if defined __stub_$2 || defined __stub___$2
2926choke me
2927#endif
2928
2929int
2930main ()
2931{
2932return $2 ();
2933  ;
2934  return 0;
2935}
2936_ACEOF
2937if ac_fn_c_try_link "$LINENO"; then :
2938  eval "$3=yes"
2939else
2940  eval "$3=no"
2941fi
2942rm -f core conftest.err conftest.$ac_objext \
2943    conftest$ac_exeext conftest.$ac_ext
2944fi
2945eval ac_res=\$$3
2946	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2947$as_echo "$ac_res" >&6; }
2948  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2949
2950} # ac_fn_c_check_func
2951cat >config.log <<_ACEOF
2952This file contains any messages produced by compilers while
2953running configure, to aid debugging if configure makes a mistake.
2954
2955It was created by $as_me, which was
2956generated by GNU Autoconf 2.69.  Invocation command line was
2957
2958  $ $0 $@
2959
2960_ACEOF
2961exec 5>>config.log
2962{
2963cat <<_ASUNAME
2964## --------- ##
2965## Platform. ##
2966## --------- ##
2967
2968hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2969uname -m = `(uname -m) 2>/dev/null || echo unknown`
2970uname -r = `(uname -r) 2>/dev/null || echo unknown`
2971uname -s = `(uname -s) 2>/dev/null || echo unknown`
2972uname -v = `(uname -v) 2>/dev/null || echo unknown`
2973
2974/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2975/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2976
2977/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2978/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2979/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2980/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2981/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2982/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2983/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2984
2985_ASUNAME
2986
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990  IFS=$as_save_IFS
2991  test -z "$as_dir" && as_dir=.
2992    $as_echo "PATH: $as_dir"
2993  done
2994IFS=$as_save_IFS
2995
2996} >&5
2997
2998cat >&5 <<_ACEOF
2999
3000
3001## ----------- ##
3002## Core tests. ##
3003## ----------- ##
3004
3005_ACEOF
3006
3007
3008# Keep a trace of the command line.
3009# Strip out --no-create and --no-recursion so they do not pile up.
3010# Strip out --silent because we don't want to record it for future runs.
3011# Also quote any args containing shell meta-characters.
3012# Make two passes to allow for proper duplicate-argument suppression.
3013ac_configure_args=
3014ac_configure_args0=
3015ac_configure_args1=
3016ac_must_keep_next=false
3017for ac_pass in 1 2
3018do
3019  for ac_arg
3020  do
3021    case $ac_arg in
3022    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3023    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3024    | -silent | --silent | --silen | --sile | --sil)
3025      continue ;;
3026    *\'*)
3027      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3028    esac
3029    case $ac_pass in
3030    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3031    2)
3032      as_fn_append ac_configure_args1 " '$ac_arg'"
3033      if test $ac_must_keep_next = true; then
3034	ac_must_keep_next=false # Got value, back to normal.
3035      else
3036	case $ac_arg in
3037	  *=* | --config-cache | -C | -disable-* | --disable-* \
3038	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3039	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3040	  | -with-* | --with-* | -without-* | --without-* | --x)
3041	    case "$ac_configure_args0 " in
3042	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3043	    esac
3044	    ;;
3045	  -* ) ac_must_keep_next=true ;;
3046	esac
3047      fi
3048      as_fn_append ac_configure_args " '$ac_arg'"
3049      ;;
3050    esac
3051  done
3052done
3053{ ac_configure_args0=; unset ac_configure_args0;}
3054{ ac_configure_args1=; unset ac_configure_args1;}
3055
3056# When interrupted or exit'd, cleanup temporary files, and complete
3057# config.log.  We remove comments because anyway the quotes in there
3058# would cause problems or look ugly.
3059# WARNING: Use '\'' to represent an apostrophe within the trap.
3060# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3061trap 'exit_status=$?
3062  # Save into config.log some information that might help in debugging.
3063  {
3064    echo
3065
3066    $as_echo "## ---------------- ##
3067## Cache variables. ##
3068## ---------------- ##"
3069    echo
3070    # The following way of writing the cache mishandles newlines in values,
3071(
3072  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3073    eval ac_val=\$$ac_var
3074    case $ac_val in #(
3075    *${as_nl}*)
3076      case $ac_var in #(
3077      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3079      esac
3080      case $ac_var in #(
3081      _ | IFS | as_nl) ;; #(
3082      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3083      *) { eval $ac_var=; unset $ac_var;} ;;
3084      esac ;;
3085    esac
3086  done
3087  (set) 2>&1 |
3088    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3089    *${as_nl}ac_space=\ *)
3090      sed -n \
3091	"s/'\''/'\''\\\\'\'''\''/g;
3092	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3093      ;; #(
3094    *)
3095      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3096      ;;
3097    esac |
3098    sort
3099)
3100    echo
3101
3102    $as_echo "## ----------------- ##
3103## Output variables. ##
3104## ----------------- ##"
3105    echo
3106    for ac_var in $ac_subst_vars
3107    do
3108      eval ac_val=\$$ac_var
3109      case $ac_val in
3110      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3111      esac
3112      $as_echo "$ac_var='\''$ac_val'\''"
3113    done | sort
3114    echo
3115
3116    if test -n "$ac_subst_files"; then
3117      $as_echo "## ------------------- ##
3118## File substitutions. ##
3119## ------------------- ##"
3120      echo
3121      for ac_var in $ac_subst_files
3122      do
3123	eval ac_val=\$$ac_var
3124	case $ac_val in
3125	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3126	esac
3127	$as_echo "$ac_var='\''$ac_val'\''"
3128      done | sort
3129      echo
3130    fi
3131
3132    if test -s confdefs.h; then
3133      $as_echo "## ----------- ##
3134## confdefs.h. ##
3135## ----------- ##"
3136      echo
3137      cat confdefs.h
3138      echo
3139    fi
3140    test "$ac_signal" != 0 &&
3141      $as_echo "$as_me: caught signal $ac_signal"
3142    $as_echo "$as_me: exit $exit_status"
3143  } >&5
3144  rm -f core *.core core.conftest.* &&
3145    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3146    exit $exit_status
3147' 0
3148for ac_signal in 1 2 13 15; do
3149  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3150done
3151ac_signal=0
3152
3153# confdefs.h avoids OS command line length limits that DEFS can exceed.
3154rm -f -r conftest* confdefs.h
3155
3156$as_echo "/* confdefs.h */" > confdefs.h
3157
3158# Predefined preprocessor variables.
3159
3160cat >>confdefs.h <<_ACEOF
3161#define PACKAGE_NAME "$PACKAGE_NAME"
3162_ACEOF
3163
3164cat >>confdefs.h <<_ACEOF
3165#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3166_ACEOF
3167
3168cat >>confdefs.h <<_ACEOF
3169#define PACKAGE_VERSION "$PACKAGE_VERSION"
3170_ACEOF
3171
3172cat >>confdefs.h <<_ACEOF
3173#define PACKAGE_STRING "$PACKAGE_STRING"
3174_ACEOF
3175
3176cat >>confdefs.h <<_ACEOF
3177#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3178_ACEOF
3179
3180cat >>confdefs.h <<_ACEOF
3181#define PACKAGE_URL "$PACKAGE_URL"
3182_ACEOF
3183
3184
3185# Let the site file select an alternate cache file if it wants to.
3186# Prefer an explicitly selected file to automatically selected ones.
3187ac_site_file1=NONE
3188ac_site_file2=NONE
3189if test -n "$CONFIG_SITE"; then
3190  # We do not want a PATH search for config.site.
3191  case $CONFIG_SITE in #((
3192    -*)  ac_site_file1=./$CONFIG_SITE;;
3193    */*) ac_site_file1=$CONFIG_SITE;;
3194    *)   ac_site_file1=./$CONFIG_SITE;;
3195  esac
3196elif test "x$prefix" != xNONE; then
3197  ac_site_file1=$prefix/share/config.site
3198  ac_site_file2=$prefix/etc/config.site
3199else
3200  ac_site_file1=$ac_default_prefix/share/config.site
3201  ac_site_file2=$ac_default_prefix/etc/config.site
3202fi
3203for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3204do
3205  test "x$ac_site_file" = xNONE && continue
3206  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3207    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3208$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3209    sed 's/^/| /' "$ac_site_file" >&5
3210    . "$ac_site_file" \
3211      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213as_fn_error $? "failed to load site script $ac_site_file
3214See \`config.log' for more details" "$LINENO" 5; }
3215  fi
3216done
3217
3218if test -r "$cache_file"; then
3219  # Some versions of bash will fail to source /dev/null (special files
3220  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3221  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3222    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3223$as_echo "$as_me: loading cache $cache_file" >&6;}
3224    case $cache_file in
3225      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3226      *)                      . "./$cache_file";;
3227    esac
3228  fi
3229else
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3231$as_echo "$as_me: creating cache $cache_file" >&6;}
3232  >$cache_file
3233fi
3234
3235# Check that the precious variables saved in the cache have kept the same
3236# value.
3237ac_cache_corrupted=false
3238for ac_var in $ac_precious_vars; do
3239  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3240  eval ac_new_set=\$ac_env_${ac_var}_set
3241  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3242  eval ac_new_val=\$ac_env_${ac_var}_value
3243  case $ac_old_set,$ac_new_set in
3244    set,)
3245      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3246$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3247      ac_cache_corrupted=: ;;
3248    ,set)
3249      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3250$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3251      ac_cache_corrupted=: ;;
3252    ,);;
3253    *)
3254      if test "x$ac_old_val" != "x$ac_new_val"; then
3255	# differences in whitespace do not lead to failure.
3256	ac_old_val_w=`echo x $ac_old_val`
3257	ac_new_val_w=`echo x $ac_new_val`
3258	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3259	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3260$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3261	  ac_cache_corrupted=:
3262	else
3263	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3264$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3265	  eval $ac_var=\$ac_old_val
3266	fi
3267	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3268$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3269	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3270$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3271      fi;;
3272  esac
3273  # Pass precious variables to config.status.
3274  if test "$ac_new_set" = set; then
3275    case $ac_new_val in
3276    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3277    *) ac_arg=$ac_var=$ac_new_val ;;
3278    esac
3279    case " $ac_configure_args " in
3280      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3281      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3282    esac
3283  fi
3284done
3285if $ac_cache_corrupted; then
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3289$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3290  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3291fi
3292## -------------------- ##
3293## Main body of script. ##
3294## -------------------- ##
3295
3296ac_ext=c
3297ac_cpp='$CPP $CPPFLAGS'
3298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3302
3303
3304
3305
3306
3307ac_config_headers="$ac_config_headers auto-host.h:config.in"
3308
3309
3310gcc_version=`cat $srcdir/BASE-VER`
3311
3312# Determine the host, build, and target systems
3313ac_aux_dir=
3314for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3315  if test -f "$ac_dir/install-sh"; then
3316    ac_aux_dir=$ac_dir
3317    ac_install_sh="$ac_aux_dir/install-sh -c"
3318    break
3319  elif test -f "$ac_dir/install.sh"; then
3320    ac_aux_dir=$ac_dir
3321    ac_install_sh="$ac_aux_dir/install.sh -c"
3322    break
3323  elif test -f "$ac_dir/shtool"; then
3324    ac_aux_dir=$ac_dir
3325    ac_install_sh="$ac_aux_dir/shtool install -c"
3326    break
3327  fi
3328done
3329if test -z "$ac_aux_dir"; then
3330  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3331fi
3332
3333# These three variables are undocumented and unsupported,
3334# and are intended to be withdrawn in a future Autoconf release.
3335# They can cause serious problems if a builder's source tree is in a directory
3336# whose full name contains unusual characters.
3337ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3338ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3339ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3340
3341
3342# Make sure we can run config.sub.
3343$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3344  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3345
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3347$as_echo_n "checking build system type... " >&6; }
3348if ${ac_cv_build+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  ac_build_alias=$build_alias
3352test "x$ac_build_alias" = x &&
3353  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3354test "x$ac_build_alias" = x &&
3355  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3356ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3357  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3358
3359fi
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3361$as_echo "$ac_cv_build" >&6; }
3362case $ac_cv_build in
3363*-*-*) ;;
3364*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3365esac
3366build=$ac_cv_build
3367ac_save_IFS=$IFS; IFS='-'
3368set x $ac_cv_build
3369shift
3370build_cpu=$1
3371build_vendor=$2
3372shift; shift
3373# Remember, the first character of IFS is used to create $*,
3374# except with old shells:
3375build_os=$*
3376IFS=$ac_save_IFS
3377case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3378
3379
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3381$as_echo_n "checking host system type... " >&6; }
3382if ${ac_cv_host+:} false; then :
3383  $as_echo_n "(cached) " >&6
3384else
3385  if test "x$host_alias" = x; then
3386  ac_cv_host=$ac_cv_build
3387else
3388  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3389    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3390fi
3391
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3394$as_echo "$ac_cv_host" >&6; }
3395case $ac_cv_host in
3396*-*-*) ;;
3397*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3398esac
3399host=$ac_cv_host
3400ac_save_IFS=$IFS; IFS='-'
3401set x $ac_cv_host
3402shift
3403host_cpu=$1
3404host_vendor=$2
3405shift; shift
3406# Remember, the first character of IFS is used to create $*,
3407# except with old shells:
3408host_os=$*
3409IFS=$ac_save_IFS
3410case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3411
3412
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3414$as_echo_n "checking target system type... " >&6; }
3415if ${ac_cv_target+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  if test "x$target_alias" = x; then
3419  ac_cv_target=$ac_cv_host
3420else
3421  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3422    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3423fi
3424
3425fi
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3427$as_echo "$ac_cv_target" >&6; }
3428case $ac_cv_target in
3429*-*-*) ;;
3430*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3431esac
3432target=$ac_cv_target
3433ac_save_IFS=$IFS; IFS='-'
3434set x $ac_cv_target
3435shift
3436target_cpu=$1
3437target_vendor=$2
3438shift; shift
3439# Remember, the first character of IFS is used to create $*,
3440# except with old shells:
3441target_os=$*
3442IFS=$ac_save_IFS
3443case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3444
3445
3446# The aliases save the names the user supplied, while $host etc.
3447# will get canonicalized.
3448test -n "$target_alias" &&
3449  test "$program_prefix$program_suffix$program_transform_name" = \
3450    NONENONEs,x,x, &&
3451  program_prefix=${target_alias}-
3452
3453# Determine the noncanonical host name, for Ada.
3454 case ${build_alias} in
3455  "") build_noncanonical=${build} ;;
3456  *) build_noncanonical=${build_alias} ;;
3457esac
3458
3459 case ${host_alias} in
3460  "") host_noncanonical=${build_noncanonical} ;;
3461  *) host_noncanonical=${host_alias} ;;
3462esac
3463
3464
3465
3466
3467# Determine the noncanonical target name, for directory use.
3468 case ${target_alias} in
3469  "") target_noncanonical=${host_noncanonical} ;;
3470  *) target_noncanonical=${target_alias} ;;
3471esac
3472
3473
3474
3475
3476# Used for constructing correct paths for offload compilers.
3477real_target_noncanonical=${target_noncanonical}
3478accel_dir_suffix=
3479
3480# Determine the target- and build-specific subdirectories
3481
3482# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3483# have matching libraries, they should use host libraries: Makefile.tpl
3484# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3485# However, they still use the build modules, because the corresponding
3486# host modules (e.g. bison) are only built for the host when bootstrap
3487# finishes. So:
3488# - build_subdir is where we find build modules, and never changes.
3489# - build_libsubdir is where we find build libraries, and can be overridden.
3490
3491# Prefix 'build-' so this never conflicts with target_subdir.
3492build_subdir="build-${build_noncanonical}"
3493
3494# Check whether --with-build-libsubdir was given.
3495if test "${with_build_libsubdir+set}" = set; then :
3496  withval=$with_build_libsubdir; build_libsubdir="$withval"
3497else
3498  build_libsubdir="$build_subdir"
3499fi
3500
3501# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3502if ( test $srcdir = . && test -d gcc ) \
3503   || test -d $srcdir/../host-${host_noncanonical}; then
3504  host_subdir="host-${host_noncanonical}"
3505else
3506  host_subdir=.
3507fi
3508# No prefix.
3509target_subdir=${target_noncanonical}
3510
3511
3512# Set program_transform_name
3513test "$program_prefix" != NONE &&
3514  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3515# Use a double $ so make ignores it.
3516test "$program_suffix" != NONE &&
3517  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3518# Double any \ or $.
3519# By default was `s,x,x', remove it if useless.
3520ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3521program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3522
3523
3524# Check for bogus environment variables.
3525# Test if LIBRARY_PATH contains the notation for the current directory
3526# since this would lead to problems installing/building glibc.
3527# LIBRARY_PATH contains the current directory if one of the following
3528# is true:
3529# - one of the terminals (":" and ";") is the first or last sign
3530# - two terminals occur directly after each other
3531# - the path contains an element with a dot in it
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3533$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3534case ${LIBRARY_PATH} in
3535  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3536    library_path_setting="contains current directory"
3537    ;;
3538  *)
3539    library_path_setting="ok"
3540    ;;
3541esac
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3543$as_echo "$library_path_setting" >&6; }
3544if test "$library_path_setting" != "ok"; then
3545as_fn_error $? "
3546*** LIBRARY_PATH shouldn't contain the current directory when
3547*** building gcc. Please change the environment variable
3548*** and run configure again." "$LINENO" 5
3549fi
3550
3551# Test if GCC_EXEC_PREFIX contains the notation for the current directory
3552# since this would lead to problems installing/building glibc.
3553# GCC_EXEC_PREFIX contains the current directory if one of the following
3554# is true:
3555# - one of the terminals (":" and ";") is the first or last sign
3556# - two terminals occur directly after each other
3557# - the path contains an element with a dot in it
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3559$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3560case ${GCC_EXEC_PREFIX} in
3561  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3562    gcc_exec_prefix_setting="contains current directory"
3563    ;;
3564  *)
3565    gcc_exec_prefix_setting="ok"
3566    ;;
3567esac
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3569$as_echo "$gcc_exec_prefix_setting" >&6; }
3570if test "$gcc_exec_prefix_setting" != "ok"; then
3571as_fn_error $? "
3572*** GCC_EXEC_PREFIX shouldn't contain the current directory when
3573*** building gcc. Please change the environment variable
3574*** and run configure again." "$LINENO" 5
3575fi
3576
3577# -----------
3578# Directories
3579# -----------
3580
3581# Specify the local prefix
3582local_prefix=
3583
3584# Check whether --with-local-prefix was given.
3585if test "${with_local_prefix+set}" = set; then :
3586  withval=$with_local_prefix; case "${withval}" in
3587yes)	as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3588no)	;;
3589*)	local_prefix=$with_local_prefix ;;
3590esac
3591fi
3592
3593
3594# Default local prefix if it is empty
3595if test x$local_prefix = x; then
3596	local_prefix=/usr/local
3597fi
3598
3599
3600# Check whether --with-native-system-header-dir was given.
3601if test "${with_native_system_header_dir+set}" = set; then :
3602  withval=$with_native_system_header_dir;
3603 case ${with_native_system_header_dir} in
3604 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3605 /* | [A-Za-z]:[\\/]*) ;;
3606 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3607 esac
3608 configured_native_system_header_dir="${withval}"
3609
3610else
3611  configured_native_system_header_dir=
3612fi
3613
3614
3615
3616# Check whether --with-build-sysroot was given.
3617if test "${with_build_sysroot+set}" = set; then :
3618  withval=$with_build_sysroot; if test x"$withval" != x ; then
3619     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3620   fi
3621else
3622  SYSROOT_CFLAGS_FOR_TARGET=
3623fi
3624
3625
3626
3627if test "x$prefix" = xNONE; then
3628 test_prefix=/usr/local
3629else
3630 test_prefix=$prefix
3631fi
3632if test "x$exec_prefix" = xNONE; then
3633 test_exec_prefix=$test_prefix
3634else
3635 test_exec_prefix=$exec_prefix
3636fi
3637
3638
3639# Check whether --with-sysroot was given.
3640if test "${with_sysroot+set}" = set; then :
3641  withval=$with_sysroot;
3642 case ${with_sysroot} in
3643 /) ;;
3644 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3645 esac
3646 case ${with_sysroot} in
3647 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3648 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3649 esac
3650
3651 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3652 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3653
3654 case ${TARGET_SYSTEM_ROOT} in
3655 "${test_prefix}"|"${test_prefix}/"*|\
3656 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3657 '${prefix}'|'${prefix}/'*|\
3658 '${exec_prefix}'|'${exec_prefix}/'*)
3659   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3660   TARGET_SYSTEM_ROOT_DEFINE="$t"
3661   ;;
3662 esac
3663
3664else
3665
3666 TARGET_SYSTEM_ROOT=
3667 TARGET_SYSTEM_ROOT_DEFINE=
3668 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3669
3670fi
3671
3672
3673
3674
3675
3676# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3677# passed in by the toplevel make and thus we'd get different behavior
3678# depending on where we built the sources.
3679gcc_gxx_include_dir=
3680# Specify the g++ header file directory
3681
3682# Check whether --with-gxx-include-dir was given.
3683if test "${with_gxx_include_dir+set}" = set; then :
3684  withval=$with_gxx_include_dir; case "${withval}" in
3685yes)	as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3686no)	;;
3687*)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
3688esac
3689fi
3690
3691
3692# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3693# the former in the latter and, upon success, compute gcc_gxx_include_dir as
3694# relative to the sysroot.
3695gcc_gxx_include_dir_add_sysroot=0
3696
3697# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3698if test x${gcc_gxx_include_dir} = x; then
3699  if test x${enable_version_specific_runtime_libs} = xyes; then
3700    gcc_gxx_include_dir='${libsubdir}/include/c++'
3701  else
3702    libstdcxx_incdir='include/c++/$(version)'
3703    if test x$host != x$target; then
3704       libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3705    fi
3706    gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3707  fi
3708elif test "${with_sysroot+set}" = set; then
3709  gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3710  if test "${gcc_gxx_without_sysroot}"; then
3711    gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3712    gcc_gxx_include_dir_add_sysroot=1
3713  fi
3714fi
3715
3716
3717# Check whether --with-cpp_install_dir was given.
3718if test "${with_cpp_install_dir+set}" = set; then :
3719  withval=$with_cpp_install_dir; if test x$withval = xyes; then
3720  as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3721elif test x$withval != xno; then
3722  cpp_install_dir=$withval
3723fi
3724fi
3725
3726
3727# We would like to our source tree to be readonly.  However when releases or
3728# pre-releases are generated, the flex/bison generated files as well as the
3729# various formats of manuals need to be included along with the rest of the
3730# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3731# just that.
3732
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3734$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3735    # Check whether --enable-generated-files-in-srcdir was given.
3736if test "${enable_generated_files_in_srcdir+set}" = set; then :
3737  enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3738else
3739  generated_files_in_srcdir=no
3740fi
3741
3742
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3744$as_echo "$generated_files_in_srcdir" >&6; }
3745
3746if test "$generated_files_in_srcdir" = "yes"; then
3747  GENINSRC=''
3748else
3749  GENINSRC='#'
3750fi
3751
3752
3753# -------------------
3754# Find default linker
3755# -------------------
3756
3757# With GNU ld
3758
3759# Check whether --with-gnu-ld was given.
3760if test "${with_gnu_ld+set}" = set; then :
3761  withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3762else
3763  gnu_ld_flag=no
3764fi
3765
3766
3767case $target in
3768    *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3769    *) ld64_flag=no;;
3770esac
3771
3772# With pre-defined ld
3773
3774# Check whether --with-ld was given.
3775if test "${with_ld+set}" = set; then :
3776  withval=$with_ld; DEFAULT_LINKER="$with_ld"
3777fi
3778
3779if test x"${DEFAULT_LINKER+set}" = x"set"; then
3780  if test ! -x "$DEFAULT_LINKER"; then
3781    as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3782  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3783    gnu_ld_flag=yes
3784  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3785    ld64_flag=yes
3786  fi
3787
3788cat >>confdefs.h <<_ACEOF
3789#define DEFAULT_LINKER "$DEFAULT_LINKER"
3790_ACEOF
3791
3792fi
3793
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3795$as_echo_n "checking whether a default linker was specified... " >&6; }
3796if test x"${DEFAULT_LINKER+set}" = x"set"; then
3797  if test x"$gnu_ld_flag" = x"no"; then
3798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3799$as_echo "yes ($DEFAULT_LINKER)" >&6; }
3800  else
3801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3802$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3803  fi
3804else
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806$as_echo "no" >&6; }
3807fi
3808
3809# With demangler in GNU ld
3810
3811# Check whether --with-demangler-in-ld was given.
3812if test "${with_demangler_in_ld+set}" = set; then :
3813  withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3814else
3815  demangler_in_ld=yes
3816fi
3817
3818
3819# ----------------------
3820# Find default assembler
3821# ----------------------
3822
3823# With GNU as
3824
3825# Check whether --with-gnu-as was given.
3826if test "${with_gnu_as+set}" = set; then :
3827  withval=$with_gnu_as; gas_flag="$with_gnu_as"
3828else
3829  gas_flag=no
3830fi
3831
3832
3833
3834# Check whether --with-as was given.
3835if test "${with_as+set}" = set; then :
3836  withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3837fi
3838
3839if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3840  if test ! -x "$DEFAULT_ASSEMBLER"; then
3841    as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3842  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3843    gas_flag=yes
3844  fi
3845
3846cat >>confdefs.h <<_ACEOF
3847#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3848_ACEOF
3849
3850fi
3851
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3853$as_echo_n "checking whether a default assembler was specified... " >&6; }
3854if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3855  if test x"$gas_flag" = x"no"; then
3856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3857$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3858  else
3859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3860$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3861  fi
3862else
3863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864$as_echo "no" >&6; }
3865fi
3866
3867# ---------------
3868# Find C compiler
3869# ---------------
3870
3871# If a non-executable a.out is present (e.g. created by GNU as above even if
3872# invoked with -v only), the IRIX 6 native ld just overwrites the existing
3873# file, even when creating an executable, so an execution test fails.
3874# Remove possible default executable files to avoid this.
3875#
3876# FIXME: This really belongs into AC_PROG_CC and can be removed once
3877# Autoconf includes it.
3878rm -f a.out a.exe b.out
3879
3880# Find the native compiler
3881ac_ext=c
3882ac_cpp='$CPP $CPPFLAGS'
3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886if test -n "$ac_tool_prefix"; then
3887  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3888set dummy ${ac_tool_prefix}gcc; ac_word=$2
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890$as_echo_n "checking for $ac_word... " >&6; }
3891if ${ac_cv_prog_CC+:} false; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  if test -n "$CC"; then
3895  ac_cv_prog_CC="$CC" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900  IFS=$as_save_IFS
3901  test -z "$as_dir" && as_dir=.
3902    for ac_exec_ext in '' $ac_executable_extensions; do
3903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906    break 2
3907  fi
3908done
3909  done
3910IFS=$as_save_IFS
3911
3912fi
3913fi
3914CC=$ac_cv_prog_CC
3915if test -n "$CC"; then
3916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917$as_echo "$CC" >&6; }
3918else
3919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920$as_echo "no" >&6; }
3921fi
3922
3923
3924fi
3925if test -z "$ac_cv_prog_CC"; then
3926  ac_ct_CC=$CC
3927  # Extract the first word of "gcc", so it can be a program name with args.
3928set dummy gcc; ac_word=$2
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
3931if ${ac_cv_prog_ac_ct_CC+:} false; then :
3932  $as_echo_n "(cached) " >&6
3933else
3934  if test -n "$ac_ct_CC"; then
3935  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940  IFS=$as_save_IFS
3941  test -z "$as_dir" && as_dir=.
3942    for ac_exec_ext in '' $ac_executable_extensions; do
3943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944    ac_cv_prog_ac_ct_CC="gcc"
3945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946    break 2
3947  fi
3948done
3949  done
3950IFS=$as_save_IFS
3951
3952fi
3953fi
3954ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955if test -n "$ac_ct_CC"; then
3956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3957$as_echo "$ac_ct_CC" >&6; }
3958else
3959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
3962
3963  if test "x$ac_ct_CC" = x; then
3964    CC=""
3965  else
3966    case $cross_compiling:$ac_tool_warned in
3967yes:)
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970ac_tool_warned=yes ;;
3971esac
3972    CC=$ac_ct_CC
3973  fi
3974else
3975  CC="$ac_cv_prog_CC"
3976fi
3977
3978if test -z "$CC"; then
3979          if test -n "$ac_tool_prefix"; then
3980    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3981set dummy ${ac_tool_prefix}cc; ac_word=$2
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983$as_echo_n "checking for $ac_word... " >&6; }
3984if ${ac_cv_prog_CC+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  if test -n "$CC"; then
3988  ac_cv_prog_CC="$CC" # Let the user override the test.
3989else
3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993  IFS=$as_save_IFS
3994  test -z "$as_dir" && as_dir=.
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997    ac_cv_prog_CC="${ac_tool_prefix}cc"
3998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999    break 2
4000  fi
4001done
4002  done
4003IFS=$as_save_IFS
4004
4005fi
4006fi
4007CC=$ac_cv_prog_CC
4008if test -n "$CC"; then
4009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010$as_echo "$CC" >&6; }
4011else
4012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
4014fi
4015
4016
4017  fi
4018fi
4019if test -z "$CC"; then
4020  # Extract the first word of "cc", so it can be a program name with args.
4021set dummy cc; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
4024if ${ac_cv_prog_CC+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test -n "$CC"; then
4028  ac_cv_prog_CC="$CC" # Let the user override the test.
4029else
4030  ac_prog_rejected=no
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034  IFS=$as_save_IFS
4035  test -z "$as_dir" && as_dir=.
4036    for ac_exec_ext in '' $ac_executable_extensions; do
4037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4039       ac_prog_rejected=yes
4040       continue
4041     fi
4042    ac_cv_prog_CC="cc"
4043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044    break 2
4045  fi
4046done
4047  done
4048IFS=$as_save_IFS
4049
4050if test $ac_prog_rejected = yes; then
4051  # We found a bogon in the path, so make sure we never use it.
4052  set dummy $ac_cv_prog_CC
4053  shift
4054  if test $# != 0; then
4055    # We chose a different compiler from the bogus one.
4056    # However, it has the same basename, so the bogon will be chosen
4057    # first if we set CC to just the basename; use the full file name.
4058    shift
4059    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4060  fi
4061fi
4062fi
4063fi
4064CC=$ac_cv_prog_CC
4065if test -n "$CC"; then
4066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4067$as_echo "$CC" >&6; }
4068else
4069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070$as_echo "no" >&6; }
4071fi
4072
4073
4074fi
4075if test -z "$CC"; then
4076  if test -n "$ac_tool_prefix"; then
4077  for ac_prog in cl.exe
4078  do
4079    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
4083if ${ac_cv_prog_CC+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if test -n "$CC"; then
4087  ac_cv_prog_CC="$CC" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101  done
4102IFS=$as_save_IFS
4103
4104fi
4105fi
4106CC=$ac_cv_prog_CC
4107if test -n "$CC"; then
4108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4109$as_echo "$CC" >&6; }
4110else
4111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112$as_echo "no" >&6; }
4113fi
4114
4115
4116    test -n "$CC" && break
4117  done
4118fi
4119if test -z "$CC"; then
4120  ac_ct_CC=$CC
4121  for ac_prog in cl.exe
4122do
4123  # Extract the first word of "$ac_prog", so it can be a program name with args.
4124set dummy $ac_prog; ac_word=$2
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126$as_echo_n "checking for $ac_word... " >&6; }
4127if ${ac_cv_prog_ac_ct_CC+:} false; then :
4128  $as_echo_n "(cached) " >&6
4129else
4130  if test -n "$ac_ct_CC"; then
4131  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4132else
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136  IFS=$as_save_IFS
4137  test -z "$as_dir" && as_dir=.
4138    for ac_exec_ext in '' $ac_executable_extensions; do
4139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140    ac_cv_prog_ac_ct_CC="$ac_prog"
4141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142    break 2
4143  fi
4144done
4145  done
4146IFS=$as_save_IFS
4147
4148fi
4149fi
4150ac_ct_CC=$ac_cv_prog_ac_ct_CC
4151if test -n "$ac_ct_CC"; then
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4153$as_echo "$ac_ct_CC" >&6; }
4154else
4155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156$as_echo "no" >&6; }
4157fi
4158
4159
4160  test -n "$ac_ct_CC" && break
4161done
4162
4163  if test "x$ac_ct_CC" = x; then
4164    CC=""
4165  else
4166    case $cross_compiling:$ac_tool_warned in
4167yes:)
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4170ac_tool_warned=yes ;;
4171esac
4172    CC=$ac_ct_CC
4173  fi
4174fi
4175
4176fi
4177
4178
4179test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4181as_fn_error $? "no acceptable C compiler found in \$PATH
4182See \`config.log' for more details" "$LINENO" 5; }
4183
4184# Provide some information about the compiler.
4185$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4186set X $ac_compile
4187ac_compiler=$2
4188for ac_option in --version -v -V -qversion; do
4189  { { ac_try="$ac_compiler $ac_option >&5"
4190case "(($ac_try" in
4191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192  *) ac_try_echo=$ac_try;;
4193esac
4194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195$as_echo "$ac_try_echo"; } >&5
4196  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4197  ac_status=$?
4198  if test -s conftest.err; then
4199    sed '10a\
4200... rest of stderr output deleted ...
4201         10q' conftest.err >conftest.er1
4202    cat conftest.er1 >&5
4203  fi
4204  rm -f conftest.er1 conftest.err
4205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4206  test $ac_status = 0; }
4207done
4208
4209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211
4212int
4213main ()
4214{
4215
4216  ;
4217  return 0;
4218}
4219_ACEOF
4220ac_clean_files_save=$ac_clean_files
4221ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4222# Try to create an executable without -o first, disregard a.out.
4223# It will help us diagnose broken compilers, and finding out an intuition
4224# of exeext.
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4226$as_echo_n "checking whether the C compiler works... " >&6; }
4227ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4228
4229# The possible output files:
4230ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4231
4232ac_rmfiles=
4233for ac_file in $ac_files
4234do
4235  case $ac_file in
4236    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4237    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4238  esac
4239done
4240rm -f $ac_rmfiles
4241
4242if { { ac_try="$ac_link_default"
4243case "(($ac_try" in
4244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245  *) ac_try_echo=$ac_try;;
4246esac
4247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4248$as_echo "$ac_try_echo"; } >&5
4249  (eval "$ac_link_default") 2>&5
4250  ac_status=$?
4251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4252  test $ac_status = 0; }; then :
4253  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4254# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4255# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4256# so that the user can short-circuit this test for compilers unknown to
4257# Autoconf.
4258for ac_file in $ac_files ''
4259do
4260  test -f "$ac_file" || continue
4261  case $ac_file in
4262    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4263	;;
4264    [ab].out )
4265	# We found the default executable, but exeext='' is most
4266	# certainly right.
4267	break;;
4268    *.* )
4269	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4270	then :; else
4271	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4272	fi
4273	# We set ac_cv_exeext here because the later test for it is not
4274	# safe: cross compilers may not add the suffix if given an `-o'
4275	# argument, so we may need to know it at that point already.
4276	# Even if this section looks crufty: it has the advantage of
4277	# actually working.
4278	break;;
4279    * )
4280	break;;
4281  esac
4282done
4283test "$ac_cv_exeext" = no && ac_cv_exeext=
4284
4285else
4286  ac_file=''
4287fi
4288if test -z "$ac_file"; then :
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
4291$as_echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296as_fn_error 77 "C compiler cannot create executables
4297See \`config.log' for more details" "$LINENO" 5; }
4298else
4299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4300$as_echo "yes" >&6; }
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4303$as_echo_n "checking for C compiler default output file name... " >&6; }
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4305$as_echo "$ac_file" >&6; }
4306ac_exeext=$ac_cv_exeext
4307
4308rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4309ac_clean_files=$ac_clean_files_save
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4311$as_echo_n "checking for suffix of executables... " >&6; }
4312if { { ac_try="$ac_link"
4313case "(($ac_try" in
4314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315  *) ac_try_echo=$ac_try;;
4316esac
4317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318$as_echo "$ac_try_echo"; } >&5
4319  (eval "$ac_link") 2>&5
4320  ac_status=$?
4321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322  test $ac_status = 0; }; then :
4323  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4324# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4325# work properly (i.e., refer to `conftest.exe'), while it won't with
4326# `rm'.
4327for ac_file in conftest.exe conftest conftest.*; do
4328  test -f "$ac_file" || continue
4329  case $ac_file in
4330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4331    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4332	  break;;
4333    * ) break;;
4334  esac
4335done
4336else
4337  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4339as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4340See \`config.log' for more details" "$LINENO" 5; }
4341fi
4342rm -f conftest conftest$ac_cv_exeext
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4344$as_echo "$ac_cv_exeext" >&6; }
4345
4346rm -f conftest.$ac_ext
4347EXEEXT=$ac_cv_exeext
4348ac_exeext=$EXEEXT
4349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h.  */
4351#include <stdio.h>
4352int
4353main ()
4354{
4355FILE *f = fopen ("conftest.out", "w");
4356 return ferror (f) || fclose (f) != 0;
4357
4358  ;
4359  return 0;
4360}
4361_ACEOF
4362ac_clean_files="$ac_clean_files conftest.out"
4363# Check that the compiler produces executables we can run.  If not, either
4364# the compiler is broken, or we cross compile.
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4366$as_echo_n "checking whether we are cross compiling... " >&6; }
4367if test "$cross_compiling" != yes; then
4368  { { ac_try="$ac_link"
4369case "(($ac_try" in
4370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371  *) ac_try_echo=$ac_try;;
4372esac
4373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374$as_echo "$ac_try_echo"; } >&5
4375  (eval "$ac_link") 2>&5
4376  ac_status=$?
4377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378  test $ac_status = 0; }
4379  if { ac_try='./conftest$ac_cv_exeext'
4380  { { case "(($ac_try" in
4381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382  *) ac_try_echo=$ac_try;;
4383esac
4384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385$as_echo "$ac_try_echo"; } >&5
4386  (eval "$ac_try") 2>&5
4387  ac_status=$?
4388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389  test $ac_status = 0; }; }; then
4390    cross_compiling=no
4391  else
4392    if test "$cross_compiling" = maybe; then
4393	cross_compiling=yes
4394    else
4395	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397as_fn_error $? "cannot run C compiled programs.
4398If you meant to cross compile, use \`--host'.
4399See \`config.log' for more details" "$LINENO" 5; }
4400    fi
4401  fi
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4404$as_echo "$cross_compiling" >&6; }
4405
4406rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4407ac_clean_files=$ac_clean_files_save
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4409$as_echo_n "checking for suffix of object files... " >&6; }
4410if ${ac_cv_objext+:} false; then :
4411  $as_echo_n "(cached) " >&6
4412else
4413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h.  */
4415
4416int
4417main ()
4418{
4419
4420  ;
4421  return 0;
4422}
4423_ACEOF
4424rm -f conftest.o conftest.obj
4425if { { ac_try="$ac_compile"
4426case "(($ac_try" in
4427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428  *) ac_try_echo=$ac_try;;
4429esac
4430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431$as_echo "$ac_try_echo"; } >&5
4432  (eval "$ac_compile") 2>&5
4433  ac_status=$?
4434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435  test $ac_status = 0; }; then :
4436  for ac_file in conftest.o conftest.obj conftest.*; do
4437  test -f "$ac_file" || continue;
4438  case $ac_file in
4439    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4440    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4441       break;;
4442  esac
4443done
4444else
4445  $as_echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450as_fn_error $? "cannot compute suffix of object files: cannot compile
4451See \`config.log' for more details" "$LINENO" 5; }
4452fi
4453rm -f conftest.$ac_cv_objext conftest.$ac_ext
4454fi
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4456$as_echo "$ac_cv_objext" >&6; }
4457OBJEXT=$ac_cv_objext
4458ac_objext=$OBJEXT
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4460$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4461if ${ac_cv_c_compiler_gnu+:} false; then :
4462  $as_echo_n "(cached) " >&6
4463else
4464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h.  */
4466
4467int
4468main ()
4469{
4470#ifndef __GNUC__
4471       choke me
4472#endif
4473
4474  ;
4475  return 0;
4476}
4477_ACEOF
4478if ac_fn_c_try_compile "$LINENO"; then :
4479  ac_compiler_gnu=yes
4480else
4481  ac_compiler_gnu=no
4482fi
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484ac_cv_c_compiler_gnu=$ac_compiler_gnu
4485
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4488$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4489if test $ac_compiler_gnu = yes; then
4490  GCC=yes
4491else
4492  GCC=
4493fi
4494ac_test_CFLAGS=${CFLAGS+set}
4495ac_save_CFLAGS=$CFLAGS
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4497$as_echo_n "checking whether $CC accepts -g... " >&6; }
4498if ${ac_cv_prog_cc_g+:} false; then :
4499  $as_echo_n "(cached) " >&6
4500else
4501  ac_save_c_werror_flag=$ac_c_werror_flag
4502   ac_c_werror_flag=yes
4503   ac_cv_prog_cc_g=no
4504   CFLAGS="-g"
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_c_try_compile "$LINENO"; then :
4517  ac_cv_prog_cc_g=yes
4518else
4519  CFLAGS=""
4520      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h.  */
4522
4523int
4524main ()
4525{
4526
4527  ;
4528  return 0;
4529}
4530_ACEOF
4531if ac_fn_c_try_compile "$LINENO"; then :
4532
4533else
4534  ac_c_werror_flag=$ac_save_c_werror_flag
4535	 CFLAGS="-g"
4536	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538
4539int
4540main ()
4541{
4542
4543  ;
4544  return 0;
4545}
4546_ACEOF
4547if ac_fn_c_try_compile "$LINENO"; then :
4548  ac_cv_prog_cc_g=yes
4549fi
4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551fi
4552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553fi
4554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555   ac_c_werror_flag=$ac_save_c_werror_flag
4556fi
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4558$as_echo "$ac_cv_prog_cc_g" >&6; }
4559if test "$ac_test_CFLAGS" = set; then
4560  CFLAGS=$ac_save_CFLAGS
4561elif test $ac_cv_prog_cc_g = yes; then
4562  if test "$GCC" = yes; then
4563    CFLAGS="-g -O2"
4564  else
4565    CFLAGS="-g"
4566  fi
4567else
4568  if test "$GCC" = yes; then
4569    CFLAGS="-O2"
4570  else
4571    CFLAGS=
4572  fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4575$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4576if ${ac_cv_prog_cc_c89+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  ac_cv_prog_cc_c89=no
4580ac_save_CC=$CC
4581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582/* end confdefs.h.  */
4583#include <stdarg.h>
4584#include <stdio.h>
4585struct stat;
4586/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4587struct buf { int x; };
4588FILE * (*rcsopen) (struct buf *, struct stat *, int);
4589static char *e (p, i)
4590     char **p;
4591     int i;
4592{
4593  return p[i];
4594}
4595static char *f (char * (*g) (char **, int), char **p, ...)
4596{
4597  char *s;
4598  va_list v;
4599  va_start (v,p);
4600  s = g (p, va_arg (v,int));
4601  va_end (v);
4602  return s;
4603}
4604
4605/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4606   function prototypes and stuff, but not '\xHH' hex character constants.
4607   These don't provoke an error unfortunately, instead are silently treated
4608   as 'x'.  The following induces an error, until -std is added to get
4609   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4610   array size at least.  It's necessary to write '\x00'==0 to get something
4611   that's true only with -std.  */
4612int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4613
4614/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4615   inside strings and character constants.  */
4616#define FOO(x) 'x'
4617int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4618
4619int test (int i, double x);
4620struct s1 {int (*f) (int a);};
4621struct s2 {int (*f) (double a);};
4622int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4623int argc;
4624char **argv;
4625int
4626main ()
4627{
4628return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4629  ;
4630  return 0;
4631}
4632_ACEOF
4633for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4634	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4635do
4636  CC="$ac_save_CC $ac_arg"
4637  if ac_fn_c_try_compile "$LINENO"; then :
4638  ac_cv_prog_cc_c89=$ac_arg
4639fi
4640rm -f core conftest.err conftest.$ac_objext
4641  test "x$ac_cv_prog_cc_c89" != "xno" && break
4642done
4643rm -f conftest.$ac_ext
4644CC=$ac_save_CC
4645
4646fi
4647# AC_CACHE_VAL
4648case "x$ac_cv_prog_cc_c89" in
4649  x)
4650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4651$as_echo "none needed" >&6; } ;;
4652  xno)
4653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4654$as_echo "unsupported" >&6; } ;;
4655  *)
4656    CC="$CC $ac_cv_prog_cc_c89"
4657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4658$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4659esac
4660if test "x$ac_cv_prog_cc_c89" != xno; then :
4661
4662fi
4663
4664ac_ext=c
4665ac_cpp='$CPP $CPPFLAGS'
4666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668ac_compiler_gnu=$ac_cv_c_compiler_gnu
4669
4670ac_ext=cpp
4671ac_cpp='$CXXCPP $CPPFLAGS'
4672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4675if test -z "$CXX"; then
4676  if test -n "$CCC"; then
4677    CXX=$CCC
4678  else
4679    if test -n "$ac_tool_prefix"; then
4680  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4681  do
4682    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685$as_echo_n "checking for $ac_word... " >&6; }
4686if ${ac_cv_prog_CXX+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if test -n "$CXX"; then
4690  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697    for ac_exec_ext in '' $ac_executable_extensions; do
4698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701    break 2
4702  fi
4703done
4704  done
4705IFS=$as_save_IFS
4706
4707fi
4708fi
4709CXX=$ac_cv_prog_CXX
4710if test -n "$CXX"; then
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4712$as_echo "$CXX" >&6; }
4713else
4714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715$as_echo "no" >&6; }
4716fi
4717
4718
4719    test -n "$CXX" && break
4720  done
4721fi
4722if test -z "$CXX"; then
4723  ac_ct_CXX=$CXX
4724  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4725do
4726  # Extract the first word of "$ac_prog", so it can be a program name with args.
4727set dummy $ac_prog; ac_word=$2
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729$as_echo_n "checking for $ac_word... " >&6; }
4730if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  if test -n "$ac_ct_CXX"; then
4734  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  test -z "$as_dir" && as_dir=.
4741    for ac_exec_ext in '' $ac_executable_extensions; do
4742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743    ac_cv_prog_ac_ct_CXX="$ac_prog"
4744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748  done
4749IFS=$as_save_IFS
4750
4751fi
4752fi
4753ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4754if test -n "$ac_ct_CXX"; then
4755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4756$as_echo "$ac_ct_CXX" >&6; }
4757else
4758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759$as_echo "no" >&6; }
4760fi
4761
4762
4763  test -n "$ac_ct_CXX" && break
4764done
4765
4766  if test "x$ac_ct_CXX" = x; then
4767    CXX="g++"
4768  else
4769    case $cross_compiling:$ac_tool_warned in
4770yes:)
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773ac_tool_warned=yes ;;
4774esac
4775    CXX=$ac_ct_CXX
4776  fi
4777fi
4778
4779  fi
4780fi
4781# Provide some information about the compiler.
4782$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4783set X $ac_compile
4784ac_compiler=$2
4785for ac_option in --version -v -V -qversion; do
4786  { { ac_try="$ac_compiler $ac_option >&5"
4787case "(($ac_try" in
4788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789  *) ac_try_echo=$ac_try;;
4790esac
4791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4792$as_echo "$ac_try_echo"; } >&5
4793  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4794  ac_status=$?
4795  if test -s conftest.err; then
4796    sed '10a\
4797... rest of stderr output deleted ...
4798         10q' conftest.err >conftest.er1
4799    cat conftest.er1 >&5
4800  fi
4801  rm -f conftest.er1 conftest.err
4802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4803  test $ac_status = 0; }
4804done
4805
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4807$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4808if ${ac_cv_cxx_compiler_gnu+:} false; then :
4809  $as_echo_n "(cached) " >&6
4810else
4811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h.  */
4813
4814int
4815main ()
4816{
4817#ifndef __GNUC__
4818       choke me
4819#endif
4820
4821  ;
4822  return 0;
4823}
4824_ACEOF
4825if ac_fn_cxx_try_compile "$LINENO"; then :
4826  ac_compiler_gnu=yes
4827else
4828  ac_compiler_gnu=no
4829fi
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4832
4833fi
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4835$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4836if test $ac_compiler_gnu = yes; then
4837  GXX=yes
4838else
4839  GXX=
4840fi
4841ac_test_CXXFLAGS=${CXXFLAGS+set}
4842ac_save_CXXFLAGS=$CXXFLAGS
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4844$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4845if ${ac_cv_prog_cxx_g+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4849   ac_cxx_werror_flag=yes
4850   ac_cv_prog_cxx_g=no
4851   CXXFLAGS="-g"
4852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853/* end confdefs.h.  */
4854
4855int
4856main ()
4857{
4858
4859  ;
4860  return 0;
4861}
4862_ACEOF
4863if ac_fn_cxx_try_compile "$LINENO"; then :
4864  ac_cv_prog_cxx_g=yes
4865else
4866  CXXFLAGS=""
4867      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868/* end confdefs.h.  */
4869
4870int
4871main ()
4872{
4873
4874  ;
4875  return 0;
4876}
4877_ACEOF
4878if ac_fn_cxx_try_compile "$LINENO"; then :
4879
4880else
4881  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4882	 CXXFLAGS="-g"
4883	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h.  */
4885
4886int
4887main ()
4888{
4889
4890  ;
4891  return 0;
4892}
4893_ACEOF
4894if ac_fn_cxx_try_compile "$LINENO"; then :
4895  ac_cv_prog_cxx_g=yes
4896fi
4897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898fi
4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4903fi
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4905$as_echo "$ac_cv_prog_cxx_g" >&6; }
4906if test "$ac_test_CXXFLAGS" = set; then
4907  CXXFLAGS=$ac_save_CXXFLAGS
4908elif test $ac_cv_prog_cxx_g = yes; then
4909  if test "$GXX" = yes; then
4910    CXXFLAGS="-g -O2"
4911  else
4912    CXXFLAGS="-g"
4913  fi
4914else
4915  if test "$GXX" = yes; then
4916    CXXFLAGS="-O2"
4917  else
4918    CXXFLAGS=
4919  fi
4920fi
4921ac_ext=c
4922ac_cpp='$CPP $CPPFLAGS'
4923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927
4928
4929
4930if test -n "$ac_tool_prefix"; then
4931  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4932set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934$as_echo_n "checking for $ac_word... " >&6; }
4935if ${ac_cv_prog_GNATBIND+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  if test -n "$GNATBIND"; then
4939  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4940else
4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944  IFS=$as_save_IFS
4945  test -z "$as_dir" && as_dir=.
4946    for ac_exec_ext in '' $ac_executable_extensions; do
4947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950    break 2
4951  fi
4952done
4953  done
4954IFS=$as_save_IFS
4955
4956fi
4957fi
4958GNATBIND=$ac_cv_prog_GNATBIND
4959if test -n "$GNATBIND"; then
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4961$as_echo "$GNATBIND" >&6; }
4962else
4963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964$as_echo "no" >&6; }
4965fi
4966
4967
4968fi
4969if test -z "$ac_cv_prog_GNATBIND"; then
4970  ac_ct_GNATBIND=$GNATBIND
4971  # Extract the first word of "gnatbind", so it can be a program name with args.
4972set dummy gnatbind; ac_word=$2
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974$as_echo_n "checking for $ac_word... " >&6; }
4975if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  if test -n "$ac_ct_GNATBIND"; then
4979  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984  IFS=$as_save_IFS
4985  test -z "$as_dir" && as_dir=.
4986    for ac_exec_ext in '' $ac_executable_extensions; do
4987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990    break 2
4991  fi
4992done
4993  done
4994IFS=$as_save_IFS
4995
4996fi
4997fi
4998ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4999if test -n "$ac_ct_GNATBIND"; then
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5001$as_echo "$ac_ct_GNATBIND" >&6; }
5002else
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004$as_echo "no" >&6; }
5005fi
5006
5007  if test "x$ac_ct_GNATBIND" = x; then
5008    GNATBIND="no"
5009  else
5010    case $cross_compiling:$ac_tool_warned in
5011yes:)
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014ac_tool_warned=yes ;;
5015esac
5016    GNATBIND=$ac_ct_GNATBIND
5017  fi
5018else
5019  GNATBIND="$ac_cv_prog_GNATBIND"
5020fi
5021
5022if test -n "$ac_tool_prefix"; then
5023  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5024set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if ${ac_cv_prog_GNATMAKE+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030  if test -n "$GNATMAKE"; then
5031  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036  IFS=$as_save_IFS
5037  test -z "$as_dir" && as_dir=.
5038    for ac_exec_ext in '' $ac_executable_extensions; do
5039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042    break 2
5043  fi
5044done
5045  done
5046IFS=$as_save_IFS
5047
5048fi
5049fi
5050GNATMAKE=$ac_cv_prog_GNATMAKE
5051if test -n "$GNATMAKE"; then
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5053$as_echo "$GNATMAKE" >&6; }
5054else
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060fi
5061if test -z "$ac_cv_prog_GNATMAKE"; then
5062  ac_ct_GNATMAKE=$GNATMAKE
5063  # Extract the first word of "gnatmake", so it can be a program name with args.
5064set dummy gnatmake; ac_word=$2
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -n "$ac_ct_GNATMAKE"; then
5071  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  test -z "$as_dir" && as_dir=.
5078    for ac_exec_ext in '' $ac_executable_extensions; do
5079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082    break 2
5083  fi
5084done
5085  done
5086IFS=$as_save_IFS
5087
5088fi
5089fi
5090ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5091if test -n "$ac_ct_GNATMAKE"; then
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5093$as_echo "$ac_ct_GNATMAKE" >&6; }
5094else
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096$as_echo "no" >&6; }
5097fi
5098
5099  if test "x$ac_ct_GNATMAKE" = x; then
5100    GNATMAKE="no"
5101  else
5102    case $cross_compiling:$ac_tool_warned in
5103yes:)
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106ac_tool_warned=yes ;;
5107esac
5108    GNATMAKE=$ac_ct_GNATMAKE
5109  fi
5110else
5111  GNATMAKE="$ac_cv_prog_GNATMAKE"
5112fi
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5115$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5116if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  cat >conftest.adb <<EOF
5120procedure conftest is begin null; end conftest;
5121EOF
5122acx_cv_cc_gcc_supports_ada=no
5123# There is a bug in old released versions of GCC which causes the
5124# driver to exit successfully when the appropriate language module
5125# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5126# Therefore we must check for the error message as well as an
5127# unsuccessful exit.
5128# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5129# given a .adb file, but produce no object file.  So we must check
5130# if an object file was really produced to guard against this.
5131errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5132if test x"$errors" = x && test -f conftest.$ac_objext; then
5133  acx_cv_cc_gcc_supports_ada=yes
5134fi
5135rm -f conftest.*
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5138$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5139
5140if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5141  have_gnat=yes
5142else
5143  have_gnat=no
5144fi
5145
5146
5147# Do configure tests with the C++ compiler, since that's what we build with.
5148ac_ext=cpp
5149ac_cpp='$CXXCPP $CPPFLAGS'
5150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5153
5154
5155# Remove the -O2: for historical reasons, unless bootstrapping we prefer
5156# optimizations to be activated explicitly by the toplevel.
5157case "$CC" in
5158  */prev-gcc/xgcc*) ;;
5159  *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
5160     CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
5161esac
5162
5163
5164
5165# Determine PICFLAG for target gnatlib.
5166
5167
5168
5169
5170case "${target}" in
5171    # PIC is the default on some targets or must not be used.
5172    *-*-darwin*)
5173	# For darwin, common symbols are not allowed in MH_DYLIB files
5174	case "${CFLAGS}" in
5175	  # If we are using a compiler supporting mdynamic-no-pic
5176	  # and the option has been tested as safe to add, then cancel
5177	  # it here, since the code generated is incompatible with shared
5178	  # libs.
5179	  *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5180	  *) PICFLAG_FOR_TARGET=-fno-common ;;
5181	esac
5182	;;
5183    alpha*-dec-osf5*)
5184	# PIC is the default.
5185	;;
5186    hppa*64*-*-hpux*)
5187	# PIC is the default for 64-bit PA HP-UX.
5188	;;
5189    i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5190	;;
5191    i[34567]86-*-mingw* | x86_64-*-mingw*)
5192	;;
5193    i[34567]86-*-interix[3-9]*)
5194	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5195	# Instead, we relocate shared libraries at runtime.
5196	;;
5197    i[34567]86-*-nto-qnx*)
5198	# QNX uses GNU C++, but need to define -shared option too, otherwise
5199	# it will coredump.
5200	PICFLAG_FOR_TARGET='-fPIC -shared'
5201	;;
5202    i[34567]86-pc-msdosdjgpp*)
5203	# DJGPP does not support shared libraries at all.
5204	;;
5205    ia64*-*-hpux*)
5206	# On IA64 HP-UX, PIC is the default but the pic flag
5207	# sets the default TLS model and affects inlining.
5208	PICFLAG_FOR_TARGET=-fPIC
5209	;;
5210    mips-sgi-irix6*)
5211	# PIC is the default.
5212	;;
5213    rs6000-ibm-aix* | powerpc-ibm-aix*)
5214	# All AIX code is PIC.
5215	;;
5216
5217    # Some targets support both -fPIC and -fpic, but prefer the latter.
5218    # FIXME: Why?
5219    i[34567]86-*-* | x86_64-*-*)
5220	PICFLAG_FOR_TARGET=-fpic
5221	;;
5222    # FIXME: Override -fPIC default in libgcc only?
5223    sh-*-linux* | sh[2346lbe]*-*-linux*)
5224	PICFLAG_FOR_TARGET=-fpic
5225	;;
5226    # FIXME: Simplify to sh*-*-netbsd*?
5227    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5228      sh64-*-netbsd* | sh64l*-*-netbsd*)
5229	PICFLAG_FOR_TARGET=-fpic
5230	;;
5231    # Default to -fPIC unless specified otherwise.
5232    *)
5233	PICFLAG_FOR_TARGET=-fPIC
5234	;;
5235esac
5236
5237# If the user explicitly uses -fpic/-fPIC, keep that.
5238case "${CFLAGS_FOR_TARGET}" in
5239    *-fpic*)
5240	PICFLAG_FOR_TARGET=-fpic
5241	;;
5242    *-fPIC*)
5243	PICFLAG_FOR_TARGET=-fPIC
5244	;;
5245esac
5246
5247
5248
5249# -------------------------
5250# Check C compiler features
5251# -------------------------
5252
5253
5254ac_ext=cpp
5255ac_cpp='$CXXCPP $CPPFLAGS'
5256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5260$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5261if test -z "$CXXCPP"; then
5262  if ${ac_cv_prog_CXXCPP+:} false; then :
5263  $as_echo_n "(cached) " >&6
5264else
5265      # Double quotes because CXXCPP needs to be expanded
5266    for CXXCPP in "$CXX -E" "/lib/cpp"
5267    do
5268      ac_preproc_ok=false
5269for ac_cxx_preproc_warn_flag in '' yes
5270do
5271  # Use a header file that comes with gcc, so configuring glibc
5272  # with a fresh cross-compiler works.
5273  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5274  # <limits.h> exists even on freestanding compilers.
5275  # On the NeXT, cc -E runs the code through the compiler's parser,
5276  # not just through cpp. "Syntax error" is here to catch this case.
5277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278/* end confdefs.h.  */
5279#ifdef __STDC__
5280# include <limits.h>
5281#else
5282# include <assert.h>
5283#endif
5284		     Syntax error
5285_ACEOF
5286if ac_fn_cxx_try_cpp "$LINENO"; then :
5287
5288else
5289  # Broken: fails on valid input.
5290continue
5291fi
5292rm -f conftest.err conftest.i conftest.$ac_ext
5293
5294  # OK, works on sane cases.  Now check whether nonexistent headers
5295  # can be detected and how.
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298#include <ac_nonexistent.h>
5299_ACEOF
5300if ac_fn_cxx_try_cpp "$LINENO"; then :
5301  # Broken: success on invalid input.
5302continue
5303else
5304  # Passes both tests.
5305ac_preproc_ok=:
5306break
5307fi
5308rm -f conftest.err conftest.i conftest.$ac_ext
5309
5310done
5311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312rm -f conftest.i conftest.err conftest.$ac_ext
5313if $ac_preproc_ok; then :
5314  break
5315fi
5316
5317    done
5318    ac_cv_prog_CXXCPP=$CXXCPP
5319
5320fi
5321  CXXCPP=$ac_cv_prog_CXXCPP
5322else
5323  ac_cv_prog_CXXCPP=$CXXCPP
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5326$as_echo "$CXXCPP" >&6; }
5327ac_preproc_ok=false
5328for ac_cxx_preproc_warn_flag in '' yes
5329do
5330  # Use a header file that comes with gcc, so configuring glibc
5331  # with a fresh cross-compiler works.
5332  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333  # <limits.h> exists even on freestanding compilers.
5334  # On the NeXT, cc -E runs the code through the compiler's parser,
5335  # not just through cpp. "Syntax error" is here to catch this case.
5336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337/* end confdefs.h.  */
5338#ifdef __STDC__
5339# include <limits.h>
5340#else
5341# include <assert.h>
5342#endif
5343		     Syntax error
5344_ACEOF
5345if ac_fn_cxx_try_cpp "$LINENO"; then :
5346
5347else
5348  # Broken: fails on valid input.
5349continue
5350fi
5351rm -f conftest.err conftest.i conftest.$ac_ext
5352
5353  # OK, works on sane cases.  Now check whether nonexistent headers
5354  # can be detected and how.
5355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h.  */
5357#include <ac_nonexistent.h>
5358_ACEOF
5359if ac_fn_cxx_try_cpp "$LINENO"; then :
5360  # Broken: success on invalid input.
5361continue
5362else
5363  # Passes both tests.
5364ac_preproc_ok=:
5365break
5366fi
5367rm -f conftest.err conftest.i conftest.$ac_ext
5368
5369done
5370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5371rm -f conftest.i conftest.err conftest.$ac_ext
5372if $ac_preproc_ok; then :
5373
5374else
5375  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5377as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5378See \`config.log' for more details" "$LINENO" 5; }
5379fi
5380
5381ac_ext=cpp
5382ac_cpp='$CXXCPP $CPPFLAGS'
5383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5386
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5389$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5390if ${ac_cv_path_GREP+:} false; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  if test -z "$GREP"; then
5394  ac_path_GREP_found=false
5395  # Loop through the user's path and test for each of PROGNAME-LIST
5396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5398do
5399  IFS=$as_save_IFS
5400  test -z "$as_dir" && as_dir=.
5401    for ac_prog in grep ggrep; do
5402    for ac_exec_ext in '' $ac_executable_extensions; do
5403      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5404      as_fn_executable_p "$ac_path_GREP" || continue
5405# Check for GNU ac_path_GREP and select it if it is found.
5406  # Check for GNU $ac_path_GREP
5407case `"$ac_path_GREP" --version 2>&1` in
5408*GNU*)
5409  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5410*)
5411  ac_count=0
5412  $as_echo_n 0123456789 >"conftest.in"
5413  while :
5414  do
5415    cat "conftest.in" "conftest.in" >"conftest.tmp"
5416    mv "conftest.tmp" "conftest.in"
5417    cp "conftest.in" "conftest.nl"
5418    $as_echo 'GREP' >> "conftest.nl"
5419    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5420    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5421    as_fn_arith $ac_count + 1 && ac_count=$as_val
5422    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5423      # Best one so far, save it but keep looking for a better one
5424      ac_cv_path_GREP="$ac_path_GREP"
5425      ac_path_GREP_max=$ac_count
5426    fi
5427    # 10*(2^10) chars as input seems more than enough
5428    test $ac_count -gt 10 && break
5429  done
5430  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5431esac
5432
5433      $ac_path_GREP_found && break 3
5434    done
5435  done
5436  done
5437IFS=$as_save_IFS
5438  if test -z "$ac_cv_path_GREP"; then
5439    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5440  fi
5441else
5442  ac_cv_path_GREP=$GREP
5443fi
5444
5445fi
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5447$as_echo "$ac_cv_path_GREP" >&6; }
5448 GREP="$ac_cv_path_GREP"
5449
5450
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5452$as_echo_n "checking for egrep... " >&6; }
5453if ${ac_cv_path_EGREP+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5457   then ac_cv_path_EGREP="$GREP -E"
5458   else
5459     if test -z "$EGREP"; then
5460  ac_path_EGREP_found=false
5461  # Loop through the user's path and test for each of PROGNAME-LIST
5462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5464do
5465  IFS=$as_save_IFS
5466  test -z "$as_dir" && as_dir=.
5467    for ac_prog in egrep; do
5468    for ac_exec_ext in '' $ac_executable_extensions; do
5469      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5470      as_fn_executable_p "$ac_path_EGREP" || continue
5471# Check for GNU ac_path_EGREP and select it if it is found.
5472  # Check for GNU $ac_path_EGREP
5473case `"$ac_path_EGREP" --version 2>&1` in
5474*GNU*)
5475  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5476*)
5477  ac_count=0
5478  $as_echo_n 0123456789 >"conftest.in"
5479  while :
5480  do
5481    cat "conftest.in" "conftest.in" >"conftest.tmp"
5482    mv "conftest.tmp" "conftest.in"
5483    cp "conftest.in" "conftest.nl"
5484    $as_echo 'EGREP' >> "conftest.nl"
5485    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5486    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5487    as_fn_arith $ac_count + 1 && ac_count=$as_val
5488    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5489      # Best one so far, save it but keep looking for a better one
5490      ac_cv_path_EGREP="$ac_path_EGREP"
5491      ac_path_EGREP_max=$ac_count
5492    fi
5493    # 10*(2^10) chars as input seems more than enough
5494    test $ac_count -gt 10 && break
5495  done
5496  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5497esac
5498
5499      $ac_path_EGREP_found && break 3
5500    done
5501  done
5502  done
5503IFS=$as_save_IFS
5504  if test -z "$ac_cv_path_EGREP"; then
5505    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5506  fi
5507else
5508  ac_cv_path_EGREP=$EGREP
5509fi
5510
5511   fi
5512fi
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5514$as_echo "$ac_cv_path_EGREP" >&6; }
5515 EGREP="$ac_cv_path_EGREP"
5516
5517
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5519$as_echo_n "checking for ANSI C header files... " >&6; }
5520if ${ac_cv_header_stdc+:} false; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h.  */
5525#include <stdlib.h>
5526#include <stdarg.h>
5527#include <string.h>
5528#include <float.h>
5529
5530int
5531main ()
5532{
5533
5534  ;
5535  return 0;
5536}
5537_ACEOF
5538if ac_fn_cxx_try_compile "$LINENO"; then :
5539  ac_cv_header_stdc=yes
5540else
5541  ac_cv_header_stdc=no
5542fi
5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544
5545if test $ac_cv_header_stdc = yes; then
5546  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548/* end confdefs.h.  */
5549#include <string.h>
5550
5551_ACEOF
5552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553  $EGREP "memchr" >/dev/null 2>&1; then :
5554
5555else
5556  ac_cv_header_stdc=no
5557fi
5558rm -f conftest*
5559
5560fi
5561
5562if test $ac_cv_header_stdc = yes; then
5563  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h.  */
5566#include <stdlib.h>
5567
5568_ACEOF
5569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5570  $EGREP "free" >/dev/null 2>&1; then :
5571
5572else
5573  ac_cv_header_stdc=no
5574fi
5575rm -f conftest*
5576
5577fi
5578
5579if test $ac_cv_header_stdc = yes; then
5580  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5581  if test "$cross_compiling" = yes; then :
5582  :
5583else
5584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h.  */
5586#include <ctype.h>
5587#include <stdlib.h>
5588#if ((' ' & 0x0FF) == 0x020)
5589# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5590# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5591#else
5592# define ISLOWER(c) \
5593		   (('a' <= (c) && (c) <= 'i') \
5594		     || ('j' <= (c) && (c) <= 'r') \
5595		     || ('s' <= (c) && (c) <= 'z'))
5596# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5597#endif
5598
5599#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5600int
5601main ()
5602{
5603  int i;
5604  for (i = 0; i < 256; i++)
5605    if (XOR (islower (i), ISLOWER (i))
5606	|| toupper (i) != TOUPPER (i))
5607      return 2;
5608  return 0;
5609}
5610_ACEOF
5611if ac_fn_cxx_try_run "$LINENO"; then :
5612
5613else
5614  ac_cv_header_stdc=no
5615fi
5616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5617  conftest.$ac_objext conftest.beam conftest.$ac_ext
5618fi
5619
5620fi
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5623$as_echo "$ac_cv_header_stdc" >&6; }
5624if test $ac_cv_header_stdc = yes; then
5625
5626$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5627
5628fi
5629
5630# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5631for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5632		  inttypes.h stdint.h unistd.h
5633do :
5634  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5635ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5636"
5637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5638  cat >>confdefs.h <<_ACEOF
5639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5640_ACEOF
5641
5642fi
5643
5644done
5645
5646
5647
5648  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5649if test "x$ac_cv_header_minix_config_h" = xyes; then :
5650  MINIX=yes
5651else
5652  MINIX=
5653fi
5654
5655
5656  if test "$MINIX" = yes; then
5657
5658$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5659
5660
5661$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5662
5663
5664$as_echo "#define _MINIX 1" >>confdefs.h
5665
5666  fi
5667
5668
5669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5670$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5671if ${ac_cv_safe_to_define___extensions__+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676
5677#         define __EXTENSIONS__ 1
5678          $ac_includes_default
5679int
5680main ()
5681{
5682
5683  ;
5684  return 0;
5685}
5686_ACEOF
5687if ac_fn_cxx_try_compile "$LINENO"; then :
5688  ac_cv_safe_to_define___extensions__=yes
5689else
5690  ac_cv_safe_to_define___extensions__=no
5691fi
5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693fi
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5695$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5696  test $ac_cv_safe_to_define___extensions__ = yes &&
5697    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5698
5699  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5700
5701  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5702
5703  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5704
5705  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5706
5707
5708ac_ext=c
5709ac_cpp='$CPP $CPPFLAGS'
5710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5714$as_echo_n "checking how to run the C preprocessor... " >&6; }
5715# On Suns, sometimes $CPP names a directory.
5716if test -n "$CPP" && test -d "$CPP"; then
5717  CPP=
5718fi
5719if test -z "$CPP"; then
5720  if ${ac_cv_prog_CPP+:} false; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723      # Double quotes because CPP needs to be expanded
5724    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5725    do
5726      ac_preproc_ok=false
5727for ac_c_preproc_warn_flag in '' yes
5728do
5729  # Use a header file that comes with gcc, so configuring glibc
5730  # with a fresh cross-compiler works.
5731  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5732  # <limits.h> exists even on freestanding compilers.
5733  # On the NeXT, cc -E runs the code through the compiler's parser,
5734  # not just through cpp. "Syntax error" is here to catch this case.
5735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h.  */
5737#ifdef __STDC__
5738# include <limits.h>
5739#else
5740# include <assert.h>
5741#endif
5742		     Syntax error
5743_ACEOF
5744if ac_fn_c_try_cpp "$LINENO"; then :
5745
5746else
5747  # Broken: fails on valid input.
5748continue
5749fi
5750rm -f conftest.err conftest.i conftest.$ac_ext
5751
5752  # OK, works on sane cases.  Now check whether nonexistent headers
5753  # can be detected and how.
5754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755/* end confdefs.h.  */
5756#include <ac_nonexistent.h>
5757_ACEOF
5758if ac_fn_c_try_cpp "$LINENO"; then :
5759  # Broken: success on invalid input.
5760continue
5761else
5762  # Passes both tests.
5763ac_preproc_ok=:
5764break
5765fi
5766rm -f conftest.err conftest.i conftest.$ac_ext
5767
5768done
5769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5770rm -f conftest.i conftest.err conftest.$ac_ext
5771if $ac_preproc_ok; then :
5772  break
5773fi
5774
5775    done
5776    ac_cv_prog_CPP=$CPP
5777
5778fi
5779  CPP=$ac_cv_prog_CPP
5780else
5781  ac_cv_prog_CPP=$CPP
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5784$as_echo "$CPP" >&6; }
5785ac_preproc_ok=false
5786for ac_c_preproc_warn_flag in '' yes
5787do
5788  # Use a header file that comes with gcc, so configuring glibc
5789  # with a fresh cross-compiler works.
5790  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791  # <limits.h> exists even on freestanding compilers.
5792  # On the NeXT, cc -E runs the code through the compiler's parser,
5793  # not just through cpp. "Syntax error" is here to catch this case.
5794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h.  */
5796#ifdef __STDC__
5797# include <limits.h>
5798#else
5799# include <assert.h>
5800#endif
5801		     Syntax error
5802_ACEOF
5803if ac_fn_c_try_cpp "$LINENO"; then :
5804
5805else
5806  # Broken: fails on valid input.
5807continue
5808fi
5809rm -f conftest.err conftest.i conftest.$ac_ext
5810
5811  # OK, works on sane cases.  Now check whether nonexistent headers
5812  # can be detected and how.
5813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815#include <ac_nonexistent.h>
5816_ACEOF
5817if ac_fn_c_try_cpp "$LINENO"; then :
5818  # Broken: success on invalid input.
5819continue
5820else
5821  # Passes both tests.
5822ac_preproc_ok=:
5823break
5824fi
5825rm -f conftest.err conftest.i conftest.$ac_ext
5826
5827done
5828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5829rm -f conftest.i conftest.err conftest.$ac_ext
5830if $ac_preproc_ok; then :
5831
5832else
5833  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5836See \`config.log' for more details" "$LINENO" 5; }
5837fi
5838
5839ac_ext=cpp
5840ac_cpp='$CXXCPP $CPPFLAGS'
5841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5844
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5846$as_echo_n "checking for inline... " >&6; }
5847if ${ac_cv_c_inline+:} false; then :
5848  $as_echo_n "(cached) " >&6
5849else
5850  ac_cv_c_inline=no
5851for ac_kw in inline __inline__ __inline; do
5852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h.  */
5854#ifndef __cplusplus
5855typedef int foo_t;
5856static $ac_kw foo_t static_foo () {return 0; }
5857$ac_kw foo_t foo () {return 0; }
5858#endif
5859
5860_ACEOF
5861if ac_fn_cxx_try_compile "$LINENO"; then :
5862  ac_cv_c_inline=$ac_kw
5863fi
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865  test "$ac_cv_c_inline" != no && break
5866done
5867
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5870$as_echo "$ac_cv_c_inline" >&6; }
5871
5872case $ac_cv_c_inline in
5873  inline | yes) ;;
5874  *)
5875    case $ac_cv_c_inline in
5876      no) ac_val=;;
5877      *) ac_val=$ac_cv_c_inline;;
5878    esac
5879    cat >>confdefs.h <<_ACEOF
5880#ifndef __cplusplus
5881#define inline $ac_val
5882#endif
5883_ACEOF
5884    ;;
5885esac
5886
5887
5888# Check whether --enable-largefile was given.
5889if test "${enable_largefile+set}" = set; then :
5890  enableval=$enable_largefile;
5891fi
5892
5893if test "$enable_largefile" != no; then
5894
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5896$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5897if ${ac_cv_sys_largefile_CC+:} false; then :
5898  $as_echo_n "(cached) " >&6
5899else
5900  ac_cv_sys_largefile_CC=no
5901     if test "$GCC" != yes; then
5902       ac_save_CC=$CC
5903       while :; do
5904	 # IRIX 6.2 and later do not support large files by default,
5905	 # so use the C compiler's -n32 option if that helps.
5906	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h.  */
5908#include <sys/types.h>
5909 /* Check that off_t can represent 2**63 - 1 correctly.
5910    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5911    since some C++ compilers masquerading as C compilers
5912    incorrectly reject 9223372036854775807.  */
5913#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5914  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5915		       && LARGE_OFF_T % 2147483647 == 1)
5916		      ? 1 : -1];
5917int
5918main ()
5919{
5920
5921  ;
5922  return 0;
5923}
5924_ACEOF
5925	 if ac_fn_cxx_try_compile "$LINENO"; then :
5926  break
5927fi
5928rm -f core conftest.err conftest.$ac_objext
5929	 CC="$CC -n32"
5930	 if ac_fn_cxx_try_compile "$LINENO"; then :
5931  ac_cv_sys_largefile_CC=' -n32'; break
5932fi
5933rm -f core conftest.err conftest.$ac_objext
5934	 break
5935       done
5936       CC=$ac_save_CC
5937       rm -f conftest.$ac_ext
5938    fi
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5941$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5942  if test "$ac_cv_sys_largefile_CC" != no; then
5943    CC=$CC$ac_cv_sys_largefile_CC
5944  fi
5945
5946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5947$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5948if ${ac_cv_sys_file_offset_bits+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  while :; do
5952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954#include <sys/types.h>
5955 /* Check that off_t can represent 2**63 - 1 correctly.
5956    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5957    since some C++ compilers masquerading as C compilers
5958    incorrectly reject 9223372036854775807.  */
5959#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5960  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5961		       && LARGE_OFF_T % 2147483647 == 1)
5962		      ? 1 : -1];
5963int
5964main ()
5965{
5966
5967  ;
5968  return 0;
5969}
5970_ACEOF
5971if ac_fn_cxx_try_compile "$LINENO"; then :
5972  ac_cv_sys_file_offset_bits=no; break
5973fi
5974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h.  */
5977#define _FILE_OFFSET_BITS 64
5978#include <sys/types.h>
5979 /* Check that off_t can represent 2**63 - 1 correctly.
5980    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5981    since some C++ compilers masquerading as C compilers
5982    incorrectly reject 9223372036854775807.  */
5983#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5984  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5985		       && LARGE_OFF_T % 2147483647 == 1)
5986		      ? 1 : -1];
5987int
5988main ()
5989{
5990
5991  ;
5992  return 0;
5993}
5994_ACEOF
5995if ac_fn_cxx_try_compile "$LINENO"; then :
5996  ac_cv_sys_file_offset_bits=64; break
5997fi
5998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999  ac_cv_sys_file_offset_bits=unknown
6000  break
6001done
6002fi
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6004$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6005case $ac_cv_sys_file_offset_bits in #(
6006  no | unknown) ;;
6007  *)
6008cat >>confdefs.h <<_ACEOF
6009#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6010_ACEOF
6011;;
6012esac
6013rm -rf conftest*
6014  if test $ac_cv_sys_file_offset_bits = unknown; then
6015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6016$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6017if ${ac_cv_sys_large_files+:} false; then :
6018  $as_echo_n "(cached) " >&6
6019else
6020  while :; do
6021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h.  */
6023#include <sys/types.h>
6024 /* Check that off_t can represent 2**63 - 1 correctly.
6025    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6026    since some C++ compilers masquerading as C compilers
6027    incorrectly reject 9223372036854775807.  */
6028#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6029  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6030		       && LARGE_OFF_T % 2147483647 == 1)
6031		      ? 1 : -1];
6032int
6033main ()
6034{
6035
6036  ;
6037  return 0;
6038}
6039_ACEOF
6040if ac_fn_cxx_try_compile "$LINENO"; then :
6041  ac_cv_sys_large_files=no; break
6042fi
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046#define _LARGE_FILES 1
6047#include <sys/types.h>
6048 /* Check that off_t can represent 2**63 - 1 correctly.
6049    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6050    since some C++ compilers masquerading as C compilers
6051    incorrectly reject 9223372036854775807.  */
6052#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6053  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6054		       && LARGE_OFF_T % 2147483647 == 1)
6055		      ? 1 : -1];
6056int
6057main ()
6058{
6059
6060  ;
6061  return 0;
6062}
6063_ACEOF
6064if ac_fn_cxx_try_compile "$LINENO"; then :
6065  ac_cv_sys_large_files=1; break
6066fi
6067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068  ac_cv_sys_large_files=unknown
6069  break
6070done
6071fi
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6073$as_echo "$ac_cv_sys_large_files" >&6; }
6074case $ac_cv_sys_large_files in #(
6075  no | unknown) ;;
6076  *)
6077cat >>confdefs.h <<_ACEOF
6078#define _LARGE_FILES $ac_cv_sys_large_files
6079_ACEOF
6080;;
6081esac
6082rm -rf conftest*
6083  fi
6084
6085
6086fi
6087
6088
6089# sizeof(char) is 1 by definition.
6090# The cast to long int works around a bug in the HP C Compiler
6091# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6092# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6093# This bug is HP SR number 8606223364.
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6095$as_echo_n "checking size of void *... " >&6; }
6096if ${ac_cv_sizeof_void_p+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6100
6101else
6102  if test "$ac_cv_type_void_p" = yes; then
6103     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6105as_fn_error 77 "cannot compute sizeof (void *)
6106See \`config.log' for more details" "$LINENO" 5; }
6107   else
6108     ac_cv_sizeof_void_p=0
6109   fi
6110fi
6111
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6114$as_echo "$ac_cv_sizeof_void_p" >&6; }
6115
6116
6117
6118cat >>confdefs.h <<_ACEOF
6119#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6120_ACEOF
6121
6122
6123# The cast to long int works around a bug in the HP C Compiler
6124# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6125# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6126# This bug is HP SR number 8606223364.
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6128$as_echo_n "checking size of short... " >&6; }
6129if ${ac_cv_sizeof_short+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6133
6134else
6135  if test "$ac_cv_type_short" = yes; then
6136     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6138as_fn_error 77 "cannot compute sizeof (short)
6139See \`config.log' for more details" "$LINENO" 5; }
6140   else
6141     ac_cv_sizeof_short=0
6142   fi
6143fi
6144
6145fi
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6147$as_echo "$ac_cv_sizeof_short" >&6; }
6148
6149
6150
6151cat >>confdefs.h <<_ACEOF
6152#define SIZEOF_SHORT $ac_cv_sizeof_short
6153_ACEOF
6154
6155
6156# The cast to long int works around a bug in the HP C Compiler
6157# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6158# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6159# This bug is HP SR number 8606223364.
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6161$as_echo_n "checking size of int... " >&6; }
6162if ${ac_cv_sizeof_int+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6166
6167else
6168  if test "$ac_cv_type_int" = yes; then
6169     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6171as_fn_error 77 "cannot compute sizeof (int)
6172See \`config.log' for more details" "$LINENO" 5; }
6173   else
6174     ac_cv_sizeof_int=0
6175   fi
6176fi
6177
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6180$as_echo "$ac_cv_sizeof_int" >&6; }
6181
6182
6183
6184cat >>confdefs.h <<_ACEOF
6185#define SIZEOF_INT $ac_cv_sizeof_int
6186_ACEOF
6187
6188
6189# The cast to long int works around a bug in the HP C Compiler
6190# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6191# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6192# This bug is HP SR number 8606223364.
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6194$as_echo_n "checking size of long... " >&6; }
6195if ${ac_cv_sizeof_long+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6199
6200else
6201  if test "$ac_cv_type_long" = yes; then
6202     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6204as_fn_error 77 "cannot compute sizeof (long)
6205See \`config.log' for more details" "$LINENO" 5; }
6206   else
6207     ac_cv_sizeof_long=0
6208   fi
6209fi
6210
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6213$as_echo "$ac_cv_sizeof_long" >&6; }
6214
6215
6216
6217cat >>confdefs.h <<_ACEOF
6218#define SIZEOF_LONG $ac_cv_sizeof_long
6219_ACEOF
6220
6221
6222ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6223if test "x$ac_cv_type_long_long" = xyes; then :
6224
6225cat >>confdefs.h <<_ACEOF
6226#define HAVE_LONG_LONG 1
6227_ACEOF
6228
6229# The cast to long int works around a bug in the HP C Compiler
6230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6232# This bug is HP SR number 8606223364.
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6234$as_echo_n "checking size of long long... " >&6; }
6235if ${ac_cv_sizeof_long_long+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6239
6240else
6241  if test "$ac_cv_type_long_long" = yes; then
6242     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6244as_fn_error 77 "cannot compute sizeof (long long)
6245See \`config.log' for more details" "$LINENO" 5; }
6246   else
6247     ac_cv_sizeof_long_long=0
6248   fi
6249fi
6250
6251fi
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6253$as_echo "$ac_cv_sizeof_long_long" >&6; }
6254
6255
6256
6257cat >>confdefs.h <<_ACEOF
6258#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6259_ACEOF
6260
6261
6262fi
6263
6264ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6265case $ac_cv_c_int8_t in #(
6266  no|yes) ;; #(
6267  *)
6268
6269cat >>confdefs.h <<_ACEOF
6270#define int8_t $ac_cv_c_int8_t
6271_ACEOF
6272;;
6273esac
6274
6275ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6276case $ac_cv_c_int16_t in #(
6277  no|yes) ;; #(
6278  *)
6279
6280cat >>confdefs.h <<_ACEOF
6281#define int16_t $ac_cv_c_int16_t
6282_ACEOF
6283;;
6284esac
6285
6286ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6287case $ac_cv_c_int32_t in #(
6288  no|yes) ;; #(
6289  *)
6290
6291cat >>confdefs.h <<_ACEOF
6292#define int32_t $ac_cv_c_int32_t
6293_ACEOF
6294;;
6295esac
6296
6297ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6298case $ac_cv_c_int64_t in #(
6299  no|yes) ;; #(
6300  *)
6301
6302cat >>confdefs.h <<_ACEOF
6303#define int64_t $ac_cv_c_int64_t
6304_ACEOF
6305;;
6306esac
6307
6308
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6310$as_echo_n "checking for unsigned long long int... " >&6; }
6311if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  ac_cv_type_unsigned_long_long_int=yes
6315     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6316       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317/* end confdefs.h.  */
6318
6319  /* For now, do not test the preprocessor; as of 2007 there are too many
6320	 implementations with broken preprocessors.  Perhaps this can
6321	 be revisited in 2012.  In the meantime, code should not expect
6322	 #if to work with literals wider than 32 bits.  */
6323      /* Test literals.  */
6324      long long int ll = 9223372036854775807ll;
6325      long long int nll = -9223372036854775807LL;
6326      unsigned long long int ull = 18446744073709551615ULL;
6327      /* Test constant expressions.   */
6328      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6329		     ? 1 : -1)];
6330      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6331		     ? 1 : -1)];
6332      int i = 63;
6333int
6334main ()
6335{
6336/* Test availability of runtime routines for shift and division.  */
6337      long long int llmax = 9223372036854775807ll;
6338      unsigned long long int ullmax = 18446744073709551615ull;
6339      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6340	      | (llmax / ll) | (llmax % ll)
6341	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6342	      | (ullmax / ull) | (ullmax % ull));
6343  ;
6344  return 0;
6345}
6346
6347_ACEOF
6348if ac_fn_cxx_try_link "$LINENO"; then :
6349
6350else
6351  ac_cv_type_unsigned_long_long_int=no
6352fi
6353rm -f core conftest.err conftest.$ac_objext \
6354    conftest$ac_exeext conftest.$ac_ext
6355     fi
6356fi
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6358$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6359  if test $ac_cv_type_unsigned_long_long_int = yes; then
6360
6361$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6362
6363  fi
6364
6365
6366
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6368$as_echo_n "checking for long long int... " >&6; }
6369if ${ac_cv_type_long_long_int+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  ac_cv_type_long_long_int=yes
6373      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6374	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6375	if test $ac_cv_type_long_long_int = yes; then
6376	  	  	  	  if test "$cross_compiling" = yes; then :
6377  :
6378else
6379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381#include <limits.h>
6382		 #ifndef LLONG_MAX
6383		 # define HALF \
6384			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6385		 # define LLONG_MAX (HALF - 1 + HALF)
6386		 #endif
6387int
6388main ()
6389{
6390long long int n = 1;
6391		 int i;
6392		 for (i = 0; ; i++)
6393		   {
6394		     long long int m = n << i;
6395		     if (m >> i != n)
6396		       return 1;
6397		     if (LLONG_MAX / 2 < m)
6398		       break;
6399		   }
6400		 return 0;
6401  ;
6402  return 0;
6403}
6404_ACEOF
6405if ac_fn_cxx_try_run "$LINENO"; then :
6406
6407else
6408  ac_cv_type_long_long_int=no
6409fi
6410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6411  conftest.$ac_objext conftest.beam conftest.$ac_ext
6412fi
6413
6414	fi
6415      fi
6416fi
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6418$as_echo "$ac_cv_type_long_long_int" >&6; }
6419  if test $ac_cv_type_long_long_int = yes; then
6420
6421$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6422
6423  fi
6424
6425
6426
6427  ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6428if test "x$ac_cv_type_intmax_t" = xyes; then :
6429
6430$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6431
6432else
6433  test $ac_cv_type_long_long_int = yes \
6434       && ac_type='long long int' \
6435       || ac_type='long int'
6436
6437cat >>confdefs.h <<_ACEOF
6438#define intmax_t $ac_type
6439_ACEOF
6440
6441fi
6442
6443
6444
6445  ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6446if test "x$ac_cv_type_intptr_t" = xyes; then :
6447
6448$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6449
6450else
6451  for ac_type in 'int' 'long int' 'long long int'; do
6452       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453/* end confdefs.h.  */
6454$ac_includes_default
6455int
6456main ()
6457{
6458static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6459test_array [0] = 0;
6460return test_array [0];
6461
6462  ;
6463  return 0;
6464}
6465_ACEOF
6466if ac_fn_cxx_try_compile "$LINENO"; then :
6467
6468cat >>confdefs.h <<_ACEOF
6469#define intptr_t $ac_type
6470_ACEOF
6471
6472	  ac_type=
6473fi
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475       test -z "$ac_type" && break
6476     done
6477fi
6478
6479
6480ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6481case $ac_cv_c_uint8_t in #(
6482  no|yes) ;; #(
6483  *)
6484
6485$as_echo "#define _UINT8_T 1" >>confdefs.h
6486
6487
6488cat >>confdefs.h <<_ACEOF
6489#define uint8_t $ac_cv_c_uint8_t
6490_ACEOF
6491;;
6492  esac
6493
6494ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6495case $ac_cv_c_uint16_t in #(
6496  no|yes) ;; #(
6497  *)
6498
6499
6500cat >>confdefs.h <<_ACEOF
6501#define uint16_t $ac_cv_c_uint16_t
6502_ACEOF
6503;;
6504  esac
6505
6506ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6507case $ac_cv_c_uint32_t in #(
6508  no|yes) ;; #(
6509  *)
6510
6511$as_echo "#define _UINT32_T 1" >>confdefs.h
6512
6513
6514cat >>confdefs.h <<_ACEOF
6515#define uint32_t $ac_cv_c_uint32_t
6516_ACEOF
6517;;
6518  esac
6519
6520ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6521case $ac_cv_c_uint64_t in #(
6522  no|yes) ;; #(
6523  *)
6524
6525$as_echo "#define _UINT64_T 1" >>confdefs.h
6526
6527
6528cat >>confdefs.h <<_ACEOF
6529#define uint64_t $ac_cv_c_uint64_t
6530_ACEOF
6531;;
6532  esac
6533
6534
6535
6536  ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6537if test "x$ac_cv_type_uintmax_t" = xyes; then :
6538
6539$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6540
6541else
6542  test $ac_cv_type_unsigned_long_long_int = yes \
6543       && ac_type='unsigned long long int' \
6544       || ac_type='unsigned long int'
6545
6546cat >>confdefs.h <<_ACEOF
6547#define uintmax_t $ac_type
6548_ACEOF
6549
6550fi
6551
6552
6553
6554  ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6555if test "x$ac_cv_type_uintptr_t" = xyes; then :
6556
6557$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6558
6559else
6560  for ac_type in 'unsigned int' 'unsigned long int' \
6561	'unsigned long long int'; do
6562       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564$ac_includes_default
6565int
6566main ()
6567{
6568static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6569test_array [0] = 0;
6570return test_array [0];
6571
6572  ;
6573  return 0;
6574}
6575_ACEOF
6576if ac_fn_cxx_try_compile "$LINENO"; then :
6577
6578cat >>confdefs.h <<_ACEOF
6579#define uintptr_t $ac_type
6580_ACEOF
6581
6582	  ac_type=
6583fi
6584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585       test -z "$ac_type" && break
6586     done
6587fi
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6603  as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6604fi
6605
6606# check what underlying integer type int64_t uses
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6608$as_echo_n "checking for int64_t underlying type... " >&6; }
6609if ${ac_cv_int64_t_type+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612
6613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h.  */
6615
6616#ifdef HAVE_STDINT_H
6617#include <stdint.h>
6618#endif
6619template <typename T> struct X { };
6620template <>
6621struct X<long> { typedef long t; };
6622
6623int
6624main ()
6625{
6626X<int64_t>::t x;
6627  ;
6628  return 0;
6629}
6630_ACEOF
6631if ac_fn_cxx_try_compile "$LINENO"; then :
6632  ac_cv_int64_t_type=long
6633else
6634  ac_cv_int64_t_type="long long"
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6639$as_echo "$ac_cv_int64_t_type" >&6; }
6640if test "$ac_cv_int64_t_type" = "long"; then
6641
6642$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6643
6644else
6645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h.  */
6647
6648#ifdef HAVE_STDINT_H
6649#include <stdint.h>
6650#endif
6651template <typename T> struct X { };
6652template <>
6653struct X<long long> { typedef long long t; };
6654
6655int
6656main ()
6657{
6658X<int64_t>::t x;
6659  ;
6660  return 0;
6661}
6662_ACEOF
6663if ac_fn_cxx_try_compile "$LINENO"; then :
6664
6665else
6666  as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6667fi
6668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669fi
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6672$as_echo_n "checking for std::swap in <utility>... " >&6; }
6673if ${ac_cv_std_swap_in_utility+:} false; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676
6677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h.  */
6679
6680#include <utility>
6681
6682int
6683main ()
6684{
6685int a, b; std::swap(a,b);
6686  ;
6687  return 0;
6688}
6689_ACEOF
6690if ac_fn_cxx_try_compile "$LINENO"; then :
6691  ac_cv_std_swap_in_utility=yes
6692else
6693  ac_cv_std_swap_in_utility=no
6694fi
6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696fi
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6698$as_echo "$ac_cv_std_swap_in_utility" >&6; }
6699if test $ac_cv_std_swap_in_utility = yes; then
6700
6701$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6702
6703fi
6704
6705# Check whether compiler is affected by placement new aliasing bug (PR 29286).
6706# If the host compiler is affected by the bug, and we build with optimization
6707# enabled (which happens e.g. when cross-compiling), the pool allocator may
6708# get miscompiled.  Use -fno-strict-aliasing to work around this problem.
6709# Since there is no reliable feature check for the presence of this bug,
6710# we simply use a GCC version number check.  (This should never trigger for
6711# stages 2 or 3 of a native bootstrap.)
6712aliasing_flags=
6713if test "$GCC" = yes; then
6714  saved_CXXFLAGS="$CXXFLAGS"
6715
6716  # The following test compilation will succeed if and only if $CXX accepts
6717  # -fno-strict-aliasing *and* is older than GCC 4.3.
6718  CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6720$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723
6724#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6725#error compiler not affected by placement new aliasing bug
6726#endif
6727
6728_ACEOF
6729if ac_fn_cxx_try_compile "$LINENO"; then :
6730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6731$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6732else
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737
6738  CXXFLAGS="$saved_CXXFLAGS"
6739fi
6740
6741
6742
6743
6744# ---------------------
6745# Warnings and checking
6746# ---------------------
6747
6748# Check $CC warning features (if it's GCC).
6749# We want to use -pedantic, but we don't want warnings about
6750# * 'long long'
6751# * variadic macros
6752# * overlong strings
6753# * C++11 narrowing conversions in { }
6754# So, we only use -pedantic if we can disable those warnings.
6755
6756# In stage 1, disable -Wformat warnings from old GCCs about new % codes
6757# Check whether --enable-build-format-warnings was given.
6758if test "${enable_build_format_warnings+set}" = set; then :
6759  enableval=$enable_build_format_warnings;
6760else
6761  enable_build_format_warnings=yes
6762fi
6763
6764if test $enable_build_format_warnings = no; then :
6765  wf_opt=-Wno-format
6766else
6767  wf_opt=
6768fi
6769ac_ext=cpp
6770ac_cpp='$CXXCPP $CPPFLAGS'
6771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6774
6775loose_warn=
6776save_CXXFLAGS="$CXXFLAGS"
6777for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6778  # Do the check with the no- prefix removed since gcc silently
6779  # accepts any -Wno-* option on purpose
6780  case $real_option in
6781    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6782    *) option=$real_option ;;
6783  esac
6784  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6785
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6787$as_echo_n "checking whether $CXX supports $option... " >&6; }
6788if eval \${$as_acx_Woption+:} false; then :
6789  $as_echo_n "(cached) " >&6
6790else
6791  CXXFLAGS="$option"
6792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793/* end confdefs.h.  */
6794
6795int
6796main ()
6797{
6798
6799  ;
6800  return 0;
6801}
6802_ACEOF
6803if ac_fn_cxx_try_compile "$LINENO"; then :
6804  eval "$as_acx_Woption=yes"
6805else
6806  eval "$as_acx_Woption=no"
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809
6810fi
6811eval ac_res=\$$as_acx_Woption
6812	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6813$as_echo "$ac_res" >&6; }
6814  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6815  loose_warn="$loose_warn${loose_warn:+ }$real_option"
6816fi
6817  done
6818CXXFLAGS="$save_CXXFLAGS"
6819ac_ext=cpp
6820ac_cpp='$CXXCPP $CPPFLAGS'
6821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6824
6825
6826
6827ac_ext=c
6828ac_cpp='$CPP $CPPFLAGS'
6829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832
6833c_loose_warn=
6834save_CFLAGS="$CFLAGS"
6835for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6836  # Do the check with the no- prefix removed since gcc silently
6837  # accepts any -Wno-* option on purpose
6838  case $real_option in
6839    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6840    *) option=$real_option ;;
6841  esac
6842  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6843
6844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6845$as_echo_n "checking whether $CC supports $option... " >&6; }
6846if eval \${$as_acx_Woption+:} false; then :
6847  $as_echo_n "(cached) " >&6
6848else
6849  CFLAGS="$option"
6850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852
6853int
6854main ()
6855{
6856
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_compile "$LINENO"; then :
6862  eval "$as_acx_Woption=yes"
6863else
6864  eval "$as_acx_Woption=no"
6865fi
6866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867
6868fi
6869eval ac_res=\$$as_acx_Woption
6870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6871$as_echo "$ac_res" >&6; }
6872  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6873  c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6874fi
6875  done
6876CFLAGS="$save_CFLAGS"
6877ac_ext=cpp
6878ac_cpp='$CXXCPP $CPPFLAGS'
6879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6882
6883
6884ac_ext=cpp
6885ac_cpp='$CXXCPP $CPPFLAGS'
6886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6889
6890strict_warn=
6891save_CXXFLAGS="$CXXFLAGS"
6892for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6893  # Do the check with the no- prefix removed since gcc silently
6894  # accepts any -Wno-* option on purpose
6895  case $real_option in
6896    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6897    *) option=$real_option ;;
6898  esac
6899  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6900
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6902$as_echo_n "checking whether $CXX supports $option... " >&6; }
6903if eval \${$as_acx_Woption+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  CXXFLAGS="$option"
6907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h.  */
6909
6910int
6911main ()
6912{
6913
6914  ;
6915  return 0;
6916}
6917_ACEOF
6918if ac_fn_cxx_try_compile "$LINENO"; then :
6919  eval "$as_acx_Woption=yes"
6920else
6921  eval "$as_acx_Woption=no"
6922fi
6923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924
6925fi
6926eval ac_res=\$$as_acx_Woption
6927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6928$as_echo "$ac_res" >&6; }
6929  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6930  strict_warn="$strict_warn${strict_warn:+ }$real_option"
6931fi
6932  done
6933CXXFLAGS="$save_CXXFLAGS"
6934ac_ext=cpp
6935ac_cpp='$CXXCPP $CPPFLAGS'
6936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6939
6940
6941ac_ext=c
6942ac_cpp='$CPP $CPPFLAGS'
6943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945ac_compiler_gnu=$ac_cv_c_compiler_gnu
6946
6947c_strict_warn=
6948save_CFLAGS="$CFLAGS"
6949for real_option in -Wold-style-definition -Wc++-compat; do
6950  # Do the check with the no- prefix removed since gcc silently
6951  # accepts any -Wno-* option on purpose
6952  case $real_option in
6953    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6954    *) option=$real_option ;;
6955  esac
6956  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6957
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6959$as_echo_n "checking whether $CC supports $option... " >&6; }
6960if eval \${$as_acx_Woption+:} false; then :
6961  $as_echo_n "(cached) " >&6
6962else
6963  CFLAGS="$option"
6964    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966
6967int
6968main ()
6969{
6970
6971  ;
6972  return 0;
6973}
6974_ACEOF
6975if ac_fn_c_try_compile "$LINENO"; then :
6976  eval "$as_acx_Woption=yes"
6977else
6978  eval "$as_acx_Woption=no"
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981
6982fi
6983eval ac_res=\$$as_acx_Woption
6984	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6985$as_echo "$ac_res" >&6; }
6986  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6987  c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6988fi
6989  done
6990CFLAGS="$save_CFLAGS"
6991ac_ext=cpp
6992ac_cpp='$CXXCPP $CPPFLAGS'
6993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6996
6997
6998ac_ext=cpp
6999ac_cpp='$CXXCPP $CPPFLAGS'
7000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7003
7004# Do the check with the no- prefix removed from the warning options
7005# since gcc silently accepts any -Wno-* option on purpose
7006if test "$GXX" = yes; then :
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7008$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7009if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  save_CXXFLAGS="$CXXFLAGS"
7013CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016
7017int
7018main ()
7019{
7020
7021  ;
7022  return 0;
7023}
7024_ACEOF
7025if ac_fn_cxx_try_compile "$LINENO"; then :
7026  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7027else
7028  acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7029fi
7030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031CXXFLAGS="$save_CXXFLAGS"
7032fi
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7034$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7035if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7036  strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7037fi
7038
7039fi
7040ac_ext=cpp
7041ac_cpp='$CXXCPP $CPPFLAGS'
7042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7045
7046
7047ac_ext=cpp
7048ac_cpp='$CXXCPP $CPPFLAGS'
7049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7052
7053# Check whether --enable-werror-always was given.
7054if test "${enable_werror_always+set}" = set; then :
7055  enableval=$enable_werror_always;
7056else
7057  enable_werror_always=no
7058fi
7059
7060if test $enable_werror_always = yes; then :
7061  strict_warn="$strict_warn${strict_warn:+ }-Werror"
7062fi
7063
7064ac_ext=cpp
7065ac_cpp='$CXXCPP $CPPFLAGS'
7066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7069
7070
7071
7072# The above macros do nothing if the compiler is not GCC.  However, the
7073# Makefile has more goo to add other flags, so these variables are used
7074# to enable warnings only for GCC.
7075warn_cflags=
7076warn_cxxflags=
7077if test "x$GCC" = "xyes"; then
7078  warn_cflags='$(GCC_WARN_CFLAGS)'
7079  warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7080fi
7081
7082
7083
7084# Disable exceptions and RTTI if building with g++
7085ac_ext=c
7086ac_cpp='$CPP $CPPFLAGS'
7087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089ac_compiler_gnu=$ac_cv_c_compiler_gnu
7090
7091noexception_flags=
7092save_CFLAGS="$CFLAGS"
7093for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7094  # Do the check with the no- prefix removed since gcc silently
7095  # accepts any -Wno-* option on purpose
7096  case $real_option in
7097    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7098    *) option=$real_option ;;
7099  esac
7100  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7101
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7103$as_echo_n "checking whether $CC supports $option... " >&6; }
7104if eval \${$as_acx_Woption+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  CFLAGS="$option"
7108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h.  */
7110
7111int
7112main ()
7113{
7114
7115  ;
7116  return 0;
7117}
7118_ACEOF
7119if ac_fn_c_try_compile "$LINENO"; then :
7120  eval "$as_acx_Woption=yes"
7121else
7122  eval "$as_acx_Woption=no"
7123fi
7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125
7126fi
7127eval ac_res=\$$as_acx_Woption
7128	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7129$as_echo "$ac_res" >&6; }
7130  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7131  noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7132fi
7133  done
7134CFLAGS="$save_CFLAGS"
7135ac_ext=cpp
7136ac_cpp='$CXXCPP $CPPFLAGS'
7137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7140
7141
7142
7143# Enable expensive internal checks
7144is_release=
7145if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7146  is_release=yes
7147fi
7148
7149# Check whether --enable-checking was given.
7150if test "${enable_checking+set}" = set; then :
7151  enableval=$enable_checking; ac_checking_flags="${enableval}"
7152else
7153
7154# Determine the default checks.
7155if test x$is_release = x ; then
7156  ac_checking_flags=yes,extra
7157else
7158  ac_checking_flags=release
7159fi
7160fi
7161
7162IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
7163for check in release $ac_checking_flags
7164do
7165	case $check in
7166	# these set all the flags to specific states
7167	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7168			ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7169			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7170			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7171			ac_tree_checking=1 ; ac_valgrind_checking= ;
7172			ac_types_checking=1 ;;
7173	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7174			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7175			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7176			ac_rtlflag_checking= ; ac_runtime_checking= ;
7177			ac_tree_checking= ; ac_valgrind_checking= ;
7178			ac_types_checking= ;;
7179	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7180			ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7181			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7182			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7183			ac_tree_checking=1 ; ac_valgrind_checking= ;
7184			ac_types_checking=1 ;;
7185	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7186			ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7187			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7188			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7189			ac_tree_checking= ; ac_valgrind_checking= ;
7190			ac_types_checking= ;;
7191	# these enable particular checks
7192	assert) 	ac_assert_checking=1 ;;
7193	df)		ac_df_checking=1 ;;
7194	extra)		ac_extra_checking=1 ;;
7195	fold)		ac_fold_checking=1 ;;
7196	gc)		ac_gc_checking=1 ;;
7197	gcac)		ac_gc_always_collect=1 ;;
7198	gimple)		ac_gimple_checking=1 ;;
7199	misc)		ac_checking=1 ;;
7200	rtl)		ac_rtl_checking=1 ;;
7201	rtlflag)	ac_rtlflag_checking=1 ;;
7202	runtime)	ac_runtime_checking=1 ;;
7203	tree)		ac_tree_checking=1 ;;
7204	types)		ac_types_checking=1 ;;
7205	valgrind)	ac_valgrind_checking=1 ;;
7206	*)	as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7207	esac
7208done
7209IFS="$ac_save_IFS"
7210
7211nocommon_flag=""
7212if test x$ac_checking != x ; then
7213
7214$as_echo "#define CHECKING_P 1" >>confdefs.h
7215
7216  nocommon_flag=-fno-common
7217else
7218  $as_echo "#define CHECKING_P 0" >>confdefs.h
7219
7220fi
7221
7222if test x$ac_extra_checking != x ; then
7223
7224$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7225
7226else
7227  $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7228
7229fi
7230if test x$ac_df_checking != x ; then
7231
7232$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7233
7234fi
7235if test x$ac_assert_checking != x ; then
7236
7237$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7238
7239fi
7240if test x$ac_gimple_checking != x ; then
7241
7242$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7243
7244fi
7245
7246if test x$ac_runtime_checking != x ; then
7247
7248$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7249
7250fi
7251if test x$ac_tree_checking != x ; then
7252
7253$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7254
7255  TREECHECKING=yes
7256fi
7257if test x$ac_types_checking != x ; then
7258
7259$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7260
7261fi
7262
7263if test x$ac_rtl_checking != x ; then
7264
7265$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7266
7267fi
7268if test x$ac_rtlflag_checking != x ; then
7269
7270$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7271
7272fi
7273if test x$ac_gc_checking != x ; then
7274
7275$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7276
7277fi
7278if test x$ac_gc_always_collect != x ; then
7279
7280$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7281
7282fi
7283if test x$ac_fold_checking != x ; then
7284
7285$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7286
7287fi
7288valgrind_path_defines=
7289valgrind_command=
7290
7291ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7292if test "x$ac_cv_header_valgrind_h" = xyes; then :
7293  have_valgrind_h=yes
7294else
7295  have_valgrind_h=no
7296fi
7297
7298
7299
7300# It is certainly possible that there's valgrind but no valgrind.h.
7301# GCC relies on making annotations so we must have both.
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7303$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305/* end confdefs.h.  */
7306#include <valgrind/memcheck.h>
7307#ifndef VALGRIND_DISCARD
7308#error VALGRIND_DISCARD not defined
7309#endif
7310_ACEOF
7311if ac_fn_cxx_try_cpp "$LINENO"; then :
7312  gcc_cv_header_valgrind_memcheck_h=yes
7313else
7314  gcc_cv_header_valgrind_memcheck_h=no
7315fi
7316rm -f conftest.err conftest.i conftest.$ac_ext
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7318$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7320$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322/* end confdefs.h.  */
7323#include <memcheck.h>
7324#ifndef VALGRIND_DISCARD
7325#error VALGRIND_DISCARD not defined
7326#endif
7327_ACEOF
7328if ac_fn_cxx_try_cpp "$LINENO"; then :
7329  gcc_cv_header_memcheck_h=yes
7330else
7331  gcc_cv_header_memcheck_h=no
7332fi
7333rm -f conftest.err conftest.i conftest.$ac_ext
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7335$as_echo "$gcc_cv_header_memcheck_h" >&6; }
7336if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7337
7338$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7339
7340fi
7341if test $gcc_cv_header_memcheck_h = yes; then
7342
7343$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7344
7345fi
7346
7347if test x$ac_valgrind_checking != x ; then
7348
7349# Prepare PATH_SEPARATOR.
7350# The user is always right.
7351if test "${PATH_SEPARATOR+set}" != set; then
7352  echo "#! /bin/sh" >conf$$.sh
7353  echo  "exit 0"   >>conf$$.sh
7354  chmod +x conf$$.sh
7355  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7356    PATH_SEPARATOR=';'
7357  else
7358    PATH_SEPARATOR=:
7359  fi
7360  rm -f conf$$.sh
7361fi
7362
7363# Find out how to test for executable files. Don't use a zero-byte file,
7364# as systems may use methods other than mode bits to determine executability.
7365cat >conf$$.file <<_ASEOF
7366#! /bin/sh
7367exit 0
7368_ASEOF
7369chmod +x conf$$.file
7370if test -x conf$$.file >/dev/null 2>&1; then
7371  ac_executable_p="test -x"
7372else
7373  ac_executable_p="test -f"
7374fi
7375rm -f conf$$.file
7376
7377# Extract the first word of "valgrind", so it can be a program name with args.
7378set dummy valgrind; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if ${ac_cv_path_valgrind_path+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  case "$valgrind_path" in
7385  [\\/]* | ?:[\\/]*)
7386    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7387    ;;
7388  *)
7389    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7390    for ac_dir in $PATH; do
7391      IFS="$ac_save_IFS"
7392      test -z "$ac_dir" && ac_dir=.
7393      for ac_exec_ext in '' $ac_executable_extensions; do
7394        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7395          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7396            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7397            break 2
7398          fi
7399        fi
7400      done
7401    done
7402    IFS="$ac_save_IFS"
7403    ;;
7404esac
7405fi
7406valgrind_path="$ac_cv_path_valgrind_path"
7407if test -n "$valgrind_path"; then
7408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7409$as_echo "$valgrind_path" >&6; }
7410else
7411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412$as_echo "no" >&6; }
7413fi
7414
7415  if test "x$valgrind_path" = "x" \
7416    || (test $have_valgrind_h = no \
7417	&& test $gcc_cv_header_memcheck_h = no \
7418	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
7419	as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7420  fi
7421  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7422  valgrind_command="$valgrind_path -q"
7423
7424$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7425
7426fi
7427
7428
7429
7430# Enable code coverage collection
7431# Check whether --enable-coverage was given.
7432if test "${enable_coverage+set}" = set; then :
7433  enableval=$enable_coverage; case "${enableval}" in
7434  yes|noopt)
7435    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7436    ;;
7437  opt)
7438    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7439    ;;
7440  no)
7441    # a.k.a. --disable-coverage
7442    coverage_flags=""
7443    ;;
7444  *)
7445    as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7446    ;;
7447esac
7448else
7449  coverage_flags=""
7450fi
7451
7452
7453
7454# Check whether --enable-gather-detailed-mem-stats was given.
7455if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7456  enableval=$enable_gather_detailed_mem_stats;
7457else
7458  enable_gather_detailed_mem_stats=no
7459fi
7460
7461gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7462
7463cat >>confdefs.h <<_ACEOF
7464#define GATHER_STATISTICS $gather_stats
7465_ACEOF
7466
7467
7468# Check whether --enable-valgrind-annotations was given.
7469if test "${enable_valgrind_annotations+set}" = set; then :
7470  enableval=$enable_valgrind_annotations;
7471else
7472  enable_valgrind_annotations=no
7473fi
7474
7475if test x$enable_valgrind_annotations != xno \
7476    || test x$ac_valgrind_checking != x; then
7477  if (test $have_valgrind_h = no \
7478      && test $gcc_cv_header_memcheck_h = no \
7479      && test $gcc_cv_header_valgrind_memcheck_h = no); then
7480    as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7481  fi
7482
7483$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7484
7485fi
7486
7487# -------------------------------
7488# Miscenalleous configure options
7489# -------------------------------
7490
7491# With stabs
7492
7493# Check whether --with-stabs was given.
7494if test "${with_stabs+set}" = set; then :
7495  withval=$with_stabs; stabs="$with_stabs"
7496else
7497  stabs=no
7498fi
7499
7500
7501# Determine whether or not multilibs are enabled.
7502# Check whether --enable-multilib was given.
7503if test "${enable_multilib+set}" = set; then :
7504  enableval=$enable_multilib;
7505else
7506  enable_multilib=yes
7507fi
7508
7509
7510
7511# Determine whether or not multiarch is enabled.
7512# Check whether --enable-multiarch was given.
7513if test "${enable_multiarch+set}" = set; then :
7514  enableval=$enable_multiarch; case "${enableval}" in
7515yes|no|auto) enable_multiarch=$enableval;;
7516*) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7517esac
7518else
7519  enable_multiarch=auto
7520fi
7521
7522if test x${enable_multiarch} = xauto; then
7523  if test x${with_native_system_header_dir} != x; then
7524    ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7525    enable_multiarch=no
7526  fi
7527  if test x$host != x$target && test "x$with_sysroot" = x; then
7528    ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7529    enable_multiarch=no
7530  fi
7531fi
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7533$as_echo_n "checking for multiarch configuration... " >&6; }
7534
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7536$as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7537
7538# needed for setting the multiarch name for soft-float/hard-float ABIs
7539
7540
7541
7542# default stack clash protection guard size as power of twos in bytes.
7543# Please keep these in sync with params.def.
7544stk_clash_min=12
7545stk_clash_max=30
7546
7547# Keep the default value when the option is not used to 0, this allows us to
7548# distinguish between the cases where the user specifially set a value via
7549# configure and when the normal default value is used.
7550
7551# Check whether --with-stack-clash-protection-guard-size was given.
7552if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7553  withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7554else
7555  DEFAULT_STK_CLASH_GUARD_SIZE=0
7556fi
7557
7558if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7559     && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7560	 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7561  as_fn_error $? "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7562fi
7563
7564
7565cat >>confdefs.h <<_ACEOF
7566#define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7567_ACEOF
7568
7569
7570# Enable __cxa_atexit for C++.
7571# Check whether --enable-__cxa_atexit was given.
7572if test "${enable___cxa_atexit+set}" = set; then :
7573  enableval=$enable___cxa_atexit;
7574fi
7575
7576
7577# Enable C extension for decimal float if target supports it.
7578
7579# Check whether --enable-decimal-float was given.
7580if test "${enable_decimal_float+set}" = set; then :
7581  enableval=$enable_decimal_float;
7582  case $enable_decimal_float in
7583    yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7584    *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7585Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7586  esac
7587
7588else
7589
7590  case $target in
7591    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7592    i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7593    i?86*-*-mingw* | x86_64*-*-mingw* | \
7594    i?86*-*-cygwin* | x86_64*-*-cygwin*)
7595      enable_decimal_float=yes
7596      ;;
7597    *)
7598      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7599$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7600      enable_decimal_float=no
7601      ;;
7602  esac
7603
7604fi
7605
7606
7607# x86's use BID format instead of DPD
7608case x$enable_decimal_float in
7609  xyes)
7610    case $target in
7611      i?86*-*-* | x86_64*-*-*)
7612	enable_decimal_float=bid
7613	;;
7614      *)
7615	enable_decimal_float=dpd
7616	;;
7617    esac
7618    default_decimal_float=$enable_decimal_float
7619    ;;
7620  xno)
7621    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7622    # dependency on libdecnumber.
7623    default_decimal_float=dpd
7624    ;;
7625esac
7626
7627
7628
7629
7630dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7631
7632cat >>confdefs.h <<_ACEOF
7633#define ENABLE_DECIMAL_FLOAT $dfp
7634_ACEOF
7635
7636
7637# Use default_decimal_float for dependency.
7638enable_decimal_float=$default_decimal_float
7639
7640bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7641
7642cat >>confdefs.h <<_ACEOF
7643#define ENABLE_DECIMAL_BID_FORMAT $bid
7644_ACEOF
7645
7646
7647# Enable C extension for fixed-point arithmetic.
7648# Check whether --enable-fixed-point was given.
7649if test "${enable_fixed_point+set}" = set; then :
7650  enableval=$enable_fixed_point;
7651else
7652
7653  case $target in
7654    arm*)
7655      enable_fixed_point=yes
7656      ;;
7657
7658    mips*-*-*)
7659      enable_fixed_point=yes
7660      ;;
7661    *)
7662      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7663$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7664      enable_fixed_point=no
7665      ;;
7666  esac
7667
7668fi
7669
7670
7671
7672fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7673
7674cat >>confdefs.h <<_ACEOF
7675#define ENABLE_FIXED_POINT $fixedpoint
7676_ACEOF
7677
7678
7679# Enable threads
7680# Pass with no value to take the default
7681# Pass with a value to specify a thread package
7682# Check whether --enable-threads was given.
7683if test "${enable_threads+set}" = set; then :
7684  enableval=$enable_threads;
7685else
7686  enable_threads=''
7687fi
7688
7689
7690# Check whether --enable-tls was given.
7691if test "${enable_tls+set}" = set; then :
7692  enableval=$enable_tls;
7693  case $enable_tls in
7694    yes | no) ;;
7695    *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7696Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7697  esac
7698
7699else
7700  enable_tls=''
7701fi
7702
7703
7704# Check whether --enable-vtable-verify was given.
7705if test "${enable_vtable_verify+set}" = set; then :
7706  enableval=$enable_vtable_verify;
7707else
7708  enable_vtable_verify=no
7709fi
7710
7711vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7712
7713cat >>confdefs.h <<_ACEOF
7714#define ENABLE_VTABLE_VERIFY $vtable_verify
7715_ACEOF
7716
7717
7718# Check whether --enable-analyzer was given.
7719if test "${enable_analyzer+set}" = set; then :
7720  enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7721	analyzer=0
7722else
7723	analyzer=1
7724fi
7725else
7726  analyzer=1
7727fi
7728
7729
7730cat >>confdefs.h <<_ACEOF
7731#define ENABLE_ANALYZER $analyzer
7732_ACEOF
7733
7734
7735# Check whether --enable-objc-gc was given.
7736if test "${enable_objc_gc+set}" = set; then :
7737  enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7738	objc_boehm_gc=''
7739else
7740	objc_boehm_gc=1
7741fi
7742else
7743  objc_boehm_gc=''
7744fi
7745
7746
7747
7748# Check whether --with-dwarf2 was given.
7749if test "${with_dwarf2+set}" = set; then :
7750  withval=$with_dwarf2; dwarf2="$with_dwarf2"
7751else
7752  dwarf2=no
7753fi
7754
7755
7756# Check whether --enable-shared was given.
7757if test "${enable_shared+set}" = set; then :
7758  enableval=$enable_shared;
7759  case $enable_shared in
7760  yes | no) ;;
7761  *)
7762    enable_shared=no
7763    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7764    for pkg in $enableval; do
7765      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7766        enable_shared=yes
7767      fi
7768    done
7769    IFS="$ac_save_ifs"
7770    ;;
7771  esac
7772
7773else
7774  enable_shared=yes
7775fi
7776
7777
7778
7779# Check whether --enable-gcov was given.
7780if test "${enable_gcov+set}" = set; then :
7781  enableval=$enable_gcov;
7782else
7783  enable_gcov=yes
7784fi
7785
7786
7787
7788
7789# Check whether --with-specs was given.
7790if test "${with_specs+set}" = set; then :
7791  withval=$with_specs; CONFIGURE_SPECS=$withval
7792else
7793  CONFIGURE_SPECS=
7794
7795fi
7796
7797
7798
7799
7800
7801# Check whether --with-pkgversion was given.
7802if test "${with_pkgversion+set}" = set; then :
7803  withval=$with_pkgversion; case "$withval" in
7804      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7805      no)  PKGVERSION= ;;
7806      *)   PKGVERSION="($withval) " ;;
7807     esac
7808else
7809  PKGVERSION="(GCC) "
7810
7811fi
7812
7813
7814
7815
7816
7817# Check whether --with-bugurl was given.
7818if test "${with_bugurl+set}" = set; then :
7819  withval=$with_bugurl; case "$withval" in
7820      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7821      no)  BUGURL=
7822	   ;;
7823      *)   BUGURL="$withval"
7824	   ;;
7825     esac
7826else
7827  BUGURL="https://gcc.gnu.org/bugs/"
7828
7829fi
7830
7831  case ${BUGURL} in
7832  "")
7833    REPORT_BUGS_TO=
7834    REPORT_BUGS_TEXI=
7835    ;;
7836  *)
7837    REPORT_BUGS_TO="<$BUGURL>"
7838    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7839    ;;
7840  esac;
7841
7842
7843
7844
7845# Allow overriding the default URL for documentation
7846
7847# Check whether --with-documentation-root-url was given.
7848if test "${with_documentation_root_url+set}" = set; then :
7849  withval=$with_documentation_root_url; case "$withval" in
7850      yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7851      no)  as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7852      */)  DOCUMENTATION_ROOT_URL="$withval" ;;
7853      *)   as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7854     esac
7855else
7856  DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7857
7858fi
7859
7860
7861cat >>confdefs.h <<_ACEOF
7862#define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7863_ACEOF
7864
7865
7866# Allow overriding the default URL for GCC changes
7867
7868# Check whether --with-changes-root-url was given.
7869if test "${with_changes_root_url+set}" = set; then :
7870  withval=$with_changes_root_url; case "$withval" in
7871      yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7872      no)  as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7873      */)  CHANGES_ROOT_URL="$withval" ;;
7874      *)   as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7875     esac
7876else
7877  CHANGES_ROOT_URL="https://gcc.gnu.org/"
7878
7879fi
7880
7881
7882cat >>confdefs.h <<_ACEOF
7883#define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7884_ACEOF
7885
7886
7887# Sanity check enable_languages in case someone does not run the toplevel
7888# configure # script.
7889# Check whether --enable-languages was given.
7890if test "${enable_languages+set}" = set; then :
7891  enableval=$enable_languages; case ,${enable_languages}, in
7892       ,,|,yes,)
7893		# go safe -- we cannot be much sure without the toplevel
7894		# configure's
7895		# analysis of which target libs are present and usable
7896		enable_languages=c
7897		;;
7898	 *,all,*)
7899		as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7900		;;
7901	*,c,*)
7902		;;
7903        *)
7904		enable_languages=c,${enable_languages}
7905		;;
7906esac
7907else
7908  enable_languages=c
7909fi
7910
7911
7912# If top-level libada has been disabled, then wire in install-gnatlib
7913# invocation with `make install', so that one can build and install
7914# the library manually with `make -C gcc all gnatlib gnattools install'.
7915if test x"$enable_libada" = xno; then
7916  gnat_install_lib=gnat-install-lib
7917else
7918  gnat_install_lib=
7919fi
7920
7921
7922if test x"$enable_as_accelerator_for" != x; then
7923
7924$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7925
7926  enable_as_accelerator=yes
7927  case "${target}" in
7928    *-intelmicemul-*)
7929      # In this case we expect offload compiler to be built as native, so we
7930      # need to rename the driver to avoid clashes with host's drivers.
7931      program_transform_name="s&^&${target}-&" ;;
7932  esac
7933  sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7934  program_transform_name=`echo $program_transform_name | sed $sedscript`
7935  accel_dir_suffix=/accel/${target_noncanonical}
7936  real_target_noncanonical=${enable_as_accelerator_for}
7937fi
7938
7939
7940
7941
7942for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7943  tgt=`echo $tgt | sed 's/=.*//'`
7944
7945  if echo "$tgt" | grep "^hsa" > /dev/null ; then
7946    enable_hsa=1
7947  else
7948    enable_offloading=1
7949    case "$tgt" in
7950      *-intelmic-* | *-intelmicemul-*)
7951	omp_device_property=omp-device-properties-i386
7952	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7953	;;
7954      amdgcn*)
7955	omp_device_property=omp-device-properties-gcn
7956	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7957	;;
7958      nvptx*)
7959	omp_device_property=omp-device-properties-nvptx
7960	omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7961	;;
7962      *)
7963	as_fn_error $? "unknown offload target specified" "$LINENO" 5
7964	;;
7965    esac
7966    omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7967    omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7968  fi
7969
7970  if test x"$offload_targets" = x; then
7971    offload_targets=$tgt
7972  else
7973    offload_targets="$offload_targets,$tgt"
7974  fi
7975done
7976
7977
7978
7979
7980cat >>confdefs.h <<_ACEOF
7981#define OFFLOAD_TARGETS "$offload_targets"
7982_ACEOF
7983
7984if test x"$enable_offloading" != x; then
7985
7986$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7987
7988else
7989
7990$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7991
7992fi
7993
7994if test x"$enable_hsa" = x1 ; then
7995
7996$as_echo "#define ENABLE_HSA 1" >>confdefs.h
7997
7998fi
7999
8000
8001# Check whether --with-multilib-list was given.
8002if test "${with_multilib_list+set}" = set; then :
8003  withval=$with_multilib_list; :
8004else
8005  with_multilib_list=default
8006fi
8007
8008
8009# -------------------------
8010# Checks for other programs
8011# -------------------------
8012
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8014$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8015set x ${MAKE-make}
8016ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8017if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8018  $as_echo_n "(cached) " >&6
8019else
8020  cat >conftest.make <<\_ACEOF
8021SHELL = /bin/sh
8022all:
8023	@echo '@@@%%%=$(MAKE)=@@@%%%'
8024_ACEOF
8025# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8026case `${MAKE-make} -f conftest.make 2>/dev/null` in
8027  *@@@%%%=?*=@@@%%%*)
8028    eval ac_cv_prog_make_${ac_make}_set=yes;;
8029  *)
8030    eval ac_cv_prog_make_${ac_make}_set=no;;
8031esac
8032rm -f conftest.make
8033fi
8034if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8036$as_echo "yes" >&6; }
8037  SET_MAKE=
8038else
8039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040$as_echo "no" >&6; }
8041  SET_MAKE="MAKE=${MAKE-make}"
8042fi
8043
8044
8045# Find some useful tools
8046for ac_prog in gawk mawk nawk awk
8047do
8048  # Extract the first word of "$ac_prog", so it can be a program name with args.
8049set dummy $ac_prog; ac_word=$2
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051$as_echo_n "checking for $ac_word... " >&6; }
8052if ${ac_cv_prog_AWK+:} false; then :
8053  $as_echo_n "(cached) " >&6
8054else
8055  if test -n "$AWK"; then
8056  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8057else
8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061  IFS=$as_save_IFS
8062  test -z "$as_dir" && as_dir=.
8063    for ac_exec_ext in '' $ac_executable_extensions; do
8064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065    ac_cv_prog_AWK="$ac_prog"
8066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067    break 2
8068  fi
8069done
8070  done
8071IFS=$as_save_IFS
8072
8073fi
8074fi
8075AWK=$ac_cv_prog_AWK
8076if test -n "$AWK"; then
8077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8078$as_echo "$AWK" >&6; }
8079else
8080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
8082fi
8083
8084
8085  test -n "$AWK" && break
8086done
8087
8088# We need awk to create options.c and options.h.
8089# Bail out if it's missing.
8090case ${AWK} in
8091  "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8092esac
8093
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8095$as_echo_n "checking whether ln -s works... " >&6; }
8096if ${gcc_cv_prog_LN_S+:} false; then :
8097  $as_echo_n "(cached) " >&6
8098else
8099  rm -f conftestdata_t
8100echo >conftestdata_f
8101if ln -s conftestdata_f conftestdata_t 2>/dev/null
8102then
8103  gcc_cv_prog_LN_S="ln -s"
8104else
8105  if ln conftestdata_f conftestdata_t 2>/dev/null
8106  then
8107    gcc_cv_prog_LN_S=ln
8108  else
8109    if cp -p conftestdata_f conftestdata_t 2>/dev/null
8110    then
8111      gcc_cv_prog_LN_S="cp -p"
8112    else
8113      gcc_cv_prog_LN_S=cp
8114    fi
8115  fi
8116fi
8117rm -f conftestdata_f conftestdata_t
8118
8119fi
8120LN_S="$gcc_cv_prog_LN_S"
8121if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8123$as_echo "yes" >&6; }
8124else
8125  if test "$gcc_cv_prog_LN_S" = "ln"; then
8126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8127$as_echo "no, using ln" >&6; }
8128  else
8129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8130$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8131  fi
8132fi
8133
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8135$as_echo_n "checking whether ln works... " >&6; }
8136if ${acx_cv_prog_LN+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  rm -f conftestdata_t
8140echo >conftestdata_f
8141if ln conftestdata_f conftestdata_t 2>/dev/null
8142then
8143  acx_cv_prog_LN=ln
8144else
8145  acx_cv_prog_LN=no
8146fi
8147rm -f conftestdata_f conftestdata_t
8148
8149fi
8150if test $acx_cv_prog_LN = no; then
8151  LN="$LN_S"
8152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8153$as_echo "no, using $LN" >&6; }
8154else
8155  LN="$acx_cv_prog_LN"
8156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8157$as_echo "yes" >&6; }
8158fi
8159
8160if test -n "$ac_tool_prefix"; then
8161  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8162set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164$as_echo_n "checking for $ac_word... " >&6; }
8165if ${ac_cv_prog_RANLIB+:} false; then :
8166  $as_echo_n "(cached) " >&6
8167else
8168  if test -n "$RANLIB"; then
8169  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8170else
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174  IFS=$as_save_IFS
8175  test -z "$as_dir" && as_dir=.
8176    for ac_exec_ext in '' $ac_executable_extensions; do
8177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180    break 2
8181  fi
8182done
8183  done
8184IFS=$as_save_IFS
8185
8186fi
8187fi
8188RANLIB=$ac_cv_prog_RANLIB
8189if test -n "$RANLIB"; then
8190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8191$as_echo "$RANLIB" >&6; }
8192else
8193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194$as_echo "no" >&6; }
8195fi
8196
8197
8198fi
8199if test -z "$ac_cv_prog_RANLIB"; then
8200  ac_ct_RANLIB=$RANLIB
8201  # Extract the first word of "ranlib", so it can be a program name with args.
8202set dummy ranlib; ac_word=$2
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204$as_echo_n "checking for $ac_word... " >&6; }
8205if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  if test -n "$ac_ct_RANLIB"; then
8209  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8210else
8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212for as_dir in $PATH
8213do
8214  IFS=$as_save_IFS
8215  test -z "$as_dir" && as_dir=.
8216    for ac_exec_ext in '' $ac_executable_extensions; do
8217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218    ac_cv_prog_ac_ct_RANLIB="ranlib"
8219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220    break 2
8221  fi
8222done
8223  done
8224IFS=$as_save_IFS
8225
8226fi
8227fi
8228ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8229if test -n "$ac_ct_RANLIB"; then
8230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8231$as_echo "$ac_ct_RANLIB" >&6; }
8232else
8233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
8235fi
8236
8237  if test "x$ac_ct_RANLIB" = x; then
8238    RANLIB=":"
8239  else
8240    case $cross_compiling:$ac_tool_warned in
8241yes:)
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8244ac_tool_warned=yes ;;
8245esac
8246    RANLIB=$ac_ct_RANLIB
8247  fi
8248else
8249  RANLIB="$ac_cv_prog_RANLIB"
8250fi
8251
8252ranlib_flags=""
8253
8254
8255# Find a good install program.  We prefer a C program (faster),
8256# so one script is as good as another.  But avoid the broken or
8257# incompatible versions:
8258# SysV /etc/install, /usr/sbin/install
8259# SunOS /usr/etc/install
8260# IRIX /sbin/install
8261# AIX /bin/install
8262# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8263# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8264# ./install, which can be erroneously created by make from ./install.sh.
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8266$as_echo_n "checking for a BSD compatible install... " >&6; }
8267if test -z "$INSTALL"; then
8268if ${ac_cv_path_install+:} false; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8272  for ac_dir in $PATH; do
8273    # Account for people who put trailing slashes in PATH elements.
8274    case "$ac_dir/" in
8275    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8276    *)
8277      # OSF1 and SCO ODT 3.0 have their own names for install.
8278      for ac_prog in ginstall scoinst install; do
8279        if test -f $ac_dir/$ac_prog; then
8280	  if test $ac_prog = install &&
8281            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8282	    # AIX install.  It has an incompatible calling convention.
8283	    # OSF/1 installbsd also uses dspmsg, but is usable.
8284	    :
8285	  else
8286	    ac_cv_path_install="$ac_dir/$ac_prog -c"
8287	    break 2
8288	  fi
8289	fi
8290      done
8291      ;;
8292    esac
8293  done
8294  IFS="$ac_save_IFS"
8295
8296fi
8297  if test "${ac_cv_path_install+set}" = set; then
8298    INSTALL="$ac_cv_path_install"
8299  else
8300    # As a last resort, use the slow shell script.  We don't cache a
8301    # path for INSTALL within a source directory, because that will
8302    # break other packages using the cache if that directory is
8303    # removed, or if the path is relative.
8304    INSTALL="$ac_install_sh"
8305  fi
8306fi
8307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8308$as_echo "$INSTALL" >&6; }
8309
8310# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8311# It thinks the first close brace ends the variable substitution.
8312test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8313
8314test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8315
8316
8317# See if cmp has --ignore-initial.
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8319$as_echo_n "checking for cmp's capabilities... " >&6; }
8320if ${gcc_cv_prog_cmp_skip+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323   echo abfoo >t1
8324  echo cdfoo >t2
8325  gcc_cv_prog_cmp_skip=slowcompare
8326  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8327    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8328      :
8329    else
8330      gcc_cv_prog_cmp_skip=gnucompare
8331    fi
8332  fi
8333  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8334    if cmp t1 t2 2 2 > /dev/null 2>&1; then
8335      if cmp t1 t2 1 1 > /dev/null 2>&1; then
8336        :
8337      else
8338        gcc_cv_prog_cmp_skip=fastcompare
8339      fi
8340    fi
8341  fi
8342  rm t1 t2
8343
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8346$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8347make_compare_target=$gcc_cv_prog_cmp_skip
8348
8349
8350
8351# See if we have the mktemp command.
8352# Extract the first word of "mktemp", so it can be a program name with args.
8353set dummy mktemp; ac_word=$2
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if ${ac_cv_prog_have_mktemp_command+:} false; then :
8357  $as_echo_n "(cached) " >&6
8358else
8359  if test -n "$have_mktemp_command"; then
8360  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365  IFS=$as_save_IFS
8366  test -z "$as_dir" && as_dir=.
8367    for ac_exec_ext in '' $ac_executable_extensions; do
8368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369    ac_cv_prog_have_mktemp_command="yes"
8370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371    break 2
8372  fi
8373done
8374  done
8375IFS=$as_save_IFS
8376
8377  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8378fi
8379fi
8380have_mktemp_command=$ac_cv_prog_have_mktemp_command
8381if test -n "$have_mktemp_command"; then
8382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8383$as_echo "$have_mktemp_command" >&6; }
8384else
8385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
8387fi
8388
8389
8390
8391# See if makeinfo has been installed and is modern enough
8392# that we can use it.
8393
8394  # Extract the first word of "makeinfo", so it can be a program name with args.
8395set dummy makeinfo; ac_word=$2
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397$as_echo_n "checking for $ac_word... " >&6; }
8398if ${ac_cv_prog_MAKEINFO+:} false; then :
8399  $as_echo_n "(cached) " >&6
8400else
8401  if test -n "$MAKEINFO"; then
8402  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8403else
8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405for as_dir in $PATH
8406do
8407  IFS=$as_save_IFS
8408  test -z "$as_dir" && as_dir=.
8409    for ac_exec_ext in '' $ac_executable_extensions; do
8410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411    ac_cv_prog_MAKEINFO="makeinfo"
8412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413    break 2
8414  fi
8415done
8416  done
8417IFS=$as_save_IFS
8418
8419fi
8420fi
8421MAKEINFO=$ac_cv_prog_MAKEINFO
8422if test -n "$MAKEINFO"; then
8423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8424$as_echo "$MAKEINFO" >&6; }
8425else
8426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427$as_echo "no" >&6; }
8428fi
8429
8430
8431  if test -n "$MAKEINFO"; then
8432    # Found it, now check the version.
8433    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8434$as_echo_n "checking for modern makeinfo... " >&6; }
8435if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8436  $as_echo_n "(cached) " >&6
8437else
8438  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8439                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8440
8441                    case $ac_prog_version in
8442                      '')  gcc_cv_prog_makeinfo_modern=no;;
8443                      4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8444                      *)   gcc_cv_prog_makeinfo_modern=no;;
8445                    esac
8446
8447fi
8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8449$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8450  else
8451    gcc_cv_prog_makeinfo_modern=no
8452  fi
8453  if test $gcc_cv_prog_makeinfo_modern = no; then
8454    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8455  fi
8456
8457if test $gcc_cv_prog_makeinfo_modern = no; then
8458  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8459*** Makeinfo is missing or too old.
8460*** Info documentation will not be built." >&5
8461$as_echo "$as_me: WARNING:
8462*** Makeinfo is missing or too old.
8463*** Info documentation will not be built." >&2;}
8464  BUILD_INFO=
8465else
8466  BUILD_INFO=info
8467fi
8468
8469
8470# Is pod2man recent enough to regenerate manpages?
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8472$as_echo_n "checking for recent Pod::Man... " >&6; }
8473if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8475$as_echo "yes" >&6; }
8476  GENERATED_MANPAGES=generated-manpages
8477else
8478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479$as_echo "no" >&6; }
8480  GENERATED_MANPAGES=
8481fi
8482
8483
8484MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8485
8486# How about lex?
8487for ac_prog in flex
8488do
8489  # Extract the first word of "$ac_prog", so it can be a program name with args.
8490set dummy $ac_prog; ac_word=$2
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492$as_echo_n "checking for $ac_word... " >&6; }
8493if ${ac_cv_prog_FLEX+:} false; then :
8494  $as_echo_n "(cached) " >&6
8495else
8496  if test -n "$FLEX"; then
8497  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8498else
8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500for as_dir in $PATH
8501do
8502  IFS=$as_save_IFS
8503  test -z "$as_dir" && as_dir=.
8504    for ac_exec_ext in '' $ac_executable_extensions; do
8505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506    ac_cv_prog_FLEX="$ac_prog"
8507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508    break 2
8509  fi
8510done
8511  done
8512IFS=$as_save_IFS
8513
8514fi
8515fi
8516FLEX=$ac_cv_prog_FLEX
8517if test -n "$FLEX"; then
8518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8519$as_echo "$FLEX" >&6; }
8520else
8521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522$as_echo "no" >&6; }
8523fi
8524
8525
8526  test -n "$FLEX" && break
8527done
8528test -n "$FLEX" || FLEX="$MISSING flex"
8529
8530
8531# Bison?
8532for ac_prog in bison
8533do
8534  # Extract the first word of "$ac_prog", so it can be a program name with args.
8535set dummy $ac_prog; ac_word=$2
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if ${ac_cv_prog_BISON+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  if test -n "$BISON"; then
8542  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547  IFS=$as_save_IFS
8548  test -z "$as_dir" && as_dir=.
8549    for ac_exec_ext in '' $ac_executable_extensions; do
8550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551    ac_cv_prog_BISON="$ac_prog"
8552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553    break 2
8554  fi
8555done
8556  done
8557IFS=$as_save_IFS
8558
8559fi
8560fi
8561BISON=$ac_cv_prog_BISON
8562if test -n "$BISON"; then
8563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8564$as_echo "$BISON" >&6; }
8565else
8566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
8568fi
8569
8570
8571  test -n "$BISON" && break
8572done
8573test -n "$BISON" || BISON="$MISSING bison"
8574
8575
8576# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8577# check for build == host before using them.
8578
8579# NM
8580if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8581  && test -d ../binutils ; then
8582  NM='${objdir}/../binutils/nm-new'
8583else
8584  # Extract the first word of "nm", so it can be a program name with args.
8585set dummy nm; ac_word=$2
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587$as_echo_n "checking for $ac_word... " >&6; }
8588if ${ac_cv_prog_NM+:} false; then :
8589  $as_echo_n "(cached) " >&6
8590else
8591  if test -n "$NM"; then
8592  ac_cv_prog_NM="$NM" # Let the user override the test.
8593else
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597  IFS=$as_save_IFS
8598  test -z "$as_dir" && as_dir=.
8599    for ac_exec_ext in '' $ac_executable_extensions; do
8600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601    ac_cv_prog_NM="nm"
8602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603    break 2
8604  fi
8605done
8606  done
8607IFS=$as_save_IFS
8608
8609  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8610fi
8611fi
8612NM=$ac_cv_prog_NM
8613if test -n "$NM"; then
8614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8615$as_echo "$NM" >&6; }
8616else
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621
8622fi
8623
8624# AR
8625if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8626  && test -d ../binutils ; then
8627  AR='${objdir}/../binutils/ar'
8628else
8629  # Extract the first word of "ar", so it can be a program name with args.
8630set dummy ar; ac_word=$2
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632$as_echo_n "checking for $ac_word... " >&6; }
8633if ${ac_cv_prog_AR+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  if test -n "$AR"; then
8637  ac_cv_prog_AR="$AR" # Let the user override the test.
8638else
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642  IFS=$as_save_IFS
8643  test -z "$as_dir" && as_dir=.
8644    for ac_exec_ext in '' $ac_executable_extensions; do
8645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646    ac_cv_prog_AR="ar"
8647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648    break 2
8649  fi
8650done
8651  done
8652IFS=$as_save_IFS
8653
8654  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8655fi
8656fi
8657AR=$ac_cv_prog_AR
8658if test -n "$AR"; then
8659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8660$as_echo "$AR" >&6; }
8661else
8662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663$as_echo "no" >&6; }
8664fi
8665
8666
8667fi
8668
8669# The jit documentation looks better if built with sphinx, but can be
8670# built with texinfo if sphinx is not available.
8671# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8672# Extract the first word of "sphinx-build", so it can be a program name with args.
8673set dummy sphinx-build; ac_word=$2
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675$as_echo_n "checking for $ac_word... " >&6; }
8676if ${ac_cv_prog_doc_build_sys+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  if test -n "$doc_build_sys"; then
8680  ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8681else
8682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683for as_dir in $PATH
8684do
8685  IFS=$as_save_IFS
8686  test -z "$as_dir" && as_dir=.
8687    for ac_exec_ext in '' $ac_executable_extensions; do
8688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8689    ac_cv_prog_doc_build_sys="sphinx"
8690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691    break 2
8692  fi
8693done
8694  done
8695IFS=$as_save_IFS
8696
8697  test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8698fi
8699fi
8700doc_build_sys=$ac_cv_prog_doc_build_sys
8701if test -n "$doc_build_sys"; then
8702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8703$as_echo "$doc_build_sys" >&6; }
8704else
8705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706$as_echo "no" >&6; }
8707fi
8708
8709
8710
8711# --------------------
8712# Checks for C headers
8713# --------------------
8714
8715# Need to reject headers which give warnings, so that the -Werror bootstrap
8716# works later. *sigh*  This needs to come before all header checks.
8717
8718ac_c_preproc_warn_flag=yes
8719
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8721$as_echo_n "checking for ANSI C header files... " >&6; }
8722if ${ac_cv_header_stdc+:} false; then :
8723  $as_echo_n "(cached) " >&6
8724else
8725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727#include <stdlib.h>
8728#include <stdarg.h>
8729#include <string.h>
8730#include <float.h>
8731
8732int
8733main ()
8734{
8735
8736  ;
8737  return 0;
8738}
8739_ACEOF
8740if ac_fn_cxx_try_compile "$LINENO"; then :
8741  ac_cv_header_stdc=yes
8742else
8743  ac_cv_header_stdc=no
8744fi
8745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746
8747if test $ac_cv_header_stdc = yes; then
8748  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750/* end confdefs.h.  */
8751#include <string.h>
8752
8753_ACEOF
8754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8755  $EGREP "memchr" >/dev/null 2>&1; then :
8756
8757else
8758  ac_cv_header_stdc=no
8759fi
8760rm -f conftest*
8761
8762fi
8763
8764if test $ac_cv_header_stdc = yes; then
8765  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h.  */
8768#include <stdlib.h>
8769
8770_ACEOF
8771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8772  $EGREP "free" >/dev/null 2>&1; then :
8773
8774else
8775  ac_cv_header_stdc=no
8776fi
8777rm -f conftest*
8778
8779fi
8780
8781if test $ac_cv_header_stdc = yes; then
8782  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8783  if test "$cross_compiling" = yes; then :
8784  :
8785else
8786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787/* end confdefs.h.  */
8788#include <ctype.h>
8789#include <stdlib.h>
8790#if ((' ' & 0x0FF) == 0x020)
8791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8793#else
8794# define ISLOWER(c) \
8795		   (('a' <= (c) && (c) <= 'i') \
8796		     || ('j' <= (c) && (c) <= 'r') \
8797		     || ('s' <= (c) && (c) <= 'z'))
8798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8799#endif
8800
8801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8802int
8803main ()
8804{
8805  int i;
8806  for (i = 0; i < 256; i++)
8807    if (XOR (islower (i), ISLOWER (i))
8808	|| toupper (i) != TOUPPER (i))
8809      return 2;
8810  return 0;
8811}
8812_ACEOF
8813if ac_fn_cxx_try_run "$LINENO"; then :
8814
8815else
8816  ac_cv_header_stdc=no
8817fi
8818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8819  conftest.$ac_objext conftest.beam conftest.$ac_ext
8820fi
8821
8822fi
8823fi
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8825$as_echo "$ac_cv_header_stdc" >&6; }
8826if test $ac_cv_header_stdc = yes; then
8827
8828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8829
8830fi
8831
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8833$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8834if ${ac_cv_header_time+:} false; then :
8835  $as_echo_n "(cached) " >&6
8836else
8837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838/* end confdefs.h.  */
8839#include <sys/types.h>
8840#include <sys/time.h>
8841#include <time.h>
8842
8843int
8844main ()
8845{
8846if ((struct tm *) 0)
8847return 0;
8848  ;
8849  return 0;
8850}
8851_ACEOF
8852if ac_fn_cxx_try_compile "$LINENO"; then :
8853  ac_cv_header_time=yes
8854else
8855  ac_cv_header_time=no
8856fi
8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8860$as_echo "$ac_cv_header_time" >&6; }
8861if test $ac_cv_header_time = yes; then
8862
8863$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8864
8865fi
8866
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8868$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8869if ${gcc_cv_header_string+:} false; then :
8870  $as_echo_n "(cached) " >&6
8871else
8872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873/* end confdefs.h.  */
8874#include <string.h>
8875#include <strings.h>
8876int
8877main ()
8878{
8879
8880  ;
8881  return 0;
8882}
8883_ACEOF
8884if ac_fn_cxx_try_compile "$LINENO"; then :
8885  gcc_cv_header_string=yes
8886else
8887  gcc_cv_header_string=no
8888fi
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890fi
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8892$as_echo "$gcc_cv_header_string" >&6; }
8893if test $gcc_cv_header_string = yes; then
8894
8895$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8896
8897fi
8898
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8900$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8901if ${ac_cv_header_sys_wait_h+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905/* end confdefs.h.  */
8906#include <sys/types.h>
8907#include <sys/wait.h>
8908#ifndef WEXITSTATUS
8909# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8910#endif
8911#ifndef WIFEXITED
8912# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8913#endif
8914
8915int
8916main ()
8917{
8918  int s;
8919  wait (&s);
8920  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8921  ;
8922  return 0;
8923}
8924_ACEOF
8925if ac_fn_cxx_try_compile "$LINENO"; then :
8926  ac_cv_header_sys_wait_h=yes
8927else
8928  ac_cv_header_sys_wait_h=no
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8933$as_echo "$ac_cv_header_sys_wait_h" >&6; }
8934if test $ac_cv_header_sys_wait_h = yes; then
8935
8936$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8937
8938fi
8939
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8941$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8942if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8943  $as_echo_n "(cached) " >&6
8944else
8945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946/* end confdefs.h.  */
8947#include <sys/types.h>
8948#include <termios.h>
8949#ifdef TIOCGWINSZ
8950  yes
8951#endif
8952
8953_ACEOF
8954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8955  $EGREP "yes" >/dev/null 2>&1; then :
8956  ac_cv_sys_tiocgwinsz_in_termios_h=yes
8957else
8958  ac_cv_sys_tiocgwinsz_in_termios_h=no
8959fi
8960rm -f conftest*
8961
8962fi
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8964$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8965
8966if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8968$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8969if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8970  $as_echo_n "(cached) " >&6
8971else
8972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973/* end confdefs.h.  */
8974#include <sys/types.h>
8975#include <sys/ioctl.h>
8976#ifdef TIOCGWINSZ
8977  yes
8978#endif
8979
8980_ACEOF
8981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8982  $EGREP "yes" >/dev/null 2>&1; then :
8983  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8984else
8985  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8986fi
8987rm -f conftest*
8988
8989fi
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8991$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8992
8993  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8994
8995$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8996
8997  fi
8998fi
8999
9000for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9001		 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9002		 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9003		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9004do :
9005  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9006ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9008  cat >>confdefs.h <<_ACEOF
9009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9010_ACEOF
9011
9012fi
9013done
9014
9015
9016# Check for thread headers.
9017ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9018if test "x$ac_cv_header_thread_h" = xyes; then :
9019  have_thread_h=yes
9020else
9021  have_thread_h=
9022fi
9023
9024ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9025if test "x$ac_cv_header_pthread_h" = xyes; then :
9026  have_pthread_h=yes
9027else
9028  have_pthread_h=
9029fi
9030
9031
9032# These tests can't be done till we know if we have limits.h.
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9034$as_echo_n "checking for CHAR_BIT... " >&6; }
9035if ${gcc_cv_decl_char_bit+:} false; then :
9036  $as_echo_n "(cached) " >&6
9037else
9038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039/* end confdefs.h.  */
9040#ifdef HAVE_LIMITS_H
9041#include <limits.h>
9042#endif
9043#ifdef CHAR_BIT
9044found
9045#endif
9046_ACEOF
9047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9048  $EGREP "found" >/dev/null 2>&1; then :
9049  gcc_cv_decl_char_bit=yes
9050else
9051  gcc_cv_decl_char_bit=no
9052fi
9053rm -f conftest*
9054
9055
9056fi
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9058$as_echo "$gcc_cv_decl_char_bit" >&6; }
9059if test $gcc_cv_decl_char_bit = no; then
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9061$as_echo_n "checking number of bits in a byte... " >&6; }
9062if ${gcc_cv_c_nbby+:} false; then :
9063  $as_echo_n "(cached) " >&6
9064else
9065  i=8
9066 gcc_cv_c_nbby=
9067 while test $i -lt 65; do
9068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069/* end confdefs.h.  */
9070
9071int
9072main ()
9073{
9074switch(0) {
9075  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9076  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9077  ; }
9078  ;
9079  return 0;
9080}
9081_ACEOF
9082if ac_fn_cxx_try_compile "$LINENO"; then :
9083  gcc_cv_c_nbby=$i; break
9084fi
9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086   i=`expr $i + 1`
9087 done
9088 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9089
9090fi
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9092$as_echo "$gcc_cv_c_nbby" >&6; }
9093if test $gcc_cv_c_nbby = failed; then
9094  as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9095else
9096
9097cat >>confdefs.h <<_ACEOF
9098#define CHAR_BIT $gcc_cv_c_nbby
9099_ACEOF
9100
9101fi
9102fi
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9104$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9105if ${ac_cv_c_bigendian+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  ac_cv_c_bigendian=unknown
9109    # See if we're dealing with a universal compiler.
9110    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h.  */
9112#ifndef __APPLE_CC__
9113	       not a universal capable compiler
9114	     #endif
9115	     typedef int dummy;
9116
9117_ACEOF
9118if ac_fn_cxx_try_compile "$LINENO"; then :
9119
9120	# Check for potential -arch flags.  It is not universal unless
9121	# there are at least two -arch flags with different values.
9122	ac_arch=
9123	ac_prev=
9124	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9125	 if test -n "$ac_prev"; then
9126	   case $ac_word in
9127	     i?86 | x86_64 | ppc | ppc64)
9128	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9129		 ac_arch=$ac_word
9130	       else
9131		 ac_cv_c_bigendian=universal
9132		 break
9133	       fi
9134	       ;;
9135	   esac
9136	   ac_prev=
9137	 elif test "x$ac_word" = "x-arch"; then
9138	   ac_prev=arch
9139	 fi
9140       done
9141fi
9142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143    if test $ac_cv_c_bigendian = unknown; then
9144      # See if sys/param.h defines the BYTE_ORDER macro.
9145      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h.  */
9147#include <sys/types.h>
9148	     #include <sys/param.h>
9149
9150int
9151main ()
9152{
9153#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9154		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9155		     && LITTLE_ENDIAN)
9156	      bogus endian macros
9157	     #endif
9158
9159  ;
9160  return 0;
9161}
9162_ACEOF
9163if ac_fn_cxx_try_compile "$LINENO"; then :
9164  # It does; now see whether it defined to BIG_ENDIAN or not.
9165	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166/* end confdefs.h.  */
9167#include <sys/types.h>
9168		#include <sys/param.h>
9169
9170int
9171main ()
9172{
9173#if BYTE_ORDER != BIG_ENDIAN
9174		 not big endian
9175		#endif
9176
9177  ;
9178  return 0;
9179}
9180_ACEOF
9181if ac_fn_cxx_try_compile "$LINENO"; then :
9182  ac_cv_c_bigendian=yes
9183else
9184  ac_cv_c_bigendian=no
9185fi
9186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187fi
9188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189    fi
9190    if test $ac_cv_c_bigendian = unknown; then
9191      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9192      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193/* end confdefs.h.  */
9194#include <limits.h>
9195
9196int
9197main ()
9198{
9199#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9200	      bogus endian macros
9201	     #endif
9202
9203  ;
9204  return 0;
9205}
9206_ACEOF
9207if ac_fn_cxx_try_compile "$LINENO"; then :
9208  # It does; now see whether it defined to _BIG_ENDIAN or not.
9209	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210/* end confdefs.h.  */
9211#include <limits.h>
9212
9213int
9214main ()
9215{
9216#ifndef _BIG_ENDIAN
9217		 not big endian
9218		#endif
9219
9220  ;
9221  return 0;
9222}
9223_ACEOF
9224if ac_fn_cxx_try_compile "$LINENO"; then :
9225  ac_cv_c_bigendian=yes
9226else
9227  ac_cv_c_bigendian=no
9228fi
9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230fi
9231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232    fi
9233    if test $ac_cv_c_bigendian = unknown; then
9234      # Compile a test program.
9235      if test "$cross_compiling" = yes; then :
9236  # Try to guess by grepping values from an object file.
9237	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238/* end confdefs.h.  */
9239short int ascii_mm[] =
9240		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9241		short int ascii_ii[] =
9242		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9243		int use_ascii (int i) {
9244		  return ascii_mm[i] + ascii_ii[i];
9245		}
9246		short int ebcdic_ii[] =
9247		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9248		short int ebcdic_mm[] =
9249		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9250		int use_ebcdic (int i) {
9251		  return ebcdic_mm[i] + ebcdic_ii[i];
9252		}
9253		extern int foo;
9254
9255int
9256main ()
9257{
9258return use_ascii (foo) == use_ebcdic (foo);
9259  ;
9260  return 0;
9261}
9262_ACEOF
9263if ac_fn_cxx_try_compile "$LINENO"; then :
9264  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9265	      ac_cv_c_bigendian=yes
9266	    fi
9267	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9268	      if test "$ac_cv_c_bigendian" = unknown; then
9269		ac_cv_c_bigendian=no
9270	      else
9271		# finding both strings is unlikely to happen, but who knows?
9272		ac_cv_c_bigendian=unknown
9273	      fi
9274	    fi
9275fi
9276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277else
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280$ac_includes_default
9281int
9282main ()
9283{
9284
9285	     /* Are we little or big endian?  From Harbison&Steele.  */
9286	     union
9287	     {
9288	       long int l;
9289	       char c[sizeof (long int)];
9290	     } u;
9291	     u.l = 1;
9292	     return u.c[sizeof (long int) - 1] == 1;
9293
9294  ;
9295  return 0;
9296}
9297_ACEOF
9298if ac_fn_cxx_try_run "$LINENO"; then :
9299  ac_cv_c_bigendian=no
9300else
9301  ac_cv_c_bigendian=yes
9302fi
9303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9304  conftest.$ac_objext conftest.beam conftest.$ac_ext
9305fi
9306
9307    fi
9308fi
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9310$as_echo "$ac_cv_c_bigendian" >&6; }
9311 case $ac_cv_c_bigendian in #(
9312   yes)
9313     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9314;; #(
9315   no)
9316      ;; #(
9317   universal)
9318
9319$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9320
9321     ;; #(
9322   *)
9323     as_fn_error $? "unknown endianness
9324 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9325 esac
9326
9327
9328# ----------------------
9329# Checks for C++ headers
9330# ----------------------
9331
9332ac_ext=cpp
9333ac_cpp='$CXXCPP $CPPFLAGS'
9334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9338$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9339if test -z "$CXXCPP"; then
9340  if ${ac_cv_prog_CXXCPP+:} false; then :
9341  $as_echo_n "(cached) " >&6
9342else
9343      # Double quotes because CXXCPP needs to be expanded
9344    for CXXCPP in "$CXX -E" "/lib/cpp"
9345    do
9346      ac_preproc_ok=false
9347for ac_cxx_preproc_warn_flag in '' yes
9348do
9349  # Use a header file that comes with gcc, so configuring glibc
9350  # with a fresh cross-compiler works.
9351  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9352  # <limits.h> exists even on freestanding compilers.
9353  # On the NeXT, cc -E runs the code through the compiler's parser,
9354  # not just through cpp. "Syntax error" is here to catch this case.
9355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356/* end confdefs.h.  */
9357#ifdef __STDC__
9358# include <limits.h>
9359#else
9360# include <assert.h>
9361#endif
9362		     Syntax error
9363_ACEOF
9364if ac_fn_cxx_try_cpp "$LINENO"; then :
9365
9366else
9367  # Broken: fails on valid input.
9368continue
9369fi
9370rm -f conftest.err conftest.i conftest.$ac_ext
9371
9372  # OK, works on sane cases.  Now check whether nonexistent headers
9373  # can be detected and how.
9374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375/* end confdefs.h.  */
9376#include <ac_nonexistent.h>
9377_ACEOF
9378if ac_fn_cxx_try_cpp "$LINENO"; then :
9379  # Broken: success on invalid input.
9380continue
9381else
9382  # Passes both tests.
9383ac_preproc_ok=:
9384break
9385fi
9386rm -f conftest.err conftest.i conftest.$ac_ext
9387
9388done
9389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9390rm -f conftest.i conftest.err conftest.$ac_ext
9391if $ac_preproc_ok; then :
9392  break
9393fi
9394
9395    done
9396    ac_cv_prog_CXXCPP=$CXXCPP
9397
9398fi
9399  CXXCPP=$ac_cv_prog_CXXCPP
9400else
9401  ac_cv_prog_CXXCPP=$CXXCPP
9402fi
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9404$as_echo "$CXXCPP" >&6; }
9405ac_preproc_ok=false
9406for ac_cxx_preproc_warn_flag in '' yes
9407do
9408  # Use a header file that comes with gcc, so configuring glibc
9409  # with a fresh cross-compiler works.
9410  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9411  # <limits.h> exists even on freestanding compilers.
9412  # On the NeXT, cc -E runs the code through the compiler's parser,
9413  # not just through cpp. "Syntax error" is here to catch this case.
9414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415/* end confdefs.h.  */
9416#ifdef __STDC__
9417# include <limits.h>
9418#else
9419# include <assert.h>
9420#endif
9421		     Syntax error
9422_ACEOF
9423if ac_fn_cxx_try_cpp "$LINENO"; then :
9424
9425else
9426  # Broken: fails on valid input.
9427continue
9428fi
9429rm -f conftest.err conftest.i conftest.$ac_ext
9430
9431  # OK, works on sane cases.  Now check whether nonexistent headers
9432  # can be detected and how.
9433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h.  */
9435#include <ac_nonexistent.h>
9436_ACEOF
9437if ac_fn_cxx_try_cpp "$LINENO"; then :
9438  # Broken: success on invalid input.
9439continue
9440else
9441  # Passes both tests.
9442ac_preproc_ok=:
9443break
9444fi
9445rm -f conftest.err conftest.i conftest.$ac_ext
9446
9447done
9448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9449rm -f conftest.i conftest.err conftest.$ac_ext
9450if $ac_preproc_ok; then :
9451
9452else
9453  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9456See \`config.log' for more details" >&5
9457$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9458See \`config.log' for more details" >&2;}; }
9459fi
9460
9461ac_ext=cpp
9462ac_cpp='$CXXCPP $CPPFLAGS'
9463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9466
9467
9468for ac_header in unordered_map
9469do :
9470  ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9471if test "x$ac_cv_header_unordered_map" = xyes; then :
9472  cat >>confdefs.h <<_ACEOF
9473#define HAVE_UNORDERED_MAP 1
9474_ACEOF
9475
9476fi
9477done
9478
9479for ac_header in tr1/unordered_map
9480do :
9481  ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9482if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9483  cat >>confdefs.h <<_ACEOF
9484#define HAVE_TR1_UNORDERED_MAP 1
9485_ACEOF
9486
9487fi
9488done
9489
9490for ac_header in ext/hash_map
9491do :
9492  ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9493if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9494  cat >>confdefs.h <<_ACEOF
9495#define HAVE_EXT_HASH_MAP 1
9496_ACEOF
9497
9498fi
9499done
9500
9501
9502# --------
9503# Dependency checking.
9504# --------
9505
9506rm -rf .tst 2>/dev/null
9507mkdir .tst 2>/dev/null
9508if test -d .tst; then
9509  am__leading_dot=.
9510else
9511  am__leading_dot=_
9512fi
9513rmdir .tst 2>/dev/null
9514
9515DEPDIR="${am__leading_dot}deps"
9516
9517ac_config_commands="$ac_config_commands depdir"
9518
9519
9520ac_config_commands="$ac_config_commands gccdepdir"
9521
9522
9523depcc="$CXX"  am_compiler_list=
9524
9525am_depcomp=$ac_aux_dir/depcomp
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9527$as_echo_n "checking dependency style of $depcc... " >&6; }
9528if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9529  $as_echo_n "(cached) " >&6
9530else
9531  if test -f "$am_depcomp"; then
9532  # We make a subdir and do the tests there.  Otherwise we can end up
9533  # making bogus files that we don't know about and never remove.  For
9534  # instance it was reported that on HP-UX the gcc test will end up
9535  # making a dummy file named `D' -- because `-MD' means `put the output
9536  # in D'.
9537  mkdir conftest.dir
9538  # Copy depcomp to subdir because otherwise we won't find it if we're
9539  # using a relative directory.
9540  cp "$am_depcomp" conftest.dir
9541  cd conftest.dir
9542  # We will build objects and dependencies in a subdirectory because
9543  # it helps to detect inapplicable dependency modes.  For instance
9544  # both Tru64's cc and ICC support -MD to output dependencies as a
9545  # side effect of compilation, but ICC will put the dependencies in
9546  # the current directory while Tru64 will put them in the object
9547  # directory.
9548  mkdir sub
9549
9550  am_cv_CXX_dependencies_compiler_type=none
9551  if test "$am_compiler_list" = ""; then
9552     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9553  fi
9554  for depmode in $am_compiler_list; do
9555    if test $depmode = none; then break; fi
9556
9557    $as_echo "$as_me:$LINENO: trying $depmode" >&5
9558    # Setup a source with many dependencies, because some compilers
9559    # like to wrap large dependency lists on column 80 (with \), and
9560    # we should not choose a depcomp mode which is confused by this.
9561    #
9562    # We need to recreate these files for each test, as the compiler may
9563    # overwrite some of them when testing with obscure command lines.
9564    # This happens at least with the AIX C compiler.
9565    : > sub/conftest.c
9566    for i in 1 2 3 4 5 6; do
9567      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9568      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9569      # Solaris 8's {/usr,}/bin/sh.
9570      touch sub/conftst$i.h
9571    done
9572    echo "include sub/conftest.Po" > confmf
9573
9574    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9575    # mode.  It turns out that the SunPro C++ compiler does not properly
9576    # handle `-M -o', and we need to detect this.
9577    depcmd="depmode=$depmode \
9578       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9579       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9580       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9581    echo "| $depcmd" | sed -e 's/  */ /g' >&5
9582    if env $depcmd > conftest.err 2>&1 &&
9583       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9584       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9585       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9586      # icc doesn't choke on unknown options, it will just issue warnings
9587      # or remarks (even with -Werror).  So we grep stderr for any message
9588      # that says an option was ignored or not supported.
9589      # When given -MP, icc 7.0 and 7.1 complain thusly:
9590      #   icc: Command line warning: ignoring option '-M'; no argument required
9591      # The diagnosis changed in icc 8.0:
9592      #   icc: Command line remark: option '-MP' not supported
9593      if (grep 'ignoring option' conftest.err ||
9594          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9595        am_cv_CXX_dependencies_compiler_type=$depmode
9596	$as_echo "$as_me:$LINENO: success" >&5
9597        break
9598      fi
9599    fi
9600    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9601    sed -e 's/^/| /' < conftest.err >&5
9602  done
9603
9604  cd ..
9605  rm -rf conftest.dir
9606else
9607  am_cv_CXX_dependencies_compiler_type=none
9608fi
9609
9610fi
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9612$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9613if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9614then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9615else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9616
9617fi
9618
9619
9620# --------
9621# UNSORTED
9622# --------
9623
9624
9625# These libraries may be used by collect2.
9626# We may need a special search path to get them linked.
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9628$as_echo_n "checking for collect2 libraries... " >&6; }
9629if ${gcc_cv_collect2_libs+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  save_LIBS="$LIBS"
9633for libs in '' -lld -lmld \
9634		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
9635		'-L/usr/lib/cmplrs/cc3.11 -lmld'
9636do
9637	LIBS="$libs"
9638	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640
9641/* Override any GCC internal prototype to avoid an error.
9642   Use char because int might match the return type of a GCC
9643   builtin and then its argument prototype would still apply.  */
9644#ifdef __cplusplus
9645extern "C"
9646#endif
9647char ldopen ();
9648int
9649main ()
9650{
9651return ldopen ();
9652  ;
9653  return 0;
9654}
9655_ACEOF
9656if ac_fn_cxx_try_link "$LINENO"; then :
9657  gcc_cv_collect2_libs="$libs"; break
9658fi
9659rm -f core conftest.err conftest.$ac_objext \
9660    conftest$ac_exeext conftest.$ac_ext
9661done
9662LIBS="$save_LIBS"
9663test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9664fi
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9666$as_echo "$gcc_cv_collect2_libs" >&6; }
9667case $gcc_cv_collect2_libs in
9668	"none required")	;;
9669	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9670esac
9671
9672
9673# When building Ada code on Alpha, we need exc_resume which is usually in
9674# -lexc.  So test for it.
9675save_LIBS="$LIBS"
9676LIBS=
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9678$as_echo_n "checking for library containing exc_resume... " >&6; }
9679if ${ac_cv_search_exc_resume+:} false; then :
9680  $as_echo_n "(cached) " >&6
9681else
9682  ac_func_search_save_LIBS=$LIBS
9683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h.  */
9685
9686/* Override any GCC internal prototype to avoid an error.
9687   Use char because int might match the return type of a GCC
9688   builtin and then its argument prototype would still apply.  */
9689#ifdef __cplusplus
9690extern "C"
9691#endif
9692char exc_resume ();
9693int
9694main ()
9695{
9696return exc_resume ();
9697  ;
9698  return 0;
9699}
9700_ACEOF
9701for ac_lib in '' exc; do
9702  if test -z "$ac_lib"; then
9703    ac_res="none required"
9704  else
9705    ac_res=-l$ac_lib
9706    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9707  fi
9708  if ac_fn_cxx_try_link "$LINENO"; then :
9709  ac_cv_search_exc_resume=$ac_res
9710fi
9711rm -f core conftest.err conftest.$ac_objext \
9712    conftest$ac_exeext
9713  if ${ac_cv_search_exc_resume+:} false; then :
9714  break
9715fi
9716done
9717if ${ac_cv_search_exc_resume+:} false; then :
9718
9719else
9720  ac_cv_search_exc_resume=no
9721fi
9722rm conftest.$ac_ext
9723LIBS=$ac_func_search_save_LIBS
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9726$as_echo "$ac_cv_search_exc_resume" >&6; }
9727ac_res=$ac_cv_search_exc_resume
9728if test "$ac_res" != no; then :
9729  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9730
9731fi
9732
9733GNAT_LIBEXC="$LIBS"
9734LIBS="$save_LIBS"
9735
9736
9737# To support -mcpu=native on Solaris/SPARC, we need libkstat.
9738save_LIBS="$LIBS"
9739LIBS=
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9741$as_echo_n "checking for library containing kstat_open... " >&6; }
9742if ${ac_cv_search_kstat_open+:} false; then :
9743  $as_echo_n "(cached) " >&6
9744else
9745  ac_func_search_save_LIBS=$LIBS
9746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h.  */
9748
9749/* Override any GCC internal prototype to avoid an error.
9750   Use char because int might match the return type of a GCC
9751   builtin and then its argument prototype would still apply.  */
9752#ifdef __cplusplus
9753extern "C"
9754#endif
9755char kstat_open ();
9756int
9757main ()
9758{
9759return kstat_open ();
9760  ;
9761  return 0;
9762}
9763_ACEOF
9764for ac_lib in '' kstat; do
9765  if test -z "$ac_lib"; then
9766    ac_res="none required"
9767  else
9768    ac_res=-l$ac_lib
9769    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9770  fi
9771  if ac_fn_cxx_try_link "$LINENO"; then :
9772  ac_cv_search_kstat_open=$ac_res
9773fi
9774rm -f core conftest.err conftest.$ac_objext \
9775    conftest$ac_exeext
9776  if ${ac_cv_search_kstat_open+:} false; then :
9777  break
9778fi
9779done
9780if ${ac_cv_search_kstat_open+:} false; then :
9781
9782else
9783  ac_cv_search_kstat_open=no
9784fi
9785rm conftest.$ac_ext
9786LIBS=$ac_func_search_save_LIBS
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9789$as_echo "$ac_cv_search_kstat_open" >&6; }
9790ac_res=$ac_cv_search_kstat_open
9791if test "$ac_res" != no; then :
9792  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9793
9794fi
9795
9796EXTRA_GCC_LIBS="$LIBS"
9797LIBS="$save_LIBS"
9798
9799
9800# Some systems put ldexp and frexp in libm instead of libc; assume
9801# they're both in the same place.  jcf-dump needs them.
9802save_LIBS="$LIBS"
9803LIBS=
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9805$as_echo_n "checking for library containing ldexp... " >&6; }
9806if ${ac_cv_search_ldexp+:} false; then :
9807  $as_echo_n "(cached) " >&6
9808else
9809  ac_func_search_save_LIBS=$LIBS
9810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h.  */
9812
9813/* Override any GCC internal prototype to avoid an error.
9814   Use char because int might match the return type of a GCC
9815   builtin and then its argument prototype would still apply.  */
9816#ifdef __cplusplus
9817extern "C"
9818#endif
9819char ldexp ();
9820int
9821main ()
9822{
9823return ldexp ();
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828for ac_lib in '' m; do
9829  if test -z "$ac_lib"; then
9830    ac_res="none required"
9831  else
9832    ac_res=-l$ac_lib
9833    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9834  fi
9835  if ac_fn_cxx_try_link "$LINENO"; then :
9836  ac_cv_search_ldexp=$ac_res
9837fi
9838rm -f core conftest.err conftest.$ac_objext \
9839    conftest$ac_exeext
9840  if ${ac_cv_search_ldexp+:} false; then :
9841  break
9842fi
9843done
9844if ${ac_cv_search_ldexp+:} false; then :
9845
9846else
9847  ac_cv_search_ldexp=no
9848fi
9849rm conftest.$ac_ext
9850LIBS=$ac_func_search_save_LIBS
9851fi
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9853$as_echo "$ac_cv_search_ldexp" >&6; }
9854ac_res=$ac_cv_search_ldexp
9855if test "$ac_res" != no; then :
9856  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9857
9858fi
9859
9860LDEXP_LIB="$LIBS"
9861LIBS="$save_LIBS"
9862
9863
9864# Some systems need dlopen
9865save_LIBS="$LIBS"
9866LIBS=
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9868$as_echo_n "checking for library containing dlopen... " >&6; }
9869if ${ac_cv_search_dlopen+:} false; then :
9870  $as_echo_n "(cached) " >&6
9871else
9872  ac_func_search_save_LIBS=$LIBS
9873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h.  */
9875
9876/* Override any GCC internal prototype to avoid an error.
9877   Use char because int might match the return type of a GCC
9878   builtin and then its argument prototype would still apply.  */
9879#ifdef __cplusplus
9880extern "C"
9881#endif
9882char dlopen ();
9883int
9884main ()
9885{
9886return dlopen ();
9887  ;
9888  return 0;
9889}
9890_ACEOF
9891for ac_lib in '' dl; do
9892  if test -z "$ac_lib"; then
9893    ac_res="none required"
9894  else
9895    ac_res=-l$ac_lib
9896    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9897  fi
9898  if ac_fn_cxx_try_link "$LINENO"; then :
9899  ac_cv_search_dlopen=$ac_res
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902    conftest$ac_exeext
9903  if ${ac_cv_search_dlopen+:} false; then :
9904  break
9905fi
9906done
9907if ${ac_cv_search_dlopen+:} false; then :
9908
9909else
9910  ac_cv_search_dlopen=no
9911fi
9912rm conftest.$ac_ext
9913LIBS=$ac_func_search_save_LIBS
9914fi
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9916$as_echo "$ac_cv_search_dlopen" >&6; }
9917ac_res=$ac_cv_search_dlopen
9918if test "$ac_res" != no; then :
9919  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9920
9921fi
9922
9923DL_LIB="$LIBS"
9924LIBS="$save_LIBS"
9925
9926
9927# Use <inttypes.h> only if it exists,
9928# doesn't clash with <sys/types.h>, declares intmax_t and defines
9929# PRId64
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9931$as_echo_n "checking for inttypes.h... " >&6; }
9932if ${gcc_cv_header_inttypes_h+:} false; then :
9933  $as_echo_n "(cached) " >&6
9934else
9935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937#define __STDC_FORMAT_MACROS
9938#include <sys/types.h>
9939#include <inttypes.h>
9940int
9941main ()
9942{
9943intmax_t i = -1;
9944#ifndef PRId64
9945choke me
9946#endif
9947  ;
9948  return 0;
9949}
9950_ACEOF
9951if ac_fn_cxx_try_compile "$LINENO"; then :
9952  gcc_cv_header_inttypes_h=yes
9953else
9954  gcc_cv_header_inttypes_h=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957fi
9958
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9960$as_echo "$gcc_cv_header_inttypes_h" >&6; }
9961if test $gcc_cv_header_inttypes_h = yes; then
9962
9963$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9964
9965fi
9966
9967# Look for the ZSTD package.
9968ZSTD_INCLUDE=
9969ZSTD_LIB=
9970
9971
9972ZSTD_CPPFLAGS=
9973ZSTD_LDFLAGS=
9974
9975# Check whether --with-zstd was given.
9976if test "${with_zstd+set}" = set; then :
9977  withval=$with_zstd;
9978fi
9979
9980
9981# Check whether --with-zstd-include was given.
9982if test "${with_zstd_include+set}" = set; then :
9983  withval=$with_zstd_include;
9984fi
9985
9986
9987# Check whether --with-zstd-lib was given.
9988if test "${with_zstd_lib+set}" = set; then :
9989  withval=$with_zstd_lib;
9990fi
9991
9992case "x$with_zstd" in
9993  x) ;;
9994  xno)
9995    ZSTD_INCLUDE=
9996    ZSTD_LIB=
9997    ;;
9998  *) ZSTD_INCLUDE=$with_zstd/include
9999     ZSTD_LIB=$with_zstd/lib
10000     ;;
10001esac
10002
10003if test "x$with_zstd" != xno; then
10004if test "x$with_zstd_include" != x; then
10005  ZSTD_INCLUDE=$with_zstd_include
10006fi
10007if test "x$with_zstd_lib" != x; then
10008  ZSTD_LIB=$with_zstd_lib
10009fi
10010if test "x$ZSTD_INCLUDE" != x \
10011   && test "x$ZSTD_INCLUDE" != xno; then
10012  ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10013fi
10014if test "x$ZSTD_LIB" != x \
10015   && test "x$ZSTD_LIB" != xno; then
10016  ZSTD_LDFLAGS=-L$ZSTD_LIB
10017fi
10018
10019CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10020LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10021
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10023$as_echo_n "checking for zstd.h... " >&6; }
10024if ${gcc_cv_header_zstd_h+:} false; then :
10025  $as_echo_n "(cached) " >&6
10026else
10027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028/* end confdefs.h.  */
10029#include <zstd.h>
10030int
10031main ()
10032{
10033
10034  ;
10035  return 0;
10036}
10037_ACEOF
10038if ac_fn_cxx_try_compile "$LINENO"; then :
10039  gcc_cv_header_zstd_h=yes
10040else
10041  gcc_cv_header_zstd_h=no
10042fi
10043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044fi
10045
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10047$as_echo "$gcc_cv_header_zstd_h" >&6; }
10048if test $gcc_cv_header_zstd_h = yes; then
10049
10050$as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10051
10052elif test "x$with_zstd" != x; then
10053    as_fn_error $? "Unable to find zstd.h.  See config.log for details." "$LINENO" 5
10054fi
10055
10056# LTO can use zstd compression algorithm
10057save_LIBS="$LIBS"
10058LIBS=
10059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10060$as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10061if ${ac_cv_search_ZSTD_compress+:} false; then :
10062  $as_echo_n "(cached) " >&6
10063else
10064  ac_func_search_save_LIBS=$LIBS
10065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h.  */
10067
10068/* Override any GCC internal prototype to avoid an error.
10069   Use char because int might match the return type of a GCC
10070   builtin and then its argument prototype would still apply.  */
10071#ifdef __cplusplus
10072extern "C"
10073#endif
10074char ZSTD_compress ();
10075int
10076main ()
10077{
10078return ZSTD_compress ();
10079  ;
10080  return 0;
10081}
10082_ACEOF
10083for ac_lib in '' zstd; do
10084  if test -z "$ac_lib"; then
10085    ac_res="none required"
10086  else
10087    ac_res=-l$ac_lib
10088    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10089  fi
10090  if ac_fn_cxx_try_link "$LINENO"; then :
10091  ac_cv_search_ZSTD_compress=$ac_res
10092fi
10093rm -f core conftest.err conftest.$ac_objext \
10094    conftest$ac_exeext
10095  if ${ac_cv_search_ZSTD_compress+:} false; then :
10096  break
10097fi
10098done
10099if ${ac_cv_search_ZSTD_compress+:} false; then :
10100
10101else
10102  ac_cv_search_ZSTD_compress=no
10103fi
10104rm conftest.$ac_ext
10105LIBS=$ac_func_search_save_LIBS
10106fi
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10108$as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10109ac_res=$ac_cv_search_ZSTD_compress
10110if test "$ac_res" != no; then :
10111  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10112
10113fi
10114
10115ZSTD_LIB="$LIBS"
10116LIBS="$save_LIBS"
10117
10118fi
10119
10120
10121
10122for ac_func in times clock kill getrlimit setrlimit atoq \
10123	popen sysconf strsignal getrusage nl_langinfo \
10124	gettimeofday mbstowcs wcswidth mmap setlocale \
10125	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 mallinfo
10126do :
10127  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10128ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10129if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10130  cat >>confdefs.h <<_ACEOF
10131#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10132_ACEOF
10133
10134fi
10135done
10136
10137
10138if test x$ac_cv_func_mbstowcs = xyes; then
10139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10140$as_echo_n "checking whether mbstowcs works... " >&6; }
10141if ${gcc_cv_func_mbstowcs_works+:} false; then :
10142  $as_echo_n "(cached) " >&6
10143else
10144      if test "$cross_compiling" = yes; then :
10145  gcc_cv_func_mbstowcs_works=yes
10146else
10147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148/* end confdefs.h.  */
10149#include <stdlib.h>
10150int main()
10151{
10152  mbstowcs(0, "", 0);
10153  return 0;
10154}
10155_ACEOF
10156if ac_fn_cxx_try_run "$LINENO"; then :
10157  gcc_cv_func_mbstowcs_works=yes
10158else
10159  gcc_cv_func_mbstowcs_works=no
10160fi
10161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10162  conftest.$ac_objext conftest.beam conftest.$ac_ext
10163fi
10164
10165fi
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10167$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10168  if test x$gcc_cv_func_mbstowcs_works = xyes; then
10169
10170$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10171
10172  fi
10173fi
10174
10175ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10176if test "x$ac_cv_type_ssize_t" = xyes; then :
10177
10178else
10179
10180cat >>confdefs.h <<_ACEOF
10181#define ssize_t int
10182_ACEOF
10183
10184fi
10185
10186ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10187if test "x$ac_cv_type_caddr_t" = xyes; then :
10188
10189else
10190
10191cat >>confdefs.h <<_ACEOF
10192#define caddr_t char *
10193_ACEOF
10194
10195fi
10196
10197
10198
10199ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10200if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10201  gcc_header_sys_mman_h=yes
10202else
10203  gcc_header_sys_mman_h=no
10204fi
10205
10206ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10207if test "x$ac_cv_func_mmap" = xyes; then :
10208  gcc_func_mmap=yes
10209else
10210  gcc_func_mmap=no
10211fi
10212
10213if test "$gcc_header_sys_mman_h" != yes \
10214 || test "$gcc_func_mmap" != yes; then
10215   gcc_cv_func_mmap_file=no
10216   gcc_cv_func_mmap_dev_zero=no
10217   gcc_cv_func_mmap_anon=no
10218else
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10220$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10221if ${gcc_cv_func_mmap_file+:} false; then :
10222  $as_echo_n "(cached) " >&6
10223else
10224  # Add a system to this blacklist if
10225   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10226   # memory area containing the same data that you'd get if you applied
10227   # read() to the same fd.  The only system known to have a problem here
10228   # is VMS, where text files have record structure.
10229   case "$host_os" in
10230     *vms* | ultrix*)
10231        gcc_cv_func_mmap_file=no ;;
10232     *)
10233        gcc_cv_func_mmap_file=yes;;
10234   esac
10235fi
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10237$as_echo "$gcc_cv_func_mmap_file" >&6; }
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10239$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10240if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10241  $as_echo_n "(cached) " >&6
10242else
10243  # Add a system to this blacklist if it has mmap() but /dev/zero
10244   # does not exist, or if mmapping /dev/zero does not give anonymous
10245   # zeroed pages with both the following properties:
10246   # 1. If you map N consecutive pages in with one call, and then
10247   #    unmap any subset of those pages, the pages that were not
10248   #    explicitly unmapped remain accessible.
10249   # 2. If you map two adjacent blocks of memory and then unmap them
10250   #    both at once, they must both go away.
10251   # Systems known to be in this category are Windows (all variants),
10252   # VMS, and Darwin.
10253   case "$host_os" in
10254     *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10255        gcc_cv_func_mmap_dev_zero=no ;;
10256     *)
10257        gcc_cv_func_mmap_dev_zero=yes;;
10258   esac
10259fi
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10261$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10262
10263   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10265$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10266if ${gcc_cv_decl_map_anon+:} false; then :
10267  $as_echo_n "(cached) " >&6
10268else
10269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270/* end confdefs.h.  */
10271#include <sys/types.h>
10272#include <sys/mman.h>
10273#include <unistd.h>
10274
10275#ifndef MAP_ANONYMOUS
10276#define MAP_ANONYMOUS MAP_ANON
10277#endif
10278
10279int
10280main ()
10281{
10282int n = MAP_ANONYMOUS;
10283  ;
10284  return 0;
10285}
10286_ACEOF
10287if ac_fn_cxx_try_compile "$LINENO"; then :
10288  gcc_cv_decl_map_anon=yes
10289else
10290  gcc_cv_decl_map_anon=no
10291fi
10292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293fi
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10295$as_echo "$gcc_cv_decl_map_anon" >&6; }
10296
10297   if test $gcc_cv_decl_map_anon = no; then
10298     gcc_cv_func_mmap_anon=no
10299   else
10300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10301$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10302if ${gcc_cv_func_mmap_anon+:} false; then :
10303  $as_echo_n "(cached) " >&6
10304else
10305  # Add a system to this blacklist if it has mmap() and MAP_ANON or
10306   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10307   # doesn't give anonymous zeroed pages with the same properties listed
10308   # above for use of /dev/zero.
10309   # Systems known to be in this category are Windows, VMS, and SCO Unix.
10310   case "$host_os" in
10311     *vms* | cygwin* | pe | mingw* | sco* | udk* )
10312        gcc_cv_func_mmap_anon=no ;;
10313     *)
10314        gcc_cv_func_mmap_anon=yes;;
10315   esac
10316fi
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10318$as_echo "$gcc_cv_func_mmap_anon" >&6; }
10319   fi
10320fi
10321
10322if test $gcc_cv_func_mmap_file = yes; then
10323
10324$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10325
10326fi
10327if test $gcc_cv_func_mmap_dev_zero = yes; then
10328
10329$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10330
10331fi
10332if test $gcc_cv_func_mmap_anon = yes; then
10333
10334$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10335
10336fi
10337
10338
10339case "${host}" in
10340*-*-*vms*)
10341  # Under VMS, vfork works very differently than on Unix. The standard test
10342  # won't work, and it isn't easily adaptable. It makes more sense to
10343  # just force it.
10344  ac_cv_func_vfork_works=yes
10345  ;;
10346esac
10347ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10348if test "x$ac_cv_type_pid_t" = xyes; then :
10349
10350else
10351
10352cat >>confdefs.h <<_ACEOF
10353#define pid_t int
10354_ACEOF
10355
10356fi
10357
10358for ac_header in vfork.h
10359do :
10360  ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10361if test "x$ac_cv_header_vfork_h" = xyes; then :
10362  cat >>confdefs.h <<_ACEOF
10363#define HAVE_VFORK_H 1
10364_ACEOF
10365
10366fi
10367done
10368
10369for ac_func in fork vfork
10370do :
10371  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10372ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10373if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10374  cat >>confdefs.h <<_ACEOF
10375#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10376_ACEOF
10377
10378fi
10379done
10380
10381if test "x$ac_cv_func_fork" = xyes; then
10382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10383$as_echo_n "checking for working fork... " >&6; }
10384if ${ac_cv_func_fork_works+:} false; then :
10385  $as_echo_n "(cached) " >&6
10386else
10387  if test "$cross_compiling" = yes; then :
10388  ac_cv_func_fork_works=cross
10389else
10390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391/* end confdefs.h.  */
10392$ac_includes_default
10393int
10394main ()
10395{
10396
10397	  /* By Ruediger Kuhlmann. */
10398	  return fork () < 0;
10399
10400  ;
10401  return 0;
10402}
10403_ACEOF
10404if ac_fn_cxx_try_run "$LINENO"; then :
10405  ac_cv_func_fork_works=yes
10406else
10407  ac_cv_func_fork_works=no
10408fi
10409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10410  conftest.$ac_objext conftest.beam conftest.$ac_ext
10411fi
10412
10413fi
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10415$as_echo "$ac_cv_func_fork_works" >&6; }
10416
10417else
10418  ac_cv_func_fork_works=$ac_cv_func_fork
10419fi
10420if test "x$ac_cv_func_fork_works" = xcross; then
10421  case $host in
10422    *-*-amigaos* | *-*-msdosdjgpp*)
10423      # Override, as these systems have only a dummy fork() stub
10424      ac_cv_func_fork_works=no
10425      ;;
10426    *)
10427      ac_cv_func_fork_works=yes
10428      ;;
10429  esac
10430  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10431$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10432fi
10433ac_cv_func_vfork_works=$ac_cv_func_vfork
10434if test "x$ac_cv_func_vfork" = xyes; then
10435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10436$as_echo_n "checking for working vfork... " >&6; }
10437if ${ac_cv_func_vfork_works+:} false; then :
10438  $as_echo_n "(cached) " >&6
10439else
10440  if test "$cross_compiling" = yes; then :
10441  ac_cv_func_vfork_works=cross
10442else
10443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444/* end confdefs.h.  */
10445/* Thanks to Paul Eggert for this test.  */
10446$ac_includes_default
10447#include <sys/wait.h>
10448#ifdef HAVE_VFORK_H
10449# include <vfork.h>
10450#endif
10451/* On some sparc systems, changes by the child to local and incoming
10452   argument registers are propagated back to the parent.  The compiler
10453   is told about this with #include <vfork.h>, but some compilers
10454   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10455   static variable whose address is put into a register that is
10456   clobbered by the vfork.  */
10457static void
10458#ifdef __cplusplus
10459sparc_address_test (int arg)
10460# else
10461sparc_address_test (arg) int arg;
10462#endif
10463{
10464  static pid_t child;
10465  if (!child) {
10466    child = vfork ();
10467    if (child < 0) {
10468      perror ("vfork");
10469      _exit(2);
10470    }
10471    if (!child) {
10472      arg = getpid();
10473      write(-1, "", 0);
10474      _exit (arg);
10475    }
10476  }
10477}
10478
10479int
10480main ()
10481{
10482  pid_t parent = getpid ();
10483  pid_t child;
10484
10485  sparc_address_test (0);
10486
10487  child = vfork ();
10488
10489  if (child == 0) {
10490    /* Here is another test for sparc vfork register problems.  This
10491       test uses lots of local variables, at least as many local
10492       variables as main has allocated so far including compiler
10493       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10494       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10495       reuse the register of parent for one of the local variables,
10496       since it will think that parent can't possibly be used any more
10497       in this routine.  Assigning to the local variable will thus
10498       munge parent in the parent process.  */
10499    pid_t
10500      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10501      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10502    /* Convince the compiler that p..p7 are live; otherwise, it might
10503       use the same hardware register for all 8 local variables.  */
10504    if (p != p1 || p != p2 || p != p3 || p != p4
10505	|| p != p5 || p != p6 || p != p7)
10506      _exit(1);
10507
10508    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10509       from child file descriptors.  If the child closes a descriptor
10510       before it execs or exits, this munges the parent's descriptor
10511       as well.  Test for this by closing stdout in the child.  */
10512    _exit(close(fileno(stdout)) != 0);
10513  } else {
10514    int status;
10515    struct stat st;
10516
10517    while (wait(&status) != child)
10518      ;
10519    return (
10520	 /* Was there some problem with vforking?  */
10521	 child < 0
10522
10523	 /* Did the child fail?  (This shouldn't happen.)  */
10524	 || status
10525
10526	 /* Did the vfork/compiler bug occur?  */
10527	 || parent != getpid()
10528
10529	 /* Did the file descriptor bug occur?  */
10530	 || fstat(fileno(stdout), &st) != 0
10531	 );
10532  }
10533}
10534_ACEOF
10535if ac_fn_cxx_try_run "$LINENO"; then :
10536  ac_cv_func_vfork_works=yes
10537else
10538  ac_cv_func_vfork_works=no
10539fi
10540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10541  conftest.$ac_objext conftest.beam conftest.$ac_ext
10542fi
10543
10544fi
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10546$as_echo "$ac_cv_func_vfork_works" >&6; }
10547
10548fi;
10549if test "x$ac_cv_func_fork_works" = xcross; then
10550  ac_cv_func_vfork_works=$ac_cv_func_vfork
10551  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10552$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10553fi
10554
10555if test "x$ac_cv_func_vfork_works" = xyes; then
10556
10557$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10558
10559else
10560
10561$as_echo "#define vfork fork" >>confdefs.h
10562
10563fi
10564if test "x$ac_cv_func_fork_works" = xyes; then
10565
10566$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10567
10568fi
10569
10570
10571
10572      if test "X$prefix" = "XNONE"; then
10573    acl_final_prefix="$ac_default_prefix"
10574  else
10575    acl_final_prefix="$prefix"
10576  fi
10577  if test "X$exec_prefix" = "XNONE"; then
10578    acl_final_exec_prefix='${prefix}'
10579  else
10580    acl_final_exec_prefix="$exec_prefix"
10581  fi
10582  acl_save_prefix="$prefix"
10583  prefix="$acl_final_prefix"
10584  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10585  prefix="$acl_save_prefix"
10586
10587
10588# Check whether --with-gnu-ld was given.
10589if test "${with_gnu_ld+set}" = set; then :
10590  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10591else
10592  with_gnu_ld=no
10593fi
10594
10595# Prepare PATH_SEPARATOR.
10596# The user is always right.
10597if test "${PATH_SEPARATOR+set}" != set; then
10598  echo "#! /bin/sh" >conf$$.sh
10599  echo  "exit 0"   >>conf$$.sh
10600  chmod +x conf$$.sh
10601  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10602    PATH_SEPARATOR=';'
10603  else
10604    PATH_SEPARATOR=:
10605  fi
10606  rm -f conf$$.sh
10607fi
10608ac_prog=ld
10609if test "$GCC" = yes; then
10610  # Check if gcc -print-prog-name=ld gives a path.
10611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10612$as_echo_n "checking for ld used by GCC... " >&6; }
10613  case $host in
10614  *-*-mingw*)
10615    # gcc leaves a trailing carriage return which upsets mingw
10616    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10617  *)
10618    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10619  esac
10620  case $ac_prog in
10621    # Accept absolute paths.
10622    [\\/]* | [A-Za-z]:[\\/]*)
10623      re_direlt='/[^/][^/]*/\.\./'
10624      # Canonicalize the path of ld
10625      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10626      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10627	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10628      done
10629      test -z "$LD" && LD="$ac_prog"
10630      ;;
10631  "")
10632    # If it fails, then pretend we aren't using GCC.
10633    ac_prog=ld
10634    ;;
10635  *)
10636    # If it is relative, then search for the first ld in PATH.
10637    with_gnu_ld=unknown
10638    ;;
10639  esac
10640elif test "$with_gnu_ld" = yes; then
10641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10642$as_echo_n "checking for GNU ld... " >&6; }
10643else
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10645$as_echo_n "checking for non-GNU ld... " >&6; }
10646fi
10647if ${acl_cv_path_LD+:} false; then :
10648  $as_echo_n "(cached) " >&6
10649else
10650  if test -z "$LD"; then
10651  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10652  for ac_dir in $PATH; do
10653    test -z "$ac_dir" && ac_dir=.
10654    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10655      acl_cv_path_LD="$ac_dir/$ac_prog"
10656      # Check to see if the program is GNU ld.  I'd rather use --version,
10657      # but apparently some GNU ld's only accept -v.
10658      # Break only if it was the GNU/non-GNU ld that we prefer.
10659      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10660	test "$with_gnu_ld" != no && break
10661      else
10662	test "$with_gnu_ld" != yes && break
10663      fi
10664    fi
10665  done
10666  IFS="$ac_save_ifs"
10667else
10668  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10669fi
10670fi
10671
10672LD="$acl_cv_path_LD"
10673if test -n "$LD"; then
10674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10675$as_echo "$LD" >&6; }
10676else
10677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678$as_echo "no" >&6; }
10679fi
10680test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10682$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10683if ${acl_cv_prog_gnu_ld+:} false; then :
10684  $as_echo_n "(cached) " >&6
10685else
10686  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10687if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10688  acl_cv_prog_gnu_ld=yes
10689else
10690  acl_cv_prog_gnu_ld=no
10691fi
10692fi
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10694$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10695with_gnu_ld=$acl_cv_prog_gnu_ld
10696
10697
10698
10699                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10700$as_echo_n "checking for shared library run path origin... " >&6; }
10701if ${acl_cv_rpath+:} false; then :
10702  $as_echo_n "(cached) " >&6
10703else
10704
10705    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10706    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10707    . ./conftest.sh
10708    rm -f ./conftest.sh
10709    acl_cv_rpath=done
10710
10711fi
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10713$as_echo "$acl_cv_rpath" >&6; }
10714  wl="$acl_cv_wl"
10715  libext="$acl_cv_libext"
10716  shlibext="$acl_cv_shlibext"
10717  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10718  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10719  hardcode_direct="$acl_cv_hardcode_direct"
10720  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10721    # Check whether --enable-rpath was given.
10722if test "${enable_rpath+set}" = set; then :
10723  enableval=$enable_rpath; :
10724else
10725  enable_rpath=yes
10726fi
10727
10728
10729
10730
10731
10732
10733
10734
10735    use_additional=yes
10736
10737  acl_save_prefix="$prefix"
10738  prefix="$acl_final_prefix"
10739  acl_save_exec_prefix="$exec_prefix"
10740  exec_prefix="$acl_final_exec_prefix"
10741
10742    eval additional_includedir=\"$includedir\"
10743    eval additional_libdir=\"$libdir\"
10744
10745  exec_prefix="$acl_save_exec_prefix"
10746  prefix="$acl_save_prefix"
10747
10748
10749# Check whether --with-libiconv-prefix was given.
10750if test "${with_libiconv_prefix+set}" = set; then :
10751  withval=$with_libiconv_prefix;
10752    if test "X$withval" = "Xno"; then
10753      use_additional=no
10754    else
10755      if test "X$withval" = "X"; then
10756
10757  acl_save_prefix="$prefix"
10758  prefix="$acl_final_prefix"
10759  acl_save_exec_prefix="$exec_prefix"
10760  exec_prefix="$acl_final_exec_prefix"
10761
10762          eval additional_includedir=\"$includedir\"
10763          eval additional_libdir=\"$libdir\"
10764
10765  exec_prefix="$acl_save_exec_prefix"
10766  prefix="$acl_save_prefix"
10767
10768      else
10769        additional_includedir="$withval/include"
10770        additional_libdir="$withval/lib"
10771      fi
10772    fi
10773
10774fi
10775
10776
10777# Check whether --with-libiconv-type was given.
10778if test "${with_libiconv_type+set}" = set; then :
10779  withval=$with_libiconv_type;  with_libiconv_type=$withval
10780else
10781   with_libiconv_type=auto
10782fi
10783
10784  lib_type=`eval echo \$with_libiconv_type`
10785
10786      LIBICONV=
10787  LTLIBICONV=
10788  INCICONV=
10789  rpathdirs=
10790  ltrpathdirs=
10791  names_already_handled=
10792  names_next_round='iconv '
10793  while test -n "$names_next_round"; do
10794    names_this_round="$names_next_round"
10795    names_next_round=
10796    for name in $names_this_round; do
10797      already_handled=
10798      for n in $names_already_handled; do
10799        if test "$n" = "$name"; then
10800          already_handled=yes
10801          break
10802        fi
10803      done
10804      if test -z "$already_handled"; then
10805        names_already_handled="$names_already_handled $name"
10806                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10807        eval value=\"\$HAVE_LIB$uppername\"
10808        if test -n "$value"; then
10809          if test "$value" = yes; then
10810            eval value=\"\$LIB$uppername\"
10811            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10812            eval value=\"\$LTLIB$uppername\"
10813            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10814          else
10815                                    :
10816          fi
10817        else
10818                              found_dir=
10819          found_la=
10820          found_so=
10821          found_a=
10822          if test $use_additional = yes; then
10823            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10824              found_dir="$additional_libdir"
10825              found_so="$additional_libdir/lib$name.$shlibext"
10826              if test -f "$additional_libdir/lib$name.la"; then
10827                found_la="$additional_libdir/lib$name.la"
10828              fi
10829            elif test x$lib_type != xshared; then
10830              if test -f "$additional_libdir/lib$name.$libext"; then
10831                found_dir="$additional_libdir"
10832                found_a="$additional_libdir/lib$name.$libext"
10833                if test -f "$additional_libdir/lib$name.la"; then
10834                  found_la="$additional_libdir/lib$name.la"
10835                fi
10836              fi
10837            fi
10838          fi
10839          if test "X$found_dir" = "X"; then
10840            for x in $LDFLAGS $LTLIBICONV; do
10841
10842  acl_save_prefix="$prefix"
10843  prefix="$acl_final_prefix"
10844  acl_save_exec_prefix="$exec_prefix"
10845  exec_prefix="$acl_final_exec_prefix"
10846  eval x=\"$x\"
10847  exec_prefix="$acl_save_exec_prefix"
10848  prefix="$acl_save_prefix"
10849
10850              case "$x" in
10851                -L*)
10852                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10853                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10854                    found_dir="$dir"
10855                    found_so="$dir/lib$name.$shlibext"
10856                    if test -f "$dir/lib$name.la"; then
10857                      found_la="$dir/lib$name.la"
10858                    fi
10859                  elif test x$lib_type != xshared; then
10860                    if test -f "$dir/lib$name.$libext"; then
10861                      found_dir="$dir"
10862                      found_a="$dir/lib$name.$libext"
10863                      if test -f "$dir/lib$name.la"; then
10864                        found_la="$dir/lib$name.la"
10865                      fi
10866                    fi
10867                  fi
10868                  ;;
10869              esac
10870              if test "X$found_dir" != "X"; then
10871                break
10872              fi
10873            done
10874          fi
10875          if test "X$found_dir" != "X"; then
10876                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10877            if test "X$found_so" != "X"; then
10878                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10879                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10880              else
10881                                                                                haveit=
10882                for x in $ltrpathdirs; do
10883                  if test "X$x" = "X$found_dir"; then
10884                    haveit=yes
10885                    break
10886                  fi
10887                done
10888                if test -z "$haveit"; then
10889                  ltrpathdirs="$ltrpathdirs $found_dir"
10890                fi
10891                                if test "$hardcode_direct" = yes; then
10892                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10893                else
10894                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10895                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10896                                                            haveit=
10897                    for x in $rpathdirs; do
10898                      if test "X$x" = "X$found_dir"; then
10899                        haveit=yes
10900                        break
10901                      fi
10902                    done
10903                    if test -z "$haveit"; then
10904                      rpathdirs="$rpathdirs $found_dir"
10905                    fi
10906                  else
10907                                                                                haveit=
10908                    for x in $LDFLAGS $LIBICONV; do
10909
10910  acl_save_prefix="$prefix"
10911  prefix="$acl_final_prefix"
10912  acl_save_exec_prefix="$exec_prefix"
10913  exec_prefix="$acl_final_exec_prefix"
10914  eval x=\"$x\"
10915  exec_prefix="$acl_save_exec_prefix"
10916  prefix="$acl_save_prefix"
10917
10918                      if test "X$x" = "X-L$found_dir"; then
10919                        haveit=yes
10920                        break
10921                      fi
10922                    done
10923                    if test -z "$haveit"; then
10924                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10925                    fi
10926                    if test "$hardcode_minus_L" != no; then
10927                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10928                    else
10929                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10930                    fi
10931                  fi
10932                fi
10933              fi
10934            else
10935              if test "X$found_a" != "X"; then
10936                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10937              else
10938                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10939              fi
10940            fi
10941                        additional_includedir=
10942            case "$found_dir" in
10943              */lib | */lib/)
10944                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10945                additional_includedir="$basedir/include"
10946                ;;
10947            esac
10948            if test "X$additional_includedir" != "X"; then
10949                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10950                haveit=
10951                if test "X$additional_includedir" = "X/usr/local/include"; then
10952                  if test -n "$GCC"; then
10953                    case $host_os in
10954                      linux*) haveit=yes;;
10955                    esac
10956                  fi
10957                fi
10958                if test -z "$haveit"; then
10959                  for x in $CPPFLAGS $INCICONV; do
10960
10961  acl_save_prefix="$prefix"
10962  prefix="$acl_final_prefix"
10963  acl_save_exec_prefix="$exec_prefix"
10964  exec_prefix="$acl_final_exec_prefix"
10965  eval x=\"$x\"
10966  exec_prefix="$acl_save_exec_prefix"
10967  prefix="$acl_save_prefix"
10968
10969                    if test "X$x" = "X-I$additional_includedir"; then
10970                      haveit=yes
10971                      break
10972                    fi
10973                  done
10974                  if test -z "$haveit"; then
10975                    if test -d "$additional_includedir"; then
10976                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10977                    fi
10978                  fi
10979                fi
10980              fi
10981            fi
10982                        if test -n "$found_la"; then
10983                                                        save_libdir="$libdir"
10984              case "$found_la" in
10985                */* | *\\*) . "$found_la" ;;
10986                *) . "./$found_la" ;;
10987              esac
10988              libdir="$save_libdir"
10989                            for dep in $dependency_libs; do
10990                case "$dep" in
10991                  -L*)
10992                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10993                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10994                      haveit=
10995                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10996                        if test -n "$GCC"; then
10997                          case $host_os in
10998                            linux*) haveit=yes;;
10999                          esac
11000                        fi
11001                      fi
11002                      if test -z "$haveit"; then
11003                        haveit=
11004                        for x in $LDFLAGS $LIBICONV; do
11005
11006  acl_save_prefix="$prefix"
11007  prefix="$acl_final_prefix"
11008  acl_save_exec_prefix="$exec_prefix"
11009  exec_prefix="$acl_final_exec_prefix"
11010  eval x=\"$x\"
11011  exec_prefix="$acl_save_exec_prefix"
11012  prefix="$acl_save_prefix"
11013
11014                          if test "X$x" = "X-L$additional_libdir"; then
11015                            haveit=yes
11016                            break
11017                          fi
11018                        done
11019                        if test -z "$haveit"; then
11020                          if test -d "$additional_libdir"; then
11021                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11022                          fi
11023                        fi
11024                        haveit=
11025                        for x in $LDFLAGS $LTLIBICONV; do
11026
11027  acl_save_prefix="$prefix"
11028  prefix="$acl_final_prefix"
11029  acl_save_exec_prefix="$exec_prefix"
11030  exec_prefix="$acl_final_exec_prefix"
11031  eval x=\"$x\"
11032  exec_prefix="$acl_save_exec_prefix"
11033  prefix="$acl_save_prefix"
11034
11035                          if test "X$x" = "X-L$additional_libdir"; then
11036                            haveit=yes
11037                            break
11038                          fi
11039                        done
11040                        if test -z "$haveit"; then
11041                          if test -d "$additional_libdir"; then
11042                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11043                          fi
11044                        fi
11045                      fi
11046                    fi
11047                    ;;
11048                  -R*)
11049                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11050                    if test "$enable_rpath" != no; then
11051                                                                  haveit=
11052                      for x in $rpathdirs; do
11053                        if test "X$x" = "X$dir"; then
11054                          haveit=yes
11055                          break
11056                        fi
11057                      done
11058                      if test -z "$haveit"; then
11059                        rpathdirs="$rpathdirs $dir"
11060                      fi
11061                                                                  haveit=
11062                      for x in $ltrpathdirs; do
11063                        if test "X$x" = "X$dir"; then
11064                          haveit=yes
11065                          break
11066                        fi
11067                      done
11068                      if test -z "$haveit"; then
11069                        ltrpathdirs="$ltrpathdirs $dir"
11070                      fi
11071                    fi
11072                    ;;
11073                  -l*)
11074                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11075                    ;;
11076                  *.la)
11077                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11078                    ;;
11079                  *)
11080                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11081                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11082                    ;;
11083                esac
11084              done
11085            fi
11086          else
11087                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11088              LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11089              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11090            else
11091              LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11092              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11093            fi
11094          fi
11095        fi
11096      fi
11097    done
11098  done
11099  if test "X$rpathdirs" != "X"; then
11100    if test -n "$hardcode_libdir_separator"; then
11101                        alldirs=
11102      for found_dir in $rpathdirs; do
11103        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11104      done
11105            acl_save_libdir="$libdir"
11106      libdir="$alldirs"
11107      eval flag=\"$hardcode_libdir_flag_spec\"
11108      libdir="$acl_save_libdir"
11109      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11110    else
11111            for found_dir in $rpathdirs; do
11112        acl_save_libdir="$libdir"
11113        libdir="$found_dir"
11114        eval flag=\"$hardcode_libdir_flag_spec\"
11115        libdir="$acl_save_libdir"
11116        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11117      done
11118    fi
11119  fi
11120  if test "X$ltrpathdirs" != "X"; then
11121            for found_dir in $ltrpathdirs; do
11122      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11123    done
11124  fi
11125
11126
11127
11128
11129
11130
11131
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11133$as_echo_n "checking for iconv... " >&6; }
11134if ${am_cv_func_iconv+:} false; then :
11135  $as_echo_n "(cached) " >&6
11136else
11137
11138    am_cv_func_iconv="no, consider installing GNU libiconv"
11139    am_cv_lib_iconv=no
11140                    am_save_CPPFLAGS="$CPPFLAGS"
11141    CPPFLAGS="$CPPFLAGS $INCICONV"
11142    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143/* end confdefs.h.  */
11144#include <stdlib.h>
11145#include <iconv.h>
11146int
11147main ()
11148{
11149iconv_t cd = iconv_open("","");
11150       iconv(cd,NULL,NULL,NULL,NULL);
11151       iconv_close(cd);
11152  ;
11153  return 0;
11154}
11155_ACEOF
11156if ac_fn_cxx_try_link "$LINENO"; then :
11157  am_cv_func_iconv=yes
11158fi
11159rm -f core conftest.err conftest.$ac_objext \
11160    conftest$ac_exeext conftest.$ac_ext
11161    CPPFLAGS="$am_save_CPPFLAGS"
11162
11163    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11164      for _libs in .libs _libs; do
11165        am_save_CPPFLAGS="$CPPFLAGS"
11166        am_save_LIBS="$LIBS"
11167        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11168        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11169        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170/* end confdefs.h.  */
11171#include <stdlib.h>
11172#include <iconv.h>
11173int
11174main ()
11175{
11176iconv_t cd = iconv_open("","");
11177           iconv(cd,NULL,NULL,NULL,NULL);
11178           iconv_close(cd);
11179  ;
11180  return 0;
11181}
11182_ACEOF
11183if ac_fn_cxx_try_link "$LINENO"; then :
11184  INCICONV="-I../libiconv/include"
11185          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11186          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11187          am_cv_lib_iconv=yes
11188          am_cv_func_iconv=yes
11189fi
11190rm -f core conftest.err conftest.$ac_objext \
11191    conftest$ac_exeext conftest.$ac_ext
11192        CPPFLAGS="$am_save_CPPFLAGS"
11193        LIBS="$am_save_LIBS"
11194        if test "$am_cv_func_iconv" = "yes"; then
11195          break
11196        fi
11197      done
11198    fi
11199
11200    if test "$am_cv_func_iconv" != yes; then
11201      am_save_CPPFLAGS="$CPPFLAGS"
11202      am_save_LIBS="$LIBS"
11203      CPPFLAGS="$CPPFLAGS $INCICONV"
11204      LIBS="$LIBS $LIBICONV"
11205      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206/* end confdefs.h.  */
11207#include <stdlib.h>
11208#include <iconv.h>
11209int
11210main ()
11211{
11212iconv_t cd = iconv_open("","");
11213         iconv(cd,NULL,NULL,NULL,NULL);
11214         iconv_close(cd);
11215  ;
11216  return 0;
11217}
11218_ACEOF
11219if ac_fn_cxx_try_link "$LINENO"; then :
11220  am_cv_lib_iconv=yes
11221        am_cv_func_iconv=yes
11222fi
11223rm -f core conftest.err conftest.$ac_objext \
11224    conftest$ac_exeext conftest.$ac_ext
11225      CPPFLAGS="$am_save_CPPFLAGS"
11226      LIBS="$am_save_LIBS"
11227    fi
11228
11229fi
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11231$as_echo "$am_cv_func_iconv" >&6; }
11232  if test "$am_cv_func_iconv" = yes; then
11233
11234$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11235
11236  fi
11237  if test "$am_cv_lib_iconv" = yes; then
11238
11239  for element in $INCICONV; do
11240    haveit=
11241    for x in $CPPFLAGS; do
11242
11243  acl_save_prefix="$prefix"
11244  prefix="$acl_final_prefix"
11245  acl_save_exec_prefix="$exec_prefix"
11246  exec_prefix="$acl_final_exec_prefix"
11247  eval x=\"$x\"
11248  exec_prefix="$acl_save_exec_prefix"
11249  prefix="$acl_save_prefix"
11250
11251      if test "X$x" = "X$element"; then
11252        haveit=yes
11253        break
11254      fi
11255    done
11256    if test -z "$haveit"; then
11257      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11258    fi
11259  done
11260
11261    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11262$as_echo_n "checking how to link with libiconv... " >&6; }
11263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11264$as_echo "$LIBICONV" >&6; }
11265  else
11266    LIBICONV=
11267    LTLIBICONV=
11268  fi
11269
11270
11271
11272  if test "$am_cv_func_iconv" = yes; then
11273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11274$as_echo_n "checking for iconv declaration... " >&6; }
11275    if ${am_cv_proto_iconv+:} false; then :
11276  $as_echo_n "(cached) " >&6
11277else
11278
11279      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280/* end confdefs.h.  */
11281
11282#include <stdlib.h>
11283#include <iconv.h>
11284extern
11285#ifdef __cplusplus
11286"C"
11287#endif
11288#if defined(__STDC__) || defined(__cplusplus)
11289size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11290#else
11291size_t iconv();
11292#endif
11293
11294int
11295main ()
11296{
11297
11298  ;
11299  return 0;
11300}
11301_ACEOF
11302if ac_fn_cxx_try_compile "$LINENO"; then :
11303  am_cv_proto_iconv_arg1=""
11304else
11305  am_cv_proto_iconv_arg1="const"
11306fi
11307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308      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);"
11309fi
11310
11311    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11313         }$am_cv_proto_iconv" >&5
11314$as_echo "${ac_t:-
11315         }$am_cv_proto_iconv" >&6; }
11316
11317cat >>confdefs.h <<_ACEOF
11318#define ICONV_CONST $am_cv_proto_iconv_arg1
11319_ACEOF
11320
11321  fi
11322
11323
11324# Until we have in-tree GNU iconv:
11325LIBICONV_DEP=
11326if test -f "$LTLIBICONV"; then
11327  LIBICONV_DEP=$LTLIBICONV
11328fi
11329
11330
11331
11332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11333$as_echo_n "checking for LC_MESSAGES... " >&6; }
11334if ${am_cv_val_LC_MESSAGES+:} false; then :
11335  $as_echo_n "(cached) " >&6
11336else
11337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338/* end confdefs.h.  */
11339#include <locale.h>
11340int
11341main ()
11342{
11343return LC_MESSAGES
11344  ;
11345  return 0;
11346}
11347_ACEOF
11348if ac_fn_cxx_try_link "$LINENO"; then :
11349  am_cv_val_LC_MESSAGES=yes
11350else
11351  am_cv_val_LC_MESSAGES=no
11352fi
11353rm -f core conftest.err conftest.$ac_objext \
11354    conftest$ac_exeext conftest.$ac_ext
11355fi
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11357$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11358  if test $am_cv_val_LC_MESSAGES = yes; then
11359
11360$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11361
11362  fi
11363
11364
11365
11366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11367$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11368if ${am_cv_langinfo_codeset+:} false; then :
11369  $as_echo_n "(cached) " >&6
11370else
11371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372/* end confdefs.h.  */
11373#include <langinfo.h>
11374int
11375main ()
11376{
11377char* cs = nl_langinfo(CODESET);
11378  ;
11379  return 0;
11380}
11381_ACEOF
11382if ac_fn_cxx_try_link "$LINENO"; then :
11383  am_cv_langinfo_codeset=yes
11384else
11385  am_cv_langinfo_codeset=no
11386fi
11387rm -f core conftest.err conftest.$ac_objext \
11388    conftest$ac_exeext conftest.$ac_ext
11389
11390fi
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11392$as_echo "$am_cv_langinfo_codeset" >&6; }
11393  if test $am_cv_langinfo_codeset = yes; then
11394
11395$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11396
11397  fi
11398
11399
11400# We will need to find libiberty.h and ansidecl.h
11401saved_CFLAGS="$CFLAGS"
11402CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11403saved_CXXFLAGS="$CXXFLAGS"
11404CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11405
11406# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11407# normal autoconf function for these.  But force definition of
11408# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11409# basename handling in libiberty.h.
11410as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11411ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11412#undef HAVE_DECL_BASENAME
11413#define HAVE_DECL_BASENAME 1
11414#include \"ansidecl.h\"
11415#include \"system.h\"
11416"
11417if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11418  ac_have_decl=1
11419else
11420  ac_have_decl=0
11421fi
11422
11423cat >>confdefs.h <<_ACEOF
11424#define HAVE_DECL_BASENAME $ac_have_decl
11425_ACEOF
11426as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11427ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11428#undef HAVE_DECL_BASENAME
11429#define HAVE_DECL_BASENAME 1
11430#include \"ansidecl.h\"
11431#include \"system.h\"
11432"
11433if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11434  ac_have_decl=1
11435else
11436  ac_have_decl=0
11437fi
11438
11439cat >>confdefs.h <<_ACEOF
11440#define HAVE_DECL_STRSTR $ac_have_decl
11441_ACEOF
11442
11443
11444for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11445	madvise stpcpy strnlen strsignal strverscmp \
11446	strtol strtoul strtoll strtoull setenv unsetenv \
11447	errno snprintf vsnprintf vasprintf malloc realloc calloc \
11448	free 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
11449do
11450  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11452$as_echo_n "checking whether $ac_func is declared... " >&6; }
11453if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11454  $as_echo_n "(cached) " >&6
11455else
11456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457/* end confdefs.h.  */
11458#undef $ac_tr_decl
11459#define $ac_tr_decl 1
11460
11461#include "ansidecl.h"
11462#include "system.h"
11463
11464int
11465main ()
11466{
11467#ifndef $ac_func
11468char *(*pfn) = (char *(*)) $ac_func ;
11469#endif
11470  ;
11471  return 0;
11472}
11473_ACEOF
11474if ac_fn_cxx_try_compile "$LINENO"; then :
11475  eval "gcc_cv_have_decl_$ac_func=yes"
11476else
11477  eval "gcc_cv_have_decl_$ac_func=no"
11478fi
11479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480fi
11481
11482if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11484$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11485#define $ac_tr_decl 1
11486_ACEOF
11487
11488else
11489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11491#define $ac_tr_decl 0
11492_ACEOF
11493
11494fi
11495
11496done
11497
11498
11499for ac_func in getrlimit setrlimit getrusage
11500do
11501  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11503$as_echo_n "checking whether $ac_func is declared... " >&6; }
11504if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11505  $as_echo_n "(cached) " >&6
11506else
11507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508/* end confdefs.h.  */
11509#undef $ac_tr_decl
11510#define $ac_tr_decl 1
11511
11512#include "ansidecl.h"
11513#include "system.h"
11514#ifdef HAVE_SYS_RESOURCE_H
11515#include <sys/resource.h>
11516#endif
11517
11518
11519int
11520main ()
11521{
11522#ifndef $ac_func
11523char *(*pfn) = (char *(*)) $ac_func ;
11524#endif
11525  ;
11526  return 0;
11527}
11528_ACEOF
11529if ac_fn_cxx_try_compile "$LINENO"; then :
11530  eval "gcc_cv_have_decl_$ac_func=yes"
11531else
11532  eval "gcc_cv_have_decl_$ac_func=no"
11533fi
11534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535fi
11536
11537if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11540#define $ac_tr_decl 1
11541_ACEOF
11542
11543else
11544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11546#define $ac_tr_decl 0
11547_ACEOF
11548
11549fi
11550
11551done
11552
11553
11554for ac_func in mallinfo
11555do
11556  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11558$as_echo_n "checking whether $ac_func is declared... " >&6; }
11559if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11560  $as_echo_n "(cached) " >&6
11561else
11562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563/* end confdefs.h.  */
11564#undef $ac_tr_decl
11565#define $ac_tr_decl 1
11566
11567#include "ansidecl.h"
11568#include "system.h"
11569#ifdef HAVE_MALLOC_H
11570#include <malloc.h>
11571#endif
11572
11573
11574int
11575main ()
11576{
11577#ifndef $ac_func
11578char *(*pfn) = (char *(*)) $ac_func ;
11579#endif
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584if ac_fn_cxx_try_compile "$LINENO"; then :
11585  eval "gcc_cv_have_decl_$ac_func=yes"
11586else
11587  eval "gcc_cv_have_decl_$ac_func=no"
11588fi
11589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590fi
11591
11592if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11594$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11595#define $ac_tr_decl 1
11596_ACEOF
11597
11598else
11599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11601#define $ac_tr_decl 0
11602_ACEOF
11603
11604fi
11605
11606done
11607
11608
11609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610/* end confdefs.h.  */
11611
11612#include "ansidecl.h"
11613#include "system.h"
11614#ifdef HAVE_SYS_RESOURCE_H
11615#include <sys/resource.h>
11616#endif
11617
11618int
11619main ()
11620{
11621rlim_t l = 0;
11622  ;
11623  return 0;
11624}
11625_ACEOF
11626if ac_fn_cxx_try_compile "$LINENO"; then :
11627
11628else
11629
11630$as_echo "#define rlim_t long" >>confdefs.h
11631
11632fi
11633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634
11635# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11636# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11637# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11638# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11639for ac_func in ldgetname
11640do
11641  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11643$as_echo_n "checking whether $ac_func is declared... " >&6; }
11644if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11645  $as_echo_n "(cached) " >&6
11646else
11647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648/* end confdefs.h.  */
11649#undef $ac_tr_decl
11650#define $ac_tr_decl 1
11651
11652#include "ansidecl.h"
11653#include "system.h"
11654#ifdef HAVE_LDFCN_H
11655#undef FREAD
11656#undef FWRITE
11657#include <ldfcn.h>
11658#endif
11659
11660
11661int
11662main ()
11663{
11664#ifndef $ac_func
11665char *(*pfn) = (char *(*)) $ac_func ;
11666#endif
11667  ;
11668  return 0;
11669}
11670_ACEOF
11671if ac_fn_cxx_try_compile "$LINENO"; then :
11672  eval "gcc_cv_have_decl_$ac_func=yes"
11673else
11674  eval "gcc_cv_have_decl_$ac_func=no"
11675fi
11676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11677fi
11678
11679if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11681$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11682#define $ac_tr_decl 1
11683_ACEOF
11684
11685else
11686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11688#define $ac_tr_decl 0
11689_ACEOF
11690
11691fi
11692
11693done
11694
11695
11696for ac_func in times
11697do
11698  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11700$as_echo_n "checking whether $ac_func is declared... " >&6; }
11701if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11702  $as_echo_n "(cached) " >&6
11703else
11704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705/* end confdefs.h.  */
11706#undef $ac_tr_decl
11707#define $ac_tr_decl 1
11708
11709#include "ansidecl.h"
11710#include "system.h"
11711#ifdef HAVE_SYS_TIMES_H
11712#include <sys/times.h>
11713#endif
11714
11715
11716int
11717main ()
11718{
11719#ifndef $ac_func
11720char *(*pfn) = (char *(*)) $ac_func ;
11721#endif
11722  ;
11723  return 0;
11724}
11725_ACEOF
11726if ac_fn_cxx_try_compile "$LINENO"; then :
11727  eval "gcc_cv_have_decl_$ac_func=yes"
11728else
11729  eval "gcc_cv_have_decl_$ac_func=no"
11730fi
11731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732fi
11733
11734if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11736$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11737#define $ac_tr_decl 1
11738_ACEOF
11739
11740else
11741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11743#define $ac_tr_decl 0
11744_ACEOF
11745
11746fi
11747
11748done
11749
11750
11751for ac_func in sigaltstack
11752do
11753  ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11755$as_echo_n "checking whether $ac_func is declared... " >&6; }
11756if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11757  $as_echo_n "(cached) " >&6
11758else
11759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760/* end confdefs.h.  */
11761#undef $ac_tr_decl
11762#define $ac_tr_decl 1
11763
11764#include "ansidecl.h"
11765#include "system.h"
11766#include <signal.h>
11767
11768
11769int
11770main ()
11771{
11772#ifndef $ac_func
11773char *(*pfn) = (char *(*)) $ac_func ;
11774#endif
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779if ac_fn_cxx_try_compile "$LINENO"; then :
11780  eval "gcc_cv_have_decl_$ac_func=yes"
11781else
11782  eval "gcc_cv_have_decl_$ac_func=no"
11783fi
11784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785fi
11786
11787if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11790#define $ac_tr_decl 1
11791_ACEOF
11792
11793else
11794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11796#define $ac_tr_decl 0
11797_ACEOF
11798
11799fi
11800
11801done
11802
11803
11804# More time-related stuff.
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11806$as_echo_n "checking for struct tms... " >&6; }
11807if ${ac_cv_struct_tms+:} false; then :
11808  $as_echo_n "(cached) " >&6
11809else
11810
11811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812/* end confdefs.h.  */
11813
11814#include "ansidecl.h"
11815#include "system.h"
11816#ifdef HAVE_SYS_TIMES_H
11817#include <sys/times.h>
11818#endif
11819
11820int
11821main ()
11822{
11823struct tms tms;
11824  ;
11825  return 0;
11826}
11827_ACEOF
11828if ac_fn_cxx_try_compile "$LINENO"; then :
11829  ac_cv_struct_tms=yes
11830else
11831  ac_cv_struct_tms=no
11832fi
11833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11834fi
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11836$as_echo "$ac_cv_struct_tms" >&6; }
11837if test $ac_cv_struct_tms = yes; then
11838
11839$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11840
11841fi
11842
11843# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11844# revisit after autoconf 2.50.
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11846$as_echo_n "checking for clock_t... " >&6; }
11847if ${gcc_cv_type_clock_t+:} false; then :
11848  $as_echo_n "(cached) " >&6
11849else
11850
11851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852/* end confdefs.h.  */
11853
11854#include "ansidecl.h"
11855#include "system.h"
11856
11857int
11858main ()
11859{
11860clock_t x;
11861  ;
11862  return 0;
11863}
11864_ACEOF
11865if ac_fn_cxx_try_compile "$LINENO"; then :
11866  gcc_cv_type_clock_t=yes
11867else
11868  gcc_cv_type_clock_t=no
11869fi
11870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871fi
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11873$as_echo "$gcc_cv_type_clock_t" >&6; }
11874if test $gcc_cv_type_clock_t = yes; then
11875
11876$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11877
11878fi
11879
11880# Check if F_SETLKW is supported by fcntl.
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11882$as_echo_n "checking for F_SETLKW... " >&6; }
11883if ${ac_cv_f_setlkw+:} false; then :
11884  $as_echo_n "(cached) " >&6
11885else
11886
11887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h.  */
11889
11890#include <fcntl.h>
11891int
11892main ()
11893{
11894
11895struct flock fl;
11896fl.l_whence = 0;
11897fl.l_start = 0;
11898fl.l_len = 0;
11899fl.l_pid = 0;
11900return fcntl (1, F_SETLKW, &fl);
11901  ;
11902  return 0;
11903}
11904_ACEOF
11905if ac_fn_cxx_try_compile "$LINENO"; then :
11906  ac_cv_f_setlkw=yes
11907else
11908  ac_cv_f_setlkw=no
11909fi
11910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911fi
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11913$as_echo "$ac_cv_f_setlkw" >&6; }
11914if test $ac_cv_f_setlkw = yes; then
11915
11916$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11917
11918fi
11919
11920# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11921CFLAGS="$saved_CFLAGS"
11922CXXFLAGS="$saved_CXXFLAGS"
11923
11924# mkdir takes a single argument on some systems.
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11926$as_echo_n "checking if mkdir takes one argument... " >&6; }
11927if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11928  $as_echo_n "(cached) " >&6
11929else
11930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h.  */
11932
11933#include <sys/types.h>
11934#ifdef HAVE_SYS_STAT_H
11935# include <sys/stat.h>
11936#endif
11937#ifdef HAVE_UNISTD_H
11938# include <unistd.h>
11939#endif
11940#ifdef HAVE_DIRECT_H
11941# include <direct.h>
11942#endif
11943int
11944main ()
11945{
11946mkdir ("foo", 0);
11947  ;
11948  return 0;
11949}
11950_ACEOF
11951if ac_fn_cxx_try_compile "$LINENO"; then :
11952  gcc_cv_mkdir_takes_one_arg=no
11953else
11954  gcc_cv_mkdir_takes_one_arg=yes
11955fi
11956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957fi
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11959$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11960if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11961
11962$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11963
11964fi
11965
11966
11967# File extensions
11968manext='.1'
11969objext='.o'
11970
11971
11972
11973# With Setjmp/Longjmp based exception handling.
11974# Check whether --enable-sjlj-exceptions was given.
11975if test "${enable_sjlj_exceptions+set}" = set; then :
11976  enableval=$enable_sjlj_exceptions; case $target in
11977  *-*-hpux10*)
11978    if test $enableval != yes; then
11979      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11980$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11981      enableval=yes
11982    fi
11983    ;;
11984esac
11985force_sjlj_exceptions=yes
11986else
11987  case $target in
11988  *-*-hpux10*)
11989    force_sjlj_exceptions=yes
11990    enableval=yes
11991    ;;
11992  lm32*-*-*)
11993     force_sjlj_exceptions=yes
11994     enableval=yes
11995     ;;
11996  *)
11997    force_sjlj_exceptions=no
11998    ;;
11999esac
12000fi
12001
12002if test $force_sjlj_exceptions = yes; then
12003  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12004
12005cat >>confdefs.h <<_ACEOF
12006#define CONFIG_SJLJ_EXCEPTIONS $sjlj
12007_ACEOF
12008
12009fi
12010
12011# --------------------------------------------------------
12012# Build, host, and target specific configuration fragments
12013# --------------------------------------------------------
12014
12015# Collect build-machine-specific information.
12016. ${srcdir}/config.build || exit 1
12017
12018# Collect host-machine-specific information.
12019. ${srcdir}/config.host || exit 1
12020
12021target_gtfiles=
12022
12023# Collect target-machine-specific information.
12024. ${srcdir}/config.gcc || exit 1
12025
12026extra_objs="${host_extra_objs} ${extra_objs}"
12027extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12028
12029# Default the target-machine variables that were not explicitly set.
12030if test x"$tm_file" = x
12031then tm_file=$cpu_type/$cpu_type.h; fi
12032
12033if test x"$extra_headers" = x
12034then extra_headers=; fi
12035
12036if test x$md_file = x
12037then md_file=$cpu_type/$cpu_type.md; fi
12038
12039if test x$out_file = x
12040then out_file=$cpu_type/$cpu_type.c; fi
12041
12042if test x"$tmake_file" = x
12043then tmake_file=$cpu_type/t-$cpu_type
12044fi
12045
12046# Support --enable-initfini-array.
12047if test x$enable_initfini_array != xno; then
12048  tm_file="${tm_file} initfini-array.h"
12049fi
12050
12051if test x"$dwarf2" = xyes
12052then tm_file="$tm_file tm-dwarf2.h"
12053fi
12054
12055# Say what files are being used for the output code and MD file.
12056echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12057echo "Using \`$srcdir/config/$md_file' as machine description file."
12058
12059# If any of the xm_file variables contain nonexistent files, warn
12060# about them and drop them.
12061
12062bx=
12063for x in $build_xm_file; do
12064  if    test -f $srcdir/config/$x
12065  then      bx="$bx $x"
12066  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12067$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12068  fi
12069done
12070build_xm_file="$bx"
12071
12072hx=
12073for x in $host_xm_file; do
12074  if    test -f $srcdir/config/$x
12075  then      hx="$hx $x"
12076  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12077$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12078  fi
12079done
12080host_xm_file="$hx"
12081
12082tx=
12083for x in $xm_file; do
12084  if    test -f $srcdir/config/$x
12085  then      tx="$tx $x"
12086  else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12087$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12088  fi
12089done
12090xm_file="$tx"
12091
12092count=a
12093for f in $tm_file; do
12094	count=${count}x
12095done
12096if test $count = ax; then
12097	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12098else
12099	echo "Using the following target machine macro files:"
12100	for f in $tm_file; do
12101		echo "	$srcdir/config/$f"
12102	done
12103fi
12104
12105if test x$use_long_long_for_widest_fast_int = xyes; then
12106
12107$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12108
12109fi
12110
12111gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12112
12113cat >>confdefs.h <<_ACEOF
12114#define HAVE_GNU_LD $gnu_ld_bool
12115_ACEOF
12116
12117
12118gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12119
12120cat >>confdefs.h <<_ACEOF
12121#define HAVE_GNU_AS $gnu_as_bool
12122_ACEOF
12123
12124
12125count=a
12126for f in $host_xm_file; do
12127	count=${count}x
12128done
12129if test $count = a; then
12130	:
12131elif test $count = ax; then
12132	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12133else
12134	echo "Using the following host machine macro files:"
12135	for f in $host_xm_file; do
12136		echo "	$srcdir/config/$f"
12137	done
12138fi
12139echo "Using ${out_host_hook_obj} for host machine hooks."
12140
12141if test "$host_xm_file" != "$build_xm_file"; then
12142	count=a
12143	for f in $build_xm_file; do
12144		count=${count}x
12145	done
12146	if test $count = a; then
12147		:
12148	elif test $count = ax; then
12149		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12150	else
12151		echo "Using the following build machine macro files:"
12152		for f in $build_xm_file; do
12153			echo "	$srcdir/config/$f"
12154		done
12155	fi
12156fi
12157
12158if test -n "$configured_native_system_header_dir"; then
12159  native_system_header_dir=$configured_native_system_header_dir
12160fi
12161NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12162
12163
12164case ${host} in
12165  powerpc*-*-darwin*)
12166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12167$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12168if ${gcc_cv_mcontext_underscores+:} false; then :
12169  $as_echo_n "(cached) " >&6
12170else
12171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172/* end confdefs.h.  */
12173
12174#include <sys/cdefs.h>
12175#include <sys/signal.h>
12176#include <ucontext.h>
12177int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12178
12179_ACEOF
12180if ac_fn_cxx_try_compile "$LINENO"; then :
12181  gcc_cv_mcontext_underscores=no
12182else
12183  gcc_cv_mcontext_underscores=yes
12184fi
12185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186fi
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12188$as_echo "$gcc_cv_mcontext_underscores" >&6; }
12189      if test $gcc_cv_mcontext_underscores = yes; then
12190
12191$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12192
12193      fi
12194    ;;
12195esac
12196
12197# ---------
12198# Threading
12199# ---------
12200
12201# Check if a valid thread package
12202case ${enable_threads} in
12203  "" | no)
12204    # No threads
12205    target_thread_file='single'
12206    ;;
12207  yes)
12208    # default
12209    target_thread_file='single'
12210    ;;
12211  aix | dce | lynx | mipssde | posix | rtems | \
12212  single | tpf | vxworks | win32)
12213    target_thread_file=${enable_threads}
12214    ;;
12215  *)
12216    echo "${enable_threads} is an unknown thread package" 1>&2
12217    exit 1
12218    ;;
12219esac
12220
12221if test x${thread_file} = x; then
12222  # No thread file set by target-specific clauses in config.gcc,
12223  # so use file chosen by default logic above
12224  thread_file=${target_thread_file}
12225fi
12226
12227# --------
12228# UNSORTED
12229# --------
12230
12231use_cxa_atexit=no
12232if test x$enable___cxa_atexit = xyes || \
12233   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12234  if test x$host = x$target; then
12235    case $host in
12236      # mingw32 doesn't have __cxa_atexit but uses atexit registration
12237      # keyed to flag_use_cxa_atexit
12238      *-*-mingw32*)
12239	use_cxa_atexit=yes
12240	;;
12241      powerpc-ibm-aix*)
12242	use_cxa_atexit=yes
12243	;;
12244      *)
12245	ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12246if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12247  use_cxa_atexit=yes
12248else
12249  echo "__cxa_atexit can't be enabled on this target"
12250fi
12251
12252	;;
12253    esac
12254  else
12255    # We can't check for __cxa_atexit when building a cross, so assume
12256    # it is available
12257    use_cxa_atexit=yes
12258  fi
12259  if test x$use_cxa_atexit = xyes; then
12260
12261$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12262
12263  fi
12264fi
12265
12266# Look for a file containing extra machine modes.
12267if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12268  extra_modes_file='$(srcdir)'/config/${extra_modes}
12269
12270
12271cat >>confdefs.h <<_ACEOF
12272#define EXTRA_MODES_FILE "config/$extra_modes"
12273_ACEOF
12274
12275fi
12276
12277# Convert extra_options into a form suitable for Makefile use.
12278extra_opt_files=
12279all_opt_files=
12280for f in $extra_options; do
12281  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12282  all_opt_files="$all_opt_files $srcdir/config/$f"
12283done
12284
12285
12286# auto-host.h is the file containing items generated by autoconf and is
12287# the first file included by config.h.
12288# If host=build, it is correct to have bconfig include auto-host.h
12289# as well.  If host!=build, we are in error and need to do more
12290# work to find out the build config parameters.
12291if test x$host = x$build
12292then
12293	build_auto=auto-host.h
12294	HAVE_AUTO_BUILD='# '
12295else
12296	# We create a subdir, then run autoconf in the subdir.
12297	# To prevent recursion we set host and build for the new
12298	# invocation of configure to the build for this invocation
12299	# of configure.
12300	tempdir=build.$$
12301	rm -rf $tempdir
12302	mkdir $tempdir
12303	cd $tempdir
12304	case ${srcdir} in
12305	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12306	*) realsrcdir=../${srcdir};;
12307	esac
12308	# Clearing GMPINC is necessary to prevent host headers being
12309	# used by the build compiler.  Defining GENERATOR_FILE stops
12310	# system.h from including gmp.h.
12311	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12312	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12313	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12314	GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12315	${realsrcdir}/configure \
12316		--enable-languages=${enable_languages-all} \
12317		${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12318		${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12319		--target=$target_alias --host=$build_alias \
12320		--build=$build_alias || exit # retaining $tempdir
12321
12322	# We just finished tests for the build machine, so rename
12323	# the file auto-build.h in the gcc directory.
12324	mv auto-host.h ../auto-build.h
12325	cd ..
12326	rm -rf $tempdir
12327	build_auto=auto-build.h
12328	HAVE_AUTO_BUILD=
12329fi
12330
12331
12332
12333tm_file="${tm_file} defaults.h"
12334tm_p_file="${tm_p_file} tm-preds.h"
12335tm_d_file="${tm_d_file} defaults.h"
12336host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12337build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12338# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12339# put this back in temporarily.
12340xm_file="auto-host.h ansidecl.h ${xm_file}"
12341
12342# --------
12343# UNSORTED
12344# --------
12345
12346# Compile in configure arguments.
12347if test -f configargs.h ; then
12348	# Being re-configured.
12349	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12350	gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12351	if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12352		gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12353	fi
12354else
12355	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12356fi
12357
12358# Double all backslashes and backslash all quotes to turn
12359# gcc_config_arguments into a C string.
12360sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12361$gcc_config_arguments
12362EOF
12363gcc_config_arguments_str=`cat conftest.out`
12364rm -f conftest.out
12365
12366cat > configargs.h <<EOF
12367/* Generated automatically. */
12368static const char configuration_arguments[] = "$gcc_config_arguments_str";
12369static const char thread_model[] = "$thread_file";
12370
12371static const struct {
12372  const char *name, *value;
12373} configure_default_options[] = $configure_default_options;
12374EOF
12375
12376gcc_BASEVER=`cat $srcdir/BASE-VER`
12377gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12378gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12379if test -f $srcdir/REVISION ; then
12380	gcc_REVISION=`cat $srcdir/REVISION`
12381else
12382        gcc_REVISION=""
12383fi
12384cat > plugin-version.h <<EOF
12385#include "configargs.h"
12386
12387#define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12388#define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12389#define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12390#define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12391
12392static char basever[] = "$gcc_BASEVER";
12393static char datestamp[] = "$gcc_DATESTAMP";
12394static char devphase[] = "$gcc_DEVPHASE";
12395static char revision[] = "$gcc_REVISION";
12396
12397/* FIXME plugins: We should make the version information more precise.
12398   One way to do is to add a checksum. */
12399
12400static struct plugin_gcc_version gcc_version = {basever, datestamp,
12401						devphase, revision,
12402						configuration_arguments};
12403EOF
12404
12405# Determine what GCC version number to use in filesystem paths.
12406
12407  get_gcc_base_ver="cat"
12408
12409# Check whether --with-gcc-major-version-only was given.
12410if test "${with_gcc_major_version_only+set}" = set; then :
12411  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12412        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12413      fi
12414
12415fi
12416
12417
12418
12419
12420# Internationalization
12421# If we haven't got the data from the intl directory,
12422# assume NLS is disabled.
12423USE_NLS=no
12424LIBINTL=
12425LIBINTL_DEP=
12426INCINTL=
12427XGETTEXT=
12428GMSGFMT=
12429POSUB=
12430
12431if test -f  ../intl/config.intl; then
12432  .  ../intl/config.intl
12433fi
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12435$as_echo_n "checking whether NLS is requested... " >&6; }
12436if test x"$USE_NLS" != xyes; then
12437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438$as_echo "no" >&6; }
12439else
12440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441$as_echo "yes" >&6; }
12442
12443$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12444
12445
12446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12447$as_echo_n "checking for catalogs to be installed... " >&6; }
12448  # Look for .po and .gmo files in the source directory.
12449  CATALOGS=
12450  XLINGUAS=
12451  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12452    # If there aren't any .gmo files the shell will give us the
12453    # literal string "../path/to/srcdir/po/*.gmo" which has to be
12454    # weeded out.
12455    case "$cat" in *\**)
12456      continue;;
12457    esac
12458    # The quadruple backslash is collapsed to a double backslash
12459    # by the backticks, then collapsed again by the double quotes,
12460    # leaving us with one backslash in the sed expression (right
12461    # before the dot that mustn't act as a wildcard).
12462    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12463    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12464    # The user is allowed to set LINGUAS to a list of languages to
12465    # install catalogs for.  If it's empty that means "all of them."
12466    if test "x$LINGUAS" = x; then
12467      CATALOGS="$CATALOGS $cat"
12468      XLINGUAS="$XLINGUAS $lang"
12469    else
12470      case "$LINGUAS" in *$lang*)
12471        CATALOGS="$CATALOGS $cat"
12472        XLINGUAS="$XLINGUAS $lang"
12473        ;;
12474      esac
12475    fi
12476  done
12477  LINGUAS="$XLINGUAS"
12478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12479$as_echo "$LINGUAS" >&6; }
12480
12481
12482    DATADIRNAME=share
12483
12484  INSTOBJEXT=.mo
12485
12486  GENCAT=gencat
12487
12488  CATOBJEXT=.gmo
12489
12490fi
12491
12492# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12493# -liconv on the link line twice.
12494case "$LIBINTL" in *$LIBICONV*)
12495	LIBICONV= ;;
12496esac
12497
12498# Check whether --enable-secureplt was given.
12499if test "${enable_secureplt+set}" = set; then :
12500  enableval=$enable_secureplt;
12501fi
12502
12503
12504# Check whether --enable-mingw-wildcard was given.
12505if test "${enable_mingw_wildcard+set}" = set; then :
12506  enableval=$enable_mingw_wildcard;
12507else
12508  enable_mingw_wildcard=platform
12509fi
12510
12511if test x"$enable_mingw_wildcard" != xplatform ; then :
12512
12513cat >>confdefs.h <<_ACEOF
12514#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12515_ACEOF
12516
12517fi
12518
12519# Check whether --enable-large-address-aware was given.
12520if test "${enable_large_address_aware+set}" = set; then :
12521  enableval=$enable_large_address_aware;
12522fi
12523
12524if test x"$enable_large_address_aware" = xyes; then :
12525
12526$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12527
12528fi
12529
12530# Check whether --enable-leading-mingw64-underscores was given.
12531if test "${enable_leading_mingw64_underscores+set}" = set; then :
12532  enableval=$enable_leading_mingw64_underscores;
12533fi
12534
12535if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12536
12537$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12538
12539fi
12540
12541# Check whether --enable-cld was given.
12542if test "${enable_cld+set}" = set; then :
12543  enableval=$enable_cld;
12544else
12545  enable_cld=no
12546fi
12547
12548
12549# Check whether --enable-frame-pointer was given.
12550if test "${enable_frame_pointer+set}" = set; then :
12551  enableval=$enable_frame_pointer;
12552else
12553
12554case $target_os in
12555linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12556  # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12557  enable_frame_pointer=no
12558  ;;
12559*)
12560  enable_frame_pointer=yes
12561  ;;
12562esac
12563
12564fi
12565
12566
12567case $target in
12568i[34567]86-*-* | x86_64-*-*)
12569	if test "x$enable_cld" = xyes; then
12570		tm_defines="${tm_defines} USE_IX86_CLD=1"
12571	fi
12572	if test "x$enable_frame_pointer" = xyes; then
12573		tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12574	fi
12575	;;
12576esac
12577
12578# Windows32 Registry support for specifying GCC installation paths.
12579# Check whether --enable-win32-registry was given.
12580if test "${enable_win32_registry+set}" = set; then :
12581  enableval=$enable_win32_registry;
12582fi
12583
12584
12585case $host_os in
12586  win32 | pe | cygwin* | mingw32*)
12587    if test "x$enable_win32_registry" != xno; then
12588      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12589$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12590if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12591  $as_echo_n "(cached) " >&6
12592else
12593  ac_func_search_save_LIBS=$LIBS
12594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595/* end confdefs.h.  */
12596
12597/* Override any GCC internal prototype to avoid an error.
12598   Use char because int might match the return type of a GCC
12599   builtin and then its argument prototype would still apply.  */
12600#ifdef __cplusplus
12601extern "C"
12602#endif
12603char RegOpenKeyExA ();
12604int
12605main ()
12606{
12607return RegOpenKeyExA ();
12608  ;
12609  return 0;
12610}
12611_ACEOF
12612for ac_lib in '' advapi32; do
12613  if test -z "$ac_lib"; then
12614    ac_res="none required"
12615  else
12616    ac_res=-l$ac_lib
12617    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12618  fi
12619  if ac_fn_cxx_try_link "$LINENO"; then :
12620  ac_cv_search_RegOpenKeyExA=$ac_res
12621fi
12622rm -f core conftest.err conftest.$ac_objext \
12623    conftest$ac_exeext
12624  if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12625  break
12626fi
12627done
12628if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12629
12630else
12631  ac_cv_search_RegOpenKeyExA=no
12632fi
12633rm conftest.$ac_ext
12634LIBS=$ac_func_search_save_LIBS
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12637$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12638ac_res=$ac_cv_search_RegOpenKeyExA
12639if test "$ac_res" != no; then :
12640  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12641
12642else
12643  enable_win32_registry=no
12644fi
12645
12646    fi
12647
12648    if test "x$enable_win32_registry" != xno; then
12649
12650$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12651
12652
12653      if test "x$enable_win32_registry" != xyes \
12654         && test "x$enable_win32_registry" != x; then
12655
12656cat >>confdefs.h <<_ACEOF
12657#define WIN32_REGISTRY_KEY "$enable_win32_registry"
12658_ACEOF
12659
12660      fi
12661    fi
12662  ;;
12663esac
12664
12665# Get an absolute path to the GCC top-level source directory
12666holddir=`${PWDCMD-pwd}`
12667cd $srcdir
12668topdir=`${PWDCMD-pwd}`
12669cd $holddir
12670
12671# Conditionalize the makefile for this host machine.
12672xmake_file=
12673for f in ${host_xmake_file}
12674do
12675	if test -f ${srcdir}/config/$f
12676	then
12677		xmake_file="${xmake_file} \$(srcdir)/config/$f"
12678	fi
12679done
12680
12681# Conditionalize the makefile for this target machine.
12682tmake_file_=
12683for f in ${tmake_file}
12684do
12685	if test -f ${srcdir}/config/$f
12686	then
12687		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12688	fi
12689done
12690tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12691
12692out_object_file=`basename $out_file .c`.o
12693common_out_object_file=`basename $common_out_file .c`.o
12694
12695tm_file_list="options.h"
12696tm_include_list="options.h insn-constants.h"
12697for f in $tm_file; do
12698  case $f in
12699    ./* )
12700       f=`echo $f | sed 's/^..//'`
12701       tm_file_list="${tm_file_list} $f"
12702       tm_include_list="${tm_include_list} $f"
12703       ;;
12704    defaults.h )
12705       tm_file_list="${tm_file_list} \$(srcdir)/$f"
12706       tm_include_list="${tm_include_list} $f"
12707       ;;
12708    * )
12709       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12710       tm_include_list="${tm_include_list} config/$f"
12711       ;;
12712  esac
12713done
12714
12715tm_p_file_list=
12716tm_p_include_list=
12717for f in $tm_p_file; do
12718  case $f in
12719    tm-preds.h )
12720       tm_p_file_list="${tm_p_file_list} $f"
12721       tm_p_include_list="${tm_p_include_list} $f"
12722       ;;
12723    * )
12724       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12725       tm_p_include_list="${tm_p_include_list} config/$f"
12726  esac
12727done
12728
12729tm_d_file_list=
12730tm_d_include_list="options.h insn-constants.h"
12731for f in $tm_d_file; do
12732  case $f in
12733    defaults.h )
12734       tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12735       tm_d_include_list="${tm_d_include_list} $f"
12736       ;;
12737    * )
12738       tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12739       tm_d_include_list="${tm_d_include_list} config/$f"
12740       ;;
12741  esac
12742done
12743
12744xm_file_list=
12745xm_include_list=
12746for f in $xm_file; do
12747  case $f in
12748    ansidecl.h )
12749       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12750       xm_include_list="${xm_include_list} $f"
12751       ;;
12752    auto-host.h )
12753       xm_file_list="${xm_file_list} $f"
12754       xm_include_list="${xm_include_list} $f"
12755       ;;
12756    * )
12757       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12758       xm_include_list="${xm_include_list} config/$f"
12759       ;;
12760  esac
12761done
12762
12763host_xm_file_list=
12764host_xm_include_list=
12765for f in $host_xm_file; do
12766  case $f in
12767    ansidecl.h )
12768       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12769       host_xm_include_list="${host_xm_include_list} $f"
12770       ;;
12771    auto-host.h )
12772       host_xm_file_list="${host_xm_file_list} $f"
12773       host_xm_include_list="${host_xm_include_list} $f"
12774       ;;
12775    * )
12776       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12777       host_xm_include_list="${host_xm_include_list} config/$f"
12778       ;;
12779  esac
12780done
12781
12782build_xm_file_list=
12783for f in $build_xm_file; do
12784  case $f in
12785    ansidecl.h )
12786       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12787       build_xm_include_list="${build_xm_include_list} $f"
12788       ;;
12789    auto-build.h | auto-host.h )
12790       build_xm_file_list="${build_xm_file_list} $f"
12791       build_xm_include_list="${build_xm_include_list} $f"
12792       ;;
12793    * )
12794       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12795       build_xm_include_list="${build_xm_include_list} config/$f"
12796       ;;
12797  esac
12798done
12799
12800# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12801# cross-compiler which does not use the native headers and libraries.
12802# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12803CROSS=
12804ALL=all.internal
12805SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12806BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12807
12808if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12809   test x$build != x$host || test "x$with_build_sysroot" != x; then
12810  if test "x$with_build_sysroot" != x; then
12811    BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12812  else
12813    BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12814  fi
12815
12816  if test x$host != x$target
12817  then
12818    CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12819    ALL=all.cross
12820    SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12821  elif test "x$TARGET_SYSTEM_ROOT" != x; then
12822    SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12823  fi
12824
12825  if test "x$with_build_sysroot" != "x"; then
12826    target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12827  elif test "x$with_sysroot" = x; then
12828    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12829  elif test "x$with_sysroot" = xyes; then
12830    target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12831  else
12832    target_header_dir="${with_sysroot}${native_system_header_dir}"
12833  fi
12834else
12835  target_header_dir=${native_system_header_dir}
12836fi
12837
12838# If this is a cross-compiler that does not
12839# have its own set of headers then define
12840# inhibit_libc
12841
12842# If this is using newlib, without having the headers available now,
12843# then define inhibit_libc in LIBGCC2_CFLAGS.
12844# This prevents libgcc2 from containing any code which requires libc
12845# support.
12846: ${inhibit_libc=false}
12847if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12848       test x$with_newlib = xyes ; } &&
12849     { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12850       inhibit_libc=true
12851fi
12852
12853
12854# When building gcc with a cross-compiler, we need to adjust things so
12855# that the generator programs are still built with the native compiler.
12856# Also, we cannot run fixincludes.
12857
12858# These are the normal (build=host) settings:
12859CC_FOR_BUILD='$(CC)'
12860CXX_FOR_BUILD='$(CXX)'
12861BUILD_CFLAGS='$(ALL_CFLAGS)'
12862BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12863BUILD_LDFLAGS='$(LDFLAGS)'
12864STMP_FIXINC=stmp-fixinc
12865
12866BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12867BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12868
12869# And these apply if build != host, or we are generating coverage data
12870if test x$build != x$host || test "x$coverage_flags" != x
12871then
12872    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12873    BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12874    BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12875
12876    NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12877    NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12878    BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12879    BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12880fi
12881
12882
12883
12884# Expand extra_headers to include complete path.
12885# This substitutes for lots of t-* files.
12886extra_headers_list=
12887# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12888for file in ${extra_headers} ; do
12889  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12890done
12891
12892# If use_gcc_tgmath is set, append ginclude/tgmath.h.
12893if test x"$use_gcc_tgmath" = xyes
12894then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12895fi
12896
12897# Define collect2 in Makefile.
12898case $host_can_use_collect2 in
12899  no) collect2= ;;
12900  *) collect2='collect2$(exeext)' ;;
12901esac
12902
12903
12904# Add a definition of USE_COLLECT2 if system wants one.
12905case $use_collect2 in
12906  no) use_collect2= ;;
12907  "") ;;
12908  *)
12909    host_xm_defines="${host_xm_defines} USE_COLLECT2"
12910    xm_defines="${xm_defines} USE_COLLECT2"
12911    case $host_can_use_collect2 in
12912      no)
12913        as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12914        ;;
12915    esac
12916    ;;
12917esac
12918
12919
12920cat >>confdefs.h <<_ACEOF
12921#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12922_ACEOF
12923
12924
12925# ---------------------------
12926# Assembler & linker features
12927# ---------------------------
12928
12929# During stage 2, ld is actually gcc/collect-ld, which is a small script to
12930# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12931# However when ld-new is first executed from the build tree, libtool will
12932# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12933# to the build tree.  While doing this we need to use the previous-stage
12934# linker, or we have an infinite loop.  The presence of a shell script as
12935# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12936# the gcc/collect-ld script.  So we need to know how libtool works, or
12937# exec-tool will fail.
12938
12939
12940case `pwd` in
12941  *\ * | *\	*)
12942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12943$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12944esac
12945
12946
12947
12948macro_version='2.2.7a'
12949macro_revision='1.3134'
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963ltmain="$ac_aux_dir/ltmain.sh"
12964
12965# Backslashify metacharacters that are still active within
12966# double-quoted strings.
12967sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12968
12969# Same as above, but do not quote variable references.
12970double_quote_subst='s/\(["`\\]\)/\\\1/g'
12971
12972# Sed substitution to delay expansion of an escaped shell variable in a
12973# double_quote_subst'ed string.
12974delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12975
12976# Sed substitution to delay expansion of an escaped single quote.
12977delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12978
12979# Sed substitution to avoid accidental globbing in evaled expressions
12980no_glob_subst='s/\*/\\\*/g'
12981
12982ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12983ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12984ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12985
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12987$as_echo_n "checking how to print strings... " >&6; }
12988# Test print first, because it will be a builtin if present.
12989if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12990   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12991  ECHO='print -r --'
12992elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12993  ECHO='printf %s\n'
12994else
12995  # Use this function as a fallback that always works.
12996  func_fallback_echo ()
12997  {
12998    eval 'cat <<_LTECHO_EOF
12999$1
13000_LTECHO_EOF'
13001  }
13002  ECHO='func_fallback_echo'
13003fi
13004
13005# func_echo_all arg...
13006# Invoke $ECHO with all args, space-separated.
13007func_echo_all ()
13008{
13009    $ECHO ""
13010}
13011
13012case "$ECHO" in
13013  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13014$as_echo "printf" >&6; } ;;
13015  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13016$as_echo "print -r" >&6; } ;;
13017  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13018$as_echo "cat" >&6; } ;;
13019esac
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13035$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13036if ${ac_cv_path_SED+:} false; then :
13037  $as_echo_n "(cached) " >&6
13038else
13039            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13040     for ac_i in 1 2 3 4 5 6 7; do
13041       ac_script="$ac_script$as_nl$ac_script"
13042     done
13043     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13044     { ac_script=; unset ac_script;}
13045     if test -z "$SED"; then
13046  ac_path_SED_found=false
13047  # Loop through the user's path and test for each of PROGNAME-LIST
13048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049for as_dir in $PATH
13050do
13051  IFS=$as_save_IFS
13052  test -z "$as_dir" && as_dir=.
13053    for ac_prog in sed gsed; do
13054    for ac_exec_ext in '' $ac_executable_extensions; do
13055      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13056      as_fn_executable_p "$ac_path_SED" || continue
13057# Check for GNU ac_path_SED and select it if it is found.
13058  # Check for GNU $ac_path_SED
13059case `"$ac_path_SED" --version 2>&1` in
13060*GNU*)
13061  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13062*)
13063  ac_count=0
13064  $as_echo_n 0123456789 >"conftest.in"
13065  while :
13066  do
13067    cat "conftest.in" "conftest.in" >"conftest.tmp"
13068    mv "conftest.tmp" "conftest.in"
13069    cp "conftest.in" "conftest.nl"
13070    $as_echo '' >> "conftest.nl"
13071    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13072    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13073    as_fn_arith $ac_count + 1 && ac_count=$as_val
13074    if test $ac_count -gt ${ac_path_SED_max-0}; then
13075      # Best one so far, save it but keep looking for a better one
13076      ac_cv_path_SED="$ac_path_SED"
13077      ac_path_SED_max=$ac_count
13078    fi
13079    # 10*(2^10) chars as input seems more than enough
13080    test $ac_count -gt 10 && break
13081  done
13082  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13083esac
13084
13085      $ac_path_SED_found && break 3
13086    done
13087  done
13088  done
13089IFS=$as_save_IFS
13090  if test -z "$ac_cv_path_SED"; then
13091    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13092  fi
13093else
13094  ac_cv_path_SED=$SED
13095fi
13096
13097fi
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13099$as_echo "$ac_cv_path_SED" >&6; }
13100 SED="$ac_cv_path_SED"
13101  rm -f conftest.sed
13102
13103test -z "$SED" && SED=sed
13104Xsed="$SED -e 1s/^X//"
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13117$as_echo_n "checking for fgrep... " >&6; }
13118if ${ac_cv_path_FGREP+:} false; then :
13119  $as_echo_n "(cached) " >&6
13120else
13121  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13122   then ac_cv_path_FGREP="$GREP -F"
13123   else
13124     if test -z "$FGREP"; then
13125  ac_path_FGREP_found=false
13126  # Loop through the user's path and test for each of PROGNAME-LIST
13127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13129do
13130  IFS=$as_save_IFS
13131  test -z "$as_dir" && as_dir=.
13132    for ac_prog in fgrep; do
13133    for ac_exec_ext in '' $ac_executable_extensions; do
13134      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13135      as_fn_executable_p "$ac_path_FGREP" || continue
13136# Check for GNU ac_path_FGREP and select it if it is found.
13137  # Check for GNU $ac_path_FGREP
13138case `"$ac_path_FGREP" --version 2>&1` in
13139*GNU*)
13140  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13141*)
13142  ac_count=0
13143  $as_echo_n 0123456789 >"conftest.in"
13144  while :
13145  do
13146    cat "conftest.in" "conftest.in" >"conftest.tmp"
13147    mv "conftest.tmp" "conftest.in"
13148    cp "conftest.in" "conftest.nl"
13149    $as_echo 'FGREP' >> "conftest.nl"
13150    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13151    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13152    as_fn_arith $ac_count + 1 && ac_count=$as_val
13153    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13154      # Best one so far, save it but keep looking for a better one
13155      ac_cv_path_FGREP="$ac_path_FGREP"
13156      ac_path_FGREP_max=$ac_count
13157    fi
13158    # 10*(2^10) chars as input seems more than enough
13159    test $ac_count -gt 10 && break
13160  done
13161  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13162esac
13163
13164      $ac_path_FGREP_found && break 3
13165    done
13166  done
13167  done
13168IFS=$as_save_IFS
13169  if test -z "$ac_cv_path_FGREP"; then
13170    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13171  fi
13172else
13173  ac_cv_path_FGREP=$FGREP
13174fi
13175
13176   fi
13177fi
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13179$as_echo "$ac_cv_path_FGREP" >&6; }
13180 FGREP="$ac_cv_path_FGREP"
13181
13182
13183test -z "$GREP" && GREP=grep
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203# Check whether --with-gnu-ld was given.
13204if test "${with_gnu_ld+set}" = set; then :
13205  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13206else
13207  with_gnu_ld=no
13208fi
13209
13210ac_prog=ld
13211if test "$GCC" = yes; then
13212  # Check if gcc -print-prog-name=ld gives a path.
13213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13214$as_echo_n "checking for ld used by $CC... " >&6; }
13215  case $host in
13216  *-*-mingw*)
13217    # gcc leaves a trailing carriage return which upsets mingw
13218    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13219  *)
13220    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13221  esac
13222  case $ac_prog in
13223    # Accept absolute paths.
13224    [\\/]* | ?:[\\/]*)
13225      re_direlt='/[^/][^/]*/\.\./'
13226      # Canonicalize the pathname of ld
13227      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13228      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13229	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13230      done
13231      test -z "$LD" && LD="$ac_prog"
13232      ;;
13233  "")
13234    # If it fails, then pretend we aren't using GCC.
13235    ac_prog=ld
13236    ;;
13237  *)
13238    # If it is relative, then search for the first ld in PATH.
13239    with_gnu_ld=unknown
13240    ;;
13241  esac
13242elif test "$with_gnu_ld" = yes; then
13243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13244$as_echo_n "checking for GNU ld... " >&6; }
13245else
13246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13247$as_echo_n "checking for non-GNU ld... " >&6; }
13248fi
13249if ${lt_cv_path_LD+:} false; then :
13250  $as_echo_n "(cached) " >&6
13251else
13252  if test -z "$LD"; then
13253  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13254  for ac_dir in $PATH; do
13255    IFS="$lt_save_ifs"
13256    test -z "$ac_dir" && ac_dir=.
13257    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13258      lt_cv_path_LD="$ac_dir/$ac_prog"
13259      # Check to see if the program is GNU ld.  I'd rather use --version,
13260      # but apparently some variants of GNU ld only accept -v.
13261      # Break only if it was the GNU/non-GNU ld that we prefer.
13262      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13263      *GNU* | *'with BFD'*)
13264	test "$with_gnu_ld" != no && break
13265	;;
13266      *)
13267	test "$with_gnu_ld" != yes && break
13268	;;
13269      esac
13270    fi
13271  done
13272  IFS="$lt_save_ifs"
13273else
13274  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13275fi
13276fi
13277
13278LD="$lt_cv_path_LD"
13279if test -n "$LD"; then
13280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13281$as_echo "$LD" >&6; }
13282else
13283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284$as_echo "no" >&6; }
13285fi
13286test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13288$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13289if ${lt_cv_prog_gnu_ld+:} false; then :
13290  $as_echo_n "(cached) " >&6
13291else
13292  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13293case `$LD -v 2>&1 </dev/null` in
13294*GNU* | *'with BFD'*)
13295  lt_cv_prog_gnu_ld=yes
13296  ;;
13297*)
13298  lt_cv_prog_gnu_ld=no
13299  ;;
13300esac
13301fi
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13303$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13304with_gnu_ld=$lt_cv_prog_gnu_ld
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13315$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13316if ${lt_cv_path_NM+:} false; then :
13317  $as_echo_n "(cached) " >&6
13318else
13319  if test -n "$NM"; then
13320  # Let the user override the test.
13321  lt_cv_path_NM="$NM"
13322else
13323  lt_nm_to_check="${ac_tool_prefix}nm"
13324  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13325    lt_nm_to_check="$lt_nm_to_check nm"
13326  fi
13327  for lt_tmp_nm in $lt_nm_to_check; do
13328    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13329    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13330      IFS="$lt_save_ifs"
13331      test -z "$ac_dir" && ac_dir=.
13332      tmp_nm="$ac_dir/$lt_tmp_nm"
13333      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13334	# Check to see if the nm accepts a BSD-compat flag.
13335	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
13336	#   nm: unknown option "B" ignored
13337	# Tru64's nm complains that /dev/null is an invalid object file
13338	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13339	*/dev/null* | *'Invalid file or object type'*)
13340	  lt_cv_path_NM="$tmp_nm -B"
13341	  break
13342	  ;;
13343	*)
13344	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13345	  */dev/null*)
13346	    lt_cv_path_NM="$tmp_nm -p"
13347	    break
13348	    ;;
13349	  *)
13350	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13351	    continue # so that we can try to find one that supports BSD flags
13352	    ;;
13353	  esac
13354	  ;;
13355	esac
13356      fi
13357    done
13358    IFS="$lt_save_ifs"
13359  done
13360  : ${lt_cv_path_NM=no}
13361fi
13362fi
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13364$as_echo "$lt_cv_path_NM" >&6; }
13365if test "$lt_cv_path_NM" != "no"; then
13366  NM="$lt_cv_path_NM"
13367else
13368  # Didn't find any BSD compatible name lister, look for dumpbin.
13369  if test -n "$DUMPBIN"; then :
13370    # Let the user override the test.
13371  else
13372    if test -n "$ac_tool_prefix"; then
13373  for ac_prog in dumpbin "link -dump"
13374  do
13375    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13376set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378$as_echo_n "checking for $ac_word... " >&6; }
13379if ${ac_cv_prog_DUMPBIN+:} false; then :
13380  $as_echo_n "(cached) " >&6
13381else
13382  if test -n "$DUMPBIN"; then
13383  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13384else
13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388  IFS=$as_save_IFS
13389  test -z "$as_dir" && as_dir=.
13390    for ac_exec_ext in '' $ac_executable_extensions; do
13391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13392    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13394    break 2
13395  fi
13396done
13397  done
13398IFS=$as_save_IFS
13399
13400fi
13401fi
13402DUMPBIN=$ac_cv_prog_DUMPBIN
13403if test -n "$DUMPBIN"; then
13404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13405$as_echo "$DUMPBIN" >&6; }
13406else
13407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
13409fi
13410
13411
13412    test -n "$DUMPBIN" && break
13413  done
13414fi
13415if test -z "$DUMPBIN"; then
13416  ac_ct_DUMPBIN=$DUMPBIN
13417  for ac_prog in dumpbin "link -dump"
13418do
13419  # Extract the first word of "$ac_prog", so it can be a program name with args.
13420set dummy $ac_prog; ac_word=$2
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422$as_echo_n "checking for $ac_word... " >&6; }
13423if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13424  $as_echo_n "(cached) " >&6
13425else
13426  if test -n "$ac_ct_DUMPBIN"; then
13427  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13428else
13429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430for as_dir in $PATH
13431do
13432  IFS=$as_save_IFS
13433  test -z "$as_dir" && as_dir=.
13434    for ac_exec_ext in '' $ac_executable_extensions; do
13435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13436    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13438    break 2
13439  fi
13440done
13441  done
13442IFS=$as_save_IFS
13443
13444fi
13445fi
13446ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13447if test -n "$ac_ct_DUMPBIN"; then
13448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13449$as_echo "$ac_ct_DUMPBIN" >&6; }
13450else
13451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452$as_echo "no" >&6; }
13453fi
13454
13455
13456  test -n "$ac_ct_DUMPBIN" && break
13457done
13458
13459  if test "x$ac_ct_DUMPBIN" = x; then
13460    DUMPBIN=":"
13461  else
13462    case $cross_compiling:$ac_tool_warned in
13463yes:)
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13466ac_tool_warned=yes ;;
13467esac
13468    DUMPBIN=$ac_ct_DUMPBIN
13469  fi
13470fi
13471
13472    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13473    *COFF*)
13474      DUMPBIN="$DUMPBIN -symbols"
13475      ;;
13476    *)
13477      DUMPBIN=:
13478      ;;
13479    esac
13480  fi
13481
13482  if test "$DUMPBIN" != ":"; then
13483    NM="$DUMPBIN"
13484  fi
13485fi
13486test -z "$NM" && NM=nm
13487
13488
13489
13490
13491
13492
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13494$as_echo_n "checking the name lister ($NM) interface... " >&6; }
13495if ${lt_cv_nm_interface+:} false; then :
13496  $as_echo_n "(cached) " >&6
13497else
13498  lt_cv_nm_interface="BSD nm"
13499  echo "int some_variable = 0;" > conftest.$ac_ext
13500  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13501  (eval "$ac_compile" 2>conftest.err)
13502  cat conftest.err >&5
13503  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13504  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13505  cat conftest.err >&5
13506  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13507  cat conftest.out >&5
13508  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13509    lt_cv_nm_interface="MS dumpbin"
13510  fi
13511  rm -f conftest*
13512fi
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13514$as_echo "$lt_cv_nm_interface" >&6; }
13515
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13517$as_echo_n "checking whether ln -s works... " >&6; }
13518LN_S=$as_ln_s
13519if test "$LN_S" = "ln -s"; then
13520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13521$as_echo "yes" >&6; }
13522else
13523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13524$as_echo "no, using $LN_S" >&6; }
13525fi
13526
13527# find the maximum length of command line arguments
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13529$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13530if ${lt_cv_sys_max_cmd_len+:} false; then :
13531  $as_echo_n "(cached) " >&6
13532else
13533    i=0
13534  teststring="ABCD"
13535
13536  case $build_os in
13537  msdosdjgpp*)
13538    # On DJGPP, this test can blow up pretty badly due to problems in libc
13539    # (any single argument exceeding 2000 bytes causes a buffer overrun
13540    # during glob expansion).  Even if it were fixed, the result of this
13541    # check would be larger than it should be.
13542    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13543    ;;
13544
13545  gnu*)
13546    # Under GNU Hurd, this test is not required because there is
13547    # no limit to the length of command line arguments.
13548    # Libtool will interpret -1 as no limit whatsoever
13549    lt_cv_sys_max_cmd_len=-1;
13550    ;;
13551
13552  cygwin* | mingw* | cegcc*)
13553    # On Win9x/ME, this test blows up -- it succeeds, but takes
13554    # about 5 minutes as the teststring grows exponentially.
13555    # Worse, since 9x/ME are not pre-emptively multitasking,
13556    # you end up with a "frozen" computer, even though with patience
13557    # the test eventually succeeds (with a max line length of 256k).
13558    # Instead, let's just punt: use the minimum linelength reported by
13559    # all of the supported platforms: 8192 (on NT/2K/XP).
13560    lt_cv_sys_max_cmd_len=8192;
13561    ;;
13562
13563  mint*)
13564    # On MiNT this can take a long time and run out of memory.
13565    lt_cv_sys_max_cmd_len=8192;
13566    ;;
13567
13568  amigaos*)
13569    # On AmigaOS with pdksh, this test takes hours, literally.
13570    # So we just punt and use a minimum line length of 8192.
13571    lt_cv_sys_max_cmd_len=8192;
13572    ;;
13573
13574  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13575    # This has been around since 386BSD, at least.  Likely further.
13576    if test -x /sbin/sysctl; then
13577      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13578    elif test -x /usr/sbin/sysctl; then
13579      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13580    else
13581      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13582    fi
13583    # And add a safety zone
13584    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13585    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13586    ;;
13587
13588  interix*)
13589    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13590    lt_cv_sys_max_cmd_len=196608
13591    ;;
13592
13593  osf*)
13594    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13595    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13596    # nice to cause kernel panics so lets avoid the loop below.
13597    # First set a reasonable default.
13598    lt_cv_sys_max_cmd_len=16384
13599    #
13600    if test -x /sbin/sysconfig; then
13601      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13602        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13603      esac
13604    fi
13605    ;;
13606  sco3.2v5*)
13607    lt_cv_sys_max_cmd_len=102400
13608    ;;
13609  sysv5* | sco5v6* | sysv4.2uw2*)
13610    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13611    if test -n "$kargmax"; then
13612      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13613    else
13614      lt_cv_sys_max_cmd_len=32768
13615    fi
13616    ;;
13617  *)
13618    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13619    if test -n "$lt_cv_sys_max_cmd_len"; then
13620      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13621      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13622    else
13623      # Make teststring a little bigger before we do anything with it.
13624      # a 1K string should be a reasonable start.
13625      for i in 1 2 3 4 5 6 7 8 ; do
13626        teststring=$teststring$teststring
13627      done
13628      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13629      # If test is not a shell built-in, we'll probably end up computing a
13630      # maximum length that is only half of the actual maximum length, but
13631      # we can't tell.
13632      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13633	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13634	      test $i != 17 # 1/2 MB should be enough
13635      do
13636        i=`expr $i + 1`
13637        teststring=$teststring$teststring
13638      done
13639      # Only check the string length outside the loop.
13640      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13641      teststring=
13642      # Add a significant safety factor because C++ compilers can tack on
13643      # massive amounts of additional arguments before passing them to the
13644      # linker.  It appears as though 1/2 is a usable value.
13645      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13646    fi
13647    ;;
13648  esac
13649
13650fi
13651
13652if test -n $lt_cv_sys_max_cmd_len ; then
13653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13654$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13655else
13656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13657$as_echo "none" >&6; }
13658fi
13659max_cmd_len=$lt_cv_sys_max_cmd_len
13660
13661
13662
13663
13664
13665
13666: ${CP="cp -f"}
13667: ${MV="mv -f"}
13668: ${RM="rm -f"}
13669
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13671$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13672# Try some XSI features
13673xsi_shell=no
13674( _lt_dummy="a/b/c"
13675  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13676      = c,a/b,, \
13677    && eval 'test $(( 1 + 1 )) -eq 2 \
13678    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13679  && xsi_shell=yes
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13681$as_echo "$xsi_shell" >&6; }
13682
13683
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13685$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13686lt_shell_append=no
13687( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13688    >/dev/null 2>&1 \
13689  && lt_shell_append=yes
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13691$as_echo "$lt_shell_append" >&6; }
13692
13693
13694if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13695  lt_unset=unset
13696else
13697  lt_unset=false
13698fi
13699
13700
13701
13702
13703
13704# test EBCDIC or ASCII
13705case `echo X|tr X '\101'` in
13706 A) # ASCII based system
13707    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13708  lt_SP2NL='tr \040 \012'
13709  lt_NL2SP='tr \015\012 \040\040'
13710  ;;
13711 *) # EBCDIC based system
13712  lt_SP2NL='tr \100 \n'
13713  lt_NL2SP='tr \r\n \100\100'
13714  ;;
13715esac
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13726$as_echo_n "checking for $LD option to reload object files... " >&6; }
13727if ${lt_cv_ld_reload_flag+:} false; then :
13728  $as_echo_n "(cached) " >&6
13729else
13730  lt_cv_ld_reload_flag='-r'
13731fi
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13733$as_echo "$lt_cv_ld_reload_flag" >&6; }
13734reload_flag=$lt_cv_ld_reload_flag
13735case $reload_flag in
13736"" | " "*) ;;
13737*) reload_flag=" $reload_flag" ;;
13738esac
13739reload_cmds='$LD$reload_flag -o $output$reload_objs'
13740case $host_os in
13741  darwin*)
13742    if test "$GCC" = yes; then
13743      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13744    else
13745      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13746    fi
13747    ;;
13748esac
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758if test -n "$ac_tool_prefix"; then
13759  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13760set dummy ${ac_tool_prefix}objdump; ac_word=$2
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762$as_echo_n "checking for $ac_word... " >&6; }
13763if ${ac_cv_prog_OBJDUMP+:} false; then :
13764  $as_echo_n "(cached) " >&6
13765else
13766  if test -n "$OBJDUMP"; then
13767  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13768else
13769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770for as_dir in $PATH
13771do
13772  IFS=$as_save_IFS
13773  test -z "$as_dir" && as_dir=.
13774    for ac_exec_ext in '' $ac_executable_extensions; do
13775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13776    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778    break 2
13779  fi
13780done
13781  done
13782IFS=$as_save_IFS
13783
13784fi
13785fi
13786OBJDUMP=$ac_cv_prog_OBJDUMP
13787if test -n "$OBJDUMP"; then
13788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13789$as_echo "$OBJDUMP" >&6; }
13790else
13791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792$as_echo "no" >&6; }
13793fi
13794
13795
13796fi
13797if test -z "$ac_cv_prog_OBJDUMP"; then
13798  ac_ct_OBJDUMP=$OBJDUMP
13799  # Extract the first word of "objdump", so it can be a program name with args.
13800set dummy objdump; ac_word=$2
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13802$as_echo_n "checking for $ac_word... " >&6; }
13803if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13804  $as_echo_n "(cached) " >&6
13805else
13806  if test -n "$ac_ct_OBJDUMP"; then
13807  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13808else
13809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810for as_dir in $PATH
13811do
13812  IFS=$as_save_IFS
13813  test -z "$as_dir" && as_dir=.
13814    for ac_exec_ext in '' $ac_executable_extensions; do
13815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13816    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13818    break 2
13819  fi
13820done
13821  done
13822IFS=$as_save_IFS
13823
13824fi
13825fi
13826ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13827if test -n "$ac_ct_OBJDUMP"; then
13828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13829$as_echo "$ac_ct_OBJDUMP" >&6; }
13830else
13831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832$as_echo "no" >&6; }
13833fi
13834
13835  if test "x$ac_ct_OBJDUMP" = x; then
13836    OBJDUMP="false"
13837  else
13838    case $cross_compiling:$ac_tool_warned in
13839yes:)
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13842ac_tool_warned=yes ;;
13843esac
13844    OBJDUMP=$ac_ct_OBJDUMP
13845  fi
13846else
13847  OBJDUMP="$ac_cv_prog_OBJDUMP"
13848fi
13849
13850test -z "$OBJDUMP" && OBJDUMP=objdump
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13861$as_echo_n "checking how to recognize dependent libraries... " >&6; }
13862if ${lt_cv_deplibs_check_method+:} false; then :
13863  $as_echo_n "(cached) " >&6
13864else
13865  lt_cv_file_magic_cmd='$MAGIC_CMD'
13866lt_cv_file_magic_test_file=
13867lt_cv_deplibs_check_method='unknown'
13868# Need to set the preceding variable on all platforms that support
13869# interlibrary dependencies.
13870# 'none' -- dependencies not supported.
13871# `unknown' -- same as none, but documents that we really don't know.
13872# 'pass_all' -- all dependencies passed with no checks.
13873# 'test_compile' -- check by making test program.
13874# 'file_magic [[regex]]' -- check by looking for files in library path
13875# which responds to the $file_magic_cmd with a given extended regex.
13876# If you have `file' or equivalent on your system and you're not sure
13877# whether `pass_all' will *always* work, you probably want this one.
13878
13879case $host_os in
13880aix[4-9]*)
13881  lt_cv_deplibs_check_method=pass_all
13882  ;;
13883
13884beos*)
13885  lt_cv_deplibs_check_method=pass_all
13886  ;;
13887
13888bsdi[45]*)
13889  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13890  lt_cv_file_magic_cmd='/usr/bin/file -L'
13891  lt_cv_file_magic_test_file=/shlib/libc.so
13892  ;;
13893
13894cygwin*)
13895  # func_win32_libid is a shell function defined in ltmain.sh
13896  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13897  lt_cv_file_magic_cmd='func_win32_libid'
13898  ;;
13899
13900mingw* | pw32*)
13901  # Base MSYS/MinGW do not provide the 'file' command needed by
13902  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13903  # unless we find 'file', for example because we are cross-compiling.
13904  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13905  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13906    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13907    lt_cv_file_magic_cmd='func_win32_libid'
13908  else
13909    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13910    lt_cv_file_magic_cmd='$OBJDUMP -f'
13911  fi
13912  ;;
13913
13914cegcc*)
13915  # use the weaker test based on 'objdump'. See mingw*.
13916  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13917  lt_cv_file_magic_cmd='$OBJDUMP -f'
13918  ;;
13919
13920darwin* | rhapsody*)
13921  lt_cv_deplibs_check_method=pass_all
13922  ;;
13923
13924freebsd* | dragonfly*)
13925  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13926    case $host_cpu in
13927    i*86 )
13928      # Not sure whether the presence of OpenBSD here was a mistake.
13929      # Let's accept both of them until this is cleared up.
13930      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13931      lt_cv_file_magic_cmd=/usr/bin/file
13932      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13933      ;;
13934    esac
13935  else
13936    lt_cv_deplibs_check_method=pass_all
13937  fi
13938  ;;
13939
13940gnu*)
13941  lt_cv_deplibs_check_method=pass_all
13942  ;;
13943
13944haiku*)
13945  lt_cv_deplibs_check_method=pass_all
13946  ;;
13947
13948hpux10.20* | hpux11*)
13949  lt_cv_file_magic_cmd=/usr/bin/file
13950  case $host_cpu in
13951  ia64*)
13952    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13953    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13954    ;;
13955  hppa*64*)
13956    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]'
13957    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13958    ;;
13959  *)
13960    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13961    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13962    ;;
13963  esac
13964  ;;
13965
13966interix[3-9]*)
13967  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13968  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13969  ;;
13970
13971irix5* | irix6* | nonstopux*)
13972  case $LD in
13973  *-32|*"-32 ") libmagic=32-bit;;
13974  *-n32|*"-n32 ") libmagic=N32;;
13975  *-64|*"-64 ") libmagic=64-bit;;
13976  *) libmagic=never-match;;
13977  esac
13978  lt_cv_deplibs_check_method=pass_all
13979  ;;
13980
13981# This must be Linux ELF.
13982linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13983  lt_cv_deplibs_check_method=pass_all
13984  ;;
13985
13986netbsd*)
13987  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13988    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13989  else
13990    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13991  fi
13992  ;;
13993
13994newos6*)
13995  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13996  lt_cv_file_magic_cmd=/usr/bin/file
13997  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13998  ;;
13999
14000*nto* | *qnx*)
14001  lt_cv_deplibs_check_method=pass_all
14002  ;;
14003
14004openbsd*)
14005  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14006    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14007  else
14008    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14009  fi
14010  ;;
14011
14012osf3* | osf4* | osf5*)
14013  lt_cv_deplibs_check_method=pass_all
14014  ;;
14015
14016rdos*)
14017  lt_cv_deplibs_check_method=pass_all
14018  ;;
14019
14020solaris*)
14021  lt_cv_deplibs_check_method=pass_all
14022  ;;
14023
14024sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14025  lt_cv_deplibs_check_method=pass_all
14026  ;;
14027
14028sysv4 | sysv4.3*)
14029  case $host_vendor in
14030  motorola)
14031    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]'
14032    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14033    ;;
14034  ncr)
14035    lt_cv_deplibs_check_method=pass_all
14036    ;;
14037  sequent)
14038    lt_cv_file_magic_cmd='/bin/file'
14039    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14040    ;;
14041  sni)
14042    lt_cv_file_magic_cmd='/bin/file'
14043    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14044    lt_cv_file_magic_test_file=/lib/libc.so
14045    ;;
14046  siemens)
14047    lt_cv_deplibs_check_method=pass_all
14048    ;;
14049  pc)
14050    lt_cv_deplibs_check_method=pass_all
14051    ;;
14052  esac
14053  ;;
14054
14055tpf*)
14056  lt_cv_deplibs_check_method=pass_all
14057  ;;
14058esac
14059
14060fi
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14062$as_echo "$lt_cv_deplibs_check_method" >&6; }
14063file_magic_cmd=$lt_cv_file_magic_cmd
14064deplibs_check_method=$lt_cv_deplibs_check_method
14065test -z "$deplibs_check_method" && deplibs_check_method=unknown
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078if test -n "$ac_tool_prefix"; then
14079  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14080set dummy ${ac_tool_prefix}ar; ac_word=$2
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14082$as_echo_n "checking for $ac_word... " >&6; }
14083if ${ac_cv_prog_AR+:} false; then :
14084  $as_echo_n "(cached) " >&6
14085else
14086  if test -n "$AR"; then
14087  ac_cv_prog_AR="$AR" # Let the user override the test.
14088else
14089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14090for as_dir in $PATH
14091do
14092  IFS=$as_save_IFS
14093  test -z "$as_dir" && as_dir=.
14094    for ac_exec_ext in '' $ac_executable_extensions; do
14095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14096    ac_cv_prog_AR="${ac_tool_prefix}ar"
14097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14098    break 2
14099  fi
14100done
14101  done
14102IFS=$as_save_IFS
14103
14104fi
14105fi
14106AR=$ac_cv_prog_AR
14107if test -n "$AR"; then
14108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14109$as_echo "$AR" >&6; }
14110else
14111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112$as_echo "no" >&6; }
14113fi
14114
14115
14116fi
14117if test -z "$ac_cv_prog_AR"; then
14118  ac_ct_AR=$AR
14119  # Extract the first word of "ar", so it can be a program name with args.
14120set dummy ar; ac_word=$2
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14122$as_echo_n "checking for $ac_word... " >&6; }
14123if ${ac_cv_prog_ac_ct_AR+:} false; then :
14124  $as_echo_n "(cached) " >&6
14125else
14126  if test -n "$ac_ct_AR"; then
14127  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14128else
14129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130for as_dir in $PATH
14131do
14132  IFS=$as_save_IFS
14133  test -z "$as_dir" && as_dir=.
14134    for ac_exec_ext in '' $ac_executable_extensions; do
14135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14136    ac_cv_prog_ac_ct_AR="ar"
14137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14138    break 2
14139  fi
14140done
14141  done
14142IFS=$as_save_IFS
14143
14144fi
14145fi
14146ac_ct_AR=$ac_cv_prog_ac_ct_AR
14147if test -n "$ac_ct_AR"; then
14148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14149$as_echo "$ac_ct_AR" >&6; }
14150else
14151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14152$as_echo "no" >&6; }
14153fi
14154
14155  if test "x$ac_ct_AR" = x; then
14156    AR="false"
14157  else
14158    case $cross_compiling:$ac_tool_warned in
14159yes:)
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14162ac_tool_warned=yes ;;
14163esac
14164    AR=$ac_ct_AR
14165  fi
14166else
14167  AR="$ac_cv_prog_AR"
14168fi
14169
14170test -z "$AR" && AR=ar
14171test -z "$AR_FLAGS" && AR_FLAGS=cru
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183if test -n "$ac_tool_prefix"; then
14184  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14185set dummy ${ac_tool_prefix}strip; 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 ${ac_cv_prog_STRIP+:} false; then :
14189  $as_echo_n "(cached) " >&6
14190else
14191  if test -n "$STRIP"; then
14192  ac_cv_prog_STRIP="$STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14201    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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
14211STRIP=$ac_cv_prog_STRIP
14212if test -n "$STRIP"; then
14213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14214$as_echo "$STRIP" >&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_STRIP"; then
14223  ac_ct_STRIP=$STRIP
14224  # Extract the first word of "strip", so it can be a program name with args.
14225set dummy strip; 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 ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14229  $as_echo_n "(cached) " >&6
14230else
14231  if test -n "$ac_ct_STRIP"; then
14232  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241    ac_cv_prog_ac_ct_STRIP="strip"
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_STRIP=$ac_cv_prog_ac_ct_STRIP
14252if test -n "$ac_ct_STRIP"; then
14253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14254$as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then
14261    STRIP=":"
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    STRIP=$ac_ct_STRIP
14270  fi
14271else
14272  STRIP="$ac_cv_prog_STRIP"
14273fi
14274
14275test -z "$STRIP" && STRIP=:
14276
14277
14278
14279
14280
14281
14282if test -n "$ac_tool_prefix"; then
14283  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14284set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14286$as_echo_n "checking for $ac_word... " >&6; }
14287if ${ac_cv_prog_RANLIB+:} false; then :
14288  $as_echo_n "(cached) " >&6
14289else
14290  if test -n "$RANLIB"; then
14291  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14292else
14293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294for as_dir in $PATH
14295do
14296  IFS=$as_save_IFS
14297  test -z "$as_dir" && as_dir=.
14298    for ac_exec_ext in '' $ac_executable_extensions; do
14299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14300    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302    break 2
14303  fi
14304done
14305  done
14306IFS=$as_save_IFS
14307
14308fi
14309fi
14310RANLIB=$ac_cv_prog_RANLIB
14311if test -n "$RANLIB"; then
14312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14313$as_echo "$RANLIB" >&6; }
14314else
14315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316$as_echo "no" >&6; }
14317fi
14318
14319
14320fi
14321if test -z "$ac_cv_prog_RANLIB"; then
14322  ac_ct_RANLIB=$RANLIB
14323  # Extract the first word of "ranlib", so it can be a program name with args.
14324set dummy ranlib; ac_word=$2
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14326$as_echo_n "checking for $ac_word... " >&6; }
14327if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14328  $as_echo_n "(cached) " >&6
14329else
14330  if test -n "$ac_ct_RANLIB"; then
14331  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14332else
14333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14334for as_dir in $PATH
14335do
14336  IFS=$as_save_IFS
14337  test -z "$as_dir" && as_dir=.
14338    for ac_exec_ext in '' $ac_executable_extensions; do
14339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14340    ac_cv_prog_ac_ct_RANLIB="ranlib"
14341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14342    break 2
14343  fi
14344done
14345  done
14346IFS=$as_save_IFS
14347
14348fi
14349fi
14350ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14351if test -n "$ac_ct_RANLIB"; then
14352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14353$as_echo "$ac_ct_RANLIB" >&6; }
14354else
14355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14356$as_echo "no" >&6; }
14357fi
14358
14359  if test "x$ac_ct_RANLIB" = x; then
14360    RANLIB=":"
14361  else
14362    case $cross_compiling:$ac_tool_warned in
14363yes:)
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14366ac_tool_warned=yes ;;
14367esac
14368    RANLIB=$ac_ct_RANLIB
14369  fi
14370else
14371  RANLIB="$ac_cv_prog_RANLIB"
14372fi
14373
14374test -z "$RANLIB" && RANLIB=:
14375
14376
14377
14378
14379
14380
14381# Determine commands to create old-style static archives.
14382old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14383old_postinstall_cmds='chmod 644 $oldlib'
14384old_postuninstall_cmds=
14385
14386if test -n "$RANLIB"; then
14387  case $host_os in
14388  openbsd*)
14389    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14390    ;;
14391  *)
14392    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14393    ;;
14394  esac
14395  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14396fi
14397
14398case $host_os in
14399  darwin*)
14400    lock_old_archive_extraction=yes ;;
14401  *)
14402    lock_old_archive_extraction=no ;;
14403esac
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443# If no C compiler was specified, use CC.
14444LTCC=${LTCC-"$CC"}
14445
14446# If no C compiler flags were specified, use CFLAGS.
14447LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14448
14449# Allow CC to be a program name with arguments.
14450compiler=$CC
14451
14452
14453# Check for command to grab the raw symbol name followed by C symbol from nm.
14454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14455$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14456if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14457  $as_echo_n "(cached) " >&6
14458else
14459
14460# These are sane defaults that work on at least a few old systems.
14461# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14462
14463# Character class describing NM global symbol codes.
14464symcode='[BCDEGRST]'
14465
14466# Regexp to match symbols that can be accessed directly from C.
14467sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14468
14469# Define system-specific variables.
14470case $host_os in
14471aix*)
14472  symcode='[BCDT]'
14473  ;;
14474cygwin* | mingw* | pw32* | cegcc*)
14475  symcode='[ABCDGISTW]'
14476  ;;
14477hpux*)
14478  if test "$host_cpu" = ia64; then
14479    symcode='[ABCDEGRST]'
14480  fi
14481  ;;
14482irix* | nonstopux*)
14483  symcode='[BCDEGRST]'
14484  ;;
14485osf*)
14486  symcode='[BCDEGQRST]'
14487  ;;
14488solaris*)
14489  symcode='[BDRT]'
14490  ;;
14491sco3.2v5*)
14492  symcode='[DT]'
14493  ;;
14494sysv4.2uw2*)
14495  symcode='[DT]'
14496  ;;
14497sysv5* | sco5v6* | unixware* | OpenUNIX*)
14498  symcode='[ABDT]'
14499  ;;
14500sysv4)
14501  symcode='[DFNSTU]'
14502  ;;
14503esac
14504
14505# If we're using GNU nm, then use its standard symbol codes.
14506case `$NM -V 2>&1` in
14507*GNU* | *'with BFD'*)
14508  symcode='[ABCDGIRSTW]' ;;
14509esac
14510
14511# Transform an extracted symbol line into a proper C declaration.
14512# Some systems (esp. on ia64) link data and code symbols differently,
14513# so use this general approach.
14514lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14515
14516# Transform an extracted symbol line into symbol name and symbol address
14517lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
14518lt_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'"
14519
14520# Handle CRLF in mingw tool chain
14521opt_cr=
14522case $build_os in
14523mingw*)
14524  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14525  ;;
14526esac
14527
14528# Try without a prefix underscore, then with it.
14529for ac_symprfx in "" "_"; do
14530
14531  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14532  symxfrm="\\1 $ac_symprfx\\2 \\2"
14533
14534  # Write the raw and C identifiers.
14535  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14536    # Fake it for dumpbin and say T for any non-static function
14537    # and D for any global variable.
14538    # Also find C++ and __fastcall symbols from MSVC++,
14539    # which start with @ or ?.
14540    lt_cv_sys_global_symbol_pipe="$AWK '"\
14541"     {last_section=section; section=\$ 3};"\
14542"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14543"     \$ 0!~/External *\|/{next};"\
14544"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14545"     {if(hide[section]) next};"\
14546"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14547"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14548"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
14549"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14550"     ' prfx=^$ac_symprfx"
14551  else
14552    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14553  fi
14554
14555  # Check to see that the pipe works correctly.
14556  pipe_works=no
14557
14558  rm -f conftest*
14559  cat > conftest.$ac_ext <<_LT_EOF
14560#ifdef __cplusplus
14561extern "C" {
14562#endif
14563char nm_test_var;
14564void nm_test_func(void);
14565void nm_test_func(void){}
14566#ifdef __cplusplus
14567}
14568#endif
14569int main(){nm_test_var='a';nm_test_func();return(0);}
14570_LT_EOF
14571
14572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14573  (eval $ac_compile) 2>&5
14574  ac_status=$?
14575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14576  test $ac_status = 0; }; then
14577    # Now try to grab the symbols.
14578    nlist=conftest.nm
14579    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14580  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14581  ac_status=$?
14582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583  test $ac_status = 0; } && test -s "$nlist"; then
14584      # Try sorting and uniquifying the output.
14585      if sort "$nlist" | uniq > "$nlist"T; then
14586	mv -f "$nlist"T "$nlist"
14587      else
14588	rm -f "$nlist"T
14589      fi
14590
14591      # Make sure that we snagged all the symbols we need.
14592      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14593	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14594	  cat <<_LT_EOF > conftest.$ac_ext
14595#ifdef __cplusplus
14596extern "C" {
14597#endif
14598
14599_LT_EOF
14600	  # Now generate the symbol file.
14601	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14602
14603	  cat <<_LT_EOF >> conftest.$ac_ext
14604
14605/* The mapping between symbol names and symbols.  */
14606const struct {
14607  const char *name;
14608  void       *address;
14609}
14610lt__PROGRAM__LTX_preloaded_symbols[] =
14611{
14612  { "@PROGRAM@", (void *) 0 },
14613_LT_EOF
14614	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14615	  cat <<\_LT_EOF >> conftest.$ac_ext
14616  {0, (void *) 0}
14617};
14618
14619/* This works around a problem in FreeBSD linker */
14620#ifdef FREEBSD_WORKAROUND
14621static const void *lt_preloaded_setup() {
14622  return lt__PROGRAM__LTX_preloaded_symbols;
14623}
14624#endif
14625
14626#ifdef __cplusplus
14627}
14628#endif
14629_LT_EOF
14630	  # Now try linking the two files.
14631	  mv conftest.$ac_objext conftstm.$ac_objext
14632	  lt_save_LIBS="$LIBS"
14633	  lt_save_CFLAGS="$CFLAGS"
14634	  LIBS="conftstm.$ac_objext"
14635	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14636	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14637  (eval $ac_link) 2>&5
14638  ac_status=$?
14639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14640  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14641	    pipe_works=yes
14642	  fi
14643	  LIBS="$lt_save_LIBS"
14644	  CFLAGS="$lt_save_CFLAGS"
14645	else
14646	  echo "cannot find nm_test_func in $nlist" >&5
14647	fi
14648      else
14649	echo "cannot find nm_test_var in $nlist" >&5
14650      fi
14651    else
14652      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14653    fi
14654  else
14655    echo "$progname: failed program was:" >&5
14656    cat conftest.$ac_ext >&5
14657  fi
14658  rm -rf conftest* conftst*
14659
14660  # Do not use the global_symbol_pipe unless it works.
14661  if test "$pipe_works" = yes; then
14662    break
14663  else
14664    lt_cv_sys_global_symbol_pipe=
14665  fi
14666done
14667
14668fi
14669
14670if test -z "$lt_cv_sys_global_symbol_pipe"; then
14671  lt_cv_sys_global_symbol_to_cdecl=
14672fi
14673if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14675$as_echo "failed" >&6; }
14676else
14677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14678$as_echo "ok" >&6; }
14679fi
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702# Check whether --enable-libtool-lock was given.
14703if test "${enable_libtool_lock+set}" = set; then :
14704  enableval=$enable_libtool_lock;
14705fi
14706
14707test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14708
14709# Some flags need to be propagated to the compiler or linker for good
14710# libtool support.
14711case $host in
14712ia64-*-hpux*)
14713  # Find out which ABI we are using.
14714  echo 'int i;' > conftest.$ac_ext
14715  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14716  (eval $ac_compile) 2>&5
14717  ac_status=$?
14718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14719  test $ac_status = 0; }; then
14720    case `/usr/bin/file conftest.$ac_objext` in
14721      *ELF-32*)
14722	HPUX_IA64_MODE="32"
14723	;;
14724      *ELF-64*)
14725	HPUX_IA64_MODE="64"
14726	;;
14727    esac
14728  fi
14729  rm -rf conftest*
14730  ;;
14731*-*-irix6*)
14732  # Find out which ABI we are using.
14733  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14734  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14735  (eval $ac_compile) 2>&5
14736  ac_status=$?
14737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14738  test $ac_status = 0; }; then
14739    if test "$lt_cv_prog_gnu_ld" = yes; then
14740      case `/usr/bin/file conftest.$ac_objext` in
14741	*32-bit*)
14742	  LD="${LD-ld} -melf32bsmip"
14743	  ;;
14744	*N32*)
14745	  LD="${LD-ld} -melf32bmipn32"
14746	  ;;
14747	*64-bit*)
14748	  LD="${LD-ld} -melf64bmip"
14749	;;
14750      esac
14751    else
14752      case `/usr/bin/file conftest.$ac_objext` in
14753	*32-bit*)
14754	  LD="${LD-ld} -32"
14755	  ;;
14756	*N32*)
14757	  LD="${LD-ld} -n32"
14758	  ;;
14759	*64-bit*)
14760	  LD="${LD-ld} -64"
14761	  ;;
14762      esac
14763    fi
14764  fi
14765  rm -rf conftest*
14766  ;;
14767
14768x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14769s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14770  # Find out which ABI we are using.
14771  echo 'int i;' > conftest.$ac_ext
14772  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14773  (eval $ac_compile) 2>&5
14774  ac_status=$?
14775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14776  test $ac_status = 0; }; then
14777    case `/usr/bin/file conftest.o` in
14778      *32-bit*)
14779	case $host in
14780	  x86_64-*kfreebsd*-gnu)
14781	    LD="${LD-ld} -m elf_i386_fbsd"
14782	    ;;
14783	  x86_64-*linux*)
14784	    case `/usr/bin/file conftest.o` in
14785	      *x86-64*)
14786		LD="${LD-ld} -m elf32_x86_64"
14787		;;
14788	      *)
14789		LD="${LD-ld} -m elf_i386"
14790		;;
14791	    esac
14792	    ;;
14793	  powerpc64le-*linux*)
14794	    LD="${LD-ld} -m elf32lppclinux"
14795	    ;;
14796	  powerpc64-*linux*)
14797	    LD="${LD-ld} -m elf32ppclinux"
14798	    ;;
14799	  s390x-*linux*)
14800	    LD="${LD-ld} -m elf_s390"
14801	    ;;
14802	  sparc64-*linux*)
14803	    LD="${LD-ld} -m elf32_sparc"
14804	    ;;
14805	esac
14806	;;
14807      *64-bit*)
14808	case $host in
14809	  x86_64-*kfreebsd*-gnu)
14810	    LD="${LD-ld} -m elf_x86_64_fbsd"
14811	    ;;
14812	  x86_64-*linux*)
14813	    LD="${LD-ld} -m elf_x86_64"
14814	    ;;
14815	  powerpcle-*linux*)
14816	    LD="${LD-ld} -m elf64lppc"
14817	    ;;
14818	  powerpc-*linux*)
14819	    LD="${LD-ld} -m elf64ppc"
14820	    ;;
14821	  s390*-*linux*|s390*-*tpf*)
14822	    LD="${LD-ld} -m elf64_s390"
14823	    ;;
14824	  sparc*-*linux*)
14825	    LD="${LD-ld} -m elf64_sparc"
14826	    ;;
14827	esac
14828	;;
14829    esac
14830  fi
14831  rm -rf conftest*
14832  ;;
14833
14834*-*-sco3.2v5*)
14835  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14836  SAVE_CFLAGS="$CFLAGS"
14837  CFLAGS="$CFLAGS -belf"
14838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14839$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14840if ${lt_cv_cc_needs_belf+:} false; then :
14841  $as_echo_n "(cached) " >&6
14842else
14843  ac_ext=c
14844ac_cpp='$CPP $CPPFLAGS'
14845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14847ac_compiler_gnu=$ac_cv_c_compiler_gnu
14848
14849     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850/* end confdefs.h.  */
14851
14852int
14853main ()
14854{
14855
14856  ;
14857  return 0;
14858}
14859_ACEOF
14860if ac_fn_c_try_link "$LINENO"; then :
14861  lt_cv_cc_needs_belf=yes
14862else
14863  lt_cv_cc_needs_belf=no
14864fi
14865rm -f core conftest.err conftest.$ac_objext \
14866    conftest$ac_exeext conftest.$ac_ext
14867     ac_ext=c
14868ac_cpp='$CPP $CPPFLAGS'
14869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14871ac_compiler_gnu=$ac_cv_c_compiler_gnu
14872
14873fi
14874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14875$as_echo "$lt_cv_cc_needs_belf" >&6; }
14876  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14877    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14878    CFLAGS="$SAVE_CFLAGS"
14879  fi
14880  ;;
14881sparc*-*solaris*)
14882  # Find out which ABI we are using.
14883  echo 'int i;' > conftest.$ac_ext
14884  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14885  (eval $ac_compile) 2>&5
14886  ac_status=$?
14887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888  test $ac_status = 0; }; then
14889    case `/usr/bin/file conftest.o` in
14890    *64-bit*)
14891      case $lt_cv_prog_gnu_ld in
14892      yes*) LD="${LD-ld} -m elf64_sparc" ;;
14893      *)
14894	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14895	  LD="${LD-ld} -64"
14896	fi
14897	;;
14898      esac
14899      ;;
14900    esac
14901  fi
14902  rm -rf conftest*
14903  ;;
14904esac
14905
14906need_locks="$enable_libtool_lock"
14907
14908
14909  case $host_os in
14910    rhapsody* | darwin*)
14911    if test -n "$ac_tool_prefix"; then
14912  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14913set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14915$as_echo_n "checking for $ac_word... " >&6; }
14916if ${ac_cv_prog_DSYMUTIL+:} false; then :
14917  $as_echo_n "(cached) " >&6
14918else
14919  if test -n "$DSYMUTIL"; then
14920  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14921else
14922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14923for as_dir in $PATH
14924do
14925  IFS=$as_save_IFS
14926  test -z "$as_dir" && as_dir=.
14927    for ac_exec_ext in '' $ac_executable_extensions; do
14928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14929    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14931    break 2
14932  fi
14933done
14934  done
14935IFS=$as_save_IFS
14936
14937fi
14938fi
14939DSYMUTIL=$ac_cv_prog_DSYMUTIL
14940if test -n "$DSYMUTIL"; then
14941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14942$as_echo "$DSYMUTIL" >&6; }
14943else
14944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14945$as_echo "no" >&6; }
14946fi
14947
14948
14949fi
14950if test -z "$ac_cv_prog_DSYMUTIL"; then
14951  ac_ct_DSYMUTIL=$DSYMUTIL
14952  # Extract the first word of "dsymutil", so it can be a program name with args.
14953set dummy dsymutil; ac_word=$2
14954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14955$as_echo_n "checking for $ac_word... " >&6; }
14956if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14957  $as_echo_n "(cached) " >&6
14958else
14959  if test -n "$ac_ct_DSYMUTIL"; then
14960  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14961else
14962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14963for as_dir in $PATH
14964do
14965  IFS=$as_save_IFS
14966  test -z "$as_dir" && as_dir=.
14967    for ac_exec_ext in '' $ac_executable_extensions; do
14968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14969    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14971    break 2
14972  fi
14973done
14974  done
14975IFS=$as_save_IFS
14976
14977fi
14978fi
14979ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14980if test -n "$ac_ct_DSYMUTIL"; then
14981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14982$as_echo "$ac_ct_DSYMUTIL" >&6; }
14983else
14984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14985$as_echo "no" >&6; }
14986fi
14987
14988  if test "x$ac_ct_DSYMUTIL" = x; then
14989    DSYMUTIL=":"
14990  else
14991    case $cross_compiling:$ac_tool_warned in
14992yes:)
14993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14995ac_tool_warned=yes ;;
14996esac
14997    DSYMUTIL=$ac_ct_DSYMUTIL
14998  fi
14999else
15000  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15001fi
15002
15003    if test -n "$ac_tool_prefix"; then
15004  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15005set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15007$as_echo_n "checking for $ac_word... " >&6; }
15008if ${ac_cv_prog_NMEDIT+:} false; then :
15009  $as_echo_n "(cached) " >&6
15010else
15011  if test -n "$NMEDIT"; then
15012  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15013else
15014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15015for as_dir in $PATH
15016do
15017  IFS=$as_save_IFS
15018  test -z "$as_dir" && as_dir=.
15019    for ac_exec_ext in '' $ac_executable_extensions; do
15020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15021    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15023    break 2
15024  fi
15025done
15026  done
15027IFS=$as_save_IFS
15028
15029fi
15030fi
15031NMEDIT=$ac_cv_prog_NMEDIT
15032if test -n "$NMEDIT"; then
15033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15034$as_echo "$NMEDIT" >&6; }
15035else
15036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037$as_echo "no" >&6; }
15038fi
15039
15040
15041fi
15042if test -z "$ac_cv_prog_NMEDIT"; then
15043  ac_ct_NMEDIT=$NMEDIT
15044  # Extract the first word of "nmedit", so it can be a program name with args.
15045set dummy nmedit; ac_word=$2
15046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15047$as_echo_n "checking for $ac_word... " >&6; }
15048if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15049  $as_echo_n "(cached) " >&6
15050else
15051  if test -n "$ac_ct_NMEDIT"; then
15052  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15053else
15054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15055for as_dir in $PATH
15056do
15057  IFS=$as_save_IFS
15058  test -z "$as_dir" && as_dir=.
15059    for ac_exec_ext in '' $ac_executable_extensions; do
15060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15061    ac_cv_prog_ac_ct_NMEDIT="nmedit"
15062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15063    break 2
15064  fi
15065done
15066  done
15067IFS=$as_save_IFS
15068
15069fi
15070fi
15071ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15072if test -n "$ac_ct_NMEDIT"; then
15073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15074$as_echo "$ac_ct_NMEDIT" >&6; }
15075else
15076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15077$as_echo "no" >&6; }
15078fi
15079
15080  if test "x$ac_ct_NMEDIT" = x; then
15081    NMEDIT=":"
15082  else
15083    case $cross_compiling:$ac_tool_warned in
15084yes:)
15085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15087ac_tool_warned=yes ;;
15088esac
15089    NMEDIT=$ac_ct_NMEDIT
15090  fi
15091else
15092  NMEDIT="$ac_cv_prog_NMEDIT"
15093fi
15094
15095    if test -n "$ac_tool_prefix"; then
15096  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15097set dummy ${ac_tool_prefix}lipo; ac_word=$2
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099$as_echo_n "checking for $ac_word... " >&6; }
15100if ${ac_cv_prog_LIPO+:} false; then :
15101  $as_echo_n "(cached) " >&6
15102else
15103  if test -n "$LIPO"; then
15104  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15105else
15106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107for as_dir in $PATH
15108do
15109  IFS=$as_save_IFS
15110  test -z "$as_dir" && as_dir=.
15111    for ac_exec_ext in '' $ac_executable_extensions; do
15112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15113    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15115    break 2
15116  fi
15117done
15118  done
15119IFS=$as_save_IFS
15120
15121fi
15122fi
15123LIPO=$ac_cv_prog_LIPO
15124if test -n "$LIPO"; then
15125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15126$as_echo "$LIPO" >&6; }
15127else
15128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129$as_echo "no" >&6; }
15130fi
15131
15132
15133fi
15134if test -z "$ac_cv_prog_LIPO"; then
15135  ac_ct_LIPO=$LIPO
15136  # Extract the first word of "lipo", so it can be a program name with args.
15137set dummy lipo; ac_word=$2
15138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15139$as_echo_n "checking for $ac_word... " >&6; }
15140if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15141  $as_echo_n "(cached) " >&6
15142else
15143  if test -n "$ac_ct_LIPO"; then
15144  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15145else
15146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147for as_dir in $PATH
15148do
15149  IFS=$as_save_IFS
15150  test -z "$as_dir" && as_dir=.
15151    for ac_exec_ext in '' $ac_executable_extensions; do
15152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15153    ac_cv_prog_ac_ct_LIPO="lipo"
15154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15155    break 2
15156  fi
15157done
15158  done
15159IFS=$as_save_IFS
15160
15161fi
15162fi
15163ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15164if test -n "$ac_ct_LIPO"; then
15165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15166$as_echo "$ac_ct_LIPO" >&6; }
15167else
15168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15169$as_echo "no" >&6; }
15170fi
15171
15172  if test "x$ac_ct_LIPO" = x; then
15173    LIPO=":"
15174  else
15175    case $cross_compiling:$ac_tool_warned in
15176yes:)
15177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15179ac_tool_warned=yes ;;
15180esac
15181    LIPO=$ac_ct_LIPO
15182  fi
15183else
15184  LIPO="$ac_cv_prog_LIPO"
15185fi
15186
15187    if test -n "$ac_tool_prefix"; then
15188  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15189set dummy ${ac_tool_prefix}otool; ac_word=$2
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15191$as_echo_n "checking for $ac_word... " >&6; }
15192if ${ac_cv_prog_OTOOL+:} false; then :
15193  $as_echo_n "(cached) " >&6
15194else
15195  if test -n "$OTOOL"; then
15196  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15197else
15198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199for as_dir in $PATH
15200do
15201  IFS=$as_save_IFS
15202  test -z "$as_dir" && as_dir=.
15203    for ac_exec_ext in '' $ac_executable_extensions; do
15204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15205    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15207    break 2
15208  fi
15209done
15210  done
15211IFS=$as_save_IFS
15212
15213fi
15214fi
15215OTOOL=$ac_cv_prog_OTOOL
15216if test -n "$OTOOL"; then
15217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15218$as_echo "$OTOOL" >&6; }
15219else
15220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15221$as_echo "no" >&6; }
15222fi
15223
15224
15225fi
15226if test -z "$ac_cv_prog_OTOOL"; then
15227  ac_ct_OTOOL=$OTOOL
15228  # Extract the first word of "otool", so it can be a program name with args.
15229set dummy otool; ac_word=$2
15230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15231$as_echo_n "checking for $ac_word... " >&6; }
15232if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15233  $as_echo_n "(cached) " >&6
15234else
15235  if test -n "$ac_ct_OTOOL"; then
15236  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15237else
15238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15239for as_dir in $PATH
15240do
15241  IFS=$as_save_IFS
15242  test -z "$as_dir" && as_dir=.
15243    for ac_exec_ext in '' $ac_executable_extensions; do
15244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15245    ac_cv_prog_ac_ct_OTOOL="otool"
15246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15247    break 2
15248  fi
15249done
15250  done
15251IFS=$as_save_IFS
15252
15253fi
15254fi
15255ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15256if test -n "$ac_ct_OTOOL"; then
15257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15258$as_echo "$ac_ct_OTOOL" >&6; }
15259else
15260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15261$as_echo "no" >&6; }
15262fi
15263
15264  if test "x$ac_ct_OTOOL" = x; then
15265    OTOOL=":"
15266  else
15267    case $cross_compiling:$ac_tool_warned in
15268yes:)
15269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15271ac_tool_warned=yes ;;
15272esac
15273    OTOOL=$ac_ct_OTOOL
15274  fi
15275else
15276  OTOOL="$ac_cv_prog_OTOOL"
15277fi
15278
15279    if test -n "$ac_tool_prefix"; then
15280  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15281set dummy ${ac_tool_prefix}otool64; ac_word=$2
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15283$as_echo_n "checking for $ac_word... " >&6; }
15284if ${ac_cv_prog_OTOOL64+:} false; then :
15285  $as_echo_n "(cached) " >&6
15286else
15287  if test -n "$OTOOL64"; then
15288  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15289else
15290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291for as_dir in $PATH
15292do
15293  IFS=$as_save_IFS
15294  test -z "$as_dir" && as_dir=.
15295    for ac_exec_ext in '' $ac_executable_extensions; do
15296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15297    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15299    break 2
15300  fi
15301done
15302  done
15303IFS=$as_save_IFS
15304
15305fi
15306fi
15307OTOOL64=$ac_cv_prog_OTOOL64
15308if test -n "$OTOOL64"; then
15309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15310$as_echo "$OTOOL64" >&6; }
15311else
15312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15313$as_echo "no" >&6; }
15314fi
15315
15316
15317fi
15318if test -z "$ac_cv_prog_OTOOL64"; then
15319  ac_ct_OTOOL64=$OTOOL64
15320  # Extract the first word of "otool64", so it can be a program name with args.
15321set dummy otool64; ac_word=$2
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15323$as_echo_n "checking for $ac_word... " >&6; }
15324if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15325  $as_echo_n "(cached) " >&6
15326else
15327  if test -n "$ac_ct_OTOOL64"; then
15328  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15329else
15330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331for as_dir in $PATH
15332do
15333  IFS=$as_save_IFS
15334  test -z "$as_dir" && as_dir=.
15335    for ac_exec_ext in '' $ac_executable_extensions; do
15336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337    ac_cv_prog_ac_ct_OTOOL64="otool64"
15338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15339    break 2
15340  fi
15341done
15342  done
15343IFS=$as_save_IFS
15344
15345fi
15346fi
15347ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15348if test -n "$ac_ct_OTOOL64"; then
15349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15350$as_echo "$ac_ct_OTOOL64" >&6; }
15351else
15352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15353$as_echo "no" >&6; }
15354fi
15355
15356  if test "x$ac_ct_OTOOL64" = x; then
15357    OTOOL64=":"
15358  else
15359    case $cross_compiling:$ac_tool_warned in
15360yes:)
15361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15363ac_tool_warned=yes ;;
15364esac
15365    OTOOL64=$ac_ct_OTOOL64
15366  fi
15367else
15368  OTOOL64="$ac_cv_prog_OTOOL64"
15369fi
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15398$as_echo_n "checking for -single_module linker flag... " >&6; }
15399if ${lt_cv_apple_cc_single_mod+:} false; then :
15400  $as_echo_n "(cached) " >&6
15401else
15402  lt_cv_apple_cc_single_mod=no
15403      if test -z "${LT_MULTI_MODULE}"; then
15404	# By default we will add the -single_module flag. You can override
15405	# by either setting the environment variable LT_MULTI_MODULE
15406	# non-empty at configure time, or by adding -multi_module to the
15407	# link flags.
15408	rm -rf libconftest.dylib*
15409	echo "int foo(void){return 1;}" > conftest.c
15410	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15411-dynamiclib -Wl,-single_module conftest.c" >&5
15412	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15413	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15414        _lt_result=$?
15415	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15416	  lt_cv_apple_cc_single_mod=yes
15417	else
15418	  cat conftest.err >&5
15419	fi
15420	rm -rf libconftest.dylib*
15421	rm -f conftest.*
15422      fi
15423fi
15424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15425$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15427$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15428if ${lt_cv_ld_exported_symbols_list+:} false; then :
15429  $as_echo_n "(cached) " >&6
15430else
15431  lt_cv_ld_exported_symbols_list=no
15432      save_LDFLAGS=$LDFLAGS
15433      echo "_main" > conftest.sym
15434      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15435      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h.  */
15437
15438int
15439main ()
15440{
15441
15442  ;
15443  return 0;
15444}
15445_ACEOF
15446if ac_fn_c_try_link "$LINENO"; then :
15447  lt_cv_ld_exported_symbols_list=yes
15448else
15449  lt_cv_ld_exported_symbols_list=no
15450fi
15451rm -f core conftest.err conftest.$ac_objext \
15452    conftest$ac_exeext conftest.$ac_ext
15453	LDFLAGS="$save_LDFLAGS"
15454
15455fi
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15457$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15458    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15459$as_echo_n "checking for -force_load linker flag... " >&6; }
15460if ${lt_cv_ld_force_load+:} false; then :
15461  $as_echo_n "(cached) " >&6
15462else
15463  lt_cv_ld_force_load=no
15464      cat > conftest.c << _LT_EOF
15465int forced_loaded() { return 2;}
15466_LT_EOF
15467      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15468      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15469      echo "$AR cru libconftest.a conftest.o" >&5
15470      $AR cru libconftest.a conftest.o 2>&5
15471      cat > conftest.c << _LT_EOF
15472int main() { return 0;}
15473_LT_EOF
15474      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15475      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15476      _lt_result=$?
15477      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15478	lt_cv_ld_force_load=yes
15479      else
15480	cat conftest.err >&5
15481      fi
15482        rm -f conftest.err libconftest.a conftest conftest.c
15483        rm -rf conftest.dSYM
15484
15485fi
15486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15487$as_echo "$lt_cv_ld_force_load" >&6; }
15488    case $host_os in
15489    rhapsody* | darwin1.[012])
15490      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15491    darwin1.*)
15492      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15493    darwin*) # darwin 5.x on
15494      # if running on 10.5 or later, the deployment target defaults
15495      # to the OS version, if on x86, and 10.4, the deployment
15496      # target defaults to 10.4. Don't you love it?
15497      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15498	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15499	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15500	10.[012][,.]*)
15501	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15502	10.*)
15503	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15504      esac
15505    ;;
15506  esac
15507    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15508      _lt_dar_single_mod='$single_module'
15509    fi
15510    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15511      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15512    else
15513      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15514    fi
15515    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15516      _lt_dsymutil='~$DSYMUTIL $lib || :'
15517    else
15518      _lt_dsymutil=
15519    fi
15520    ;;
15521  esac
15522
15523
15524for ac_header in dlfcn.h
15525do :
15526  ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15527if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15528  cat >>confdefs.h <<_ACEOF
15529#define HAVE_DLFCN_H 1
15530_ACEOF
15531
15532fi
15533done
15534
15535
15536
15537
15538
15539# Set options
15540
15541
15542
15543        enable_dlopen=no
15544
15545
15546  enable_win32_dll=no
15547
15548
15549            # Check whether --enable-shared was given.
15550if test "${enable_shared+set}" = set; then :
15551  enableval=$enable_shared; p=${PACKAGE-default}
15552    case $enableval in
15553    yes) enable_shared=yes ;;
15554    no) enable_shared=no ;;
15555    *)
15556      enable_shared=no
15557      # Look at the argument we got.  We use all the common list separators.
15558      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15559      for pkg in $enableval; do
15560	IFS="$lt_save_ifs"
15561	if test "X$pkg" = "X$p"; then
15562	  enable_shared=yes
15563	fi
15564      done
15565      IFS="$lt_save_ifs"
15566      ;;
15567    esac
15568else
15569  enable_shared=yes
15570fi
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580  # Check whether --enable-static was given.
15581if test "${enable_static+set}" = set; then :
15582  enableval=$enable_static; p=${PACKAGE-default}
15583    case $enableval in
15584    yes) enable_static=yes ;;
15585    no) enable_static=no ;;
15586    *)
15587     enable_static=no
15588      # Look at the argument we got.  We use all the common list separators.
15589      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15590      for pkg in $enableval; do
15591	IFS="$lt_save_ifs"
15592	if test "X$pkg" = "X$p"; then
15593	  enable_static=yes
15594	fi
15595      done
15596      IFS="$lt_save_ifs"
15597      ;;
15598    esac
15599else
15600  enable_static=yes
15601fi
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612# Check whether --with-pic was given.
15613if test "${with_pic+set}" = set; then :
15614  withval=$with_pic; pic_mode="$withval"
15615else
15616  pic_mode=default
15617fi
15618
15619
15620test -z "$pic_mode" && pic_mode=default
15621
15622
15623
15624
15625
15626
15627
15628  # Check whether --enable-fast-install was given.
15629if test "${enable_fast_install+set}" = set; then :
15630  enableval=$enable_fast_install; p=${PACKAGE-default}
15631    case $enableval in
15632    yes) enable_fast_install=yes ;;
15633    no) enable_fast_install=no ;;
15634    *)
15635      enable_fast_install=no
15636      # Look at the argument we got.  We use all the common list separators.
15637      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15638      for pkg in $enableval; do
15639	IFS="$lt_save_ifs"
15640	if test "X$pkg" = "X$p"; then
15641	  enable_fast_install=yes
15642	fi
15643      done
15644      IFS="$lt_save_ifs"
15645      ;;
15646    esac
15647else
15648  enable_fast_install=yes
15649fi
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661# This can be used to rebuild libtool when needed
15662LIBTOOL_DEPS="$ltmain"
15663
15664# Always use our own libtool.
15665LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692test -z "$LN_S" && LN_S="ln -s"
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707if test -n "${ZSH_VERSION+set}" ; then
15708   setopt NO_GLOB_SUBST
15709fi
15710
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15712$as_echo_n "checking for objdir... " >&6; }
15713if ${lt_cv_objdir+:} false; then :
15714  $as_echo_n "(cached) " >&6
15715else
15716  rm -f .libs 2>/dev/null
15717mkdir .libs 2>/dev/null
15718if test -d .libs; then
15719  lt_cv_objdir=.libs
15720else
15721  # MS-DOS does not allow filenames that begin with a dot.
15722  lt_cv_objdir=_libs
15723fi
15724rmdir .libs 2>/dev/null
15725fi
15726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15727$as_echo "$lt_cv_objdir" >&6; }
15728objdir=$lt_cv_objdir
15729
15730
15731
15732
15733
15734cat >>confdefs.h <<_ACEOF
15735#define LT_OBJDIR "$lt_cv_objdir/"
15736_ACEOF
15737
15738
15739
15740
15741case $host_os in
15742aix3*)
15743  # AIX sometimes has problems with the GCC collect2 program.  For some
15744  # reason, if we set the COLLECT_NAMES environment variable, the problems
15745  # vanish in a puff of smoke.
15746  if test "X${COLLECT_NAMES+set}" != Xset; then
15747    COLLECT_NAMES=
15748    export COLLECT_NAMES
15749  fi
15750  ;;
15751esac
15752
15753# Global variables:
15754ofile=libtool
15755can_build_shared=yes
15756
15757# All known linkers require a `.a' archive for static linking (except MSVC,
15758# which needs '.lib').
15759libext=a
15760
15761with_gnu_ld="$lt_cv_prog_gnu_ld"
15762
15763old_CC="$CC"
15764old_CFLAGS="$CFLAGS"
15765
15766# Set sane defaults for various variables
15767test -z "$CC" && CC=cc
15768test -z "$LTCC" && LTCC=$CC
15769test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15770test -z "$LD" && LD=ld
15771test -z "$ac_objext" && ac_objext=o
15772
15773for cc_temp in $compiler""; do
15774  case $cc_temp in
15775    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15776    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15777    \-*) ;;
15778    *) break;;
15779  esac
15780done
15781cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15782
15783
15784# Only perform the check for file, if the check method requires it
15785test -z "$MAGIC_CMD" && MAGIC_CMD=file
15786case $deplibs_check_method in
15787file_magic*)
15788  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15789    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15790$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15791if ${lt_cv_path_MAGIC_CMD+:} false; then :
15792  $as_echo_n "(cached) " >&6
15793else
15794  case $MAGIC_CMD in
15795[\\/*] |  ?:[\\/]*)
15796  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15797  ;;
15798*)
15799  lt_save_MAGIC_CMD="$MAGIC_CMD"
15800  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15801  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15802  for ac_dir in $ac_dummy; do
15803    IFS="$lt_save_ifs"
15804    test -z "$ac_dir" && ac_dir=.
15805    if test -f $ac_dir/${ac_tool_prefix}file; then
15806      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15807      if test -n "$file_magic_test_file"; then
15808	case $deplibs_check_method in
15809	"file_magic "*)
15810	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15811	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15812	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15813	    $EGREP "$file_magic_regex" > /dev/null; then
15814	    :
15815	  else
15816	    cat <<_LT_EOF 1>&2
15817
15818*** Warning: the command libtool uses to detect shared libraries,
15819*** $file_magic_cmd, produces output that libtool cannot recognize.
15820*** The result is that libtool may fail to recognize shared libraries
15821*** as such.  This will affect the creation of libtool libraries that
15822*** depend on shared libraries, but programs linked with such libtool
15823*** libraries will work regardless of this problem.  Nevertheless, you
15824*** may want to report the problem to your system manager and/or to
15825*** bug-libtool@gnu.org
15826
15827_LT_EOF
15828	  fi ;;
15829	esac
15830      fi
15831      break
15832    fi
15833  done
15834  IFS="$lt_save_ifs"
15835  MAGIC_CMD="$lt_save_MAGIC_CMD"
15836  ;;
15837esac
15838fi
15839
15840MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15841if test -n "$MAGIC_CMD"; then
15842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15843$as_echo "$MAGIC_CMD" >&6; }
15844else
15845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846$as_echo "no" >&6; }
15847fi
15848
15849
15850
15851
15852
15853if test -z "$lt_cv_path_MAGIC_CMD"; then
15854  if test -n "$ac_tool_prefix"; then
15855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15856$as_echo_n "checking for file... " >&6; }
15857if ${lt_cv_path_MAGIC_CMD+:} false; then :
15858  $as_echo_n "(cached) " >&6
15859else
15860  case $MAGIC_CMD in
15861[\\/*] |  ?:[\\/]*)
15862  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15863  ;;
15864*)
15865  lt_save_MAGIC_CMD="$MAGIC_CMD"
15866  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15867  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15868  for ac_dir in $ac_dummy; do
15869    IFS="$lt_save_ifs"
15870    test -z "$ac_dir" && ac_dir=.
15871    if test -f $ac_dir/file; then
15872      lt_cv_path_MAGIC_CMD="$ac_dir/file"
15873      if test -n "$file_magic_test_file"; then
15874	case $deplibs_check_method in
15875	"file_magic "*)
15876	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15877	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15878	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15879	    $EGREP "$file_magic_regex" > /dev/null; then
15880	    :
15881	  else
15882	    cat <<_LT_EOF 1>&2
15883
15884*** Warning: the command libtool uses to detect shared libraries,
15885*** $file_magic_cmd, produces output that libtool cannot recognize.
15886*** The result is that libtool may fail to recognize shared libraries
15887*** as such.  This will affect the creation of libtool libraries that
15888*** depend on shared libraries, but programs linked with such libtool
15889*** libraries will work regardless of this problem.  Nevertheless, you
15890*** may want to report the problem to your system manager and/or to
15891*** bug-libtool@gnu.org
15892
15893_LT_EOF
15894	  fi ;;
15895	esac
15896      fi
15897      break
15898    fi
15899  done
15900  IFS="$lt_save_ifs"
15901  MAGIC_CMD="$lt_save_MAGIC_CMD"
15902  ;;
15903esac
15904fi
15905
15906MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15907if test -n "$MAGIC_CMD"; then
15908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15909$as_echo "$MAGIC_CMD" >&6; }
15910else
15911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912$as_echo "no" >&6; }
15913fi
15914
15915
15916  else
15917    MAGIC_CMD=:
15918  fi
15919fi
15920
15921  fi
15922  ;;
15923esac
15924
15925# Use C for the default configuration in the libtool script
15926
15927lt_save_CC="$CC"
15928ac_ext=c
15929ac_cpp='$CPP $CPPFLAGS'
15930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15932ac_compiler_gnu=$ac_cv_c_compiler_gnu
15933
15934
15935# Source file extension for C test sources.
15936ac_ext=c
15937
15938# Object file extension for compiled C test sources.
15939objext=o
15940objext=$objext
15941
15942# Code to be used in simple compile tests
15943lt_simple_compile_test_code="int some_variable = 0;"
15944
15945# Code to be used in simple link tests
15946lt_simple_link_test_code='int main(){return(0);}'
15947
15948
15949
15950
15951
15952
15953
15954# If no C compiler was specified, use CC.
15955LTCC=${LTCC-"$CC"}
15956
15957# If no C compiler flags were specified, use CFLAGS.
15958LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15959
15960# Allow CC to be a program name with arguments.
15961compiler=$CC
15962
15963# Save the default compiler, since it gets overwritten when the other
15964# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15965compiler_DEFAULT=$CC
15966
15967# save warnings/boilerplate of simple test code
15968ac_outfile=conftest.$ac_objext
15969echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15970eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15971_lt_compiler_boilerplate=`cat conftest.err`
15972$RM conftest*
15973
15974ac_outfile=conftest.$ac_objext
15975echo "$lt_simple_link_test_code" >conftest.$ac_ext
15976eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15977_lt_linker_boilerplate=`cat conftest.err`
15978$RM -r conftest*
15979
15980
15981## CAVEAT EMPTOR:
15982## There is no encapsulation within the following macros, do not change
15983## the running order or otherwise move them around unless you know exactly
15984## what you are doing...
15985if test -n "$compiler"; then
15986
15987lt_prog_compiler_no_builtin_flag=
15988
15989if test "$GCC" = yes; then
15990  case $cc_basename in
15991  nvcc*)
15992    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15993  *)
15994    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15995  esac
15996
15997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15998$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15999if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16000  $as_echo_n "(cached) " >&6
16001else
16002  lt_cv_prog_compiler_rtti_exceptions=no
16003   ac_outfile=conftest.$ac_objext
16004   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16005   lt_compiler_flag="-fno-rtti -fno-exceptions"
16006   # Insert the option either (1) after the last *FLAGS variable, or
16007   # (2) before a word containing "conftest.", or (3) at the end.
16008   # Note that $ac_compile itself does not contain backslashes and begins
16009   # with a dollar sign (not a hyphen), so the echo should work correctly.
16010   # The option is referenced via a variable to avoid confusing sed.
16011   lt_compile=`echo "$ac_compile" | $SED \
16012   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16014   -e 's:$: $lt_compiler_flag:'`
16015   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16016   (eval "$lt_compile" 2>conftest.err)
16017   ac_status=$?
16018   cat conftest.err >&5
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   if (exit $ac_status) && test -s "$ac_outfile"; then
16021     # The compiler can only warn and ignore the option if not recognized
16022     # So say no if there are warnings other than the usual output.
16023     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16024     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16025     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16026       lt_cv_prog_compiler_rtti_exceptions=yes
16027     fi
16028   fi
16029   $RM conftest*
16030
16031fi
16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16033$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16034
16035if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16036    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16037else
16038    :
16039fi
16040
16041fi
16042
16043
16044
16045
16046
16047
16048  lt_prog_compiler_wl=
16049lt_prog_compiler_pic=
16050lt_prog_compiler_static=
16051
16052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16053$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16054
16055  if test "$GCC" = yes; then
16056    lt_prog_compiler_wl='-Wl,'
16057    lt_prog_compiler_static='-static'
16058
16059    case $host_os in
16060      aix*)
16061      # All AIX code is PIC.
16062      if test "$host_cpu" = ia64; then
16063	# AIX 5 now supports IA64 processor
16064	lt_prog_compiler_static='-Bstatic'
16065      fi
16066      lt_prog_compiler_pic='-fPIC'
16067      ;;
16068
16069    amigaos*)
16070      case $host_cpu in
16071      powerpc)
16072            # see comment about AmigaOS4 .so support
16073            lt_prog_compiler_pic='-fPIC'
16074        ;;
16075      m68k)
16076            # FIXME: we need at least 68020 code to build shared libraries, but
16077            # adding the `-m68020' flag to GCC prevents building anything better,
16078            # like `-m68040'.
16079            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16080        ;;
16081      esac
16082      ;;
16083
16084    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16085      # PIC is the default for these OSes.
16086      ;;
16087
16088    mingw* | cygwin* | pw32* | os2* | cegcc*)
16089      # This hack is so that the source file can tell whether it is being
16090      # built for inclusion in a dll (and should export symbols for example).
16091      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16092      # (--disable-auto-import) libraries
16093      lt_prog_compiler_pic='-DDLL_EXPORT'
16094      ;;
16095
16096    darwin* | rhapsody*)
16097      # PIC is the default on this platform
16098      # Common symbols not allowed in MH_DYLIB files
16099      lt_prog_compiler_pic='-fno-common'
16100      ;;
16101
16102    haiku*)
16103      # PIC is the default for Haiku.
16104      # The "-static" flag exists, but is broken.
16105      lt_prog_compiler_static=
16106      ;;
16107
16108    hpux*)
16109      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16110      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16111      # sets the default TLS model and affects inlining.
16112      case $host_cpu in
16113      hppa*64*)
16114	# +Z the default
16115	;;
16116      *)
16117	lt_prog_compiler_pic='-fPIC'
16118	;;
16119      esac
16120      ;;
16121
16122    interix[3-9]*)
16123      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16124      # Instead, we relocate shared libraries at runtime.
16125      ;;
16126
16127    msdosdjgpp*)
16128      # Just because we use GCC doesn't mean we suddenly get shared libraries
16129      # on systems that don't support them.
16130      lt_prog_compiler_can_build_shared=no
16131      enable_shared=no
16132      ;;
16133
16134    *nto* | *qnx*)
16135      # QNX uses GNU C++, but need to define -shared option too, otherwise
16136      # it will coredump.
16137      lt_prog_compiler_pic='-fPIC -shared'
16138      ;;
16139
16140    sysv4*MP*)
16141      if test -d /usr/nec; then
16142	lt_prog_compiler_pic=-Kconform_pic
16143      fi
16144      ;;
16145
16146    *)
16147      lt_prog_compiler_pic='-fPIC'
16148      ;;
16149    esac
16150
16151    case $cc_basename in
16152    nvcc*) # Cuda Compiler Driver 2.2
16153      lt_prog_compiler_wl='-Xlinker '
16154      lt_prog_compiler_pic='-Xcompiler -fPIC'
16155      ;;
16156    esac
16157  else
16158    # PORTME Check for flag to pass linker flags through the system compiler.
16159    case $host_os in
16160    aix*)
16161      lt_prog_compiler_wl='-Wl,'
16162      if test "$host_cpu" = ia64; then
16163	# AIX 5 now supports IA64 processor
16164	lt_prog_compiler_static='-Bstatic'
16165      else
16166	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16167      fi
16168      ;;
16169
16170    mingw* | cygwin* | pw32* | os2* | cegcc*)
16171      # This hack is so that the source file can tell whether it is being
16172      # built for inclusion in a dll (and should export symbols for example).
16173      lt_prog_compiler_pic='-DDLL_EXPORT'
16174      ;;
16175
16176    hpux9* | hpux10* | hpux11*)
16177      lt_prog_compiler_wl='-Wl,'
16178      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16179      # not for PA HP-UX.
16180      case $host_cpu in
16181      hppa*64*|ia64*)
16182	# +Z the default
16183	;;
16184      *)
16185	lt_prog_compiler_pic='+Z'
16186	;;
16187      esac
16188      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16189      lt_prog_compiler_static='${wl}-a ${wl}archive'
16190      ;;
16191
16192    irix5* | irix6* | nonstopux*)
16193      lt_prog_compiler_wl='-Wl,'
16194      # PIC (with -KPIC) is the default.
16195      lt_prog_compiler_static='-non_shared'
16196      ;;
16197
16198    linux* | k*bsd*-gnu | kopensolaris*-gnu)
16199      case $cc_basename in
16200      # old Intel for x86_64 which still supported -KPIC.
16201      ecc*)
16202	lt_prog_compiler_wl='-Wl,'
16203	lt_prog_compiler_pic='-KPIC'
16204	lt_prog_compiler_static='-static'
16205        ;;
16206      # icc used to be incompatible with GCC.
16207      # ICC 10 doesn't accept -KPIC any more.
16208      icc* | ifort*)
16209	lt_prog_compiler_wl='-Wl,'
16210	lt_prog_compiler_pic='-fPIC'
16211	lt_prog_compiler_static='-static'
16212        ;;
16213      # Lahey Fortran 8.1.
16214      lf95*)
16215	lt_prog_compiler_wl='-Wl,'
16216	lt_prog_compiler_pic='--shared'
16217	lt_prog_compiler_static='--static'
16218	;;
16219      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16220        # Portland Group compilers (*not* the Pentium gcc compiler,
16221	# which looks to be a dead project)
16222	lt_prog_compiler_wl='-Wl,'
16223	lt_prog_compiler_pic='-fpic'
16224	lt_prog_compiler_static='-Bstatic'
16225        ;;
16226      ccc*)
16227        lt_prog_compiler_wl='-Wl,'
16228        # All Alpha code is PIC.
16229        lt_prog_compiler_static='-non_shared'
16230        ;;
16231      xl* | bgxl* | bgf* | mpixl*)
16232	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16233	lt_prog_compiler_wl='-Wl,'
16234	lt_prog_compiler_pic='-qpic'
16235	lt_prog_compiler_static='-qstaticlink'
16236	;;
16237      *)
16238	case `$CC -V 2>&1 | sed 5q` in
16239	*Sun\ F* | *Sun*Fortran*)
16240	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16241	  lt_prog_compiler_pic='-KPIC'
16242	  lt_prog_compiler_static='-Bstatic'
16243	  lt_prog_compiler_wl=''
16244	  ;;
16245	*Sun\ C*)
16246	  # Sun C 5.9
16247	  lt_prog_compiler_pic='-KPIC'
16248	  lt_prog_compiler_static='-Bstatic'
16249	  lt_prog_compiler_wl='-Wl,'
16250	  ;;
16251	esac
16252	;;
16253      esac
16254      ;;
16255
16256    newsos6)
16257      lt_prog_compiler_pic='-KPIC'
16258      lt_prog_compiler_static='-Bstatic'
16259      ;;
16260
16261    *nto* | *qnx*)
16262      # QNX uses GNU C++, but need to define -shared option too, otherwise
16263      # it will coredump.
16264      lt_prog_compiler_pic='-fPIC -shared'
16265      ;;
16266
16267    osf3* | osf4* | osf5*)
16268      lt_prog_compiler_wl='-Wl,'
16269      # All OSF/1 code is PIC.
16270      lt_prog_compiler_static='-non_shared'
16271      ;;
16272
16273    rdos*)
16274      lt_prog_compiler_static='-non_shared'
16275      ;;
16276
16277    solaris*)
16278      lt_prog_compiler_pic='-KPIC'
16279      lt_prog_compiler_static='-Bstatic'
16280      case $cc_basename in
16281      f77* | f90* | f95*)
16282	lt_prog_compiler_wl='-Qoption ld ';;
16283      *)
16284	lt_prog_compiler_wl='-Wl,';;
16285      esac
16286      ;;
16287
16288    sunos4*)
16289      lt_prog_compiler_wl='-Qoption ld '
16290      lt_prog_compiler_pic='-PIC'
16291      lt_prog_compiler_static='-Bstatic'
16292      ;;
16293
16294    sysv4 | sysv4.2uw2* | sysv4.3*)
16295      lt_prog_compiler_wl='-Wl,'
16296      lt_prog_compiler_pic='-KPIC'
16297      lt_prog_compiler_static='-Bstatic'
16298      ;;
16299
16300    sysv4*MP*)
16301      if test -d /usr/nec ;then
16302	lt_prog_compiler_pic='-Kconform_pic'
16303	lt_prog_compiler_static='-Bstatic'
16304      fi
16305      ;;
16306
16307    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16308      lt_prog_compiler_wl='-Wl,'
16309      lt_prog_compiler_pic='-KPIC'
16310      lt_prog_compiler_static='-Bstatic'
16311      ;;
16312
16313    unicos*)
16314      lt_prog_compiler_wl='-Wl,'
16315      lt_prog_compiler_can_build_shared=no
16316      ;;
16317
16318    uts4*)
16319      lt_prog_compiler_pic='-pic'
16320      lt_prog_compiler_static='-Bstatic'
16321      ;;
16322
16323    *)
16324      lt_prog_compiler_can_build_shared=no
16325      ;;
16326    esac
16327  fi
16328
16329case $host_os in
16330  # For platforms which do not support PIC, -DPIC is meaningless:
16331  *djgpp*)
16332    lt_prog_compiler_pic=
16333    ;;
16334  *)
16335    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16336    ;;
16337esac
16338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16339$as_echo "$lt_prog_compiler_pic" >&6; }
16340
16341
16342
16343
16344
16345
16346#
16347# Check to make sure the PIC flag actually works.
16348#
16349if test -n "$lt_prog_compiler_pic"; then
16350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16351$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16352if ${lt_cv_prog_compiler_pic_works+:} false; then :
16353  $as_echo_n "(cached) " >&6
16354else
16355  lt_cv_prog_compiler_pic_works=no
16356   ac_outfile=conftest.$ac_objext
16357   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16358   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16359   # Insert the option either (1) after the last *FLAGS variable, or
16360   # (2) before a word containing "conftest.", or (3) at the end.
16361   # Note that $ac_compile itself does not contain backslashes and begins
16362   # with a dollar sign (not a hyphen), so the echo should work correctly.
16363   # The option is referenced via a variable to avoid confusing sed.
16364   lt_compile=`echo "$ac_compile" | $SED \
16365   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16366   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16367   -e 's:$: $lt_compiler_flag:'`
16368   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16369   (eval "$lt_compile" 2>conftest.err)
16370   ac_status=$?
16371   cat conftest.err >&5
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   if (exit $ac_status) && test -s "$ac_outfile"; then
16374     # The compiler can only warn and ignore the option if not recognized
16375     # So say no if there are warnings other than the usual output.
16376     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16377     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16378     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16379       lt_cv_prog_compiler_pic_works=yes
16380     fi
16381   fi
16382   $RM conftest*
16383
16384fi
16385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16386$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16387
16388if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16389    case $lt_prog_compiler_pic in
16390     "" | " "*) ;;
16391     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16392     esac
16393else
16394    lt_prog_compiler_pic=
16395     lt_prog_compiler_can_build_shared=no
16396fi
16397
16398fi
16399
16400
16401
16402
16403
16404
16405#
16406# Check to make sure the static flag actually works.
16407#
16408wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16410$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16411if ${lt_cv_prog_compiler_static_works+:} false; then :
16412  $as_echo_n "(cached) " >&6
16413else
16414  lt_cv_prog_compiler_static_works=no
16415   save_LDFLAGS="$LDFLAGS"
16416   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16417   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16418   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16419     # The linker can only warn and ignore the option if not recognized
16420     # So say no if there are warnings
16421     if test -s conftest.err; then
16422       # Append any errors to the config.log.
16423       cat conftest.err 1>&5
16424       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16425       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16426       if diff conftest.exp conftest.er2 >/dev/null; then
16427         lt_cv_prog_compiler_static_works=yes
16428       fi
16429     else
16430       lt_cv_prog_compiler_static_works=yes
16431     fi
16432   fi
16433   $RM -r conftest*
16434   LDFLAGS="$save_LDFLAGS"
16435
16436fi
16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16438$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16439
16440if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16441    :
16442else
16443    lt_prog_compiler_static=
16444fi
16445
16446
16447
16448
16449
16450
16451
16452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16453$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16454if ${lt_cv_prog_compiler_c_o+:} false; then :
16455  $as_echo_n "(cached) " >&6
16456else
16457  lt_cv_prog_compiler_c_o=no
16458   $RM -r conftest 2>/dev/null
16459   mkdir conftest
16460   cd conftest
16461   mkdir out
16462   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16463
16464   lt_compiler_flag="-o out/conftest2.$ac_objext"
16465   # Insert the option either (1) after the last *FLAGS variable, or
16466   # (2) before a word containing "conftest.", or (3) at the end.
16467   # Note that $ac_compile itself does not contain backslashes and begins
16468   # with a dollar sign (not a hyphen), so the echo should work correctly.
16469   lt_compile=`echo "$ac_compile" | $SED \
16470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16472   -e 's:$: $lt_compiler_flag:'`
16473   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16474   (eval "$lt_compile" 2>out/conftest.err)
16475   ac_status=$?
16476   cat out/conftest.err >&5
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16479   then
16480     # The compiler can only warn and ignore the option if not recognized
16481     # So say no if there are warnings
16482     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16483     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16484     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16485       lt_cv_prog_compiler_c_o=yes
16486     fi
16487   fi
16488   chmod u+w . 2>&5
16489   $RM conftest*
16490   # SGI C++ compiler will create directory out/ii_files/ for
16491   # template instantiation
16492   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16493   $RM out/* && rmdir out
16494   cd ..
16495   $RM -r conftest
16496   $RM conftest*
16497
16498fi
16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16500$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16501
16502
16503
16504
16505
16506
16507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16508$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16509if ${lt_cv_prog_compiler_c_o+:} false; then :
16510  $as_echo_n "(cached) " >&6
16511else
16512  lt_cv_prog_compiler_c_o=no
16513   $RM -r conftest 2>/dev/null
16514   mkdir conftest
16515   cd conftest
16516   mkdir out
16517   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16518
16519   lt_compiler_flag="-o out/conftest2.$ac_objext"
16520   # Insert the option either (1) after the last *FLAGS variable, or
16521   # (2) before a word containing "conftest.", or (3) at the end.
16522   # Note that $ac_compile itself does not contain backslashes and begins
16523   # with a dollar sign (not a hyphen), so the echo should work correctly.
16524   lt_compile=`echo "$ac_compile" | $SED \
16525   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16526   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16527   -e 's:$: $lt_compiler_flag:'`
16528   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16529   (eval "$lt_compile" 2>out/conftest.err)
16530   ac_status=$?
16531   cat out/conftest.err >&5
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16534   then
16535     # The compiler can only warn and ignore the option if not recognized
16536     # So say no if there are warnings
16537     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16538     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16539     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16540       lt_cv_prog_compiler_c_o=yes
16541     fi
16542   fi
16543   chmod u+w . 2>&5
16544   $RM conftest*
16545   # SGI C++ compiler will create directory out/ii_files/ for
16546   # template instantiation
16547   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16548   $RM out/* && rmdir out
16549   cd ..
16550   $RM -r conftest
16551   $RM conftest*
16552
16553fi
16554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16555$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16556
16557
16558
16559
16560hard_links="nottested"
16561if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16562  # do not overwrite the value of need_locks provided by the user
16563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16564$as_echo_n "checking if we can lock with hard links... " >&6; }
16565  hard_links=yes
16566  $RM conftest*
16567  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16568  touch conftest.a
16569  ln conftest.a conftest.b 2>&5 || hard_links=no
16570  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16572$as_echo "$hard_links" >&6; }
16573  if test "$hard_links" = no; then
16574    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16575$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16576    need_locks=warn
16577  fi
16578else
16579  need_locks=no
16580fi
16581
16582
16583
16584
16585
16586
16587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16588$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16589
16590  runpath_var=
16591  allow_undefined_flag=
16592  always_export_symbols=no
16593  archive_cmds=
16594  archive_expsym_cmds=
16595  compiler_needs_object=no
16596  enable_shared_with_static_runtimes=no
16597  export_dynamic_flag_spec=
16598  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16599  hardcode_automatic=no
16600  hardcode_direct=no
16601  hardcode_direct_absolute=no
16602  hardcode_libdir_flag_spec=
16603  hardcode_libdir_flag_spec_ld=
16604  hardcode_libdir_separator=
16605  hardcode_minus_L=no
16606  hardcode_shlibpath_var=unsupported
16607  inherit_rpath=no
16608  link_all_deplibs=unknown
16609  module_cmds=
16610  module_expsym_cmds=
16611  old_archive_from_new_cmds=
16612  old_archive_from_expsyms_cmds=
16613  thread_safe_flag_spec=
16614  whole_archive_flag_spec=
16615  # include_expsyms should be a list of space-separated symbols to be *always*
16616  # included in the symbol list
16617  include_expsyms=
16618  # exclude_expsyms can be an extended regexp of symbols to exclude
16619  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16620  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16621  # as well as any symbol that contains `d'.
16622  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16623  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16624  # platforms (ab)use it in PIC code, but their linkers get confused if
16625  # the symbol is explicitly referenced.  Since portable code cannot
16626  # rely on this symbol name, it's probably fine to never include it in
16627  # preloaded symbol tables.
16628  # Exclude shared library initialization/finalization symbols.
16629  extract_expsyms_cmds=
16630
16631  case $host_os in
16632  cygwin* | mingw* | pw32* | cegcc*)
16633    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16634    # When not using gcc, we currently assume that we are using
16635    # Microsoft Visual C++.
16636    if test "$GCC" != yes; then
16637      with_gnu_ld=no
16638    fi
16639    ;;
16640  interix*)
16641    # we just hope/assume this is gcc and not c89 (= MSVC++)
16642    with_gnu_ld=yes
16643    ;;
16644  openbsd*)
16645    with_gnu_ld=no
16646    ;;
16647  esac
16648
16649  ld_shlibs=yes
16650
16651  # On some targets, GNU ld is compatible enough with the native linker
16652  # that we're better off using the native interface for both.
16653  lt_use_gnu_ld_interface=no
16654  if test "$with_gnu_ld" = yes; then
16655    case $host_os in
16656      aix*)
16657	# The AIX port of GNU ld has always aspired to compatibility
16658	# with the native linker.  However, as the warning in the GNU ld
16659	# block says, versions before 2.19.5* couldn't really create working
16660	# shared libraries, regardless of the interface used.
16661	case `$LD -v 2>&1` in
16662	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16663	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16664	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16665	  *)
16666	    lt_use_gnu_ld_interface=yes
16667	    ;;
16668	esac
16669	;;
16670      *)
16671	lt_use_gnu_ld_interface=yes
16672	;;
16673    esac
16674  fi
16675
16676  if test "$lt_use_gnu_ld_interface" = yes; then
16677    # If archive_cmds runs LD, not CC, wlarc should be empty
16678    wlarc='${wl}'
16679
16680    # Set some defaults for GNU ld with shared library support. These
16681    # are reset later if shared libraries are not supported. Putting them
16682    # here allows them to be overridden if necessary.
16683    runpath_var=LD_RUN_PATH
16684    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16685    export_dynamic_flag_spec='${wl}--export-dynamic'
16686    # ancient GNU ld didn't support --whole-archive et. al.
16687    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16688      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16689    else
16690      whole_archive_flag_spec=
16691    fi
16692    supports_anon_versioning=no
16693    case `$LD -v 2>&1` in
16694      *GNU\ gold*) supports_anon_versioning=yes ;;
16695      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16696      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16697      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16698      *\ 2.11.*) ;; # other 2.11 versions
16699      *) supports_anon_versioning=yes ;;
16700    esac
16701
16702    # See if GNU ld supports shared libraries.
16703    case $host_os in
16704    aix[3-9]*)
16705      # On AIX/PPC, the GNU linker is very broken
16706      if test "$host_cpu" != ia64; then
16707	ld_shlibs=no
16708	cat <<_LT_EOF 1>&2
16709
16710*** Warning: the GNU linker, at least up to release 2.19, is reported
16711*** to be unable to reliably create shared libraries on AIX.
16712*** Therefore, libtool is disabling shared libraries support.  If you
16713*** really care for shared libraries, you may want to install binutils
16714*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16715*** You will then need to restart the configuration process.
16716
16717_LT_EOF
16718      fi
16719      ;;
16720
16721    amigaos*)
16722      case $host_cpu in
16723      powerpc)
16724            # see comment about AmigaOS4 .so support
16725            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16726            archive_expsym_cmds=''
16727        ;;
16728      m68k)
16729            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)'
16730            hardcode_libdir_flag_spec='-L$libdir'
16731            hardcode_minus_L=yes
16732        ;;
16733      esac
16734      ;;
16735
16736    beos*)
16737      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16738	allow_undefined_flag=unsupported
16739	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16740	# support --undefined.  This deserves some investigation.  FIXME
16741	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16742      else
16743	ld_shlibs=no
16744      fi
16745      ;;
16746
16747    cygwin* | mingw* | pw32* | cegcc*)
16748      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16749      # as there is no search path for DLLs.
16750      hardcode_libdir_flag_spec='-L$libdir'
16751      export_dynamic_flag_spec='${wl}--export-all-symbols'
16752      allow_undefined_flag=unsupported
16753      always_export_symbols=no
16754      enable_shared_with_static_runtimes=yes
16755      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16756
16757      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16758        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16759	# If the export-symbols file already is a .def file (1st line
16760	# is EXPORTS), use it as is; otherwise, prepend...
16761	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16762	  cp $export_symbols $output_objdir/$soname.def;
16763	else
16764	  echo EXPORTS > $output_objdir/$soname.def;
16765	  cat $export_symbols >> $output_objdir/$soname.def;
16766	fi~
16767	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16768      else
16769	ld_shlibs=no
16770      fi
16771      ;;
16772
16773    haiku*)
16774      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16775      link_all_deplibs=yes
16776      ;;
16777
16778    interix[3-9]*)
16779      hardcode_direct=no
16780      hardcode_shlibpath_var=no
16781      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16782      export_dynamic_flag_spec='${wl}-E'
16783      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16784      # Instead, shared libraries are loaded at an image base (0x10000000 by
16785      # default) and relocated if they conflict, which is a slow very memory
16786      # consuming and fragmenting process.  To avoid this, we pick a random,
16787      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16788      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16789      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16790      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'
16791      ;;
16792
16793    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16794      tmp_diet=no
16795      if test "$host_os" = linux-dietlibc; then
16796	case $cc_basename in
16797	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16798	esac
16799      fi
16800      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16801	 && test "$tmp_diet" = no
16802      then
16803	tmp_addflag=' $pic_flag'
16804	tmp_sharedflag='-shared'
16805	case $cc_basename,$host_cpu in
16806        pgcc*)				# Portland Group C compiler
16807	  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'
16808	  tmp_addflag=' $pic_flag'
16809	  ;;
16810	pgf77* | pgf90* | pgf95* | pgfortran*)
16811					# Portland Group f77 and f90 compilers
16812	  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'
16813	  tmp_addflag=' $pic_flag -Mnomain' ;;
16814	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16815	  tmp_addflag=' -i_dynamic' ;;
16816	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16817	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16818	ifc* | ifort*)			# Intel Fortran compiler
16819	  tmp_addflag=' -nofor_main' ;;
16820	lf95*)				# Lahey Fortran 8.1
16821	  whole_archive_flag_spec=
16822	  tmp_sharedflag='--shared' ;;
16823	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16824	  tmp_sharedflag='-qmkshrobj'
16825	  tmp_addflag= ;;
16826	nvcc*)	# Cuda Compiler Driver 2.2
16827	  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'
16828	  compiler_needs_object=yes
16829	  ;;
16830	esac
16831	case `$CC -V 2>&1 | sed 5q` in
16832	*Sun\ C*)			# Sun C 5.9
16833	  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'
16834	  compiler_needs_object=yes
16835	  tmp_sharedflag='-G' ;;
16836	*Sun\ F*)			# Sun Fortran 8.3
16837	  tmp_sharedflag='-G' ;;
16838	esac
16839	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16840
16841        if test "x$supports_anon_versioning" = xyes; then
16842          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16843	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16844	    echo "local: *; };" >> $output_objdir/$libname.ver~
16845	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16846        fi
16847
16848	case $cc_basename in
16849	xlf* | bgf* | bgxlf* | mpixlf*)
16850	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16851	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16852	  hardcode_libdir_flag_spec=
16853	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
16854	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16855	  if test "x$supports_anon_versioning" = xyes; then
16856	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16857	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16858	      echo "local: *; };" >> $output_objdir/$libname.ver~
16859	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16860	  fi
16861	  ;;
16862	esac
16863      else
16864        ld_shlibs=no
16865      fi
16866      ;;
16867
16868    netbsd*)
16869      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16870	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16871	wlarc=
16872      else
16873	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16874	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16875      fi
16876      ;;
16877
16878    solaris*)
16879      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16880	ld_shlibs=no
16881	cat <<_LT_EOF 1>&2
16882
16883*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16884*** create shared libraries on Solaris systems.  Therefore, libtool
16885*** is disabling shared libraries support.  We urge you to upgrade GNU
16886*** binutils to release 2.9.1 or newer.  Another option is to modify
16887*** your PATH or compiler configuration so that the native linker is
16888*** used, and then restart.
16889
16890_LT_EOF
16891      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16892	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16893	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16894      else
16895	ld_shlibs=no
16896      fi
16897      ;;
16898
16899    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16900      case `$LD -v 2>&1` in
16901        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16902	ld_shlibs=no
16903	cat <<_LT_EOF 1>&2
16904
16905*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16906*** reliably create shared libraries on SCO systems.  Therefore, libtool
16907*** is disabling shared libraries support.  We urge you to upgrade GNU
16908*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16909*** your PATH or compiler configuration so that the native linker is
16910*** used, and then restart.
16911
16912_LT_EOF
16913	;;
16914	*)
16915	  # For security reasons, it is highly recommended that you always
16916	  # use absolute paths for naming shared libraries, and exclude the
16917	  # DT_RUNPATH tag from executables and libraries.  But doing so
16918	  # requires that you compile everything twice, which is a pain.
16919	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16920	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16921	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16922	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16923	  else
16924	    ld_shlibs=no
16925	  fi
16926	;;
16927      esac
16928      ;;
16929
16930    sunos4*)
16931      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16932      wlarc=
16933      hardcode_direct=yes
16934      hardcode_shlibpath_var=no
16935      ;;
16936
16937    *)
16938      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16939	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16940	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16941      else
16942	ld_shlibs=no
16943      fi
16944      ;;
16945    esac
16946
16947    if test "$ld_shlibs" = no; then
16948      runpath_var=
16949      hardcode_libdir_flag_spec=
16950      export_dynamic_flag_spec=
16951      whole_archive_flag_spec=
16952    fi
16953  else
16954    # PORTME fill in a description of your system's linker (not GNU ld)
16955    case $host_os in
16956    aix3*)
16957      allow_undefined_flag=unsupported
16958      always_export_symbols=yes
16959      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'
16960      # Note: this linker hardcodes the directories in LIBPATH if there
16961      # are no directories specified by -L.
16962      hardcode_minus_L=yes
16963      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16964	# Neither direct hardcoding nor static linking is supported with a
16965	# broken collect2.
16966	hardcode_direct=unsupported
16967      fi
16968      ;;
16969
16970    aix[4-9]*)
16971      if test "$host_cpu" = ia64; then
16972	# On IA64, the linker does run time linking by default, so we don't
16973	# have to do anything special.
16974	aix_use_runtimelinking=no
16975	exp_sym_flag='-Bexport'
16976	no_entry_flag=""
16977      else
16978	# If we're using GNU nm, then we don't want the "-C" option.
16979	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16980	# Also, AIX nm treats weak defined symbols like other global
16981	# defined symbols, whereas GNU nm marks them as "W".
16982	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16983	  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'
16984	else
16985	  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'
16986	fi
16987	aix_use_runtimelinking=no
16988
16989	# Test if we are trying to use run time linking or normal
16990	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16991	# need to do runtime linking.
16992	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16993	  for ld_flag in $LDFLAGS; do
16994	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16995	    aix_use_runtimelinking=yes
16996	    break
16997	  fi
16998	  done
16999	  ;;
17000	esac
17001
17002	exp_sym_flag='-bexport'
17003	no_entry_flag='-bnoentry'
17004      fi
17005
17006      # When large executables or shared objects are built, AIX ld can
17007      # have problems creating the table of contents.  If linking a library
17008      # or program results in "error TOC overflow" add -mminimal-toc to
17009      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17010      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17011
17012      archive_cmds=''
17013      hardcode_direct=yes
17014      hardcode_direct_absolute=yes
17015      hardcode_libdir_separator=':'
17016      link_all_deplibs=yes
17017      file_list_spec='${wl}-f,'
17018
17019      if test "$GCC" = yes; then
17020	case $host_os in aix4.[012]|aix4.[012].*)
17021	# We only want to do this on AIX 4.2 and lower, the check
17022	# below for broken collect2 doesn't work under 4.3+
17023	  collect2name=`${CC} -print-prog-name=collect2`
17024	  if test -f "$collect2name" &&
17025	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17026	  then
17027	  # We have reworked collect2
17028	  :
17029	  else
17030	  # We have old collect2
17031	  hardcode_direct=unsupported
17032	  # It fails to find uninstalled libraries when the uninstalled
17033	  # path is not listed in the libpath.  Setting hardcode_minus_L
17034	  # to unsupported forces relinking
17035	  hardcode_minus_L=yes
17036	  hardcode_libdir_flag_spec='-L$libdir'
17037	  hardcode_libdir_separator=
17038	  fi
17039	  ;;
17040	esac
17041	shared_flag='-shared'
17042	if test "$aix_use_runtimelinking" = yes; then
17043	  shared_flag="$shared_flag "'${wl}-G'
17044	fi
17045      else
17046	# not using gcc
17047	if test "$host_cpu" = ia64; then
17048	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17049	# chokes on -Wl,-G. The following line is correct:
17050	  shared_flag='-G'
17051	else
17052	  if test "$aix_use_runtimelinking" = yes; then
17053	    shared_flag='${wl}-G'
17054	  else
17055	    shared_flag='${wl}-bM:SRE'
17056	  fi
17057	fi
17058      fi
17059
17060      export_dynamic_flag_spec='${wl}-bexpall'
17061      # It seems that -bexpall does not export symbols beginning with
17062      # underscore (_), so it is better to generate a list of symbols to export.
17063      always_export_symbols=yes
17064      if test "$aix_use_runtimelinking" = yes; then
17065	# Warning - without using the other runtime loading flags (-brtl),
17066	# -berok will link without error, but may produce a broken library.
17067	allow_undefined_flag='-berok'
17068        # Determine the default libpath from the value encoded in an
17069        # empty executable.
17070        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072
17073int
17074main ()
17075{
17076
17077  ;
17078  return 0;
17079}
17080_ACEOF
17081if ac_fn_c_try_link "$LINENO"; then :
17082
17083lt_aix_libpath_sed='
17084    /Import File Strings/,/^$/ {
17085	/^0/ {
17086	    s/^0  *\(.*\)$/\1/
17087	    p
17088	}
17089    }'
17090aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17091# Check for a 64-bit object if we didn't find anything.
17092if test -z "$aix_libpath"; then
17093  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17094fi
17095fi
17096rm -f core conftest.err conftest.$ac_objext \
17097    conftest$ac_exeext conftest.$ac_ext
17098if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17099
17100        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17101        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"
17102      else
17103	if test "$host_cpu" = ia64; then
17104	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17105	  allow_undefined_flag="-z nodefs"
17106	  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"
17107	else
17108	 # Determine the default libpath from the value encoded in an
17109	 # empty executable.
17110	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111/* end confdefs.h.  */
17112
17113int
17114main ()
17115{
17116
17117  ;
17118  return 0;
17119}
17120_ACEOF
17121if ac_fn_c_try_link "$LINENO"; then :
17122
17123lt_aix_libpath_sed='
17124    /Import File Strings/,/^$/ {
17125	/^0/ {
17126	    s/^0  *\(.*\)$/\1/
17127	    p
17128	}
17129    }'
17130aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17131# Check for a 64-bit object if we didn't find anything.
17132if test -z "$aix_libpath"; then
17133  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17134fi
17135fi
17136rm -f core conftest.err conftest.$ac_objext \
17137    conftest$ac_exeext conftest.$ac_ext
17138if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17139
17140	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17141	  # Warning - without using the other run time loading flags,
17142	  # -berok will link without error, but may produce a broken library.
17143	  no_undefined_flag=' ${wl}-bernotok'
17144	  allow_undefined_flag=' ${wl}-berok'
17145	  if test "$with_gnu_ld" = yes; then
17146	    # We only use this code for GNU lds that support --whole-archive.
17147	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17148	  else
17149	    # Exported symbols can be pulled into shared objects from archives
17150	    whole_archive_flag_spec='$convenience'
17151	  fi
17152	  archive_cmds_need_lc=yes
17153	  # This is similar to how AIX traditionally builds its shared libraries.
17154	  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'
17155	fi
17156      fi
17157      ;;
17158
17159    amigaos*)
17160      case $host_cpu in
17161      powerpc)
17162            # see comment about AmigaOS4 .so support
17163            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17164            archive_expsym_cmds=''
17165        ;;
17166      m68k)
17167            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)'
17168            hardcode_libdir_flag_spec='-L$libdir'
17169            hardcode_minus_L=yes
17170        ;;
17171      esac
17172      ;;
17173
17174    bsdi[45]*)
17175      export_dynamic_flag_spec=-rdynamic
17176      ;;
17177
17178    cygwin* | mingw* | pw32* | cegcc*)
17179      # When not using gcc, we currently assume that we are using
17180      # Microsoft Visual C++.
17181      # hardcode_libdir_flag_spec is actually meaningless, as there is
17182      # no search path for DLLs.
17183      hardcode_libdir_flag_spec=' '
17184      allow_undefined_flag=unsupported
17185      # Tell ltmain to make .lib files, not .a files.
17186      libext=lib
17187      # Tell ltmain to make .dll files, not .so files.
17188      shrext_cmds=".dll"
17189      # FIXME: Setting linknames here is a bad hack.
17190      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17191      # The linker will automatically build a .lib file if we build a DLL.
17192      old_archive_from_new_cmds='true'
17193      # FIXME: Should let the user specify the lib program.
17194      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17195      fix_srcfile_path='`cygpath -w "$srcfile"`'
17196      enable_shared_with_static_runtimes=yes
17197      ;;
17198
17199    darwin* | rhapsody*)
17200
17201
17202  archive_cmds_need_lc=no
17203  hardcode_direct=no
17204  hardcode_automatic=yes
17205  hardcode_shlibpath_var=unsupported
17206  if test "$lt_cv_ld_force_load" = "yes"; then
17207    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\"`'
17208  else
17209    whole_archive_flag_spec=''
17210  fi
17211  link_all_deplibs=yes
17212  allow_undefined_flag="$_lt_dar_allow_undefined"
17213  case $cc_basename in
17214     ifort*) _lt_dar_can_shared=yes ;;
17215     *) _lt_dar_can_shared=$GCC ;;
17216  esac
17217  if test "$_lt_dar_can_shared" = "yes"; then
17218    output_verbose_link_cmd=func_echo_all
17219    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17220    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17221    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}"
17222    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}"
17223
17224  else
17225  ld_shlibs=no
17226  fi
17227
17228      ;;
17229
17230    dgux*)
17231      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17232      hardcode_libdir_flag_spec='-L$libdir'
17233      hardcode_shlibpath_var=no
17234      ;;
17235
17236    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17237    # support.  Future versions do this automatically, but an explicit c++rt0.o
17238    # does not break anything, and helps significantly (at the cost of a little
17239    # extra space).
17240    freebsd2.2*)
17241      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17242      hardcode_libdir_flag_spec='-R$libdir'
17243      hardcode_direct=yes
17244      hardcode_shlibpath_var=no
17245      ;;
17246
17247    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17248    freebsd2.*)
17249      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17250      hardcode_direct=yes
17251      hardcode_minus_L=yes
17252      hardcode_shlibpath_var=no
17253      ;;
17254
17255    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17256    freebsd* | dragonfly*)
17257      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17258      hardcode_libdir_flag_spec='-R$libdir'
17259      hardcode_direct=yes
17260      hardcode_shlibpath_var=no
17261      ;;
17262
17263    hpux9*)
17264      if test "$GCC" = yes; then
17265	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'
17266      else
17267	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'
17268      fi
17269      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17270      hardcode_libdir_separator=:
17271      hardcode_direct=yes
17272
17273      # hardcode_minus_L: Not really in the search PATH,
17274      # but as the default location of the library.
17275      hardcode_minus_L=yes
17276      export_dynamic_flag_spec='${wl}-E'
17277      ;;
17278
17279    hpux10*)
17280      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17281	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17282      else
17283	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17284      fi
17285      if test "$with_gnu_ld" = no; then
17286	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17287	hardcode_libdir_flag_spec_ld='+b $libdir'
17288	hardcode_libdir_separator=:
17289	hardcode_direct=yes
17290	hardcode_direct_absolute=yes
17291	export_dynamic_flag_spec='${wl}-E'
17292	# hardcode_minus_L: Not really in the search PATH,
17293	# but as the default location of the library.
17294	hardcode_minus_L=yes
17295      fi
17296      ;;
17297
17298    hpux11*)
17299      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17300	case $host_cpu in
17301	hppa*64*)
17302	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17303	  ;;
17304	ia64*)
17305	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17306	  ;;
17307	*)
17308	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17309	  ;;
17310	esac
17311      else
17312	case $host_cpu in
17313	hppa*64*)
17314	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17315	  ;;
17316	ia64*)
17317	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17318	  ;;
17319	*)
17320
17321	  # Older versions of the 11.00 compiler do not understand -b yet
17322	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17323	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17324$as_echo_n "checking if $CC understands -b... " >&6; }
17325if ${lt_cv_prog_compiler__b+:} false; then :
17326  $as_echo_n "(cached) " >&6
17327else
17328  lt_cv_prog_compiler__b=no
17329   save_LDFLAGS="$LDFLAGS"
17330   LDFLAGS="$LDFLAGS -b"
17331   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17332   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17333     # The linker can only warn and ignore the option if not recognized
17334     # So say no if there are warnings
17335     if test -s conftest.err; then
17336       # Append any errors to the config.log.
17337       cat conftest.err 1>&5
17338       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17339       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17340       if diff conftest.exp conftest.er2 >/dev/null; then
17341         lt_cv_prog_compiler__b=yes
17342       fi
17343     else
17344       lt_cv_prog_compiler__b=yes
17345     fi
17346   fi
17347   $RM -r conftest*
17348   LDFLAGS="$save_LDFLAGS"
17349
17350fi
17351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17352$as_echo "$lt_cv_prog_compiler__b" >&6; }
17353
17354if test x"$lt_cv_prog_compiler__b" = xyes; then
17355    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17356else
17357    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17358fi
17359
17360	  ;;
17361	esac
17362      fi
17363      if test "$with_gnu_ld" = no; then
17364	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17365	hardcode_libdir_separator=:
17366
17367	case $host_cpu in
17368	hppa*64*|ia64*)
17369	  hardcode_direct=no
17370	  hardcode_shlibpath_var=no
17371	  ;;
17372	*)
17373	  hardcode_direct=yes
17374	  hardcode_direct_absolute=yes
17375	  export_dynamic_flag_spec='${wl}-E'
17376
17377	  # hardcode_minus_L: Not really in the search PATH,
17378	  # but as the default location of the library.
17379	  hardcode_minus_L=yes
17380	  ;;
17381	esac
17382      fi
17383      ;;
17384
17385    irix5* | irix6* | nonstopux*)
17386      if test "$GCC" = yes; then
17387	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'
17388	# Try to use the -exported_symbol ld option, if it does not
17389	# work, assume that -exports_file does not work either and
17390	# implicitly export all symbols.
17391        save_LDFLAGS="$LDFLAGS"
17392        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17393        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394/* end confdefs.h.  */
17395int foo(void) {}
17396_ACEOF
17397if ac_fn_c_try_link "$LINENO"; then :
17398  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'
17399
17400fi
17401rm -f core conftest.err conftest.$ac_objext \
17402    conftest$ac_exeext conftest.$ac_ext
17403        LDFLAGS="$save_LDFLAGS"
17404      else
17405	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'
17406	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'
17407      fi
17408      archive_cmds_need_lc='no'
17409      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17410      hardcode_libdir_separator=:
17411      inherit_rpath=yes
17412      link_all_deplibs=yes
17413      ;;
17414
17415    netbsd*)
17416      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17417	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17418      else
17419	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17420      fi
17421      hardcode_libdir_flag_spec='-R$libdir'
17422      hardcode_direct=yes
17423      hardcode_shlibpath_var=no
17424      ;;
17425
17426    newsos6)
17427      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17428      hardcode_direct=yes
17429      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17430      hardcode_libdir_separator=:
17431      hardcode_shlibpath_var=no
17432      ;;
17433
17434    *nto* | *qnx*)
17435      ;;
17436
17437    openbsd*)
17438      if test -f /usr/libexec/ld.so; then
17439	hardcode_direct=yes
17440	hardcode_shlibpath_var=no
17441	hardcode_direct_absolute=yes
17442	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17443	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17444	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17445	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17446	  export_dynamic_flag_spec='${wl}-E'
17447	else
17448	  case $host_os in
17449	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17450	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17451	     hardcode_libdir_flag_spec='-R$libdir'
17452	     ;;
17453	   *)
17454	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17455	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17456	     ;;
17457	  esac
17458	fi
17459      else
17460	ld_shlibs=no
17461      fi
17462      ;;
17463
17464    os2*)
17465      hardcode_libdir_flag_spec='-L$libdir'
17466      hardcode_minus_L=yes
17467      allow_undefined_flag=unsupported
17468      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'
17469      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17470      ;;
17471
17472    osf3*)
17473      if test "$GCC" = yes; then
17474	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17475	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'
17476      else
17477	allow_undefined_flag=' -expect_unresolved \*'
17478	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'
17479      fi
17480      archive_cmds_need_lc='no'
17481      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17482      hardcode_libdir_separator=:
17483      ;;
17484
17485    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17486      if test "$GCC" = yes; then
17487	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17488	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'
17489	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17490      else
17491	allow_undefined_flag=' -expect_unresolved \*'
17492	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'
17493	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~
17494	$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'
17495
17496	# Both c and cxx compiler support -rpath directly
17497	hardcode_libdir_flag_spec='-rpath $libdir'
17498      fi
17499      archive_cmds_need_lc='no'
17500      hardcode_libdir_separator=:
17501      ;;
17502
17503    solaris*)
17504      no_undefined_flag=' -z defs'
17505      if test "$GCC" = yes; then
17506	wlarc='${wl}'
17507	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17508	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17509	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17510      else
17511	case `$CC -V 2>&1` in
17512	*"Compilers 5.0"*)
17513	  wlarc=''
17514	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17515	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17516	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17517	  ;;
17518	*)
17519	  wlarc='${wl}'
17520	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17521	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17522	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17523	  ;;
17524	esac
17525      fi
17526      hardcode_libdir_flag_spec='-R$libdir'
17527      hardcode_shlibpath_var=no
17528      case $host_os in
17529      solaris2.[0-5] | solaris2.[0-5].*) ;;
17530      *)
17531	# The compiler driver will combine and reorder linker options,
17532	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17533	# but is careful enough not to reorder.
17534	# Supported since Solaris 2.6 (maybe 2.5.1?)
17535	if test "$GCC" = yes; then
17536	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17537	else
17538	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17539	fi
17540	;;
17541      esac
17542      link_all_deplibs=yes
17543      ;;
17544
17545    sunos4*)
17546      if test "x$host_vendor" = xsequent; then
17547	# Use $CC to link under sequent, because it throws in some extra .o
17548	# files that make .init and .fini sections work.
17549	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17550      else
17551	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17552      fi
17553      hardcode_libdir_flag_spec='-L$libdir'
17554      hardcode_direct=yes
17555      hardcode_minus_L=yes
17556      hardcode_shlibpath_var=no
17557      ;;
17558
17559    sysv4)
17560      case $host_vendor in
17561	sni)
17562	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17563	  hardcode_direct=yes # is this really true???
17564	;;
17565	siemens)
17566	  ## LD is ld it makes a PLAMLIB
17567	  ## CC just makes a GrossModule.
17568	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17569	  reload_cmds='$CC -r -o $output$reload_objs'
17570	  hardcode_direct=no
17571        ;;
17572	motorola)
17573	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17574	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17575	;;
17576      esac
17577      runpath_var='LD_RUN_PATH'
17578      hardcode_shlibpath_var=no
17579      ;;
17580
17581    sysv4.3*)
17582      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17583      hardcode_shlibpath_var=no
17584      export_dynamic_flag_spec='-Bexport'
17585      ;;
17586
17587    sysv4*MP*)
17588      if test -d /usr/nec; then
17589	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590	hardcode_shlibpath_var=no
17591	runpath_var=LD_RUN_PATH
17592	hardcode_runpath_var=yes
17593	ld_shlibs=yes
17594      fi
17595      ;;
17596
17597    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17598      no_undefined_flag='${wl}-z,text'
17599      archive_cmds_need_lc=no
17600      hardcode_shlibpath_var=no
17601      runpath_var='LD_RUN_PATH'
17602
17603      if test "$GCC" = yes; then
17604	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17605	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17606      else
17607	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17608	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17609      fi
17610      ;;
17611
17612    sysv5* | sco3.2v5* | sco5v6*)
17613      # Note: We can NOT use -z defs as we might desire, because we do not
17614      # link with -lc, and that would cause any symbols used from libc to
17615      # always be unresolved, which means just about no library would
17616      # ever link correctly.  If we're not using GNU ld we use -z text
17617      # though, which does catch some bad symbols but isn't as heavy-handed
17618      # as -z defs.
17619      no_undefined_flag='${wl}-z,text'
17620      allow_undefined_flag='${wl}-z,nodefs'
17621      archive_cmds_need_lc=no
17622      hardcode_shlibpath_var=no
17623      hardcode_libdir_flag_spec='${wl}-R,$libdir'
17624      hardcode_libdir_separator=':'
17625      link_all_deplibs=yes
17626      export_dynamic_flag_spec='${wl}-Bexport'
17627      runpath_var='LD_RUN_PATH'
17628
17629      if test "$GCC" = yes; then
17630	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17631	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17632      else
17633	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17634	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17635      fi
17636      ;;
17637
17638    uts4*)
17639      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17640      hardcode_libdir_flag_spec='-L$libdir'
17641      hardcode_shlibpath_var=no
17642      ;;
17643
17644    *)
17645      ld_shlibs=no
17646      ;;
17647    esac
17648
17649    if test x$host_vendor = xsni; then
17650      case $host in
17651      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17652	export_dynamic_flag_spec='${wl}-Blargedynsym'
17653	;;
17654      esac
17655    fi
17656  fi
17657
17658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17659$as_echo "$ld_shlibs" >&6; }
17660test "$ld_shlibs" = no && can_build_shared=no
17661
17662with_gnu_ld=$with_gnu_ld
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678#
17679# Do we need to explicitly link libc?
17680#
17681case "x$archive_cmds_need_lc" in
17682x|xyes)
17683  # Assume -lc should be added
17684  archive_cmds_need_lc=yes
17685
17686  if test "$enable_shared" = yes && test "$GCC" = yes; then
17687    case $archive_cmds in
17688    *'~'*)
17689      # FIXME: we may have to deal with multi-command sequences.
17690      ;;
17691    '$CC '*)
17692      # Test whether the compiler implicitly links with -lc since on some
17693      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17694      # to ld, don't add -lc before -lgcc.
17695      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17696$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17697if ${lt_cv_archive_cmds_need_lc+:} false; then :
17698  $as_echo_n "(cached) " >&6
17699else
17700  $RM conftest*
17701	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17702
17703	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17704  (eval $ac_compile) 2>&5
17705  ac_status=$?
17706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17707  test $ac_status = 0; } 2>conftest.err; then
17708	  soname=conftest
17709	  lib=conftest
17710	  libobjs=conftest.$ac_objext
17711	  deplibs=
17712	  wl=$lt_prog_compiler_wl
17713	  pic_flag=$lt_prog_compiler_pic
17714	  compiler_flags=-v
17715	  linker_flags=-v
17716	  verstring=
17717	  output_objdir=.
17718	  libname=conftest
17719	  lt_save_allow_undefined_flag=$allow_undefined_flag
17720	  allow_undefined_flag=
17721	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17722  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17723  ac_status=$?
17724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17725  test $ac_status = 0; }
17726	  then
17727	    lt_cv_archive_cmds_need_lc=no
17728	  else
17729	    lt_cv_archive_cmds_need_lc=yes
17730	  fi
17731	  allow_undefined_flag=$lt_save_allow_undefined_flag
17732	else
17733	  cat conftest.err 1>&5
17734	fi
17735	$RM conftest*
17736
17737fi
17738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17739$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17740      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17741      ;;
17742    esac
17743  fi
17744  ;;
17745esac
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
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
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17904$as_echo_n "checking dynamic linker characteristics... " >&6; }
17905
17906if test "$GCC" = yes; then
17907  case $host_os in
17908    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17909    *) lt_awk_arg="/^libraries:/" ;;
17910  esac
17911  case $host_os in
17912    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17913    *) lt_sed_strip_eq="s,=/,/,g" ;;
17914  esac
17915  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17916  case $lt_search_path_spec in
17917  *\;*)
17918    # if the path contains ";" then we assume it to be the separator
17919    # otherwise default to the standard path separator (i.e. ":") - it is
17920    # assumed that no part of a normal pathname contains ";" but that should
17921    # okay in the real world where ";" in dirpaths is itself problematic.
17922    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17923    ;;
17924  *)
17925    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17926    ;;
17927  esac
17928  # Ok, now we have the path, separated by spaces, we can step through it
17929  # and add multilib dir if necessary.
17930  lt_tmp_lt_search_path_spec=
17931  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17932  for lt_sys_path in $lt_search_path_spec; do
17933    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17934      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17935    else
17936      test -d "$lt_sys_path" && \
17937	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17938    fi
17939  done
17940  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17941BEGIN {RS=" "; FS="/|\n";} {
17942  lt_foo="";
17943  lt_count=0;
17944  for (lt_i = NF; lt_i > 0; lt_i--) {
17945    if ($lt_i != "" && $lt_i != ".") {
17946      if ($lt_i == "..") {
17947        lt_count++;
17948      } else {
17949        if (lt_count == 0) {
17950          lt_foo="/" $lt_i lt_foo;
17951        } else {
17952          lt_count--;
17953        }
17954      }
17955    }
17956  }
17957  if (lt_foo != "") { lt_freq[lt_foo]++; }
17958  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17959}'`
17960  # AWK program above erroneously prepends '/' to C:/dos/paths
17961  # for these hosts.
17962  case $host_os in
17963    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17964      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17965  esac
17966  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17967else
17968  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17969fi
17970library_names_spec=
17971libname_spec='lib$name'
17972soname_spec=
17973shrext_cmds=".so"
17974postinstall_cmds=
17975postuninstall_cmds=
17976finish_cmds=
17977finish_eval=
17978shlibpath_var=
17979shlibpath_overrides_runpath=unknown
17980version_type=none
17981dynamic_linker="$host_os ld.so"
17982sys_lib_dlsearch_path_spec="/lib /usr/lib"
17983need_lib_prefix=unknown
17984hardcode_into_libs=no
17985
17986# when you set need_version to no, make sure it does not cause -set_version
17987# flags to be left without arguments
17988need_version=unknown
17989
17990case $host_os in
17991aix3*)
17992  version_type=linux
17993  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17994  shlibpath_var=LIBPATH
17995
17996  # AIX 3 has no versioning support, so we append a major version to the name.
17997  soname_spec='${libname}${release}${shared_ext}$major'
17998  ;;
17999
18000aix[4-9]*)
18001  version_type=linux
18002  need_lib_prefix=no
18003  need_version=no
18004  hardcode_into_libs=yes
18005  if test "$host_cpu" = ia64; then
18006    # AIX 5 supports IA64
18007    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18008    shlibpath_var=LD_LIBRARY_PATH
18009  else
18010    # With GCC up to 2.95.x, collect2 would create an import file
18011    # for dependence libraries.  The import file would start with
18012    # the line `#! .'.  This would cause the generated library to
18013    # depend on `.', always an invalid library.  This was fixed in
18014    # development snapshots of GCC prior to 3.0.
18015    case $host_os in
18016      aix4 | aix4.[01] | aix4.[01].*)
18017      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18018	   echo ' yes '
18019	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18020	:
18021      else
18022	can_build_shared=no
18023      fi
18024      ;;
18025    esac
18026    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18027    # soname into executable. Probably we can add versioning support to
18028    # collect2, so additional links can be useful in future.
18029    if test "$aix_use_runtimelinking" = yes; then
18030      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18031      # instead of lib<name>.a to let people know that these are not
18032      # typical AIX shared libraries.
18033      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034    else
18035      # We preserve .a as extension for shared libraries through AIX4.2
18036      # and later when we are not doing run time linking.
18037      library_names_spec='${libname}${release}.a $libname.a'
18038      soname_spec='${libname}${release}${shared_ext}$major'
18039    fi
18040    shlibpath_var=LIBPATH
18041  fi
18042  ;;
18043
18044amigaos*)
18045  case $host_cpu in
18046  powerpc)
18047    # Since July 2007 AmigaOS4 officially supports .so libraries.
18048    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18049    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18050    ;;
18051  m68k)
18052    library_names_spec='$libname.ixlibrary $libname.a'
18053    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18054    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'
18055    ;;
18056  esac
18057  ;;
18058
18059beos*)
18060  library_names_spec='${libname}${shared_ext}'
18061  dynamic_linker="$host_os ld.so"
18062  shlibpath_var=LIBRARY_PATH
18063  ;;
18064
18065bsdi[45]*)
18066  version_type=linux
18067  need_version=no
18068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069  soname_spec='${libname}${release}${shared_ext}$major'
18070  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18071  shlibpath_var=LD_LIBRARY_PATH
18072  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18073  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18074  # the default ld.so.conf also contains /usr/contrib/lib and
18075  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18076  # libtool to hard-code these into programs
18077  ;;
18078
18079cygwin* | mingw* | pw32* | cegcc*)
18080  version_type=windows
18081  shrext_cmds=".dll"
18082  need_version=no
18083  need_lib_prefix=no
18084
18085  case $GCC,$host_os in
18086  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18087    library_names_spec='$libname.dll.a'
18088    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18089    postinstall_cmds='base_file=`basename \${file}`~
18090      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18091      dldir=$destdir/`dirname \$dlpath`~
18092      test -d \$dldir || mkdir -p \$dldir~
18093      $install_prog $dir/$dlname \$dldir/$dlname~
18094      chmod a+x \$dldir/$dlname~
18095      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18096        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18097      fi'
18098    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18099      dlpath=$dir/\$dldll~
18100       $RM \$dlpath'
18101    shlibpath_overrides_runpath=yes
18102
18103    case $host_os in
18104    cygwin*)
18105      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18106      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18107
18108      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18109      ;;
18110    mingw* | cegcc*)
18111      # MinGW DLLs use traditional 'lib' prefix
18112      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18113      ;;
18114    pw32*)
18115      # pw32 DLLs use 'pw' prefix rather than 'lib'
18116      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18117      ;;
18118    esac
18119    ;;
18120
18121  *)
18122    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18123    ;;
18124  esac
18125  dynamic_linker='Win32 ld.exe'
18126  # FIXME: first we should search . and the directory the executable is in
18127  shlibpath_var=PATH
18128  ;;
18129
18130darwin* | rhapsody*)
18131  dynamic_linker="$host_os dyld"
18132  version_type=darwin
18133  need_lib_prefix=no
18134  need_version=no
18135  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18136  soname_spec='${libname}${release}${major}$shared_ext'
18137  shlibpath_overrides_runpath=yes
18138  shlibpath_var=DYLD_LIBRARY_PATH
18139  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18140
18141  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18142  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18143  ;;
18144
18145dgux*)
18146  version_type=linux
18147  need_lib_prefix=no
18148  need_version=no
18149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18150  soname_spec='${libname}${release}${shared_ext}$major'
18151  shlibpath_var=LD_LIBRARY_PATH
18152  ;;
18153
18154freebsd* | dragonfly*)
18155  # DragonFly does not have aout.  When/if they implement a new
18156  # versioning mechanism, adjust this.
18157  if test -x /usr/bin/objformat; then
18158    objformat=`/usr/bin/objformat`
18159  else
18160    case $host_os in
18161    freebsd[23].*) objformat=aout ;;
18162    *) objformat=elf ;;
18163    esac
18164  fi
18165  version_type=freebsd-$objformat
18166  case $version_type in
18167    freebsd-elf*)
18168      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18169      need_version=no
18170      need_lib_prefix=no
18171      ;;
18172    freebsd-*)
18173      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18174      need_version=yes
18175      ;;
18176  esac
18177  shlibpath_var=LD_LIBRARY_PATH
18178  case $host_os in
18179  freebsd2.*)
18180    shlibpath_overrides_runpath=yes
18181    ;;
18182  freebsd3.[01]* | freebsdelf3.[01]*)
18183    shlibpath_overrides_runpath=yes
18184    hardcode_into_libs=yes
18185    ;;
18186  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18187  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18188    shlibpath_overrides_runpath=no
18189    hardcode_into_libs=yes
18190    ;;
18191  *) # from 4.6 on, and DragonFly
18192    shlibpath_overrides_runpath=yes
18193    hardcode_into_libs=yes
18194    ;;
18195  esac
18196  ;;
18197
18198gnu*)
18199  version_type=linux
18200  need_lib_prefix=no
18201  need_version=no
18202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18203  soname_spec='${libname}${release}${shared_ext}$major'
18204  shlibpath_var=LD_LIBRARY_PATH
18205  hardcode_into_libs=yes
18206  ;;
18207
18208haiku*)
18209  version_type=linux
18210  need_lib_prefix=no
18211  need_version=no
18212  dynamic_linker="$host_os runtime_loader"
18213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18214  soname_spec='${libname}${release}${shared_ext}$major'
18215  shlibpath_var=LIBRARY_PATH
18216  shlibpath_overrides_runpath=yes
18217  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18218  hardcode_into_libs=yes
18219  ;;
18220
18221hpux9* | hpux10* | hpux11*)
18222  # Give a soname corresponding to the major version so that dld.sl refuses to
18223  # link against other versions.
18224  version_type=sunos
18225  need_lib_prefix=no
18226  need_version=no
18227  case $host_cpu in
18228  ia64*)
18229    shrext_cmds='.so'
18230    hardcode_into_libs=yes
18231    dynamic_linker="$host_os dld.so"
18232    shlibpath_var=LD_LIBRARY_PATH
18233    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18234    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235    soname_spec='${libname}${release}${shared_ext}$major'
18236    if test "X$HPUX_IA64_MODE" = X32; then
18237      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18238    else
18239      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18240    fi
18241    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18242    ;;
18243  hppa*64*)
18244    shrext_cmds='.sl'
18245    hardcode_into_libs=yes
18246    dynamic_linker="$host_os dld.sl"
18247    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18248    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18249    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250    soname_spec='${libname}${release}${shared_ext}$major'
18251    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18252    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18253    ;;
18254  *)
18255    shrext_cmds='.sl'
18256    dynamic_linker="$host_os dld.sl"
18257    shlibpath_var=SHLIB_PATH
18258    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18259    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260    soname_spec='${libname}${release}${shared_ext}$major'
18261    ;;
18262  esac
18263  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18264  postinstall_cmds='chmod 555 $lib'
18265  # or fails outright, so override atomically:
18266  install_override_mode=555
18267  ;;
18268
18269interix[3-9]*)
18270  version_type=linux
18271  need_lib_prefix=no
18272  need_version=no
18273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18274  soname_spec='${libname}${release}${shared_ext}$major'
18275  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18276  shlibpath_var=LD_LIBRARY_PATH
18277  shlibpath_overrides_runpath=no
18278  hardcode_into_libs=yes
18279  ;;
18280
18281irix5* | irix6* | nonstopux*)
18282  case $host_os in
18283    nonstopux*) version_type=nonstopux ;;
18284    *)
18285	if test "$lt_cv_prog_gnu_ld" = yes; then
18286		version_type=linux
18287	else
18288		version_type=irix
18289	fi ;;
18290  esac
18291  need_lib_prefix=no
18292  need_version=no
18293  soname_spec='${libname}${release}${shared_ext}$major'
18294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18295  case $host_os in
18296  irix5* | nonstopux*)
18297    libsuff= shlibsuff=
18298    ;;
18299  *)
18300    case $LD in # libtool.m4 will add one of these switches to LD
18301    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18302      libsuff= shlibsuff= libmagic=32-bit;;
18303    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18304      libsuff=32 shlibsuff=N32 libmagic=N32;;
18305    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18306      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18307    *) libsuff= shlibsuff= libmagic=never-match;;
18308    esac
18309    ;;
18310  esac
18311  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18312  shlibpath_overrides_runpath=no
18313  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18314  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18315  hardcode_into_libs=yes
18316  ;;
18317
18318# No shared lib support for Linux oldld, aout, or coff.
18319linux*oldld* | linux*aout* | linux*coff*)
18320  dynamic_linker=no
18321  ;;
18322
18323# This must be Linux ELF.
18324
18325# uclinux* changes (here and below) have been submitted to the libtool
18326# project, but have not yet been accepted: they are GCC-local changes
18327# for the time being.  (See
18328# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18329linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18330  version_type=linux
18331  need_lib_prefix=no
18332  need_version=no
18333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18334  soname_spec='${libname}${release}${shared_ext}$major'
18335  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18336  shlibpath_var=LD_LIBRARY_PATH
18337  shlibpath_overrides_runpath=no
18338
18339  # Some binutils ld are patched to set DT_RUNPATH
18340  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18341  $as_echo_n "(cached) " >&6
18342else
18343  lt_cv_shlibpath_overrides_runpath=no
18344    save_LDFLAGS=$LDFLAGS
18345    save_libdir=$libdir
18346    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18347	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18348    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349/* end confdefs.h.  */
18350
18351int
18352main ()
18353{
18354
18355  ;
18356  return 0;
18357}
18358_ACEOF
18359if ac_fn_c_try_link "$LINENO"; then :
18360  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18361  lt_cv_shlibpath_overrides_runpath=yes
18362fi
18363fi
18364rm -f core conftest.err conftest.$ac_objext \
18365    conftest$ac_exeext conftest.$ac_ext
18366    LDFLAGS=$save_LDFLAGS
18367    libdir=$save_libdir
18368
18369fi
18370
18371  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18372
18373  # This implies no fast_install, which is unacceptable.
18374  # Some rework will be needed to allow for fast_install
18375  # before this can be enabled.
18376  hardcode_into_libs=yes
18377
18378  # Append ld.so.conf contents to the search path
18379  if test -f /etc/ld.so.conf; then
18380    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' ' '`
18381    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18382  fi
18383
18384  # We used to test for /lib/ld.so.1 and disable shared libraries on
18385  # powerpc, because MkLinux only supported shared libraries with the
18386  # GNU dynamic linker.  Since this was broken with cross compilers,
18387  # most powerpc-linux boxes support dynamic linking these days and
18388  # people can always --disable-shared, the test was removed, and we
18389  # assume the GNU/Linux dynamic linker is in use.
18390  dynamic_linker='GNU/Linux ld.so'
18391  ;;
18392
18393netbsd*)
18394  version_type=sunos
18395  need_lib_prefix=no
18396  need_version=no
18397  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18398    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18399    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18400    dynamic_linker='NetBSD (a.out) ld.so'
18401  else
18402    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18403    soname_spec='${libname}${release}${shared_ext}$major'
18404    dynamic_linker='NetBSD ld.elf_so'
18405  fi
18406  shlibpath_var=LD_LIBRARY_PATH
18407  shlibpath_overrides_runpath=yes
18408  hardcode_into_libs=yes
18409  ;;
18410
18411newsos6)
18412  version_type=linux
18413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414  shlibpath_var=LD_LIBRARY_PATH
18415  shlibpath_overrides_runpath=yes
18416  ;;
18417
18418*nto* | *qnx*)
18419  version_type=qnx
18420  need_lib_prefix=no
18421  need_version=no
18422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423  soname_spec='${libname}${release}${shared_ext}$major'
18424  shlibpath_var=LD_LIBRARY_PATH
18425  shlibpath_overrides_runpath=no
18426  hardcode_into_libs=yes
18427  dynamic_linker='ldqnx.so'
18428  ;;
18429
18430openbsd*)
18431  version_type=sunos
18432  sys_lib_dlsearch_path_spec="/usr/lib"
18433  need_lib_prefix=no
18434  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18435  case $host_os in
18436    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18437    *)				need_version=no  ;;
18438  esac
18439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18440  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18441  shlibpath_var=LD_LIBRARY_PATH
18442  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18443    case $host_os in
18444      openbsd2.[89] | openbsd2.[89].*)
18445	shlibpath_overrides_runpath=no
18446	;;
18447      *)
18448	shlibpath_overrides_runpath=yes
18449	;;
18450      esac
18451  else
18452    shlibpath_overrides_runpath=yes
18453  fi
18454  ;;
18455
18456os2*)
18457  libname_spec='$name'
18458  shrext_cmds=".dll"
18459  need_lib_prefix=no
18460  library_names_spec='$libname${shared_ext} $libname.a'
18461  dynamic_linker='OS/2 ld.exe'
18462  shlibpath_var=LIBPATH
18463  ;;
18464
18465osf3* | osf4* | osf5*)
18466  version_type=osf
18467  need_lib_prefix=no
18468  need_version=no
18469  soname_spec='${libname}${release}${shared_ext}$major'
18470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471  shlibpath_var=LD_LIBRARY_PATH
18472  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18473  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18474  ;;
18475
18476rdos*)
18477  dynamic_linker=no
18478  ;;
18479
18480solaris*)
18481  version_type=linux
18482  need_lib_prefix=no
18483  need_version=no
18484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18485  soname_spec='${libname}${release}${shared_ext}$major'
18486  shlibpath_var=LD_LIBRARY_PATH
18487  shlibpath_overrides_runpath=yes
18488  hardcode_into_libs=yes
18489  # ldd complains unless libraries are executable
18490  postinstall_cmds='chmod +x $lib'
18491  ;;
18492
18493sunos4*)
18494  version_type=sunos
18495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18496  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18497  shlibpath_var=LD_LIBRARY_PATH
18498  shlibpath_overrides_runpath=yes
18499  if test "$with_gnu_ld" = yes; then
18500    need_lib_prefix=no
18501  fi
18502  need_version=yes
18503  ;;
18504
18505sysv4 | sysv4.3*)
18506  version_type=linux
18507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18508  soname_spec='${libname}${release}${shared_ext}$major'
18509  shlibpath_var=LD_LIBRARY_PATH
18510  case $host_vendor in
18511    sni)
18512      shlibpath_overrides_runpath=no
18513      need_lib_prefix=no
18514      runpath_var=LD_RUN_PATH
18515      ;;
18516    siemens)
18517      need_lib_prefix=no
18518      ;;
18519    motorola)
18520      need_lib_prefix=no
18521      need_version=no
18522      shlibpath_overrides_runpath=no
18523      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18524      ;;
18525  esac
18526  ;;
18527
18528sysv4*MP*)
18529  if test -d /usr/nec ;then
18530    version_type=linux
18531    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18532    soname_spec='$libname${shared_ext}.$major'
18533    shlibpath_var=LD_LIBRARY_PATH
18534  fi
18535  ;;
18536
18537sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18538  version_type=freebsd-elf
18539  need_lib_prefix=no
18540  need_version=no
18541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18542  soname_spec='${libname}${release}${shared_ext}$major'
18543  shlibpath_var=LD_LIBRARY_PATH
18544  shlibpath_overrides_runpath=yes
18545  hardcode_into_libs=yes
18546  if test "$with_gnu_ld" = yes; then
18547    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18548  else
18549    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18550    case $host_os in
18551      sco3.2v5*)
18552        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18553	;;
18554    esac
18555  fi
18556  sys_lib_dlsearch_path_spec='/usr/lib'
18557  ;;
18558
18559tpf*)
18560  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18561  version_type=linux
18562  need_lib_prefix=no
18563  need_version=no
18564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18565  shlibpath_var=LD_LIBRARY_PATH
18566  shlibpath_overrides_runpath=no
18567  hardcode_into_libs=yes
18568  ;;
18569
18570uts4*)
18571  version_type=linux
18572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573  soname_spec='${libname}${release}${shared_ext}$major'
18574  shlibpath_var=LD_LIBRARY_PATH
18575  ;;
18576
18577*)
18578  dynamic_linker=no
18579  ;;
18580esac
18581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18582$as_echo "$dynamic_linker" >&6; }
18583test "$dynamic_linker" = no && can_build_shared=no
18584
18585variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18586if test "$GCC" = yes; then
18587  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18588fi
18589
18590if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18591  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18592fi
18593if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18594  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18595fi
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18689$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18690hardcode_action=
18691if test -n "$hardcode_libdir_flag_spec" ||
18692   test -n "$runpath_var" ||
18693   test "X$hardcode_automatic" = "Xyes" ; then
18694
18695  # We can hardcode non-existent directories.
18696  if test "$hardcode_direct" != no &&
18697     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18698     # have to relink, otherwise we might link with an installed library
18699     # when we should be linking with a yet-to-be-installed one
18700     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18701     test "$hardcode_minus_L" != no; then
18702    # Linking always hardcodes the temporary library directory.
18703    hardcode_action=relink
18704  else
18705    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18706    hardcode_action=immediate
18707  fi
18708else
18709  # We cannot hardcode anything, or else we can only hardcode existing
18710  # directories.
18711  hardcode_action=unsupported
18712fi
18713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18714$as_echo "$hardcode_action" >&6; }
18715
18716if test "$hardcode_action" = relink ||
18717   test "$inherit_rpath" = yes; then
18718  # Fast installation is not supported
18719  enable_fast_install=no
18720elif test "$shlibpath_overrides_runpath" = yes ||
18721     test "$enable_shared" = no; then
18722  # Fast installation is not necessary
18723  enable_fast_install=needless
18724fi
18725
18726
18727
18728
18729
18730
18731  if test "x$enable_dlopen" != xyes; then
18732  enable_dlopen=unknown
18733  enable_dlopen_self=unknown
18734  enable_dlopen_self_static=unknown
18735else
18736  lt_cv_dlopen=no
18737  lt_cv_dlopen_libs=
18738
18739  case $host_os in
18740  beos*)
18741    lt_cv_dlopen="load_add_on"
18742    lt_cv_dlopen_libs=
18743    lt_cv_dlopen_self=yes
18744    ;;
18745
18746  mingw* | pw32* | cegcc*)
18747    lt_cv_dlopen="LoadLibrary"
18748    lt_cv_dlopen_libs=
18749    ;;
18750
18751  cygwin*)
18752    lt_cv_dlopen="dlopen"
18753    lt_cv_dlopen_libs=
18754    ;;
18755
18756  darwin*)
18757  # if libdl is installed we need to link against it
18758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18759$as_echo_n "checking for dlopen in -ldl... " >&6; }
18760if ${ac_cv_lib_dl_dlopen+:} false; then :
18761  $as_echo_n "(cached) " >&6
18762else
18763  ac_check_lib_save_LIBS=$LIBS
18764LIBS="-ldl  $LIBS"
18765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766/* end confdefs.h.  */
18767
18768/* Override any GCC internal prototype to avoid an error.
18769   Use char because int might match the return type of a GCC
18770   builtin and then its argument prototype would still apply.  */
18771#ifdef __cplusplus
18772extern "C"
18773#endif
18774char dlopen ();
18775int
18776main ()
18777{
18778return dlopen ();
18779  ;
18780  return 0;
18781}
18782_ACEOF
18783if ac_fn_c_try_link "$LINENO"; then :
18784  ac_cv_lib_dl_dlopen=yes
18785else
18786  ac_cv_lib_dl_dlopen=no
18787fi
18788rm -f core conftest.err conftest.$ac_objext \
18789    conftest$ac_exeext conftest.$ac_ext
18790LIBS=$ac_check_lib_save_LIBS
18791fi
18792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18793$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18794if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18795  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18796else
18797
18798    lt_cv_dlopen="dyld"
18799    lt_cv_dlopen_libs=
18800    lt_cv_dlopen_self=yes
18801
18802fi
18803
18804    ;;
18805
18806  *)
18807    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18808if test "x$ac_cv_func_shl_load" = xyes; then :
18809  lt_cv_dlopen="shl_load"
18810else
18811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18812$as_echo_n "checking for shl_load in -ldld... " >&6; }
18813if ${ac_cv_lib_dld_shl_load+:} false; then :
18814  $as_echo_n "(cached) " >&6
18815else
18816  ac_check_lib_save_LIBS=$LIBS
18817LIBS="-ldld  $LIBS"
18818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819/* end confdefs.h.  */
18820
18821/* Override any GCC internal prototype to avoid an error.
18822   Use char because int might match the return type of a GCC
18823   builtin and then its argument prototype would still apply.  */
18824#ifdef __cplusplus
18825extern "C"
18826#endif
18827char shl_load ();
18828int
18829main ()
18830{
18831return shl_load ();
18832  ;
18833  return 0;
18834}
18835_ACEOF
18836if ac_fn_c_try_link "$LINENO"; then :
18837  ac_cv_lib_dld_shl_load=yes
18838else
18839  ac_cv_lib_dld_shl_load=no
18840fi
18841rm -f core conftest.err conftest.$ac_objext \
18842    conftest$ac_exeext conftest.$ac_ext
18843LIBS=$ac_check_lib_save_LIBS
18844fi
18845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18846$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18847if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18848  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18849else
18850  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18851if test "x$ac_cv_func_dlopen" = xyes; then :
18852  lt_cv_dlopen="dlopen"
18853else
18854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18855$as_echo_n "checking for dlopen in -ldl... " >&6; }
18856if ${ac_cv_lib_dl_dlopen+:} false; then :
18857  $as_echo_n "(cached) " >&6
18858else
18859  ac_check_lib_save_LIBS=$LIBS
18860LIBS="-ldl  $LIBS"
18861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862/* end confdefs.h.  */
18863
18864/* Override any GCC internal prototype to avoid an error.
18865   Use char because int might match the return type of a GCC
18866   builtin and then its argument prototype would still apply.  */
18867#ifdef __cplusplus
18868extern "C"
18869#endif
18870char dlopen ();
18871int
18872main ()
18873{
18874return dlopen ();
18875  ;
18876  return 0;
18877}
18878_ACEOF
18879if ac_fn_c_try_link "$LINENO"; then :
18880  ac_cv_lib_dl_dlopen=yes
18881else
18882  ac_cv_lib_dl_dlopen=no
18883fi
18884rm -f core conftest.err conftest.$ac_objext \
18885    conftest$ac_exeext conftest.$ac_ext
18886LIBS=$ac_check_lib_save_LIBS
18887fi
18888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18889$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18890if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18891  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18892else
18893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18894$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18895if ${ac_cv_lib_svld_dlopen+:} false; then :
18896  $as_echo_n "(cached) " >&6
18897else
18898  ac_check_lib_save_LIBS=$LIBS
18899LIBS="-lsvld  $LIBS"
18900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901/* end confdefs.h.  */
18902
18903/* Override any GCC internal prototype to avoid an error.
18904   Use char because int might match the return type of a GCC
18905   builtin and then its argument prototype would still apply.  */
18906#ifdef __cplusplus
18907extern "C"
18908#endif
18909char dlopen ();
18910int
18911main ()
18912{
18913return dlopen ();
18914  ;
18915  return 0;
18916}
18917_ACEOF
18918if ac_fn_c_try_link "$LINENO"; then :
18919  ac_cv_lib_svld_dlopen=yes
18920else
18921  ac_cv_lib_svld_dlopen=no
18922fi
18923rm -f core conftest.err conftest.$ac_objext \
18924    conftest$ac_exeext conftest.$ac_ext
18925LIBS=$ac_check_lib_save_LIBS
18926fi
18927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18928$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18929if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18930  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18931else
18932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18933$as_echo_n "checking for dld_link in -ldld... " >&6; }
18934if ${ac_cv_lib_dld_dld_link+:} false; then :
18935  $as_echo_n "(cached) " >&6
18936else
18937  ac_check_lib_save_LIBS=$LIBS
18938LIBS="-ldld  $LIBS"
18939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940/* end confdefs.h.  */
18941
18942/* Override any GCC internal prototype to avoid an error.
18943   Use char because int might match the return type of a GCC
18944   builtin and then its argument prototype would still apply.  */
18945#ifdef __cplusplus
18946extern "C"
18947#endif
18948char dld_link ();
18949int
18950main ()
18951{
18952return dld_link ();
18953  ;
18954  return 0;
18955}
18956_ACEOF
18957if ac_fn_c_try_link "$LINENO"; then :
18958  ac_cv_lib_dld_dld_link=yes
18959else
18960  ac_cv_lib_dld_dld_link=no
18961fi
18962rm -f core conftest.err conftest.$ac_objext \
18963    conftest$ac_exeext conftest.$ac_ext
18964LIBS=$ac_check_lib_save_LIBS
18965fi
18966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18967$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18968if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18969  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18970fi
18971
18972
18973fi
18974
18975
18976fi
18977
18978
18979fi
18980
18981
18982fi
18983
18984
18985fi
18986
18987    ;;
18988  esac
18989
18990  if test "x$lt_cv_dlopen" != xno; then
18991    enable_dlopen=yes
18992  else
18993    enable_dlopen=no
18994  fi
18995
18996  case $lt_cv_dlopen in
18997  dlopen)
18998    save_CPPFLAGS="$CPPFLAGS"
18999    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19000
19001    save_LDFLAGS="$LDFLAGS"
19002    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19003
19004    save_LIBS="$LIBS"
19005    LIBS="$lt_cv_dlopen_libs $LIBS"
19006
19007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19008$as_echo_n "checking whether a program can dlopen itself... " >&6; }
19009if ${lt_cv_dlopen_self+:} false; then :
19010  $as_echo_n "(cached) " >&6
19011else
19012  	  if test "$cross_compiling" = yes; then :
19013  lt_cv_dlopen_self=cross
19014else
19015  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19016  lt_status=$lt_dlunknown
19017  cat > conftest.$ac_ext <<_LT_EOF
19018#line 19018 "configure"
19019#include "confdefs.h"
19020
19021#if HAVE_DLFCN_H
19022#include <dlfcn.h>
19023#endif
19024
19025#include <stdio.h>
19026
19027#ifdef RTLD_GLOBAL
19028#  define LT_DLGLOBAL		RTLD_GLOBAL
19029#else
19030#  ifdef DL_GLOBAL
19031#    define LT_DLGLOBAL		DL_GLOBAL
19032#  else
19033#    define LT_DLGLOBAL		0
19034#  endif
19035#endif
19036
19037/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19038   find out it does not work in some platform. */
19039#ifndef LT_DLLAZY_OR_NOW
19040#  ifdef RTLD_LAZY
19041#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19042#  else
19043#    ifdef DL_LAZY
19044#      define LT_DLLAZY_OR_NOW		DL_LAZY
19045#    else
19046#      ifdef RTLD_NOW
19047#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19048#      else
19049#        ifdef DL_NOW
19050#          define LT_DLLAZY_OR_NOW	DL_NOW
19051#        else
19052#          define LT_DLLAZY_OR_NOW	0
19053#        endif
19054#      endif
19055#    endif
19056#  endif
19057#endif
19058
19059/* When -fvisbility=hidden is used, assume the code has been annotated
19060   correspondingly for the symbols needed.  */
19061#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19062void fnord () __attribute__((visibility("default")));
19063#endif
19064
19065void fnord () { int i=42; }
19066int main ()
19067{
19068  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19069  int status = $lt_dlunknown;
19070
19071  if (self)
19072    {
19073      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19074      else
19075        {
19076	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19077          else puts (dlerror ());
19078	}
19079      /* dlclose (self); */
19080    }
19081  else
19082    puts (dlerror ());
19083
19084  return status;
19085}
19086_LT_EOF
19087  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19088  (eval $ac_link) 2>&5
19089  ac_status=$?
19090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19091  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19092    (./conftest; exit; ) >&5 2>/dev/null
19093    lt_status=$?
19094    case x$lt_status in
19095      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19096      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19097      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19098    esac
19099  else :
19100    # compilation failed
19101    lt_cv_dlopen_self=no
19102  fi
19103fi
19104rm -fr conftest*
19105
19106
19107fi
19108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19109$as_echo "$lt_cv_dlopen_self" >&6; }
19110
19111    if test "x$lt_cv_dlopen_self" = xyes; then
19112      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19113      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19114$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19115if ${lt_cv_dlopen_self_static+:} false; then :
19116  $as_echo_n "(cached) " >&6
19117else
19118  	  if test "$cross_compiling" = yes; then :
19119  lt_cv_dlopen_self_static=cross
19120else
19121  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19122  lt_status=$lt_dlunknown
19123  cat > conftest.$ac_ext <<_LT_EOF
19124#line 19124 "configure"
19125#include "confdefs.h"
19126
19127#if HAVE_DLFCN_H
19128#include <dlfcn.h>
19129#endif
19130
19131#include <stdio.h>
19132
19133#ifdef RTLD_GLOBAL
19134#  define LT_DLGLOBAL		RTLD_GLOBAL
19135#else
19136#  ifdef DL_GLOBAL
19137#    define LT_DLGLOBAL		DL_GLOBAL
19138#  else
19139#    define LT_DLGLOBAL		0
19140#  endif
19141#endif
19142
19143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19144   find out it does not work in some platform. */
19145#ifndef LT_DLLAZY_OR_NOW
19146#  ifdef RTLD_LAZY
19147#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19148#  else
19149#    ifdef DL_LAZY
19150#      define LT_DLLAZY_OR_NOW		DL_LAZY
19151#    else
19152#      ifdef RTLD_NOW
19153#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19154#      else
19155#        ifdef DL_NOW
19156#          define LT_DLLAZY_OR_NOW	DL_NOW
19157#        else
19158#          define LT_DLLAZY_OR_NOW	0
19159#        endif
19160#      endif
19161#    endif
19162#  endif
19163#endif
19164
19165/* When -fvisbility=hidden is used, assume the code has been annotated
19166   correspondingly for the symbols needed.  */
19167#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19168void fnord () __attribute__((visibility("default")));
19169#endif
19170
19171void fnord () { int i=42; }
19172int main ()
19173{
19174  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19175  int status = $lt_dlunknown;
19176
19177  if (self)
19178    {
19179      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19180      else
19181        {
19182	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19183          else puts (dlerror ());
19184	}
19185      /* dlclose (self); */
19186    }
19187  else
19188    puts (dlerror ());
19189
19190  return status;
19191}
19192_LT_EOF
19193  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19194  (eval $ac_link) 2>&5
19195  ac_status=$?
19196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19197  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19198    (./conftest; exit; ) >&5 2>/dev/null
19199    lt_status=$?
19200    case x$lt_status in
19201      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19202      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19203      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19204    esac
19205  else :
19206    # compilation failed
19207    lt_cv_dlopen_self_static=no
19208  fi
19209fi
19210rm -fr conftest*
19211
19212
19213fi
19214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19215$as_echo "$lt_cv_dlopen_self_static" >&6; }
19216    fi
19217
19218    CPPFLAGS="$save_CPPFLAGS"
19219    LDFLAGS="$save_LDFLAGS"
19220    LIBS="$save_LIBS"
19221    ;;
19222  esac
19223
19224  case $lt_cv_dlopen_self in
19225  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19226  *) enable_dlopen_self=unknown ;;
19227  esac
19228
19229  case $lt_cv_dlopen_self_static in
19230  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19231  *) enable_dlopen_self_static=unknown ;;
19232  esac
19233fi
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251striplib=
19252old_striplib=
19253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19254$as_echo_n "checking whether stripping libraries is possible... " >&6; }
19255if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19256  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19257  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19259$as_echo "yes" >&6; }
19260else
19261# FIXME - insert some real tests, host_os isn't really good enough
19262  case $host_os in
19263  darwin*)
19264    if test -n "$STRIP" ; then
19265      striplib="$STRIP -x"
19266      old_striplib="$STRIP -S"
19267      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19268$as_echo "yes" >&6; }
19269    else
19270      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19271$as_echo "no" >&6; }
19272    fi
19273    ;;
19274  *)
19275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19276$as_echo "no" >&6; }
19277    ;;
19278  esac
19279fi
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292  # Report which library types will actually be built
19293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19294$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19296$as_echo "$can_build_shared" >&6; }
19297
19298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19299$as_echo_n "checking whether to build shared libraries... " >&6; }
19300  test "$can_build_shared" = "no" && enable_shared=no
19301
19302  # On AIX, shared libraries and static libraries use the same namespace, and
19303  # are all built from PIC.
19304  case $host_os in
19305  aix3*)
19306    test "$enable_shared" = yes && enable_static=no
19307    if test -n "$RANLIB"; then
19308      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19309      postinstall_cmds='$RANLIB $lib'
19310    fi
19311    ;;
19312
19313  aix[4-9]*)
19314    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19315      test "$enable_shared" = yes && enable_static=no
19316    fi
19317    ;;
19318  esac
19319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19320$as_echo "$enable_shared" >&6; }
19321
19322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19323$as_echo_n "checking whether to build static libraries... " >&6; }
19324  # Make sure either enable_shared or enable_static is yes.
19325  test "$enable_shared" = yes || enable_static=yes
19326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19327$as_echo "$enable_static" >&6; }
19328
19329
19330
19331
19332fi
19333ac_ext=cpp
19334ac_cpp='$CXXCPP $CPPFLAGS'
19335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19338
19339CC="$lt_save_CC"
19340
19341      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19342    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19343    (test "X$CXX" != "Xg++"))) ; then
19344  ac_ext=cpp
19345ac_cpp='$CXXCPP $CPPFLAGS'
19346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19350$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19351if test -z "$CXXCPP"; then
19352  if ${ac_cv_prog_CXXCPP+:} false; then :
19353  $as_echo_n "(cached) " >&6
19354else
19355      # Double quotes because CXXCPP needs to be expanded
19356    for CXXCPP in "$CXX -E" "/lib/cpp"
19357    do
19358      ac_preproc_ok=false
19359for ac_cxx_preproc_warn_flag in '' yes
19360do
19361  # Use a header file that comes with gcc, so configuring glibc
19362  # with a fresh cross-compiler works.
19363  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19364  # <limits.h> exists even on freestanding compilers.
19365  # On the NeXT, cc -E runs the code through the compiler's parser,
19366  # not just through cpp. "Syntax error" is here to catch this case.
19367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368/* end confdefs.h.  */
19369#ifdef __STDC__
19370# include <limits.h>
19371#else
19372# include <assert.h>
19373#endif
19374		     Syntax error
19375_ACEOF
19376if ac_fn_cxx_try_cpp "$LINENO"; then :
19377
19378else
19379  # Broken: fails on valid input.
19380continue
19381fi
19382rm -f conftest.err conftest.i conftest.$ac_ext
19383
19384  # OK, works on sane cases.  Now check whether nonexistent headers
19385  # can be detected and how.
19386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19387/* end confdefs.h.  */
19388#include <ac_nonexistent.h>
19389_ACEOF
19390if ac_fn_cxx_try_cpp "$LINENO"; then :
19391  # Broken: success on invalid input.
19392continue
19393else
19394  # Passes both tests.
19395ac_preproc_ok=:
19396break
19397fi
19398rm -f conftest.err conftest.i conftest.$ac_ext
19399
19400done
19401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19402rm -f conftest.i conftest.err conftest.$ac_ext
19403if $ac_preproc_ok; then :
19404  break
19405fi
19406
19407    done
19408    ac_cv_prog_CXXCPP=$CXXCPP
19409
19410fi
19411  CXXCPP=$ac_cv_prog_CXXCPP
19412else
19413  ac_cv_prog_CXXCPP=$CXXCPP
19414fi
19415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19416$as_echo "$CXXCPP" >&6; }
19417ac_preproc_ok=false
19418for ac_cxx_preproc_warn_flag in '' yes
19419do
19420  # Use a header file that comes with gcc, so configuring glibc
19421  # with a fresh cross-compiler works.
19422  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19423  # <limits.h> exists even on freestanding compilers.
19424  # On the NeXT, cc -E runs the code through the compiler's parser,
19425  # not just through cpp. "Syntax error" is here to catch this case.
19426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427/* end confdefs.h.  */
19428#ifdef __STDC__
19429# include <limits.h>
19430#else
19431# include <assert.h>
19432#endif
19433		     Syntax error
19434_ACEOF
19435if ac_fn_cxx_try_cpp "$LINENO"; then :
19436
19437else
19438  # Broken: fails on valid input.
19439continue
19440fi
19441rm -f conftest.err conftest.i conftest.$ac_ext
19442
19443  # OK, works on sane cases.  Now check whether nonexistent headers
19444  # can be detected and how.
19445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446/* end confdefs.h.  */
19447#include <ac_nonexistent.h>
19448_ACEOF
19449if ac_fn_cxx_try_cpp "$LINENO"; then :
19450  # Broken: success on invalid input.
19451continue
19452else
19453  # Passes both tests.
19454ac_preproc_ok=:
19455break
19456fi
19457rm -f conftest.err conftest.i conftest.$ac_ext
19458
19459done
19460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19461rm -f conftest.i conftest.err conftest.$ac_ext
19462if $ac_preproc_ok; then :
19463
19464else
19465  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19467as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19468See \`config.log' for more details" "$LINENO" 5; }
19469fi
19470
19471ac_ext=cpp
19472ac_cpp='$CXXCPP $CPPFLAGS'
19473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19476
19477else
19478  _lt_caught_CXX_error=yes
19479fi
19480
19481ac_ext=cpp
19482ac_cpp='$CXXCPP $CPPFLAGS'
19483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19486
19487archive_cmds_need_lc_CXX=no
19488allow_undefined_flag_CXX=
19489always_export_symbols_CXX=no
19490archive_expsym_cmds_CXX=
19491compiler_needs_object_CXX=no
19492export_dynamic_flag_spec_CXX=
19493hardcode_direct_CXX=no
19494hardcode_direct_absolute_CXX=no
19495hardcode_libdir_flag_spec_CXX=
19496hardcode_libdir_flag_spec_ld_CXX=
19497hardcode_libdir_separator_CXX=
19498hardcode_minus_L_CXX=no
19499hardcode_shlibpath_var_CXX=unsupported
19500hardcode_automatic_CXX=no
19501inherit_rpath_CXX=no
19502module_cmds_CXX=
19503module_expsym_cmds_CXX=
19504link_all_deplibs_CXX=unknown
19505old_archive_cmds_CXX=$old_archive_cmds
19506reload_flag_CXX=$reload_flag
19507reload_cmds_CXX=$reload_cmds
19508no_undefined_flag_CXX=
19509whole_archive_flag_spec_CXX=
19510enable_shared_with_static_runtimes_CXX=no
19511
19512# Source file extension for C++ test sources.
19513ac_ext=cpp
19514
19515# Object file extension for compiled C++ test sources.
19516objext=o
19517objext_CXX=$objext
19518
19519# No sense in running all these tests if we already determined that
19520# the CXX compiler isn't working.  Some variables (like enable_shared)
19521# are currently assumed to apply to all compilers on this platform,
19522# and will be corrupted by setting them based on a non-working compiler.
19523if test "$_lt_caught_CXX_error" != yes; then
19524  # Code to be used in simple compile tests
19525  lt_simple_compile_test_code="int some_variable = 0;"
19526
19527  # Code to be used in simple link tests
19528  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19529
19530  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19531
19532
19533
19534
19535
19536
19537# If no C compiler was specified, use CC.
19538LTCC=${LTCC-"$CC"}
19539
19540# If no C compiler flags were specified, use CFLAGS.
19541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19542
19543# Allow CC to be a program name with arguments.
19544compiler=$CC
19545
19546
19547  # save warnings/boilerplate of simple test code
19548  ac_outfile=conftest.$ac_objext
19549echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19550eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19551_lt_compiler_boilerplate=`cat conftest.err`
19552$RM conftest*
19553
19554  ac_outfile=conftest.$ac_objext
19555echo "$lt_simple_link_test_code" >conftest.$ac_ext
19556eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19557_lt_linker_boilerplate=`cat conftest.err`
19558$RM -r conftest*
19559
19560
19561  # Allow CC to be a program name with arguments.
19562  lt_save_CC=$CC
19563  lt_save_LD=$LD
19564  lt_save_GCC=$GCC
19565  GCC=$GXX
19566  lt_save_with_gnu_ld=$with_gnu_ld
19567  lt_save_path_LD=$lt_cv_path_LD
19568  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19569    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19570  else
19571    $as_unset lt_cv_prog_gnu_ld
19572  fi
19573  if test -n "${lt_cv_path_LDCXX+set}"; then
19574    lt_cv_path_LD=$lt_cv_path_LDCXX
19575  else
19576    $as_unset lt_cv_path_LD
19577  fi
19578  test -z "${LDCXX+set}" || LD=$LDCXX
19579  CC=${CXX-"c++"}
19580  compiler=$CC
19581  compiler_CXX=$CC
19582  for cc_temp in $compiler""; do
19583  case $cc_temp in
19584    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19585    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19586    \-*) ;;
19587    *) break;;
19588  esac
19589done
19590cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19591
19592
19593  if test -n "$compiler"; then
19594    # We don't want -fno-exception when compiling C++ code, so set the
19595    # no_builtin_flag separately
19596    if test "$GXX" = yes; then
19597      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19598    else
19599      lt_prog_compiler_no_builtin_flag_CXX=
19600    fi
19601
19602    if test "$GXX" = yes; then
19603      # Set up default GNU C++ configuration
19604
19605
19606
19607# Check whether --with-gnu-ld was given.
19608if test "${with_gnu_ld+set}" = set; then :
19609  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19610else
19611  with_gnu_ld=no
19612fi
19613
19614ac_prog=ld
19615if test "$GCC" = yes; then
19616  # Check if gcc -print-prog-name=ld gives a path.
19617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19618$as_echo_n "checking for ld used by $CC... " >&6; }
19619  case $host in
19620  *-*-mingw*)
19621    # gcc leaves a trailing carriage return which upsets mingw
19622    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19623  *)
19624    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19625  esac
19626  case $ac_prog in
19627    # Accept absolute paths.
19628    [\\/]* | ?:[\\/]*)
19629      re_direlt='/[^/][^/]*/\.\./'
19630      # Canonicalize the pathname of ld
19631      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19632      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19633	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19634      done
19635      test -z "$LD" && LD="$ac_prog"
19636      ;;
19637  "")
19638    # If it fails, then pretend we aren't using GCC.
19639    ac_prog=ld
19640    ;;
19641  *)
19642    # If it is relative, then search for the first ld in PATH.
19643    with_gnu_ld=unknown
19644    ;;
19645  esac
19646elif test "$with_gnu_ld" = yes; then
19647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19648$as_echo_n "checking for GNU ld... " >&6; }
19649else
19650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19651$as_echo_n "checking for non-GNU ld... " >&6; }
19652fi
19653if ${lt_cv_path_LD+:} false; then :
19654  $as_echo_n "(cached) " >&6
19655else
19656  if test -z "$LD"; then
19657  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19658  for ac_dir in $PATH; do
19659    IFS="$lt_save_ifs"
19660    test -z "$ac_dir" && ac_dir=.
19661    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19662      lt_cv_path_LD="$ac_dir/$ac_prog"
19663      # Check to see if the program is GNU ld.  I'd rather use --version,
19664      # but apparently some variants of GNU ld only accept -v.
19665      # Break only if it was the GNU/non-GNU ld that we prefer.
19666      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19667      *GNU* | *'with BFD'*)
19668	test "$with_gnu_ld" != no && break
19669	;;
19670      *)
19671	test "$with_gnu_ld" != yes && break
19672	;;
19673      esac
19674    fi
19675  done
19676  IFS="$lt_save_ifs"
19677else
19678  lt_cv_path_LD="$LD" # Let the user override the test with a path.
19679fi
19680fi
19681
19682LD="$lt_cv_path_LD"
19683if test -n "$LD"; then
19684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19685$as_echo "$LD" >&6; }
19686else
19687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19688$as_echo "no" >&6; }
19689fi
19690test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19692$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19693if ${lt_cv_prog_gnu_ld+:} false; then :
19694  $as_echo_n "(cached) " >&6
19695else
19696  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19697case `$LD -v 2>&1 </dev/null` in
19698*GNU* | *'with BFD'*)
19699  lt_cv_prog_gnu_ld=yes
19700  ;;
19701*)
19702  lt_cv_prog_gnu_ld=no
19703  ;;
19704esac
19705fi
19706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19707$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19708with_gnu_ld=$lt_cv_prog_gnu_ld
19709
19710
19711
19712
19713
19714
19715
19716      # Check if GNU C++ uses GNU ld as the underlying linker, since the
19717      # archiving commands below assume that GNU ld is being used.
19718      if test "$with_gnu_ld" = yes; then
19719        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19720        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'
19721
19722        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19723        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19724
19725        # If archive_cmds runs LD, not CC, wlarc should be empty
19726        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19727        #     investigate it a little bit more. (MM)
19728        wlarc='${wl}'
19729
19730        # ancient GNU ld didn't support --whole-archive et. al.
19731        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19732	  $GREP 'no-whole-archive' > /dev/null; then
19733          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19734        else
19735          whole_archive_flag_spec_CXX=
19736        fi
19737      else
19738        with_gnu_ld=no
19739        wlarc=
19740
19741        # A generic and very simple default shared library creation
19742        # command for GNU C++ for the case where it uses the native
19743        # linker, instead of GNU ld.  If possible, this setting should
19744        # overridden to take advantage of the native linker features on
19745        # the platform it is being used on.
19746        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19747      fi
19748
19749      # Commands to make compiler produce verbose output that lists
19750      # what "hidden" libraries, object files and flags are used when
19751      # linking a shared library.
19752      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19753
19754    else
19755      GXX=no
19756      with_gnu_ld=no
19757      wlarc=
19758    fi
19759
19760    # PORTME: fill in a description of your system's C++ link characteristics
19761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19762$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19763    ld_shlibs_CXX=yes
19764    case $host_os in
19765      aix3*)
19766        # FIXME: insert proper C++ library support
19767        ld_shlibs_CXX=no
19768        ;;
19769      aix[4-9]*)
19770        if test "$host_cpu" = ia64; then
19771          # On IA64, the linker does run time linking by default, so we don't
19772          # have to do anything special.
19773          aix_use_runtimelinking=no
19774          exp_sym_flag='-Bexport'
19775          no_entry_flag=""
19776        else
19777          aix_use_runtimelinking=no
19778
19779          # Test if we are trying to use run time linking or normal
19780          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19781          # need to do runtime linking.
19782          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19783	    for ld_flag in $LDFLAGS; do
19784	      case $ld_flag in
19785	      *-brtl*)
19786	        aix_use_runtimelinking=yes
19787	        break
19788	        ;;
19789	      esac
19790	    done
19791	    ;;
19792          esac
19793
19794          exp_sym_flag='-bexport'
19795          no_entry_flag='-bnoentry'
19796        fi
19797
19798        # When large executables or shared objects are built, AIX ld can
19799        # have problems creating the table of contents.  If linking a library
19800        # or program results in "error TOC overflow" add -mminimal-toc to
19801        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19802        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19803
19804        archive_cmds_CXX=''
19805        hardcode_direct_CXX=yes
19806        hardcode_direct_absolute_CXX=yes
19807        hardcode_libdir_separator_CXX=':'
19808        link_all_deplibs_CXX=yes
19809        file_list_spec_CXX='${wl}-f,'
19810
19811        if test "$GXX" = yes; then
19812          case $host_os in aix4.[012]|aix4.[012].*)
19813          # We only want to do this on AIX 4.2 and lower, the check
19814          # below for broken collect2 doesn't work under 4.3+
19815	  collect2name=`${CC} -print-prog-name=collect2`
19816	  if test -f "$collect2name" &&
19817	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19818	  then
19819	    # We have reworked collect2
19820	    :
19821	  else
19822	    # We have old collect2
19823	    hardcode_direct_CXX=unsupported
19824	    # It fails to find uninstalled libraries when the uninstalled
19825	    # path is not listed in the libpath.  Setting hardcode_minus_L
19826	    # to unsupported forces relinking
19827	    hardcode_minus_L_CXX=yes
19828	    hardcode_libdir_flag_spec_CXX='-L$libdir'
19829	    hardcode_libdir_separator_CXX=
19830	  fi
19831          esac
19832          shared_flag='-shared'
19833	  if test "$aix_use_runtimelinking" = yes; then
19834	    shared_flag="$shared_flag "'${wl}-G'
19835	  fi
19836        else
19837          # not using gcc
19838          if test "$host_cpu" = ia64; then
19839	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19840	  # chokes on -Wl,-G. The following line is correct:
19841	  shared_flag='-G'
19842          else
19843	    if test "$aix_use_runtimelinking" = yes; then
19844	      shared_flag='${wl}-G'
19845	    else
19846	      shared_flag='${wl}-bM:SRE'
19847	    fi
19848          fi
19849        fi
19850
19851        export_dynamic_flag_spec_CXX='${wl}-bexpall'
19852        # It seems that -bexpall does not export symbols beginning with
19853        # underscore (_), so it is better to generate a list of symbols to
19854	# export.
19855        always_export_symbols_CXX=yes
19856        if test "$aix_use_runtimelinking" = yes; then
19857          # Warning - without using the other runtime loading flags (-brtl),
19858          # -berok will link without error, but may produce a broken library.
19859          allow_undefined_flag_CXX='-berok'
19860          # Determine the default libpath from the value encoded in an empty
19861          # executable.
19862          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863/* end confdefs.h.  */
19864
19865int
19866main ()
19867{
19868
19869  ;
19870  return 0;
19871}
19872_ACEOF
19873if ac_fn_cxx_try_link "$LINENO"; then :
19874
19875lt_aix_libpath_sed='
19876    /Import File Strings/,/^$/ {
19877	/^0/ {
19878	    s/^0  *\(.*\)$/\1/
19879	    p
19880	}
19881    }'
19882aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19883# Check for a 64-bit object if we didn't find anything.
19884if test -z "$aix_libpath"; then
19885  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19886fi
19887fi
19888rm -f core conftest.err conftest.$ac_objext \
19889    conftest$ac_exeext conftest.$ac_ext
19890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19891
19892          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19893
19894          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"
19895        else
19896          if test "$host_cpu" = ia64; then
19897	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19898	    allow_undefined_flag_CXX="-z nodefs"
19899	    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"
19900          else
19901	    # Determine the default libpath from the value encoded in an
19902	    # empty executable.
19903	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19904/* end confdefs.h.  */
19905
19906int
19907main ()
19908{
19909
19910  ;
19911  return 0;
19912}
19913_ACEOF
19914if ac_fn_cxx_try_link "$LINENO"; then :
19915
19916lt_aix_libpath_sed='
19917    /Import File Strings/,/^$/ {
19918	/^0/ {
19919	    s/^0  *\(.*\)$/\1/
19920	    p
19921	}
19922    }'
19923aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19924# Check for a 64-bit object if we didn't find anything.
19925if test -z "$aix_libpath"; then
19926  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19927fi
19928fi
19929rm -f core conftest.err conftest.$ac_objext \
19930    conftest$ac_exeext conftest.$ac_ext
19931if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19932
19933	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19934	    # Warning - without using the other run time loading flags,
19935	    # -berok will link without error, but may produce a broken library.
19936	    no_undefined_flag_CXX=' ${wl}-bernotok'
19937	    allow_undefined_flag_CXX=' ${wl}-berok'
19938	    if test "$with_gnu_ld" = yes; then
19939	      # We only use this code for GNU lds that support --whole-archive.
19940	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19941	    else
19942	      # Exported symbols can be pulled into shared objects from archives
19943	      whole_archive_flag_spec_CXX='$convenience'
19944	    fi
19945	    archive_cmds_need_lc_CXX=yes
19946	    # This is similar to how AIX traditionally builds its shared
19947	    # libraries.
19948	    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'
19949          fi
19950        fi
19951        ;;
19952
19953      beos*)
19954	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19955	  allow_undefined_flag_CXX=unsupported
19956	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19957	  # support --undefined.  This deserves some investigation.  FIXME
19958	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19959	else
19960	  ld_shlibs_CXX=no
19961	fi
19962	;;
19963
19964      chorus*)
19965        case $cc_basename in
19966          *)
19967	  # FIXME: insert proper C++ library support
19968	  ld_shlibs_CXX=no
19969	  ;;
19970        esac
19971        ;;
19972
19973      cygwin* | mingw* | pw32* | cegcc*)
19974        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19975        # as there is no search path for DLLs.
19976        hardcode_libdir_flag_spec_CXX='-L$libdir'
19977        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19978        allow_undefined_flag_CXX=unsupported
19979        always_export_symbols_CXX=no
19980        enable_shared_with_static_runtimes_CXX=yes
19981
19982        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19983          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'
19984          # If the export-symbols file already is a .def file (1st line
19985          # is EXPORTS), use it as is; otherwise, prepend...
19986          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19987	    cp $export_symbols $output_objdir/$soname.def;
19988          else
19989	    echo EXPORTS > $output_objdir/$soname.def;
19990	    cat $export_symbols >> $output_objdir/$soname.def;
19991          fi~
19992          $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'
19993        else
19994          ld_shlibs_CXX=no
19995        fi
19996        ;;
19997      darwin* | rhapsody*)
19998
19999
20000  archive_cmds_need_lc_CXX=no
20001  hardcode_direct_CXX=no
20002  hardcode_automatic_CXX=yes
20003  hardcode_shlibpath_var_CXX=unsupported
20004  if test "$lt_cv_ld_force_load" = "yes"; then
20005    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\"`'
20006  else
20007    whole_archive_flag_spec_CXX=''
20008  fi
20009  link_all_deplibs_CXX=yes
20010  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20011  case $cc_basename in
20012     ifort*) _lt_dar_can_shared=yes ;;
20013     *) _lt_dar_can_shared=$GCC ;;
20014  esac
20015  if test "$_lt_dar_can_shared" = "yes"; then
20016    output_verbose_link_cmd=func_echo_all
20017    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}"
20018    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20019    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}"
20020    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}"
20021       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20022      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}"
20023      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}"
20024    fi
20025
20026  else
20027  ld_shlibs_CXX=no
20028  fi
20029
20030	;;
20031
20032      dgux*)
20033        case $cc_basename in
20034          ec++*)
20035	    # FIXME: insert proper C++ library support
20036	    ld_shlibs_CXX=no
20037	    ;;
20038          ghcx*)
20039	    # Green Hills C++ Compiler
20040	    # FIXME: insert proper C++ library support
20041	    ld_shlibs_CXX=no
20042	    ;;
20043          *)
20044	    # FIXME: insert proper C++ library support
20045	    ld_shlibs_CXX=no
20046	    ;;
20047        esac
20048        ;;
20049
20050      freebsd2.*)
20051        # C++ shared libraries reported to be fairly broken before
20052	# switch to ELF
20053        ld_shlibs_CXX=no
20054        ;;
20055
20056      freebsd-elf*)
20057        archive_cmds_need_lc_CXX=no
20058        ;;
20059
20060      freebsd* | dragonfly*)
20061        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20062        # conventions
20063        ld_shlibs_CXX=yes
20064        ;;
20065
20066      gnu*)
20067        ;;
20068
20069      haiku*)
20070        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20071        link_all_deplibs_CXX=yes
20072        ;;
20073
20074      hpux9*)
20075        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20076        hardcode_libdir_separator_CXX=:
20077        export_dynamic_flag_spec_CXX='${wl}-E'
20078        hardcode_direct_CXX=yes
20079        hardcode_minus_L_CXX=yes # Not in the search PATH,
20080				             # but as the default
20081				             # location of the library.
20082
20083        case $cc_basename in
20084          CC*)
20085            # FIXME: insert proper C++ library support
20086            ld_shlibs_CXX=no
20087            ;;
20088          aCC*)
20089            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'
20090            # Commands to make compiler produce verbose output that lists
20091            # what "hidden" libraries, object files and flags are used when
20092            # linking a shared library.
20093            #
20094            # There doesn't appear to be a way to prevent this compiler from
20095            # explicitly linking system object files so we need to strip them
20096            # from the output so that they don't get included in the library
20097            # dependencies.
20098            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"'
20099            ;;
20100          *)
20101            if test "$GXX" = yes; then
20102              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'
20103            else
20104              # FIXME: insert proper C++ library support
20105              ld_shlibs_CXX=no
20106            fi
20107            ;;
20108        esac
20109        ;;
20110
20111      hpux10*|hpux11*)
20112        if test $with_gnu_ld = no; then
20113	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20114	  hardcode_libdir_separator_CXX=:
20115
20116          case $host_cpu in
20117            hppa*64*|ia64*)
20118              ;;
20119            *)
20120	      export_dynamic_flag_spec_CXX='${wl}-E'
20121              ;;
20122          esac
20123        fi
20124        case $host_cpu in
20125          hppa*64*|ia64*)
20126            hardcode_direct_CXX=no
20127            hardcode_shlibpath_var_CXX=no
20128            ;;
20129          *)
20130            hardcode_direct_CXX=yes
20131            hardcode_direct_absolute_CXX=yes
20132            hardcode_minus_L_CXX=yes # Not in the search PATH,
20133					         # but as the default
20134					         # location of the library.
20135            ;;
20136        esac
20137
20138        case $cc_basename in
20139          CC*)
20140	    # FIXME: insert proper C++ library support
20141	    ld_shlibs_CXX=no
20142	    ;;
20143          aCC*)
20144	    case $host_cpu in
20145	      hppa*64*)
20146	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20147	        ;;
20148	      ia64*)
20149	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20150	        ;;
20151	      *)
20152	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20153	        ;;
20154	    esac
20155	    # Commands to make compiler produce verbose output that lists
20156	    # what "hidden" libraries, object files and flags are used when
20157	    # linking a shared library.
20158	    #
20159	    # There doesn't appear to be a way to prevent this compiler from
20160	    # explicitly linking system object files so we need to strip them
20161	    # from the output so that they don't get included in the library
20162	    # dependencies.
20163	    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"'
20164	    ;;
20165          *)
20166	    if test "$GXX" = yes; then
20167	      if test $with_gnu_ld = no; then
20168	        case $host_cpu in
20169	          hppa*64*)
20170	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20171	            ;;
20172	          ia64*)
20173	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20174	            ;;
20175	          *)
20176	            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'
20177	            ;;
20178	        esac
20179	      fi
20180	    else
20181	      # FIXME: insert proper C++ library support
20182	      ld_shlibs_CXX=no
20183	    fi
20184	    ;;
20185        esac
20186        ;;
20187
20188      interix[3-9]*)
20189	hardcode_direct_CXX=no
20190	hardcode_shlibpath_var_CXX=no
20191	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20192	export_dynamic_flag_spec_CXX='${wl}-E'
20193	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20194	# Instead, shared libraries are loaded at an image base (0x10000000 by
20195	# default) and relocated if they conflict, which is a slow very memory
20196	# consuming and fragmenting process.  To avoid this, we pick a random,
20197	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20198	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20199	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'
20200	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'
20201	;;
20202      irix5* | irix6*)
20203        case $cc_basename in
20204          CC*)
20205	    # SGI C++
20206	    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'
20207
20208	    # Archives containing C++ object files must be created using
20209	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20210	    # necessary to make sure instantiated templates are included
20211	    # in the archive.
20212	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20213	    ;;
20214          *)
20215	    if test "$GXX" = yes; then
20216	      if test "$with_gnu_ld" = no; then
20217	        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'
20218	      else
20219	        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'
20220	      fi
20221	    fi
20222	    link_all_deplibs_CXX=yes
20223	    ;;
20224        esac
20225        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20226        hardcode_libdir_separator_CXX=:
20227        inherit_rpath_CXX=yes
20228        ;;
20229
20230      linux* | k*bsd*-gnu | kopensolaris*-gnu)
20231        case $cc_basename in
20232          KCC*)
20233	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20234
20235	    # KCC will only create a shared library if the output file
20236	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20237	    # to its proper name (with version) after linking.
20238	    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'
20239	    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'
20240	    # Commands to make compiler produce verbose output that lists
20241	    # what "hidden" libraries, object files and flags are used when
20242	    # linking a shared library.
20243	    #
20244	    # There doesn't appear to be a way to prevent this compiler from
20245	    # explicitly linking system object files so we need to strip them
20246	    # from the output so that they don't get included in the library
20247	    # dependencies.
20248	    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"'
20249
20250	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20251	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20252
20253	    # Archives containing C++ object files must be created using
20254	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20255	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20256	    ;;
20257	  icpc* | ecpc* )
20258	    # Intel C++
20259	    with_gnu_ld=yes
20260	    # version 8.0 and above of icpc choke on multiply defined symbols
20261	    # if we add $predep_objects and $postdep_objects, however 7.1 and
20262	    # earlier do not add the objects themselves.
20263	    case `$CC -V 2>&1` in
20264	      *"Version 7."*)
20265	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20266		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'
20267		;;
20268	      *)  # Version 8.0 or newer
20269	        tmp_idyn=
20270	        case $host_cpu in
20271		  ia64*) tmp_idyn=' -i_dynamic';;
20272		esac
20273	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20274		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'
20275		;;
20276	    esac
20277	    archive_cmds_need_lc_CXX=no
20278	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20279	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20280	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20281	    ;;
20282          pgCC* | pgcpp*)
20283            # Portland Group C++ compiler
20284	    case `$CC -V` in
20285	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20286	      prelink_cmds_CXX='tpldir=Template.dir~
20287		rm -rf $tpldir~
20288		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20289		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20290	      old_archive_cmds_CXX='tpldir=Template.dir~
20291		rm -rf $tpldir~
20292		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20293		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20294		$RANLIB $oldlib'
20295	      archive_cmds_CXX='tpldir=Template.dir~
20296		rm -rf $tpldir~
20297		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20298		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20299	      archive_expsym_cmds_CXX='tpldir=Template.dir~
20300		rm -rf $tpldir~
20301		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20302		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
20303	      ;;
20304	    *) # Version 6 and above use weak symbols
20305	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20306	      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'
20307	      ;;
20308	    esac
20309
20310	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20311	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20312	    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'
20313            ;;
20314	  cxx*)
20315	    # Compaq C++
20316	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20317	    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'
20318
20319	    runpath_var=LD_RUN_PATH
20320	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20321	    hardcode_libdir_separator_CXX=:
20322
20323	    # Commands to make compiler produce verbose output that lists
20324	    # what "hidden" libraries, object files and flags are used when
20325	    # linking a shared library.
20326	    #
20327	    # There doesn't appear to be a way to prevent this compiler from
20328	    # explicitly linking system object files so we need to strip them
20329	    # from the output so that they don't get included in the library
20330	    # dependencies.
20331	    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'
20332	    ;;
20333	  xl* | mpixl* | bgxl*)
20334	    # IBM XL 8.0 on PPC, with GNU ld
20335	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20336	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20337	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20338	    if test "x$supports_anon_versioning" = xyes; then
20339	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20340		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20341		echo "local: *; };" >> $output_objdir/$libname.ver~
20342		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20343	    fi
20344	    ;;
20345	  *)
20346	    case `$CC -V 2>&1 | sed 5q` in
20347	    *Sun\ C*)
20348	      # Sun C++ 5.9
20349	      no_undefined_flag_CXX=' -zdefs'
20350	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20351	      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'
20352	      hardcode_libdir_flag_spec_CXX='-R$libdir'
20353	      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'
20354	      compiler_needs_object_CXX=yes
20355
20356	      # Not sure whether something based on
20357	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20358	      # would be better.
20359	      output_verbose_link_cmd='func_echo_all'
20360
20361	      # Archives containing C++ object files must be created using
20362	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20363	      # necessary to make sure instantiated templates are included
20364	      # in the archive.
20365	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20366	      ;;
20367	    esac
20368	    ;;
20369	esac
20370	;;
20371
20372      lynxos*)
20373        # FIXME: insert proper C++ library support
20374	ld_shlibs_CXX=no
20375	;;
20376
20377      m88k*)
20378        # FIXME: insert proper C++ library support
20379        ld_shlibs_CXX=no
20380	;;
20381
20382      mvs*)
20383        case $cc_basename in
20384          cxx*)
20385	    # FIXME: insert proper C++ library support
20386	    ld_shlibs_CXX=no
20387	    ;;
20388	  *)
20389	    # FIXME: insert proper C++ library support
20390	    ld_shlibs_CXX=no
20391	    ;;
20392	esac
20393	;;
20394
20395      netbsd*)
20396        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20397	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20398	  wlarc=
20399	  hardcode_libdir_flag_spec_CXX='-R$libdir'
20400	  hardcode_direct_CXX=yes
20401	  hardcode_shlibpath_var_CXX=no
20402	fi
20403	# Workaround some broken pre-1.5 toolchains
20404	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20405	;;
20406
20407      *nto* | *qnx*)
20408        ld_shlibs_CXX=yes
20409	;;
20410
20411      openbsd2*)
20412        # C++ shared libraries are fairly broken
20413	ld_shlibs_CXX=no
20414	;;
20415
20416      openbsd*)
20417	if test -f /usr/libexec/ld.so; then
20418	  hardcode_direct_CXX=yes
20419	  hardcode_shlibpath_var_CXX=no
20420	  hardcode_direct_absolute_CXX=yes
20421	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20422	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20423	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20424	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20425	    export_dynamic_flag_spec_CXX='${wl}-E'
20426	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20427	  fi
20428	  output_verbose_link_cmd=func_echo_all
20429	else
20430	  ld_shlibs_CXX=no
20431	fi
20432	;;
20433
20434      osf3* | osf4* | osf5*)
20435        case $cc_basename in
20436          KCC*)
20437	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20438
20439	    # KCC will only create a shared library if the output file
20440	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20441	    # to its proper name (with version) after linking.
20442	    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'
20443
20444	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20445	    hardcode_libdir_separator_CXX=:
20446
20447	    # Archives containing C++ object files must be created using
20448	    # the KAI C++ compiler.
20449	    case $host in
20450	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20451	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20452	    esac
20453	    ;;
20454          RCC*)
20455	    # Rational C++ 2.4.1
20456	    # FIXME: insert proper C++ library support
20457	    ld_shlibs_CXX=no
20458	    ;;
20459          cxx*)
20460	    case $host in
20461	      osf3*)
20462	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20463	        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'
20464	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20465		;;
20466	      *)
20467	        allow_undefined_flag_CXX=' -expect_unresolved \*'
20468	        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'
20469	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20470	          echo "-hidden">> $lib.exp~
20471	          $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~
20472	          $RM $lib.exp'
20473	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20474		;;
20475	    esac
20476
20477	    hardcode_libdir_separator_CXX=:
20478
20479	    # Commands to make compiler produce verbose output that lists
20480	    # what "hidden" libraries, object files and flags are used when
20481	    # linking a shared library.
20482	    #
20483	    # There doesn't appear to be a way to prevent this compiler from
20484	    # explicitly linking system object files so we need to strip them
20485	    # from the output so that they don't get included in the library
20486	    # dependencies.
20487	    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"'
20488	    ;;
20489	  *)
20490	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20491	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20492	      case $host in
20493	        osf3*)
20494	          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'
20495		  ;;
20496	        *)
20497	          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'
20498		  ;;
20499	      esac
20500
20501	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20502	      hardcode_libdir_separator_CXX=:
20503
20504	      # Commands to make compiler produce verbose output that lists
20505	      # what "hidden" libraries, object files and flags are used when
20506	      # linking a shared library.
20507	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20508
20509	    else
20510	      # FIXME: insert proper C++ library support
20511	      ld_shlibs_CXX=no
20512	    fi
20513	    ;;
20514        esac
20515        ;;
20516
20517      psos*)
20518        # FIXME: insert proper C++ library support
20519        ld_shlibs_CXX=no
20520        ;;
20521
20522      sunos4*)
20523        case $cc_basename in
20524          CC*)
20525	    # Sun C++ 4.x
20526	    # FIXME: insert proper C++ library support
20527	    ld_shlibs_CXX=no
20528	    ;;
20529          lcc*)
20530	    # Lucid
20531	    # FIXME: insert proper C++ library support
20532	    ld_shlibs_CXX=no
20533	    ;;
20534          *)
20535	    # FIXME: insert proper C++ library support
20536	    ld_shlibs_CXX=no
20537	    ;;
20538        esac
20539        ;;
20540
20541      solaris*)
20542        case $cc_basename in
20543          CC*)
20544	    # Sun C++ 4.2, 5.x and Centerline C++
20545            archive_cmds_need_lc_CXX=yes
20546	    no_undefined_flag_CXX=' -zdefs'
20547	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20548	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20549	      $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'
20550
20551	    hardcode_libdir_flag_spec_CXX='-R$libdir'
20552	    hardcode_shlibpath_var_CXX=no
20553	    case $host_os in
20554	      solaris2.[0-5] | solaris2.[0-5].*) ;;
20555	      *)
20556		# The compiler driver will combine and reorder linker options,
20557		# but understands `-z linker_flag'.
20558	        # Supported since Solaris 2.6 (maybe 2.5.1?)
20559		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20560	        ;;
20561	    esac
20562	    link_all_deplibs_CXX=yes
20563
20564	    output_verbose_link_cmd='func_echo_all'
20565
20566	    # Archives containing C++ object files must be created using
20567	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20568	    # necessary to make sure instantiated templates are included
20569	    # in the archive.
20570	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20571	    ;;
20572          gcx*)
20573	    # Green Hills C++ Compiler
20574	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20575
20576	    # The C++ compiler must be used to create the archive.
20577	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20578	    ;;
20579          *)
20580	    # GNU C++ compiler with Solaris linker
20581	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20582	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20583	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20584	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20585	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20586		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20587
20588	        # Commands to make compiler produce verbose output that lists
20589	        # what "hidden" libraries, object files and flags are used when
20590	        # linking a shared library.
20591	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20592	      else
20593	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
20594	        # platform.
20595	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20596	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20597		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20598
20599	        # Commands to make compiler produce verbose output that lists
20600	        # what "hidden" libraries, object files and flags are used when
20601	        # linking a shared library.
20602	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20603	      fi
20604
20605	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20606	      case $host_os in
20607		solaris2.[0-5] | solaris2.[0-5].*) ;;
20608		*)
20609		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20610		  ;;
20611	      esac
20612	    fi
20613	    ;;
20614        esac
20615        ;;
20616
20617    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20618      no_undefined_flag_CXX='${wl}-z,text'
20619      archive_cmds_need_lc_CXX=no
20620      hardcode_shlibpath_var_CXX=no
20621      runpath_var='LD_RUN_PATH'
20622
20623      case $cc_basename in
20624        CC*)
20625	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20626	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20627	  ;;
20628	*)
20629	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20630	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20631	  ;;
20632      esac
20633      ;;
20634
20635      sysv5* | sco3.2v5* | sco5v6*)
20636	# Note: We can NOT use -z defs as we might desire, because we do not
20637	# link with -lc, and that would cause any symbols used from libc to
20638	# always be unresolved, which means just about no library would
20639	# ever link correctly.  If we're not using GNU ld we use -z text
20640	# though, which does catch some bad symbols but isn't as heavy-handed
20641	# as -z defs.
20642	no_undefined_flag_CXX='${wl}-z,text'
20643	allow_undefined_flag_CXX='${wl}-z,nodefs'
20644	archive_cmds_need_lc_CXX=no
20645	hardcode_shlibpath_var_CXX=no
20646	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20647	hardcode_libdir_separator_CXX=':'
20648	link_all_deplibs_CXX=yes
20649	export_dynamic_flag_spec_CXX='${wl}-Bexport'
20650	runpath_var='LD_RUN_PATH'
20651
20652	case $cc_basename in
20653          CC*)
20654	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20655	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20656	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20657	      '"$old_archive_cmds_CXX"
20658	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20659	      '"$reload_cmds_CXX"
20660	    ;;
20661	  *)
20662	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20663	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20664	    ;;
20665	esac
20666      ;;
20667
20668      tandem*)
20669        case $cc_basename in
20670          NCC*)
20671	    # NonStop-UX NCC 3.20
20672	    # FIXME: insert proper C++ library support
20673	    ld_shlibs_CXX=no
20674	    ;;
20675          *)
20676	    # FIXME: insert proper C++ library support
20677	    ld_shlibs_CXX=no
20678	    ;;
20679        esac
20680        ;;
20681
20682      vxworks*)
20683        # FIXME: insert proper C++ library support
20684        ld_shlibs_CXX=no
20685        ;;
20686
20687      *)
20688        # FIXME: insert proper C++ library support
20689        ld_shlibs_CXX=no
20690        ;;
20691    esac
20692
20693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20694$as_echo "$ld_shlibs_CXX" >&6; }
20695    test "$ld_shlibs_CXX" = no && can_build_shared=no
20696
20697    GCC_CXX="$GXX"
20698    LD_CXX="$LD"
20699
20700    ## CAVEAT EMPTOR:
20701    ## There is no encapsulation within the following macros, do not change
20702    ## the running order or otherwise move them around unless you know exactly
20703    ## what you are doing...
20704    # Dependencies to place before and after the object being linked:
20705predep_objects_CXX=
20706postdep_objects_CXX=
20707predeps_CXX=
20708postdeps_CXX=
20709compiler_lib_search_path_CXX=
20710
20711cat > conftest.$ac_ext <<_LT_EOF
20712class Foo
20713{
20714public:
20715  Foo (void) { a = 0; }
20716private:
20717  int a;
20718};
20719_LT_EOF
20720
20721if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20722  (eval $ac_compile) 2>&5
20723  ac_status=$?
20724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20725  test $ac_status = 0; }; then
20726  # Parse the compiler output and extract the necessary
20727  # objects, libraries and library flags.
20728
20729  # Sentinel used to keep track of whether or not we are before
20730  # the conftest object file.
20731  pre_test_object_deps_done=no
20732
20733  for p in `eval "$output_verbose_link_cmd"`; do
20734    case $p in
20735
20736    -L* | -R* | -l*)
20737       # Some compilers place space between "-{L,R}" and the path.
20738       # Remove the space.
20739       if test $p = "-L" ||
20740          test $p = "-R"; then
20741	 prev=$p
20742	 continue
20743       else
20744	 prev=
20745       fi
20746
20747       if test "$pre_test_object_deps_done" = no; then
20748	 case $p in
20749	 -L* | -R*)
20750	   # Internal compiler library paths should come after those
20751	   # provided the user.  The postdeps already come after the
20752	   # user supplied libs so there is no need to process them.
20753	   if test -z "$compiler_lib_search_path_CXX"; then
20754	     compiler_lib_search_path_CXX="${prev}${p}"
20755	   else
20756	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20757	   fi
20758	   ;;
20759	 # The "-l" case would never come before the object being
20760	 # linked, so don't bother handling this case.
20761	 esac
20762       else
20763	 if test -z "$postdeps_CXX"; then
20764	   postdeps_CXX="${prev}${p}"
20765	 else
20766	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20767	 fi
20768       fi
20769       ;;
20770
20771    *.$objext)
20772       # This assumes that the test object file only shows up
20773       # once in the compiler output.
20774       if test "$p" = "conftest.$objext"; then
20775	 pre_test_object_deps_done=yes
20776	 continue
20777       fi
20778
20779       if test "$pre_test_object_deps_done" = no; then
20780	 if test -z "$predep_objects_CXX"; then
20781	   predep_objects_CXX="$p"
20782	 else
20783	   predep_objects_CXX="$predep_objects_CXX $p"
20784	 fi
20785       else
20786	 if test -z "$postdep_objects_CXX"; then
20787	   postdep_objects_CXX="$p"
20788	 else
20789	   postdep_objects_CXX="$postdep_objects_CXX $p"
20790	 fi
20791       fi
20792       ;;
20793
20794    *) ;; # Ignore the rest.
20795
20796    esac
20797  done
20798
20799  # Clean up.
20800  rm -f a.out a.exe
20801else
20802  echo "libtool.m4: error: problem compiling CXX test program"
20803fi
20804
20805$RM -f confest.$objext
20806
20807# PORTME: override above test on systems where it is broken
20808case $host_os in
20809interix[3-9]*)
20810  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20811  # hack all around it, let's just trust "g++" to DTRT.
20812  predep_objects_CXX=
20813  postdep_objects_CXX=
20814  postdeps_CXX=
20815  ;;
20816
20817linux*)
20818  case `$CC -V 2>&1 | sed 5q` in
20819  *Sun\ C*)
20820    # Sun C++ 5.9
20821
20822    # The more standards-conforming stlport4 library is
20823    # incompatible with the Cstd library. Avoid specifying
20824    # it if it's in CXXFLAGS. Ignore libCrun as
20825    # -library=stlport4 depends on it.
20826    case " $CXX $CXXFLAGS " in
20827    *" -library=stlport4 "*)
20828      solaris_use_stlport4=yes
20829      ;;
20830    esac
20831
20832    if test "$solaris_use_stlport4" != yes; then
20833      postdeps_CXX='-library=Cstd -library=Crun'
20834    fi
20835    ;;
20836  esac
20837  ;;
20838
20839solaris*)
20840  case $cc_basename in
20841  CC*)
20842    # The more standards-conforming stlport4 library is
20843    # incompatible with the Cstd library. Avoid specifying
20844    # it if it's in CXXFLAGS. Ignore libCrun as
20845    # -library=stlport4 depends on it.
20846    case " $CXX $CXXFLAGS " in
20847    *" -library=stlport4 "*)
20848      solaris_use_stlport4=yes
20849      ;;
20850    esac
20851
20852    # Adding this requires a known-good setup of shared libraries for
20853    # Sun compiler versions before 5.6, else PIC objects from an old
20854    # archive will be linked into the output, leading to subtle bugs.
20855    if test "$solaris_use_stlport4" != yes; then
20856      postdeps_CXX='-library=Cstd -library=Crun'
20857    fi
20858    ;;
20859  esac
20860  ;;
20861esac
20862
20863
20864case " $postdeps_CXX " in
20865*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20866esac
20867 compiler_lib_search_dirs_CXX=
20868if test -n "${compiler_lib_search_path_CXX}"; then
20869 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20870fi
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902    lt_prog_compiler_wl_CXX=
20903lt_prog_compiler_pic_CXX=
20904lt_prog_compiler_static_CXX=
20905
20906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20907$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20908
20909  # C++ specific cases for pic, static, wl, etc.
20910  if test "$GXX" = yes; then
20911    lt_prog_compiler_wl_CXX='-Wl,'
20912    lt_prog_compiler_static_CXX='-static'
20913
20914    case $host_os in
20915    aix*)
20916      # All AIX code is PIC.
20917      if test "$host_cpu" = ia64; then
20918	# AIX 5 now supports IA64 processor
20919	lt_prog_compiler_static_CXX='-Bstatic'
20920      fi
20921      lt_prog_compiler_pic_CXX='-fPIC'
20922      ;;
20923
20924    amigaos*)
20925      case $host_cpu in
20926      powerpc)
20927            # see comment about AmigaOS4 .so support
20928            lt_prog_compiler_pic_CXX='-fPIC'
20929        ;;
20930      m68k)
20931            # FIXME: we need at least 68020 code to build shared libraries, but
20932            # adding the `-m68020' flag to GCC prevents building anything better,
20933            # like `-m68040'.
20934            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20935        ;;
20936      esac
20937      ;;
20938
20939    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20940      # PIC is the default for these OSes.
20941      ;;
20942    mingw* | cygwin* | os2* | pw32* | cegcc*)
20943      # This hack is so that the source file can tell whether it is being
20944      # built for inclusion in a dll (and should export symbols for example).
20945      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20946      # (--disable-auto-import) libraries
20947      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20948      ;;
20949    darwin* | rhapsody*)
20950      # PIC is the default on this platform
20951      # Common symbols not allowed in MH_DYLIB files
20952      lt_prog_compiler_pic_CXX='-fno-common'
20953      ;;
20954    *djgpp*)
20955      # DJGPP does not support shared libraries at all
20956      lt_prog_compiler_pic_CXX=
20957      ;;
20958    haiku*)
20959      # PIC is the default for Haiku.
20960      # The "-static" flag exists, but is broken.
20961      lt_prog_compiler_static_CXX=
20962      ;;
20963    interix[3-9]*)
20964      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20965      # Instead, we relocate shared libraries at runtime.
20966      ;;
20967    sysv4*MP*)
20968      if test -d /usr/nec; then
20969	lt_prog_compiler_pic_CXX=-Kconform_pic
20970      fi
20971      ;;
20972    hpux*)
20973      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20974      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20975      # sets the default TLS model and affects inlining.
20976      case $host_cpu in
20977      hppa*64*)
20978	;;
20979      *)
20980	lt_prog_compiler_pic_CXX='-fPIC'
20981	;;
20982      esac
20983      ;;
20984    *qnx* | *nto*)
20985      # QNX uses GNU C++, but need to define -shared option too, otherwise
20986      # it will coredump.
20987      lt_prog_compiler_pic_CXX='-fPIC -shared'
20988      ;;
20989    *)
20990      lt_prog_compiler_pic_CXX='-fPIC'
20991      ;;
20992    esac
20993  else
20994    case $host_os in
20995      aix[4-9]*)
20996	# All AIX code is PIC.
20997	if test "$host_cpu" = ia64; then
20998	  # AIX 5 now supports IA64 processor
20999	  lt_prog_compiler_static_CXX='-Bstatic'
21000	else
21001	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21002	fi
21003	;;
21004      chorus*)
21005	case $cc_basename in
21006	cxch68*)
21007	  # Green Hills C++ Compiler
21008	  # _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"
21009	  ;;
21010	esac
21011	;;
21012      dgux*)
21013	case $cc_basename in
21014	  ec++*)
21015	    lt_prog_compiler_pic_CXX='-KPIC'
21016	    ;;
21017	  ghcx*)
21018	    # Green Hills C++ Compiler
21019	    lt_prog_compiler_pic_CXX='-pic'
21020	    ;;
21021	  *)
21022	    ;;
21023	esac
21024	;;
21025      freebsd* | dragonfly*)
21026	# FreeBSD uses GNU C++
21027	;;
21028      hpux9* | hpux10* | hpux11*)
21029	case $cc_basename in
21030	  CC*)
21031	    lt_prog_compiler_wl_CXX='-Wl,'
21032	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21033	    if test "$host_cpu" != ia64; then
21034	      lt_prog_compiler_pic_CXX='+Z'
21035	    fi
21036	    ;;
21037	  aCC*)
21038	    lt_prog_compiler_wl_CXX='-Wl,'
21039	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21040	    case $host_cpu in
21041	    hppa*64*|ia64*)
21042	      # +Z the default
21043	      ;;
21044	    *)
21045	      lt_prog_compiler_pic_CXX='+Z'
21046	      ;;
21047	    esac
21048	    ;;
21049	  *)
21050	    ;;
21051	esac
21052	;;
21053      interix*)
21054	# This is c89, which is MS Visual C++ (no shared libs)
21055	# Anyone wants to do a port?
21056	;;
21057      irix5* | irix6* | nonstopux*)
21058	case $cc_basename in
21059	  CC*)
21060	    lt_prog_compiler_wl_CXX='-Wl,'
21061	    lt_prog_compiler_static_CXX='-non_shared'
21062	    # CC pic flag -KPIC is the default.
21063	    ;;
21064	  *)
21065	    ;;
21066	esac
21067	;;
21068      linux* | k*bsd*-gnu | kopensolaris*-gnu)
21069	case $cc_basename in
21070	  KCC*)
21071	    # KAI C++ Compiler
21072	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21073	    lt_prog_compiler_pic_CXX='-fPIC'
21074	    ;;
21075	  ecpc* )
21076	    # old Intel C++ for x86_64 which still supported -KPIC.
21077	    lt_prog_compiler_wl_CXX='-Wl,'
21078	    lt_prog_compiler_pic_CXX='-KPIC'
21079	    lt_prog_compiler_static_CXX='-static'
21080	    ;;
21081	  icpc* )
21082	    # Intel C++, used to be incompatible with GCC.
21083	    # ICC 10 doesn't accept -KPIC any more.
21084	    lt_prog_compiler_wl_CXX='-Wl,'
21085	    lt_prog_compiler_pic_CXX='-fPIC'
21086	    lt_prog_compiler_static_CXX='-static'
21087	    ;;
21088	  pgCC* | pgcpp*)
21089	    # Portland Group C++ compiler
21090	    lt_prog_compiler_wl_CXX='-Wl,'
21091	    lt_prog_compiler_pic_CXX='-fpic'
21092	    lt_prog_compiler_static_CXX='-Bstatic'
21093	    ;;
21094	  cxx*)
21095	    # Compaq C++
21096	    # Make sure the PIC flag is empty.  It appears that all Alpha
21097	    # Linux and Compaq Tru64 Unix objects are PIC.
21098	    lt_prog_compiler_pic_CXX=
21099	    lt_prog_compiler_static_CXX='-non_shared'
21100	    ;;
21101	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21102	    # IBM XL 8.0, 9.0 on PPC and BlueGene
21103	    lt_prog_compiler_wl_CXX='-Wl,'
21104	    lt_prog_compiler_pic_CXX='-qpic'
21105	    lt_prog_compiler_static_CXX='-qstaticlink'
21106	    ;;
21107	  *)
21108	    case `$CC -V 2>&1 | sed 5q` in
21109	    *Sun\ C*)
21110	      # Sun C++ 5.9
21111	      lt_prog_compiler_pic_CXX='-KPIC'
21112	      lt_prog_compiler_static_CXX='-Bstatic'
21113	      lt_prog_compiler_wl_CXX='-Qoption ld '
21114	      ;;
21115	    esac
21116	    ;;
21117	esac
21118	;;
21119      lynxos*)
21120	;;
21121      m88k*)
21122	;;
21123      mvs*)
21124	case $cc_basename in
21125	  cxx*)
21126	    lt_prog_compiler_pic_CXX='-W c,exportall'
21127	    ;;
21128	  *)
21129	    ;;
21130	esac
21131	;;
21132      netbsd*)
21133	;;
21134      *qnx* | *nto*)
21135        # QNX uses GNU C++, but need to define -shared option too, otherwise
21136        # it will coredump.
21137        lt_prog_compiler_pic_CXX='-fPIC -shared'
21138        ;;
21139      osf3* | osf4* | osf5*)
21140	case $cc_basename in
21141	  KCC*)
21142	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21143	    ;;
21144	  RCC*)
21145	    # Rational C++ 2.4.1
21146	    lt_prog_compiler_pic_CXX='-pic'
21147	    ;;
21148	  cxx*)
21149	    # Digital/Compaq C++
21150	    lt_prog_compiler_wl_CXX='-Wl,'
21151	    # Make sure the PIC flag is empty.  It appears that all Alpha
21152	    # Linux and Compaq Tru64 Unix objects are PIC.
21153	    lt_prog_compiler_pic_CXX=
21154	    lt_prog_compiler_static_CXX='-non_shared'
21155	    ;;
21156	  *)
21157	    ;;
21158	esac
21159	;;
21160      psos*)
21161	;;
21162      solaris*)
21163	case $cc_basename in
21164	  CC*)
21165	    # Sun C++ 4.2, 5.x and Centerline C++
21166	    lt_prog_compiler_pic_CXX='-KPIC'
21167	    lt_prog_compiler_static_CXX='-Bstatic'
21168	    lt_prog_compiler_wl_CXX='-Qoption ld '
21169	    ;;
21170	  gcx*)
21171	    # Green Hills C++ Compiler
21172	    lt_prog_compiler_pic_CXX='-PIC'
21173	    ;;
21174	  *)
21175	    ;;
21176	esac
21177	;;
21178      sunos4*)
21179	case $cc_basename in
21180	  CC*)
21181	    # Sun C++ 4.x
21182	    lt_prog_compiler_pic_CXX='-pic'
21183	    lt_prog_compiler_static_CXX='-Bstatic'
21184	    ;;
21185	  lcc*)
21186	    # Lucid
21187	    lt_prog_compiler_pic_CXX='-pic'
21188	    ;;
21189	  *)
21190	    ;;
21191	esac
21192	;;
21193      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21194	case $cc_basename in
21195	  CC*)
21196	    lt_prog_compiler_wl_CXX='-Wl,'
21197	    lt_prog_compiler_pic_CXX='-KPIC'
21198	    lt_prog_compiler_static_CXX='-Bstatic'
21199	    ;;
21200	esac
21201	;;
21202      tandem*)
21203	case $cc_basename in
21204	  NCC*)
21205	    # NonStop-UX NCC 3.20
21206	    lt_prog_compiler_pic_CXX='-KPIC'
21207	    ;;
21208	  *)
21209	    ;;
21210	esac
21211	;;
21212      vxworks*)
21213	;;
21214      *)
21215	lt_prog_compiler_can_build_shared_CXX=no
21216	;;
21217    esac
21218  fi
21219
21220case $host_os in
21221  # For platforms which do not support PIC, -DPIC is meaningless:
21222  *djgpp*)
21223    lt_prog_compiler_pic_CXX=
21224    ;;
21225  *)
21226    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21227    ;;
21228esac
21229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21230$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21231
21232
21233
21234#
21235# Check to make sure the PIC flag actually works.
21236#
21237if test -n "$lt_prog_compiler_pic_CXX"; then
21238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21239$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21240if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21241  $as_echo_n "(cached) " >&6
21242else
21243  lt_cv_prog_compiler_pic_works_CXX=no
21244   ac_outfile=conftest.$ac_objext
21245   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21246   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21247   # Insert the option either (1) after the last *FLAGS variable, or
21248   # (2) before a word containing "conftest.", or (3) at the end.
21249   # Note that $ac_compile itself does not contain backslashes and begins
21250   # with a dollar sign (not a hyphen), so the echo should work correctly.
21251   # The option is referenced via a variable to avoid confusing sed.
21252   lt_compile=`echo "$ac_compile" | $SED \
21253   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21254   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21255   -e 's:$: $lt_compiler_flag:'`
21256   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21257   (eval "$lt_compile" 2>conftest.err)
21258   ac_status=$?
21259   cat conftest.err >&5
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   if (exit $ac_status) && test -s "$ac_outfile"; then
21262     # The compiler can only warn and ignore the option if not recognized
21263     # So say no if there are warnings other than the usual output.
21264     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21265     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21266     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21267       lt_cv_prog_compiler_pic_works_CXX=yes
21268     fi
21269   fi
21270   $RM conftest*
21271
21272fi
21273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21274$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21275
21276if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21277    case $lt_prog_compiler_pic_CXX in
21278     "" | " "*) ;;
21279     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21280     esac
21281else
21282    lt_prog_compiler_pic_CXX=
21283     lt_prog_compiler_can_build_shared_CXX=no
21284fi
21285
21286fi
21287
21288
21289
21290#
21291# Check to make sure the static flag actually works.
21292#
21293wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21295$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21296if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21297  $as_echo_n "(cached) " >&6
21298else
21299  lt_cv_prog_compiler_static_works_CXX=no
21300   save_LDFLAGS="$LDFLAGS"
21301   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21302   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21303   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21304     # The linker can only warn and ignore the option if not recognized
21305     # So say no if there are warnings
21306     if test -s conftest.err; then
21307       # Append any errors to the config.log.
21308       cat conftest.err 1>&5
21309       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21310       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21311       if diff conftest.exp conftest.er2 >/dev/null; then
21312         lt_cv_prog_compiler_static_works_CXX=yes
21313       fi
21314     else
21315       lt_cv_prog_compiler_static_works_CXX=yes
21316     fi
21317   fi
21318   $RM -r conftest*
21319   LDFLAGS="$save_LDFLAGS"
21320
21321fi
21322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21323$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21324
21325if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21326    :
21327else
21328    lt_prog_compiler_static_CXX=
21329fi
21330
21331
21332
21333
21334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21335$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21336if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21337  $as_echo_n "(cached) " >&6
21338else
21339  lt_cv_prog_compiler_c_o_CXX=no
21340   $RM -r conftest 2>/dev/null
21341   mkdir conftest
21342   cd conftest
21343   mkdir out
21344   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21345
21346   lt_compiler_flag="-o out/conftest2.$ac_objext"
21347   # Insert the option either (1) after the last *FLAGS variable, or
21348   # (2) before a word containing "conftest.", or (3) at the end.
21349   # Note that $ac_compile itself does not contain backslashes and begins
21350   # with a dollar sign (not a hyphen), so the echo should work correctly.
21351   lt_compile=`echo "$ac_compile" | $SED \
21352   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21353   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21354   -e 's:$: $lt_compiler_flag:'`
21355   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21356   (eval "$lt_compile" 2>out/conftest.err)
21357   ac_status=$?
21358   cat out/conftest.err >&5
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21361   then
21362     # The compiler can only warn and ignore the option if not recognized
21363     # So say no if there are warnings
21364     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21365     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21366     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21367       lt_cv_prog_compiler_c_o_CXX=yes
21368     fi
21369   fi
21370   chmod u+w . 2>&5
21371   $RM conftest*
21372   # SGI C++ compiler will create directory out/ii_files/ for
21373   # template instantiation
21374   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21375   $RM out/* && rmdir out
21376   cd ..
21377   $RM -r conftest
21378   $RM conftest*
21379
21380fi
21381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21382$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21383
21384
21385
21386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21387$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21388if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21389  $as_echo_n "(cached) " >&6
21390else
21391  lt_cv_prog_compiler_c_o_CXX=no
21392   $RM -r conftest 2>/dev/null
21393   mkdir conftest
21394   cd conftest
21395   mkdir out
21396   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21397
21398   lt_compiler_flag="-o out/conftest2.$ac_objext"
21399   # Insert the option either (1) after the last *FLAGS variable, or
21400   # (2) before a word containing "conftest.", or (3) at the end.
21401   # Note that $ac_compile itself does not contain backslashes and begins
21402   # with a dollar sign (not a hyphen), so the echo should work correctly.
21403   lt_compile=`echo "$ac_compile" | $SED \
21404   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21405   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21406   -e 's:$: $lt_compiler_flag:'`
21407   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21408   (eval "$lt_compile" 2>out/conftest.err)
21409   ac_status=$?
21410   cat out/conftest.err >&5
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21413   then
21414     # The compiler can only warn and ignore the option if not recognized
21415     # So say no if there are warnings
21416     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21417     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21418     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21419       lt_cv_prog_compiler_c_o_CXX=yes
21420     fi
21421   fi
21422   chmod u+w . 2>&5
21423   $RM conftest*
21424   # SGI C++ compiler will create directory out/ii_files/ for
21425   # template instantiation
21426   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21427   $RM out/* && rmdir out
21428   cd ..
21429   $RM -r conftest
21430   $RM conftest*
21431
21432fi
21433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21434$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21435
21436
21437
21438
21439hard_links="nottested"
21440if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21441  # do not overwrite the value of need_locks provided by the user
21442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21443$as_echo_n "checking if we can lock with hard links... " >&6; }
21444  hard_links=yes
21445  $RM conftest*
21446  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21447  touch conftest.a
21448  ln conftest.a conftest.b 2>&5 || hard_links=no
21449  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21451$as_echo "$hard_links" >&6; }
21452  if test "$hard_links" = no; then
21453    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21454$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21455    need_locks=warn
21456  fi
21457else
21458  need_locks=no
21459fi
21460
21461
21462
21463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21464$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21465
21466  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21467  case $host_os in
21468  aix[4-9]*)
21469    # If we're using GNU nm, then we don't want the "-C" option.
21470    # -C means demangle to AIX nm, but means don't demangle with GNU nm
21471    # Also, AIX nm treats weak defined symbols like other global defined
21472    # symbols, whereas GNU nm marks them as "W".
21473    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21474      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'
21475    else
21476      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'
21477    fi
21478    ;;
21479  pw32*)
21480    export_symbols_cmds_CXX="$ltdll_cmds"
21481  ;;
21482  cygwin* | mingw* | cegcc*)
21483    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'
21484  ;;
21485  *)
21486    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21487  ;;
21488  esac
21489  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21490
21491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21492$as_echo "$ld_shlibs_CXX" >&6; }
21493test "$ld_shlibs_CXX" = no && can_build_shared=no
21494
21495with_gnu_ld_CXX=$with_gnu_ld
21496
21497
21498
21499
21500
21501
21502#
21503# Do we need to explicitly link libc?
21504#
21505case "x$archive_cmds_need_lc_CXX" in
21506x|xyes)
21507  # Assume -lc should be added
21508  archive_cmds_need_lc_CXX=yes
21509
21510  if test "$enable_shared" = yes && test "$GCC" = yes; then
21511    case $archive_cmds_CXX in
21512    *'~'*)
21513      # FIXME: we may have to deal with multi-command sequences.
21514      ;;
21515    '$CC '*)
21516      # Test whether the compiler implicitly links with -lc since on some
21517      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21518      # to ld, don't add -lc before -lgcc.
21519      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21520$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21521if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21522  $as_echo_n "(cached) " >&6
21523else
21524  $RM conftest*
21525	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21526
21527	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21528  (eval $ac_compile) 2>&5
21529  ac_status=$?
21530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21531  test $ac_status = 0; } 2>conftest.err; then
21532	  soname=conftest
21533	  lib=conftest
21534	  libobjs=conftest.$ac_objext
21535	  deplibs=
21536	  wl=$lt_prog_compiler_wl_CXX
21537	  pic_flag=$lt_prog_compiler_pic_CXX
21538	  compiler_flags=-v
21539	  linker_flags=-v
21540	  verstring=
21541	  output_objdir=.
21542	  libname=conftest
21543	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21544	  allow_undefined_flag_CXX=
21545	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21546  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21547  ac_status=$?
21548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21549  test $ac_status = 0; }
21550	  then
21551	    lt_cv_archive_cmds_need_lc_CXX=no
21552	  else
21553	    lt_cv_archive_cmds_need_lc_CXX=yes
21554	  fi
21555	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21556	else
21557	  cat conftest.err 1>&5
21558	fi
21559	$RM conftest*
21560
21561fi
21562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21563$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21564      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21565      ;;
21566    esac
21567  fi
21568  ;;
21569esac
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21635$as_echo_n "checking dynamic linker characteristics... " >&6; }
21636
21637library_names_spec=
21638libname_spec='lib$name'
21639soname_spec=
21640shrext_cmds=".so"
21641postinstall_cmds=
21642postuninstall_cmds=
21643finish_cmds=
21644finish_eval=
21645shlibpath_var=
21646shlibpath_overrides_runpath=unknown
21647version_type=none
21648dynamic_linker="$host_os ld.so"
21649sys_lib_dlsearch_path_spec="/lib /usr/lib"
21650need_lib_prefix=unknown
21651hardcode_into_libs=no
21652
21653# when you set need_version to no, make sure it does not cause -set_version
21654# flags to be left without arguments
21655need_version=unknown
21656
21657case $host_os in
21658aix3*)
21659  version_type=linux
21660  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21661  shlibpath_var=LIBPATH
21662
21663  # AIX 3 has no versioning support, so we append a major version to the name.
21664  soname_spec='${libname}${release}${shared_ext}$major'
21665  ;;
21666
21667aix[4-9]*)
21668  version_type=linux
21669  need_lib_prefix=no
21670  need_version=no
21671  hardcode_into_libs=yes
21672  if test "$host_cpu" = ia64; then
21673    # AIX 5 supports IA64
21674    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21675    shlibpath_var=LD_LIBRARY_PATH
21676  else
21677    # With GCC up to 2.95.x, collect2 would create an import file
21678    # for dependence libraries.  The import file would start with
21679    # the line `#! .'.  This would cause the generated library to
21680    # depend on `.', always an invalid library.  This was fixed in
21681    # development snapshots of GCC prior to 3.0.
21682    case $host_os in
21683      aix4 | aix4.[01] | aix4.[01].*)
21684      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21685	   echo ' yes '
21686	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21687	:
21688      else
21689	can_build_shared=no
21690      fi
21691      ;;
21692    esac
21693    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21694    # soname into executable. Probably we can add versioning support to
21695    # collect2, so additional links can be useful in future.
21696    if test "$aix_use_runtimelinking" = yes; then
21697      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21698      # instead of lib<name>.a to let people know that these are not
21699      # typical AIX shared libraries.
21700      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21701    else
21702      # We preserve .a as extension for shared libraries through AIX4.2
21703      # and later when we are not doing run time linking.
21704      library_names_spec='${libname}${release}.a $libname.a'
21705      soname_spec='${libname}${release}${shared_ext}$major'
21706    fi
21707    shlibpath_var=LIBPATH
21708  fi
21709  ;;
21710
21711amigaos*)
21712  case $host_cpu in
21713  powerpc)
21714    # Since July 2007 AmigaOS4 officially supports .so libraries.
21715    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21717    ;;
21718  m68k)
21719    library_names_spec='$libname.ixlibrary $libname.a'
21720    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21721    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'
21722    ;;
21723  esac
21724  ;;
21725
21726beos*)
21727  library_names_spec='${libname}${shared_ext}'
21728  dynamic_linker="$host_os ld.so"
21729  shlibpath_var=LIBRARY_PATH
21730  ;;
21731
21732bsdi[45]*)
21733  version_type=linux
21734  need_version=no
21735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21736  soname_spec='${libname}${release}${shared_ext}$major'
21737  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21738  shlibpath_var=LD_LIBRARY_PATH
21739  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21740  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21741  # the default ld.so.conf also contains /usr/contrib/lib and
21742  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21743  # libtool to hard-code these into programs
21744  ;;
21745
21746cygwin* | mingw* | pw32* | cegcc*)
21747  version_type=windows
21748  shrext_cmds=".dll"
21749  need_version=no
21750  need_lib_prefix=no
21751
21752  case $GCC,$host_os in
21753  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21754    library_names_spec='$libname.dll.a'
21755    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21756    postinstall_cmds='base_file=`basename \${file}`~
21757      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21758      dldir=$destdir/`dirname \$dlpath`~
21759      test -d \$dldir || mkdir -p \$dldir~
21760      $install_prog $dir/$dlname \$dldir/$dlname~
21761      chmod a+x \$dldir/$dlname~
21762      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21763        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21764      fi'
21765    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21766      dlpath=$dir/\$dldll~
21767       $RM \$dlpath'
21768    shlibpath_overrides_runpath=yes
21769
21770    case $host_os in
21771    cygwin*)
21772      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21773      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21774
21775      ;;
21776    mingw* | cegcc*)
21777      # MinGW DLLs use traditional 'lib' prefix
21778      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21779      ;;
21780    pw32*)
21781      # pw32 DLLs use 'pw' prefix rather than 'lib'
21782      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21783      ;;
21784    esac
21785    ;;
21786
21787  *)
21788    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21789    ;;
21790  esac
21791  dynamic_linker='Win32 ld.exe'
21792  # FIXME: first we should search . and the directory the executable is in
21793  shlibpath_var=PATH
21794  ;;
21795
21796darwin* | rhapsody*)
21797  dynamic_linker="$host_os dyld"
21798  version_type=darwin
21799  need_lib_prefix=no
21800  need_version=no
21801  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21802  soname_spec='${libname}${release}${major}$shared_ext'
21803  shlibpath_overrides_runpath=yes
21804  shlibpath_var=DYLD_LIBRARY_PATH
21805  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21806
21807  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21808  ;;
21809
21810dgux*)
21811  version_type=linux
21812  need_lib_prefix=no
21813  need_version=no
21814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21815  soname_spec='${libname}${release}${shared_ext}$major'
21816  shlibpath_var=LD_LIBRARY_PATH
21817  ;;
21818
21819freebsd* | dragonfly*)
21820  # DragonFly does not have aout.  When/if they implement a new
21821  # versioning mechanism, adjust this.
21822  if test -x /usr/bin/objformat; then
21823    objformat=`/usr/bin/objformat`
21824  else
21825    case $host_os in
21826    freebsd[23].*) objformat=aout ;;
21827    *) objformat=elf ;;
21828    esac
21829  fi
21830  version_type=freebsd-$objformat
21831  case $version_type in
21832    freebsd-elf*)
21833      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21834      need_version=no
21835      need_lib_prefix=no
21836      ;;
21837    freebsd-*)
21838      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21839      need_version=yes
21840      ;;
21841  esac
21842  shlibpath_var=LD_LIBRARY_PATH
21843  case $host_os in
21844  freebsd2.*)
21845    shlibpath_overrides_runpath=yes
21846    ;;
21847  freebsd3.[01]* | freebsdelf3.[01]*)
21848    shlibpath_overrides_runpath=yes
21849    hardcode_into_libs=yes
21850    ;;
21851  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21852  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21853    shlibpath_overrides_runpath=no
21854    hardcode_into_libs=yes
21855    ;;
21856  *) # from 4.6 on, and DragonFly
21857    shlibpath_overrides_runpath=yes
21858    hardcode_into_libs=yes
21859    ;;
21860  esac
21861  ;;
21862
21863gnu*)
21864  version_type=linux
21865  need_lib_prefix=no
21866  need_version=no
21867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21868  soname_spec='${libname}${release}${shared_ext}$major'
21869  shlibpath_var=LD_LIBRARY_PATH
21870  hardcode_into_libs=yes
21871  ;;
21872
21873haiku*)
21874  version_type=linux
21875  need_lib_prefix=no
21876  need_version=no
21877  dynamic_linker="$host_os runtime_loader"
21878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21879  soname_spec='${libname}${release}${shared_ext}$major'
21880  shlibpath_var=LIBRARY_PATH
21881  shlibpath_overrides_runpath=yes
21882  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21883  hardcode_into_libs=yes
21884  ;;
21885
21886hpux9* | hpux10* | hpux11*)
21887  # Give a soname corresponding to the major version so that dld.sl refuses to
21888  # link against other versions.
21889  version_type=sunos
21890  need_lib_prefix=no
21891  need_version=no
21892  case $host_cpu in
21893  ia64*)
21894    shrext_cmds='.so'
21895    hardcode_into_libs=yes
21896    dynamic_linker="$host_os dld.so"
21897    shlibpath_var=LD_LIBRARY_PATH
21898    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21899    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21900    soname_spec='${libname}${release}${shared_ext}$major'
21901    if test "X$HPUX_IA64_MODE" = X32; then
21902      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21903    else
21904      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21905    fi
21906    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21907    ;;
21908  hppa*64*)
21909    shrext_cmds='.sl'
21910    hardcode_into_libs=yes
21911    dynamic_linker="$host_os dld.sl"
21912    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21913    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21915    soname_spec='${libname}${release}${shared_ext}$major'
21916    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21917    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21918    ;;
21919  *)
21920    shrext_cmds='.sl'
21921    dynamic_linker="$host_os dld.sl"
21922    shlibpath_var=SHLIB_PATH
21923    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21924    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21925    soname_spec='${libname}${release}${shared_ext}$major'
21926    ;;
21927  esac
21928  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21929  postinstall_cmds='chmod 555 $lib'
21930  # or fails outright, so override atomically:
21931  install_override_mode=555
21932  ;;
21933
21934interix[3-9]*)
21935  version_type=linux
21936  need_lib_prefix=no
21937  need_version=no
21938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21939  soname_spec='${libname}${release}${shared_ext}$major'
21940  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21941  shlibpath_var=LD_LIBRARY_PATH
21942  shlibpath_overrides_runpath=no
21943  hardcode_into_libs=yes
21944  ;;
21945
21946irix5* | irix6* | nonstopux*)
21947  case $host_os in
21948    nonstopux*) version_type=nonstopux ;;
21949    *)
21950	if test "$lt_cv_prog_gnu_ld" = yes; then
21951		version_type=linux
21952	else
21953		version_type=irix
21954	fi ;;
21955  esac
21956  need_lib_prefix=no
21957  need_version=no
21958  soname_spec='${libname}${release}${shared_ext}$major'
21959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21960  case $host_os in
21961  irix5* | nonstopux*)
21962    libsuff= shlibsuff=
21963    ;;
21964  *)
21965    case $LD in # libtool.m4 will add one of these switches to LD
21966    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21967      libsuff= shlibsuff= libmagic=32-bit;;
21968    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21969      libsuff=32 shlibsuff=N32 libmagic=N32;;
21970    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21971      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21972    *) libsuff= shlibsuff= libmagic=never-match;;
21973    esac
21974    ;;
21975  esac
21976  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21977  shlibpath_overrides_runpath=no
21978  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21979  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21980  hardcode_into_libs=yes
21981  ;;
21982
21983# No shared lib support for Linux oldld, aout, or coff.
21984linux*oldld* | linux*aout* | linux*coff*)
21985  dynamic_linker=no
21986  ;;
21987
21988# This must be Linux ELF.
21989
21990# uclinux* changes (here and below) have been submitted to the libtool
21991# project, but have not yet been accepted: they are GCC-local changes
21992# for the time being.  (See
21993# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21994linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21995  version_type=linux
21996  need_lib_prefix=no
21997  need_version=no
21998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21999  soname_spec='${libname}${release}${shared_ext}$major'
22000  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22001  shlibpath_var=LD_LIBRARY_PATH
22002  shlibpath_overrides_runpath=no
22003
22004  # Some binutils ld are patched to set DT_RUNPATH
22005  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22006  $as_echo_n "(cached) " >&6
22007else
22008  lt_cv_shlibpath_overrides_runpath=no
22009    save_LDFLAGS=$LDFLAGS
22010    save_libdir=$libdir
22011    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22012	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014/* end confdefs.h.  */
22015
22016int
22017main ()
22018{
22019
22020  ;
22021  return 0;
22022}
22023_ACEOF
22024if ac_fn_cxx_try_link "$LINENO"; then :
22025  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22026  lt_cv_shlibpath_overrides_runpath=yes
22027fi
22028fi
22029rm -f core conftest.err conftest.$ac_objext \
22030    conftest$ac_exeext conftest.$ac_ext
22031    LDFLAGS=$save_LDFLAGS
22032    libdir=$save_libdir
22033
22034fi
22035
22036  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22037
22038  # This implies no fast_install, which is unacceptable.
22039  # Some rework will be needed to allow for fast_install
22040  # before this can be enabled.
22041  hardcode_into_libs=yes
22042
22043  # Append ld.so.conf contents to the search path
22044  if test -f /etc/ld.so.conf; then
22045    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' ' '`
22046    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22047  fi
22048
22049  # We used to test for /lib/ld.so.1 and disable shared libraries on
22050  # powerpc, because MkLinux only supported shared libraries with the
22051  # GNU dynamic linker.  Since this was broken with cross compilers,
22052  # most powerpc-linux boxes support dynamic linking these days and
22053  # people can always --disable-shared, the test was removed, and we
22054  # assume the GNU/Linux dynamic linker is in use.
22055  dynamic_linker='GNU/Linux ld.so'
22056  ;;
22057
22058netbsd*)
22059  version_type=sunos
22060  need_lib_prefix=no
22061  need_version=no
22062  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22063    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22064    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22065    dynamic_linker='NetBSD (a.out) ld.so'
22066  else
22067    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22068    soname_spec='${libname}${release}${shared_ext}$major'
22069    dynamic_linker='NetBSD ld.elf_so'
22070  fi
22071  shlibpath_var=LD_LIBRARY_PATH
22072  shlibpath_overrides_runpath=yes
22073  hardcode_into_libs=yes
22074  ;;
22075
22076newsos6)
22077  version_type=linux
22078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22079  shlibpath_var=LD_LIBRARY_PATH
22080  shlibpath_overrides_runpath=yes
22081  ;;
22082
22083*nto* | *qnx*)
22084  version_type=qnx
22085  need_lib_prefix=no
22086  need_version=no
22087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22088  soname_spec='${libname}${release}${shared_ext}$major'
22089  shlibpath_var=LD_LIBRARY_PATH
22090  shlibpath_overrides_runpath=no
22091  hardcode_into_libs=yes
22092  dynamic_linker='ldqnx.so'
22093  ;;
22094
22095openbsd*)
22096  version_type=sunos
22097  sys_lib_dlsearch_path_spec="/usr/lib"
22098  need_lib_prefix=no
22099  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22100  case $host_os in
22101    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
22102    *)				need_version=no  ;;
22103  esac
22104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22105  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22106  shlibpath_var=LD_LIBRARY_PATH
22107  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22108    case $host_os in
22109      openbsd2.[89] | openbsd2.[89].*)
22110	shlibpath_overrides_runpath=no
22111	;;
22112      *)
22113	shlibpath_overrides_runpath=yes
22114	;;
22115      esac
22116  else
22117    shlibpath_overrides_runpath=yes
22118  fi
22119  ;;
22120
22121os2*)
22122  libname_spec='$name'
22123  shrext_cmds=".dll"
22124  need_lib_prefix=no
22125  library_names_spec='$libname${shared_ext} $libname.a'
22126  dynamic_linker='OS/2 ld.exe'
22127  shlibpath_var=LIBPATH
22128  ;;
22129
22130osf3* | osf4* | osf5*)
22131  version_type=osf
22132  need_lib_prefix=no
22133  need_version=no
22134  soname_spec='${libname}${release}${shared_ext}$major'
22135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22136  shlibpath_var=LD_LIBRARY_PATH
22137  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22138  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22139  ;;
22140
22141rdos*)
22142  dynamic_linker=no
22143  ;;
22144
22145solaris*)
22146  version_type=linux
22147  need_lib_prefix=no
22148  need_version=no
22149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22150  soname_spec='${libname}${release}${shared_ext}$major'
22151  shlibpath_var=LD_LIBRARY_PATH
22152  shlibpath_overrides_runpath=yes
22153  hardcode_into_libs=yes
22154  # ldd complains unless libraries are executable
22155  postinstall_cmds='chmod +x $lib'
22156  ;;
22157
22158sunos4*)
22159  version_type=sunos
22160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22161  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22162  shlibpath_var=LD_LIBRARY_PATH
22163  shlibpath_overrides_runpath=yes
22164  if test "$with_gnu_ld" = yes; then
22165    need_lib_prefix=no
22166  fi
22167  need_version=yes
22168  ;;
22169
22170sysv4 | sysv4.3*)
22171  version_type=linux
22172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22173  soname_spec='${libname}${release}${shared_ext}$major'
22174  shlibpath_var=LD_LIBRARY_PATH
22175  case $host_vendor in
22176    sni)
22177      shlibpath_overrides_runpath=no
22178      need_lib_prefix=no
22179      runpath_var=LD_RUN_PATH
22180      ;;
22181    siemens)
22182      need_lib_prefix=no
22183      ;;
22184    motorola)
22185      need_lib_prefix=no
22186      need_version=no
22187      shlibpath_overrides_runpath=no
22188      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22189      ;;
22190  esac
22191  ;;
22192
22193sysv4*MP*)
22194  if test -d /usr/nec ;then
22195    version_type=linux
22196    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22197    soname_spec='$libname${shared_ext}.$major'
22198    shlibpath_var=LD_LIBRARY_PATH
22199  fi
22200  ;;
22201
22202sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22203  version_type=freebsd-elf
22204  need_lib_prefix=no
22205  need_version=no
22206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22207  soname_spec='${libname}${release}${shared_ext}$major'
22208  shlibpath_var=LD_LIBRARY_PATH
22209  shlibpath_overrides_runpath=yes
22210  hardcode_into_libs=yes
22211  if test "$with_gnu_ld" = yes; then
22212    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22213  else
22214    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22215    case $host_os in
22216      sco3.2v5*)
22217        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22218	;;
22219    esac
22220  fi
22221  sys_lib_dlsearch_path_spec='/usr/lib'
22222  ;;
22223
22224tpf*)
22225  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22226  version_type=linux
22227  need_lib_prefix=no
22228  need_version=no
22229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22230  shlibpath_var=LD_LIBRARY_PATH
22231  shlibpath_overrides_runpath=no
22232  hardcode_into_libs=yes
22233  ;;
22234
22235uts4*)
22236  version_type=linux
22237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22238  soname_spec='${libname}${release}${shared_ext}$major'
22239  shlibpath_var=LD_LIBRARY_PATH
22240  ;;
22241
22242*)
22243  dynamic_linker=no
22244  ;;
22245esac
22246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22247$as_echo "$dynamic_linker" >&6; }
22248test "$dynamic_linker" = no && can_build_shared=no
22249
22250variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22251if test "$GCC" = yes; then
22252  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22253fi
22254
22255if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22256  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22257fi
22258if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22259  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22260fi
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22300$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22301hardcode_action_CXX=
22302if test -n "$hardcode_libdir_flag_spec_CXX" ||
22303   test -n "$runpath_var_CXX" ||
22304   test "X$hardcode_automatic_CXX" = "Xyes" ; then
22305
22306  # We can hardcode non-existent directories.
22307  if test "$hardcode_direct_CXX" != no &&
22308     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22309     # have to relink, otherwise we might link with an installed library
22310     # when we should be linking with a yet-to-be-installed one
22311     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22312     test "$hardcode_minus_L_CXX" != no; then
22313    # Linking always hardcodes the temporary library directory.
22314    hardcode_action_CXX=relink
22315  else
22316    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22317    hardcode_action_CXX=immediate
22318  fi
22319else
22320  # We cannot hardcode anything, or else we can only hardcode existing
22321  # directories.
22322  hardcode_action_CXX=unsupported
22323fi
22324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22325$as_echo "$hardcode_action_CXX" >&6; }
22326
22327if test "$hardcode_action_CXX" = relink ||
22328   test "$inherit_rpath_CXX" = yes; then
22329  # Fast installation is not supported
22330  enable_fast_install=no
22331elif test "$shlibpath_overrides_runpath" = yes ||
22332     test "$enable_shared" = no; then
22333  # Fast installation is not necessary
22334  enable_fast_install=needless
22335fi
22336
22337
22338
22339
22340
22341
22342
22343  fi # test -n "$compiler"
22344
22345  CC=$lt_save_CC
22346  LDCXX=$LD
22347  LD=$lt_save_LD
22348  GCC=$lt_save_GCC
22349  with_gnu_ld=$lt_save_with_gnu_ld
22350  lt_cv_path_LDCXX=$lt_cv_path_LD
22351  lt_cv_path_LD=$lt_save_path_LD
22352  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22353  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22354fi # test "$_lt_caught_CXX_error" != yes
22355
22356ac_ext=cpp
22357ac_cpp='$CXXCPP $CPPFLAGS'
22358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377# Only expand once:
22378
22379
22380
22381
22382
22383# Identify the assembler which will work hand-in-glove with the newly
22384# built GCC, so that we can examine its features.  This is the assembler
22385# which will be driven by the driver program.
22386#
22387# If build != host, and we aren't building gas in-tree, we identify a
22388# build->target assembler and hope that it will have the same features
22389# as the host->target assembler we'll be using.
22390gcc_cv_gas_major_version=
22391gcc_cv_gas_minor_version=
22392gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22393
22394if ${gcc_cv_as+:} false; then :
22395
22396else
22397
22398if test -x "$DEFAULT_ASSEMBLER"; then
22399	gcc_cv_as="$DEFAULT_ASSEMBLER"
22400elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22401     && test -f ../gas/Makefile \
22402     && test x$build = x$host; then
22403	gcc_cv_as=../gas/as-new$build_exeext
22404elif test -x as$build_exeext; then
22405	# Build using assembler in the current directory.
22406	gcc_cv_as=./as$build_exeext
22407elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22408        gcc_cv_as="$AS_FOR_TARGET"
22409else
22410        # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22411set dummy $AS_FOR_TARGET; ac_word=$2
22412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22413$as_echo_n "checking for $ac_word... " >&6; }
22414if ${ac_cv_path_gcc_cv_as+:} false; then :
22415  $as_echo_n "(cached) " >&6
22416else
22417  case $gcc_cv_as in
22418  [\\/]* | ?:[\\/]*)
22419  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22420  ;;
22421  *)
22422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22423for as_dir in $PATH
22424do
22425  IFS=$as_save_IFS
22426  test -z "$as_dir" && as_dir=.
22427    for ac_exec_ext in '' $ac_executable_extensions; do
22428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22429    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22431    break 2
22432  fi
22433done
22434  done
22435IFS=$as_save_IFS
22436
22437  ;;
22438esac
22439fi
22440gcc_cv_as=$ac_cv_path_gcc_cv_as
22441if test -n "$gcc_cv_as"; then
22442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22443$as_echo "$gcc_cv_as" >&6; }
22444else
22445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22446$as_echo "no" >&6; }
22447fi
22448
22449
22450fi
22451fi
22452
22453ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22454
22455case "$ORIGINAL_AS_FOR_TARGET" in
22456  ./as | ./as$build_exeext) ;;
22457  *) ac_config_files="$ac_config_files as:exec-tool.in"
22458 ;;
22459esac
22460
22461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22462$as_echo_n "checking what assembler to use... " >&6; }
22463if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22464  # Single tree build which includes gas.  We want to prefer it
22465  # over whatever linker top-level may have detected, since
22466  # we'll use what we're building after installation anyway.
22467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22468$as_echo "newly built gas" >&6; }
22469  in_tree_gas=yes
22470  gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22471for f in $gcc_cv_as_bfd_srcdir/configure \
22472         $gcc_cv_as_gas_srcdir/configure \
22473         $gcc_cv_as_gas_srcdir/configure.ac \
22474         $gcc_cv_as_gas_srcdir/Makefile.in ; do
22475  gcc_cv_gas_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22476  if test x$gcc_cv_gas_version != x; then
22477    break
22478  fi
22479done
22480case $gcc_cv_gas_version in
22481  VERSION=[0-9]*) ;;
22482  *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22483esac
22484gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22485gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22486gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22487case $gcc_cv_gas_patch_version in
22488  "") gcc_cv_gas_patch_version="0" ;;
22489esac
22490gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22491			    + $gcc_cv_gas_minor_version \) \* 1000 \
22492			    + $gcc_cv_gas_patch_version`
22493
22494  in_tree_gas_is_elf=no
22495  if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22496     || (grep 'obj_format = multi' ../gas/Makefile \
22497         && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22498  then
22499    in_tree_gas_is_elf=yes
22500  fi
22501else
22502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22503$as_echo "$gcc_cv_as" >&6; }
22504  in_tree_gas=no
22505fi
22506
22507default_ld=
22508# Check whether --enable-ld was given.
22509if test "${enable_ld+set}" = set; then :
22510  enableval=$enable_ld; case "${enableval}" in
22511 no)
22512   default_ld=ld.gold
22513   ;;
22514 esac
22515fi
22516
22517
22518install_gold_as_default=no
22519# Check whether --enable-gold was given.
22520if test "${enable_gold+set}" = set; then :
22521  enableval=$enable_gold; case "${enableval}" in
22522 default)
22523   install_gold_as_default=yes
22524   ;;
22525 yes)
22526   if test x${default_ld} != x; then
22527     install_gold_as_default=yes
22528   fi
22529   ;;
22530 no)
22531   ;;
22532 *)
22533   as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22534   ;;
22535 esac
22536fi
22537
22538
22539# Identify the linker which will work hand-in-glove with the newly
22540# built GCC, so that we can examine its features.  This is the linker
22541# which will be driven by the driver program.
22542#
22543# If build != host, and we aren't building gas in-tree, we identify a
22544# build->target linker and hope that it will have the same features
22545# as the host->target linker we'll be using.
22546gcc_cv_gld_major_version=
22547gcc_cv_gld_minor_version=
22548gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22549gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22550gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22551
22552if ${gcc_cv_ld+:} false; then :
22553
22554else
22555
22556if test -x "$DEFAULT_LINKER"; then
22557	gcc_cv_ld="$DEFAULT_LINKER"
22558elif test $install_gold_as_default = yes \
22559     && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22560     && test -f ../gold/Makefile \
22561     && test x$build = x$host; then
22562	gcc_cv_ld=../gold/ld-new$build_exeext
22563elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22564     && test -f ../ld/Makefile \
22565     && test x$build = x$host; then
22566	gcc_cv_ld=../ld/ld-new$build_exeext
22567elif test -x collect-ld$build_exeext; then
22568	# Build using linker in the current directory.
22569	gcc_cv_ld=./collect-ld$build_exeext
22570elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22571        gcc_cv_ld="$LD_FOR_TARGET"
22572else
22573        # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22574set dummy $LD_FOR_TARGET; ac_word=$2
22575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22576$as_echo_n "checking for $ac_word... " >&6; }
22577if ${ac_cv_path_gcc_cv_ld+:} false; then :
22578  $as_echo_n "(cached) " >&6
22579else
22580  case $gcc_cv_ld in
22581  [\\/]* | ?:[\\/]*)
22582  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22583  ;;
22584  *)
22585  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22586for as_dir in $PATH
22587do
22588  IFS=$as_save_IFS
22589  test -z "$as_dir" && as_dir=.
22590    for ac_exec_ext in '' $ac_executable_extensions; do
22591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22592    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22594    break 2
22595  fi
22596done
22597  done
22598IFS=$as_save_IFS
22599
22600  ;;
22601esac
22602fi
22603gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22604if test -n "$gcc_cv_ld"; then
22605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22606$as_echo "$gcc_cv_ld" >&6; }
22607else
22608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22609$as_echo "no" >&6; }
22610fi
22611
22612
22613fi
22614fi
22615
22616ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22617PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22618# if the PLUGIN_LD is set ld-new, just have it as ld
22619# as that is the installed named.
22620if test x$PLUGIN_LD_SUFFIX = xld-new \
22621   || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22622  PLUGIN_LD_SUFFIX=ld
22623fi
22624
22625# Check whether --with-plugin-ld was given.
22626if test "${with_plugin_ld+set}" = set; then :
22627  withval=$with_plugin_ld; if test x"$withval" != x; then
22628   ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22629   PLUGIN_LD_SUFFIX="$withval"
22630 fi
22631fi
22632
22633
22634
22635cat >>confdefs.h <<_ACEOF
22636#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22637_ACEOF
22638
22639
22640# Check to see if we are using gold instead of ld
22641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22642$as_echo_n "checking whether we are using gold... " >&6; }
22643ld_is_gold=no
22644if test x$gcc_cv_ld != x; then
22645  if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22646     | grep "GNU gold" > /dev/null; then
22647    ld_is_gold=yes
22648  fi
22649fi
22650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22651$as_echo "$ld_is_gold" >&6; }
22652
22653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22654$as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22655# Check to see if default ld is not gold, but gold is
22656# available and has support for split stack.  If gcc was configured
22657# with gold then no checking is done.
22658#
22659if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22660
22661# For platforms other than powerpc64*, enable as appropriate.
22662
22663  gold_non_default=no
22664  ld_gold=`which ${gcc_cv_ld}.gold`
22665# Make sure this gold has minimal split stack support
22666  if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22667    ld_vers=`$ld_gold --version | sed 1q`
22668    gold_vers=`echo $ld_vers | sed -n \
22669          -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22670    case $target in
22671# check that the gold version contains the complete split stack support
22672# on powerpc64 big and little endian
22673      powerpc64*-*-*)
22674        case "$gold_vers" in
22675          2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22676          ;;
22677          *) gold_non_default=no
22678          ;;
22679        esac
22680        ;;
22681    esac
22682  fi
22683  if test $gold_non_default = yes; then
22684
22685$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22686
22687  fi
22688fi
22689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22690$as_echo "$gold_non_default" >&6; }
22691
22692ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22693
22694case "$ORIGINAL_LD_FOR_TARGET" in
22695  ./collect-ld | ./collect-ld$build_exeext) ;;
22696  *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22697 ;;
22698esac
22699
22700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22701$as_echo_n "checking what linker to use... " >&6; }
22702if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22703   || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22704	# Single tree build which includes ld.  We want to prefer it
22705	# over whatever linker top-level may have detected, since
22706	# we'll use what we're building after installation anyway.
22707	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22708$as_echo "newly built ld" >&6; }
22709	in_tree_ld=yes
22710	in_tree_ld_is_elf=no
22711	if (grep 'EMUL = .*elf' ../ld/Makefile \
22712	    || grep 'EMUL = .*linux' ../ld/Makefile \
22713	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22714	  in_tree_ld_is_elf=yes
22715	elif test "$ld_is_gold" = yes; then
22716	  in_tree_ld_is_elf=yes
22717	fi
22718	for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22719	do
22720		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22721		if test x$gcc_cv_gld_version != x; then
22722			break
22723		fi
22724	done
22725	case $gcc_cv_gld_version in
22726	  VERSION=[0-9]*) ;;
22727	  *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22728	esac
22729	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22730	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22731	ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22732	ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22733else
22734	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22735$as_echo "$gcc_cv_ld" >&6; }
22736	in_tree_ld=no
22737	gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22738	ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22739	ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22740fi
22741
22742
22743
22744
22745# Figure out what nm we will be using.
22746gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22747if ${gcc_cv_nm+:} false; then :
22748
22749else
22750
22751if test -f $gcc_cv_binutils_srcdir/configure.ac \
22752     && test -f ../binutils/Makefile \
22753     && test x$build = x$host; then
22754	gcc_cv_nm=../binutils/nm-new$build_exeext
22755elif test -x nm$build_exeext; then
22756	gcc_cv_nm=./nm$build_exeext
22757elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22758        gcc_cv_nm="$NM_FOR_TARGET"
22759else
22760        # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22761set dummy $NM_FOR_TARGET; ac_word=$2
22762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22763$as_echo_n "checking for $ac_word... " >&6; }
22764if ${ac_cv_path_gcc_cv_nm+:} false; then :
22765  $as_echo_n "(cached) " >&6
22766else
22767  case $gcc_cv_nm in
22768  [\\/]* | ?:[\\/]*)
22769  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22770  ;;
22771  *)
22772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22773for as_dir in $PATH
22774do
22775  IFS=$as_save_IFS
22776  test -z "$as_dir" && as_dir=.
22777    for ac_exec_ext in '' $ac_executable_extensions; do
22778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22779    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22781    break 2
22782  fi
22783done
22784  done
22785IFS=$as_save_IFS
22786
22787  ;;
22788esac
22789fi
22790gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22791if test -n "$gcc_cv_nm"; then
22792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22793$as_echo "$gcc_cv_nm" >&6; }
22794else
22795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22796$as_echo "no" >&6; }
22797fi
22798
22799
22800fi
22801fi
22802
22803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22804$as_echo_n "checking what nm to use... " >&6; }
22805if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22806	# Single tree build which includes binutils.
22807	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22808$as_echo "newly built nm" >&6; }
22809	in_tree_nm=yes
22810else
22811	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22812$as_echo "$gcc_cv_nm" >&6; }
22813	in_tree_nm=no
22814fi
22815
22816ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22817
22818case "$ORIGINAL_NM_FOR_TARGET" in
22819  ./nm | ./nm$build_exeext) ;;
22820  *) ac_config_files="$ac_config_files nm:exec-tool.in"
22821 ;;
22822esac
22823
22824
22825# Figure out what objdump we will be using.
22826if ${gcc_cv_objdump+:} false; then :
22827
22828else
22829
22830if test -f $gcc_cv_binutils_srcdir/configure.ac \
22831     && test -f ../binutils/Makefile \
22832     && test x$build = x$host; then
22833	# Single tree build which includes binutils.
22834	gcc_cv_objdump=../binutils/objdump$build_exeext
22835elif test -x objdump$build_exeext; then
22836	gcc_cv_objdump=./objdump$build_exeext
22837elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22838        gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22839else
22840        # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22841set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22843$as_echo_n "checking for $ac_word... " >&6; }
22844if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22845  $as_echo_n "(cached) " >&6
22846else
22847  case $gcc_cv_objdump in
22848  [\\/]* | ?:[\\/]*)
22849  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22850  ;;
22851  *)
22852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22853for as_dir in $PATH
22854do
22855  IFS=$as_save_IFS
22856  test -z "$as_dir" && as_dir=.
22857    for ac_exec_ext in '' $ac_executable_extensions; do
22858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22859    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22861    break 2
22862  fi
22863done
22864  done
22865IFS=$as_save_IFS
22866
22867  ;;
22868esac
22869fi
22870gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22871if test -n "$gcc_cv_objdump"; then
22872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22873$as_echo "$gcc_cv_objdump" >&6; }
22874else
22875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22876$as_echo "no" >&6; }
22877fi
22878
22879
22880fi
22881fi
22882
22883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22884$as_echo_n "checking what objdump to use... " >&6; }
22885if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22886	# Single tree build which includes binutils.
22887	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22888$as_echo "newly built objdump" >&6; }
22889elif test x$gcc_cv_objdump = x; then
22890	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22891$as_echo "not found" >&6; }
22892else
22893	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22894$as_echo "$gcc_cv_objdump" >&6; }
22895fi
22896
22897# Figure out what readelf we will be using.
22898if ${gcc_cv_readelf+:} false; then :
22899
22900else
22901
22902if test -f $gcc_cv_binutils_srcdir/configure.ac \
22903     && test -f ../binutils/Makefile \
22904     && test x$build = x$host; then
22905	# Single tree build which includes binutils.
22906	gcc_cv_readelf=../binutils/readelf$build_exeext
22907elif test -x readelf$build_exeext; then
22908	gcc_cv_readelf=./readelf$build_exeext
22909elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22910        gcc_cv_readelf="$READELF_FOR_TARGET"
22911else
22912        # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22913set dummy $READELF_FOR_TARGET; ac_word=$2
22914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22915$as_echo_n "checking for $ac_word... " >&6; }
22916if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22917  $as_echo_n "(cached) " >&6
22918else
22919  case $gcc_cv_readelf in
22920  [\\/]* | ?:[\\/]*)
22921  ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22922  ;;
22923  *)
22924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22925for as_dir in $PATH
22926do
22927  IFS=$as_save_IFS
22928  test -z "$as_dir" && as_dir=.
22929    for ac_exec_ext in '' $ac_executable_extensions; do
22930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22931    ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22933    break 2
22934  fi
22935done
22936  done
22937IFS=$as_save_IFS
22938
22939  ;;
22940esac
22941fi
22942gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22943if test -n "$gcc_cv_readelf"; then
22944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22945$as_echo "$gcc_cv_readelf" >&6; }
22946else
22947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22948$as_echo "no" >&6; }
22949fi
22950
22951
22952fi
22953fi
22954
22955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22956$as_echo_n "checking what readelf to use... " >&6; }
22957if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22958	# Single tree build which includes binutils.
22959	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22960$as_echo "newly built readelf" >&6; }
22961elif test x$gcc_cv_readelf = x; then
22962	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22963$as_echo "not found" >&6; }
22964else
22965	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22966$as_echo "$gcc_cv_readelf" >&6; }
22967fi
22968
22969# Figure out what otool we will be using.
22970if ${gcc_cv_otool+:} false; then :
22971
22972else
22973
22974if test -x otool$build_exeext; then
22975	gcc_cv_otool=./otool$build_exeext
22976elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22977        gcc_cv_otool="$OTOOL_FOR_TARGET"
22978else
22979        # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22980set dummy $OTOOL_FOR_TARGET; ac_word=$2
22981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22982$as_echo_n "checking for $ac_word... " >&6; }
22983if ${ac_cv_path_gcc_cv_otool+:} false; then :
22984  $as_echo_n "(cached) " >&6
22985else
22986  case $gcc_cv_otool in
22987  [\\/]* | ?:[\\/]*)
22988  ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22989  ;;
22990  *)
22991  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22992for as_dir in $PATH
22993do
22994  IFS=$as_save_IFS
22995  test -z "$as_dir" && as_dir=.
22996    for ac_exec_ext in '' $ac_executable_extensions; do
22997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22998    ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23000    break 2
23001  fi
23002done
23003  done
23004IFS=$as_save_IFS
23005
23006  ;;
23007esac
23008fi
23009gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23010if test -n "$gcc_cv_otool"; then
23011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23012$as_echo "$gcc_cv_otool" >&6; }
23013else
23014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23015$as_echo "no" >&6; }
23016fi
23017
23018
23019fi
23020fi
23021
23022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23023$as_echo_n "checking what otool to use... " >&6; }
23024if test x$gcc_cv_otool = x; then
23025	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23026$as_echo "not found" >&6; }
23027else
23028	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23029$as_echo "$gcc_cv_otool" >&6; }
23030fi
23031
23032# Figure out what assembler alignment features are present.
23033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23034$as_echo_n "checking assembler flags... " >&6; }
23035if ${gcc_cv_as_flags+:} false; then :
23036  $as_echo_n "(cached) " >&6
23037else
23038   case "$target" in
23039  i[34567]86-*-linux*)
23040        gcc_cv_as_flags=--32
23041    ;;
23042  x86_64-*-linux-gnux32)
23043        gcc_cv_as_flags=--x32
23044    ;;
23045  x86_64-*-linux*)
23046        gcc_cv_as_flags=--64
23047    ;;
23048  powerpc*-*-darwin*)
23049        gcc_cv_as_flags="-arch ppc"
23050    ;;
23051  *)
23052    gcc_cv_as_flags=" "
23053    ;;
23054  esac
23055fi
23056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23057$as_echo "$gcc_cv_as_flags" >&6; }
23058
23059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23060$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23061if ${gcc_cv_as_balign_and_p2align+:} false; then :
23062  $as_echo_n "(cached) " >&6
23063else
23064  gcc_cv_as_balign_and_p2align=no
23065    if test $in_tree_gas = yes; then
23066    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23067  then gcc_cv_as_balign_and_p2align=yes
23068fi
23069  elif test x$gcc_cv_as != x; then
23070    $as_echo '.balign 4
23071.p2align 2' > conftest.s
23072    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23073  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23074  (eval $ac_try) 2>&5
23075  ac_status=$?
23076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23077  test $ac_status = 0; }; }
23078    then
23079	gcc_cv_as_balign_and_p2align=yes
23080    else
23081      echo "configure: failed program was" >&5
23082      cat conftest.s >&5
23083    fi
23084    rm -f conftest.o conftest.s
23085  fi
23086fi
23087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23088$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23089if test $gcc_cv_as_balign_and_p2align = yes; then
23090
23091$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23092
23093fi
23094
23095
23096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23097$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23098if ${gcc_cv_as_max_skip_p2align+:} false; then :
23099  $as_echo_n "(cached) " >&6
23100else
23101  gcc_cv_as_max_skip_p2align=no
23102    if test $in_tree_gas = yes; then
23103    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23104  then gcc_cv_as_max_skip_p2align=yes
23105fi
23106  elif test x$gcc_cv_as != x; then
23107    $as_echo '.p2align 4,,7' > conftest.s
23108    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23109  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23110  (eval $ac_try) 2>&5
23111  ac_status=$?
23112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23113  test $ac_status = 0; }; }
23114    then
23115	gcc_cv_as_max_skip_p2align=yes
23116    else
23117      echo "configure: failed program was" >&5
23118      cat conftest.s >&5
23119    fi
23120    rm -f conftest.o conftest.s
23121  fi
23122fi
23123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23124$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23125if test $gcc_cv_as_max_skip_p2align = yes; then
23126
23127$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23128
23129fi
23130
23131
23132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23133$as_echo_n "checking assembler for .literal16... " >&6; }
23134if ${gcc_cv_as_literal16+:} false; then :
23135  $as_echo_n "(cached) " >&6
23136else
23137  gcc_cv_as_literal16=no
23138    if test $in_tree_gas = yes; then
23139    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23140  then gcc_cv_as_literal16=yes
23141fi
23142  elif test x$gcc_cv_as != x; then
23143    $as_echo '.literal16' > conftest.s
23144    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23145  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23146  (eval $ac_try) 2>&5
23147  ac_status=$?
23148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23149  test $ac_status = 0; }; }
23150    then
23151	gcc_cv_as_literal16=yes
23152    else
23153      echo "configure: failed program was" >&5
23154      cat conftest.s >&5
23155    fi
23156    rm -f conftest.o conftest.s
23157  fi
23158fi
23159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23160$as_echo "$gcc_cv_as_literal16" >&6; }
23161if test $gcc_cv_as_literal16 = yes; then
23162
23163$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23164
23165fi
23166
23167
23168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23169$as_echo_n "checking assembler for working .subsection -1... " >&6; }
23170if ${gcc_cv_as_subsection_m1+:} false; then :
23171  $as_echo_n "(cached) " >&6
23172else
23173  gcc_cv_as_subsection_m1=no
23174    if test $in_tree_gas = yes; then
23175    if test $in_tree_gas_is_elf = yes \
23176  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23177  then gcc_cv_as_subsection_m1=yes
23178fi
23179  elif test x$gcc_cv_as != x; then
23180    $as_echo 'conftest_label1: .word 0
23181.subsection -1
23182conftest_label2: .word 0
23183.previous' > conftest.s
23184    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23185  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23186  (eval $ac_try) 2>&5
23187  ac_status=$?
23188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23189  test $ac_status = 0; }; }
23190    then
23191	if test x$gcc_cv_nm != x; then
23192    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23193    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23194    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23195    then :
23196    else gcc_cv_as_subsection_m1=yes
23197    fi
23198    rm -f conftest.nm1 conftest.nm2
23199  fi
23200    else
23201      echo "configure: failed program was" >&5
23202      cat conftest.s >&5
23203    fi
23204    rm -f conftest.o conftest.s
23205  fi
23206fi
23207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23208$as_echo "$gcc_cv_as_subsection_m1" >&6; }
23209if test $gcc_cv_as_subsection_m1 = yes; then
23210
23211$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23212
23213fi
23214
23215
23216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23217$as_echo_n "checking assembler for .weak... " >&6; }
23218if ${gcc_cv_as_weak+:} false; then :
23219  $as_echo_n "(cached) " >&6
23220else
23221  gcc_cv_as_weak=no
23222    if test $in_tree_gas = yes; then
23223    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23224  then gcc_cv_as_weak=yes
23225fi
23226  elif test x$gcc_cv_as != x; then
23227    $as_echo '	.weak foobar' > conftest.s
23228    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23229  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23230  (eval $ac_try) 2>&5
23231  ac_status=$?
23232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23233  test $ac_status = 0; }; }
23234    then
23235	gcc_cv_as_weak=yes
23236    else
23237      echo "configure: failed program was" >&5
23238      cat conftest.s >&5
23239    fi
23240    rm -f conftest.o conftest.s
23241  fi
23242fi
23243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23244$as_echo "$gcc_cv_as_weak" >&6; }
23245if test $gcc_cv_as_weak = yes; then
23246
23247$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23248
23249fi
23250
23251
23252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23253$as_echo_n "checking assembler for .weakref... " >&6; }
23254if ${gcc_cv_as_weakref+:} false; then :
23255  $as_echo_n "(cached) " >&6
23256else
23257  gcc_cv_as_weakref=no
23258    if test $in_tree_gas = yes; then
23259    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23260  then gcc_cv_as_weakref=yes
23261fi
23262  elif test x$gcc_cv_as != x; then
23263    $as_echo '	.weakref foobar, barfnot' > conftest.s
23264    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23265  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23266  (eval $ac_try) 2>&5
23267  ac_status=$?
23268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23269  test $ac_status = 0; }; }
23270    then
23271	gcc_cv_as_weakref=yes
23272    else
23273      echo "configure: failed program was" >&5
23274      cat conftest.s >&5
23275    fi
23276    rm -f conftest.o conftest.s
23277  fi
23278fi
23279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23280$as_echo "$gcc_cv_as_weakref" >&6; }
23281if test $gcc_cv_as_weakref = yes; then
23282
23283$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23284
23285fi
23286
23287
23288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23289$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23290if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23291  $as_echo_n "(cached) " >&6
23292else
23293  gcc_cv_as_nsubspa_comdat=no
23294    if test $in_tree_gas = yes; then
23295    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23296  then gcc_cv_as_nsubspa_comdat=yes
23297fi
23298  elif test x$gcc_cv_as != x; then
23299    $as_echo '	.SPACE $TEXT$
23300	.NSUBSPA $CODE$,COMDAT' > conftest.s
23301    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23302  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23303  (eval $ac_try) 2>&5
23304  ac_status=$?
23305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23306  test $ac_status = 0; }; }
23307    then
23308	gcc_cv_as_nsubspa_comdat=yes
23309    else
23310      echo "configure: failed program was" >&5
23311      cat conftest.s >&5
23312    fi
23313    rm -f conftest.o conftest.s
23314  fi
23315fi
23316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23317$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23318if test $gcc_cv_as_nsubspa_comdat = yes; then
23319
23320$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23321
23322fi
23323
23324
23325# .hidden needs to be supported in both the assembler and the linker,
23326# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23327# This is irritatingly difficult to feature test for; we have to check the
23328# date string after the version number.  If we've got an in-tree
23329# ld, we don't know its patchlevel version, so we set the baseline at 2.13
23330# to be safe.
23331# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23332case "${target}" in
23333  *-*-aix*)
23334    conftest_s='	.globl foobar,hidden'
23335    ;;
23336  *)
23337    conftest_s='	.hidden foobar
23338foobar:'
23339    ;;
23340esac
23341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23342$as_echo_n "checking assembler for .hidden... " >&6; }
23343if ${gcc_cv_as_hidden+:} false; then :
23344  $as_echo_n "(cached) " >&6
23345else
23346  gcc_cv_as_hidden=no
23347    if test $in_tree_gas = yes; then
23348    if test $in_tree_gas_is_elf = yes \
23349  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23350  then gcc_cv_as_hidden=yes
23351fi
23352  elif test x$gcc_cv_as != x; then
23353    $as_echo "$conftest_s" > conftest.s
23354    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23355  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23356  (eval $ac_try) 2>&5
23357  ac_status=$?
23358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23359  test $ac_status = 0; }; }
23360    then
23361	gcc_cv_as_hidden=yes
23362    else
23363      echo "configure: failed program was" >&5
23364      cat conftest.s >&5
23365    fi
23366    rm -f conftest.o conftest.s
23367  fi
23368fi
23369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23370$as_echo "$gcc_cv_as_hidden" >&6; }
23371
23372
23373case "${target}" in
23374  *-*-darwin*)
23375    # Darwin as has some visibility support, though with a different syntax.
23376    gcc_cv_as_hidden=yes
23377    ;;
23378esac
23379
23380# gnu_indirect_function type is an extension proposed at
23381# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23382# selection of function implementation
23383# Check whether --enable-gnu-indirect-function was given.
23384if test "${enable_gnu_indirect_function+set}" = set; then :
23385  enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23386    yes | no) ;;
23387    *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23388Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23389  esac
23390else
23391  enable_gnu_indirect_function="$default_gnu_indirect_function"
23392fi
23393
23394
23395gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23396
23397cat >>confdefs.h <<_ACEOF
23398#define HAVE_GNU_INDIRECT_FUNCTION $gif
23399_ACEOF
23400
23401
23402
23403if test $in_tree_ld != yes ; then
23404  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23405  if echo "$ld_ver" | grep GNU > /dev/null; then
23406    if test x"$ld_is_gold" = xyes; then
23407      # GNU gold --version looks like this:
23408      #
23409      # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23410      #
23411      # We extract the binutils version which is more familiar and specific
23412      # than the gold version.
23413      ld_vers=`echo $ld_ver | sed -n \
23414	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23415    else
23416      # GNU ld --version looks like this:
23417      #
23418      # GNU ld (GNU Binutils) 2.21.51.20110225
23419      ld_vers=`echo $ld_ver | sed -n \
23420	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23421    fi
23422    ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
23423    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23424    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23425    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23426  else
23427    case "${target}" in
23428      *-*-solaris2*)
23429	# Solaris 2 ld -V output looks like this for a regular version:
23430	#
23431	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23432	#
23433	# but test versions add stuff at the end:
23434	#
23435	# ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23436	#
23437	# ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23438	# numbers can be used in ld.so.1 feature checks even if a different
23439	# linker is configured.
23440	ld_ver=`$gcc_cv_ld -V 2>&1`
23441	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23442	  ld_vers=`echo $ld_ver | sed -n \
23443	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23444	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23445	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23446	fi
23447	;;
23448    esac
23449  fi
23450fi
23451
23452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23453$as_echo_n "checking linker for .hidden support... " >&6; }
23454if ${gcc_cv_ld_hidden+:} false; then :
23455  $as_echo_n "(cached) " >&6
23456else
23457  if test $in_tree_ld = yes ; then
23458  gcc_cv_ld_hidden=no
23459  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 \
23460     && test $in_tree_ld_is_elf = yes; then
23461     gcc_cv_ld_hidden=yes
23462  fi
23463else
23464  gcc_cv_ld_hidden=yes
23465  if test x"$ld_is_gold" = xyes; then
23466    :
23467  elif echo "$ld_ver" | grep GNU > /dev/null; then
23468    case "${target}" in
23469      mmix-knuth-mmixware)
23470        # The linker emits by default mmo, not ELF, so "no" is appropriate.
23471	gcc_cv_ld_hidden=no
23472	;;
23473    esac
23474    if test 0"$ld_date" -lt 20020404; then
23475      if test -n "$ld_date"; then
23476	# If there was date string, but was earlier than 2002-04-04, fail
23477	gcc_cv_ld_hidden=no
23478      elif test -z "$ld_vers"; then
23479	# If there was no date string nor ld version number, something is wrong
23480	gcc_cv_ld_hidden=no
23481      else
23482	test -z "$ld_vers_patch" && ld_vers_patch=0
23483	if test "$ld_vers_major" -lt 2; then
23484	  gcc_cv_ld_hidden=no
23485	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23486	  gcc_cv_ld_hidden="no"
23487	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23488	  gcc_cv_ld_hidden=no
23489	fi
23490      fi
23491    fi
23492  else
23493    case "${target}" in
23494      *-*-aix[789]*)
23495        gcc_cv_ld_hidden=yes
23496        ;;
23497      *-*-darwin*)
23498	# Darwin ld has some visibility support.
23499	gcc_cv_ld_hidden=yes
23500        ;;
23501      hppa64*-*-hpux* | ia64*-*-hpux*)
23502	gcc_cv_ld_hidden=yes
23503	;;
23504      *-*-solaris2*)
23505	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23506	# .symbolic was only added in Solaris 9 12/02.
23507        gcc_cv_ld_hidden=yes
23508	;;
23509      *)
23510	gcc_cv_ld_hidden=no
23511	;;
23512    esac
23513  fi
23514fi
23515fi
23516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23517$as_echo "$gcc_cv_ld_hidden" >&6; }
23518libgcc_visibility=no
23519
23520
23521if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23522  libgcc_visibility=yes
23523
23524$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23525
23526fi
23527
23528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23529$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23530gcc_cv_ld_ro_rw_mix=unknown
23531if test $in_tree_ld = yes ; then
23532  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 \
23533     && test $in_tree_ld_is_elf = yes; then
23534    gcc_cv_ld_ro_rw_mix=read-write
23535  fi
23536elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23537  echo '.section myfoosect, "a"' > conftest1.s
23538  echo '.section myfoosect, "aw"' > conftest2.s
23539  echo '.byte 1' >> conftest2.s
23540  echo '.section myfoosect, "a"' > conftest3.s
23541  echo '.byte 0' >> conftest3.s
23542  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23543     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23544     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23545     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23546	conftest2.o conftest3.o > /dev/null 2>&1; then
23547    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23548			 | sed -e '/myfoosect/!d' -e N`
23549    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23550      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23551	gcc_cv_ld_ro_rw_mix=read-only
23552      else
23553	gcc_cv_ld_ro_rw_mix=read-write
23554      fi
23555    fi
23556  fi
23557  rm -f conftest.* conftest[123].*
23558fi
23559if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23560
23561$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23562
23563fi
23564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23565$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23566
23567# Check whether --enable-initfini-array was given.
23568if test "${enable_initfini_array+set}" = set; then :
23569  enableval=$enable_initfini_array;
23570else
23571
23572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23573$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23574if ${gcc_cv_initfini_array+:} false; then :
23575  $as_echo_n "(cached) " >&6
23576else
23577    if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23578    case "${target}" in
23579      ia64-*)
23580	if test "$cross_compiling" = yes; then :
23581  gcc_cv_initfini_array=no
23582else
23583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23584/* end confdefs.h.  */
23585
23586#ifndef __ELF__
23587#error Not an ELF OS
23588#endif
23589/* We turn on .preinit_array/.init_array/.fini_array support for ia64
23590   if it can be used.  */
23591static int x = -1;
23592int main (void) { return x; }
23593int foo (void) { x = 0; }
23594int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23595
23596_ACEOF
23597if ac_fn_cxx_try_run "$LINENO"; then :
23598  gcc_cv_initfini_array=yes
23599else
23600  gcc_cv_initfini_array=no
23601fi
23602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23603  conftest.$ac_objext conftest.beam conftest.$ac_ext
23604fi
23605;;
23606      *)
23607	gcc_cv_initfini_array=no
23608	if test $in_tree_ld = yes ; then
23609	  if test "$gcc_cv_gld_major_version" -eq 2 \
23610	     -a "$gcc_cv_gld_minor_version" -ge 22 \
23611	     -o "$gcc_cv_gld_major_version" -gt 2 \
23612	     && test $in_tree_ld_is_elf = yes; then
23613	    gcc_cv_initfini_array=yes
23614	  fi
23615	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23616	  case $target:$gas in
23617	    *:yes)
23618	      sh_flags='"a"'
23619	      sh_type='%progbits'
23620	      ;;
23621	    i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23622	      sh_flags='"a"'
23623	      sh_type='@progbits'
23624	      ;;
23625	    sparc*-*-solaris2*:no)
23626	      sh_flags='#alloc'
23627	      sh_type='#progbits'
23628	      sh_quote='"'
23629	      ;;
23630	  esac
23631	  case "$target:$gnu_ld" in
23632	    *:yes)
23633	      cat > conftest.s <<EOF
23634.section .dtors,$sh_flags,$sh_type
23635.balign 4
23636.byte 'A', 'A', 'A', 'A'
23637.section .ctors,$sh_flags,$sh_type
23638.balign 4
23639.byte 'B', 'B', 'B', 'B'
23640.section .fini_array.65530,$sh_flags,$sh_type
23641.balign 4
23642.byte 'C', 'C', 'C', 'C'
23643.section .init_array.65530,$sh_flags,$sh_type
23644.balign 4
23645.byte 'D', 'D', 'D', 'D'
23646.section .dtors.64528,$sh_flags,$sh_type
23647.balign 4
23648.byte 'E', 'E', 'E', 'E'
23649.section .ctors.64528,$sh_flags,$sh_type
23650.balign 4
23651.byte 'F', 'F', 'F', 'F'
23652.section .fini_array.01005,$sh_flags,$sh_type
23653.balign 4
23654.byte 'G', 'G', 'G', 'G'
23655.section .init_array.01005,$sh_flags,$sh_type
23656.balign 4
23657.byte 'H', 'H', 'H', 'H'
23658.text
23659.globl _start
23660_start:
23661EOF
23662	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23663	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23664	         && $gcc_cv_objdump -s -j .init_array conftest \
23665		    | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23666	         && $gcc_cv_objdump -s -j .fini_array conftest \
23667		    | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23668	        gcc_cv_initfini_array=yes
23669	      fi
23670	      ;;
23671	    *-*-solaris2*:no)
23672	      # When Solaris ld added constructor priority support, it was
23673	      # decided to only handle .init_array.N/.fini_array.N since
23674	      # there was no need for backwards compatibility with
23675	      # .ctors.N/.dtors.N.  .ctors/.dtors remain as separate
23676	      # sections with correct execution order resp. to
23677	      # .init_array/.fini_array, while gld merges them into
23678	      # .init_array/.fini_array.
23679	      cat > conftest.s <<EOF
23680.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23681.align 4
23682.byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23683.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23684.align 4
23685.byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23686.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23687.align 4
23688.byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23689.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23690.align 4
23691.byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23692.text
23693.globl _start
23694_start:
23695EOF
23696	      if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23697	         && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23698	         && $gcc_cv_objdump -s -j .init_array conftest \
23699		    | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23700	         && $gcc_cv_objdump -s -j .fini_array conftest \
23701		    | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23702	        gcc_cv_initfini_array=yes
23703	      fi
23704	      ;;
23705	    esac
23706	  rm -f conftest conftest.*
23707	fi
23708	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709/* end confdefs.h.  */
23710
23711#ifndef __ELF__
23712# error Not an ELF OS
23713#endif
23714#include <stdlib.h>
23715#if defined __GLIBC_PREREQ
23716# if __GLIBC_PREREQ (2, 4)
23717# else
23718#  error GLIBC 2.4 required
23719# endif
23720#else
23721# if defined __sun__ && defined __svr4__
23722   /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
23723# else
23724#  error The C library not known to support .init_array/.fini_array
23725# endif
23726#endif
23727
23728_ACEOF
23729if ac_fn_cxx_try_cpp "$LINENO"; then :
23730
23731else
23732  gcc_cv_initfini_array=no
23733fi
23734rm -f conftest.err conftest.i conftest.$ac_ext;;
23735    esac
23736  else
23737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23738$as_echo_n "checking cross compile... guessing... " >&6; }
23739    gcc_cv_initfini_array=no
23740  fi
23741fi
23742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23743$as_echo "$gcc_cv_initfini_array" >&6; }
23744  enable_initfini_array=$gcc_cv_initfini_array
23745
23746fi
23747
23748
23749cat >>confdefs.h <<_ACEOF
23750#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23751_ACEOF
23752
23753
23754
23755# Check if we have .[us]leb128, and support symbol arithmetic with it.
23756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23757$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23758if ${gcc_cv_as_leb128+:} false; then :
23759  $as_echo_n "(cached) " >&6
23760else
23761  gcc_cv_as_leb128=no
23762    if test $in_tree_gas = yes; then
23763    if test $in_tree_gas_is_elf = yes \
23764  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23765  then gcc_cv_as_leb128=yes
23766fi
23767  elif test x$gcc_cv_as != x; then
23768    $as_echo '	.data
23769	.uleb128 L2 - L1
23770L1:
23771	.uleb128 1280
23772	.sleb128 -1010
23773L2:' > conftest.s
23774    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23775  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23776  (eval $ac_try) 2>&5
23777  ac_status=$?
23778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23779  test $ac_status = 0; }; }
23780    then
23781	# GAS versions before 2.11 do not support uleb128,
23782  # despite appearing to.
23783  # ??? There exists an elf-specific test that will crash
23784  # the assembler.  Perhaps it's better to figure out whether
23785  # arbitrary sections are supported and try the test.
23786  as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23787  if echo "$as_ver" | grep GNU > /dev/null; then
23788    as_vers=`echo $as_ver | sed -n \
23789	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23790    as_major=`expr "$as_vers" : '\([0-9]*\)'`
23791    as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23792    if test $as_major -eq 2 && test $as_minor -lt 11
23793    then :
23794    else gcc_cv_as_leb128=yes
23795    fi
23796  fi
23797    else
23798      echo "configure: failed program was" >&5
23799      cat conftest.s >&5
23800    fi
23801    rm -f conftest.o conftest.s
23802  fi
23803fi
23804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23805$as_echo "$gcc_cv_as_leb128" >&6; }
23806if test $gcc_cv_as_leb128 = yes; then
23807
23808$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23809
23810fi
23811if test $gcc_cv_as_leb128 != yes; then
23812
23813$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23814
23815fi
23816
23817# Determine if an .eh_frame section is read-only.
23818gcc_fn_eh_frame_ro () {
23819  $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23820    $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23821    sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23822}
23823
23824# Check if we have assembler support for unwind directives.
23825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23826$as_echo_n "checking assembler for cfi directives... " >&6; }
23827if ${gcc_cv_as_cfi_directive+:} false; then :
23828  $as_echo_n "(cached) " >&6
23829else
23830  gcc_cv_as_cfi_directive=no
23831  if test x$gcc_cv_as != x; then
23832    $as_echo '	.text
23833	.cfi_startproc
23834	.cfi_offset 0, 0
23835	.cfi_same_value 1
23836	.cfi_def_cfa 1, 2
23837	.cfi_escape 1, 2, 3, 4, 5
23838	.cfi_endproc' > conftest.s
23839    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23840  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23841  (eval $ac_try) 2>&5
23842  ac_status=$?
23843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23844  test $ac_status = 0; }; }
23845    then
23846	case "$target" in
23847  *-*-solaris*)
23848    # If the linker used on Solaris (like Sun ld) isn't capable of merging
23849    # read-only and read-write sections, we need to make sure that the
23850    # assembler used emits read-write .eh_frame sections.
23851    if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23852      gcc_cv_as_cfi_directive=yes
23853    elif test "x$gcc_cv_objdump" = x; then
23854      # No objdump, err on the side of caution.
23855      gcc_cv_as_cfi_directive=no
23856    else
23857      if test x$gas = xyes; then
23858	as_32_opt="--32"
23859	as_64_opt="--64"
23860      else
23861	as_32_opt="-m32"
23862	as_64_opt="-m64"
23863      fi
23864      case "$target" in
23865	sparc*-*-solaris2.*)
23866	  # On Solaris/SPARC, .eh_frame sections should always be read-write.
23867	  if gcc_fn_eh_frame_ro $as_32_opt \
23868	     || gcc_fn_eh_frame_ro $as_64_opt; then
23869	    gcc_cv_as_cfi_directive=no
23870	  else
23871	    gcc_cv_as_cfi_directive=yes
23872	  fi
23873	  ;;
23874	i?86-*-solaris2.* | x86_64-*-solaris2.*)
23875	  # On Solaris/x86, make sure that GCC and assembler agree on using
23876	  # read-only .eh_frame sections for 64-bit.
23877	  if gcc_fn_eh_frame_ro $as_32_opt; then
23878	    gcc_cv_as_cfi_directive=no
23879	  elif gcc_fn_eh_frame_ro $as_64_opt; then
23880	    gcc_cv_as_cfi_directive=yes
23881	  else
23882	    gcc_cv_as_cfi_directive=no
23883	  fi
23884	  ;;
23885      esac
23886    fi
23887    ;;
23888  *-*-*)
23889    gcc_cv_as_cfi_directive=yes
23890    ;;
23891esac
23892    else
23893      echo "configure: failed program was" >&5
23894      cat conftest.s >&5
23895    fi
23896    rm -f conftest.o conftest.s
23897  fi
23898fi
23899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23900$as_echo "$gcc_cv_as_cfi_directive" >&6; }
23901
23902
23903if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23905$as_echo_n "checking assembler for working cfi advance... " >&6; }
23906if ${gcc_cv_as_cfi_advance_working+:} false; then :
23907  $as_echo_n "(cached) " >&6
23908else
23909  gcc_cv_as_cfi_advance_working=no
23910  if test x$gcc_cv_as != x; then
23911    $as_echo '	.text
23912	.cfi_startproc
23913	.cfi_adjust_cfa_offset 64
23914	.skip 75040, 0
23915	.cfi_adjust_cfa_offset 128
23916	.cfi_endproc' > conftest.s
23917    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23918  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23919  (eval $ac_try) 2>&5
23920  ac_status=$?
23921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23922  test $ac_status = 0; }; }
23923    then
23924
23925if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23926    | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
23927   gcc_cv_as_cfi_advance_working=yes
23928fi
23929
23930    else
23931      echo "configure: failed program was" >&5
23932      cat conftest.s >&5
23933    fi
23934    rm -f conftest.o conftest.s
23935  fi
23936fi
23937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23938$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23939
23940
23941else
23942  # no objdump, err on the side of caution
23943  gcc_cv_as_cfi_advance_working=no
23944fi
23945
23946
23947cat >>confdefs.h <<_ACEOF
23948#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23949       && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23950_ACEOF
23951
23952
23953
23954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23955$as_echo_n "checking assembler for cfi personality directive... " >&6; }
23956if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23957  $as_echo_n "(cached) " >&6
23958else
23959  gcc_cv_as_cfi_personality_directive=no
23960  if test x$gcc_cv_as != x; then
23961    $as_echo '	.text
23962	.cfi_startproc
23963	.cfi_personality 0, symbol
23964	.cfi_endproc' > conftest.s
23965    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23966  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23967  (eval $ac_try) 2>&5
23968  ac_status=$?
23969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23970  test $ac_status = 0; }; }
23971    then
23972	gcc_cv_as_cfi_personality_directive=yes
23973    else
23974      echo "configure: failed program was" >&5
23975      cat conftest.s >&5
23976    fi
23977    rm -f conftest.o conftest.s
23978  fi
23979fi
23980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23981$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23982
23983
23984
23985cat >>confdefs.h <<_ACEOF
23986#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23987_ACEOF
23988
23989
23990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23991$as_echo_n "checking assembler for cfi sections directive... " >&6; }
23992if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23993  $as_echo_n "(cached) " >&6
23994else
23995  gcc_cv_as_cfi_sections_directive=no
23996  if test x$gcc_cv_as != x; then
23997    $as_echo '	.text
23998	.cfi_sections .debug_frame, .eh_frame
23999	.cfi_startproc
24000	.cfi_endproc' > conftest.s
24001    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24002  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24003  (eval $ac_try) 2>&5
24004  ac_status=$?
24005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24006  test $ac_status = 0; }; }
24007    then
24008	case $target_os in
24009  win32 | pe | cygwin* | mingw32*)
24010    # Need to check that we generated the correct relocation for the
24011    # .debug_frame section.  This was fixed for binutils 2.21.
24012    gcc_cv_as_cfi_sections_directive=no
24013    if test "x$gcc_cv_objdump" != x; then
24014     if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24015	grep secrel > /dev/null; then
24016      gcc_cv_as_cfi_sections_directive=yes
24017     fi
24018    fi
24019    ;;
24020  *)
24021    gcc_cv_as_cfi_sections_directive=yes
24022    ;;
24023esac
24024    else
24025      echo "configure: failed program was" >&5
24026      cat conftest.s >&5
24027    fi
24028    rm -f conftest.o conftest.s
24029  fi
24030fi
24031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24032$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24033
24034
24035
24036
24037cat >>confdefs.h <<_ACEOF
24038#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24039_ACEOF
24040
24041
24042# GAS versions up to and including 2.11.0 may mis-optimize
24043# .eh_frame data.
24044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24045$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24046if ${gcc_cv_as_eh_frame+:} false; then :
24047  $as_echo_n "(cached) " >&6
24048else
24049  gcc_cv_as_eh_frame=no
24050    if test $in_tree_gas = yes; then
24051    if test $in_tree_gas_is_elf = yes \
24052  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24053  then gcc_cv_as_eh_frame=yes
24054fi
24055  elif test x$gcc_cv_as != x; then
24056    $as_echo '	.text
24057.LFB1:
24058	.4byte	0
24059.L1:
24060	.4byte	0
24061.LFE1:
24062	.section	.eh_frame,"aw",@progbits
24063__FRAME_BEGIN__:
24064	.4byte	.LECIE1-.LSCIE1
24065.LSCIE1:
24066	.4byte	0x0
24067	.byte	0x1
24068	.ascii "z\0"
24069	.byte	0x1
24070	.byte	0x78
24071	.byte	0x1a
24072	.byte	0x0
24073	.byte	0x4
24074	.4byte	1
24075	.p2align 1
24076.LECIE1:
24077.LSFDE1:
24078	.4byte	.LEFDE1-.LASFDE1
24079.LASFDE1:
24080	.4byte	.LASFDE1-__FRAME_BEGIN__
24081	.4byte	.LFB1
24082	.4byte	.LFE1-.LFB1
24083	.byte	0x4
24084	.4byte	.LFE1-.LFB1
24085	.byte	0x4
24086	.4byte	.L1-.LFB1
24087.LEFDE1:' > conftest.s
24088    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24089  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24090  (eval $ac_try) 2>&5
24091  ac_status=$?
24092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24093  test $ac_status = 0; }; }
24094    then
24095	  cat > conftest.lit <<EOF
24096 0000 10000000 00000000 017a0001 781a0004  .........z..x...
24097 0010 01000000 12000000 18000000 00000000  ................
24098 0020 08000000 04080000 0044               .........D      
24099EOF
24100cat > conftest.big <<EOF
24101 0000 00000010 00000000 017a0001 781a0004  .........z..x...
24102 0010 00000001 00000012 00000018 00000000  ................
24103 0020 00000008 04000000 0844               .........D      
24104EOF
24105  # If the assembler didn't choke, and we can objdump,
24106  # and we got the correct data, then succeed.
24107  # The text in the here-document typically retains its unix-style line
24108  # endings, while the output of objdump will use host line endings.
24109  # Therefore, use diff -b for the comparisons.
24110  if test x$gcc_cv_objdump != x \
24111  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24112     | tail -3 > conftest.got \
24113  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24114    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24115  then
24116    gcc_cv_as_eh_frame=yes
24117  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24118  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24119  (eval $ac_try) 2>&5
24120  ac_status=$?
24121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24122  test $ac_status = 0; }; }; then
24123    gcc_cv_as_eh_frame=buggy
24124  else
24125    # Uh oh, what do we do now?
24126    gcc_cv_as_eh_frame=no
24127  fi
24128    else
24129      echo "configure: failed program was" >&5
24130      cat conftest.s >&5
24131    fi
24132    rm -f conftest.o conftest.s
24133  fi
24134fi
24135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24136$as_echo "$gcc_cv_as_eh_frame" >&6; }
24137
24138
24139
24140if test $gcc_cv_as_eh_frame = buggy; then
24141
24142$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24143
24144fi
24145
24146# Test if the assembler supports the section flag 'e' or #exclude for
24147# specifying an excluded section.
24148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24149$as_echo_n "checking assembler for section exclude flag... " >&6; }
24150if ${gcc_cv_as_section_exclude_e+:} false; then :
24151  $as_echo_n "(cached) " >&6
24152else
24153  gcc_cv_as_section_exclude_e=no
24154    if test $in_tree_gas = yes; then
24155    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24156  then gcc_cv_as_section_exclude_e=yes
24157fi
24158  elif test x$gcc_cv_as != x; then
24159    $as_echo '.section foo1,"e"
24160  .byte 0,0,0,0' > conftest.s
24161    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24162  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24163  (eval $ac_try) 2>&5
24164  ac_status=$?
24165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24166  test $ac_status = 0; }; }
24167    then
24168	gcc_cv_as_section_exclude_e=yes
24169    else
24170      echo "configure: failed program was" >&5
24171      cat conftest.s >&5
24172    fi
24173    rm -f conftest.o conftest.s
24174  fi
24175fi
24176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24177$as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24178
24179
24180if test $gcc_cv_as_section_exclude_e = no; then
24181  case "${target}" in
24182    # Solaris as uses #exclude instead.
24183    *-*-solaris2*)
24184      case "${target}" in
24185	sparc*-*-solaris2*)
24186	  conftest_s='.section "foo1", #exclude'
24187	  ;;
24188	i?86-*-solaris2* | x86_64-*-solaris2*)
24189	  conftest_s='.section foo1, #exclude'
24190	  ;;
24191      esac
24192      ;;
24193    esac
24194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24195$as_echo_n "checking assembler for section exclude flag... " >&6; }
24196if ${gcc_cv_as_section_exclude_hash+:} false; then :
24197  $as_echo_n "(cached) " >&6
24198else
24199  gcc_cv_as_section_exclude_hash=no
24200  if test x$gcc_cv_as != x; then
24201    $as_echo "$conftest_s
24202     .byte 0,0,0,0" > conftest.s
24203    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24204  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24205  (eval $ac_try) 2>&5
24206  ac_status=$?
24207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24208  test $ac_status = 0; }; }
24209    then
24210	gcc_cv_as_section_exclude_hash=yes
24211    else
24212      echo "configure: failed program was" >&5
24213      cat conftest.s >&5
24214    fi
24215    rm -f conftest.o conftest.s
24216  fi
24217fi
24218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24219$as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24220
24221
24222fi
24223
24224cat >>confdefs.h <<_ACEOF
24225#define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
24226_ACEOF
24227
24228
24229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24230$as_echo_n "checking assembler for section merging support... " >&6; }
24231if ${gcc_cv_as_shf_merge+:} false; then :
24232  $as_echo_n "(cached) " >&6
24233else
24234  gcc_cv_as_shf_merge=no
24235    if test $in_tree_gas = yes; then
24236    if test $in_tree_gas_is_elf = yes \
24237  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24238  then gcc_cv_as_shf_merge=yes
24239fi
24240  elif test x$gcc_cv_as != x; then
24241    $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24242    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24243  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24244  (eval $ac_try) 2>&5
24245  ac_status=$?
24246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24247  test $ac_status = 0; }; }
24248    then
24249	gcc_cv_as_shf_merge=yes
24250    else
24251      echo "configure: failed program was" >&5
24252      cat conftest.s >&5
24253    fi
24254    rm -f conftest.o conftest.s
24255  fi
24256fi
24257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24258$as_echo "$gcc_cv_as_shf_merge" >&6; }
24259
24260
24261if test $gcc_cv_as_shf_merge = no; then
24262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24263$as_echo_n "checking assembler for section merging support... " >&6; }
24264if ${gcc_cv_as_shf_merge+:} false; then :
24265  $as_echo_n "(cached) " >&6
24266else
24267  gcc_cv_as_shf_merge=no
24268    if test $in_tree_gas = yes; then
24269    if test $in_tree_gas_is_elf = yes \
24270  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24271  then gcc_cv_as_shf_merge=yes
24272fi
24273  elif test x$gcc_cv_as != x; then
24274    $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24275    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24276  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24277  (eval $ac_try) 2>&5
24278  ac_status=$?
24279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24280  test $ac_status = 0; }; }
24281    then
24282	gcc_cv_as_shf_merge=yes
24283    else
24284      echo "configure: failed program was" >&5
24285      cat conftest.s >&5
24286    fi
24287    rm -f conftest.o conftest.s
24288  fi
24289fi
24290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24291$as_echo "$gcc_cv_as_shf_merge" >&6; }
24292
24293
24294fi
24295
24296cat >>confdefs.h <<_ACEOF
24297#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24298_ACEOF
24299
24300
24301gcc_cv_ld_aligned_shf_merge=yes
24302case "$target" in
24303  # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24304  # alignment > 1.
24305  sparc*-*-solaris2.11*)
24306    if test x"$gnu_ld" = xno \
24307       && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24308      gcc_cv_ld_aligned_shf_merge=no
24309    fi
24310    ;;
24311esac
24312
24313cat >>confdefs.h <<_ACEOF
24314#define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24315_ACEOF
24316
24317
24318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24319$as_echo_n "checking assembler for stabs directive... " >&6; }
24320if ${gcc_cv_as_stabs_directive+:} false; then :
24321  $as_echo_n "(cached) " >&6
24322else
24323  gcc_cv_as_stabs_directive=no
24324  if test x$gcc_cv_as != x; then
24325    $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24326    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24327  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328  (eval $ac_try) 2>&5
24329  ac_status=$?
24330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331  test $ac_status = 0; }; }
24332    then
24333	gcc_cv_as_stabs_directive=yes
24334    else
24335      echo "configure: failed program was" >&5
24336      cat conftest.s >&5
24337    fi
24338    rm -f conftest.o conftest.s
24339  fi
24340fi
24341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24342$as_echo "$gcc_cv_as_stabs_directive" >&6; }
24343if test $gcc_cv_as_stabs_directive = yes; then
24344
24345$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24346
24347fi
24348
24349
24350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24351$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24352if ${gcc_cv_as_comdat_group+:} false; then :
24353  $as_echo_n "(cached) " >&6
24354else
24355  gcc_cv_as_comdat_group=no
24356    if test $in_tree_gas = yes; then
24357    if test $in_tree_gas_is_elf = yes \
24358  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24359  then gcc_cv_as_comdat_group=yes
24360fi
24361  elif test x$gcc_cv_as != x; then
24362    $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24363    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24364  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24365  (eval $ac_try) 2>&5
24366  ac_status=$?
24367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24368  test $ac_status = 0; }; }
24369    then
24370	gcc_cv_as_comdat_group=yes
24371    else
24372      echo "configure: failed program was" >&5
24373      cat conftest.s >&5
24374    fi
24375    rm -f conftest.o conftest.s
24376  fi
24377fi
24378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24379$as_echo "$gcc_cv_as_comdat_group" >&6; }
24380
24381
24382if test $gcc_cv_as_comdat_group = yes; then
24383  gcc_cv_as_comdat_group_percent=no
24384  gcc_cv_as_comdat_group_group=no
24385else
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24387$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24388if ${gcc_cv_as_comdat_group_percent+:} false; then :
24389  $as_echo_n "(cached) " >&6
24390else
24391  gcc_cv_as_comdat_group_percent=no
24392    if test $in_tree_gas = yes; then
24393    if test $in_tree_gas_is_elf = yes \
24394  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24395  then gcc_cv_as_comdat_group_percent=yes
24396fi
24397  elif test x$gcc_cv_as != x; then
24398    $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24399    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24400  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24401  (eval $ac_try) 2>&5
24402  ac_status=$?
24403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24404  test $ac_status = 0; }; }
24405    then
24406	gcc_cv_as_comdat_group_percent=yes
24407    else
24408      echo "configure: failed program was" >&5
24409      cat conftest.s >&5
24410    fi
24411    rm -f conftest.o conftest.s
24412  fi
24413fi
24414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24415$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24416
24417
24418 if test $gcc_cv_as_comdat_group_percent = yes; then
24419   gcc_cv_as_comdat_group_group=no
24420 else
24421   case "${target}" in
24422     # Sun as uses a completely different syntax.
24423     *-*-solaris2*)
24424       case "${target}" in
24425         sparc*-*-solaris2*)
24426           conftest_s='
24427               .group foo,".text%foo",#comdat
24428               .section ".text%foo", #alloc,#execinstr,#progbits
24429               .globl foo
24430             foo:
24431	     '
24432           ;;
24433         i?86-*-solaris2* | x86_64-*-solaris2*)
24434	   conftest_s='
24435               .group foo,.text%foo,#comdat
24436               .section .text%foo, "ax", @progbits
24437               .globl  foo
24438             foo:
24439	     '
24440	   ;;
24441       esac
24442       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24443$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24444if ${gcc_cv_as_comdat_group_group+:} false; then :
24445  $as_echo_n "(cached) " >&6
24446else
24447  gcc_cv_as_comdat_group_group=no
24448  if test x$gcc_cv_as != x; then
24449    $as_echo "$conftest_s" > conftest.s
24450    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24451  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452  (eval $ac_try) 2>&5
24453  ac_status=$?
24454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455  test $ac_status = 0; }; }
24456    then
24457	gcc_cv_as_comdat_group_group=yes
24458    else
24459      echo "configure: failed program was" >&5
24460      cat conftest.s >&5
24461    fi
24462    rm -f conftest.o conftest.s
24463  fi
24464fi
24465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24466$as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24467
24468
24469       ;;
24470   esac
24471   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24472     gcc_cv_as_comdat_group_group=no
24473   fi
24474 fi
24475fi
24476if test x"$ld_is_gold" = xyes; then
24477  comdat_group=yes
24478elif test $in_tree_ld = yes ; then
24479  comdat_group=no
24480  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 \
24481     && test $in_tree_ld_is_elf = yes; then
24482     comdat_group=yes
24483  fi
24484elif echo "$ld_ver" | grep GNU > /dev/null; then
24485  comdat_group=yes
24486  if test 0"$ld_date" -lt 20050308; then
24487    if test -n "$ld_date"; then
24488      # If there was date string, but was earlier than 2005-03-08, fail
24489      comdat_group=no
24490    elif test "$ld_vers_major" -lt 2; then
24491      comdat_group=no
24492    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24493      comdat_group=no
24494    fi
24495  fi
24496else
24497  case "${target}" in
24498    *-*-solaris2.1[1-9]*)
24499      comdat_group=no
24500      # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24501      # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24502      # version 1.688.
24503      #
24504      # If using Sun as for COMDAT group as emitted by GCC, one needs at
24505      # least ld version 1.2267.
24506      if test "$ld_vers_major" -gt 1; then
24507        comdat_group=yes
24508      elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24509	comdat_group=yes
24510      elif test "$ld_vers_minor" -ge 2267; then
24511	comdat_group=yes
24512      fi
24513      ;;
24514    *)
24515      # Assume linkers other than GNU ld don't support COMDAT group.
24516      comdat_group=no
24517      ;;
24518  esac
24519fi
24520# Allow overriding the automatic COMDAT group tests above.
24521# Check whether --enable-comdat was given.
24522if test "${enable_comdat+set}" = set; then :
24523  enableval=$enable_comdat; comdat_group="$enable_comdat"
24524fi
24525
24526if test $comdat_group = no; then
24527  gcc_cv_as_comdat_group=no
24528  gcc_cv_as_comdat_group_percent=no
24529  gcc_cv_as_comdat_group_group=no
24530fi
24531
24532cat >>confdefs.h <<_ACEOF
24533#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24534    || test $gcc_cv_as_comdat_group_percent = yes \
24535    || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24536_ACEOF
24537
24538
24539# Restrict this test to Solaris/x86: other targets define this statically.
24540case "${target}" in
24541  i?86-*-solaris2* | x86_64-*-solaris2*)
24542    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24543$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24544    if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24545      hidden_linkonce=yes
24546    else
24547      case "${target}" in
24548	# Full support for hidden thunks in linkonce sections only appeared in
24549	# Solaris 11/OpenSolaris.
24550        *-*-solaris2.1[1-9]*)
24551	  hidden_linkonce=yes
24552	  ;;
24553	*)
24554	  hidden_linkonce=no
24555	  ;;
24556      esac
24557    fi
24558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24559$as_echo "$hidden_linkonce" >&6; }
24560
24561cat >>confdefs.h <<_ACEOF
24562#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24563_ACEOF
24564
24565  ;;
24566esac
24567
24568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24569$as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24570if ${gcc_cv_as_is_stmt+:} false; then :
24571  $as_echo_n "(cached) " >&6
24572else
24573  gcc_cv_as_is_stmt=no
24574    if test $in_tree_gas = yes; then
24575    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24576  then gcc_cv_as_is_stmt=yes
24577fi
24578  elif test x$gcc_cv_as != x; then
24579    $as_echo '	.text
24580	.file 1 "conf.c"
24581	.loc 1 1 0 is_stmt 1' > conftest.s
24582    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24583  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24584  (eval $ac_try) 2>&5
24585  ac_status=$?
24586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24587  test $ac_status = 0; }; }
24588    then
24589	gcc_cv_as_is_stmt=yes
24590    else
24591      echo "configure: failed program was" >&5
24592      cat conftest.s >&5
24593    fi
24594    rm -f conftest.o conftest.s
24595  fi
24596fi
24597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24598$as_echo "$gcc_cv_as_is_stmt" >&6; }
24599if test $gcc_cv_as_is_stmt = yes; then
24600
24601$as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24602
24603fi
24604
24605
24606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24607$as_echo_n "checking assembler for line table discriminator support... " >&6; }
24608if ${gcc_cv_as_discriminator+:} false; then :
24609  $as_echo_n "(cached) " >&6
24610else
24611  gcc_cv_as_discriminator=no
24612    if test $in_tree_gas = yes; then
24613    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24614  then gcc_cv_as_discriminator=yes
24615fi
24616  elif test x$gcc_cv_as != x; then
24617    $as_echo '	.text
24618	.file 1 "conf.c"
24619	.loc 1 1 0 discriminator 1' > conftest.s
24620    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24621  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24622  (eval $ac_try) 2>&5
24623  ac_status=$?
24624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24625  test $ac_status = 0; }; }
24626    then
24627	gcc_cv_as_discriminator=yes
24628    else
24629      echo "configure: failed program was" >&5
24630      cat conftest.s >&5
24631    fi
24632    rm -f conftest.o conftest.s
24633  fi
24634fi
24635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24636$as_echo "$gcc_cv_as_discriminator" >&6; }
24637if test $gcc_cv_as_discriminator = yes; then
24638
24639$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24640
24641fi
24642
24643
24644# Catch the newlib flag of the same name so we can gate GCC features on it.
24645# Check whether --enable-newlib-nano-formatted-io was given.
24646if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24647  enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24648  yes|no)
24649    ;;
24650  *)
24651    as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24652    ;;
24653esac
24654fi
24655
24656
24657# Thread-local storage - the check is heavily parameterized.
24658conftest_s=
24659tls_first_major=
24660tls_first_minor=
24661tls_as_opt=
24662case "$target" in
24663  alpha*-*-*)
24664    conftest_s='
24665	.section ".tdata","awT",@progbits
24666foo:	.long	25
24667	.text
24668	ldq	$27,__tls_get_addr($29)		!literal!1
24669	lda	$16,foo($29)			!tlsgd!1
24670	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
24671	ldq	$27,__tls_get_addr($29)		!literal!2
24672	lda	$16,foo($29)			!tlsldm!2
24673	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
24674	ldq	$1,foo($29)			!gotdtprel
24675	ldah	$2,foo($29)			!dtprelhi
24676	lda	$3,foo($2)			!dtprello
24677	lda	$4,foo($29)			!dtprel
24678	ldq	$1,foo($29)			!gottprel
24679	ldah	$2,foo($29)			!tprelhi
24680	lda	$3,foo($2)			!tprello
24681	lda	$4,foo($29)			!tprel'
24682	tls_first_major=2
24683	tls_first_minor=13
24684	tls_as_opt=--fatal-warnings
24685	;;
24686  arc*-*-*)
24687    conftest_s='
24688	add_s r0,r0, @foo@tpoff'
24689	tls_first_major=2
24690	tls_first_minor=23
24691	;;
24692  cris-*-*|crisv32-*-*)
24693    conftest_s='
24694	.section ".tdata","awT",@progbits
24695x:      .long   25
24696        .text
24697	move.d x:IE,$r10
24698	nop'
24699	tls_first_major=2
24700	tls_first_minor=20
24701	tls_as_opt=--fatal-warnings
24702	;;
24703  frv*-*-*)
24704    conftest_s='
24705	.section ".tdata","awT",@progbits
24706x:      .long   25
24707        .text
24708        call    #gettlsoff(x)'
24709	tls_first_major=2
24710	tls_first_minor=14
24711	;;
24712  hppa*-*-linux*)
24713    conftest_s='
24714t1:	.reg	%r20
24715t2:	.reg	%r21
24716gp:	.reg	%r19
24717	.section ".tdata","awT",@progbits
24718foo:	.long	25
24719	.text
24720	.align	4
24721	addil LT%foo-$tls_gdidx$,gp
24722	ldo RT%foo-$tls_gdidx$(%r1),%arg0
24723	b __tls_get_addr
24724	nop
24725	addil LT%foo-$tls_ldidx$,gp
24726	b __tls_get_addr
24727	ldo RT%foo-$tls_ldidx$(%r1),%arg0
24728	addil LR%foo-$tls_dtpoff$,%ret0
24729	ldo RR%foo-$tls_dtpoff$(%r1),%t1
24730	mfctl %cr27,%t1
24731	addil LT%foo-$tls_ieoff$,gp
24732	ldw RT%foo-$tls_ieoff$(%r1),%t2
24733	add %t1,%t2,%t3
24734	mfctl %cr27,%t1
24735	addil LR%foo-$tls_leoff$,%t1
24736	ldo RR%foo-$tls_leoff$(%r1),%t2'
24737	tls_first_major=2
24738	tls_first_minor=15
24739	tls_as_opt=--fatal-warnings
24740	;;
24741  arm*-*-*)
24742    conftest_s='
24743	.section ".tdata","awT",%progbits
24744foo:	.long	25
24745	.text
24746.word foo(gottpoff)
24747.word foo(tpoff)
24748.word foo(tlsgd)
24749.word foo(tlsldm)
24750.word foo(tlsldo)'
24751	tls_first_major=2
24752	tls_first_minor=17
24753	;;
24754  i[34567]86-*-* | x86_64-*-*)
24755    case "$target" in
24756      i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24757	on_solaris=yes
24758        ;;
24759      *)
24760	on_solaris=no
24761	;;
24762    esac
24763    if test x$on_solaris = xyes && test x$gas_flag = xno; then
24764      conftest_s='
24765	.section .tdata,"awt",@progbits'
24766      tls_first_major=0
24767      tls_first_minor=0
24768      tls_section_flag=t
24769
24770$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24771
24772    else
24773      conftest_s='
24774	.section ".tdata","awT",@progbits'
24775      tls_first_major=2
24776      tls_first_minor=14
24777      tls_section_flag=T
24778      tls_as_opt="--fatal-warnings"
24779    fi
24780    case "$target" in
24781      i[34567]86-*-*)
24782	if test x$on_solaris = xyes; then
24783	  case $gas_flag in
24784	    yes) tls_as_opt="$tls_as_opt --32" ;;
24785	  esac
24786	fi
24787	conftest_s="$conftest_s
24788foo:	.long	25
24789	.text
24790	movl	%gs:0, %eax
24791	leal	foo@tlsgd(,%ebx,1), %eax
24792	leal	foo@tlsldm(%ebx), %eax
24793	leal	foo@dtpoff(%eax), %edx
24794	movl	foo@gottpoff(%ebx), %eax
24795	subl	foo@gottpoff(%ebx), %eax
24796	addl	foo@gotntpoff(%ebx), %eax
24797	movl	foo@indntpoff, %eax
24798	movl	\$foo@tpoff, %eax
24799	subl	\$foo@tpoff, %eax
24800	leal	foo@ntpoff(%ecx), %eax"
24801	;;
24802      x86_64-*-*)
24803	if test x$on_solaris = xyes; then
24804	  case $gas_flag in
24805	    yes) tls_as_opt="$tls_as_opt --64" ;;
24806	    no)	 tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24807	  esac
24808	fi
24809	conftest_s="$conftest_s
24810foo:	.long	25
24811	.text
24812	movq	%fs:0, %rax
24813	leaq	foo@tlsgd(%rip), %rdi
24814	leaq	foo@tlsld(%rip), %rdi
24815	leaq	foo@dtpoff(%rax), %rdx
24816	movq	foo@gottpoff(%rip), %rax
24817	movq	\$foo@tpoff, %rax"
24818        ;;
24819    esac
24820    ;;
24821  ia64-*-*)
24822    conftest_s='
24823	.section ".tdata","awT",@progbits
24824foo:	data8	25
24825	.text
24826	addl	r16 = @ltoff(@dtpmod(foo#)), gp
24827	addl	r17 = @ltoff(@dtprel(foo#)), gp
24828	addl	r18 = @ltoff(@tprel(foo#)), gp
24829	addl	r19 = @dtprel(foo#), gp
24830	adds	r21 = @dtprel(foo#), r13
24831	movl	r23 = @dtprel(foo#)
24832	addl	r20 = @tprel(foo#), gp
24833	adds	r22 = @tprel(foo#), r13
24834	movl	r24 = @tprel(foo#)'
24835	tls_first_major=2
24836	tls_first_minor=13
24837	tls_as_opt=--fatal-warnings
24838	;;
24839  microblaze*-*-*)
24840    conftest_s='
24841	.section .tdata,"awT",@progbits
24842x:
24843	.word 2
24844	.text
24845	addik r5,r20,x@TLSGD
24846	addik r5,r20,x@TLSLDM'
24847	tls_first_major=2
24848	tls_first_minor=20
24849	tls_as_opt='--fatal-warnings'
24850	;;
24851  mips*-*-*)
24852    conftest_s='
24853	.section .tdata,"awT",@progbits
24854x:
24855	.word 2
24856	.text
24857	addiu $4, $28, %tlsgd(x)
24858	addiu $4, $28, %tlsldm(x)
24859	lui $4, %dtprel_hi(x)
24860	addiu $4, $4, %dtprel_lo(x)
24861	lw $4, %gottprel(x)($28)
24862	lui $4, %tprel_hi(x)
24863	addiu $4, $4, %tprel_lo(x)'
24864	tls_first_major=2
24865	tls_first_minor=16
24866	tls_as_opt='-32 --fatal-warnings'
24867	;;
24868  m68k-*-*)
24869    conftest_s='
24870	.section .tdata,"awT",@progbits
24871x:
24872	.word 2
24873	.text
24874foo:
24875	move.l x@TLSGD(%a5),%a0
24876	move.l x@TLSLDM(%a5),%a0
24877	move.l x@TLSLDO(%a5),%a0
24878	move.l x@TLSIE(%a5),%a0
24879	move.l x@TLSLE(%a5),%a0'
24880	tls_first_major=2
24881	tls_first_minor=19
24882	tls_as_opt='--fatal-warnings'
24883	;;
24884  nios2-*-*)
24885      conftest_s='
24886	.section ".tdata","awT",@progbits'
24887	tls_first_major=2
24888	tls_first_minor=23
24889	tls_as_opt="--fatal-warnings"
24890	;;
24891  aarch64*-*-*)
24892    conftest_s='
24893	.section ".tdata","awT",%progbits
24894foo:	.long	25
24895	.text
24896	adrp  x0, :tlsgd:x
24897	add   x0, x0, #:tlsgd_lo12:x
24898        bl    __tls_get_addr
24899	nop'
24900	tls_first_major=2
24901	tls_first_minor=20
24902	tls_as_opt='--fatal-warnings'
24903	;;
24904  or1k*-*-*)
24905    conftest_s='
24906	.section ".tdata","awT",@progbits
24907foo:	.long	25
24908	.text
24909	l.movhi	r3, tpoffha(foo)
24910	l.add	r3, r3, r10
24911	l.lwz	r4, tpofflo(foo)(r3)'
24912    tls_first_major=2
24913    tls_first_minor=30
24914    tls_as_opt=--fatal-warnings
24915    ;;
24916  powerpc-ibm-aix*)
24917    conftest_s='
24918	.extern __get_tpointer
24919	.toc
24920LC..1:
24921	.tc a[TC],a[TL]@le
24922	.csect .text[PR]
24923.tlstest:
24924	lwz 9,LC..1(2)
24925	bla __get_tpointer
24926	lwzx 3,9,3
24927	.globl a
24928	.csect a[TL],4
24929a:
24930	.space 4'
24931	tls_first_major=0
24932	tls_first_minor=0
24933	;;
24934  powerpc64*-*-*)
24935    conftest_s='
24936	.section ".tdata","awT",@progbits
24937	.align 3
24938ld0:	.space 8
24939ld1:	.space 8
24940x1:	.space 8
24941x2:	.space 8
24942x3:	.space 8
24943	.text
24944	addi 3,2,ld0@got@tlsgd
24945	bl .__tls_get_addr
24946	nop
24947	addi 3,2,ld1@toc
24948	bl .__tls_get_addr
24949	nop
24950	addi 3,2,x1@got@tlsld
24951	bl .__tls_get_addr
24952	nop
24953	addi 9,3,x1@dtprel
24954	bl .__tls_get_addr
24955	nop
24956	addis 9,3,x2@dtprel@ha
24957	addi 9,9,x2@dtprel@l
24958	bl .__tls_get_addr
24959	nop
24960	ld 9,x3@got@dtprel(2)
24961	add 9,9,3
24962	bl .__tls_get_addr
24963	nop'
24964	tls_first_major=2
24965	tls_first_minor=14
24966	tls_as_opt="-a64 --fatal-warnings"
24967	;;
24968  powerpc*-*-*)
24969    conftest_s='
24970	.section ".tdata","awT",@progbits
24971	.align 2
24972ld0:	.space 4
24973ld1:	.space 4
24974x1:	.space 4
24975x2:	.space 4
24976x3:	.space 4
24977	.text
24978	addi 3,31,ld0@got@tlsgd
24979	bl __tls_get_addr
24980	addi 3,31,x1@got@tlsld
24981	bl __tls_get_addr
24982	addi 9,3,x1@dtprel
24983	addis 9,3,x2@dtprel@ha
24984	addi 9,9,x2@dtprel@l
24985	lwz 9,x3@got@tprel(31)
24986	add 9,9,x@tls
24987	addi 9,2,x1@tprel
24988	addis 9,2,x2@tprel@ha
24989	addi 9,9,x2@tprel@l'
24990	tls_first_major=2
24991	tls_first_minor=14
24992	tls_as_opt="-a32 --fatal-warnings"
24993	;;
24994  riscv*-*-*)
24995    conftest_s='
24996	.section .tdata,"awT",@progbits
24997x:	.word 2
24998	.text
24999	la.tls.gd a0,x
25000        call __tls_get_addr'
25001	tls_first_major=2
25002	tls_first_minor=21
25003	tls_as_opt='--fatal-warnings'
25004	;;
25005  s390-*-*)
25006    conftest_s='
25007	.section ".tdata","awT",@progbits
25008foo:	.long	25
25009	.text
25010	.long	foo@TLSGD
25011	.long	foo@TLSLDM
25012	.long	foo@DTPOFF
25013	.long	foo@NTPOFF
25014	.long	foo@GOTNTPOFF
25015	.long	foo@INDNTPOFF
25016	l	%r1,foo@GOTNTPOFF(%r12)
25017	l	%r1,0(%r1):tls_load:foo
25018	bas	%r14,0(%r1,%r13):tls_gdcall:foo
25019	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
25020	tls_first_major=2
25021	tls_first_minor=14
25022	tls_as_opt="-m31 --fatal-warnings"
25023	;;
25024  s390x-*-*)
25025    conftest_s='
25026	.section ".tdata","awT",@progbits
25027foo:	.long	25
25028	.text
25029	.quad	foo@TLSGD
25030	.quad	foo@TLSLDM
25031	.quad	foo@DTPOFF
25032	.quad	foo@NTPOFF
25033	.quad	foo@GOTNTPOFF
25034	lg	%r1,foo@GOTNTPOFF(%r12)
25035	larl	%r1,foo@INDNTPOFF
25036	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
25037	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
25038	tls_first_major=2
25039	tls_first_minor=14
25040	tls_as_opt="-m64 -Aesame --fatal-warnings"
25041	;;
25042  sh-*-* | sh[123456789lbe]*-*-*)
25043    conftest_s='
25044	.section ".tdata","awT",@progbits
25045foo:	.long	25
25046	.text
25047	.long	foo@TLSGD
25048	.long	foo@TLSLDM
25049	.long	foo@DTPOFF
25050	.long	foo@GOTTPOFF
25051	.long	foo@TPOFF'
25052	tls_first_major=2
25053	tls_first_minor=13
25054	tls_as_opt=--fatal-warnings
25055	;;
25056  sparc*-*-*)
25057    case "$target" in
25058      sparc*-sun-solaris2.*)
25059	on_solaris=yes
25060	;;
25061      *)
25062	on_solaris=no
25063	;;
25064    esac
25065    if test x$on_solaris = xyes && test x$gas_flag = xno; then
25066      conftest_s='
25067	.section ".tdata",#alloc,#write,#tls'
25068	tls_first_major=0
25069	tls_first_minor=0
25070    else
25071      conftest_s='
25072	.section ".tdata","awT",@progbits'
25073	tls_first_major=2
25074	tls_first_minor=14
25075	tls_as_opt="-32 --fatal-warnings"
25076    fi
25077    conftest_s="$conftest_s
25078foo:	.long	25
25079	.text
25080	sethi	%tgd_hi22(foo), %o0
25081	add	%o0, %tgd_lo10(foo), %o1
25082	add	%l7, %o1, %o0, %tgd_add(foo)
25083	call	__tls_get_addr, %tgd_call(foo)
25084	sethi	%tldm_hi22(foo), %l1
25085	add	%l1, %tldm_lo10(foo), %l2
25086	add	%l7, %l2, %o0, %tldm_add(foo)
25087	call	__tls_get_addr, %tldm_call(foo)
25088	sethi	%tldo_hix22(foo), %l3
25089	xor	%l3, %tldo_lox10(foo), %l4
25090	add	%o0, %l4, %l5, %tldo_add(foo)
25091	sethi	%tie_hi22(foo), %o3
25092	add	%o3, %tie_lo10(foo), %o3
25093	ld	[%l7 + %o3], %o2, %tie_ld(foo)
25094	add	%g7, %o2, %o4, %tie_add(foo)
25095	sethi	%tle_hix22(foo), %l1
25096	xor	%l1, %tle_lox10(foo), %o5
25097	ld	[%g7 + %o5], %o1"
25098	;;
25099  tilepro*-*-*)
25100      conftest_s='
25101	.section ".tdata","awT",@progbits
25102foo:	.long	25
25103	.text
25104	addli	r0, zero, tls_gd(foo)
25105	auli	r0, zero, tls_gd_ha16(foo)
25106	addli	r0, r0, tls_gd_lo16(foo)
25107	jal	__tls_get_addr
25108	addli	r0, zero, tls_ie(foo)
25109	auli	r0, r0, tls_ie_ha16(foo)
25110	addli	r0, r0, tls_ie_lo16(foo)'
25111	tls_first_major=2
25112	tls_first_minor=22
25113	tls_as_opt="--fatal-warnings"
25114	;;
25115  tilegx*-*-*)
25116      conftest_s='
25117	.section ".tdata","awT",@progbits
25118foo:	.long	25
25119	.text
25120	shl16insli r0, zero, hw0_last_tls_gd(foo)
25121	shl16insli r0, zero, hw1_last_tls_gd(foo)
25122	shl16insli r0, r0,   hw0_tls_gd(foo)
25123	jal	   __tls_get_addr
25124	shl16insli r0, zero, hw1_last_tls_ie(foo)
25125	shl16insli r0, r0,   hw0_tls_ie(foo)'
25126	tls_first_major=2
25127	tls_first_minor=22
25128	tls_as_opt="--fatal-warnings"
25129	;;
25130  xtensa*-*-*)
25131    conftest_s='
25132	.section ".tdata","awT",@progbits
25133foo:	.long	25
25134	.text
25135	movi	a8, foo@TLSFUNC
25136	movi	a10, foo@TLSARG
25137	callx8.tls a8, foo@TLSCALL'
25138	tls_first_major=2
25139	tls_first_minor=19
25140	;;
25141esac
25142set_have_as_tls=no
25143if test "x$enable_tls" = xno ; then
25144  : # TLS explicitly disabled.
25145elif test "x$enable_tls" = xyes ; then
25146  set_have_as_tls=yes # TLS explicitly enabled.
25147elif test -z "$tls_first_major"; then
25148  : # If we don't have a check, assume no support.
25149else
25150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25151$as_echo_n "checking assembler for thread-local storage support... " >&6; }
25152if ${gcc_cv_as_tls+:} false; then :
25153  $as_echo_n "(cached) " >&6
25154else
25155  gcc_cv_as_tls=no
25156    if test $in_tree_gas = yes; then
25157    if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25158  then gcc_cv_as_tls=yes
25159fi
25160  elif test x$gcc_cv_as != x; then
25161    $as_echo "$conftest_s" > conftest.s
25162    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25163  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164  (eval $ac_try) 2>&5
25165  ac_status=$?
25166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167  test $ac_status = 0; }; }
25168    then
25169	gcc_cv_as_tls=yes
25170    else
25171      echo "configure: failed program was" >&5
25172      cat conftest.s >&5
25173    fi
25174    rm -f conftest.o conftest.s
25175  fi
25176fi
25177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25178$as_echo "$gcc_cv_as_tls" >&6; }
25179if test $gcc_cv_as_tls = yes; then
25180  set_have_as_tls=yes
25181fi
25182
25183fi
25184if test $set_have_as_tls = yes ; then
25185
25186$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25187
25188fi
25189
25190# Target-specific assembler checks.
25191
25192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25193$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25194gcc_cv_ld_static_dynamic=no
25195gcc_cv_ld_static_option='-Bstatic'
25196gcc_cv_ld_dynamic_option='-Bdynamic'
25197if test $in_tree_ld = yes ; then
25198  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
25199    gcc_cv_ld_static_dynamic=yes
25200  fi
25201elif test x$gcc_cv_ld != x; then
25202  # Check if linker supports -Bstatic/-Bdynamic option
25203  if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25204     && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25205      gcc_cv_ld_static_dynamic=yes
25206  else
25207    case "$target" in
25208      # AIX ld uses -b flags
25209      *-*-aix4.[23]* | *-*-aix[5-9]*)
25210	gcc_cv_ld_static_dynamic=yes
25211	gcc_cv_ld_static_option="-bstatic"
25212	gcc_cv_ld_dynamic_option="-bdynamic"
25213	;;
25214      # HP-UX ld uses -a flags to select between shared and archive.
25215      *-*-hpux*)
25216	if test x"$gnu_ld" = xno; then
25217	  gcc_cv_ld_static_dynamic=yes
25218	  gcc_cv_ld_static_option="-aarchive_shared"
25219	  gcc_cv_ld_dynamic_option="-adefault"
25220	fi
25221	;;
25222      # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25223      *-*-solaris2*)
25224        gcc_cv_ld_static_dynamic=yes
25225        ;;
25226    esac
25227  fi
25228fi
25229if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25230
25231$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25232
25233
25234cat >>confdefs.h <<_ACEOF
25235#define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25236_ACEOF
25237
25238
25239cat >>confdefs.h <<_ACEOF
25240#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25241_ACEOF
25242
25243fi
25244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25245$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25246
25247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25248$as_echo_n "checking linker --version-script option... " >&6; }
25249gcc_cv_ld_version_script=no
25250ld_version_script_option=''
25251if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25252  gcc_cv_ld_version_script=yes
25253  ld_version_script_option='--version-script'
25254elif test x$gcc_cv_ld != x; then
25255  case "$target" in
25256    # Solaris 2 ld always supports -M.  It also supports a subset of
25257    # --version-script since Solaris 11.4, but requires
25258    # -z gnu-version-script-compat to activate.
25259    *-*-solaris2*)
25260      gcc_cv_ld_version_script=yes
25261      ld_version_script_option='-M'
25262      ;;
25263  esac
25264fi
25265# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25267$as_echo "$gcc_cv_ld_version_script" >&6; }
25268
25269
25270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25271$as_echo_n "checking linker soname option... " >&6; }
25272gcc_cv_ld_soname=no
25273if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25274  gcc_cv_ld_soname=yes
25275  ld_soname_option='-soname'
25276elif test x$gcc_cv_ld != x; then
25277  case "$target" in
25278    *-*-darwin*)
25279      gcc_cv_ld_soname=yes
25280      ld_soname_option='-install_name'
25281      ;;
25282    # Solaris 2 ld always supports -h.  It also supports --soname for GNU
25283    # ld compatiblity since some Solaris 10 update.
25284    *-*-solaris2*)
25285      gcc_cv_ld_soname=yes
25286      ld_soname_option='-h'
25287      ;;
25288  esac
25289fi
25290# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25292$as_echo "$gcc_cv_ld_soname" >&6; }
25293
25294
25295if test x"$demangler_in_ld" = xyes; then
25296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25297$as_echo_n "checking linker --demangle support... " >&6; }
25298  gcc_cv_ld_demangle=no
25299  if test $in_tree_ld = yes; then
25300    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 \
25301      gcc_cv_ld_demangle=yes
25302    fi
25303  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25304    # Check if the GNU linker supports --demangle option
25305    if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25306      gcc_cv_ld_demangle=yes
25307    fi
25308  fi
25309  if test x"$gcc_cv_ld_demangle" = xyes; then
25310
25311$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25312
25313  fi
25314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25315$as_echo "$gcc_cv_ld_demangle" >&6; }
25316fi
25317
25318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25319$as_echo_n "checking linker plugin support... " >&6; }
25320gcc_cv_lto_plugin=0
25321if test -f liblto_plugin.la; then
25322  save_ld_ver="$ld_ver"
25323  save_ld_vers_major="$ld_vers_major"
25324  save_ld_vers_minor="$ld_vers_minor"
25325  save_ld_is_gold="$ld_is_gold"
25326
25327  ld_is_gold=no
25328
25329  if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25330    ld_ver="GNU ld"
25331    # FIXME: ld_is_gold?
25332    ld_vers_major="$gcc_cv_gld_major_version"
25333    ld_vers_minor="$gcc_cv_gld_minor_version"
25334  else
25335    # Determine plugin linker version.
25336    # FIXME: Partial duplicate from above, generalize.
25337    ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25338    if echo "$ld_ver" | grep GNU > /dev/null; then
25339      if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25340        ld_is_gold=yes
25341        ld_vers=`echo $ld_ver | sed -n \
25342    	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25343      else
25344        ld_vers=`echo $ld_ver | sed -n \
25345    	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25346      fi
25347      ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25348      ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25349    fi
25350  fi
25351
25352  # Determine plugin support.
25353  if echo "$ld_ver" | grep GNU > /dev/null; then
25354    # Require GNU ld or gold 2.21+ for plugin support by default.
25355    if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25356      gcc_cv_lto_plugin=2
25357    # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25358    elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25359      gcc_cv_lto_plugin=1
25360    fi
25361  fi
25362
25363  ld_ver="$save_ld_ver"
25364  ld_vers_major="$save_ld_vers_major"
25365  ld_vers_minor="$save_ld_vers_minor"
25366  ld_is_gold="$save_ld_is_gold"
25367fi
25368
25369cat >>confdefs.h <<_ACEOF
25370#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25371_ACEOF
25372
25373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25374$as_echo "$gcc_cv_lto_plugin" >&6; }
25375
25376# Target OS-specific assembler checks.
25377
25378case "$target_os" in
25379  darwin*)
25380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25381$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25382if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25383  $as_echo_n "(cached) " >&6
25384else
25385  gcc_cv_as_mmacosx_version_min=no
25386  if test x$gcc_cv_as != x; then
25387    $as_echo '.text' > conftest.s
25388    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25389  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25390  (eval $ac_try) 2>&5
25391  ac_status=$?
25392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25393  test $ac_status = 0; }; }
25394    then
25395	gcc_cv_as_mmacosx_version_min=yes
25396    else
25397      echo "configure: failed program was" >&5
25398      cat conftest.s >&5
25399    fi
25400    rm -f conftest.o conftest.s
25401  fi
25402fi
25403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25404$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25405if test $gcc_cv_as_mmacosx_version_min = yes; then
25406
25407$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25408
25409fi
25410
25411    ;;
25412esac
25413
25414# Target CPU-specific assembler checks.
25415
25416case "$target" in
25417  aarch64*-*-*)
25418    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25419$as_echo_n "checking assembler for -mabi option... " >&6; }
25420if ${gcc_cv_as_aarch64_mabi+:} false; then :
25421  $as_echo_n "(cached) " >&6
25422else
25423  gcc_cv_as_aarch64_mabi=no
25424  if test x$gcc_cv_as != x; then
25425    $as_echo '.text' > conftest.s
25426    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25427  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25428  (eval $ac_try) 2>&5
25429  ac_status=$?
25430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25431  test $ac_status = 0; }; }
25432    then
25433	gcc_cv_as_aarch64_mabi=yes
25434    else
25435      echo "configure: failed program was" >&5
25436      cat conftest.s >&5
25437    fi
25438    rm -f conftest.o conftest.s
25439  fi
25440fi
25441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25442$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25443
25444
25445    if test x$gcc_cv_as_aarch64_mabi = xyes; then
25446
25447$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25448
25449    else
25450      if test x$with_abi = xilp32; then
25451        as_fn_error $? "Assembler does not support -mabi=ilp32.\
25452                     Upgrade the Assembler." "$LINENO" 5
25453      fi
25454      if test x"$with_multilib_list" = xdefault; then
25455        TM_MULTILIB_CONFIG=lp64
25456      else
25457        aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25458        for aarch64_multilib in ${aarch64_multilibs}; do
25459          case ${aarch64_multilib} in
25460            ilp32)
25461              as_fn_error $? "Assembler does not support -mabi=ilp32.\
25462                            Upgrade the Assembler." "$LINENO" 5
25463              ;;
25464            *)
25465              ;;
25466          esac
25467        done
25468      fi
25469    fi
25470    # Check if we have binutils support for relocations types needed by -fpic
25471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25472$as_echo_n "checking assembler for -fpic relocs... " >&6; }
25473if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25474  $as_echo_n "(cached) " >&6
25475else
25476  gcc_cv_as_aarch64_picreloc=no
25477  if test x$gcc_cv_as != x; then
25478    $as_echo '
25479	.text
25480	ldr     x0, [x2, #:gotpage_lo15:globalsym]
25481    ' > conftest.s
25482    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25483  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25484  (eval $ac_try) 2>&5
25485  ac_status=$?
25486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25487  test $ac_status = 0; }; }
25488    then
25489	gcc_cv_as_aarch64_picreloc=yes
25490    else
25491      echo "configure: failed program was" >&5
25492      cat conftest.s >&5
25493    fi
25494    rm -f conftest.o conftest.s
25495  fi
25496fi
25497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25498$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25499if test $gcc_cv_as_aarch64_picreloc = yes; then
25500
25501$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25502
25503fi
25504
25505    # Enable Branch Target Identification Mechanism and Return Address
25506    # Signing by default.
25507    # Check whether --enable-standard-branch-protection was given.
25508if test "${enable_standard_branch_protection+set}" = set; then :
25509  enableval=$enable_standard_branch_protection;
25510        case $enableval in
25511          yes)
25512            tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25513            ;;
25514          no)
25515            ;;
25516          *)
25517            as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25518  Valid choices are 'yes' and 'no'." "$LINENO" 5
25519            ;;
25520        esac
25521
25522fi
25523
25524    # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25525    # Check whether --enable-fix-cortex-a53-835769 was given.
25526if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25527  enableval=$enable_fix_cortex_a53_835769;
25528        case $enableval in
25529          yes)
25530            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25531            ;;
25532          no)
25533            ;;
25534          *)
25535            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25536  Valid choices are 'yes' and 'no'." "$LINENO" 5
25537            ;;
25538
25539        esac
25540
25541fi
25542
25543    # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25544    # Check whether --enable-fix-cortex-a53-843419 was given.
25545if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25546  enableval=$enable_fix_cortex_a53_843419;
25547        case $enableval in
25548          yes)
25549            tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25550            ;;
25551          no)
25552            ;;
25553          *)
25554            as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25555  Valid choices are 'yes' and 'no'." "$LINENO" 5
25556            ;;
25557
25558        esac
25559
25560fi
25561
25562    ;;
25563
25564  # All TARGET_ABI_OSF targets.
25565  alpha*-*-linux* | alpha*-*-*bsd*)
25566    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25567$as_echo_n "checking assembler for explicit relocation support... " >&6; }
25568if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25569  $as_echo_n "(cached) " >&6
25570else
25571  gcc_cv_as_alpha_explicit_relocs=no
25572    if test $in_tree_gas = yes; then
25573    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25574  then gcc_cv_as_alpha_explicit_relocs=yes
25575fi
25576  elif test x$gcc_cv_as != x; then
25577    $as_echo '	.set nomacro
25578	.text
25579	extbl	$3, $2, $3	!lituse_bytoff!1
25580	ldq	$2, a($29)	!literal!1
25581	ldq	$4, b($29)	!literal!2
25582	ldq_u	$3, 0($2)	!lituse_base!1
25583	ldq	$27, f($29)	!literal!5
25584	jsr	$26, ($27), f	!lituse_jsr!5
25585	ldah	$29, 0($26)	!gpdisp!3
25586	lda	$0, c($29)	!gprel
25587	ldah	$1, d($29)	!gprelhigh
25588	lda	$1, d($1)	!gprellow
25589	lda	$29, 0($29)	!gpdisp!3' > conftest.s
25590    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25591  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25592  (eval $ac_try) 2>&5
25593  ac_status=$?
25594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25595  test $ac_status = 0; }; }
25596    then
25597	gcc_cv_as_alpha_explicit_relocs=yes
25598    else
25599      echo "configure: failed program was" >&5
25600      cat conftest.s >&5
25601    fi
25602    rm -f conftest.o conftest.s
25603  fi
25604fi
25605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25606$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25607if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25608
25609$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25610
25611fi
25612
25613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25614$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25615if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25616  $as_echo_n "(cached) " >&6
25617else
25618  gcc_cv_as_alpha_jsrdirect_relocs=no
25619    if test $in_tree_gas = yes; then
25620    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25621  then gcc_cv_as_alpha_jsrdirect_relocs=yes
25622fi
25623  elif test x$gcc_cv_as != x; then
25624    $as_echo '	.set nomacro
25625	.text
25626	ldq	$27, a($29)	!literal!1
25627	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
25628    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25629  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630  (eval $ac_try) 2>&5
25631  ac_status=$?
25632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633  test $ac_status = 0; }; }
25634    then
25635	gcc_cv_as_alpha_jsrdirect_relocs=yes
25636    else
25637      echo "configure: failed program was" >&5
25638      cat conftest.s >&5
25639    fi
25640    rm -f conftest.o conftest.s
25641  fi
25642fi
25643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25644$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25645if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25646
25647$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25648
25649fi
25650
25651    ;;
25652
25653  avr-*-*)
25654    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25655$as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25656if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25657  $as_echo_n "(cached) " >&6
25658else
25659  gcc_cv_as_avr_mlink_relax=no
25660  if test x$gcc_cv_as != x; then
25661    $as_echo '.text' > conftest.s
25662    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25663  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25664  (eval $ac_try) 2>&5
25665  ac_status=$?
25666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25667  test $ac_status = 0; }; }
25668    then
25669	gcc_cv_as_avr_mlink_relax=yes
25670    else
25671      echo "configure: failed program was" >&5
25672      cat conftest.s >&5
25673    fi
25674    rm -f conftest.o conftest.s
25675  fi
25676fi
25677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25678$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25679if test $gcc_cv_as_avr_mlink_relax = yes; then
25680
25681$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25682
25683fi
25684
25685
25686    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25687$as_echo_n "checking assembler for -mrmw option... " >&6; }
25688if ${gcc_cv_as_avr_mrmw+:} false; then :
25689  $as_echo_n "(cached) " >&6
25690else
25691  gcc_cv_as_avr_mrmw=no
25692  if test x$gcc_cv_as != x; then
25693    $as_echo '.text' > conftest.s
25694    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25695  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25696  (eval $ac_try) 2>&5
25697  ac_status=$?
25698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25699  test $ac_status = 0; }; }
25700    then
25701	gcc_cv_as_avr_mrmw=yes
25702    else
25703      echo "configure: failed program was" >&5
25704      cat conftest.s >&5
25705    fi
25706    rm -f conftest.o conftest.s
25707  fi
25708fi
25709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25710$as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25711if test $gcc_cv_as_avr_mrmw = yes; then
25712
25713$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25714
25715fi
25716
25717
25718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25719$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25720if ${gcc_cv_as_avr_mgccisr+:} false; then :
25721  $as_echo_n "(cached) " >&6
25722else
25723  gcc_cv_as_avr_mgccisr=no
25724  if test x$gcc_cv_as != x; then
25725    $as_echo '.text
25726      		    __gcc_isr 1
25727      		    __gcc_isr 2
25728      		    __gcc_isr 0,r24
25729      		   ' > conftest.s
25730    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25731  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732  (eval $ac_try) 2>&5
25733  ac_status=$?
25734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735  test $ac_status = 0; }; }
25736    then
25737	gcc_cv_as_avr_mgccisr=yes
25738    else
25739      echo "configure: failed program was" >&5
25740      cat conftest.s >&5
25741    fi
25742    rm -f conftest.o conftest.s
25743  fi
25744fi
25745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25746$as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25747if test $gcc_cv_as_avr_mgccisr = yes; then
25748
25749$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25750
25751fi
25752
25753
25754    # Check how default linker description file implements .rodata for
25755    # avrxmega3 (PR21472).  avr-gcc assumes .rodata is *not* loaded to
25756    # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25757    { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25758$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25759    cat > conftest.s <<EOF
25760        .section .rodata,"a",@progbits
25761        .global xxvaryy
25762    ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25763    xxvaryy:
25764        .word 1
25765EOF
25766    rm -f conftest.nm
25767    { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25768  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25769  (eval $ac_try) 2>&5
25770  ac_status=$?
25771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25772  test $ac_status = 0; }; }
25773    { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25774  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25775  (eval $ac_try) 2>&5
25776  ac_status=$?
25777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25778  test $ac_status = 0; }; }
25779    { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25780  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25781  (eval $ac_try) 2>&5
25782  ac_status=$?
25783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25784  test $ac_status = 0; }; }
25785    if test -s conftest.nm
25786    then
25787	if grep ' R xxvaryy' conftest.nm > /dev/null; then
25788	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25789$as_echo "yes" >&6; }
25790
25791$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25792
25793	else
25794	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25795$as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25796	    echo "$as_me: nm output was" >&5
25797	    cat conftest.nm >&5
25798	    avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25799	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25800$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25801	fi
25802    else
25803	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25804$as_echo "test failed" >&6; }
25805	echo "$as_me: failed program was" >&5
25806	cat conftest.s >&5
25807	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25808$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25809    fi
25810    rm -f conftest.s conftest.o conftest.elf conftest.nm
25811    ;;
25812
25813  cris-*-*)
25814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25815$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25816if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25817  $as_echo_n "(cached) " >&6
25818else
25819  gcc_cv_as_cris_no_mul_bug=no
25820    if test $in_tree_gas = yes; then
25821    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25822  then gcc_cv_as_cris_no_mul_bug=yes
25823fi
25824  elif test x$gcc_cv_as != x; then
25825    $as_echo '.text' > conftest.s
25826    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25827  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25828  (eval $ac_try) 2>&5
25829  ac_status=$?
25830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25831  test $ac_status = 0; }; }
25832    then
25833	gcc_cv_as_cris_no_mul_bug=yes
25834    else
25835      echo "configure: failed program was" >&5
25836      cat conftest.s >&5
25837    fi
25838    rm -f conftest.o conftest.s
25839  fi
25840fi
25841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25842$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25843if test $gcc_cv_as_cris_no_mul_bug = yes; then
25844
25845$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25846
25847fi
25848
25849    ;;
25850
25851  sparc*-*-*)
25852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25853$as_echo_n "checking assembler for -relax option... " >&6; }
25854if ${gcc_cv_as_sparc_relax+:} false; then :
25855  $as_echo_n "(cached) " >&6
25856else
25857  gcc_cv_as_sparc_relax=no
25858  if test x$gcc_cv_as != x; then
25859    $as_echo '.text' > conftest.s
25860    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25861  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25862  (eval $ac_try) 2>&5
25863  ac_status=$?
25864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25865  test $ac_status = 0; }; }
25866    then
25867	gcc_cv_as_sparc_relax=yes
25868    else
25869      echo "configure: failed program was" >&5
25870      cat conftest.s >&5
25871    fi
25872    rm -f conftest.o conftest.s
25873  fi
25874fi
25875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25876$as_echo "$gcc_cv_as_sparc_relax" >&6; }
25877if test $gcc_cv_as_sparc_relax = yes; then
25878
25879$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25880
25881fi
25882
25883
25884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25885$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25886if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25887  $as_echo_n "(cached) " >&6
25888else
25889  gcc_cv_as_sparc_gotdata_op=no
25890  if test x$gcc_cv_as != x; then
25891    $as_echo '.text
25892.align 4
25893foo:
25894	nop
25895bar:
25896	sethi %gdop_hix22(foo), %g1
25897	xor    %g1, %gdop_lox10(foo), %g1
25898	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25899    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25900  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25901  (eval $ac_try) 2>&5
25902  ac_status=$?
25903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25904  test $ac_status = 0; }; }
25905    then
25906	if test x$gcc_cv_ld != x \
25907       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25908         if test x$gcc_cv_objdump != x; then
25909           if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25910              | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25911	       gcc_cv_as_sparc_gotdata_op=no
25912           else
25913	       gcc_cv_as_sparc_gotdata_op=yes
25914           fi
25915         fi
25916       fi
25917       rm -f conftest
25918    else
25919      echo "configure: failed program was" >&5
25920      cat conftest.s >&5
25921    fi
25922    rm -f conftest.o conftest.s
25923  fi
25924fi
25925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25926$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25927if test $gcc_cv_as_sparc_gotdata_op = yes; then
25928
25929$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25930
25931fi
25932
25933
25934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25935$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25936if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25937  $as_echo_n "(cached) " >&6
25938else
25939  gcc_cv_as_sparc_ua_pcrel=no
25940  if test x$gcc_cv_as != x; then
25941    $as_echo '.text
25942foo:
25943	nop
25944.data
25945.align 4
25946.byte 0
25947.uaword %r_disp32(foo)' > conftest.s
25948    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25949  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25950  (eval $ac_try) 2>&5
25951  ac_status=$?
25952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25953  test $ac_status = 0; }; }
25954    then
25955	if test x$gcc_cv_ld != x \
25956       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25957	 gcc_cv_as_sparc_ua_pcrel=yes
25958       fi
25959       rm -f conftest
25960    else
25961      echo "configure: failed program was" >&5
25962      cat conftest.s >&5
25963    fi
25964    rm -f conftest.o conftest.s
25965  fi
25966fi
25967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25968$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25969if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25970
25971$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25972
25973
25974      { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25975$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25976if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25977  $as_echo_n "(cached) " >&6
25978else
25979  gcc_cv_as_sparc_ua_pcrel_hidden=no
25980  if test x$gcc_cv_as != x; then
25981    $as_echo '.data
25982.align 4
25983.byte 0x31
25984.uaword %r_disp32(foo)
25985.byte 0x32, 0x33, 0x34
25986.global foo
25987.hidden foo
25988foo:
25989.skip 4' > conftest.s
25990    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25991  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25992  (eval $ac_try) 2>&5
25993  ac_status=$?
25994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25995  test $ac_status = 0; }; }
25996    then
25997	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25998	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25999	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26000	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
26001	    if $gcc_cv_objdump -R conftest 2> /dev/null \
26002	       | grep 'DISP32' > /dev/null 2>&1; then
26003		:
26004	    else
26005		gcc_cv_as_sparc_ua_pcrel_hidden=yes
26006	    fi
26007	 fi
26008	 rm -f conftest
26009    else
26010      echo "configure: failed program was" >&5
26011      cat conftest.s >&5
26012    fi
26013    rm -f conftest.o conftest.s
26014  fi
26015fi
26016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26017$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26018if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26019
26020$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26021
26022fi
26023
26024
26025fi
26026 # unaligned pcrel relocs
26027
26028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26029$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26030if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26031  $as_echo_n "(cached) " >&6
26032else
26033  gcc_cv_as_sparc_offsetable_lo10=no
26034  if test x$gcc_cv_as != x; then
26035    $as_echo '.text
26036	or %g1, %lo(ab) + 12, %g1
26037	or %g1, %lo(ab + 12), %g1' > conftest.s
26038    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26039  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26040  (eval $ac_try) 2>&5
26041  ac_status=$?
26042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26043  test $ac_status = 0; }; }
26044    then
26045	if test x$gcc_cv_objdump != x \
26046       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26047          | grep ' 82106000 82106000' > /dev/null 2>&1; then
26048	 gcc_cv_as_sparc_offsetable_lo10=yes
26049       fi
26050    else
26051      echo "configure: failed program was" >&5
26052      cat conftest.s >&5
26053    fi
26054    rm -f conftest.o conftest.s
26055  fi
26056fi
26057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26058$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26059if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26060
26061$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26062
26063fi
26064
26065
26066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26067$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26068if ${gcc_cv_as_sparc_fmaf+:} false; then :
26069  $as_echo_n "(cached) " >&6
26070else
26071  gcc_cv_as_sparc_fmaf=no
26072  if test x$gcc_cv_as != x; then
26073    $as_echo '.text
26074       .register %g2, #scratch
26075       .register %g3, #scratch
26076       .align 4
26077       fmaddd %f0, %f2, %f4, %f6
26078       addxccc %g1, %g2, %g3
26079       fsrl32 %f2, %f4, %f8
26080       fnaddd %f10, %f12, %f14' > conftest.s
26081    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26082  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26083  (eval $ac_try) 2>&5
26084  ac_status=$?
26085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26086  test $ac_status = 0; }; }
26087    then
26088	gcc_cv_as_sparc_fmaf=yes
26089    else
26090      echo "configure: failed program was" >&5
26091      cat conftest.s >&5
26092    fi
26093    rm -f conftest.o conftest.s
26094  fi
26095fi
26096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26097$as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26098if test $gcc_cv_as_sparc_fmaf = yes; then
26099
26100$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26101
26102fi
26103
26104
26105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26106$as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26107if ${gcc_cv_as_sparc_sparc4+:} false; then :
26108  $as_echo_n "(cached) " >&6
26109else
26110  gcc_cv_as_sparc_sparc4=no
26111  if test x$gcc_cv_as != x; then
26112    $as_echo '.text
26113       .register %g2, #scratch
26114       .register %g3, #scratch
26115       .align 4
26116       cxbe %g2, %g3, 1f
261171:     cwbneg %g2, %g3, 1f
261181:     sha1
26119       md5
26120       aes_kexpand0 %f4, %f6, %f8
26121       des_round %f38, %f40, %f42, %f44
26122       camellia_f %f54, %f56, %f58, %f60
26123       kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26124    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26125  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26126  (eval $ac_try) 2>&5
26127  ac_status=$?
26128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26129  test $ac_status = 0; }; }
26130    then
26131	gcc_cv_as_sparc_sparc4=yes
26132    else
26133      echo "configure: failed program was" >&5
26134      cat conftest.s >&5
26135    fi
26136    rm -f conftest.o conftest.s
26137  fi
26138fi
26139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26140$as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26141if test $gcc_cv_as_sparc_sparc4 = yes; then
26142
26143$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26144
26145fi
26146
26147
26148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26149$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26150if ${gcc_cv_as_sparc_sparc5+:} false; then :
26151  $as_echo_n "(cached) " >&6
26152else
26153  gcc_cv_as_sparc_sparc5=no
26154  if test x$gcc_cv_as != x; then
26155    $as_echo '.text
26156       .register %g2, #scratch
26157       .register %g3, #scratch
26158       .align 4
26159       subxc %g1, %g2, %g3
26160       fpadd8 %f0, %f2, %f4' > conftest.s
26161    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26162  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26163  (eval $ac_try) 2>&5
26164  ac_status=$?
26165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26166  test $ac_status = 0; }; }
26167    then
26168	gcc_cv_as_sparc_sparc5=yes
26169    else
26170      echo "configure: failed program was" >&5
26171      cat conftest.s >&5
26172    fi
26173    rm -f conftest.o conftest.s
26174  fi
26175fi
26176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26177$as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26178if test $gcc_cv_as_sparc_sparc5 = yes; then
26179
26180$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26181
26182fi
26183
26184
26185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26186$as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26187if ${gcc_cv_as_sparc_sparc6+:} false; then :
26188  $as_echo_n "(cached) " >&6
26189else
26190  gcc_cv_as_sparc_sparc6=no
26191  if test x$gcc_cv_as != x; then
26192    $as_echo '.text
26193       .register %g2, #scratch
26194       .register %g3, #scratch
26195       .align 4
26196       rd %entropy, %g1
26197       fpsll64x %f0, %f2, %f4' > conftest.s
26198    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26199  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26200  (eval $ac_try) 2>&5
26201  ac_status=$?
26202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26203  test $ac_status = 0; }; }
26204    then
26205	gcc_cv_as_sparc_sparc6=yes
26206    else
26207      echo "configure: failed program was" >&5
26208      cat conftest.s >&5
26209    fi
26210    rm -f conftest.o conftest.s
26211  fi
26212fi
26213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26214$as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26215if test $gcc_cv_as_sparc_sparc6 = yes; then
26216
26217$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26218
26219fi
26220
26221
26222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26223$as_echo_n "checking assembler for LEON instructions... " >&6; }
26224if ${gcc_cv_as_sparc_leon+:} false; then :
26225  $as_echo_n "(cached) " >&6
26226else
26227  gcc_cv_as_sparc_leon=no
26228  if test x$gcc_cv_as != x; then
26229    $as_echo '.text
26230       .register %g2, #scratch
26231       .register %g3, #scratch
26232       .align 4
26233       smac %g2, %g3, %g1
26234       umac %g2, %g3, %g1
26235       casa [%g2] 0xb, %g3, %g1' > conftest.s
26236    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26237  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26238  (eval $ac_try) 2>&5
26239  ac_status=$?
26240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26241  test $ac_status = 0; }; }
26242    then
26243	gcc_cv_as_sparc_leon=yes
26244    else
26245      echo "configure: failed program was" >&5
26246      cat conftest.s >&5
26247    fi
26248    rm -f conftest.o conftest.s
26249  fi
26250fi
26251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26252$as_echo "$gcc_cv_as_sparc_leon" >&6; }
26253if test $gcc_cv_as_sparc_leon = yes; then
26254
26255$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26256
26257fi
26258
26259    ;;
26260
26261  i[34567]86-*-* | x86_64-*-*)
26262    case $target_os in
26263      cygwin*)
26264	# Full C++ conformance when using a shared libstdc++-v3 requires some
26265	# support from the Cygwin DLL, which in more recent versions exports
26266	# wrappers to aid in interposing and redirecting operators new, delete,
26267	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
26268	# are configuring for a version of Cygwin that exports the wrappers.
26269	if test x$host = x$target && test x$host_cpu = xi686; then
26270	  ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26271if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26272  gcc_ac_cygwin_dll_wrappers=yes
26273else
26274  gcc_ac_cygwin_dll_wrappers=no
26275fi
26276
26277	else
26278	  # Can't check presence of libc functions during cross-compile, so
26279	  # we just have to assume we're building for an up-to-date target.
26280	  gcc_ac_cygwin_dll_wrappers=yes
26281	fi
26282
26283cat >>confdefs.h <<_ACEOF
26284#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26285_ACEOF
26286
26287    esac
26288    case $target_os in
26289      cygwin* | pe | mingw32*)
26290	# Recent binutils allows the three-operand form of ".comm" on PE.  This
26291	# definition is used unconditionally to initialise the default state of
26292	# the target option variable that governs usage of the feature.
26293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26294$as_echo_n "checking assembler for .comm with alignment... " >&6; }
26295if ${gcc_cv_as_comm_has_align+:} false; then :
26296  $as_echo_n "(cached) " >&6
26297else
26298  gcc_cv_as_comm_has_align=no
26299    if test $in_tree_gas = yes; then
26300    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26301  then gcc_cv_as_comm_has_align=yes
26302fi
26303  elif test x$gcc_cv_as != x; then
26304    $as_echo '.comm foo,1,32' > conftest.s
26305    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26306  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307  (eval $ac_try) 2>&5
26308  ac_status=$?
26309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310  test $ac_status = 0; }; }
26311    then
26312	gcc_cv_as_comm_has_align=yes
26313    else
26314      echo "configure: failed program was" >&5
26315      cat conftest.s >&5
26316    fi
26317    rm -f conftest.o conftest.s
26318  fi
26319fi
26320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26321$as_echo "$gcc_cv_as_comm_has_align" >&6; }
26322
26323
26324
26325cat >>confdefs.h <<_ACEOF
26326#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26327_ACEOF
26328
26329	# Used for DWARF 2 in PE
26330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26331$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26332if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26333  $as_echo_n "(cached) " >&6
26334else
26335  gcc_cv_as_ix86_pe_secrel32=no
26336    if test $in_tree_gas = yes; then
26337    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26338  then gcc_cv_as_ix86_pe_secrel32=yes
26339fi
26340  elif test x$gcc_cv_as != x; then
26341    $as_echo '.text
26342foo:	nop
26343.data
26344	.secrel32 foo' > conftest.s
26345    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26346  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26347  (eval $ac_try) 2>&5
26348  ac_status=$?
26349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350  test $ac_status = 0; }; }
26351    then
26352	if test x$gcc_cv_ld != x \
26353	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26354	     gcc_cv_as_ix86_pe_secrel32=yes
26355	   fi
26356	   rm -f conftest
26357    else
26358      echo "configure: failed program was" >&5
26359      cat conftest.s >&5
26360    fi
26361    rm -f conftest.o conftest.s
26362  fi
26363fi
26364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26365$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26366if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26367
26368$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26369
26370fi
26371
26372	# Test if the assembler supports the extended form of the .section
26373	# directive that specifies section alignment.  LTO support uses this,
26374	# but normally only after installation, so we warn but don't fail the
26375	# configure if LTO is enabled but the assembler does not support it.
26376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26377$as_echo_n "checking assembler for .section with alignment... " >&6; }
26378if ${gcc_cv_as_section_has_align+:} false; then :
26379  $as_echo_n "(cached) " >&6
26380else
26381  gcc_cv_as_section_has_align=no
26382    if test $in_tree_gas = yes; then
26383    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26384  then gcc_cv_as_section_has_align=yes
26385fi
26386  elif test x$gcc_cv_as != x; then
26387    $as_echo '.section lto_test,"dr0"' > conftest.s
26388    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26389  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26390  (eval $ac_try) 2>&5
26391  ac_status=$?
26392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26393  test $ac_status = 0; }; }
26394    then
26395	gcc_cv_as_section_has_align=yes
26396    else
26397      echo "configure: failed program was" >&5
26398      cat conftest.s >&5
26399    fi
26400    rm -f conftest.o conftest.s
26401  fi
26402fi
26403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26404$as_echo "$gcc_cv_as_section_has_align" >&6; }
26405
26406
26407	if test x$gcc_cv_as_section_has_align != xyes; then
26408	  case ",$enable_languages," in
26409	    *,lto,*)
26410	      { $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
26411$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;}
26412	      ;;
26413	  esac
26414	fi
26415	;;
26416    esac
26417
26418    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26419$as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26420if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26421  $as_echo_n "(cached) " >&6
26422else
26423  gcc_cv_as_ix86_xbrace_comment=no
26424  if test x$gcc_cv_as != x; then
26425    $as_echo '.text' > conftest.s
26426    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26427  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26428  (eval $ac_try) 2>&5
26429  ac_status=$?
26430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26431  test $ac_status = 0; }; }
26432    then
26433	gcc_cv_as_ix86_xbrace_comment=yes
26434    else
26435      echo "configure: failed program was" >&5
26436      cat conftest.s >&5
26437    fi
26438    rm -f conftest.o conftest.s
26439  fi
26440fi
26441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26442$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26443if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26444
26445$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26446
26447fi
26448
26449
26450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26451$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26452if ${gcc_cv_as_ix86_filds+:} false; then :
26453  $as_echo_n "(cached) " >&6
26454else
26455  gcc_cv_as_ix86_filds=no
26456  if test x$gcc_cv_as != x; then
26457    $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26458    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26459  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460  (eval $ac_try) 2>&5
26461  ac_status=$?
26462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463  test $ac_status = 0; }; }
26464    then
26465	gcc_cv_as_ix86_filds=yes
26466    else
26467      echo "configure: failed program was" >&5
26468      cat conftest.s >&5
26469    fi
26470    rm -f conftest.o conftest.s
26471  fi
26472fi
26473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26474$as_echo "$gcc_cv_as_ix86_filds" >&6; }
26475if test $gcc_cv_as_ix86_filds = yes; then
26476
26477$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26478
26479fi
26480
26481
26482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26483$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26484if ${gcc_cv_as_ix86_fildq+:} false; then :
26485  $as_echo_n "(cached) " >&6
26486else
26487  gcc_cv_as_ix86_fildq=no
26488  if test x$gcc_cv_as != x; then
26489    $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26490    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26491  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26492  (eval $ac_try) 2>&5
26493  ac_status=$?
26494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26495  test $ac_status = 0; }; }
26496    then
26497	gcc_cv_as_ix86_fildq=yes
26498    else
26499      echo "configure: failed program was" >&5
26500      cat conftest.s >&5
26501    fi
26502    rm -f conftest.o conftest.s
26503  fi
26504fi
26505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26506$as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26507if test $gcc_cv_as_ix86_fildq = yes; then
26508
26509$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26510
26511fi
26512
26513
26514    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26515$as_echo_n "checking assembler for cmov syntax... " >&6; }
26516if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26517  $as_echo_n "(cached) " >&6
26518else
26519  gcc_cv_as_ix86_cmov_sun_syntax=no
26520  if test x$gcc_cv_as != x; then
26521    $as_echo 'cmovl.l %edx, %eax' > conftest.s
26522    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26523  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26524  (eval $ac_try) 2>&5
26525  ac_status=$?
26526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26527  test $ac_status = 0; }; }
26528    then
26529	gcc_cv_as_ix86_cmov_sun_syntax=yes
26530    else
26531      echo "configure: failed program was" >&5
26532      cat conftest.s >&5
26533    fi
26534    rm -f conftest.o conftest.s
26535  fi
26536fi
26537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26538$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26539if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26540
26541$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26542
26543fi
26544
26545
26546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26547$as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26548if ${gcc_cv_as_ix86_ffreep+:} false; then :
26549  $as_echo_n "(cached) " >&6
26550else
26551  gcc_cv_as_ix86_ffreep=no
26552  if test x$gcc_cv_as != x; then
26553    $as_echo 'ffreep %st(1)' > conftest.s
26554    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26555  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26556  (eval $ac_try) 2>&5
26557  ac_status=$?
26558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26559  test $ac_status = 0; }; }
26560    then
26561	gcc_cv_as_ix86_ffreep=yes
26562    else
26563      echo "configure: failed program was" >&5
26564      cat conftest.s >&5
26565    fi
26566    rm -f conftest.o conftest.s
26567  fi
26568fi
26569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26570$as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26571if test $gcc_cv_as_ix86_ffreep = yes; then
26572
26573$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26574
26575fi
26576
26577
26578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26579$as_echo_n "checking assembler for .quad directive... " >&6; }
26580if ${gcc_cv_as_ix86_quad+:} false; then :
26581  $as_echo_n "(cached) " >&6
26582else
26583  gcc_cv_as_ix86_quad=no
26584  if test x$gcc_cv_as != x; then
26585    $as_echo '.quad 0' > conftest.s
26586    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26587  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588  (eval $ac_try) 2>&5
26589  ac_status=$?
26590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591  test $ac_status = 0; }; }
26592    then
26593	gcc_cv_as_ix86_quad=yes
26594    else
26595      echo "configure: failed program was" >&5
26596      cat conftest.s >&5
26597    fi
26598    rm -f conftest.o conftest.s
26599  fi
26600fi
26601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26602$as_echo "$gcc_cv_as_ix86_quad" >&6; }
26603if test $gcc_cv_as_ix86_quad = yes; then
26604
26605$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26606
26607fi
26608
26609
26610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26611$as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26612if ${gcc_cv_as_ix86_sahf+:} false; then :
26613  $as_echo_n "(cached) " >&6
26614else
26615  gcc_cv_as_ix86_sahf=no
26616  if test x$gcc_cv_as != x; then
26617    $as_echo '.code64
26618       sahf' > conftest.s
26619    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26620  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26621  (eval $ac_try) 2>&5
26622  ac_status=$?
26623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26624  test $ac_status = 0; }; }
26625    then
26626	gcc_cv_as_ix86_sahf=yes
26627    else
26628      echo "configure: failed program was" >&5
26629      cat conftest.s >&5
26630    fi
26631    rm -f conftest.o conftest.s
26632  fi
26633fi
26634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26635$as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26636if test $gcc_cv_as_ix86_sahf = yes; then
26637
26638$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26639
26640fi
26641
26642
26643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26644$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26645if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26646  $as_echo_n "(cached) " >&6
26647else
26648  gcc_cv_as_ix86_interunit_movq=no
26649  if test x$gcc_cv_as != x; then
26650    $as_echo '.code64
26651       movq %mm0, %rax
26652       movq %rax, %xmm0' > conftest.s
26653    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26654  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26655  (eval $ac_try) 2>&5
26656  ac_status=$?
26657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26658  test $ac_status = 0; }; }
26659    then
26660	gcc_cv_as_ix86_interunit_movq=yes
26661    else
26662      echo "configure: failed program was" >&5
26663      cat conftest.s >&5
26664    fi
26665    rm -f conftest.o conftest.s
26666  fi
26667fi
26668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26669$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26670
26671
26672
26673cat >>confdefs.h <<_ACEOF
26674#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26675_ACEOF
26676
26677
26678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26679$as_echo_n "checking assembler for hle prefixes... " >&6; }
26680if ${gcc_cv_as_ix86_hle+:} false; then :
26681  $as_echo_n "(cached) " >&6
26682else
26683  gcc_cv_as_ix86_hle=no
26684  if test x$gcc_cv_as != x; then
26685    $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26686    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26687  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26688  (eval $ac_try) 2>&5
26689  ac_status=$?
26690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26691  test $ac_status = 0; }; }
26692    then
26693	gcc_cv_as_ix86_hle=yes
26694    else
26695      echo "configure: failed program was" >&5
26696      cat conftest.s >&5
26697    fi
26698    rm -f conftest.o conftest.s
26699  fi
26700fi
26701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26702$as_echo "$gcc_cv_as_ix86_hle" >&6; }
26703if test $gcc_cv_as_ix86_hle = yes; then
26704
26705$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26706
26707fi
26708
26709
26710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26711$as_echo_n "checking assembler for swap suffix... " >&6; }
26712if ${gcc_cv_as_ix86_swap+:} false; then :
26713  $as_echo_n "(cached) " >&6
26714else
26715  gcc_cv_as_ix86_swap=no
26716  if test x$gcc_cv_as != x; then
26717    $as_echo 'movl.s %esp, %ebp' > conftest.s
26718    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26719  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26720  (eval $ac_try) 2>&5
26721  ac_status=$?
26722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26723  test $ac_status = 0; }; }
26724    then
26725	gcc_cv_as_ix86_swap=yes
26726    else
26727      echo "configure: failed program was" >&5
26728      cat conftest.s >&5
26729    fi
26730    rm -f conftest.o conftest.s
26731  fi
26732fi
26733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26734$as_echo "$gcc_cv_as_ix86_swap" >&6; }
26735if test $gcc_cv_as_ix86_swap = yes; then
26736
26737$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26738
26739fi
26740
26741
26742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26743$as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26744if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26745  $as_echo_n "(cached) " >&6
26746else
26747  gcc_cv_as_ix86_diff_sect_delta=no
26748  if test x$gcc_cv_as != x; then
26749    $as_echo '.section .rodata
26750.L1:
26751        .long .L2-.L1
26752        .long .L3-.L1
26753        .text
26754.L3:    nop
26755.L2:    nop' > conftest.s
26756    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26757  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26758  (eval $ac_try) 2>&5
26759  ac_status=$?
26760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26761  test $ac_status = 0; }; }
26762    then
26763	gcc_cv_as_ix86_diff_sect_delta=yes
26764    else
26765      echo "configure: failed program was" >&5
26766      cat conftest.s >&5
26767    fi
26768    rm -f conftest.o conftest.s
26769  fi
26770fi
26771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26772$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26773if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26774
26775$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26776
26777fi
26778
26779
26780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26781$as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26782if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26783  $as_echo_n "(cached) " >&6
26784else
26785  gcc_cv_as_ix86_rep_lock_prefix=no
26786  if test x$gcc_cv_as != x; then
26787    $as_echo 'rep movsl
26788	 rep ret
26789	 rep nop
26790	 rep bsf %ecx, %eax
26791	 rep bsr %ecx, %eax
26792	 lock addl %edi, (%eax,%esi)
26793	 lock orl $0, (%esp)' > conftest.s
26794    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26795  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26796  (eval $ac_try) 2>&5
26797  ac_status=$?
26798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26799  test $ac_status = 0; }; }
26800    then
26801	gcc_cv_as_ix86_rep_lock_prefix=yes
26802    else
26803      echo "configure: failed program was" >&5
26804      cat conftest.s >&5
26805    fi
26806    rm -f conftest.o conftest.s
26807  fi
26808fi
26809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26810$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26811if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26812
26813$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26814
26815fi
26816
26817
26818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26819$as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26820if ${gcc_cv_as_ix86_ud2+:} false; then :
26821  $as_echo_n "(cached) " >&6
26822else
26823  gcc_cv_as_ix86_ud2=no
26824  if test x$gcc_cv_as != x; then
26825    $as_echo 'ud2' > conftest.s
26826    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26827  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26828  (eval $ac_try) 2>&5
26829  ac_status=$?
26830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26831  test $ac_status = 0; }; }
26832    then
26833	gcc_cv_as_ix86_ud2=yes
26834    else
26835      echo "configure: failed program was" >&5
26836      cat conftest.s >&5
26837    fi
26838    rm -f conftest.o conftest.s
26839  fi
26840fi
26841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26842$as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26843if test $gcc_cv_as_ix86_ud2 = yes; then
26844
26845$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26846
26847fi
26848
26849
26850    # Enforce 32-bit output with gas and gld.
26851    if test x$gas = xyes; then
26852      as_ix86_gas_32_opt="--32"
26853    fi
26854    if echo "$ld_ver" | grep GNU > /dev/null; then
26855      if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26856        ld_ix86_gld_32_opt="-melf_i386_sol2"
26857      else
26858        ld_ix86_gld_32_opt="-melf_i386"
26859      fi
26860    fi
26861
26862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26863$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26864if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26865  $as_echo_n "(cached) " >&6
26866else
26867  gcc_cv_as_ix86_tlsgdplt=no
26868  if test x$gcc_cv_as != x; then
26869    $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
26870    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26871  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26872  (eval $ac_try) 2>&5
26873  ac_status=$?
26874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26875  test $ac_status = 0; }; }
26876    then
26877	if test x$gcc_cv_ld != x \
26878	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26879	   gcc_cv_as_ix86_tlsgdplt=yes
26880	 fi
26881	 rm -f conftest
26882    else
26883      echo "configure: failed program was" >&5
26884      cat conftest.s >&5
26885    fi
26886    rm -f conftest.o conftest.s
26887  fi
26888fi
26889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26890$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26891if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26892
26893$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26894
26895fi
26896
26897
26898    conftest_s='
26899	.section .tdata,"aw'$tls_section_flag'",@progbits
26900tls_ld:
26901	.section .text,"ax",@progbits
26902	 call    tls_ld@tlsldmplt'
26903
26904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26905$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26906if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26907  $as_echo_n "(cached) " >&6
26908else
26909  gcc_cv_as_ix86_tlsldmplt=no
26910  if test x$gcc_cv_as != x; then
26911    $as_echo "$conftest_s" > conftest.s
26912    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26913  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26914  (eval $ac_try) 2>&5
26915  ac_status=$?
26916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26917  test $ac_status = 0; }; }
26918    then
26919	if test x$gcc_cv_ld != x \
26920	 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26921	   gcc_cv_as_ix86_tlsldmplt=yes
26922	 fi
26923	 rm -f conftest
26924    else
26925      echo "configure: failed program was" >&5
26926      cat conftest.s >&5
26927    fi
26928    rm -f conftest.o conftest.s
26929  fi
26930fi
26931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26932$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26933
26934
26935
26936cat >>confdefs.h <<_ACEOF
26937#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26938_ACEOF
26939
26940
26941    conftest_s='
26942	.section .text,"ax",@progbits
26943        .globl  _start
26944        .type   _start, @function
26945_start:
26946	leal	value@tlsldm(%ebx), %eax
26947	call	___tls_get_addr@plt
26948
26949        .section .tdata,"aw'$tls_section_flag'",@progbits
26950        .type	value, @object
26951value:'
26952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26953$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26954if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26955  $as_echo_n "(cached) " >&6
26956else
26957  gcc_cv_as_ix86_tlsldm=no
26958  if test x$gcc_cv_as != x; then
26959    $as_echo "$conftest_s" > conftest.s
26960    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26961  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26962  (eval $ac_try) 2>&5
26963  ac_status=$?
26964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26965  test $ac_status = 0; }; }
26966    then
26967	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26968	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26969	   if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26970	      || dis conftest 2>/dev/null | grep nop > /dev/null; then
26971	     gcc_cv_as_ix86_tlsldm=yes
26972	   fi
26973	 fi
26974	 rm -f conftest
26975    else
26976      echo "configure: failed program was" >&5
26977      cat conftest.s >&5
26978    fi
26979    rm -f conftest.o conftest.s
26980  fi
26981fi
26982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26983$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26984
26985
26986
26987cat >>confdefs.h <<_ACEOF
26988#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26989_ACEOF
26990
26991
26992    conftest_s='
26993	.data
26994bar:
26995	.byte 1
26996	.text
26997	.global _start
26998_start:
26999	 cmpl $0, bar@GOT
27000	 jmp *_start@GOT'
27001    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27002$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27003if ${gcc_cv_as_ix86_got32x+:} false; then :
27004  $as_echo_n "(cached) " >&6
27005else
27006  gcc_cv_as_ix86_got32x=no
27007  if test x$gcc_cv_as != x; then
27008    $as_echo "$conftest_s" > conftest.s
27009    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27010  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27011  (eval $ac_try) 2>&5
27012  ac_status=$?
27013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27014  test $ac_status = 0; }; }
27015    then
27016	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27017	    && test x$gcc_cv_readelf != x \
27018	    && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27019	       | grep R_386_GOT32X > /dev/null 2>&1 \
27020	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27021	   if $gcc_cv_objdump -dw conftest 2>&1 \
27022	      | grep 0xffffff > /dev/null 2>&1; then
27023	     gcc_cv_as_ix86_got32x=no
27024	   else
27025	     gcc_cv_as_ix86_got32x=yes
27026	   fi
27027	 fi
27028	 rm -f conftest
27029    else
27030      echo "configure: failed program was" >&5
27031      cat conftest.s >&5
27032    fi
27033    rm -f conftest.o conftest.s
27034  fi
27035fi
27036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27037$as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27038
27039
27040
27041cat >>confdefs.h <<_ACEOF
27042#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27043_ACEOF
27044
27045
27046    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27047$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27048if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27049  $as_echo_n "(cached) " >&6
27050else
27051  gcc_cv_as_ix86_gotoff_in_data=no
27052    if test $in_tree_gas = yes; then
27053    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27054  then gcc_cv_as_ix86_gotoff_in_data=yes
27055fi
27056  elif test x$gcc_cv_as != x; then
27057    $as_echo '	.text
27058.L0:
27059	nop
27060	.data
27061	.long .L0@GOTOFF' > conftest.s
27062    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27063  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27064  (eval $ac_try) 2>&5
27065  ac_status=$?
27066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067  test $ac_status = 0; }; }
27068    then
27069	gcc_cv_as_ix86_gotoff_in_data=yes
27070    else
27071      echo "configure: failed program was" >&5
27072      cat conftest.s >&5
27073    fi
27074    rm -f conftest.o conftest.s
27075  fi
27076fi
27077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27078$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27079
27080
27081
27082cat >>confdefs.h <<_ACEOF
27083#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27084_ACEOF
27085
27086
27087    conftest_s='
27088	.section .text,"ax",@progbits
27089	.globl  _start
27090	.type   _start, @function
27091_start:
27092	leal	ld@tlsldm(%ecx), %eax
27093	call	*___tls_get_addr@GOT(%ecx)
27094	leal	gd@tlsgd(%ecx), %eax
27095	call	*___tls_get_addr@GOT(%ecx)
27096
27097	.section .tdata,"aw'$tls_section_flag'",@progbits
27098	.type	ld, @object
27099ld:
27100	.byte 0
27101	.globl  gd
27102	.type	gd, @object
27103gd:
27104	.byte 0'
27105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27106$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27107if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27108  $as_echo_n "(cached) " >&6
27109else
27110  gcc_cv_as_ix86_tls_get_addr_via_got=no
27111  if test x$gcc_cv_as != x; then
27112    $as_echo "$conftest_s" > conftest.s
27113    if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27114  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27115  (eval $ac_try) 2>&5
27116  ac_status=$?
27117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27118  test $ac_status = 0; }; }
27119    then
27120	if test x$gcc_cv_ld != x \
27121	    && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27122	   gcc_cv_as_ix86_tls_get_addr_via_got=yes
27123	 fi
27124	 rm -f conftest
27125    else
27126      echo "configure: failed program was" >&5
27127      cat conftest.s >&5
27128    fi
27129    rm -f conftest.o conftest.s
27130  fi
27131fi
27132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27133$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27134
27135
27136
27137cat >>confdefs.h <<_ACEOF
27138#define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
27139_ACEOF
27140
27141    ;;
27142
27143  ia64*-*-*)
27144    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27145$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27146if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27147  $as_echo_n "(cached) " >&6
27148else
27149  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27150    if test $in_tree_gas = yes; then
27151    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27152  then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27153fi
27154  elif test x$gcc_cv_as != x; then
27155    $as_echo '	.text
27156	addl r15 = @ltoffx(x#), gp
27157	;;
27158	ld8.mov r16 = [r15], x#
27159' > conftest.s
27160    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27161  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27162  (eval $ac_try) 2>&5
27163  ac_status=$?
27164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27165  test $ac_status = 0; }; }
27166    then
27167	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27168    else
27169      echo "configure: failed program was" >&5
27170      cat conftest.s >&5
27171    fi
27172    rm -f conftest.o conftest.s
27173  fi
27174fi
27175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27176$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27177if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27178
27179$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27180
27181fi
27182
27183
27184    ;;
27185
27186  powerpc*-*-*)
27187
27188    case $target in
27189      *-*-darwin*)
27190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27191$as_echo_n "checking assembler for .machine directive support... " >&6; }
27192if ${gcc_cv_as_machine_directive+:} false; then :
27193  $as_echo_n "(cached) " >&6
27194else
27195  gcc_cv_as_machine_directive=no
27196  if test x$gcc_cv_as != x; then
27197    $as_echo '	.machine ppc7400' > conftest.s
27198    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27199  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27200  (eval $ac_try) 2>&5
27201  ac_status=$?
27202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27203  test $ac_status = 0; }; }
27204    then
27205	gcc_cv_as_machine_directive=yes
27206    else
27207      echo "configure: failed program was" >&5
27208      cat conftest.s >&5
27209    fi
27210    rm -f conftest.o conftest.s
27211  fi
27212fi
27213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27214$as_echo "$gcc_cv_as_machine_directive" >&6; }
27215
27216
27217	if test x$gcc_cv_as_machine_directive != xyes; then
27218	  echo "*** This target requires an assembler supporting \".machine\"" >&2
27219	  echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27220	  test x$build = x$target && exit 1
27221	fi
27222        ;;
27223    esac
27224
27225    case $target in
27226      *-*-aix*) conftest_s='	.machine "pwr5"
27227	.csect .text[PR]
27228	mfcr 3,128';;
27229      *-*-darwin*) conftest_s='	.text
27230	mfcr r3,128';;
27231      *) conftest_s='	.machine power4
27232	.text
27233	mfcr 3,128';;
27234    esac
27235
27236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27237$as_echo_n "checking assembler for mfcr field support... " >&6; }
27238if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27239  $as_echo_n "(cached) " >&6
27240else
27241  gcc_cv_as_powerpc_mfcrf=no
27242    if test $in_tree_gas = yes; then
27243    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27244  then gcc_cv_as_powerpc_mfcrf=yes
27245fi
27246  elif test x$gcc_cv_as != x; then
27247    $as_echo "$conftest_s" > conftest.s
27248    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27249  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27250  (eval $ac_try) 2>&5
27251  ac_status=$?
27252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27253  test $ac_status = 0; }; }
27254    then
27255	gcc_cv_as_powerpc_mfcrf=yes
27256    else
27257      echo "configure: failed program was" >&5
27258      cat conftest.s >&5
27259    fi
27260    rm -f conftest.o conftest.s
27261  fi
27262fi
27263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27264$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27265if test $gcc_cv_as_powerpc_mfcrf = yes; then
27266
27267$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27268
27269fi
27270
27271
27272    case $target in
27273      *-*-aix*) conftest_s='	.csect .text[PR]
27274LCF..0:
27275	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27276      *-*-darwin*)
27277	conftest_s='	.text
27278LCF0:
27279	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27280      *) conftest_s='	.text
27281.LCF0:
27282	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27283    esac
27284
27285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27286$as_echo_n "checking assembler for rel16 relocs... " >&6; }
27287if ${gcc_cv_as_powerpc_rel16+:} false; then :
27288  $as_echo_n "(cached) " >&6
27289else
27290  gcc_cv_as_powerpc_rel16=no
27291    if test $in_tree_gas = yes; then
27292    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27293  then gcc_cv_as_powerpc_rel16=yes
27294fi
27295  elif test x$gcc_cv_as != x; then
27296    $as_echo "$conftest_s" > conftest.s
27297    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27298  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27299  (eval $ac_try) 2>&5
27300  ac_status=$?
27301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27302  test $ac_status = 0; }; }
27303    then
27304	gcc_cv_as_powerpc_rel16=yes
27305    else
27306      echo "configure: failed program was" >&5
27307      cat conftest.s >&5
27308    fi
27309    rm -f conftest.o conftest.s
27310  fi
27311fi
27312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27313$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27314if test $gcc_cv_as_powerpc_rel16 = yes; then
27315
27316$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27317
27318fi
27319
27320
27321    case $target in
27322      *-*-aix*) conftest_s='	.machine "pwr7"
27323	.csect .text[PR]
27324	lxvd2x 1,2,3';;
27325      *) conftest_s='	.machine power7
27326	.text
27327	lxvd2x 1,2,3';;
27328    esac
27329
27330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27331$as_echo_n "checking assembler for vector-scalar support... " >&6; }
27332if ${gcc_cv_as_powerpc_vsx+:} false; then :
27333  $as_echo_n "(cached) " >&6
27334else
27335  gcc_cv_as_powerpc_vsx=no
27336    if test $in_tree_gas = yes; then
27337    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27338  then gcc_cv_as_powerpc_vsx=yes
27339fi
27340  elif test x$gcc_cv_as != x; then
27341    $as_echo "$conftest_s" > conftest.s
27342    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27343  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27344  (eval $ac_try) 2>&5
27345  ac_status=$?
27346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27347  test $ac_status = 0; }; }
27348    then
27349	gcc_cv_as_powerpc_vsx=yes
27350    else
27351      echo "configure: failed program was" >&5
27352      cat conftest.s >&5
27353    fi
27354    rm -f conftest.o conftest.s
27355  fi
27356fi
27357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27358$as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27359if test $gcc_cv_as_powerpc_vsx = yes; then
27360
27361$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27362
27363fi
27364
27365
27366    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27367$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27368if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27369  $as_echo_n "(cached) " >&6
27370else
27371  gcc_cv_as_powerpc_gnu_attribute=no
27372    if test $in_tree_gas = yes; then
27373    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27374  then gcc_cv_as_powerpc_gnu_attribute=yes
27375fi
27376  elif test x$gcc_cv_as != x; then
27377    $as_echo '.gnu_attribute 4,1' > conftest.s
27378    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27379  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27380  (eval $ac_try) 2>&5
27381  ac_status=$?
27382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27383  test $ac_status = 0; }; }
27384    then
27385	gcc_cv_as_powerpc_gnu_attribute=yes
27386    else
27387      echo "configure: failed program was" >&5
27388      cat conftest.s >&5
27389    fi
27390    rm -f conftest.o conftest.s
27391  fi
27392fi
27393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27394$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27395if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27396
27397$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27398
27399fi
27400
27401
27402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27403$as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27404if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27405  $as_echo_n "(cached) " >&6
27406else
27407  gcc_cv_as_powerpc_entry_markers=no
27408    if test $in_tree_gas = yes; then
27409    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27410  then gcc_cv_as_powerpc_entry_markers=yes
27411fi
27412  elif test x$gcc_cv_as != x; then
27413    $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27414    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27415  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27416  (eval $ac_try) 2>&5
27417  ac_status=$?
27418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27419  test $ac_status = 0; }; }
27420    then
27421	gcc_cv_as_powerpc_entry_markers=yes
27422    else
27423      echo "configure: failed program was" >&5
27424      cat conftest.s >&5
27425    fi
27426    rm -f conftest.o conftest.s
27427  fi
27428fi
27429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27430$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27431if test $gcc_cv_as_powerpc_entry_markers = yes; then
27432
27433$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27434
27435fi
27436
27437
27438    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27439$as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27440if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27441  $as_echo_n "(cached) " >&6
27442else
27443  gcc_cv_as_powerpc_pltseq_markers=no
27444    if test $in_tree_gas = yes; then
27445    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27446  then gcc_cv_as_powerpc_pltseq_markers=yes
27447fi
27448  elif test x$gcc_cv_as != x; then
27449    $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27450    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27451  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27452  (eval $ac_try) 2>&5
27453  ac_status=$?
27454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27455  test $ac_status = 0; }; }
27456    then
27457	gcc_cv_as_powerpc_pltseq_markers=yes
27458    else
27459      echo "configure: failed program was" >&5
27460      cat conftest.s >&5
27461    fi
27462    rm -f conftest.o conftest.s
27463  fi
27464fi
27465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27466$as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27467if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27468
27469$as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27470
27471fi
27472
27473
27474    case $target in
27475      *-*-aix*)
27476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27477$as_echo_n "checking assembler for AIX .ref support... " >&6; }
27478if ${gcc_cv_as_aix_ref+:} false; then :
27479  $as_echo_n "(cached) " >&6
27480else
27481  gcc_cv_as_aix_ref=no
27482    if test $in_tree_gas = yes; then
27483    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27484  then gcc_cv_as_aix_ref=yes
27485fi
27486  elif test x$gcc_cv_as != x; then
27487    $as_echo '	.csect stuff[rw]
27488	     stuff:
27489		.long 1
27490		.extern sym
27491		.ref sym
27492	  ' > conftest.s
27493    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27494  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27495  (eval $ac_try) 2>&5
27496  ac_status=$?
27497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27498  test $ac_status = 0; }; }
27499    then
27500	gcc_cv_as_aix_ref=yes
27501    else
27502      echo "configure: failed program was" >&5
27503      cat conftest.s >&5
27504    fi
27505    rm -f conftest.o conftest.s
27506  fi
27507fi
27508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27509$as_echo "$gcc_cv_as_aix_ref" >&6; }
27510if test $gcc_cv_as_aix_ref = yes; then
27511
27512$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27513
27514fi
27515
27516
27517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27518$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27519if ${gcc_cv_as_aix_dwloc+:} false; then :
27520  $as_echo_n "(cached) " >&6
27521else
27522  gcc_cv_as_aix_dwloc=no
27523    if test $in_tree_gas = yes; then
27524    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27525  then gcc_cv_as_aix_dwloc=yes
27526fi
27527  elif test x$gcc_cv_as != x; then
27528    $as_echo '	.dwsect 0xA0000
27529	Lframe..0:
27530		.vbyte 4,Lframe..0
27531	  ' > conftest.s
27532    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27533  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27534  (eval $ac_try) 2>&5
27535  ac_status=$?
27536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27537  test $ac_status = 0; }; }
27538    then
27539	gcc_cv_as_aix_dwloc=yes
27540    else
27541      echo "configure: failed program was" >&5
27542      cat conftest.s >&5
27543    fi
27544    rm -f conftest.o conftest.s
27545  fi
27546fi
27547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27548$as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27549if test $gcc_cv_as_aix_dwloc = yes; then
27550
27551$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27552
27553fi
27554
27555	;;
27556    esac
27557    ;;
27558
27559  mips*-*-*)
27560    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27561$as_echo_n "checking assembler for explicit relocation support... " >&6; }
27562if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27563  $as_echo_n "(cached) " >&6
27564else
27565  gcc_cv_as_mips_explicit_relocs=no
27566    if test $in_tree_gas = yes; then
27567    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27568  then gcc_cv_as_mips_explicit_relocs=yes
27569fi
27570  elif test x$gcc_cv_as != x; then
27571    $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
27572    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27573  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27574  (eval $ac_try) 2>&5
27575  ac_status=$?
27576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27577  test $ac_status = 0; }; }
27578    then
27579	gcc_cv_as_mips_explicit_relocs=yes
27580    else
27581      echo "configure: failed program was" >&5
27582      cat conftest.s >&5
27583    fi
27584    rm -f conftest.o conftest.s
27585  fi
27586fi
27587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27588$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27589if test $gcc_cv_as_mips_explicit_relocs = yes; then
27590  if test x$target_cpu_default = x
27591       then target_cpu_default=MASK_EXPLICIT_RELOCS
27592       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27593       fi
27594fi
27595
27596
27597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27598$as_echo_n "checking assembler for -mno-shared support... " >&6; }
27599if ${gcc_cv_as_mips_no_shared+:} false; then :
27600  $as_echo_n "(cached) " >&6
27601else
27602  gcc_cv_as_mips_no_shared=no
27603    if test $in_tree_gas = yes; then
27604    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27605  then gcc_cv_as_mips_no_shared=yes
27606fi
27607  elif test x$gcc_cv_as != x; then
27608    $as_echo 'nop' > conftest.s
27609    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27610  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27611  (eval $ac_try) 2>&5
27612  ac_status=$?
27613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27614  test $ac_status = 0; }; }
27615    then
27616	gcc_cv_as_mips_no_shared=yes
27617    else
27618      echo "configure: failed program was" >&5
27619      cat conftest.s >&5
27620    fi
27621    rm -f conftest.o conftest.s
27622  fi
27623fi
27624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27625$as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27626if test $gcc_cv_as_mips_no_shared = yes; then
27627
27628$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27629
27630fi
27631
27632
27633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27634$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27635if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27636  $as_echo_n "(cached) " >&6
27637else
27638  gcc_cv_as_mips_gnu_attribute=no
27639    if test $in_tree_gas = yes; then
27640    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27641  then gcc_cv_as_mips_gnu_attribute=yes
27642fi
27643  elif test x$gcc_cv_as != x; then
27644    $as_echo '.gnu_attribute 4,1' > conftest.s
27645    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27646  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27647  (eval $ac_try) 2>&5
27648  ac_status=$?
27649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27650  test $ac_status = 0; }; }
27651    then
27652	gcc_cv_as_mips_gnu_attribute=yes
27653    else
27654      echo "configure: failed program was" >&5
27655      cat conftest.s >&5
27656    fi
27657    rm -f conftest.o conftest.s
27658  fi
27659fi
27660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27661$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27662if test $gcc_cv_as_mips_gnu_attribute = yes; then
27663
27664$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27665
27666fi
27667
27668
27669    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27670$as_echo_n "checking assembler for .module support... " >&6; }
27671if ${gcc_cv_as_mips_dot_module+:} false; then :
27672  $as_echo_n "(cached) " >&6
27673else
27674  gcc_cv_as_mips_dot_module=no
27675  if test x$gcc_cv_as != x; then
27676    $as_echo '.module mips2
27677       .module fp=xx' > conftest.s
27678    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27679  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27680  (eval $ac_try) 2>&5
27681  ac_status=$?
27682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27683  test $ac_status = 0; }; }
27684    then
27685	gcc_cv_as_mips_dot_module=yes
27686    else
27687      echo "configure: failed program was" >&5
27688      cat conftest.s >&5
27689    fi
27690    rm -f conftest.o conftest.s
27691  fi
27692fi
27693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27694$as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27695if test $gcc_cv_as_mips_dot_module = yes; then
27696
27697$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27698
27699fi
27700
27701    if test x$gcc_cv_as_mips_dot_module = xno \
27702       && test x$with_fp_32 != x; then
27703      as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27704    fi
27705
27706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27707$as_echo_n "checking assembler for .micromips support... " >&6; }
27708if ${gcc_cv_as_micromips_support+:} false; then :
27709  $as_echo_n "(cached) " >&6
27710else
27711  gcc_cv_as_micromips_support=no
27712  if test x$gcc_cv_as != x; then
27713    $as_echo '.set micromips' > conftest.s
27714    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27715  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27716  (eval $ac_try) 2>&5
27717  ac_status=$?
27718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27719  test $ac_status = 0; }; }
27720    then
27721	gcc_cv_as_micromips_support=yes
27722    else
27723      echo "configure: failed program was" >&5
27724      cat conftest.s >&5
27725    fi
27726    rm -f conftest.o conftest.s
27727  fi
27728fi
27729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27730$as_echo "$gcc_cv_as_micromips_support" >&6; }
27731if test $gcc_cv_as_micromips_support = yes; then
27732
27733$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27734
27735fi
27736
27737
27738    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27739$as_echo_n "checking assembler for .dtprelword support... " >&6; }
27740if ${gcc_cv_as_mips_dtprelword+:} false; then :
27741  $as_echo_n "(cached) " >&6
27742else
27743  gcc_cv_as_mips_dtprelword=no
27744    if test $in_tree_gas = yes; then
27745    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27746  then gcc_cv_as_mips_dtprelword=yes
27747fi
27748  elif test x$gcc_cv_as != x; then
27749    $as_echo '.section .tdata,"awT",@progbits
27750x:
27751	.word 2
27752	.text
27753	.dtprelword x+0x8000' > conftest.s
27754    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27755  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27756  (eval $ac_try) 2>&5
27757  ac_status=$?
27758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27759  test $ac_status = 0; }; }
27760    then
27761	gcc_cv_as_mips_dtprelword=yes
27762    else
27763      echo "configure: failed program was" >&5
27764      cat conftest.s >&5
27765    fi
27766    rm -f conftest.o conftest.s
27767  fi
27768fi
27769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27770$as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27771if test $gcc_cv_as_mips_dtprelword = yes; then
27772
27773$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27774
27775fi
27776
27777
27778    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27779$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27780if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27781  $as_echo_n "(cached) " >&6
27782else
27783  gcc_cv_as_mips_dspr1_mult=no
27784  if test x$gcc_cv_as != x; then
27785    $as_echo '	.set	mips32r2
27786	.set	nodspr2
27787	.set	dsp
27788	madd	$ac3,$4,$5
27789	maddu	$ac3,$4,$5
27790	msub	$ac3,$4,$5
27791	msubu	$ac3,$4,$5
27792	mult	$ac3,$4,$5
27793	multu	$ac3,$4,$5' > conftest.s
27794    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27795  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27796  (eval $ac_try) 2>&5
27797  ac_status=$?
27798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27799  test $ac_status = 0; }; }
27800    then
27801	gcc_cv_as_mips_dspr1_mult=yes
27802    else
27803      echo "configure: failed program was" >&5
27804      cat conftest.s >&5
27805    fi
27806    rm -f conftest.o conftest.s
27807  fi
27808fi
27809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27810$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27811if test $gcc_cv_as_mips_dspr1_mult = yes; then
27812
27813$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27814
27815fi
27816
27817
27818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27819$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27820    gcc_cv_as_ld_jalr_reloc=no
27821    if test $gcc_cv_as_mips_explicit_relocs = yes; then
27822      if test $in_tree_ld = yes ; then
27823        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 \
27824           && test $in_tree_ld_is_elf = yes; then
27825          gcc_cv_as_ld_jalr_reloc=yes
27826        fi
27827      elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27828        echo '	.ent x' > conftest.s
27829        echo 'x:	lw $2,%got_disp(y)($3)' >> conftest.s
27830        echo '	lw $25,%call16(y)($28)' >> conftest.s
27831        echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
27832        echo '1:	jalr $25' >> conftest.s
27833        echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
27834        echo '1:	jalr $25' >> conftest.s
27835        echo '	.end x' >> conftest.s
27836        if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27837           && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27838	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27839	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27840            gcc_cv_as_ld_jalr_reloc=yes
27841	  fi
27842        fi
27843        rm -f conftest.*
27844      fi
27845    fi
27846    if test $gcc_cv_as_ld_jalr_reloc = yes; then
27847      if test x$target_cpu_default = x; then
27848        target_cpu_default=MASK_RELAX_PIC_CALLS
27849      else
27850        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27851      fi
27852    fi
27853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27854$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27855
27856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27857$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27858if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27859  $as_echo_n "(cached) " >&6
27860else
27861  gcc_cv_ld_mips_personality_relaxation=no
27862       if test $in_tree_ld = yes ; then
27863	 if test "$gcc_cv_gld_major_version" -eq 2 \
27864		 -a "$gcc_cv_gld_minor_version" -ge 21 \
27865		 -o "$gcc_cv_gld_major_version" -gt 2; then
27866	   gcc_cv_ld_mips_personality_relaxation=yes
27867	 fi
27868       elif test x$gcc_cv_as != x \
27869       	    	 -a x$gcc_cv_ld != x \
27870		 -a x$gcc_cv_readelf != x ; then
27871	 cat > conftest.s <<EOF
27872	.cfi_startproc
27873	.cfi_personality 0x80,indirect_ptr
27874	.ent test
27875test:
27876	nop
27877	.end test
27878	.cfi_endproc
27879
27880	.section .data,"aw",@progbits
27881indirect_ptr:
27882	.dc.a personality
27883EOF
27884	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27885	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27886	   if $gcc_cv_readelf -d conftest 2>&1 \
27887	      | grep TEXTREL > /dev/null 2>&1; then
27888	     :
27889	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
27890	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27891	     :
27892	   else
27893	     gcc_cv_ld_mips_personality_relaxation=yes
27894	   fi
27895	 fi
27896       fi
27897       rm -f conftest.s conftest.o conftest
27898fi
27899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27900$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27901    if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27902
27903$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27904
27905    fi
27906
27907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27908$as_echo_n "checking assembler for -mnan= support... " >&6; }
27909if ${gcc_cv_as_mips_nan+:} false; then :
27910  $as_echo_n "(cached) " >&6
27911else
27912  gcc_cv_as_mips_nan=no
27913  if test x$gcc_cv_as != x; then
27914    $as_echo '' > conftest.s
27915    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27916  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27917  (eval $ac_try) 2>&5
27918  ac_status=$?
27919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27920  test $ac_status = 0; }; }
27921    then
27922	gcc_cv_as_mips_nan=yes
27923    else
27924      echo "configure: failed program was" >&5
27925      cat conftest.s >&5
27926    fi
27927    rm -f conftest.o conftest.s
27928  fi
27929fi
27930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27931$as_echo "$gcc_cv_as_mips_nan" >&6; }
27932if test $gcc_cv_as_mips_nan = yes; then
27933
27934$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27935
27936fi
27937
27938    if test x$gcc_cv_as_mips_nan = xno \
27939       && test x$with_nan != x; then
27940      as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27941    fi
27942    ;;
27943    msp430-*-*)
27944    # Earlier GAS versions generically support .gnu_attribute, but the
27945    # msp430 assembler will not do anything with it.
27946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27947$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27948if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27949  $as_echo_n "(cached) " >&6
27950else
27951  gcc_cv_as_msp430_gnu_attribute=no
27952    if test $in_tree_gas = yes; then
27953    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27954  then gcc_cv_as_msp430_gnu_attribute=yes
27955fi
27956  elif test x$gcc_cv_as != x; then
27957    $as_echo '.gnu_attribute 4,1' > conftest.s
27958    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27959  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27960  (eval $ac_try) 2>&5
27961  ac_status=$?
27962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27963  test $ac_status = 0; }; }
27964    then
27965	gcc_cv_as_msp430_gnu_attribute=yes
27966    else
27967      echo "configure: failed program was" >&5
27968      cat conftest.s >&5
27969    fi
27970    rm -f conftest.o conftest.s
27971  fi
27972fi
27973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27974$as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27975if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27976
27977$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27978
27979fi
27980
27981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27982$as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27983if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27984  $as_echo_n "(cached) " >&6
27985else
27986  gcc_cv_as_msp430_mspabi_attribute=no
27987    if test $in_tree_gas = yes; then
27988    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27989  then gcc_cv_as_msp430_mspabi_attribute=yes
27990fi
27991  elif test x$gcc_cv_as != x; then
27992    $as_echo '.mspabi_attribute 4,1' > conftest.s
27993    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27994  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27995  (eval $ac_try) 2>&5
27996  ac_status=$?
27997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27998  test $ac_status = 0; }; }
27999    then
28000	gcc_cv_as_msp430_mspabi_attribute=yes
28001    else
28002      echo "configure: failed program was" >&5
28003      cat conftest.s >&5
28004    fi
28005    rm -f conftest.o conftest.s
28006  fi
28007fi
28008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28009$as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28010if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28011
28012$as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28013
28014fi
28015
28016    if test x$enable_newlib_nano_formatted_io = xyes; then
28017
28018$as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28019
28020      fi
28021    ;;
28022    nios2-*-*)
28023    # Versions 2.33 and earlier lacked support for the %gotoff relocation
28024    # syntax that is documented in the ABI specification.
28025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28026$as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28027if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28028  $as_echo_n "(cached) " >&6
28029else
28030  gcc_cv_as_nios2_gotoff_relocation=no
28031  if test x$gcc_cv_as != x; then
28032    $as_echo '	.extern foo
28033	.data
28034	.long %gotoff(foo)' > conftest.s
28035    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28036  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28037  (eval $ac_try) 2>&5
28038  ac_status=$?
28039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28040  test $ac_status = 0; }; }
28041    then
28042	gcc_cv_as_nios2_gotoff_relocation=yes
28043    else
28044      echo "configure: failed program was" >&5
28045      cat conftest.s >&5
28046    fi
28047    rm -f conftest.o conftest.s
28048  fi
28049fi
28050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28051$as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28052if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28053
28054$as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28055
28056fi
28057
28058    ;;
28059    riscv*-*-*)
28060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28061$as_echo_n "checking assembler for .attribute support... " >&6; }
28062if ${gcc_cv_as_riscv_attribute+:} false; then :
28063  $as_echo_n "(cached) " >&6
28064else
28065  gcc_cv_as_riscv_attribute=no
28066    if test $in_tree_gas = yes; then
28067    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28068  then gcc_cv_as_riscv_attribute=yes
28069fi
28070  elif test x$gcc_cv_as != x; then
28071    $as_echo '.attribute stack_align,4' > conftest.s
28072    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28073  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28074  (eval $ac_try) 2>&5
28075  ac_status=$?
28076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28077  test $ac_status = 0; }; }
28078    then
28079	gcc_cv_as_riscv_attribute=yes
28080    else
28081      echo "configure: failed program was" >&5
28082      cat conftest.s >&5
28083    fi
28084    rm -f conftest.o conftest.s
28085  fi
28086fi
28087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28088$as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28089if test $gcc_cv_as_riscv_attribute = yes; then
28090
28091$as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28092
28093fi
28094
28095    ;;
28096    s390*-*-*)
28097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28098$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28099if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28100  $as_echo_n "(cached) " >&6
28101else
28102  gcc_cv_as_s390_gnu_attribute=no
28103    if test $in_tree_gas = yes; then
28104    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28105  then gcc_cv_as_s390_gnu_attribute=yes
28106fi
28107  elif test x$gcc_cv_as != x; then
28108    $as_echo '.gnu_attribute 8,1' > conftest.s
28109    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28110  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28111  (eval $ac_try) 2>&5
28112  ac_status=$?
28113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28114  test $ac_status = 0; }; }
28115    then
28116	gcc_cv_as_s390_gnu_attribute=yes
28117    else
28118      echo "configure: failed program was" >&5
28119      cat conftest.s >&5
28120    fi
28121    rm -f conftest.o conftest.s
28122  fi
28123fi
28124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28125$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28126if test $gcc_cv_as_s390_gnu_attribute = yes; then
28127
28128$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28129
28130fi
28131
28132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28133$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28134if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28135  $as_echo_n "(cached) " >&6
28136else
28137  gcc_cv_as_s390_machine_machinemode=no
28138    if test $in_tree_gas = yes; then
28139    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28140  then gcc_cv_as_s390_machine_machinemode=yes
28141fi
28142  elif test x$gcc_cv_as != x; then
28143    $as_echo '	.machinemode push
28144	.machinemode pop
28145	.machine push
28146	.machine pop' > conftest.s
28147    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28148  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28149  (eval $ac_try) 2>&5
28150  ac_status=$?
28151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28152  test $ac_status = 0; }; }
28153    then
28154	gcc_cv_as_s390_machine_machinemode=yes
28155    else
28156      echo "configure: failed program was" >&5
28157      cat conftest.s >&5
28158    fi
28159    rm -f conftest.o conftest.s
28160  fi
28161fi
28162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28163$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28164if test $gcc_cv_as_s390_machine_machinemode = yes; then
28165
28166$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28167
28168fi
28169
28170    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28171$as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28172if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28173  $as_echo_n "(cached) " >&6
28174else
28175  gcc_cv_as_s390_architecture_modifiers=no
28176    if test $in_tree_gas = yes; then
28177    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28178  then gcc_cv_as_s390_architecture_modifiers=yes
28179fi
28180  elif test x$gcc_cv_as != x; then
28181    $as_echo '	.machine z13+vx ' > conftest.s
28182    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28183  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28184  (eval $ac_try) 2>&5
28185  ac_status=$?
28186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28187  test $ac_status = 0; }; }
28188    then
28189	gcc_cv_as_s390_architecture_modifiers=yes
28190    else
28191      echo "configure: failed program was" >&5
28192      cat conftest.s >&5
28193    fi
28194    rm -f conftest.o conftest.s
28195  fi
28196fi
28197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28198$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28199if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28200
28201$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28202
28203fi
28204
28205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28206$as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28207if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28208  $as_echo_n "(cached) " >&6
28209else
28210  gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28211    if test $in_tree_gas = yes; then
28212    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28213  then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28214fi
28215  elif test x$gcc_cv_as != x; then
28216    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
28217    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28218  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28219  (eval $ac_try) 2>&5
28220  ac_status=$?
28221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28222  test $ac_status = 0; }; }
28223    then
28224	gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28225    else
28226      echo "configure: failed program was" >&5
28227      cat conftest.s >&5
28228    fi
28229    rm -f conftest.o conftest.s
28230  fi
28231fi
28232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28233$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28234if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28235
28236$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28237
28238fi
28239
28240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28241$as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28242if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28243  $as_echo_n "(cached) " >&6
28244else
28245  gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28246  if test x$gcc_cv_as != x; then
28247    $as_echo '	vl %v24,0(%r15),3 ' > conftest.s
28248    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28249  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28250  (eval $ac_try) 2>&5
28251  ac_status=$?
28252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28253  test $ac_status = 0; }; }
28254    then
28255	gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28256    else
28257      echo "configure: failed program was" >&5
28258      cat conftest.s >&5
28259    fi
28260    rm -f conftest.o conftest.s
28261  fi
28262fi
28263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28264$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28265if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28266
28267$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28268
28269fi
28270
28271
28272    ;;
28273esac
28274
28275# Mips and HP-UX need the GNU assembler.
28276# Linux on IA64 might be able to use the Intel assembler.
28277
28278case "$target" in
28279  mips*-*-* | *-*-hpux* )
28280    if test x$gas_flag = xyes \
28281       || test x"$host" != x"$build" \
28282       || test ! -x "$gcc_cv_as" \
28283       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28284      :
28285    else
28286      echo "*** This configuration requires the GNU assembler" >&2
28287      exit 1
28288    fi
28289    ;;
28290esac
28291
28292# ??? Not all targets support dwarf2 debug_line, even within a version
28293# of gas.  Moreover, we need to emit a valid instruction to trigger any
28294# info to the output file.  So, as supported targets are added to gas 2.11,
28295# add some instruction here to (also) show we expect this might work.
28296# ??? Once 2.11 is released, probably need to add first known working
28297# version to the per-target configury.
28298case "$cpu_type" in
28299  aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28300  | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28301  | tilegx | tilepro | visium | xstormy16 | xtensa)
28302    insn="nop"
28303    ;;
28304  ia64 | s390)
28305    insn="nop 0"
28306    ;;
28307  mmix)
28308    insn="swym 0"
28309    ;;
28310esac
28311if test x"$insn" != x; then
28312 conftest_s="\
28313	.file 1 \"conftest.s\"
28314	.loc 1 3 0
28315	$insn"
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28317$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28318if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28319  $as_echo_n "(cached) " >&6
28320else
28321  gcc_cv_as_dwarf2_debug_line=no
28322    if test $in_tree_gas = yes; then
28323    if test $in_tree_gas_is_elf = yes \
28324  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28325  then gcc_cv_as_dwarf2_debug_line=yes
28326fi
28327  elif test x$gcc_cv_as != x; then
28328    $as_echo "$conftest_s" > conftest.s
28329    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28330  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28331  (eval $ac_try) 2>&5
28332  ac_status=$?
28333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28334  test $ac_status = 0; }; }
28335    then
28336	if test x$gcc_cv_objdump != x \
28337   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28338      | grep debug_line > /dev/null 2>&1; then
28339     gcc_cv_as_dwarf2_debug_line=yes
28340   elif test x$gcc_cv_otool != x \
28341   && $gcc_cv_otool -l conftest.o 2> /dev/null \
28342      | grep debug_line > /dev/null 2>&1; then
28343     gcc_cv_as_dwarf2_debug_line=yes
28344   fi
28345    else
28346      echo "configure: failed program was" >&5
28347      cat conftest.s >&5
28348    fi
28349    rm -f conftest.o conftest.s
28350  fi
28351fi
28352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28353$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28354
28355
28356
28357# The .debug_line file table must be in the exact order that
28358# we specified the files, since these indices are also used
28359# by DW_AT_decl_file.  Approximate this test by testing if
28360# the assembler bitches if the same index is assigned twice.
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28362$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28363if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28364  $as_echo_n "(cached) " >&6
28365else
28366  gcc_cv_as_dwarf2_file_buggy=no
28367  if test x$gcc_cv_as != x; then
28368    $as_echo '	.file 1 "foo.s"
28369	.file 1 "bar.s"' > conftest.s
28370    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28371  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28372  (eval $ac_try) 2>&5
28373  ac_status=$?
28374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28375  test $ac_status = 0; }; }
28376    then
28377	gcc_cv_as_dwarf2_file_buggy=yes
28378    else
28379      echo "configure: failed program was" >&5
28380      cat conftest.s >&5
28381    fi
28382    rm -f conftest.o conftest.s
28383  fi
28384fi
28385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28386$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28387
28388
28389
28390 if test $gcc_cv_as_dwarf2_debug_line = yes \
28391 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28392
28393$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28394
28395
28396    if test $gcc_cv_as_leb128 = yes; then
28397	conftest_s="\
28398	.file 1 \"conftest.s\"
28399	.loc 1 3 0 view .LVU1
28400	$insn
28401	.data
28402	.uleb128 .LVU1
28403	.uleb128 .LVU1
28404"
28405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28406$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28407if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28408  $as_echo_n "(cached) " >&6
28409else
28410  gcc_cv_as_dwarf2_debug_view=no
28411    if test $in_tree_gas = yes; then
28412    if test $in_tree_gas_is_elf = yes \
28413  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28414  then gcc_cv_as_dwarf2_debug_view=yes
28415fi
28416  elif test x$gcc_cv_as != x; then
28417    $as_echo "$conftest_s" > conftest.s
28418    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28419  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28420  (eval $ac_try) 2>&5
28421  ac_status=$?
28422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28423  test $ac_status = 0; }; }
28424    then
28425	gcc_cv_as_dwarf2_debug_view=yes
28426    else
28427      echo "configure: failed program was" >&5
28428      cat conftest.s >&5
28429    fi
28430    rm -f conftest.o conftest.s
28431  fi
28432fi
28433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28434$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28435if test $gcc_cv_as_dwarf2_debug_view = yes; then
28436
28437$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28438
28439fi
28440
28441    fi
28442 fi
28443
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28445$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28446if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28447  $as_echo_n "(cached) " >&6
28448else
28449  gcc_cv_as_gdwarf2_flag=no
28450    if test $in_tree_gas = yes; then
28451    if test $in_tree_gas_is_elf = yes \
28452  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28453  then gcc_cv_as_gdwarf2_flag=yes
28454fi
28455  elif test x$gcc_cv_as != x; then
28456    $as_echo "$insn" > conftest.s
28457    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28458  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28459  (eval $ac_try) 2>&5
28460  ac_status=$?
28461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28462  test $ac_status = 0; }; }
28463    then
28464	gcc_cv_as_gdwarf2_flag=yes
28465    else
28466      echo "configure: failed program was" >&5
28467      cat conftest.s >&5
28468    fi
28469    rm -f conftest.o conftest.s
28470  fi
28471fi
28472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28473$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28474if test $gcc_cv_as_gdwarf2_flag = yes; then
28475
28476$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28477
28478fi
28479
28480
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28482$as_echo_n "checking assembler for --gstabs option... " >&6; }
28483if ${gcc_cv_as_gstabs_flag+:} false; then :
28484  $as_echo_n "(cached) " >&6
28485else
28486  gcc_cv_as_gstabs_flag=no
28487    if test $in_tree_gas = yes; then
28488    if test $in_tree_gas_is_elf = yes \
28489  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28490  then gcc_cv_as_gstabs_flag=yes
28491fi
28492  elif test x$gcc_cv_as != x; then
28493    $as_echo "$insn" > conftest.s
28494    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28495  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28496  (eval $ac_try) 2>&5
28497  ac_status=$?
28498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28499  test $ac_status = 0; }; }
28500    then
28501	gcc_cv_as_gstabs_flag=yes
28502    else
28503      echo "configure: failed program was" >&5
28504      cat conftest.s >&5
28505    fi
28506    rm -f conftest.o conftest.s
28507  fi
28508fi
28509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28510$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28511if test $gcc_cv_as_gstabs_flag = yes; then
28512
28513$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28514
28515fi
28516
28517
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28519$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28520if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28521  $as_echo_n "(cached) " >&6
28522else
28523  gcc_cv_as_debug_prefix_map_flag=no
28524    if test $in_tree_gas = yes; then
28525    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28526  then gcc_cv_as_debug_prefix_map_flag=yes
28527fi
28528  elif test x$gcc_cv_as != x; then
28529    $as_echo "$insn" > conftest.s
28530    if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28531  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28532  (eval $ac_try) 2>&5
28533  ac_status=$?
28534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28535  test $ac_status = 0; }; }
28536    then
28537	gcc_cv_as_debug_prefix_map_flag=yes
28538    else
28539      echo "configure: failed program was" >&5
28540      cat conftest.s >&5
28541    fi
28542    rm -f conftest.o conftest.s
28543  fi
28544fi
28545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28546$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28547if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28548
28549$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28550
28551fi
28552
28553fi
28554
28555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28556$as_echo_n "checking assembler for compressed debug sections... " >&6; }
28557if ${gcc_cv_as_compress_debug+:} false; then :
28558  $as_echo_n "(cached) " >&6
28559else
28560  gcc_cv_as_compress_debug=no
28561  if test x$gcc_cv_as != x; then
28562    $as_echo '' > conftest.s
28563    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28564  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28565  (eval $ac_try) 2>&5
28566  ac_status=$?
28567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28568  test $ac_status = 0; }; }
28569    then
28570	# gas compiled without zlib cannot compress debug sections and warns
28571   # about it, but still exits successfully.  So check for this, too.
28572   if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28573   then
28574     gcc_cv_as_compress_debug=0
28575   # Since binutils 2.26, gas supports --compress-debug-sections=type,
28576   # defaulting to the ELF gABI format.
28577   elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28578   then
28579     gcc_cv_as_compress_debug=2
28580     gcc_cv_as_compress_debug_option="--compress-debug-sections"
28581     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28582   # Before binutils 2.26, gas only supported --compress-debug-options and
28583   # emitted the traditional GNU format.
28584   elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28585   then
28586     gcc_cv_as_compress_debug=1
28587     gcc_cv_as_compress_debug_option="--compress-debug-sections"
28588     gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28589   else
28590     gcc_cv_as_compress_debug=0
28591   fi
28592    else
28593      echo "configure: failed program was" >&5
28594      cat conftest.s >&5
28595    fi
28596    rm -f conftest.o conftest.s
28597  fi
28598fi
28599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28600$as_echo "$gcc_cv_as_compress_debug" >&6; }
28601
28602
28603
28604cat >>confdefs.h <<_ACEOF
28605#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28606_ACEOF
28607
28608
28609cat >>confdefs.h <<_ACEOF
28610#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28611_ACEOF
28612
28613
28614cat >>confdefs.h <<_ACEOF
28615#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28616_ACEOF
28617
28618
28619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28620$as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28621if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28622  $as_echo_n "(cached) " >&6
28623else
28624  gcc_cv_as_lcomm_with_alignment=no
28625  if test x$gcc_cv_as != x; then
28626    $as_echo '.lcomm bar,4,16' > conftest.s
28627    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28628  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28629  (eval $ac_try) 2>&5
28630  ac_status=$?
28631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28632  test $ac_status = 0; }; }
28633    then
28634	gcc_cv_as_lcomm_with_alignment=yes
28635    else
28636      echo "configure: failed program was" >&5
28637      cat conftest.s >&5
28638    fi
28639    rm -f conftest.o conftest.s
28640  fi
28641fi
28642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28643$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28644if test $gcc_cv_as_lcomm_with_alignment = yes; then
28645
28646$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28647
28648fi
28649
28650
28651if test x$with_sysroot = x && test x$host = x$target \
28652   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28653   && test "$prefix" != "NONE"; then
28654
28655cat >>confdefs.h <<_ACEOF
28656#define PREFIX_INCLUDE_DIR "$prefix/include"
28657_ACEOF
28658
28659fi
28660
28661# Determine the version of glibc, if any, used on the target.
28662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28663$as_echo_n "checking for target glibc version... " >&6; }
28664
28665# Check whether --with-glibc-version was given.
28666if test "${with_glibc_version+set}" = set; then :
28667  withval=$with_glibc_version;
28668if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28669  glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28670  glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28671else
28672  as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28673fi
28674else
28675
28676glibc_version_major=0
28677glibc_version_minor=0
28678if test -f $target_header_dir/features.h \
28679  && glibc_version_major_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+[0-9]' $target_header_dir/features.h` \
28680  && glibc_version_minor_define=`$EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+[0-9]' $target_header_dir/features.h`; then
28681  glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ 	]*//'`
28682  glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ 	]*//'`
28683fi
28684fi
28685
28686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28687$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28688
28689cat >>confdefs.h <<_ACEOF
28690#define TARGET_GLIBC_MAJOR $glibc_version_major
28691_ACEOF
28692
28693
28694cat >>confdefs.h <<_ACEOF
28695#define TARGET_GLIBC_MINOR $glibc_version_minor
28696_ACEOF
28697
28698
28699# Check whether --enable-gnu-unique-object was given.
28700if test "${enable_gnu_unique_object+set}" = set; then :
28701  enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28702    yes | no) ;;
28703    *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28704Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28705  esac
28706else
28707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28708$as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28709if ${gcc_cv_as_gnu_unique_object+:} false; then :
28710  $as_echo_n "(cached) " >&6
28711else
28712  gcc_cv_as_gnu_unique_object=no
28713    if test $in_tree_gas = yes; then
28714    if test $in_tree_gas_is_elf = yes \
28715  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28716  then gcc_cv_as_gnu_unique_object=yes
28717fi
28718  elif test x$gcc_cv_as != x; then
28719    $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28720    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28721  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28722  (eval $ac_try) 2>&5
28723  ac_status=$?
28724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28725  test $ac_status = 0; }; }
28726    then
28727	gcc_cv_as_gnu_unique_object=yes
28728    else
28729      echo "configure: failed program was" >&5
28730      cat conftest.s >&5
28731    fi
28732    rm -f conftest.o conftest.s
28733  fi
28734fi
28735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28736$as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28737if test $gcc_cv_as_gnu_unique_object = yes; then
28738  # We need to unquote above to to use the definition from config.gcc.
28739# Also check for ld.so support, i.e. glibc 2.11 or higher.
28740
28741if test $glibc_version_major -gt 2 \
28742  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28743  enable_gnu_unique_object=yes
28744fi
28745
28746fi
28747
28748fi
28749
28750if test x$enable_gnu_unique_object = xyes; then
28751
28752$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28753
28754fi
28755
28756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28757$as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28758if ${gcc_cv_as_line_zero+:} false; then :
28759  $as_echo_n "(cached) " >&6
28760else
28761  gcc_cv_as_line_zero=no
28762  if test $in_tree_gas = yes; then
28763    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28764  then gcc_cv_as_line_zero=yes
28765fi
28766  elif test "x$gcc_cv_as" != x; then
28767    { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28768    if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28769  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28770  (eval $ac_try) 2>&5
28771  ac_status=$?
28772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28773  test $ac_status = 0; }; } &&
28774       test "x`cat conftest.out`" = x
28775    then
28776      gcc_cv_as_line_zero=yes
28777    else
28778      echo "configure: failed program was" >&5
28779      cat conftest.s >&5
28780      echo "configure: error output was" >&5
28781      cat conftest.out >&5
28782    fi
28783    rm -f conftest.o conftest.s conftest.out
28784  fi
28785fi
28786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28787$as_echo "$gcc_cv_as_line_zero" >&6; }
28788if test "x$gcc_cv_as_line_zero" = xyes; then
28789
28790$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28791
28792fi
28793
28794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28795$as_echo_n "checking support for thin archives... " >&6; }
28796thin_archive_support=no
28797echo 'int main (void) { return 0; }' > conftest.c
28798if ($AR --version | sed 1q | grep "GNU ar" \
28799    && $CC $CFLAGS -c conftest.c \
28800    && $AR rcT conftest.a conftest.o \
28801    && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28802  thin_archive_support=yes
28803fi
28804rm -f conftest.c conftest.o conftest.a conftest
28805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28806$as_echo "$thin_archive_support" >&6; }
28807
28808
28809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28810$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28811gcc_cv_ld_eh_frame_hdr=no
28812if test $in_tree_ld = yes ; then
28813  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 \
28814     && test $in_tree_ld_is_elf = yes; then
28815    gcc_cv_ld_eh_frame_hdr=yes
28816  fi
28817elif test x$gcc_cv_ld != x; then
28818  if echo "$ld_ver" | grep GNU > /dev/null; then
28819    # Check if linker supports --eh-frame-hdr option
28820    if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28821      gcc_cv_ld_eh_frame_hdr=yes
28822    fi
28823  else
28824    case "$target" in
28825      *-*-solaris2*)
28826        # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28827        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28828          gcc_cv_ld_eh_frame_hdr=yes
28829        fi
28830        ;;
28831    esac
28832  fi
28833fi
28834
28835if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28836
28837$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28838
28839fi
28840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28841$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28842
28843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28844$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28845gcc_cv_ld_eh_frame_ciev3=no
28846if test $in_tree_ld = yes ; then
28847  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 \
28848     && test $in_tree_ld_is_elf = yes; then
28849    gcc_cv_ld_eh_frame_ciev3=yes
28850  fi
28851elif test x$gcc_cv_ld != x; then
28852  if echo "$ld_ver" | grep GNU > /dev/null; then
28853    gcc_cv_ld_eh_frame_ciev3=yes
28854    if test 0"$ld_date" -lt 20040513; then
28855      if test -n "$ld_date"; then
28856	# If there was date string, but was earlier than 2004-05-13, fail
28857	gcc_cv_ld_eh_frame_ciev3=no
28858      elif test "$ld_vers_major" -lt 2; then
28859	gcc_cv_ld_eh_frame_ciev3=no
28860      elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28861	gcc_cv_ld_eh_frame_ciev3=no
28862      fi
28863    fi
28864  else
28865    case "$target" in
28866      *-*-solaris2*)
28867        # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28868        if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28869          gcc_cv_ld_eh_frame_ciev3=yes
28870        fi
28871        ;;
28872    esac
28873  fi
28874fi
28875
28876cat >>confdefs.h <<_ACEOF
28877#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28878_ACEOF
28879
28880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28881$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28882
28883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28884$as_echo_n "checking linker position independent executable support... " >&6; }
28885gcc_cv_ld_pie=no
28886if test $in_tree_ld = yes ; then
28887  case "$target" in
28888    # Full PIE support on Solaris was only introduced in gld 2.26.
28889    *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
28890    *) 		    gcc_gld_pie_min_version=15 ;;
28891  esac
28892  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 \
28893     && test $in_tree_ld_is_elf = yes; then
28894    gcc_cv_ld_pie=yes
28895  fi
28896elif test x$gcc_cv_ld != x; then
28897  # Check if linker supports -pie option
28898  if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28899    gcc_cv_ld_pie=yes
28900    case "$target" in
28901      *-*-solaris2*)
28902	if echo "$ld_ver" | grep GNU > /dev/null \
28903	  && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28904	  gcc_cv_ld_pie=no
28905	fi
28906	;;
28907    esac
28908  else
28909    case "$target" in
28910      *-*-solaris2.1[1-9]*)
28911	# Solaris 11.3 added PIE support.
28912	if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28913	  gcc_cv_ld_pie=yes
28914	fi
28915	;;
28916    esac
28917  fi
28918fi
28919if test x"$gcc_cv_ld_pie" = xyes; then
28920
28921$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28922
28923fi
28924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28925$as_echo "$gcc_cv_ld_pie" >&6; }
28926
28927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28928$as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28929gcc_cv_ld_pie_copyreloc=no
28930if test $gcc_cv_ld_pie = yes ; then
28931  if test $in_tree_ld = yes ; then
28932    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
28933      gcc_cv_ld_pie_copyreloc=yes
28934    fi
28935  elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28936    # Check if linker supports -pie option with copy reloc
28937    case "$target" in
28938    i?86-*-linux* | x86_64-*-linux*)
28939      cat > conftest1.s <<EOF
28940	.globl	a_glob
28941	.data
28942	.type	a_glob, @object
28943	.size	a_glob, 4
28944a_glob:
28945	.long	2
28946EOF
28947      cat > conftest2.s <<EOF
28948	.text
28949	.globl	main
28950	.type	main, @function
28951main:
28952	movl	%eax, a_glob(%rip)
28953	.size	main, .-main
28954	.globl	ptr
28955	.section	.data.rel,"aw",@progbits
28956	.type	ptr, @object
28957ptr:
28958	.quad	a_glob
28959EOF
28960      if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28961         && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28962         && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28963         && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28964        gcc_cv_ld_pie_copyreloc=yes
28965      fi
28966      rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28967      ;;
28968    esac
28969  fi
28970fi
28971
28972cat >>confdefs.h <<_ACEOF
28973#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28974_ACEOF
28975
28976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28977$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28978
28979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28980$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28981gcc_cv_ld_eh_gc_sections=no
28982if test $in_tree_ld = yes ; then
28983  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 \
28984     && test $in_tree_ld_is_elf = yes; then
28985    gcc_cv_ld_eh_gc_sections=yes
28986  fi
28987elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28988  cat > conftest.s <<EOF
28989	.section	.text
28990.globl _start
28991        .type _start, @function
28992_start:
28993	.long foo
28994	.size _start, .-_start
28995	.section	.text.foo,"ax",@progbits
28996	.type foo, @function
28997foo:
28998	.long 0
28999	.size foo, .-foo
29000	.section	.gcc_except_table.foo,"a",@progbits
29001.L0:
29002	.long 0
29003	.section	.eh_frame,"a",@progbits
29004	.long .L0
29005EOF
29006  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29007    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29008	 | grep "gc-sections option ignored" > /dev/null; then
29009      gcc_cv_ld_eh_gc_sections=no
29010    elif $gcc_cv_objdump -h conftest 2> /dev/null \
29011         | grep gcc_except_table > /dev/null; then
29012      gcc_cv_ld_eh_gc_sections=yes
29013      # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
29014      if test x$gcc_cv_as_comdat_group != xyes; then
29015	gcc_cv_ld_eh_gc_sections=no
29016	cat > conftest.s <<EOF
29017	.section	.text
29018.globl _start
29019        .type _start, @function
29020_start:
29021	.long foo
29022	.size _start, .-_start
29023	.section	.gnu.linkonce.t.foo,"ax",@progbits
29024	.type foo, @function
29025foo:
29026	.long 0
29027	.size foo, .-foo
29028	.section	.gcc_except_table.foo,"a",@progbits
29029.L0:
29030	.long 0
29031	.section	.eh_frame,"a",@progbits
29032	.long .L0
29033EOF
29034	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29035	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29036	       | grep "gc-sections option ignored" > /dev/null; then
29037	    gcc_cv_ld_eh_gc_sections=no
29038	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
29039	       | grep gcc_except_table > /dev/null; then
29040	    gcc_cv_ld_eh_gc_sections=yes
29041	  fi
29042	fi
29043      fi
29044    fi
29045  fi
29046  rm -f conftest.s conftest.o conftest
29047fi
29048case "$target" in
29049  hppa*-*-linux*)
29050    # ??? This apparently exposes a binutils bug with PC-relative relocations.
29051    gcc_cv_ld_eh_gc_sections=no
29052    ;;
29053esac
29054if test x$gcc_cv_ld_eh_gc_sections = xyes; then
29055
29056$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
29057
29058fi
29059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
29060$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
29061
29062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29063$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29064gcc_cv_ld_eh_gc_sections_bug=no
29065if test $in_tree_ld = yes ; then
29066  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 \
29067     && test $in_tree_ld_is_elf = yes; then
29068    gcc_cv_ld_eh_gc_sections_bug=yes
29069  fi
29070elif 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
29071  gcc_cv_ld_eh_gc_sections_bug=yes
29072  cat > conftest.s <<EOF
29073	.section	.text
29074.globl _start
29075	.type _start, @function
29076_start:
29077	.long foo
29078	.size _start, .-_start
29079	.section	.text.startup.foo,"ax",@progbits
29080	.type foo, @function
29081foo:
29082	.long 0
29083	.size foo, .-foo
29084	.section	.gcc_except_table.foo,"a",@progbits
29085.L0:
29086	.long 0
29087	.section	.eh_frame,"a",@progbits
29088	.long .L0
29089EOF
29090  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29091    if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29092	 | grep "gc-sections option ignored" > /dev/null; then
29093      :
29094    elif $gcc_cv_objdump -h conftest 2> /dev/null \
29095	 | grep gcc_except_table > /dev/null; then
29096      gcc_cv_ld_eh_gc_sections_bug=no
29097    fi
29098  fi
29099  rm -f conftest.s conftest.o conftest
29100fi
29101if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
29102
29103$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29104
29105fi
29106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29107$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29108
29109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29110$as_echo_n "checking linker for compressed debug sections... " >&6; }
29111# gold/gld support compressed debug sections since binutils 2.19/2.21
29112# In binutils 2.26, gld gained support for the ELF gABI format.
29113if test $in_tree_ld = yes ; then
29114  gcc_cv_ld_compress_debug=0
29115  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 \
29116     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29117    gcc_cv_ld_compress_debug=2
29118    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29119  elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
29120     && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29121    gcc_cv_ld_compress_debug=3
29122    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29123  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 \
29124     && test $in_tree_ld_is_elf = yes; then
29125    gcc_cv_ld_compress_debug=1
29126  fi
29127elif echo "$ld_ver" | grep GNU > /dev/null; then
29128  if test "$ld_vers_major" -lt 2 \
29129     || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29130    gcc_cv_ld_compress_debug=0
29131  elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29132    gcc_cv_ld_compress_debug=1
29133  else
29134    gcc_cv_ld_compress_debug=3
29135    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29136  fi
29137  if test $ld_is_gold = yes; then
29138    gcc_cv_ld_compress_debug=2
29139    gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29140  fi
29141else
29142  case "${target}" in
29143    *-*-solaris2*)
29144      # Introduced in Solaris 11.2.
29145      if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29146        gcc_cv_ld_compress_debug=3
29147        gcc_cv_ld_compress_debug_option="-z compress-sections"
29148      else
29149        gcc_cv_ld_compress_debug=0
29150      fi
29151      ;;
29152    *)
29153      # Assume linkers other than GNU ld don't support compessed debug
29154      # sections.
29155      gcc_cv_ld_compress_debug=0
29156      ;;
29157  esac
29158fi
29159
29160cat >>confdefs.h <<_ACEOF
29161#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29162_ACEOF
29163
29164
29165cat >>confdefs.h <<_ACEOF
29166#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29167_ACEOF
29168
29169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29170$as_echo "$gcc_cv_ld_compress_debug" >&6; }
29171
29172if test x"$ld64_flag" = x"yes"; then
29173
29174  # Set defaults for possibly untestable items.
29175  gcc_cv_ld64_export_dynamic=0
29176
29177  if test "$build" = "$host"; then
29178    darwin_try_test=1
29179  else
29180    darwin_try_test=0
29181  fi
29182
29183  # On Darwin, because of FAT library support, it is often possible to execute
29184  # exes from compatible archs even when the host differs from the build system.
29185  case "$build","$host" in
29186    x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29187	darwin_try_test=1;;
29188    *) ;;
29189  esac
29190
29191  # If the configurer specified a minimum ld64 version to be supported, then use
29192  # that to determine feature support.
29193  if test x"${gcc_cv_ld64_version}" != x; then
29194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29195$as_echo_n "checking ld64 specified version... " >&6; }
29196    gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29198$as_echo "$gcc_cv_ld64_major" >&6; }
29199   if test "$gcc_cv_ld64_major" -ge 236; then
29200      gcc_cv_ld64_export_dynamic=1
29201    fi
29202  elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29203    # If the version was not specified, try to find it.
29204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29205$as_echo_n "checking linker version... " >&6; }
29206    if test x"${gcc_cv_ld64_version}" = x; then
29207      gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29208    fi
29209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29210$as_echo "$gcc_cv_ld64_version" >&6; }
29211
29212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29213$as_echo_n "checking linker for -export_dynamic support... " >&6; }
29214    gcc_cv_ld64_export_dynamic=1
29215    if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29216      gcc_cv_ld64_export_dynamic=0
29217    fi
29218    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29219$as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29220  fi
29221
29222  if test x"${gcc_cv_ld64_version}" != x; then
29223
29224cat >>confdefs.h <<_ACEOF
29225#define LD64_VERSION "${gcc_cv_ld64_version}"
29226_ACEOF
29227
29228  fi
29229
29230
29231cat >>confdefs.h <<_ACEOF
29232#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29233_ACEOF
29234
29235fi
29236
29237# --------
29238# UNSORTED
29239# --------
29240
29241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29242$as_echo_n "checking linker --as-needed support... " >&6; }
29243if ${gcc_cv_ld_as_needed+:} false; then :
29244  $as_echo_n "(cached) " >&6
29245else
29246  gcc_cv_ld_as_needed=no
29247gcc_cv_ld_as_needed_option='--as-needed'
29248gcc_cv_ld_no_as_needed_option='--no-as-needed'
29249if test $in_tree_ld = yes ; then
29250  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 \
29251     && test $in_tree_ld_is_elf = yes; then
29252    gcc_cv_ld_as_needed=yes
29253    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29254      gcc_cv_ld_as_needed_option='--push-state --as-needed'
29255      gcc_cv_ld_no_as_needed_option='--pop-state'
29256    fi
29257  fi
29258elif test x$gcc_cv_ld != x; then
29259  # Check if linker supports --as-needed and --no-as-needed options
29260  if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29261    gcc_cv_ld_as_needed=yes
29262    if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29263       && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29264       && echo "$ld_ver" | grep GNU > /dev/null \
29265       && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29266      # Use these options only when both ld.bfd and ld.gold support
29267      # --push-state/--pop-state, which unfortunately wasn't added
29268      # at the same time.
29269      gcc_cv_ld_as_needed_option='--push-state --as-needed'
29270      gcc_cv_ld_no_as_needed_option='--pop-state'
29271    fi
29272  fi
29273  case "$target:$gnu_ld" in
29274    *-*-solaris2*:no)
29275      # Solaris 2 ld always supports -z ignore/-z record.  Prefer the native
29276      # forms.
29277      gcc_cv_ld_as_needed=yes
29278      gcc_cv_ld_as_needed_option="-z ignore"
29279      gcc_cv_ld_no_as_needed_option="-z record"
29280      ;;
29281  esac
29282fi
29283# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29284# dl_iterate_phdr, i.e. since Solaris 11.
29285case "$target" in
29286  *-*-solaris2.1[1-9]*)
29287    case "$target" in
29288    i?86-*-* | x86_64-*-*)
29289      if echo "$ld_ver" | grep GNU > /dev/null; then
29290        # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29291        gcc_cv_ld_as_needed=no
29292      fi
29293      ;;
29294    esac
29295    ;;
29296  *-*-solaris2*)
29297    gcc_cv_ld_as_needed=no
29298    ;;
29299esac
29300
29301fi
29302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29303$as_echo "$gcc_cv_ld_as_needed" >&6; }
29304if test x"$gcc_cv_ld_as_needed" = xyes; then
29305
29306$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29307
29308
29309cat >>confdefs.h <<_ACEOF
29310#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29311_ACEOF
29312
29313
29314cat >>confdefs.h <<_ACEOF
29315#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29316_ACEOF
29317
29318fi
29319
29320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29321$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29322saved_LDFLAGS="$LDFLAGS"
29323for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29324  LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29326/* end confdefs.h.  */
29327int main(void) {return 0;}
29328_ACEOF
29329if ac_fn_cxx_try_link "$LINENO"; then :
29330  gcc_cv_ld_clearcap=yes; break
29331else
29332  gcc_cv_ld_clearcap=no
29333fi
29334rm -f core conftest.err conftest.$ac_objext \
29335    conftest$ac_exeext conftest.$ac_ext
29336done
29337LDFLAGS="$saved_LDFLAGS"
29338if test "x$gcc_cv_ld_clearcap" = xyes; then
29339
29340$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29341
29342  ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29343
29344fi
29345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29346$as_echo "$gcc_cv_ld_clearcap" >&6; }
29347
29348case "$target" in
29349  powerpc*-*-*)
29350    case "$target" in
29351      *le-*-linux*)
29352	emul_name="-melf32lppc"
29353	;;
29354      *)
29355	emul_name="-melf32ppc"
29356	;;
29357    esac
29358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29359$as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29360if ${gcc_cv_ld_ppc_attr+:} false; then :
29361  $as_echo_n "(cached) " >&6
29362else
29363  gcc_cv_ld_ppc_attr=no
29364    if test x"$ld_is_gold" = xyes; then
29365      gcc_cv_ld_ppc_attr=yes
29366    elif test $in_tree_ld = yes ; then
29367      if test "$gcc_cv_gld_major_version" -eq 2 \
29368		-a "$gcc_cv_gld_minor_version" -ge 28 \
29369		-o "$gcc_cv_gld_major_version" -gt 2; then
29370        gcc_cv_ld_ppc_attr=yes
29371      fi
29372    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29373      # check that merging the long double .gnu_attribute doesn't warn
29374      cat > conftest1.s <<EOF
29375	.gnu_attribute 4,1
29376EOF
29377      cat > conftest2.s <<EOF
29378	.gnu_attribute 4,9
29379EOF
29380      if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29381         && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29382         && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29383	 && test ! -s conftest.err; then
29384        gcc_cv_ld_ppc_attr=yes
29385      fi
29386      rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29387    fi
29388
29389fi
29390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29391$as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29392    if test x$gcc_cv_ld_ppc_attr = xyes; then
29393
29394$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29395
29396    fi
29397    ;;
29398esac
29399
29400case "$target:$tm_file" in
29401  powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29402  case "$target" in
29403     *le-*-linux*)
29404     emul_name="-melf64lppc"
29405      ;;
29406     *-*-linux*)
29407     emul_name="-melf64ppc"
29408      ;;
29409     *-*-freebsd*)
29410     emul_name="-melf64ppc_fbsd"
29411      ;;
29412  esac
29413    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29414$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29415if ${gcc_cv_ld_no_dot_syms+:} false; then :
29416  $as_echo_n "(cached) " >&6
29417else
29418  gcc_cv_ld_no_dot_syms=no
29419    if test x"$ld_is_gold" = xyes; then
29420      gcc_cv_ld_no_dot_syms=yes
29421    elif test $in_tree_ld = yes ; then
29422      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
29423        gcc_cv_ld_no_dot_syms=yes
29424      fi
29425    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29426      cat > conftest1.s <<EOF
29427	.text
29428	bl .foo
29429EOF
29430      cat > conftest2.s <<EOF
29431	.section ".opd","aw"
29432	.align 3
29433	.globl foo
29434	.type foo,@function
29435foo:
29436	.quad .LEfoo,.TOC.@tocbase,0
29437	.text
29438.LEfoo:
29439	blr
29440	.size foo,.-.LEfoo
29441EOF
29442      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29443         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29444         && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29445        gcc_cv_ld_no_dot_syms=yes
29446      fi
29447      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29448    fi
29449
29450fi
29451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29452$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29453    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29454
29455$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29456
29457    fi
29458
29459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29460$as_echo_n "checking linker large toc support... " >&6; }
29461if ${gcc_cv_ld_large_toc+:} false; then :
29462  $as_echo_n "(cached) " >&6
29463else
29464  gcc_cv_ld_large_toc=no
29465    if test x"$ld_is_gold" = xyes; then
29466      gcc_cv_ld_large_toc=yes
29467    elif test $in_tree_ld = yes ; then
29468      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
29469        gcc_cv_ld_large_toc=yes
29470      fi
29471    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29472      cat > conftest.s <<EOF
29473	.section ".tbss","awT",@nobits
29474	.align 3
29475ie0:	.space 8
29476	.global _start
29477	.text
29478_start:
29479	addis 9,13,ie0@got@tprel@ha
29480	ld 9,ie0@got@tprel@l(9)
29481EOF
29482      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29483         && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29484        gcc_cv_ld_large_toc=yes
29485      fi
29486      rm -f conftest conftest.o conftest.s
29487    fi
29488
29489fi
29490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29491$as_echo "$gcc_cv_ld_large_toc" >&6; }
29492    if test x"$gcc_cv_ld_large_toc" = xyes; then
29493
29494$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29495
29496    fi
29497
29498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29499$as_echo_n "checking linker toc pointer alignment... " >&6; }
29500if ${gcc_cv_ld_toc_align+:} false; then :
29501  $as_echo_n "(cached) " >&6
29502else
29503  if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29504      cat > conftest.s <<EOF
29505	.global _start
29506	.text
29507_start:
29508	addis 9,2,x@got@ha
29509	.section .data.rel.ro,"aw",@progbits
29510	.p2align 16
29511	.space 32768
29512x:	.quad .TOC.
29513EOF
29514      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29515         && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29516        gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
29517      fi
29518      rm -f conftest conftest.o conftest.s
29519    fi
29520
29521fi
29522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29523$as_echo "$gcc_cv_ld_toc_align" >&6; }
29524    if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29525
29526cat >>confdefs.h <<_ACEOF
29527#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29528_ACEOF
29529
29530    fi
29531    ;;
29532esac
29533
29534case "$target" in
29535  *-*-aix*)
29536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29537$as_echo_n "checking linker large toc support... " >&6; }
29538if ${gcc_cv_ld_large_toc+:} false; then :
29539  $as_echo_n "(cached) " >&6
29540else
29541  gcc_cv_ld_large_toc=no
29542    if test x$gcc_cv_as != x ; then
29543      cat > conftest.s <<EOF
29544	.toc
29545LC..1:
29546	.tc a[TC],a[RW]
29547	.extern a[RW]
29548	.csect .text[PR]
29549.largetoctest:
29550	addis 9,LC..1@u(2)
29551	ld 3,LC..1@l(9)
29552EOF
29553      if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29554        gcc_cv_ld_large_toc=yes
29555      fi
29556      rm -f conftest conftest.o conftest.s
29557    fi
29558
29559fi
29560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29561$as_echo "$gcc_cv_ld_large_toc" >&6; }
29562    if test x"$gcc_cv_ld_large_toc" = xyes; then
29563
29564$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29565
29566    fi
29567    ;;
29568esac
29569
29570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29571$as_echo_n "checking linker --build-id support... " >&6; }
29572if ${gcc_cv_ld_buildid+:} false; then :
29573  $as_echo_n "(cached) " >&6
29574else
29575  gcc_cv_ld_buildid=no
29576  if test $in_tree_ld = yes ; then
29577    if test "$gcc_cv_gld_major_version" -eq 2 -a \
29578       "$gcc_cv_gld_minor_version" -ge 18 -o \
29579       "$gcc_cv_gld_major_version" -gt 2 \
29580       && test $in_tree_ld_is_elf = yes; then
29581      gcc_cv_ld_buildid=yes
29582    fi
29583  elif test x$gcc_cv_ld != x; then
29584    if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29585      gcc_cv_ld_buildid=yes
29586    fi
29587  fi
29588fi
29589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29590$as_echo "$gcc_cv_ld_buildid" >&6; }
29591if test x"$gcc_cv_ld_buildid" = xyes; then
29592
29593$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29594
29595fi
29596
29597# Check whether --enable-linker-build-id was given.
29598if test "${enable_linker_build_id+set}" = set; then :
29599  enableval=$enable_linker_build_id;
29600else
29601  enable_linker_build_id=no
29602fi
29603
29604
29605if test x"$enable_linker_build_id" = xyes; then
29606  if test x"$gcc_cv_ld_buildid" = xyes; then
29607
29608$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29609
29610  else
29611    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29612$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29613  fi
29614fi
29615
29616# In binutils 2.21, GNU ld gained support for new emulations fully
29617# supporting the Solaris 2 ABI.  Detect their presence in the linker used.
29618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29619$as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29620if ${gcc_cv_ld_sol2_emulation+:} false; then :
29621  $as_echo_n "(cached) " >&6
29622else
29623  gcc_cv_ld_sol2_emulation=no
29624  if test $in_tree_ld = yes ; then
29625    if test "$gcc_cv_gld_major_version" -eq 2 -a \
29626       "$gcc_cv_gld_minor_version" -ge 21 -o \
29627       "$gcc_cv_gld_major_version" -gt 2 \
29628       && test $in_tree_ld_is_elf = yes; then
29629      gcc_cv_ld_sol2_emulation=yes
29630    fi
29631  elif test x$gcc_cv_ld != x; then
29632    if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29633       grep _sol2 > /dev/null; then
29634      gcc_cv_ld_sol2_emulation=yes
29635    fi
29636  fi
29637fi
29638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29639$as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29640if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29641
29642$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29643
29644fi
29645
29646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29647$as_echo_n "checking linker --sysroot support... " >&6; }
29648if ${gcc_cv_ld_sysroot+:} false; then :
29649  $as_echo_n "(cached) " >&6
29650else
29651  gcc_cv_ld_sysroot=no
29652  if test $in_tree_ld = yes ; then
29653      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
29654        gcc_cv_ld_sysroot=yes
29655      fi
29656  elif test x$gcc_cv_ld != x; then
29657    if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29658      gcc_cv_ld_sysroot=yes
29659    fi
29660  fi
29661fi
29662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29663$as_echo "$gcc_cv_ld_sysroot" >&6; }
29664if test x"$gcc_cv_ld_sysroot" = xyes; then
29665
29666$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29667
29668fi
29669
29670case $target in
29671*-*-solaris2*)
29672  # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29674$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29675if ${gcc_cv_solaris_crts+:} false; then :
29676  $as_echo_n "(cached) " >&6
29677else
29678  gcc_cv_solaris_crts=no
29679     if test x$host != x$target; then
29680       if test "x$with_sysroot" = xyes; then
29681         target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29682       else
29683         target_sysroot="${with_sysroot}"
29684       fi
29685     fi
29686     target_libdir="$target_sysroot/usr/lib"
29687     # At the time they were added, gcrt1.o became a symlink for backwards
29688     # compatibility on x86, while crt1.o was added on sparc, so check for that.
29689     case $target in
29690       i?86-*-solaris2* | x86_64-*-solaris2*)
29691         if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29692	 ;;
29693       sparc*-*-solaris2*)
29694         if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29695	 ;;
29696     esac
29697fi
29698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29699$as_echo "$gcc_cv_solaris_crts" >&6; }
29700  ;;
29701esac
29702if test x$gcc_cv_solaris_crts = xyes; then
29703
29704$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29705
29706fi
29707
29708# Check whether --enable-libssp was given.
29709if test "${enable_libssp+set}" = set; then :
29710  enableval=$enable_libssp; case "${enableval}" in
29711  yes|no)
29712    ;;
29713  *)
29714    as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29715    ;;
29716esac
29717fi
29718
29719
29720# Test for stack protector support in target C library.
29721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29722$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29723if ${gcc_cv_libc_provides_ssp+:} false; then :
29724  $as_echo_n "(cached) " >&6
29725else
29726  gcc_cv_libc_provides_ssp=no
29727  if test "x$enable_libssp" = "xno"; then
29728    gcc_cv_libc_provides_ssp=yes
29729  elif test "x$enable_libssp" = "xyes"; then
29730    gcc_cv_libc_provides_ssp=no
29731  else
29732    case "$target" in
29733       *-*-musl*)
29734	 # All versions of musl provide stack protector
29735	 gcc_cv_libc_provides_ssp=yes;;
29736       *-*-linux* | *-*-kfreebsd*-gnu)
29737      # glibc 2.4 and later provides __stack_chk_fail and
29738      # either __stack_chk_guard, or TLS access to stack guard canary.
29739
29740if test $glibc_version_major -gt 2 \
29741  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29742  gcc_cv_libc_provides_ssp=yes
29743else
29744
29745      if test -f $target_header_dir/features.h \
29746	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
29747	    $target_header_dir/features.h > /dev/null; then
29748	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
29749	     $target_header_dir/features.h > /dev/null && \
29750	     test -f $target_header_dir/bits/uClibc_config.h && \
29751	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
29752	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
29753	  gcc_cv_libc_provides_ssp=yes
29754	fi
29755      # all versions of Bionic support stack protector
29756      elif test -f $target_header_dir/sys/cdefs.h \
29757        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
29758           $target_header_dir/sys/cdefs.h > /dev/null; then
29759         gcc_cv_libc_provides_ssp=yes
29760      fi
29761fi
29762	;;
29763       *-*-gnu*)
29764	 # Avoid complicated tests (see
29765	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29766	 # simply assert that glibc does provide this, which is true for all
29767	 # realistically usable GNU/Hurd configurations.
29768	 # All supported versions of musl provide it as well
29769	 gcc_cv_libc_provides_ssp=yes;;
29770       *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29771	 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29772if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29773  gcc_cv_libc_provides_ssp=yes
29774else
29775  echo "no __stack_chk_fail on this target"
29776fi
29777
29778        ;;
29779       *) gcc_cv_libc_provides_ssp=no ;;
29780    esac
29781  fi
29782fi
29783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29784$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29785
29786if test x$gcc_cv_libc_provides_ssp = xyes; then
29787
29788$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29789
29790fi
29791
29792# Check whether --enable-default-ssp was given.
29793# Check whether --enable-default-ssp was given.
29794if test "${enable_default_ssp+set}" = set; then :
29795  enableval=$enable_default_ssp;
29796if test x$gcc_cv_libc_provides_ssp = xyes; then
29797  case "$target" in
29798    ia64*-*-*) enable_default_ssp=no ;;
29799    *) enable_default_ssp=$enableval ;;
29800  esac
29801else
29802  enable_default_ssp=no
29803fi
29804else
29805  enable_default_ssp=no
29806fi
29807
29808if test x$enable_default_ssp = xyes ; then
29809
29810$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29811
29812fi
29813
29814
29815# Test for <sys/sdt.h> on the target.
29816
29817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29818$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29819have_sys_sdt_h=no
29820if test -f $target_header_dir/sys/sdt.h; then
29821  have_sys_sdt_h=yes
29822
29823$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29824
29825fi
29826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29827$as_echo "$have_sys_sdt_h" >&6; }
29828
29829# Check if TFmode long double should be used by default or not.
29830# Some glibc targets used DFmode long double, but with glibc 2.4
29831# and later they can use TFmode.
29832case "$target" in
29833  powerpc*-*-linux* | \
29834  sparc*-*-linux* | \
29835  s390*-*-linux* | \
29836  alpha*-*-linux*)
29837
29838# Check whether --with-long-double-128 was given.
29839if test "${with_long_double_128+set}" = set; then :
29840  withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29841else
29842
29843      case "$target" in
29844	s390*-*-linux-musl*)
29845	  gcc_cv_target_ldbl128=yes
29846	  ;;
29847	powerpc*-*-linux-musl*)
29848	  gcc_cv_target_ldbl128=no
29849	  ;;
29850	*)
29851
29852if test $glibc_version_major -gt 2 \
29853  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29854  gcc_cv_target_ldbl128=yes
29855else
29856
29857      gcc_cv_target_ldbl128=no
29858      grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
29859        $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29860      && gcc_cv_target_ldbl128=yes
29861
29862fi
29863
29864	  ;;
29865      esac
29866
29867fi
29868
29869    ;;
29870esac
29871if test x$gcc_cv_target_ldbl128 = xyes; then
29872
29873$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29874
29875fi
29876
29877# Check if TFmode long double target should use the IBM extended double or IEEE
29878# 128-bit floating point formats if long doubles are 128-bits long.  The long
29879# double type can only be switched on powerpc64 bit Linux systems where VSX is
29880# supported.  Other PowerPC systems do not build the IEEE 128-bit emulator in
29881# libgcc.
29882
29883# Check whether --with-long-double-format was given.
29884if test "${with_long_double_format+set}" = set; then :
29885  withval=$with_long_double_format;
29886case "$target:$with_long_double_format" in
29887  powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29888    :
29889    ;;
29890  powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29891    # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29892    case "$with_cpu" in
29893      power7 | power8 | power9 | power1*)
29894	:
29895	;;
29896      *)
29897	as_fn_error $? "Configuration option --with-long-double-format is only \
29898supported if the default cpu is power7 or newer" "$LINENO" 5
29899	with_long_double_format=""
29900	;;
29901      esac
29902      ;;
29903  xpowerpc64*-*-linux*:*)
29904    as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29905    with_long_double_format=""
29906    ;;
29907  *)
29908    as_fn_error $? "Configure option --with-long-double-format is only supported \
29909on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29910    with_long_double_format=""
29911    ;;
29912esac
29913fi
29914
29915
29916# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29917# values in the TCB.  Currently, only GLIBC 2.23 and later support this.
29918gcc_cv_libc_provides_hwcap_in_tcb=no
29919case "$target" in
29920  powerpc*-*-linux*)
29921
29922if test $glibc_version_major -gt 2 \
29923  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29924  gcc_cv_libc_provides_hwcap_in_tcb=yes
29925fi
29926    ;;
29927esac
29928if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29929
29930$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29931
29932fi
29933
29934# Check if the target LIBC handles PT_GNU_STACK.
29935gcc_cv_libc_gnustack=unknown
29936case "$target" in
29937  mips*-*-linux*)
29938
29939if test $glibc_version_major -gt 2 \
29940  || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29941  gcc_cv_libc_gnustack=yes
29942fi
29943    ;;
29944esac
29945if test x$gcc_cv_libc_gnustack = xyes; then
29946
29947$as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29948
29949fi
29950
29951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29952$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29953gcc_cv_target_dl_iterate_phdr=unknown
29954case "$target" in
29955  *-*-solaris2*)
29956    # <link.h> needs both a dl_iterate_phdr declaration and support for
29957    # compilation with largefile support.
29958    if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29959      && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29960      gcc_cv_target_dl_iterate_phdr=yes
29961    else
29962      gcc_cv_target_dl_iterate_phdr=no
29963    fi
29964    ;;
29965  *-*-dragonfly* | *-*-freebsd*)
29966    if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29967      gcc_cv_target_dl_iterate_phdr=yes
29968    else
29969      gcc_cv_target_dl_iterate_phdr=no
29970    fi
29971    ;;
29972  *-linux-musl*)
29973    gcc_cv_target_dl_iterate_phdr=yes
29974    ;;
29975esac
29976
29977if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29978
29979$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29980
29981fi
29982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29983$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29984
29985# We no longer support different GC mechanisms.  Emit an error if
29986# the user configures with --with-gc.
29987
29988# Check whether --with-gc was given.
29989if test "${with_gc+set}" = set; then :
29990  withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29991fi
29992
29993
29994# Libraries to use on the host.  This will normally be set by the top
29995# level Makefile.  Here we simply capture the value for our Makefile.
29996if test -z "${HOST_LIBS+set}"; then
29997  HOST_LIBS=
29998fi
29999
30000
30001# Use the system's zlib library.
30002
30003  # Use the system's zlib library.
30004  zlibdir="-L\$(top_builddir)/../zlib"
30005  zlibinc="-I\$(top_srcdir)/../zlib"
30006
30007# Check whether --with-system-zlib was given.
30008if test "${with_system_zlib+set}" = set; then :
30009  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
30010    zlibdir=
30011    zlibinc=
30012  fi
30013
30014fi
30015
30016
30017
30018
30019
30020
30021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
30022$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
30023    # Check whether --enable-maintainer-mode was given.
30024if test "${enable_maintainer_mode+set}" = set; then :
30025  enableval=$enable_maintainer_mode; maintainer_mode=$enableval
30026else
30027  maintainer_mode=no
30028fi
30029
30030
30031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30032$as_echo "$maintainer_mode" >&6; }
30033
30034if test "$maintainer_mode" = "yes"; then
30035  MAINT=''
30036else
30037  MAINT='#'
30038fi
30039
30040
30041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
30042$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
30043  # Check whether --enable-link-mutex was given.
30044if test "${enable_link_mutex+set}" = set; then :
30045  enableval=$enable_link_mutex; do_link_mutex=$enableval
30046else
30047  do_link_mutex=no
30048fi
30049
30050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
30051$as_echo "$do_link_mutex" >&6; }
30052
30053if test "$do_link_mutex" = "yes"; then
30054   DO_LINK_MUTEX=true
30055else
30056   DO_LINK_MUTEX=false
30057fi
30058
30059
30060# --------------
30061# Language hooks
30062# --------------
30063
30064# Make empty files to contain the specs and options for each language.
30065# Then add #include lines to for a compiler that has specs and/or options.
30066
30067subdirs=
30068lang_opt_files=
30069lang_specs_files=
30070lang_tree_files=
30071# These (without "all_") are set in each config-lang.in.
30072# `language' must be a single word so is spelled singularly.
30073all_languages=
30074all_compilers=
30075all_outputs='Makefile'
30076# List of language configure and makefile fragments.
30077all_lang_configurefrags=
30078all_lang_makefrags=
30079# Additional files for gengtype
30080all_gtfiles="$target_gtfiles"
30081
30082# These are the languages that are set in --enable-languages,
30083# and are available in the GCC tree.
30084all_selected_languages=
30085
30086# Add the language fragments.
30087# Languages are added via two mechanisms.  Some information must be
30088# recorded in makefile variables, these are defined in config-lang.in.
30089# We accumulate them and plug them into the main Makefile.
30090# The other mechanism is a set of hooks for each of the main targets
30091# like `clean', `install', etc.
30092
30093language_hooks="Make-hooks"
30094
30095for lang in ${srcdir}/*/config-lang.in
30096do
30097	test "$lang" = "${srcdir}/*/config-lang.in" && continue
30098
30099        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
30100        if test "x$lang_alias" = x
30101        then
30102              echo "$lang doesn't set \$language." 1>&2
30103              exit 1
30104        fi
30105        subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30106        subdirs="$subdirs $subdir"
30107
30108	# $gcc_subdir is where the gcc integration files are to be found
30109	# for a language, both for internal compiler purposes (compiler
30110	# sources implementing front-end to GCC tree converters), and for
30111	# build infrastructure purposes (Make-lang.in, etc.)
30112	#
30113	# This will be <subdir> (relative to $srcdir) if a line like
30114	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30115	# is found in <langdir>/config-lang.in, and will remain <langdir>
30116	# otherwise.
30117	#
30118	# Except for the language alias (fetched above), the regular
30119	# "config-lang.in" contents are always retrieved from $gcc_subdir,
30120	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
30121	# only this and the language alias.
30122
30123        gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
30124        if [ "$gcc_subdir" = "" ]; then
30125           gcc_subdir="$subdir"
30126        fi
30127
30128        case ",$enable_languages," in
30129        *,$lang_alias,*)
30130            all_selected_languages="$all_selected_languages $lang_alias"
30131            if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30132                lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30133	    fi
30134	    ;;
30135        esac
30136
30137	language=
30138	boot_language=
30139	compilers=
30140	outputs=
30141	gtfiles=
30142	subdir_requires=
30143	. ${srcdir}/$gcc_subdir/config-lang.in
30144	if test "x$language" = x
30145	then
30146		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30147		exit 1
30148	fi
30149
30150	ok=:
30151        case ",$enable_languages," in
30152        	*,$lang_alias,*) ;;
30153		*)
30154			for i in $subdir_requires; do
30155				test -f "${srcdir}/$i/config-lang.in" && continue
30156				ok=false
30157				break
30158			done
30159		;;
30160	esac
30161	$ok || continue
30162
30163	all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30164	all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30165	if test -f $srcdir/$gcc_subdir/lang.opt; then
30166	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30167	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30168	fi
30169	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30170	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30171	fi
30172	all_languages="$all_languages $language"
30173	all_compilers="$all_compilers $compilers"
30174	all_outputs="$all_outputs $outputs"
30175	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30176        case ",$enable_languages," in
30177        	*,lto,*)
30178
30179$as_echo "#define ENABLE_LTO 1" >>confdefs.h
30180
30181		    enable_lto=yes
30182
30183		    ;;
30184		*) ;;
30185	esac
30186done
30187
30188check_languages=
30189for language in $all_selected_languages
30190do
30191	check_languages="$check_languages check-$language"
30192done
30193
30194selftest_languages=
30195for language in $all_selected_languages
30196do
30197	selftest_languages="$selftest_languages selftest-$language"
30198done
30199
30200# We link each language in with a set of hooks, reached indirectly via
30201# lang.${target}.  Only do so for selected languages.
30202
30203rm -f Make-hooks
30204touch Make-hooks
30205target_list="all.cross start.encap rest.encap tags \
30206	install-common install-man install-info install-pdf install-html dvi \
30207	pdf html uninstall info man srcextra srcman srcinfo \
30208	mostlyclean clean distclean maintainer-clean install-plugin"
30209
30210for t in $target_list
30211do
30212	x=
30213	for lang in $all_selected_languages
30214	do
30215		x="$x $lang.$t"
30216	done
30217	echo "lang.$t: $x" >> Make-hooks
30218done
30219
30220# --------
30221# Option include files
30222# --------
30223
30224${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30225option_includes="option-includes.mk"
30226
30227
30228# --------
30229# UNSORTED
30230# --------
30231
30232# Create .gdbinit.
30233
30234echo "dir ." > .gdbinit
30235echo "dir ${srcdir}" >> .gdbinit
30236if test x$gdb_needs_out_file_path = xyes
30237then
30238	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30239fi
30240if test "x$subdirs" != x; then
30241	for s in $subdirs
30242	do
30243		echo "dir ${srcdir}/$s" >> .gdbinit
30244	done
30245fi
30246echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30247echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30248
30249# Put a breakpoint on __asan_report_error to help with debugging buffer
30250# overflow.
30251case "$CFLAGS" in
30252*-fsanitize=address*)
30253  echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30254  ;;
30255esac
30256
30257gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30258
30259
30260
30261# Find a directory in which to install a shared libgcc.
30262
30263# Check whether --enable-version-specific-runtime-libs was given.
30264if test "${enable_version_specific_runtime_libs+set}" = set; then :
30265  enableval=$enable_version_specific_runtime_libs;
30266fi
30267
30268
30269# Substitute configuration variables
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337# Echo link setup.
30338if test x${build} = x${host} ; then
30339  if test x${host} = x${target} ; then
30340    echo "Links are now set up to build a native compiler for ${target}." 1>&2
30341  else
30342    echo "Links are now set up to build a cross-compiler" 1>&2
30343    echo " from ${host} to ${target}." 1>&2
30344  fi
30345else
30346  if test x${host} = x${target} ; then
30347    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30348    echo " for ${target}." 1>&2
30349  else
30350    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30351    echo " from ${host} to ${target}." 1>&2
30352  fi
30353fi
30354
30355
30356
30357
30358
30359
30360if test "x${ISLLIBS}" != "x" ; then
30361
30362$as_echo "#define HAVE_isl 1" >>confdefs.h
30363
30364fi
30365
30366# Check for plugin support
30367   # Check whether --enable-plugin was given.
30368if test "${enable_plugin+set}" = set; then :
30369  enableval=$enable_plugin; enable_plugin=$enableval
30370else
30371  enable_plugin=yes; default_plugin=yes
30372fi
30373
30374
30375   pluginlibs=
30376   plugin_check=yes
30377
30378   case "${host}" in
30379     *-*-mingw*)
30380       # Since plugin support under MinGW is not as straightforward as on
30381       # other platforms (e.g., we have to link import library, etc), we
30382       # only enable it if explicitly requested.
30383       if test x"$default_plugin" = x"yes"; then
30384         enable_plugin=no
30385       elif test x"$enable_plugin" = x"yes"; then
30386         # Use make's target variable to derive import library name.
30387         pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30388	 plugin_check=no
30389       fi
30390     ;;
30391     *-*-darwin*)
30392       if test x$build = x$host; then
30393	 export_sym_check="nm${exeext} -g"
30394       elif test x$host = x$target; then
30395	 export_sym_check="$gcc_cv_nm -g"
30396       else
30397	 export_sym_check=
30398       fi
30399     ;;
30400     *)
30401       if test x$build = x$host; then
30402	 export_sym_check="objdump${exeext} -T"
30403       elif test x$host = x$target; then
30404	 export_sym_check="$gcc_cv_objdump -T"
30405       else
30406	 export_sym_check=
30407       fi
30408     ;;
30409   esac
30410
30411   if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30412
30413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30414$as_echo_n "checking for exported symbols... " >&6; }
30415     if test "x$export_sym_check" != x; then
30416       echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30417       ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30418       if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30419	 : # No need to use a flag
30420	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30421$as_echo "yes" >&6; }
30422       else
30423	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30424$as_echo "yes" >&6; }
30425	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30426$as_echo_n "checking for -rdynamic... " >&6; }
30427	 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30428	 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30429	   plugin_rdynamic=yes
30430	   pluginlibs="-rdynamic"
30431	 else
30432	   plugin_rdynamic=no
30433	   enable_plugin=no
30434	 fi
30435	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30436$as_echo "$plugin_rdynamic" >&6; }
30437       fi
30438     else
30439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30440$as_echo "unable to check" >&6; }
30441     fi
30442
30443     # Check -ldl
30444     saved_LIBS="$LIBS"
30445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30446$as_echo_n "checking for library containing dlopen... " >&6; }
30447if ${ac_cv_search_dlopen+:} false; then :
30448  $as_echo_n "(cached) " >&6
30449else
30450  ac_func_search_save_LIBS=$LIBS
30451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30452/* end confdefs.h.  */
30453
30454/* Override any GCC internal prototype to avoid an error.
30455   Use char because int might match the return type of a GCC
30456   builtin and then its argument prototype would still apply.  */
30457#ifdef __cplusplus
30458extern "C"
30459#endif
30460char dlopen ();
30461int
30462main ()
30463{
30464return dlopen ();
30465  ;
30466  return 0;
30467}
30468_ACEOF
30469for ac_lib in '' dl; do
30470  if test -z "$ac_lib"; then
30471    ac_res="none required"
30472  else
30473    ac_res=-l$ac_lib
30474    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30475  fi
30476  if ac_fn_cxx_try_link "$LINENO"; then :
30477  ac_cv_search_dlopen=$ac_res
30478fi
30479rm -f core conftest.err conftest.$ac_objext \
30480    conftest$ac_exeext
30481  if ${ac_cv_search_dlopen+:} false; then :
30482  break
30483fi
30484done
30485if ${ac_cv_search_dlopen+:} false; then :
30486
30487else
30488  ac_cv_search_dlopen=no
30489fi
30490rm conftest.$ac_ext
30491LIBS=$ac_func_search_save_LIBS
30492fi
30493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30494$as_echo "$ac_cv_search_dlopen" >&6; }
30495ac_res=$ac_cv_search_dlopen
30496if test "$ac_res" != no; then :
30497  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30498
30499fi
30500
30501     if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30502       pluginlibs="$pluginlibs -ldl"
30503     fi
30504     LIBS="$saved_LIBS"
30505
30506     # Check that we can build shared objects with -fPIC -shared
30507     saved_LDFLAGS="$LDFLAGS"
30508     saved_CFLAGS="$CFLAGS"
30509     case "${host}" in
30510       *-*-darwin*)
30511	 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30512	 CFLAGS="$CFLAGS -fPIC"
30513	 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30514       ;;
30515       *)
30516	 CFLAGS="$CFLAGS -fPIC"
30517	 LDFLAGS="$LDFLAGS -fPIC -shared"
30518       ;;
30519     esac
30520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30521$as_echo_n "checking for -fPIC -shared... " >&6; }
30522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30523/* end confdefs.h.  */
30524extern int X;
30525int
30526main ()
30527{
30528return X == 0;
30529  ;
30530  return 0;
30531}
30532_ACEOF
30533if ac_fn_cxx_try_link "$LINENO"; then :
30534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30535$as_echo "yes" >&6; }; have_pic_shared=yes
30536else
30537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30538$as_echo "no" >&6; }; have_pic_shared=no
30539fi
30540rm -f core conftest.err conftest.$ac_objext \
30541    conftest$ac_exeext conftest.$ac_ext
30542     if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30543       pluginlibs=
30544       enable_plugin=no
30545     fi
30546     LDFLAGS="$saved_LDFLAGS"
30547     CFLAGS="$saved_CFLAGS"
30548
30549     # If plugin support had been requested but not available, fail.
30550     if test x"$enable_plugin" = x"no" ; then
30551       if test x"$default_plugin" != x"yes"; then
30552	 as_fn_error $? "
30553   Building GCC with plugin support requires a host that supports
30554   -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30555       fi
30556     fi
30557   fi
30558
30559
30560
30561if test x"$enable_plugin" = x"yes"; then
30562
30563$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30564
30565fi
30566
30567
30568# Enable --enable-host-shared
30569# Check whether --enable-host-shared was given.
30570if test "${enable_host_shared+set}" = set; then :
30571  enableval=$enable_host_shared; PICFLAG=-fPIC
30572else
30573  PICFLAG=
30574fi
30575
30576
30577
30578
30579
30580# Check whether --enable-libquadmath-support was given.
30581if test "${enable_libquadmath_support+set}" = set; then :
30582  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30583else
30584  ENABLE_LIBQUADMATH_SUPPORT=yes
30585fi
30586
30587if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30588
30589$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30590
30591fi
30592
30593
30594# Specify what hash style to use by default.
30595
30596# Check whether --with-linker-hash-style was given.
30597if test "${with_linker_hash_style+set}" = set; then :
30598  withval=$with_linker_hash_style; case x"$withval" in
30599   xsysv)
30600     LINKER_HASH_STYLE=sysv
30601     ;;
30602   xgnu)
30603     LINKER_HASH_STYLE=gnu
30604     ;;
30605   xboth)
30606     LINKER_HASH_STYLE=both
30607     ;;
30608   *)
30609     as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30610     ;;
30611 esac
30612else
30613  LINKER_HASH_STYLE=''
30614fi
30615
30616if test x"${LINKER_HASH_STYLE}" != x; then
30617
30618cat >>confdefs.h <<_ACEOF
30619#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30620_ACEOF
30621
30622fi
30623
30624# Specify what should be the default of -fdiagnostics-color option.
30625
30626# Check whether --with-diagnostics-color was given.
30627if test "${with_diagnostics_color+set}" = set; then :
30628  withval=$with_diagnostics_color; case x"$withval" in
30629   xnever)
30630     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30631     ;;
30632   xauto)
30633     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30634     ;;
30635   xauto-if-env)
30636     DIAGNOSTICS_COLOR_DEFAULT=-1
30637     ;;
30638   xalways)
30639     DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30640     ;;
30641   *)
30642     as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30643     ;;
30644 esac
30645else
30646  DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30647fi
30648
30649
30650cat >>confdefs.h <<_ACEOF
30651#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30652_ACEOF
30653
30654
30655# Specify what should be the default of -fdiagnostics-urls option.
30656
30657# Check whether --with-diagnostics-urls was given.
30658if test "${with_diagnostics_urls+set}" = set; then :
30659  withval=$with_diagnostics_urls; case x"$withval" in
30660   xnever)
30661     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
30662     ;;
30663   xauto)
30664     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30665     ;;
30666   xauto-if-env)
30667     DIAGNOSTICS_URLS_DEFAULT=-1
30668     ;;
30669   xalways)
30670     DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
30671     ;;
30672   *)
30673     as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
30674     ;;
30675 esac
30676else
30677  DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30678fi
30679
30680
30681cat >>confdefs.h <<_ACEOF
30682#define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
30683_ACEOF
30684
30685
30686# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30687# of jit/jit-playback.c.
30688gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30689echo "gcc_driver_version: ${gcc_driver_version}"
30690cat > gcc-driver-name.h <<EOF
30691#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30692EOF
30693
30694# Check whether --enable-default-pie was given.
30695# Check whether --enable-default-pie was given.
30696if test "${enable_default_pie+set}" = set; then :
30697  enableval=$enable_default_pie; enable_default_pie=$enableval
30698else
30699  enable_default_pie=no
30700fi
30701
30702if test x$enable_default_pie = xyes ; then
30703
30704$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30705
30706fi
30707
30708
30709# Check if -fno-PIE works.
30710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30711$as_echo_n "checking for -fno-PIE option... " >&6; }
30712if ${gcc_cv_c_no_fpie+:} false; then :
30713  $as_echo_n "(cached) " >&6
30714else
30715  saved_CXXFLAGS="$CXXFLAGS"
30716   CXXFLAGS="$CXXFLAGS -fno-PIE"
30717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30718/* end confdefs.h.  */
30719int main(void) {return 0;}
30720_ACEOF
30721if ac_fn_cxx_try_compile "$LINENO"; then :
30722  gcc_cv_c_no_fpie=yes
30723else
30724  gcc_cv_c_no_fpie=no
30725fi
30726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30727   CXXFLAGS="$saved_CXXFLAGS"
30728fi
30729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30730$as_echo "$gcc_cv_c_no_fpie" >&6; }
30731if test "$gcc_cv_c_no_fpie" = "yes"; then
30732  NO_PIE_CFLAGS="-fno-PIE"
30733fi
30734
30735
30736# Check if -no-pie works.
30737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30738$as_echo_n "checking for -no-pie option... " >&6; }
30739if ${gcc_cv_no_pie+:} false; then :
30740  $as_echo_n "(cached) " >&6
30741else
30742  saved_LDFLAGS="$LDFLAGS"
30743   LDFLAGS="$LDFLAGS -no-pie"
30744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30745/* end confdefs.h.  */
30746int main(void) {return 0;}
30747_ACEOF
30748if ac_fn_cxx_try_link "$LINENO"; then :
30749  gcc_cv_no_pie=yes
30750else
30751  gcc_cv_no_pie=no
30752fi
30753rm -f core conftest.err conftest.$ac_objext \
30754    conftest$ac_exeext conftest.$ac_ext
30755   LDFLAGS="$saved_LDFLAGS"
30756fi
30757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30758$as_echo "$gcc_cv_no_pie" >&6; }
30759if test "$gcc_cv_no_pie" = "yes"; then
30760  NO_PIE_FLAG="-no-pie"
30761fi
30762
30763
30764# Check linker supports '-z bndplt'
30765ld_bndplt_support=no
30766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30767$as_echo_n "checking linker -z bndplt option... " >&6; }
30768if test x"$ld_is_gold" = xno; then
30769  if test $in_tree_ld = yes ; then
30770    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
30771      ld_bndplt_support=yes
30772    fi
30773  elif test x$gcc_cv_ld != x; then
30774    # Check if linker supports -a bndplt option
30775    if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30776      ld_bndplt_support=yes
30777    fi
30778  fi
30779fi
30780if test x"$ld_bndplt_support" = xyes; then
30781
30782$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30783
30784fi
30785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30786$as_echo "$ld_bndplt_support" >&6; }
30787
30788# Check linker supports '--push-state'/'--pop-state'
30789ld_pushpopstate_support=no
30790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30791$as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30792if test x"$ld_is_gold" = xno; then
30793  if test $in_tree_ld = yes ; then
30794    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
30795      ld_pushpopstate_support=yes
30796    fi
30797  elif test x$gcc_cv_ld != x; then
30798    # Check if linker supports --push-state/--pop-state options
30799    if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30800      ld_pushpopstate_support=yes
30801    fi
30802  fi
30803fi
30804if test x"$ld_pushpopstate_support" = xyes; then
30805
30806$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30807
30808fi
30809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30810$as_echo "$ld_pushpopstate_support" >&6; }
30811
30812# Configure the subdirectories
30813# AC_CONFIG_SUBDIRS($subdirs)
30814
30815# Create the Makefile
30816# and configure language subdirectories
30817ac_config_files="$ac_config_files $all_outputs"
30818
30819
30820ac_config_commands="$ac_config_commands default"
30821
30822cat >confcache <<\_ACEOF
30823# This file is a shell script that caches the results of configure
30824# tests run on this system so they can be shared between configure
30825# scripts and configure runs, see configure's option --config-cache.
30826# It is not useful on other systems.  If it contains results you don't
30827# want to keep, you may remove or edit it.
30828#
30829# config.status only pays attention to the cache file if you give it
30830# the --recheck option to rerun configure.
30831#
30832# `ac_cv_env_foo' variables (set or unset) will be overridden when
30833# loading this file, other *unset* `ac_cv_foo' will be assigned the
30834# following values.
30835
30836_ACEOF
30837
30838# The following way of writing the cache mishandles newlines in values,
30839# but we know of no workaround that is simple, portable, and efficient.
30840# So, we kill variables containing newlines.
30841# Ultrix sh set writes to stderr and can't be redirected directly,
30842# and sets the high bit in the cache file unless we assign to the vars.
30843(
30844  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30845    eval ac_val=\$$ac_var
30846    case $ac_val in #(
30847    *${as_nl}*)
30848      case $ac_var in #(
30849      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30850$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30851      esac
30852      case $ac_var in #(
30853      _ | IFS | as_nl) ;; #(
30854      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30855      *) { eval $ac_var=; unset $ac_var;} ;;
30856      esac ;;
30857    esac
30858  done
30859
30860  (set) 2>&1 |
30861    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30862    *${as_nl}ac_space=\ *)
30863      # `set' does not quote correctly, so add quotes: double-quote
30864      # substitution turns \\\\ into \\, and sed turns \\ into \.
30865      sed -n \
30866	"s/'/'\\\\''/g;
30867	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30868      ;; #(
30869    *)
30870      # `set' quotes correctly as required by POSIX, so do not add quotes.
30871      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30872      ;;
30873    esac |
30874    sort
30875) |
30876  sed '
30877     /^ac_cv_env_/b end
30878     t clear
30879     :clear
30880     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30881     t end
30882     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30883     :end' >>confcache
30884if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30885  if test -w "$cache_file"; then
30886    if test "x$cache_file" != "x/dev/null"; then
30887      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30888$as_echo "$as_me: updating cache $cache_file" >&6;}
30889      if test ! -f "$cache_file" || test -h "$cache_file"; then
30890	cat confcache >"$cache_file"
30891      else
30892        case $cache_file in #(
30893        */* | ?:*)
30894	  mv -f confcache "$cache_file"$$ &&
30895	  mv -f "$cache_file"$$ "$cache_file" ;; #(
30896        *)
30897	  mv -f confcache "$cache_file" ;;
30898	esac
30899      fi
30900    fi
30901  else
30902    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30903$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30904  fi
30905fi
30906rm -f confcache
30907
30908test "x$prefix" = xNONE && prefix=$ac_default_prefix
30909# Let make expand exec_prefix.
30910test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30911
30912DEFS=-DHAVE_CONFIG_H
30913
30914ac_libobjs=
30915ac_ltlibobjs=
30916U=
30917for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30918  # 1. Remove the extension, and $U if already installed.
30919  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30920  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30921  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30922  #    will be set to the directory where LIBOBJS objects are built.
30923  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30924  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30925done
30926LIBOBJS=$ac_libobjs
30927
30928LTLIBOBJS=$ac_ltlibobjs
30929
30930
30931
30932
30933: "${CONFIG_STATUS=./config.status}"
30934ac_write_fail=0
30935ac_clean_files_save=$ac_clean_files
30936ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30937{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30938$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30939as_write_fail=0
30940cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30941#! $SHELL
30942# Generated by $as_me.
30943# Run this file to recreate the current configuration.
30944# Compiler output produced by configure, useful for debugging
30945# configure, is in config.log if it exists.
30946
30947debug=false
30948ac_cs_recheck=false
30949ac_cs_silent=false
30950
30951SHELL=\${CONFIG_SHELL-$SHELL}
30952export SHELL
30953_ASEOF
30954cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30955## -------------------- ##
30956## M4sh Initialization. ##
30957## -------------------- ##
30958
30959# Be more Bourne compatible
30960DUALCASE=1; export DUALCASE # for MKS sh
30961if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30962  emulate sh
30963  NULLCMD=:
30964  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30965  # is contrary to our usage.  Disable this feature.
30966  alias -g '${1+"$@"}'='"$@"'
30967  setopt NO_GLOB_SUBST
30968else
30969  case `(set -o) 2>/dev/null` in #(
30970  *posix*) :
30971    set -o posix ;; #(
30972  *) :
30973     ;;
30974esac
30975fi
30976
30977
30978as_nl='
30979'
30980export as_nl
30981# Printing a long string crashes Solaris 7 /usr/bin/printf.
30982as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30983as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30984as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30985# Prefer a ksh shell builtin over an external printf program on Solaris,
30986# but without wasting forks for bash or zsh.
30987if test -z "$BASH_VERSION$ZSH_VERSION" \
30988    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30989  as_echo='print -r --'
30990  as_echo_n='print -rn --'
30991elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30992  as_echo='printf %s\n'
30993  as_echo_n='printf %s'
30994else
30995  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30996    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30997    as_echo_n='/usr/ucb/echo -n'
30998  else
30999    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31000    as_echo_n_body='eval
31001      arg=$1;
31002      case $arg in #(
31003      *"$as_nl"*)
31004	expr "X$arg" : "X\\(.*\\)$as_nl";
31005	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31006      esac;
31007      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31008    '
31009    export as_echo_n_body
31010    as_echo_n='sh -c $as_echo_n_body as_echo'
31011  fi
31012  export as_echo_body
31013  as_echo='sh -c $as_echo_body as_echo'
31014fi
31015
31016# The user is always right.
31017if test "${PATH_SEPARATOR+set}" != set; then
31018  PATH_SEPARATOR=:
31019  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31020    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31021      PATH_SEPARATOR=';'
31022  }
31023fi
31024
31025
31026# IFS
31027# We need space, tab and new line, in precisely that order.  Quoting is
31028# there to prevent editors from complaining about space-tab.
31029# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31030# splitting by setting IFS to empty value.)
31031IFS=" ""	$as_nl"
31032
31033# Find who we are.  Look in the path if we contain no directory separator.
31034as_myself=
31035case $0 in #((
31036  *[\\/]* ) as_myself=$0 ;;
31037  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31038for as_dir in $PATH
31039do
31040  IFS=$as_save_IFS
31041  test -z "$as_dir" && as_dir=.
31042    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31043  done
31044IFS=$as_save_IFS
31045
31046     ;;
31047esac
31048# We did not find ourselves, most probably we were run as `sh COMMAND'
31049# in which case we are not to be found in the path.
31050if test "x$as_myself" = x; then
31051  as_myself=$0
31052fi
31053if test ! -f "$as_myself"; then
31054  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31055  exit 1
31056fi
31057
31058# Unset variables that we do not need and which cause bugs (e.g. in
31059# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31060# suppresses any "Segmentation fault" message there.  '((' could
31061# trigger a bug in pdksh 5.2.14.
31062for as_var in BASH_ENV ENV MAIL MAILPATH
31063do eval test x\${$as_var+set} = xset \
31064  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31065done
31066PS1='$ '
31067PS2='> '
31068PS4='+ '
31069
31070# NLS nuisances.
31071LC_ALL=C
31072export LC_ALL
31073LANGUAGE=C
31074export LANGUAGE
31075
31076# CDPATH.
31077(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31078
31079
31080# as_fn_error STATUS ERROR [LINENO LOG_FD]
31081# ----------------------------------------
31082# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31083# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31084# script with STATUS, using 1 if that was 0.
31085as_fn_error ()
31086{
31087  as_status=$1; test $as_status -eq 0 && as_status=1
31088  if test "$4"; then
31089    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31090    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31091  fi
31092  $as_echo "$as_me: error: $2" >&2
31093  as_fn_exit $as_status
31094} # as_fn_error
31095
31096
31097# as_fn_set_status STATUS
31098# -----------------------
31099# Set $? to STATUS, without forking.
31100as_fn_set_status ()
31101{
31102  return $1
31103} # as_fn_set_status
31104
31105# as_fn_exit STATUS
31106# -----------------
31107# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31108as_fn_exit ()
31109{
31110  set +e
31111  as_fn_set_status $1
31112  exit $1
31113} # as_fn_exit
31114
31115# as_fn_unset VAR
31116# ---------------
31117# Portably unset VAR.
31118as_fn_unset ()
31119{
31120  { eval $1=; unset $1;}
31121}
31122as_unset=as_fn_unset
31123# as_fn_append VAR VALUE
31124# ----------------------
31125# Append the text in VALUE to the end of the definition contained in VAR. Take
31126# advantage of any shell optimizations that allow amortized linear growth over
31127# repeated appends, instead of the typical quadratic growth present in naive
31128# implementations.
31129if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31130  eval 'as_fn_append ()
31131  {
31132    eval $1+=\$2
31133  }'
31134else
31135  as_fn_append ()
31136  {
31137    eval $1=\$$1\$2
31138  }
31139fi # as_fn_append
31140
31141# as_fn_arith ARG...
31142# ------------------
31143# Perform arithmetic evaluation on the ARGs, and store the result in the
31144# global $as_val. Take advantage of shells that can avoid forks. The arguments
31145# must be portable across $(()) and expr.
31146if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31147  eval 'as_fn_arith ()
31148  {
31149    as_val=$(( $* ))
31150  }'
31151else
31152  as_fn_arith ()
31153  {
31154    as_val=`expr "$@" || test $? -eq 1`
31155  }
31156fi # as_fn_arith
31157
31158
31159if expr a : '\(a\)' >/dev/null 2>&1 &&
31160   test "X`expr 00001 : '.*\(...\)'`" = X001; then
31161  as_expr=expr
31162else
31163  as_expr=false
31164fi
31165
31166if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31167  as_basename=basename
31168else
31169  as_basename=false
31170fi
31171
31172if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31173  as_dirname=dirname
31174else
31175  as_dirname=false
31176fi
31177
31178as_me=`$as_basename -- "$0" ||
31179$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31180	 X"$0" : 'X\(//\)$' \| \
31181	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31182$as_echo X/"$0" |
31183    sed '/^.*\/\([^/][^/]*\)\/*$/{
31184	    s//\1/
31185	    q
31186	  }
31187	  /^X\/\(\/\/\)$/{
31188	    s//\1/
31189	    q
31190	  }
31191	  /^X\/\(\/\).*/{
31192	    s//\1/
31193	    q
31194	  }
31195	  s/.*/./; q'`
31196
31197# Avoid depending upon Character Ranges.
31198as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31199as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31200as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31201as_cr_digits='0123456789'
31202as_cr_alnum=$as_cr_Letters$as_cr_digits
31203
31204ECHO_C= ECHO_N= ECHO_T=
31205case `echo -n x` in #(((((
31206-n*)
31207  case `echo 'xy\c'` in
31208  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
31209  xy)  ECHO_C='\c';;
31210  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31211       ECHO_T='	';;
31212  esac;;
31213*)
31214  ECHO_N='-n';;
31215esac
31216
31217rm -f conf$$ conf$$.exe conf$$.file
31218if test -d conf$$.dir; then
31219  rm -f conf$$.dir/conf$$.file
31220else
31221  rm -f conf$$.dir
31222  mkdir conf$$.dir 2>/dev/null
31223fi
31224if (echo >conf$$.file) 2>/dev/null; then
31225  if ln -s conf$$.file conf$$ 2>/dev/null; then
31226    as_ln_s='ln -s'
31227    # ... but there are two gotchas:
31228    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31229    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31230    # In both cases, we have to default to `cp -pR'.
31231    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31232      as_ln_s='cp -pR'
31233  elif ln conf$$.file conf$$ 2>/dev/null; then
31234    as_ln_s=ln
31235  else
31236    as_ln_s='cp -pR'
31237  fi
31238else
31239  as_ln_s='cp -pR'
31240fi
31241rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31242rmdir conf$$.dir 2>/dev/null
31243
31244
31245# as_fn_mkdir_p
31246# -------------
31247# Create "$as_dir" as a directory, including parents if necessary.
31248as_fn_mkdir_p ()
31249{
31250
31251  case $as_dir in #(
31252  -*) as_dir=./$as_dir;;
31253  esac
31254  test -d "$as_dir" || eval $as_mkdir_p || {
31255    as_dirs=
31256    while :; do
31257      case $as_dir in #(
31258      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31259      *) as_qdir=$as_dir;;
31260      esac
31261      as_dirs="'$as_qdir' $as_dirs"
31262      as_dir=`$as_dirname -- "$as_dir" ||
31263$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31264	 X"$as_dir" : 'X\(//\)[^/]' \| \
31265	 X"$as_dir" : 'X\(//\)$' \| \
31266	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31267$as_echo X"$as_dir" |
31268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31269	    s//\1/
31270	    q
31271	  }
31272	  /^X\(\/\/\)[^/].*/{
31273	    s//\1/
31274	    q
31275	  }
31276	  /^X\(\/\/\)$/{
31277	    s//\1/
31278	    q
31279	  }
31280	  /^X\(\/\).*/{
31281	    s//\1/
31282	    q
31283	  }
31284	  s/.*/./; q'`
31285      test -d "$as_dir" && break
31286    done
31287    test -z "$as_dirs" || eval "mkdir $as_dirs"
31288  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31289
31290
31291} # as_fn_mkdir_p
31292if mkdir -p . 2>/dev/null; then
31293  as_mkdir_p='mkdir -p "$as_dir"'
31294else
31295  test -d ./-p && rmdir ./-p
31296  as_mkdir_p=false
31297fi
31298
31299
31300# as_fn_executable_p FILE
31301# -----------------------
31302# Test if FILE is an executable regular file.
31303as_fn_executable_p ()
31304{
31305  test -f "$1" && test -x "$1"
31306} # as_fn_executable_p
31307as_test_x='test -x'
31308as_executable_p=as_fn_executable_p
31309
31310# Sed expression to map a string onto a valid CPP name.
31311as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31312
31313# Sed expression to map a string onto a valid variable name.
31314as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31315
31316
31317exec 6>&1
31318## ----------------------------------- ##
31319## Main body of $CONFIG_STATUS script. ##
31320## ----------------------------------- ##
31321_ASEOF
31322test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31323
31324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31325# Save the log message, to keep $0 and so on meaningful, and to
31326# report actual input values of CONFIG_FILES etc. instead of their
31327# values after options handling.
31328ac_log="
31329This file was extended by $as_me, which was
31330generated by GNU Autoconf 2.69.  Invocation command line was
31331
31332  CONFIG_FILES    = $CONFIG_FILES
31333  CONFIG_HEADERS  = $CONFIG_HEADERS
31334  CONFIG_LINKS    = $CONFIG_LINKS
31335  CONFIG_COMMANDS = $CONFIG_COMMANDS
31336  $ $0 $@
31337
31338on `(hostname || uname -n) 2>/dev/null | sed 1q`
31339"
31340
31341_ACEOF
31342
31343case $ac_config_files in *"
31344"*) set x $ac_config_files; shift; ac_config_files=$*;;
31345esac
31346
31347case $ac_config_headers in *"
31348"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31349esac
31350
31351
31352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31353# Files that config.status was made for.
31354config_files="$ac_config_files"
31355config_headers="$ac_config_headers"
31356config_links="$ac_config_links"
31357config_commands="$ac_config_commands"
31358
31359_ACEOF
31360
31361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31362ac_cs_usage="\
31363\`$as_me' instantiates files and other configuration actions
31364from templates according to the current configuration.  Unless the files
31365and actions are specified as TAGs, all are instantiated by default.
31366
31367Usage: $0 [OPTION]... [TAG]...
31368
31369  -h, --help       print this help, then exit
31370  -V, --version    print version number and configuration settings, then exit
31371      --config     print configuration, then exit
31372  -q, --quiet, --silent
31373                   do not print progress messages
31374  -d, --debug      don't remove temporary files
31375      --recheck    update $as_me by reconfiguring in the same conditions
31376      --file=FILE[:TEMPLATE]
31377                   instantiate the configuration file FILE
31378      --header=FILE[:TEMPLATE]
31379                   instantiate the configuration header FILE
31380
31381Configuration files:
31382$config_files
31383
31384Configuration headers:
31385$config_headers
31386
31387Configuration links:
31388$config_links
31389
31390Configuration commands:
31391$config_commands
31392
31393Report bugs to the package provider."
31394
31395_ACEOF
31396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31397ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31398ac_cs_version="\\
31399config.status
31400configured by $0, generated by GNU Autoconf 2.69,
31401  with options \\"\$ac_cs_config\\"
31402
31403Copyright (C) 2012 Free Software Foundation, Inc.
31404This config.status script is free software; the Free Software Foundation
31405gives unlimited permission to copy, distribute and modify it."
31406
31407ac_pwd='$ac_pwd'
31408srcdir='$srcdir'
31409AWK='$AWK'
31410test -n "\$AWK" || AWK=awk
31411_ACEOF
31412
31413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31414# The default lists apply if the user does not specify any file.
31415ac_need_defaults=:
31416while test $# != 0
31417do
31418  case $1 in
31419  --*=?*)
31420    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31421    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31422    ac_shift=:
31423    ;;
31424  --*=)
31425    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31426    ac_optarg=
31427    ac_shift=:
31428    ;;
31429  *)
31430    ac_option=$1
31431    ac_optarg=$2
31432    ac_shift=shift
31433    ;;
31434  esac
31435
31436  case $ac_option in
31437  # Handling of the options.
31438  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31439    ac_cs_recheck=: ;;
31440  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31441    $as_echo "$ac_cs_version"; exit ;;
31442  --config | --confi | --conf | --con | --co | --c )
31443    $as_echo "$ac_cs_config"; exit ;;
31444  --debug | --debu | --deb | --de | --d | -d )
31445    debug=: ;;
31446  --file | --fil | --fi | --f )
31447    $ac_shift
31448    case $ac_optarg in
31449    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31450    '') as_fn_error $? "missing file argument" ;;
31451    esac
31452    as_fn_append CONFIG_FILES " '$ac_optarg'"
31453    ac_need_defaults=false;;
31454  --header | --heade | --head | --hea )
31455    $ac_shift
31456    case $ac_optarg in
31457    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31458    esac
31459    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31460    ac_need_defaults=false;;
31461  --he | --h)
31462    # Conflict between --help and --header
31463    as_fn_error $? "ambiguous option: \`$1'
31464Try \`$0 --help' for more information.";;
31465  --help | --hel | -h )
31466    $as_echo "$ac_cs_usage"; exit ;;
31467  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31468  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31469    ac_cs_silent=: ;;
31470
31471  # This is an error.
31472  -*) as_fn_error $? "unrecognized option: \`$1'
31473Try \`$0 --help' for more information." ;;
31474
31475  *) as_fn_append ac_config_targets " $1"
31476     ac_need_defaults=false ;;
31477
31478  esac
31479  shift
31480done
31481
31482ac_configure_extra_args=
31483
31484if $ac_cs_silent; then
31485  exec 6>/dev/null
31486  ac_configure_extra_args="$ac_configure_extra_args --silent"
31487fi
31488
31489_ACEOF
31490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31491if \$ac_cs_recheck; then
31492  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31493  shift
31494  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31495  CONFIG_SHELL='$SHELL'
31496  export CONFIG_SHELL
31497  exec "\$@"
31498fi
31499
31500_ACEOF
31501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31502exec 5>>config.log
31503{
31504  echo
31505  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31506## Running $as_me. ##
31507_ASBOX
31508  $as_echo "$ac_log"
31509} >&5
31510
31511_ACEOF
31512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31513#
31514# INIT-COMMANDS
31515#
31516ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31517subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31518subdirs='$subdirs'
31519
31520_ACEOF
31521
31522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31523
31524# Handling of arguments.
31525for ac_config_target in $ac_config_targets
31526do
31527  case $ac_config_target in
31528    "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31529    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31530    "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31531    "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31532    "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31533    "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31534    "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31535    "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31536    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31537
31538  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31539  esac
31540done
31541
31542
31543# If the user did not use the arguments to specify the items to instantiate,
31544# then the envvar interface is used.  Set only those that are not.
31545# We use the long form for the default assignment because of an extremely
31546# bizarre bug on SunOS 4.1.3.
31547if $ac_need_defaults; then
31548  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31549  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31550  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31551  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31552fi
31553
31554# Have a temporary directory for convenience.  Make it in the build tree
31555# simply because there is no reason against having it here, and in addition,
31556# creating and moving files from /tmp can sometimes cause problems.
31557# Hook for its removal unless debugging.
31558# Note that there is a small window in which the directory will not be cleaned:
31559# after its creation but before its name has been assigned to `$tmp'.
31560$debug ||
31561{
31562  tmp= ac_tmp=
31563  trap 'exit_status=$?
31564  : "${ac_tmp:=$tmp}"
31565  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31566' 0
31567  trap 'as_fn_exit 1' 1 2 13 15
31568}
31569# Create a (secure) tmp directory for tmp files.
31570
31571{
31572  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31573  test -d "$tmp"
31574}  ||
31575{
31576  tmp=./conf$$-$RANDOM
31577  (umask 077 && mkdir "$tmp")
31578} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31579ac_tmp=$tmp
31580
31581# Set up the scripts for CONFIG_FILES section.
31582# No need to generate them if there are no CONFIG_FILES.
31583# This happens for instance with `./config.status config.h'.
31584if test -n "$CONFIG_FILES"; then
31585
31586if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31587  ac_cs_awk_getline=:
31588  ac_cs_awk_pipe_init=
31589  ac_cs_awk_read_file='
31590      while ((getline aline < (F[key])) > 0)
31591	print(aline)
31592      close(F[key])'
31593  ac_cs_awk_pipe_fini=
31594else
31595  ac_cs_awk_getline=false
31596  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31597  ac_cs_awk_read_file='
31598      print "|#_!!_#|"
31599      print "cat " F[key] " &&"
31600      '$ac_cs_awk_pipe_init
31601  # The final `:' finishes the AND list.
31602  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31603fi
31604ac_cr=`echo X | tr X '\015'`
31605# On cygwin, bash can eat \r inside `` if the user requested igncr.
31606# But we know of no other shell where ac_cr would be empty at this
31607# point, so we can use a bashism as a fallback.
31608if test "x$ac_cr" = x; then
31609  eval ac_cr=\$\'\\r\'
31610fi
31611ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31612if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31613  ac_cs_awk_cr='\\r'
31614else
31615  ac_cs_awk_cr=$ac_cr
31616fi
31617
31618echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31619_ACEOF
31620
31621# Create commands to substitute file output variables.
31622{
31623  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31624  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31625  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31626  echo "_ACAWK" &&
31627  echo "_ACEOF"
31628} >conf$$files.sh &&
31629. ./conf$$files.sh ||
31630  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31631rm -f conf$$files.sh
31632
31633{
31634  echo "cat >conf$$subs.awk <<_ACEOF" &&
31635  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31636  echo "_ACEOF"
31637} >conf$$subs.sh ||
31638  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31639ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31640ac_delim='%!_!# '
31641for ac_last_try in false false false false false :; do
31642  . ./conf$$subs.sh ||
31643    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31644
31645  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31646  if test $ac_delim_n = $ac_delim_num; then
31647    break
31648  elif $ac_last_try; then
31649    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31650  else
31651    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31652  fi
31653done
31654rm -f conf$$subs.sh
31655
31656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31657cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31658_ACEOF
31659sed -n '
31660h
31661s/^/S["/; s/!.*/"]=/
31662p
31663g
31664s/^[^!]*!//
31665:repl
31666t repl
31667s/'"$ac_delim"'$//
31668t delim
31669:nl
31670h
31671s/\(.\{148\}\)..*/\1/
31672t more1
31673s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31674p
31675n
31676b repl
31677:more1
31678s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31679p
31680g
31681s/.\{148\}//
31682t nl
31683:delim
31684h
31685s/\(.\{148\}\)..*/\1/
31686t more2
31687s/["\\]/\\&/g; s/^/"/; s/$/"/
31688p
31689b
31690:more2
31691s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31692p
31693g
31694s/.\{148\}//
31695t delim
31696' <conf$$subs.awk | sed '
31697/^[^""]/{
31698  N
31699  s/\n//
31700}
31701' >>$CONFIG_STATUS || ac_write_fail=1
31702rm -f conf$$subs.awk
31703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31704_ACAWK
31705cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31706  for (key in S) S_is_set[key] = 1
31707  FS = ""
31708  \$ac_cs_awk_pipe_init
31709}
31710{
31711  line = $ 0
31712  nfields = split(line, field, "@")
31713  substed = 0
31714  len = length(field[1])
31715  for (i = 2; i < nfields; i++) {
31716    key = field[i]
31717    keylen = length(key)
31718    if (S_is_set[key]) {
31719      value = S[key]
31720      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31721      len += length(value) + length(field[++i])
31722      substed = 1
31723    } else
31724      len += 1 + keylen
31725  }
31726  if (nfields == 3 && !substed) {
31727    key = field[2]
31728    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
31729      \$ac_cs_awk_read_file
31730      next
31731    }
31732  }
31733  print line
31734}
31735\$ac_cs_awk_pipe_fini
31736_ACAWK
31737_ACEOF
31738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31739if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31740  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31741else
31742  cat
31743fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31744  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31745_ACEOF
31746
31747# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31748# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31749# trailing colons and then remove the whole line if VPATH becomes empty
31750# (actually we leave an empty line to preserve line numbers).
31751if test "x$srcdir" = x.; then
31752  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
31753h
31754s///
31755s/^/:/
31756s/[	 ]*$/:/
31757s/:\$(srcdir):/:/g
31758s/:\${srcdir}:/:/g
31759s/:@srcdir@:/:/g
31760s/^:*//
31761s/:*$//
31762x
31763s/\(=[	 ]*\).*/\1/
31764G
31765s/\n//
31766s/^[^=]*=[	 ]*$//
31767}'
31768fi
31769
31770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31771fi # test -n "$CONFIG_FILES"
31772
31773# Set up the scripts for CONFIG_HEADERS section.
31774# No need to generate them if there are no CONFIG_HEADERS.
31775# This happens for instance with `./config.status Makefile'.
31776if test -n "$CONFIG_HEADERS"; then
31777cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31778BEGIN {
31779_ACEOF
31780
31781# Transform confdefs.h into an awk script `defines.awk', embedded as
31782# here-document in config.status, that substitutes the proper values into
31783# config.h.in to produce config.h.
31784
31785# Create a delimiter string that does not exist in confdefs.h, to ease
31786# handling of long lines.
31787ac_delim='%!_!# '
31788for ac_last_try in false false :; do
31789  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31790  if test -z "$ac_tt"; then
31791    break
31792  elif $ac_last_try; then
31793    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31794  else
31795    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31796  fi
31797done
31798
31799# For the awk script, D is an array of macro values keyed by name,
31800# likewise P contains macro parameters if any.  Preserve backslash
31801# newline sequences.
31802
31803ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31804sed -n '
31805s/.\{148\}/&'"$ac_delim"'/g
31806t rset
31807:rset
31808s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31809t def
31810d
31811:def
31812s/\\$//
31813t bsnl
31814s/["\\]/\\&/g
31815s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31816D["\1"]=" \3"/p
31817s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
31818d
31819:bsnl
31820s/["\\]/\\&/g
31821s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31822D["\1"]=" \3\\\\\\n"\\/p
31823t cont
31824s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31825t cont
31826d
31827:cont
31828n
31829s/.\{148\}/&'"$ac_delim"'/g
31830t clear
31831:clear
31832s/\\$//
31833t bsnlc
31834s/["\\]/\\&/g; s/^/"/; s/$/"/p
31835d
31836:bsnlc
31837s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31838b cont
31839' <confdefs.h | sed '
31840s/'"$ac_delim"'/"\\\
31841"/g' >>$CONFIG_STATUS || ac_write_fail=1
31842
31843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31844  for (key in D) D_is_set[key] = 1
31845  FS = ""
31846}
31847/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31848  line = \$ 0
31849  split(line, arg, " ")
31850  if (arg[1] == "#") {
31851    defundef = arg[2]
31852    mac1 = arg[3]
31853  } else {
31854    defundef = substr(arg[1], 2)
31855    mac1 = arg[2]
31856  }
31857  split(mac1, mac2, "(") #)
31858  macro = mac2[1]
31859  prefix = substr(line, 1, index(line, defundef) - 1)
31860  if (D_is_set[macro]) {
31861    # Preserve the white space surrounding the "#".
31862    print prefix "define", macro P[macro] D[macro]
31863    next
31864  } else {
31865    # Replace #undef with comments.  This is necessary, for example,
31866    # in the case of _POSIX_SOURCE, which is predefined and required
31867    # on some systems where configure will not decide to define it.
31868    if (defundef == "undef") {
31869      print "/*", prefix defundef, macro, "*/"
31870      next
31871    }
31872  }
31873}
31874{ print }
31875_ACAWK
31876_ACEOF
31877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31878  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31879fi # test -n "$CONFIG_HEADERS"
31880
31881
31882eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31883shift
31884for ac_tag
31885do
31886  case $ac_tag in
31887  :[FHLC]) ac_mode=$ac_tag; continue;;
31888  esac
31889  case $ac_mode$ac_tag in
31890  :[FHL]*:*);;
31891  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31892  :[FH]-) ac_tag=-:-;;
31893  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31894  esac
31895  ac_save_IFS=$IFS
31896  IFS=:
31897  set x $ac_tag
31898  IFS=$ac_save_IFS
31899  shift
31900  ac_file=$1
31901  shift
31902
31903  case $ac_mode in
31904  :L) ac_source=$1;;
31905  :[FH])
31906    ac_file_inputs=
31907    for ac_f
31908    do
31909      case $ac_f in
31910      -) ac_f="$ac_tmp/stdin";;
31911      *) # Look for the file first in the build tree, then in the source tree
31912	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
31913	 # because $ac_f cannot contain `:'.
31914	 test -f "$ac_f" ||
31915	   case $ac_f in
31916	   [\\/$]*) false;;
31917	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31918	   esac ||
31919	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31920      esac
31921      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31922      as_fn_append ac_file_inputs " '$ac_f'"
31923    done
31924
31925    # Let's still pretend it is `configure' which instantiates (i.e., don't
31926    # use $as_me), people would be surprised to read:
31927    #    /* config.h.  Generated by config.status.  */
31928    configure_input='Generated from '`
31929	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31930	`' by configure.'
31931    if test x"$ac_file" != x-; then
31932      configure_input="$ac_file.  $configure_input"
31933      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31934$as_echo "$as_me: creating $ac_file" >&6;}
31935    fi
31936    # Neutralize special characters interpreted by sed in replacement strings.
31937    case $configure_input in #(
31938    *\&* | *\|* | *\\* )
31939       ac_sed_conf_input=`$as_echo "$configure_input" |
31940       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31941    *) ac_sed_conf_input=$configure_input;;
31942    esac
31943
31944    case $ac_tag in
31945    *:-:* | *:-) cat >"$ac_tmp/stdin" \
31946      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31947    esac
31948    ;;
31949  esac
31950
31951  ac_dir=`$as_dirname -- "$ac_file" ||
31952$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31953	 X"$ac_file" : 'X\(//\)[^/]' \| \
31954	 X"$ac_file" : 'X\(//\)$' \| \
31955	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31956$as_echo X"$ac_file" |
31957    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31958	    s//\1/
31959	    q
31960	  }
31961	  /^X\(\/\/\)[^/].*/{
31962	    s//\1/
31963	    q
31964	  }
31965	  /^X\(\/\/\)$/{
31966	    s//\1/
31967	    q
31968	  }
31969	  /^X\(\/\).*/{
31970	    s//\1/
31971	    q
31972	  }
31973	  s/.*/./; q'`
31974  as_dir="$ac_dir"; as_fn_mkdir_p
31975  ac_builddir=.
31976
31977case "$ac_dir" in
31978.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31979*)
31980  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31981  # A ".." for each directory in $ac_dir_suffix.
31982  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31983  case $ac_top_builddir_sub in
31984  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31985  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31986  esac ;;
31987esac
31988ac_abs_top_builddir=$ac_pwd
31989ac_abs_builddir=$ac_pwd$ac_dir_suffix
31990# for backward compatibility:
31991ac_top_builddir=$ac_top_build_prefix
31992
31993case $srcdir in
31994  .)  # We are building in place.
31995    ac_srcdir=.
31996    ac_top_srcdir=$ac_top_builddir_sub
31997    ac_abs_top_srcdir=$ac_pwd ;;
31998  [\\/]* | ?:[\\/]* )  # Absolute name.
31999    ac_srcdir=$srcdir$ac_dir_suffix;
32000    ac_top_srcdir=$srcdir
32001    ac_abs_top_srcdir=$srcdir ;;
32002  *) # Relative name.
32003    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32004    ac_top_srcdir=$ac_top_build_prefix$srcdir
32005    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32006esac
32007ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32008
32009
32010  case $ac_mode in
32011  :F)
32012  #
32013  # CONFIG_FILE
32014  #
32015
32016_ACEOF
32017
32018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32019# If the template does not know about datarootdir, expand it.
32020# FIXME: This hack should be removed a few years after 2.60.
32021ac_datarootdir_hack=; ac_datarootdir_seen=
32022ac_sed_dataroot='
32023/datarootdir/ {
32024  p
32025  q
32026}
32027/@datadir@/p
32028/@docdir@/p
32029/@infodir@/p
32030/@localedir@/p
32031/@mandir@/p'
32032case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32033*datarootdir*) ac_datarootdir_seen=yes;;
32034*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32035  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32036$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32037_ACEOF
32038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32039  ac_datarootdir_hack='
32040  s&@datadir@&$datadir&g
32041  s&@docdir@&$docdir&g
32042  s&@infodir@&$infodir&g
32043  s&@localedir@&$localedir&g
32044  s&@mandir@&$mandir&g
32045  s&\\\${datarootdir}&$datarootdir&g' ;;
32046esac
32047_ACEOF
32048
32049# Neutralize VPATH when `$srcdir' = `.'.
32050# Shell code in configure.ac might set extrasub.
32051# FIXME: do we really want to maintain this feature?
32052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32053ac_sed_extra="$ac_vpsub
32054$extrasub
32055_ACEOF
32056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32057:t
32058/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32059s|@configure_input@|$ac_sed_conf_input|;t t
32060s&@top_builddir@&$ac_top_builddir_sub&;t t
32061s&@top_build_prefix@&$ac_top_build_prefix&;t t
32062s&@srcdir@&$ac_srcdir&;t t
32063s&@abs_srcdir@&$ac_abs_srcdir&;t t
32064s&@top_srcdir@&$ac_top_srcdir&;t t
32065s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32066s&@builddir@&$ac_builddir&;t t
32067s&@abs_builddir@&$ac_abs_builddir&;t t
32068s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32069$ac_datarootdir_hack
32070"
32071eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32072if $ac_cs_awk_getline; then
32073  $AWK -f "$ac_tmp/subs.awk"
32074else
32075  $AWK -f "$ac_tmp/subs.awk" | $SHELL
32076fi \
32077  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32078
32079test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32080  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32081  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
32082      "$ac_tmp/out"`; test -z "$ac_out"; } &&
32083  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32084which seems to be undefined.  Please make sure it is defined" >&5
32085$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32086which seems to be undefined.  Please make sure it is defined" >&2;}
32087
32088  rm -f "$ac_tmp/stdin"
32089  case $ac_file in
32090  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32091  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32092  esac \
32093  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32094 ;;
32095  :H)
32096  #
32097  # CONFIG_HEADER
32098  #
32099  if test x"$ac_file" != x-; then
32100    {
32101      $as_echo "/* $configure_input  */" \
32102      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32103    } >"$ac_tmp/config.h" \
32104      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32105    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32106      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32107$as_echo "$as_me: $ac_file is unchanged" >&6;}
32108    else
32109      rm -f "$ac_file"
32110      mv "$ac_tmp/config.h" "$ac_file" \
32111	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
32112    fi
32113  else
32114    $as_echo "/* $configure_input  */" \
32115      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32116      || as_fn_error $? "could not create -" "$LINENO" 5
32117  fi
32118 ;;
32119  :L)
32120  #
32121  # CONFIG_LINK
32122  #
32123
32124  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32125    :
32126  else
32127    # Prefer the file from the source tree if names are identical.
32128    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32129      ac_source=$srcdir/$ac_source
32130    fi
32131
32132    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32133$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32134
32135    if test ! -r "$ac_source"; then
32136      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32137    fi
32138    rm -f "$ac_file"
32139
32140    # Try a relative symlink, then a hard link, then a copy.
32141    case $ac_source in
32142    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32143	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32144    esac
32145    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32146      ln "$ac_source" "$ac_file" 2>/dev/null ||
32147      cp -p "$ac_source" "$ac_file" ||
32148      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32149  fi
32150 ;;
32151  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32152$as_echo "$as_me: executing $ac_file commands" >&6;}
32153 ;;
32154  esac
32155
32156
32157  case $ac_file$ac_mode in
32158    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32159    "gccdepdir":C)
32160  ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32161  for lang in $subdirs c-family common analyzer
32162  do
32163      ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32164  done ;;
32165    "as":F) chmod +x as ;;
32166    "collect-ld":F) chmod +x collect-ld ;;
32167    "nm":F) chmod +x nm ;;
32168    "default":C)
32169case ${CONFIG_HEADERS} in
32170  *auto-host.h:config.in*)
32171  echo > cstamp-h ;;
32172esac
32173# Make sure all the subdirs exist.
32174for d in $subdirs doc build common c-family
32175do
32176    test -d $d || mkdir $d
32177done
32178 ;;
32179
32180  esac
32181done # for ac_tag
32182
32183
32184as_fn_exit 0
32185_ACEOF
32186ac_clean_files=$ac_clean_files_save
32187
32188test $ac_write_fail = 0 ||
32189  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32190
32191
32192# configure is writing to config.log, and then calls config.status.
32193# config.status does its own redirection, appending to config.log.
32194# Unfortunately, on DOS this fails, as config.log is still kept open
32195# by configure, so config.status won't be able to write to it; its
32196# output is simply discarded.  So we exec the FD to /dev/null,
32197# effectively closing config.log, so it can be properly (re)opened and
32198# appended to by config.status.  When coming back to configure, we
32199# need to make the FD available again.
32200if test "$no_create" != yes; then
32201  ac_cs_success=:
32202  ac_config_status_args=
32203  test "$silent" = yes &&
32204    ac_config_status_args="$ac_config_status_args --quiet"
32205  exec 5>/dev/null
32206  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32207  exec 5>>config.log
32208  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32209  # would make configure fail if this is the last instruction.
32210  $ac_cs_success || as_fn_exit 1
32211fi
32212if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32213  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32214$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32215fi
32216
32217
32218